where去除
This commit is contained in:
parent
8904b1efc5
commit
9689475e41
|
|
@ -50,7 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
left join tm_task t on t.task_id = pci.task_id
|
||||
left join sys_user su ON pci.create_by = su.user_id
|
||||
left join ma_supplier_info msi on pci.supplier_id = msi.supplier_id
|
||||
where t.task_type = 0
|
||||
|
||||
</sql>
|
||||
|
||||
<select id="selectPurchaseCheckInfoList" parameterType="com.bonus.material.purchase.domain.PurchaseCheckInfo" resultMap="PurchaseCheckInfoResult">
|
||||
|
|
@ -136,7 +136,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
|
||||
<select id="selectPurchaseCheckInfoJoinList" resultMap="PurchaseCheckInfoResult">
|
||||
<include refid="selectPurchaseCheckInfoJoinSQL"/>
|
||||
<where>
|
||||
where t.task_type = 0
|
||||
|
||||
<if test="code != null and code != ''"> and t.code = #{code}</if>
|
||||
<if test="taskId != null "> and pci.task_id = #{taskId}</if>
|
||||
<if test="purchaseTime != null "> and pci.purchase_time = #{purchaseTime}</if>
|
||||
|
|
@ -147,15 +148,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="taxRate != null "> and pci.tax_rate = #{taxRate}</if>
|
||||
<if test="taskStatus != null "> and t.task_status = #{taskStatus}</if>
|
||||
|
||||
</where>
|
||||
|
||||
order by pci.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectPurchaseCheckFormVoByTaskId" resultMap="PurchaseCheckFormResult">
|
||||
<include refid="selectPurchaseCheckInfoJoinSQL"/>
|
||||
<where>
|
||||
where t.task_type = 0
|
||||
<if test="taskId != null "> and pci.task_id = #{taskId}</if>
|
||||
</where>
|
||||
|
||||
</select>
|
||||
|
||||
<select id="selectPurchaseCheckUserById" resultMap="PurchaseCheckInfoResult">
|
||||
|
|
|
|||
Loading…
Reference in New Issue