|
@@ -118,7 +118,7 @@
|
|
|
u.user_id = #{value}
|
|
|
</select>
|
|
|
<select id="querySaleOrderDate" resultType="java.lang.String">
|
|
|
- select cSOCode from SO_SOMain where (iStatus='0' or iStatus is null)
|
|
|
+ select cSOCode from SO_SOMain where (iStatus='0' or iStatus is null) and cDefine11 is null
|
|
|
<if test="date!=null and ''!=date">
|
|
|
and CONVERT(varchar(100), dcreatesystime, 120)>=#{date}
|
|
|
</if>
|
|
@@ -133,7 +133,7 @@
|
|
|
</update>
|
|
|
|
|
|
<select id="queryPurchaseOrderDate" resultType="java.lang.String">
|
|
|
- select cPOID from PO_Pomain where (iverifystateex='0' or iverifystateex is null)
|
|
|
+ select cPOID from PO_Pomain where (iverifystateex='0' or iverifystateex is null) and cDefine11 is null
|
|
|
<if test="date!=null and ''!=date">
|
|
|
and CONVERT(varchar(100), cmaketime, 120)>=#{date}
|
|
|
</if>
|
|
@@ -147,7 +147,7 @@
|
|
|
</update>
|
|
|
|
|
|
<select id="queryPayrequestDate" resultType="java.lang.String">
|
|
|
- select cVouchID from AP_ApplyPayVouch where cCheckMan is null
|
|
|
+ select cVouchID from AP_ApplyPayVouch where cCheckMan is null and cDefine11 is null
|
|
|
<if test="date!=null and ''!=date">
|
|
|
and CONVERT(varchar(100), dcreatesystime, 120)>=#{date}
|
|
|
</if>
|
|
@@ -156,7 +156,7 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
- <update id="autoRIdByOrder">
|
|
|
+ <update id="autoRIdByPayequest">
|
|
|
update AP_ApplyPayVouch set cDefine11 = #{instanceId} where cVouchID = #{cSOCode}
|
|
|
</update>
|
|
|
|