@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace= "com.xujie.sys.modules.ecss.mapper.CoDelMapper" >
<select id= "searchEcssCoDelNotifyHeader" resultType= "EcssCoDelNotifyHeaderData" >
select a.site,a.bu_no,a.delNo,a.erp_delNo,a.ready_date,a.notifyDate,a.customer_name,a.Destination,a.shipping_mode,a.erp_flag,
select a.site,a.bu_no,a.delNo,a.erp_delNo,a.ready_date,a.notifyDate,a.actualNotifyDate,a. customer_name,a.Destination,a.shipping_mode,a.erp_flag,
a.notify_status,a.remark,a.createDate,a.createBy,a.cmc_invoice,a.updateDate,a.updateBy,dbo.get_bu_desc(a.site,a.bu_no) as buDesc,
a.modifyFlag,a.modify_count as modifyCount,a.overseasShipper,a.overseasAddress,a.cnative,a.salesArea,
a.localShipAddress,a.walMartOrderFlag,a.fscFlag,a.boxSizeFlag,a.templateNo
@ -45,7 +45,7 @@
</select>
<select id= "searchEcssCoDelNotifyHeaderForCK" resultType= "EcssCoDelNotifyHeaderData" >
select a.site,a.bu_no,a.delNo,a.erp_delNo,a.ready_date,a.notifyDate,a.customer_name,a.Destination,a.shipping_mode,a.erp_flag,
select a.site,a.bu_no,a.delNo,a.erp_delNo,a.ready_date,a.notifyDate,a.actualNotifyDate,a. customer_name,a.Destination,a.shipping_mode,a.erp_flag,
a.notify_status,a.remark,a.createDate,a.createBy,a.cmc_invoice,a.updateDate,a.updateBy,dbo.get_bu_desc(a.site,a.bu_no) as buDesc,a.walMartOrderFlag,
a.modifyFlag,a.modify_count as modifyCount,ISNULL(a.export_flag,'N') as exportFlag,a.fscFlag,a.boxSizeFlag,a.totalVolume
from ecss_CoDelNotifyHeader a
@ -92,7 +92,7 @@
order by a.createDate desc ,a.delNo desc
</select>
<select id= "searchEcssCoDelNotifyHeaderForDanZheng" resultType= "EcssCoDelNotifyHeaderData" >
select a.site,a.bu_no,a.delNo,a.erp_delNo,a.ready_date,a.notifyDate,a.customer_name,a.Destination,a.shipping_mode,a.erp_flag,
select a.site,a.bu_no,a.delNo,a.erp_delNo,a.ready_date,a.notifyDate,a.actualNotifyDate,a. customer_name,a.Destination,a.shipping_mode,a.erp_flag,
a.notify_status,a.remark,a.createDate,a.createBy,a.cmc_invoice,a.updateDate,a.updateBy,dbo.get_bu_desc(a.site,a.bu_no) as buDesc
from ecss_CoDelNotifyHeader a
left join accessBu D on A.site=D.site and A.bu_no=d.bu_no and D.username=#{query.username}
@ -129,7 +129,7 @@
order by a.createDate desc ,a.delNo desc
</select>
<select id= "checkEcssCoDelNotifyHeaderByDelNo" resultType= "EcssCoDelNotifyHeaderData" >
select a.site,a.bu_no,a.delNo,a.erp_delNo,a.ready_date,a.notifyDate,a.customer_name,a.Destination,a.shipping_mode,a.erp_flag,
select a.site,a.bu_no,a.delNo,a.erp_delNo,a.ready_date,a.notifyDate,a.actualNotifyDate,a. customer_name,a.Destination,a.shipping_mode,a.erp_flag,
a.notify_status,a.remark,a.createDate,a.createBy,a.cmc_invoice,a.updateDate,a.updateBy,dbo.get_bu_desc(a.site,a.bu_no) as buDesc
,a.overseasShipper,a.overseasAddress,a.cnative,a.localShipAddress,a.salesArea,a.walMartOrderFlag,a.fscFlag,a.boxSizeFlag,a.templateNo
from ecss_CoDelNotifyHeader a
@ -231,7 +231,7 @@
</select>
<update id= "updateEcssDelHeader" >
update ecss_CoDelNotifyHeader set ready_date=#{readyDate,jdbcType=TIMESTAMP} ,customer_name=#{customerName,jdbcType=NVARCHAR},
update ecss_CoDelNotifyHeader set notifyDate=#{notifyDate,jdbcType=TIMESTAMP} , ready_date=#{readyDate,jdbcType=TIMESTAMP} ,customer_name=#{customerName,jdbcType=NVARCHAR},
Destination=#{destination,jdbcType=NVARCHAR},shipping_mode=#{shippingMode},modifyFlag=#{modifyFlag},export_flag='N',
remark=#{remark,jdbcType=NVARCHAR} ,cmc_invoice=#{cmcInvoice},overseasShipper=#{overseasShipper,jdbcType=NVARCHAR} ,overseasAddress=#{overseasAddress,jdbcType=NVARCHAR}
where site=#{site} and delNo=#{delNo}
@ -345,11 +345,11 @@
</update>
<update id= "confirmEcssDel" >
update ecss_CoDelNotifyHeader set notify_status=#{notifyStatus} ,notifyDate=#{n otifyDate,jdbcType=TIMESTAMP} where site=#{site} and delNo=#{delNo}
update ecss_CoDelNotifyHeader set notify_status=#{notifyStatus} ,actualNotifyDate=#{actualN otifyDate,jdbcType=TIMESTAMP} where site=#{site} and delNo=#{delNo}
</update>
<update id= "updateEcssDel" >
update ecss_CoDelNotifyHeader set ready_date=#{readyDate,jdbcType=TIMESTAMP},notifyDate=#{n otifyDate,jdbcType=TIMESTAMP},
update ecss_CoDelNotifyHeader set ready_date=#{readyDate,jdbcType=TIMESTAMP},actualNotifyDate=#{actualN otifyDate,jdbcType=TIMESTAMP},
modifyFlag=1,export_flag='N',updateBy=#{updateBy},updateDate=GetDate()
where site=#{site} and delNo=#{delNo}
</update>