|
|
|
@ -40,12 +40,15 @@ |
|
|
|
FROM <include refid="tbName"/> |
|
|
|
<where> |
|
|
|
<foreach collection="map" item="v" index="k" separator="and"> |
|
|
|
<if test="v != null and v != '' and k!='id'"> |
|
|
|
<if test="v != null and v != '' and k!='id' and k!='createtime'"> |
|
|
|
${k} = #{v} |
|
|
|
</if> |
|
|
|
<if test="k=='id'"> |
|
|
|
${k}>#{v} |
|
|
|
</if> |
|
|
|
<if test="k=='createtime'"> |
|
|
|
${v} |
|
|
|
</if> |
|
|
|
</foreach> |
|
|
|
</where> |
|
|
|
limit #{limit} |
|
|
|
@ -63,7 +66,7 @@ |
|
|
|
<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' |
|
|
|
and k!='gd.goods_name' and k!='g.entrust_name'"> |
|
|
|
and k!='gd.goods_name' and k!='g.entrust_name' and k!='createtime'"> |
|
|
|
${k} = #{v} |
|
|
|
</if> |
|
|
|
<if test="k=='gd.goods_name'"> |
|
|
|
@ -73,6 +76,9 @@ |
|
|
|
<if test="k=='g.entrust_name'"> |
|
|
|
g.username like concat('%',#{v},'%') |
|
|
|
</if> |
|
|
|
<if test="k=='createtime'"> |
|
|
|
${v} |
|
|
|
</if> |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
@ -91,7 +97,8 @@ |
|
|
|
<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' and k!='gd.goods_name' and k!='g.entrust_name'"> |
|
|
|
<if test="v != null and v != '' and k!='orderway' and k!='id' and k!='gd.goods_name' |
|
|
|
and k!='g.entrust_name' and k!='createtime'"> |
|
|
|
${k} = #{v} |
|
|
|
</if> |
|
|
|
<if test="k=='gd.goods_name'"> |
|
|
|
@ -101,6 +108,9 @@ |
|
|
|
<if test="k=='g.entrust_name'"> |
|
|
|
g.username like concat('%',#{v},'%') |
|
|
|
</if> |
|
|
|
<if test="k=='createtime'"> |
|
|
|
${v} |
|
|
|
</if> |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
|