|
@@ -495,8 +495,12 @@ update t_ware_store t set t.layer = #{param7,jdbcType=INTEGER}
|
495
|
495
|
and t.model like concat('%',#{param3,jdbcType=VARCHAR},'%')
|
496
|
496
|
and c.name like concat('%',#{param4,jdbcType=VARCHAR},'%')
|
497
|
497
|
and c.standard like concat('%',#{param5,jdbcType=VARCHAR},'%')
|
498
|
|
- and d.name like concat('%',#{param6,jdbcType=VARCHAR},'%')
|
499
|
|
- and e.name like concat('%',#{param9,jdbcType=VARCHAR},'%')
|
|
498
|
+ <if test="param6 != null and param6 != ''">
|
|
499
|
+ and ifnull(d.name,'*') = #{param6,jdbcType=VARCHAR}
|
|
500
|
+ </if>
|
|
501
|
+ <if test="param9 != null and param9 != ''">
|
|
502
|
+ and ifnull(e.name,'*') = #{param9,jdbcType=VARCHAR}
|
|
503
|
+ </if>
|
500
|
504
|
|
501
|
505
|
and (t.plate_no like concat('%',#{param10,jdbcType=VARCHAR},'%')
|
502
|
506
|
<if test="param13 != null and param13.size() !=0" >
|
|
@@ -556,8 +560,12 @@ update t_ware_store t set t.layer = #{param7,jdbcType=INTEGER}
|
556
|
560
|
and t.model like concat('%',#{param3,jdbcType=VARCHAR},'%')
|
557
|
561
|
and c.name like concat('%',#{param4,jdbcType=VARCHAR},'%')
|
558
|
562
|
and c.standard like concat('%',#{param5,jdbcType=VARCHAR},'%')
|
559
|
|
- and d.name like concat('%',#{param6,jdbcType=VARCHAR},'%')
|
560
|
|
- and e.name like concat('%',#{param9,jdbcType=VARCHAR},'%')
|
|
563
|
+ <if test="param6 != null and param6 != ''">
|
|
564
|
+ and ifnull(d.name,'*') = #{param6,jdbcType=VARCHAR}
|
|
565
|
+ </if>
|
|
566
|
+ <if test="param9 != null and param9 != ''">
|
|
567
|
+ and ifnull(e.name,'*') = #{param9,jdbcType=VARCHAR}
|
|
568
|
+ </if>
|
561
|
569
|
|
562
|
570
|
and (t.plate_no like concat('%',#{param10,jdbcType=VARCHAR},'%')
|
563
|
571
|
<if test="param13 != null and param13.size() !=0" >
|
|
@@ -673,7 +681,12 @@ update t_ware_store t set t.layer = #{param7,jdbcType=INTEGER}
|
673
|
681
|
and t.model like concat('%',#{param3,jdbcType=VARCHAR},'%')
|
674
|
682
|
and c.name like concat('%',#{param4,jdbcType=VARCHAR},'%')
|
675
|
683
|
and c.standard like concat('%',#{param5,jdbcType=VARCHAR},'%')
|
676
|
|
- and d.name like concat('%',#{param6,jdbcType=VARCHAR},'%')
|
|
684
|
+ <if test="param6 != null and param6 != ''">
|
|
685
|
+ and ifnull(d.name,'*') = #{param6,jdbcType=VARCHAR}
|
|
686
|
+ </if>
|
|
687
|
+ <if test="param9 != null and param9 != ''">
|
|
688
|
+ and ifnull(e.name,'*') = #{param9,jdbcType=VARCHAR}
|
|
689
|
+ </if>
|
677
|
690
|
and t.plate_no like concat('%',#{param7,jdbcType=VARCHAR},'%')
|
678
|
691
|
and t.cancel_flag = '0'
|
679
|
692
|
and t.out_flag = '0'
|