|
@@ -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) and cDefine11 is null
|
|
|
+ select cSOCode from SO_SOMain where (iStatus='0' or iStatus is null) and cDefine10 is null
|
|
|
<if test="date!=null and ''!=date">
|
|
|
and CONVERT(varchar(100), dcreatesystime, 120)>=#{date}
|
|
|
</if>
|
|
@@ -129,11 +129,11 @@
|
|
|
</select>
|
|
|
|
|
|
<update id="autoRIdBySale">
|
|
|
- update SO_SOMain set cDefine11 = #{instanceId} where cSOCode = #{cSOCode}
|
|
|
+ update SO_SOMain set cDefine10 = #{instanceId} where cSOCode = #{cSOCode}
|
|
|
</update>
|
|
|
|
|
|
<select id="queryPurchaseOrderDate" resultType="java.lang.String">
|
|
|
- select cPOID from PO_Pomain where (iverifystateex='0' or iverifystateex is null) and cDefine11 is null
|
|
|
+ select cPOID from PO_Pomain where (iverifystateex='0' or iverifystateex is null) and cDefine10 is null
|
|
|
<if test="date!=null and ''!=date">
|
|
|
and CONVERT(varchar(100), cmaketime, 120)>=#{date}
|
|
|
</if>
|
|
@@ -143,11 +143,11 @@
|
|
|
</select>
|
|
|
|
|
|
<update id="autoRIdByOrder">
|
|
|
- update PO_Pomain set cDefine11 = #{instanceId} where cPOID = #{cSOCode}
|
|
|
+ update PO_Pomain set cDefine10 = #{instanceId} where cPOID = #{cSOCode}
|
|
|
</update>
|
|
|
|
|
|
<select id="queryPayrequestDate" resultType="java.lang.String">
|
|
|
- select cVouchID from AP_ApplyPayVouch where cCheckMan is null and cDefine11 is null
|
|
|
+ select cVouchID from AP_ApplyPayVouch where cCheckMan is null and cDefine10 is null
|
|
|
<if test="date!=null and ''!=date">
|
|
|
and CONVERT(varchar(100), dcreatesystime, 120)>=#{date}
|
|
|
</if>
|
|
@@ -157,7 +157,7 @@
|
|
|
</select>
|
|
|
|
|
|
<update id="autoRIdByPayequest">
|
|
|
- update AP_ApplyPayVouch set cDefine11 = #{instanceId} where cVouchID = #{cSOCode}
|
|
|
+ update AP_ApplyPayVouch set cDefine10 = #{instanceId} where cVouchID = #{cSOCode}
|
|
|
</update>
|
|
|
|
|
|
|