|
|
@ -127,6 +127,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="deliveryStatus != null and deliveryStatus != ''"> and s.delivery_status = #{deliveryStatus}</if> |
|
|
|
<if test="closeStatus != null and closeStatus != ''"> and s.close_status = #{closeStatus}</if> |
|
|
|
<if test="invoice != null and invoice != ''"> and s.invoice = #{invoice}</if> |
|
|
|
<if test="params.beginCreateTime != null and params.beginCreatTime != '' and params.endCreateTime != null and params.endCreateTime != '' "> |
|
|
|
and s.create_time between #{params.beginCreateTime} and #{params.endCreateTime} |
|
|
|
</if> |
|
|
|
<if test="materialCode != null and materialCode != ''"> and c.materialCode like concat('%', #{materialCode}, '%')</if> |
|
|
|
<if test="materialName != null and materialName != ''"> |
|
|
|
and c.materialName like concat('%',#{materialName},'%') |
|
|
@ -187,6 +190,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="deliveryStatus != null and deliveryStatus != ''"> and s.delivery_status = #{deliveryStatus}</if> |
|
|
|
<if test="closeStatus != null and closeStatus != ''"> and s.close_status = #{closeStatus}</if> |
|
|
|
<if test="invoice != null and invoice != ''"> and s.invoice = #{invoice}</if> |
|
|
|
<if test="params.beginCreateTime != null and params.beginCreatTime != '' and params.endCreateTime != null and params.endCreateTime != '' "> |
|
|
|
and s.create_time between #{params.beginCreateTime} and #{params.endCreateTime} |
|
|
|
</if> |
|
|
|
<if test="materialCode != null and materialCode != ''"> and c.materialCode like concat('%', #{materialCode}, '%')</if> |
|
|
|
<if test="materialName != null and materialName != ''"> |
|
|
|
and c.materialName like concat('%',#{materialName},'%') |
|
|
|