|
|
|
@ -62,9 +62,16 @@ |
|
|
|
<where> |
|
|
|
<if test="map!=null"> |
|
|
|
<foreach collection="map" item="v" index="k" separator="and"> |
|
|
|
<if test="v != null and v != '' and k!='orderway' and k!='id'"> |
|
|
|
<if test="v != null and v != '' and k!='orderway' and k!='id' and k!='gd.goods_name' and k!='g.entrust_name'"> |
|
|
|
${k} = #{v} |
|
|
|
</if> |
|
|
|
<if test="k=='gd.goods_name'"> |
|
|
|
gd.goods_name like concat('%',#{v},'%') |
|
|
|
OR g.goods_islicode like concat('%',#{v},'%') |
|
|
|
</if> |
|
|
|
<if test="k=='g.entrust_name'"> |
|
|
|
g.username like concat('%',#{v},'%') |
|
|
|
</if> |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
@ -83,9 +90,16 @@ |
|
|
|
<where> |
|
|
|
<if test="map!=null"> |
|
|
|
<foreach collection="map" item="v" index="k" separator="and"> |
|
|
|
<if test="v != null and v != '' and k!='orderway' and k!='id'"> |
|
|
|
<if test="v != null and v != '' and k!='orderway' and k!='id' and k!='gd.goods_name' and k!='g.entrust_name'"> |
|
|
|
${k} = #{v} |
|
|
|
</if> |
|
|
|
<if test="k=='gd.goods_name'"> |
|
|
|
gd.goods_name like concat('%',#{v},'%') |
|
|
|
OR g.goods_islicode like concat('%',#{v},'%') |
|
|
|
</if> |
|
|
|
<if test="k=='g.entrust_name'"> |
|
|
|
g.username like concat('%',#{v},'%') |
|
|
|
</if> |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
|