|
|
@@ -400,7 +400,7 @@
|
|
|
select sa_code from sale where IFNULL(sa_sendstatuscode,' ')='CLOSE' and sa_id=#{id}
|
|
|
</select>
|
|
|
<select id="validateCustAudit" parameterType="com.usoftchina.saas.commons.dto.DocBaseDTO" resultType="java.lang.String">
|
|
|
- select GROUP_CONCAT(sa_code) from sale left join customer on cu_id=sa_custid where IFNULL(sa_statuscode,' ')='AUDITED' and IFNULL(cu_statuscode,' ')='BANNED' and sa_id in
|
|
|
+ select GROUP_CONCAT(sa_code) from sale left join customer on cu_id=sa_custid where IFNULL(cu_statuscode,' ')='BANNED' and sa_id in
|
|
|
<foreach collection="list" item="item" open="(" close=")" separator=",">
|
|
|
#{item.id}
|
|
|
</foreach>
|
|
|
@@ -449,7 +449,7 @@
|
|
|
and purchasedetail.companyid= #{companyid}
|
|
|
</select>
|
|
|
<select id="checkCustomer" parameterType="long" resultType="integer">
|
|
|
- select count(1) from sale left join customer on sa_custid=cu_id where cu_statuscode='CLOSE' and sa_id=#{id}
|
|
|
+ select count(1) from sale left join customer on sa_custid=cu_id where cu_statuscode='BANNED' and sa_id=#{id}
|
|
|
</select>
|
|
|
<update id="updateAudit">
|
|
|
update sale set sa_status=#{status},sa_statuscode=#{statuscode},sa_auditman=#{name},sa_auditdate=#{format} where sa_id=#{id}
|