|
@@ -119,13 +119,6 @@
|
|
|
</select>
|
|
|
<select id="querySaleOrderDate" resultType="java.lang.String">
|
|
|
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>
|
|
|
- <if test="endDate!=null and ''!=endDate">
|
|
|
- and CONVERT(varchar(100), dcreatesystime, 120) <=#{endDate}
|
|
|
- </if>
|
|
|
-
|
|
|
</select>
|
|
|
|
|
|
<update id="autoRIdBySale">
|
|
@@ -134,12 +127,6 @@
|
|
|
|
|
|
<select id="queryPurchaseOrderDate" resultType="java.lang.String">
|
|
|
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>
|
|
|
- <if test="endDate!=null and ''!=endDate">
|
|
|
- and CONVERT(varchar(100), cmaketime, 120) <=#{endDate}
|
|
|
- </if>
|
|
|
</select>
|
|
|
|
|
|
<update id="autoRIdByOrder">
|
|
@@ -148,12 +135,6 @@
|
|
|
|
|
|
<select id="queryPayrequestDate" resultType="java.lang.String">
|
|
|
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>
|
|
|
- <if test="endDate!=null and ''!=endDate">
|
|
|
- and CONVERT(varchar(100), dcreatesystime, 120) <=#{endDate}
|
|
|
- </if>
|
|
|
</select>
|
|
|
|
|
|
<update id="autoRIdByPayequest">
|