|
|
@@ -133,14 +133,21 @@
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
+
|
|
|
<select id="recyclePageList" resultType="com.kxs.product.api.vo.kxsapp.machine.MachineRecycleListVO">
|
|
|
- select recycle_end_time, pos_sn from kxs_machine
|
|
|
- where del_flag = 0 and status = 3 and user_id = #{query.userId}
|
|
|
+ select recycle_end_time, pos_sn, brand_id from kxs_machine
|
|
|
+ where del_flag = 0
|
|
|
+ and status = 3
|
|
|
+ and user_id = #{query.userId}
|
|
|
<if test="query.posSn != null and query.posSn != ''">
|
|
|
and pos_sn like concat('%', #{query.posSn}, '%')
|
|
|
</if>
|
|
|
+ <if test="query.brandId != null and query.brandId != ''">
|
|
|
+ and brand_id = #{query.brandId}
|
|
|
+ </if>
|
|
|
order by recycle_end_time desc
|
|
|
</select>
|
|
|
+
|
|
|
<select id="activateMachineMonthTotal"
|
|
|
resultType="com.kxs.product.api.vo.kxsapp.machine.StoreActMachineMonthTotalVO">
|
|
|
select * from
|
|
|
@@ -200,5 +207,13 @@
|
|
|
order by recycle_end_time desc
|
|
|
limit 1000
|
|
|
</select>
|
|
|
+ <select id="recycleBrandList" resultType="com.kxs.system.api.vo.kxsapp.RecycleBrandListVO">
|
|
|
+ select DISTINCT kb.id,kb.name from kxs_machine km
|
|
|
+ left join kxs_brand kb on km.brand_id = kb.id
|
|
|
+ where km.del_flag = 0
|
|
|
+ and km.status = 3
|
|
|
+ and km.user_id = #{query.userId}
|
|
|
+ </select>
|
|
|
+
|
|
|
|
|
|
</mapper>
|