|
@@ -438,11 +438,14 @@ update t_ware_store t set t.layer = #{param7,jdbcType=INTEGER}
|
438
|
438
|
and c.name like concat('%',#{param4,jdbcType=VARCHAR},'%')
|
439
|
439
|
and c.standard like concat('%',#{param5,jdbcType=VARCHAR},'%')
|
440
|
440
|
and d.name like concat('%',#{param6,jdbcType=VARCHAR},'%')
|
441
|
|
- and t.belong_id = #{param8,jdbcType=VARCHAR}
|
|
441
|
+ and t.belong_id = #{param10,jdbcType=VARCHAR}
|
442
|
442
|
and t.cancel_flag = '0'
|
443
|
443
|
and t.out_flag = '0'
|
|
444
|
+ <if test="param7 != null and param7 != '' and param8 != null and param8 != ''">
|
|
445
|
+ and t.add_time between #{param7,jdbcType=TIMESTAMP} and #{param8,jdbcType=TIMESTAMP}
|
|
446
|
+ </if>
|
444
|
447
|
and t.ware_id in (
|
445
|
|
- select m.ware_id from t_maint_userware m where m.user_id = #{param7,jdbcType=VARCHAR}
|
|
448
|
+ select m.ware_id from t_maint_userware m where m.user_id = #{param9,jdbcType=VARCHAR}
|
446
|
449
|
)
|
447
|
450
|
order by b.code,t.layer desc
|
448
|
451
|
</select>
|