diff --git a/service/src/main/java/com/hzya/frame/report/lets/dao/ITocofsReturngoodsDao.java b/service/src/main/java/com/hzya/frame/report/lets/dao/ITocofsReturngoodsDao.java new file mode 100644 index 00000000..76718293 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/dao/ITocofsReturngoodsDao.java @@ -0,0 +1,13 @@ +package com.hzya.frame.report.lets.dao; + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.report.lets.entity.TocofsReturngoodsEntity; + +/** + * OFS售后入库单(tocofs_returngoods: table)表数据库访问层 + * + * @author makejava + * @since 2024-09-13 11:58:10 + */ +public interface ITocofsReturngoodsDao extends IBaseDao { +} \ No newline at end of file diff --git a/service/src/main/java/com/hzya/frame/report/lets/dao/ITocofsReturngoodsDetailedDao.java b/service/src/main/java/com/hzya/frame/report/lets/dao/ITocofsReturngoodsDetailedDao.java new file mode 100644 index 00000000..0b8d4ce5 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/dao/ITocofsReturngoodsDetailedDao.java @@ -0,0 +1,15 @@ +package com.hzya.frame.report.lets.dao; + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.report.lets.entity.TocofsReturngoodsDetailedEntity; + +import java.util.List; + +/** + * root(tocofs_returngoods_detailed: table)表数据库访问层 + * + * @author makejava + * @since 2024-09-13 11:58:26 + */ +public interface ITocofsReturngoodsDetailedDao extends IBaseDao { +} \ No newline at end of file diff --git a/service/src/main/java/com/hzya/frame/report/lets/dao/ITocofsSaleoutDao.java b/service/src/main/java/com/hzya/frame/report/lets/dao/ITocofsSaleoutDao.java new file mode 100644 index 00000000..b90ec02c --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/dao/ITocofsSaleoutDao.java @@ -0,0 +1,16 @@ +package com.hzya.frame.report.lets.dao; + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.report.lets.entity.TocofsSaleoutEntity; + +import java.util.List; + +/** + * O出库单表头(TOC、TOB业务底表)(tocofs_saleout: table)表数据库访问层 + * + * @author makejava + * @since 2024-09-04 17:48:16 + */ +public interface ITocofsSaleoutDao extends IBaseDao { +} + diff --git a/service/src/main/java/com/hzya/frame/report/lets/dao/ITocofsSaleoutDetailedDao.java b/service/src/main/java/com/hzya/frame/report/lets/dao/ITocofsSaleoutDetailedDao.java new file mode 100644 index 00000000..20df612b --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/dao/ITocofsSaleoutDetailedDao.java @@ -0,0 +1,16 @@ +package com.hzya.frame.report.lets.dao; + +import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.report.lets.entity.TocofsSaleoutDetailedEntity; + +import java.util.List; + +/** + * O出库单明细表(TOC、TOB业务底表)(tocofs_saleout_detailed: table)表数据库访问层 + * + * @author makejava + * @since 2024-09-04 17:48:28 + */ +public interface ITocofsSaleoutDetailedDao extends IBaseDao { +} + diff --git a/service/src/main/java/com/hzya/frame/report/lets/dao/impl/TocofsReturngoodsDaoImpl.java b/service/src/main/java/com/hzya/frame/report/lets/dao/impl/TocofsReturngoodsDaoImpl.java new file mode 100644 index 00000000..e0507e64 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/dao/impl/TocofsReturngoodsDaoImpl.java @@ -0,0 +1,16 @@ +package com.hzya.frame.report.lets.dao.impl; + +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.report.lets.dao.ITocofsReturngoodsDao; +import com.hzya.frame.report.lets.entity.TocofsReturngoodsEntity; +import org.springframework.stereotype.Repository; + +/** + * OFS售后入库单(TocofsReturngoods)表数据库访问层 + * + * @author makejava + * @since 2024-09-13 11:58:10 + */ +@Repository(value = "tocofsReturngoodsDaoImplReport") +public class TocofsReturngoodsDaoImpl extends MybatisGenericDao implements ITocofsReturngoodsDao { +} \ No newline at end of file diff --git a/service/src/main/java/com/hzya/frame/report/lets/dao/impl/TocofsReturngoodsDetailedDaoImpl.java b/service/src/main/java/com/hzya/frame/report/lets/dao/impl/TocofsReturngoodsDetailedDaoImpl.java new file mode 100644 index 00000000..16ff1f9a --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/dao/impl/TocofsReturngoodsDetailedDaoImpl.java @@ -0,0 +1,19 @@ +package com.hzya.frame.report.lets.dao.impl; + +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.report.lets.dao.ITocofsReturngoodsDetailedDao; +import com.hzya.frame.report.lets.entity.TocofsReturngoodsDetailedEntity; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * root(TocofsReturngoodsDetailed)表数据库访问层 + * + * @author makejava + * @since 2024-09-13 11:58:26 + */ +@Repository(value = "tocofsReturngoodsDetailedDaoImplReport") +public class TocofsReturngoodsDetailedDaoImpl extends MybatisGenericDao implements ITocofsReturngoodsDetailedDao { +} + diff --git a/service/src/main/java/com/hzya/frame/report/lets/dao/impl/TocofsSaleoutDaoImpl.java b/service/src/main/java/com/hzya/frame/report/lets/dao/impl/TocofsSaleoutDaoImpl.java new file mode 100644 index 00000000..5c35daf7 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/dao/impl/TocofsSaleoutDaoImpl.java @@ -0,0 +1,19 @@ +package com.hzya.frame.report.lets.dao.impl; + +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.report.lets.dao.ITocofsSaleoutDao; +import com.hzya.frame.report.lets.entity.TocofsSaleoutEntity; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * O出库单表头(TOC、TOB业务底表)(TocofsSaleout)表数据库访问层 + * + * @author makejava + * @since 2024-09-04 17:48:16 + */ +@Repository(value = "tocofsSaleoutDaoImplReport") +public class TocofsSaleoutDaoImpl extends MybatisGenericDao implements ITocofsSaleoutDao { +} + diff --git a/service/src/main/java/com/hzya/frame/report/lets/dao/impl/TocofsSaleoutDetailedDaoImpl.java b/service/src/main/java/com/hzya/frame/report/lets/dao/impl/TocofsSaleoutDetailedDaoImpl.java new file mode 100644 index 00000000..dd8dd923 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/dao/impl/TocofsSaleoutDetailedDaoImpl.java @@ -0,0 +1,16 @@ +package com.hzya.frame.report.lets.dao.impl; + +import com.hzya.frame.basedao.dao.MybatisGenericDao; +import com.hzya.frame.report.lets.dao.ITocofsSaleoutDetailedDao; +import com.hzya.frame.report.lets.entity.TocofsSaleoutDetailedEntity; +import org.springframework.stereotype.Repository; + +/** + * O出库单明细表(TOC、TOB业务底表)(TocofsSaleoutDetailed)表数据库访问层 + * + * @author makejava + * @since 2024-09-04 17:48:28 + */ +@Repository(value = "tocofsSaleoutDetailedDaoImplReport") +public class TocofsSaleoutDetailedDaoImpl extends MybatisGenericDao implements ITocofsSaleoutDetailedDao { +} \ No newline at end of file diff --git a/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsReturngoodsDetailedEntity.java b/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsReturngoodsDetailedEntity.java new file mode 100644 index 00000000..b50f8d9f --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsReturngoodsDetailedEntity.java @@ -0,0 +1,388 @@ +package com.hzya.frame.report.lets.entity; + +import com.hzya.frame.web.entity.BaseEntity; +import lombok.Data; + +/** + * root(TocofsReturngoodsDetailed)实体类 + * + * @author makejava + * @since 2024-09-13 11:58:26 + */ +@Data +public class TocofsReturngoodsDetailedEntity extends BaseEntity { + + /** + * 81159 + */ + private String receiptid; + /** + * LETS-RE2024071600000001 + */ + private String receiptcode; + /** + * 128 + */ + private String reforderid; + /** + * 299 + */ + private String reforderdetailid; + /** + * LETS-SO2024070500000001 + */ + private String sourceordercode; + private String sourcelinenum; + /** + * LETS + */ + private String clientcode; + /** + * SHLZ + */ + private String companycode; + /** + * intoyou-tmxs + */ + private String facilitycode; + /** + * 6973391730617 + */ + private String skucode; + /** + * INTOYOU心慕与你水感裸雾唇釉W01 + */ + private String skuname; + /** + * 2 + */ + private String requestqty; + /** + * 2 + */ + private String receivedqty; + /** + * 0 + */ + private String openqty; + /** + * EA + */ + private String quantityum; + /** + * 0 + */ + private String totalweight; + /** + * 0 + */ + private String totalvolume; + /** + * 0 + */ + private String totalvolumeweight; + /** + * 118 + */ + private String totalamount; + /** + * G + */ + private String weightum; + /** + * CM3 + */ + private String volumeum; + /** + * AVAILABLE + */ + private String inventorysts; + /** + * 30796 + */ + private String intransinvid; + /** + * 0 + */ + private String closed; + /** + * 2024-07-16 15:35:36 + */ + private String created; + /** + * admin + */ + private String createdby; + /** + * 2024-07-16 16:44:01 + */ + private String lastupdated; + /** + * api + */ + private String lastupdatedby; + /** + * 59 + */ + private String discountprice; + /** + * 主表主键 + */ + private String maintableid; + /** + * 报错内容 + */ + private String newtransmitinfo; + /** + * 推送时间 + */ + private String newpushdate; + /** + * 是否成功 + */ + private String newstate; + /** + * 下游系统编码 + */ + private String newsystemnumber; + /** + * 下游系统主键 + */ + private String newsystemprimary; + /** + * 报错内容 + */ + private String newtransmitinfo2; + /** + * 推送时间 + */ + private String newpushdate2; + /** + * 是否成功 + */ + private String newstate2; + /** + * 下游系统编码 + */ + private String newsystemnumber2; + /** + * 下游系统主键 + */ + private String newsystemprimary2; + /** + * 报错内容 + */ + private String newtransmitinfo3; + /** + * 推送时间 + */ + private String newpushdate3; + /** + * 是否成功 + */ + private String newstate3; + /** + * 下游系统编码 + */ + private String newsystemnumber3; + /** + * 下游系统主键 + */ + private String newsystemprimary3; + /** + * 报错内容 + */ + private String newtransmitinfo4; + /** + * 推送时间 + */ + private String newpushdate4; + /** + * 是否成功 + */ + private String newstate4; + /** + * 下游系统编码 + */ + private String newsystemnumber4; + /** + * 下游系统主键 + */ + private String newsystemprimary4; + /** + * 业务日期-入库时间 + */ + private String businessdate; + /** + * 业务日期-退款完成时间 + */ + private String refundedat; + /** + * 业务类型(TOC退货orTOB退货) + */ + private String businesstype; + /** + * 自定义项 + */ + private String def1; + /** + * 自定义项 + */ + private String def2; + /** + * 自定义项 + */ + private String def3; + /** + * 自定义项 + */ + private String def4; + /** + * 自定义项 + */ + private String def5; + /** + * 自定义项 + */ + private String def6; + /** + * 自定义项 + */ + private String def7; + /** + * 自定义项 + */ + private String def8; + /** + * 自定义项 + */ + private String def9; + /** + * 自定义项 + */ + private String def10; + /** + * 自定义项 + */ + private String def11; + /** + * 自定义项 + */ + private String def12; + /** + * 自定义项 + */ + private String def13; + /** + * 自定义项 + */ + private String def14; + /** + * 自定义项 + */ + private String def15; + /** + * 自定义项 + */ + private String def16; + /** + * 自定义项 + */ + private String def17; + /** + * 自定义项 + */ + private String def18; + /** + * 自定义项 + */ + private String def19; + /** + * 自定义项 + */ + private String def20; + /** + * 自定义项 + */ + private String def21; + /** + * 自定义项 + */ + private String def22; + /** + * 自定义项 + */ + private String def23; + /** + * 自定义项 + */ + private String def24; + /** + * 自定义项 + */ + private String def25; + /** + * 自定义项 + */ + private String def26; + /** + * 自定义项 + */ + private String def27; + /** + * 自定义项 + */ + private String def28; + /** + * 自定义项 + */ + private String def29; + /** + * 自定义项 + */ + private String def30; + /** + * 自定义项 + */ + private String def31; + /** + * 自定义项 + */ + private String def32; + /** + * 自定义项 + */ + private String def33; + /** + * 自定义项 + */ + private String def34; + /** + * 自定义项 + */ + private String def35; + /** + * 自定义项 + */ + private String def36; + /** + * 自定义项 + */ + private String def37; + /** + * 自定义项 + */ + private String def38; + /** + * 自定义项 + */ + private String def39; + /** + * 自定义项 + */ + private String def40; + /** + * 补充的查询条件 + */ + private String ids; +} \ No newline at end of file diff --git a/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsReturngoodsDetailedEntity.xml b/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsReturngoodsDetailedEntity.xml new file mode 100644 index 00000000..324bc2ce --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsReturngoodsDetailedEntity.xml @@ -0,0 +1,1185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id + ,receiptId + ,receiptCode + ,refOrderId + ,refOrderDetailId + ,sourceOrderCode + ,sourceLineNum + ,clientCode + ,companyCode + ,facilityCode + ,skuCode + ,skuName + ,requestQty + ,receivedQty + ,openQty + ,quantityUM + ,totalWeight + ,totalVolume + ,totalVolumeWeight + ,totalAmount + ,weightUM + ,volumeUM + ,inventorySts + ,inTransInvId + ,closed + ,created + ,createdBy + ,lastUpdated + ,lastUpdatedBy + ,discountPrice + ,mainTableId + ,newTransmitInfo + ,newPushDate + ,newState + ,newSystemNumber + ,newSystemPrimary + ,newTransmitInfo2 + ,newPushDate2 + ,newState2 + ,newSystemNumber2 + ,newSystemPrimary2 + ,newTransmitInfo3 + ,newPushDate3 + ,newState3 + ,newSystemNumber3 + ,newSystemPrimary3 + ,newTransmitInfo4 + ,newPushDate4 + ,newState4 + ,newSystemNumber4 + ,newSystemPrimary4 + ,businessDate + ,refundedAt + ,businessType + ,def1 + ,def2 + ,def3 + ,def4 + ,def5 + ,def6 + ,def7 + ,def8 + ,def9 + ,def10 + ,def11 + ,def12 + ,def13 + ,def14 + ,def15 + ,def16 + ,def17 + ,def18 + ,def19 + ,def20 + ,def21 + ,def22 + ,def23 + ,def24 + ,def25 + ,def26 + ,def27 + ,def28 + ,def29 + ,def30 + ,def31 + ,def32 + ,def33 + ,def34 + ,def35 + ,def36 + ,def37 + ,def38 + ,def39 + ,def40 + + + + + + + + + + + + + + + + + insert into tocofs_returngoods_detailed( + + id , + receiptId , + receiptCode , + refOrderId , + refOrderDetailId , + sourceOrderCode , + sourceLineNum , + clientCode , + companyCode , + facilityCode , + skuCode , + skuName , + requestQty , + receivedQty , + openQty , + quantityUM , + totalWeight , + totalVolume , + totalVolumeWeight , + totalAmount , + weightUM , + volumeUM , + inventorySts , + inTransInvId , + closed , + created , + createdBy , + lastUpdated , + lastUpdatedBy , + discountPrice , + mainTableId , + newTransmitInfo , + newPushDate , + newState , + newSystemNumber , + newSystemPrimary , + newTransmitInfo2 , + newPushDate2 , + newState2 , + newSystemNumber2 , + newSystemPrimary2 , + newTransmitInfo3 , + newPushDate3 , + newState3 , + newSystemNumber3 , + newSystemPrimary3 , + newTransmitInfo4 , + newPushDate4 , + newState4 , + newSystemNumber4 , + newSystemPrimary4 , + businessDate , + refundedAt , + businessType , + def1 , + def2 , + def3 , + def4 , + def5 , + def6 , + def7 , + def8 , + def9 , + def10 , + def11 , + def12 , + def13 , + def14 , + def15 , + def16 , + def17 , + def18 , + def19 , + def20 , + def21 , + def22 , + def23 , + def24 , + def25 , + def26 , + def27 , + def28 , + def29 , + def30 , + def31 , + def32 , + def33 , + def34 , + def35 , + def36 , + def37 , + def38 , + def39 , + def40 , + sorts, + sts, + + )values( + + #{id} , + #{receiptid} , + #{receiptcode} , + #{reforderid} , + #{reforderdetailid} , + #{sourceordercode} , + #{sourcelinenum} , + #{clientcode} , + #{companycode} , + #{facilitycode} , + #{skucode} , + #{skuname} , + #{requestqty} , + #{receivedqty} , + #{openqty} , + #{quantityum} , + #{totalweight} , + #{totalvolume} , + #{totalvolumeweight} , + #{totalamount} , + #{weightum} , + #{volumeum} , + #{inventorysts} , + #{intransinvid} , + #{closed} , + #{created} , + #{createdby} , + #{lastupdated} , + #{lastupdatedby} , + #{discountprice} , + #{maintableid} , + #{newtransmitinfo} , + #{newpushdate} , + #{newstate} , + #{newsystemnumber} , + #{newsystemprimary} , + #{newtransmitinfo2} , + #{newpushdate2} , + #{newstate2} , + #{newsystemnumber2} , + #{newsystemprimary2} , + #{newtransmitinfo3} , + #{newpushdate3} , + #{newstate3} , + #{newsystemnumber3} , + #{newsystemprimary3} , + #{newtransmitinfo4} , + #{newpushdate4} , + #{newstate4} , + #{newsystemnumber4} , + #{newsystemprimary4} , + #{businessdate} , + #{refundedat} , + #{businesstype} , + #{def1} , + #{def2} , + #{def3} , + #{def4} , + #{def5} , + #{def6} , + #{def7} , + #{def8} , + #{def9} , + #{def10} , + #{def11} , + #{def12} , + #{def13} , + #{def14} , + #{def15} , + #{def16} , + #{def17} , + #{def18} , + #{def19} , + #{def20} , + #{def21} , + #{def22} , + #{def23} , + #{def24} , + #{def25} , + #{def26} , + #{def27} , + #{def28} , + #{def29} , + #{def30} , + #{def31} , + #{def32} , + #{def33} , + #{def34} , + #{def35} , + #{def36} , + #{def37} , + #{def38} , + #{def39} , + #{def40} , + (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from tocofs_returngoods_detailed a WHERE a.sts = 'Y' ), + 'Y', + + ) + + + + + insert into tocofs_returngoods_detailed(receiptId, receiptCode, refOrderId, refOrderDetailId, sourceOrderCode, sourceLineNum, clientCode, companyCode, facilityCode, skuCode, skuName, requestQty, receivedQty, openQty, quantityUM, totalWeight, totalVolume, totalVolumeWeight, totalAmount, weightUM, volumeUM, inventorySts, inTransInvId, closed, created, createdBy, lastUpdated, lastUpdatedBy, discountPrice, mainTableId, newTransmitInfo, newPushDate, newState, newSystemNumber, newSystemPrimary, newTransmitInfo2, newPushDate2, newState2, newSystemNumber2, newSystemPrimary2, newTransmitInfo3, newPushDate3, newState3, newSystemNumber3, newSystemPrimary3, newTransmitInfo4, newPushDate4, newState4, newSystemNumber4, newSystemPrimary4, businessDate, refundedAt, businessType, def1, def2, def3, def4, def5, def6, def7, def8, def9, def10, def11, def12, def13, def14, def15, def16, def17, def18, def19, def20, def21, def22, def23, def24, def25, def26, def27, def28, def29, def30, def31, def32, def33, def34, def35, def36, def37, def38, def39, def40) + values + + (#{entity.receiptid},#{entity.receiptcode},#{entity.reforderid},#{entity.reforderdetailid},#{entity.sourceordercode},#{entity.sourcelinenum},#{entity.clientcode},#{entity.companycode},#{entity.facilitycode},#{entity.skucode},#{entity.skuname},#{entity.requestqty},#{entity.receivedqty},#{entity.openqty},#{entity.quantityum},#{entity.totalweight},#{entity.totalvolume},#{entity.totalvolumeweight},#{entity.totalamount},#{entity.weightum},#{entity.volumeum},#{entity.inventorysts},#{entity.intransinvid},#{entity.closed},#{entity.created},#{entity.createdby},#{entity.lastupdated},#{entity.lastupdatedby},#{entity.discountprice},#{entity.maintableid},#{entity.newtransmitinfo},#{entity.newpushdate},#{entity.newstate},#{entity.newsystemnumber},#{entity.newsystemprimary},#{entity.newtransmitinfo2},#{entity.newpushdate2},#{entity.newstate2},#{entity.newsystemnumber2},#{entity.newsystemprimary2},#{entity.newtransmitinfo3},#{entity.newpushdate3},#{entity.newstate3},#{entity.newsystemnumber3},#{entity.newsystemprimary3},#{entity.newtransmitinfo4},#{entity.newpushdate4},#{entity.newstate4},#{entity.newsystemnumber4},#{entity.newsystemprimary4},#{entity.businessdate},#{entity.refundedat},#{entity.businesstype},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},#{entity.def11},#{entity.def12},#{entity.def13},#{entity.def14},#{entity.def15},#{entity.def16},#{entity.def17},#{entity.def18},#{entity.def19},#{entity.def20},#{entity.def21},#{entity.def22},#{entity.def23},#{entity.def24},#{entity.def25},#{entity.def26},#{entity.def27},#{entity.def28},#{entity.def29},#{entity.def30},#{entity.def31},#{entity.def32},#{entity.def33},#{entity.def34},#{entity.def35},#{entity.def36},#{entity.def37},#{entity.def38},#{entity.def39},#{entity.def40}) + + + + + + insert into tocofs_returngoods_detailed(id,receiptId, receiptCode, refOrderId, refOrderDetailId, sourceOrderCode, sourceLineNum, clientCode, companyCode, facilityCode, skuCode, skuName, requestQty, receivedQty, openQty, quantityUM, totalWeight, totalVolume, totalVolumeWeight, totalAmount, weightUM, volumeUM, inventorySts, inTransInvId, closed, created, createdBy, lastUpdated, lastUpdatedBy, discountPrice, mainTableId, businessDate, refundedAt, businessType) + values + + (#{entity.id},#{entity.receiptid},#{entity.receiptcode},#{entity.reforderid},#{entity.reforderdetailid},#{entity.sourceordercode},#{entity.sourcelinenum},#{entity.clientcode},#{entity.companycode},#{entity.facilitycode},#{entity.skucode},#{entity.skuname},#{entity.requestqty},#{entity.receivedqty},#{entity.openqty},#{entity.quantityum},#{entity.totalweight},#{entity.totalvolume},#{entity.totalvolumeweight},#{entity.totalamount},#{entity.weightum},#{entity.volumeum},#{entity.inventorysts},#{entity.intransinvid},#{entity.closed},#{entity.created},#{entity.createdby},#{entity.lastupdated},#{entity.lastupdatedby},#{entity.discountprice},#{entity.maintableid},#{entity.businessdate},#{entity.refundedat},#{entity.businesstype}) + + on duplicate key update + id = values(id), + receiptId = values(receiptId), + receiptCode = values(receiptCode), + refOrderId = values(refOrderId), + refOrderDetailId = values(refOrderDetailId), + sourceOrderCode = values(sourceOrderCode), + sourceLineNum = values(sourceLineNum), + clientCode = values(clientCode), + companyCode = values(companyCode), + facilityCode = values(facilityCode), + skuCode = values(skuCode), + skuName = values(skuName), + requestQty = values(requestQty), + receivedQty = values(receivedQty), + openQty = values(openQty), + quantityUM = values(quantityUM), + totalWeight = values(totalWeight), + totalVolume = values(totalVolume), + totalVolumeWeight = values(totalVolumeWeight), + totalAmount = values(totalAmount), + weightUM = values(weightUM), + volumeUM = values(volumeUM), + inventorySts = values(inventorySts), + inTransInvId = values(inTransInvId), + closed = values(closed), + created = values(created), + createdBy = values(createdBy), + lastUpdated = values(lastUpdated), + lastUpdatedBy = values(lastUpdatedBy), + discountPrice = values(discountPrice), + mainTableId = values(mainTableId), + businessDate = values(businessDate), + refundedAt = values(refundedAt), + businessType = values(businessType) + + + + + insert into tocofs_returngoods_detailed(id,newPushDate3,newTransmitInfo3,newState3,newSystemNumber3,newSystemPrimary3) + values + + (#{entity.id},#{entity.newpushdate3},#{entity.newtransmitinfo3},#{entity.newstate3},#{entity.newsystemnumber3},#{entity.newsystemprimary3}) + + on duplicate key update + id = values(id), + newPushDate3 = values(newPushDate3), + newTransmitInfo3 = values(newTransmitInfo3), + newState3 = values(newState3), + newSystemNumber3 = values(newSystemNumber3), + newSystemPrimary3 = values(newSystemPrimary3) + + + + + insert into tocofs_returngoods_detailed(id,newPushDate4,newTransmitInfo4,newState4,newSystemNumber4,newSystemPrimary4) + values + + (#{entity.id},#{entity.newpushdate4},#{entity.newtransmitinfo4},#{entity.newstate4},#{entity.newsystemnumber4},#{entity.newsystemprimary4}) + + on duplicate key update + id = values(id), + newPushDate4 = values(newPushDate4), + newTransmitInfo4 = values(newTransmitInfo4), + newState4 = values(newState4), + newSystemNumber4 = values(newSystemNumber4), + newSystemPrimary4 = values(newSystemPrimary4) + + + + + insert into tocofs_returngoods_detailed(id,newPushDate,newTransmitInfo,newState,newSystemNumber,newSystemPrimary) + values + + (#{entity.id},#{entity.newpushdate},#{entity.newtransmitinfo},#{entity.newstate},#{entity.newsystemnumber},#{entity.newsystemprimary}) + + on duplicate key update + id = values(id), + newPushDate = values(newPushDate), + newTransmitInfo = values(newTransmitInfo), + newState = values(newState), + newSystemNumber = values(newSystemNumber), + newSystemPrimary = values(newSystemPrimary) + + + + + insert into tocofs_returngoods_detailed(id,newPushDate,newTransmitInfo,newState) + values + + (#{entity.id},#{entity.newpushdate},#{entity.newtransmitinfo},#{entity.newstate}) + + on duplicate key update + id = values(id), + newPushDate = values(newPushDate), + newTransmitInfo = values(newTransmitInfo), + newState = values(newState) + + + + + insert into tocofs_returngoods_detailed(id,newPushDate2,newTransmitInfo2,newState2,newSystemNumber2,newSystemPrimary2) + values + + (#{entity.id},#{entity.newpushdate2},#{entity.newtransmitinfo2},#{entity.newstate2},#{entity.newsystemnumber2},#{entity.newsystemprimary2}) + + on duplicate key update + id = values(id), + newPushDate2 = values(newPushDate2), + newTransmitInfo2 = values(newTransmitInfo2), + newState2 = values(newState2), + newSystemNumber2 = values(newSystemNumber2), + newSystemPrimary2 = values(newSystemPrimary2) + + + + + insert into tocofs_returngoods_detailed(id,newPushDate2,newTransmitInfo2,newState2) + values + + (#{entity.id},#{entity.newpushdate2},#{entity.newtransmitinfo2},#{entity.newstate2}) + + on duplicate key update + id = values(id), + newPushDate2 = values(newPushDate2), + newTransmitInfo2 = values(newTransmitInfo2), + newState2 = values(newState2) + + + + + +update tocofs_returngoods_detailed set + + receiptId = #{receiptid}, + receiptCode = #{receiptcode}, + refOrderId = #{reforderid}, + refOrderDetailId = #{reforderdetailid}, + sourceOrderCode = #{sourceordercode}, + sourceLineNum = #{sourcelinenum}, + clientCode = #{clientcode}, + companyCode = #{companycode}, + facilityCode = #{facilitycode}, + skuCode = #{skucode}, + skuName = #{skuname}, + requestQty = #{requestqty}, + receivedQty = #{receivedqty}, + openQty = #{openqty}, + quantityUM = #{quantityum}, + totalWeight = #{totalweight}, + totalVolume = #{totalvolume}, + totalVolumeWeight = #{totalvolumeweight}, + totalAmount = #{totalamount}, + weightUM = #{weightum}, + volumeUM = #{volumeum}, + inventorySts = #{inventorysts}, + inTransInvId = #{intransinvid}, + closed = #{closed}, + created = #{created}, + createdBy = #{createdby}, + lastUpdated = #{lastupdated}, + lastUpdatedBy = #{lastupdatedby}, + discountPrice = #{discountprice}, + mainTableId = #{maintableid}, + newTransmitInfo = #{newtransmitinfo}, + newPushDate = #{newpushdate}, + newState = #{newstate}, + newSystemNumber = #{newsystemnumber}, + newSystemPrimary = #{newsystemprimary}, + newTransmitInfo2 = #{newtransmitinfo2}, + newPushDate2 = #{newpushdate2}, + newState2 = #{newstate2}, + newSystemNumber2 = #{newsystemnumber2}, + newSystemPrimary2 = #{newsystemprimary2}, + newTransmitInfo3 = #{newtransmitinfo3}, + newPushDate3 = #{newpushdate3}, + newState3 = #{newstate3}, + newSystemNumber3 = #{newsystemnumber3}, + newSystemPrimary3 = #{newsystemprimary3}, + newTransmitInfo4 = #{newtransmitinfo4}, + newPushDate4 = #{newpushdate4}, + newState4 = #{newstate4}, + newSystemNumber4 = #{newsystemnumber4}, + newSystemPrimary4 = #{newsystemprimary4}, + businessDate = #{businessdate}, + refundedAt = #{refundedat}, + businessType = #{businesstype}, + def1 = #{def1}, + def2 = #{def2}, + def3 = #{def3}, + def4 = #{def4}, + def5 = #{def5}, + def6 = #{def6}, + def7 = #{def7}, + def8 = #{def8}, + def9 = #{def9}, + def10 = #{def10}, + def11 = #{def11}, + def12 = #{def12}, + def13 = #{def13}, + def14 = #{def14}, + def15 = #{def15}, + def16 = #{def16}, + def17 = #{def17}, + def18 = #{def18}, + def19 = #{def19}, + def20 = #{def20}, + def21 = #{def21}, + def22 = #{def22}, + def23 = #{def23}, + def24 = #{def24}, + def25 = #{def25}, + def26 = #{def26}, + def27 = #{def27}, + def28 = #{def28}, + def29 = #{def29}, + def30 = #{def30}, + def31 = #{def31}, + def32 = #{def32}, + def33 = #{def33}, + def34 = #{def34}, + def35 = #{def35}, + def36 = #{def36}, + def37 = #{def37}, + def38 = #{def38}, + def39 = #{def39}, + def40 = #{def40}, + +where id = #{id} + + + +update tocofs_returngoods_detailed set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where id = #{id} + + + +update tocofs_returngoods_detailed set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and id = #{id} + and receiptId = #{receiptid} + and receiptCode = #{receiptcode} + and refOrderId = #{reforderid} + and refOrderDetailId = #{reforderdetailid} + and sourceOrderCode = #{sourceordercode} + and sourceLineNum = #{sourcelinenum} + and clientCode = #{clientcode} + and companyCode = #{companycode} + and facilityCode = #{facilitycode} + and skuCode = #{skucode} + and skuName = #{skuname} + and requestQty = #{requestqty} + and receivedQty = #{receivedqty} + and openQty = #{openqty} + and quantityUM = #{quantityum} + and totalWeight = #{totalweight} + and totalVolume = #{totalvolume} + and totalVolumeWeight = #{totalvolumeweight} + and totalAmount = #{totalamount} + and weightUM = #{weightum} + and volumeUM = #{volumeum} + and inventorySts = #{inventorysts} + and inTransInvId = #{intransinvid} + and closed = #{closed} + and created = #{created} + and createdBy = #{createdby} + and lastUpdated = #{lastupdated} + and lastUpdatedBy = #{lastupdatedby} + and discountPrice = #{discountprice} + and mainTableId = #{maintableid} + and newTransmitInfo = #{newtransmitinfo} + and newPushDate = #{newpushdate} + and newState = #{newstate} + and newSystemNumber = #{newsystemnumber} + and newSystemPrimary = #{newsystemprimary} + and newTransmitInfo2 = #{newtransmitinfo2} + and newPushDate2 = #{newpushdate2} + and newState2 = #{newstate2} + and newSystemNumber2 = #{newsystemnumber2} + and newSystemPrimary2 = #{newsystemprimary2} + and newTransmitInfo3 = #{newtransmitinfo3} + and newPushDate3 = #{newpushdate3} + and newState3 = #{newstate3} + and newSystemNumber3 = #{newsystemnumber3} + and newSystemPrimary3 = #{newsystemprimary3} + and newTransmitInfo4 = #{newtransmitinfo4} + and newPushDate4 = #{newpushdate4} + and newState4 = #{newstate4} + and newSystemNumber4 = #{newsystemnumber4} + and newSystemPrimary4 = #{newsystemprimary4} + and businessDate = #{businessdate} + and refundedAt = #{refundedat} + and businessType = #{businesstype} + and def1 = #{def1} + and def2 = #{def2} + and def3 = #{def3} + and def4 = #{def4} + and def5 = #{def5} + and def6 = #{def6} + and def7 = #{def7} + and def8 = #{def8} + and def9 = #{def9} + and def10 = #{def10} + and def11 = #{def11} + and def12 = #{def12} + and def13 = #{def13} + and def14 = #{def14} + and def15 = #{def15} + and def16 = #{def16} + and def17 = #{def17} + and def18 = #{def18} + and def19 = #{def19} + and def20 = #{def20} + and def21 = #{def21} + and def22 = #{def22} + and def23 = #{def23} + and def24 = #{def24} + and def25 = #{def25} + and def26 = #{def26} + and def27 = #{def27} + and def28 = #{def28} + and def29 = #{def29} + and def30 = #{def30} + and def31 = #{def31} + and def32 = #{def32} + and def33 = #{def33} + and def34 = #{def34} + and def35 = #{def35} + and def36 = #{def36} + and def37 = #{def37} + and def38 = #{def38} + and def39 = #{def39} + and def40 = #{def40} + and sts='Y' + + + + + delete from tocofs_returngoods_detailed where id = #{id} + + + + diff --git a/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsReturngoodsEntity.java b/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsReturngoodsEntity.java new file mode 100644 index 00000000..51cde118 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsReturngoodsEntity.java @@ -0,0 +1,134 @@ +package com.hzya.frame.report.lets.entity; + +import com.hzya.frame.web.entity.BaseEntity; +import lombok.Data; + +/** + * OFS售后入库单(TocofsReturngoods)实体类 + * + * @author makejava + * @since 2024-09-13 11:58:10 + */ +@Data +public class TocofsReturngoodsEntity extends BaseEntity { + /** + * LETS + */ + private String clientcode; + /** + * SHLZ + */ + private String companycode; + /** + * tm-intoyou + */ + private String storecode; + /** + * intoyou-tmxs + */ + private String facilitycode; + /** + * LETS-RE2024071600000001 + */ + private String code; + /** + * RETURN + */ + private String internalinstructiontype; + /** + * B2C + */ + private String bizchannel; + /** + * 128 + */ + private String reforderid; + /** + * LETS-RO2024071600000001 + */ + private String refordercode; + /** + * RETURN + */ + private String refordertype; + /** + * 1 + */ + private String closed; + /** + * api + */ + private String closedby; + /** + * 900 + */ + private String status; + /** + * 0 + */ + private String allowoverreceive; + /** + * 张三 + */ + private String shipfromattentionto; + /** + * 测试售后流程 + */ + private String shipfromaddress; + /** + * 中国 + */ + private String shipfromcountry; + /** + * 上海市 + */ + private String shipfromstate; + /** + * 上海市 + */ + private String shipfromcity; + /** + * 金山区 + */ + private String shipfromdistrict; + /** + * 17878787878 + */ + private String shipfrompostalcode; + private String shipfrommobile; + private String shipfromemail; + private String totallines; + private String totalqty; + private String totalamount; + private String totalweight; + private String totalvolume; + private String totalvolumeweight; + private String totalfulfillamount; + private String totalfulfillweight; + private String totalfulfillvolume; + private String totalfulfillvolumeweight; + private String totalfulfillqty; + private String totalcases; + private String totalcontainers; + private String closeatqty; + private String quantityum; + private String weightum; + private String volumeum; + private String checkinfrom; + private String checkinto; + private String closedat; + private String sourceplatformcode; + private String sourceordercode; + /** + * 2024-07-16 15:35:36 + */ + private String created; + private String createdby; + private String lastupdated; + private String lastupdatedby; + private String returnwaybillcode; + private String returncarrier; + private String refundedat; + private String refundstatus; +} + diff --git a/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsReturngoodsEntity.xml b/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsReturngoodsEntity.xml new file mode 100644 index 00000000..51fa6b33 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsReturngoodsEntity.xml @@ -0,0 +1,709 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id + ,clientCode + ,companyCode + ,storeCode + ,facilityCode + ,code + ,internalInstructionType + ,bizChannel + ,refOrderId + ,refOrderCode + ,refOrderType + ,closed + ,closedBy + ,status + ,allowOverReceive + ,shipFromAttentionTo + ,shipFromAddress + ,shipFromCountry + ,shipFromState + ,shipFromCity + ,shipFromDistrict + ,shipFromPostalCode + ,shipFromMobile + ,shipFromEmail + ,totalLines + ,totalQty + ,totalAmount + ,totalWeight + ,totalVolume + ,totalVolumeWeight + ,totalFulfillAmount + ,totalFulfillWeight + ,totalFulfillVolume + ,totalFulfillVolumeWeight + ,totalFulfillQty + ,totalCases + ,totalContainers + ,closeAtQty + ,quantityUM + ,weightUM + ,volumeUM + ,checkInFrom + ,checkInTo + ,closedAt + ,sourcePlatformCode + ,sourceOrderCode + ,created + ,createdBy + ,lastUpdated + ,lastUpdatedBy + ,returnWaybillCode + ,returnCarrier + ,refundedAt + ,refundStatus + + + + + + + + + + + + + + + + insert into tocofs_returngoods( + + id , + clientCode , + companyCode , + storeCode , + facilityCode , + code , + internalInstructionType , + bizChannel , + refOrderId , + refOrderCode , + refOrderType , + closed , + closedBy , + status , + allowOverReceive , + shipFromAttentionTo , + shipFromAddress , + shipFromCountry , + shipFromState , + shipFromCity , + shipFromDistrict , + shipFromPostalCode , + shipFromMobile , + shipFromEmail , + totalLines , + totalQty , + totalAmount , + totalWeight , + totalVolume , + totalVolumeWeight , + totalFulfillAmount , + totalFulfillWeight , + totalFulfillVolume , + totalFulfillVolumeWeight , + totalFulfillQty , + totalCases , + totalContainers , + closeAtQty , + quantityUM , + weightUM , + volumeUM , + checkInFrom , + checkInTo , + closedAt , + sourcePlatformCode , + sourceOrderCode , + created , + createdBy , + lastUpdated , + lastUpdatedBy , + returnWaybillCode , + returnCarrier , + refundedAt , + refundStatus , + sorts, + sts, + + )values( + + #{id} , + #{clientcode} , + #{companycode} , + #{storecode} , + #{facilitycode} , + #{code} , + #{internalinstructiontype} , + #{bizchannel} , + #{reforderid} , + #{refordercode} , + #{refordertype} , + #{closed} , + #{closedby} , + #{status} , + #{allowoverreceive} , + #{shipfromattentionto} , + #{shipfromaddress} , + #{shipfromcountry} , + #{shipfromstate} , + #{shipfromcity} , + #{shipfromdistrict} , + #{shipfrompostalcode} , + #{shipfrommobile} , + #{shipfromemail} , + #{totallines} , + #{totalqty} , + #{totalamount} , + #{totalweight} , + #{totalvolume} , + #{totalvolumeweight} , + #{totalfulfillamount} , + #{totalfulfillweight} , + #{totalfulfillvolume} , + #{totalfulfillvolumeweight} , + #{totalfulfillqty} , + #{totalcases} , + #{totalcontainers} , + #{closeatqty} , + #{quantityum} , + #{weightum} , + #{volumeum} , + #{checkinfrom} , + #{checkinto} , + #{closedat} , + #{sourceplatformcode} , + #{sourceordercode} , + #{created} , + #{createdby} , + #{lastupdated} , + #{lastupdatedby} , + #{returnwaybillcode} , + #{returncarrier} , + #{refundedat} , + #{refundstatus} , + (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from tocofs_returngoods a WHERE a.sts = 'Y' ), + 'Y', + + ) + + + + + insert into tocofs_returngoods(clientCode, companyCode, storeCode, facilityCode, code, internalInstructionType, bizChannel, refOrderId, refOrderCode, refOrderType, closed, closedBy, status, allowOverReceive, shipFromAttentionTo, shipFromAddress, shipFromCountry, shipFromState, shipFromCity, shipFromDistrict, shipFromPostalCode, shipFromMobile, shipFromEmail, totalLines, totalQty, totalAmount, totalWeight, totalVolume, totalVolumeWeight, totalFulfillAmount, totalFulfillWeight, totalFulfillVolume, totalFulfillVolumeWeight, totalFulfillQty, totalCases, totalContainers, closeAtQty, quantityUM, weightUM, volumeUM, checkInFrom, checkInTo, closedAt, sourcePlatformCode, sourceOrderCode, created, createdBy, lastUpdated, lastUpdatedBy, returnWaybillCode, returnCarrier, refundedAt, refundStatus, sts) + values + + (#{entity.clientcode},#{entity.companycode},#{entity.storecode},#{entity.facilitycode},#{entity.code},#{entity.internalinstructiontype},#{entity.bizchannel},#{entity.reforderid},#{entity.refordercode},#{entity.refordertype},#{entity.closed},#{entity.closedby},#{entity.status},#{entity.allowoverreceive},#{entity.shipfromattentionto},#{entity.shipfromaddress},#{entity.shipfromcountry},#{entity.shipfromstate},#{entity.shipfromcity},#{entity.shipfromdistrict},#{entity.shipfrompostalcode},#{entity.shipfrommobile},#{entity.shipfromemail},#{entity.totallines},#{entity.totalqty},#{entity.totalamount},#{entity.totalweight},#{entity.totalvolume},#{entity.totalvolumeweight},#{entity.totalfulfillamount},#{entity.totalfulfillweight},#{entity.totalfulfillvolume},#{entity.totalfulfillvolumeweight},#{entity.totalfulfillqty},#{entity.totalcases},#{entity.totalcontainers},#{entity.closeatqty},#{entity.quantityum},#{entity.weightum},#{entity.volumeum},#{entity.checkinfrom},#{entity.checkinto},#{entity.closedat},#{entity.sourceplatformcode},#{entity.sourceordercode},#{entity.created},#{entity.createdby},#{entity.lastupdated},#{entity.lastupdatedby},#{entity.returnwaybillcode},#{entity.returncarrier},#{entity.refundedat},#{entity.refundstatus}, 'Y') + + + + + + insert into tocofs_returngoods(id,clientCode, companyCode, storeCode, facilityCode, code, internalInstructionType, bizChannel, refOrderId, refOrderCode, refOrderType, closed, closedBy, status, allowOverReceive, shipFromAttentionTo, shipFromAddress, shipFromCountry, shipFromState, shipFromCity, shipFromDistrict, shipFromPostalCode, shipFromMobile, shipFromEmail, totalLines, totalQty, totalAmount, totalWeight, totalVolume, totalVolumeWeight, totalFulfillAmount, totalFulfillWeight, totalFulfillVolume, totalFulfillVolumeWeight, totalFulfillQty, totalCases, totalContainers, closeAtQty, quantityUM, weightUM, volumeUM, checkInFrom, checkInTo, closedAt, sourcePlatformCode, sourceOrderCode, created, createdBy, lastUpdated, lastUpdatedBy, returnWaybillCode, returnCarrier, refundedAt, refundStatus) + values + + (#{entity.id},#{entity.clientcode},#{entity.companycode},#{entity.storecode},#{entity.facilitycode},#{entity.code},#{entity.internalinstructiontype},#{entity.bizchannel},#{entity.reforderid},#{entity.refordercode},#{entity.refordertype},#{entity.closed},#{entity.closedby},#{entity.status},#{entity.allowoverreceive},#{entity.shipfromattentionto},#{entity.shipfromaddress},#{entity.shipfromcountry},#{entity.shipfromstate},#{entity.shipfromcity},#{entity.shipfromdistrict},#{entity.shipfrompostalcode},#{entity.shipfrommobile},#{entity.shipfromemail},#{entity.totallines},#{entity.totalqty},#{entity.totalamount},#{entity.totalweight},#{entity.totalvolume},#{entity.totalvolumeweight},#{entity.totalfulfillamount},#{entity.totalfulfillweight},#{entity.totalfulfillvolume},#{entity.totalfulfillvolumeweight},#{entity.totalfulfillqty},#{entity.totalcases},#{entity.totalcontainers},#{entity.closeatqty},#{entity.quantityum},#{entity.weightum},#{entity.volumeum},#{entity.checkinfrom},#{entity.checkinto},#{entity.closedat},#{entity.sourceplatformcode},#{entity.sourceordercode},#{entity.created},#{entity.createdby},#{entity.lastupdated},#{entity.lastupdatedby},#{entity.returnwaybillcode},#{entity.returncarrier},#{entity.refundedat},#{entity.refundstatus}) + + on duplicate key update + id = values(id), + clientCode = values(clientCode), + companyCode = values(companyCode), + storeCode = values(storeCode), + facilityCode = values(facilityCode), + code = values(code), + internalInstructionType = values(internalInstructionType), + bizChannel = values(bizChannel), + refOrderId = values(refOrderId), + refOrderCode = values(refOrderCode), + refOrderType = values(refOrderType), + closed = values(closed), + closedBy = values(closedBy), + status = values(status), + allowOverReceive = values(allowOverReceive), + shipFromAttentionTo = values(shipFromAttentionTo), + shipFromAddress = values(shipFromAddress), + shipFromCountry = values(shipFromCountry), + shipFromState = values(shipFromState), + shipFromCity = values(shipFromCity), + shipFromDistrict = values(shipFromDistrict), + shipFromPostalCode = values(shipFromPostalCode), + shipFromMobile = values(shipFromMobile), + shipFromEmail = values(shipFromEmail), + totalLines = values(totalLines), + totalQty = values(totalQty), + totalAmount = values(totalAmount), + totalWeight = values(totalWeight), + totalVolume = values(totalVolume), + totalVolumeWeight = values(totalVolumeWeight), + totalFulfillAmount = values(totalFulfillAmount), + totalFulfillWeight = values(totalFulfillWeight), + totalFulfillVolume = values(totalFulfillVolume), + totalFulfillVolumeWeight = values(totalFulfillVolumeWeight), + totalFulfillQty = values(totalFulfillQty), + totalCases = values(totalCases), + totalContainers = values(totalContainers), + closeAtQty = values(closeAtQty), + quantityUM = values(quantityUM), + weightUM = values(weightUM), + volumeUM = values(volumeUM), + checkInFrom = values(checkInFrom), + checkInTo = values(checkInTo), + closedAt = values(closedAt), + sourcePlatformCode = values(sourcePlatformCode), + sourceOrderCode = values(sourceOrderCode), + created = values(created), + createdBy = values(createdBy), + lastUpdated = values(lastUpdated), + lastUpdatedBy = values(lastUpdatedBy), + returnWaybillCode = values(returnWaybillCode), + returnCarrier = values(returnCarrier), + refundedAt = values(refundedAt), + refundStatus = values(refundStatus) + + + + +update tocofs_returngoods set + + clientCode = #{clientcode}, + companyCode = #{companycode}, + storeCode = #{storecode}, + facilityCode = #{facilitycode}, + code = #{code}, + internalInstructionType = #{internalinstructiontype}, + bizChannel = #{bizchannel}, + refOrderId = #{reforderid}, + refOrderCode = #{refordercode}, + refOrderType = #{refordertype}, + closed = #{closed}, + closedBy = #{closedby}, + status = #{status}, + allowOverReceive = #{allowoverreceive}, + shipFromAttentionTo = #{shipfromattentionto}, + shipFromAddress = #{shipfromaddress}, + shipFromCountry = #{shipfromcountry}, + shipFromState = #{shipfromstate}, + shipFromCity = #{shipfromcity}, + shipFromDistrict = #{shipfromdistrict}, + shipFromPostalCode = #{shipfrompostalcode}, + shipFromMobile = #{shipfrommobile}, + shipFromEmail = #{shipfromemail}, + totalLines = #{totallines}, + totalQty = #{totalqty}, + totalAmount = #{totalamount}, + totalWeight = #{totalweight}, + totalVolume = #{totalvolume}, + totalVolumeWeight = #{totalvolumeweight}, + totalFulfillAmount = #{totalfulfillamount}, + totalFulfillWeight = #{totalfulfillweight}, + totalFulfillVolume = #{totalfulfillvolume}, + totalFulfillVolumeWeight = #{totalfulfillvolumeweight}, + totalFulfillQty = #{totalfulfillqty}, + totalCases = #{totalcases}, + totalContainers = #{totalcontainers}, + closeAtQty = #{closeatqty}, + quantityUM = #{quantityum}, + weightUM = #{weightum}, + volumeUM = #{volumeum}, + checkInFrom = #{checkinfrom}, + checkInTo = #{checkinto}, + closedAt = #{closedat}, + sourcePlatformCode = #{sourceplatformcode}, + sourceOrderCode = #{sourceordercode}, + created = #{created}, + createdBy = #{createdby}, + lastUpdated = #{lastupdated}, + lastUpdatedBy = #{lastupdatedby}, + returnWaybillCode = #{returnwaybillcode}, + returnCarrier = #{returncarrier}, + refundedAt = #{refundedat}, + refundStatus = #{refundstatus}, + +where id = #{id} + + + +update tocofs_returngoods set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} +where id = #{id} + + + +update tocofs_returngoods set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and id = #{id} + and clientCode = #{clientcode} + and companyCode = #{companycode} + and storeCode = #{storecode} + and facilityCode = #{facilitycode} + and code = #{code} + and internalInstructionType = #{internalinstructiontype} + and bizChannel = #{bizchannel} + and refOrderId = #{reforderid} + and refOrderCode = #{refordercode} + and refOrderType = #{refordertype} + and closed = #{closed} + and closedBy = #{closedby} + and status = #{status} + and allowOverReceive = #{allowoverreceive} + and shipFromAttentionTo = #{shipfromattentionto} + and shipFromAddress = #{shipfromaddress} + and shipFromCountry = #{shipfromcountry} + and shipFromState = #{shipfromstate} + and shipFromCity = #{shipfromcity} + and shipFromDistrict = #{shipfromdistrict} + and shipFromPostalCode = #{shipfrompostalcode} + and shipFromMobile = #{shipfrommobile} + and shipFromEmail = #{shipfromemail} + and totalLines = #{totallines} + and totalQty = #{totalqty} + and totalAmount = #{totalamount} + and totalWeight = #{totalweight} + and totalVolume = #{totalvolume} + and totalVolumeWeight = #{totalvolumeweight} + and totalFulfillAmount = #{totalfulfillamount} + and totalFulfillWeight = #{totalfulfillweight} + and totalFulfillVolume = #{totalfulfillvolume} + and totalFulfillVolumeWeight = #{totalfulfillvolumeweight} + and totalFulfillQty = #{totalfulfillqty} + and totalCases = #{totalcases} + and totalContainers = #{totalcontainers} + and closeAtQty = #{closeatqty} + and quantityUM = #{quantityum} + and weightUM = #{weightum} + and volumeUM = #{volumeum} + and checkInFrom = #{checkinfrom} + and checkInTo = #{checkinto} + and closedAt = #{closedat} + and sourcePlatformCode = #{sourceplatformcode} + and sourceOrderCode = #{sourceordercode} + and created = #{created} + and createdBy = #{createdby} + and lastUpdated = #{lastupdated} + and lastUpdatedBy = #{lastupdatedby} + and returnWaybillCode = #{returnwaybillcode} + and returnCarrier = #{returncarrier} + and refundedAt = #{refundedat} + and refundStatus = #{refundstatus} + and sts='Y' + + + + + delete from tocofs_returngoods where id = #{id} + + + + diff --git a/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsSaleoutDetailedEntity.java b/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsSaleoutDetailedEntity.java new file mode 100644 index 00000000..3fdd7889 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsSaleoutDetailedEntity.java @@ -0,0 +1,403 @@ +package com.hzya.frame.report.lets.entity; + +import com.hzya.frame.web.entity.BaseEntity; +import lombok.Data; + +/** + * O出库单明细表(TOC、TOB业务底表)(TocofsSaleoutDetailed)实体类 + * + * @author makejava + * @since 2024-09-04 17:48:28 + */ +//@Data +//2024年9月5日 11:00:32 抛出异常,There is no getter for property named 'primaryKey' in 'class com.hzya.frame.plugin.lets.ofs.entity.TocofsSaleoutDetailedEntity' +//2024年9月5日 11:05:13 没用,不是@data这里的问题 +@Data +public class TocofsSaleoutDetailedEntity extends BaseEntity { + /** + * LETS + */ + private String clientcode; + /** + * COMPANY2022062200000002 + */ + private String companycode; + /** + * FACILITY2022042800000005 + */ + private String facilitycode; + /** + * LETS-SH2024032700000002 + */ + private String shipmentcode; + /** + * 22814582 主键 + */ + private Long reforderid; + /** + * 54604811 + */ + private Long reforderdetailid; + /** + * LETS-SO2024031900000002 + */ + private String refordercode; + /** + * 30766 + */ + private Long allocinvid; + /** + * 6973391732215 + */ + private String skucode; + /** + * INTOYOU心慕与你莓飞色雾四色眼影#02 + */ + private String skuname; + /** + * LETS-SO2024031900000002 + */ + private String sourceordercode; + private String sourcelinenum; + /** + * AVAILABLE + */ + private String inventorysts; + /** + * 0 + */ + private Long isgift; + /** + * 10 + */ + private Long requestqty; + /** + * 0 + */ + private Long shipqty; + private String shipat; + /** + * EA + */ + private String quantityum; + /** + * 64 + */ + private Long listprice; + /** + * 640 + */ + private Long itemtotalamount; + /** + * 640 + */ + private Long totalpayamount; + /** + * 0 + */ + private Long totalweight; + /** + * 0 + */ + private Long totalvolume; + /** + * 0 + */ + private Long totalvolumeweight; + /** + * G + */ + private String weightum; + /** + * CM3 + */ + private String volumeum; + /** + * 2024-03-27 12:03:59 + */ + private String created; + /** + * LETS-ADMIN + */ + private String createdby; + /** + * 2024-03-27 12:03:59 + */ + private String lastupdated; + /** + * LETS-ADMIN + */ + private String lastupdatedby; + /** + * 主表主键 + */ + private String maintableid; + /** + * (销售)推送时间 + */ + private String newpushdate; + /** + * (销售)报错详情 + */ + private String newtransmitinfo; + /** + * (销售)出库同步是否成功 + */ + private String newstate; + /** + * (销售)交易成功(红)是否成功 + */ + private String newstate2; + /** + * (销售)交易成功(蓝)是否成功 + */ + private String newstate3; + /** + * (销售)交易成功(TOB发票)是否成功 + */ + private String newstate4; + /** + * (销售)下游系统编码(库存) + */ + private String newsystemnumber; + /** + * (销售)下游系统主键(库存) + */ + private String newsystemprimary; + /** + * (销售)下游系统编码(交易成功红) + */ + private String newsystemnumber2; + /** + * (销售)下游系统主键(交易成功红) + */ + private String newsystemprimary2; + /** + * (销售)下游系统编码(交易成功蓝) + */ + private String newsystemnumber3; + /** + * (销售)下游系统主键(交易成功蓝) + */ + private String newsystemprimary3; + /** + * (销售)下游系统编码(交易成功TOB发票) + */ + private String newsystemnumber4; + /** + * (销售)下游系统主键(交易成功TOB发票) + */ + private String newsystemprimary4; + /** + * (销售)业务日期-出库日期 + */ + private String businessdate; + /** + * (销售)业务日期-交易日期 + */ + private String successfultradedate; + /** + * (销售)业务发生类型 + */ + private String businesstype; + /** + * 自定义项 + */ + private String def1; + /** + * 自定义项 + */ + private String def2; + /** + * 自定义项 + */ + private String def3; + /** + * 自定义项 + */ + private String def4; + /** + * 自定义项 + */ + private String def5; + /** + * 自定义项 + */ + private String def6; + /** + * 自定义项 + */ + private String def7; + /** + * 自定义项 + */ + private String def8; + /** + * 自定义项 + */ + private String def9; + /** + * 自定义项 + */ + private String def10; + /** + * 自定义项 + */ + private String def11; + /** + * 自定义项 + */ + private String def12; + /** + * 自定义项 + */ + private String def13; + /** + * 自定义项 + */ + private String def14; + /** + * 自定义项 + */ + private String def15; + /** + * 自定义项 + */ + private String def16; + /** + * 自定义项 + */ + private String def17; + /** + * 自定义项 + */ + private String def18; + /** + * 自定义项 + */ + private String def19; + /** + * 自定义项 + */ + private String def20; + /** + * 自定义项 + */ + private String def21; + /** + * 自定义项 + */ + private String def22; + /** + * 自定义项 + */ + private String def23; + /** + * 自定义项 + */ + private String def24; + /** + * 自定义项 + */ + private String def25; + /** + * 自定义项 + */ + private String def26; + /** + * 自定义项 + */ + private String def27; + /** + * 自定义项 + */ + private String def28; + /** + * 自定义项 + */ + private String def29; + /** + * 自定义项 + */ + private String def30; + /** + * 自定义项 + */ + private String def31; + /** + * 自定义项 + */ + private String def32; + /** + * 自定义项 + */ + private String def33; + /** + * 自定义项 + */ + private String def34; + /** + * 自定义项 + */ + private String def35; + /** + * 自定义项 + */ + private String def36; + /** + * 自定义项 + */ + private String def37; + /** + * 自定义项 + */ + private String def38; + /** + * 自定义项 + */ + private String def39; + /** + * 自定义项 + */ + private String def40; + /** + * 额外参数:查询条件 + */ + private String ids; + /** + * 出库查询,开始时间 + */ + private String businessdate_start; + /** + * 出库查询,结束时间 + */ + private String businessdate_end; + /** + * 交易成功开始时间 + */ + private String successfultradedate_start; + /** + * 交易成功结束失败 + */ + private String successfultradedate_end; + + /** + * 货主编码 + */ + private String headCompanyCode; + + /** + * 仓库编码 + */ + private String headFacilityCode; + + /** + * 平台编码 + */ + private String headSourcePlatformCode; + + /** + * 店铺编码 + */ + private String headStoreCode; +} \ No newline at end of file diff --git a/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsSaleoutDetailedEntity.xml b/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsSaleoutDetailedEntity.xml new file mode 100644 index 00000000..9b9180c9 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsSaleoutDetailedEntity.xml @@ -0,0 +1,1357 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id + ,clientCode + ,companyCode + ,facilityCode + ,shipmentCode + ,refOrderId + ,refOrderDetailId + ,refOrderCode + ,allocInvId + ,skuCode + ,skuName + ,sourceOrderCode + ,sourceLineNum + ,inventorySts + ,isGift + ,requestQty + ,shipQty + ,shipAt + ,quantityUM + ,listPrice + ,itemTotalAmount + ,totalPayAmount + ,totalWeight + ,totalVolume + ,totalVolumeWeight + ,weightUM + ,volumeUM + ,created + ,createdBy + ,lastUpdated + ,lastUpdatedBy + ,mainTableId + ,newPushDate + ,newTransmitInfo + ,newState + ,newState2 + ,newState3 + ,newState4 + ,newSystemNumber + ,newSystemPrimary + ,newSystemNumber2 + ,newSystemPrimary2 + ,newSystemNumber3 + ,newSystemPrimary3 + ,newSystemNumber4 + ,newSystemPrimary4 + ,businessDate + ,successfulTradeDate + ,businessType + ,def1 + ,def2 + ,def3 + ,def4 + ,def5 + ,def6 + ,def7 + ,def8 + ,def9 + ,def10 + ,def11 + ,def12 + ,def13 + ,def14 + ,def15 + ,def16 + ,def17 + ,def18 + ,def19 + ,def20 + ,def21 + ,def22 + ,def23 + ,def24 + ,def25 + ,def26 + ,def27 + ,def28 + ,def29 + ,def30 + ,def31 + ,def32 + ,def33 + ,def34 + ,def35 + ,def36 + ,def37 + ,def38 + ,def39 + ,def40 + + + + + + + + + + + + + + + + insert into tocofs_saleout_detailed( + + id , + clientCode , + companyCode , + facilityCode , + shipmentCode , + refOrderId , + refOrderDetailId , + refOrderCode , + allocInvId , + skuCode , + skuName , + sourceOrderCode , + sourceLineNum , + inventorySts , + isGift , + requestQty , + shipQty , + shipAt , + quantityUM , + listPrice , + itemTotalAmount , + totalPayAmount , + totalWeight , + totalVolume , + totalVolumeWeight , + weightUM , + volumeUM , + created , + createdBy , + lastUpdated , + lastUpdatedBy , + mainTableId , + newPushDate , + newTransmitInfo , + newState , + newState2 , + newState3 , + newState4 , + newSystemNumber , + newSystemPrimary , + newSystemNumber2 , + newSystemPrimary2 , + newSystemNumber3 , + newSystemPrimary3 , + newSystemNumber4 , + newSystemPrimary4 , + businessDate , + successfulTradeDate , + businessType , + def1 , + def2 , + def3 , + def4 , + def5 , + def6 , + def7 , + def8 , + def9 , + def10 , + def11 , + def12 , + def13 , + def14 , + def15 , + def16 , + def17 , + def18 , + def19 , + def20 , + def21 , + def22 , + def23 , + def24 , + def25 , + def26 , + def27 , + def28 , + def29 , + def30 , + def31 , + def32 , + def33 , + def34 , + def35 , + def36 , + def37 , + def38 , + def39 , + def40 , + sorts, + sts, + + )values( + + #{id} , + #{clientcode} , + #{companycode} , + #{facilitycode} , + #{shipmentcode} , + #{reforderid} , + #{reforderdetailid} , + #{refordercode} , + #{allocinvid} , + #{skucode} , + #{skuname} , + #{sourceordercode} , + #{sourcelinenum} , + #{inventorysts} , + #{isgift} , + #{requestqty} , + #{shipqty} , + #{shipat} , + #{quantityum} , + #{listprice} , + #{itemtotalamount} , + #{totalpayamount} , + #{totalweight} , + #{totalvolume} , + #{totalvolumeweight} , + #{weightum} , + #{volumeum} , + #{created} , + #{createdby} , + #{lastupdated} , + #{lastupdatedby} , + #{maintableid} , + #{newpushdate} , + #{newtransmitinfo} , + #{newstate} , + #{newstate2} , + #{newstate3} , + #{newstate4} , + #{newsystemnumber} , + #{newsystemprimary} , + #{newsystemnumber2} , + #{newsystemprimary2} , + #{newsystemnumber3} , + #{newsystemprimary3} , + #{newsystemnumber4} , + #{newsystemprimary4} , + #{businessdate} , + #{successfultradedate} , + #{businesstype} , + #{def1} , + #{def2} , + #{def3} , + #{def4} , + #{def5} , + #{def6} , + #{def7} , + #{def8} , + #{def9} , + #{def10} , + #{def11} , + #{def12} , + #{def13} , + #{def14} , + #{def15} , + #{def16} , + #{def17} , + #{def18} , + #{def19} , + #{def20} , + #{def21} , + #{def22} , + #{def23} , + #{def24} , + #{def25} , + #{def26} , + #{def27} , + #{def28} , + #{def29} , + #{def30} , + #{def31} , + #{def32} , + #{def33} , + #{def34} , + #{def35} , + #{def36} , + #{def37} , + #{def38} , + #{def39} , + #{def40} , + (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from tocofs_saleout_detailed a WHERE a.sts = 'Y' ), + 'Y', + + ) + + + + insert into tocofs_saleout_detailed(clientCode, companyCode, facilityCode, shipmentCode, refOrderId, refOrderDetailId, refOrderCode, allocInvId, skuCode, skuName, sourceOrderCode, sourceLineNum, inventorySts, isGift, requestQty, shipQty, shipAt, quantityUM, listPrice, itemTotalAmount, totalPayAmount, totalWeight, totalVolume, totalVolumeWeight, weightUM, volumeUM, created, createdBy, lastUpdated, lastUpdatedBy, mainTableId, newPushDate, newTransmitInfo, newState, newState2, newState3, newState4, newSystemNumber, newSystemPrimary, newSystemNumber2, newSystemPrimary2, newSystemNumber3, newSystemPrimary3, newSystemNumber4, newSystemPrimary4, businessDate, successfulTradeDate, businessType, def1, def2, def3, def4, def5, def6, def7, def8, def9, def10, def11, def12, def13, def14, def15, def16, def17, def18, def19, def20, def21, def22, def23, def24, def25, def26, def27, def28, def29, def30, def31, def32, def33, def34, def35, def36, def37, def38, def39, def40, sts) + values + + (#{entity.clientcode},#{entity.companycode},#{entity.facilitycode},#{entity.shipmentcode},#{entity.reforderid},#{entity.reforderdetailid},#{entity.refordercode},#{entity.allocinvid},#{entity.skucode},#{entity.skuname},#{entity.sourceordercode},#{entity.sourcelinenum},#{entity.inventorysts},#{entity.isgift},#{entity.requestqty},#{entity.shipqty},#{entity.shipat},#{entity.quantityum},#{entity.listprice},#{entity.itemtotalamount},#{entity.totalpayamount},#{entity.totalweight},#{entity.totalvolume},#{entity.totalvolumeweight},#{entity.weightum},#{entity.volumeum},#{entity.created},#{entity.createdby},#{entity.lastupdated},#{entity.lastupdatedby},#{entity.maintableid},#{entity.newpushdate},#{entity.newtransmitinfo},#{entity.newstate},#{entity.newstate2},#{entity.newstate3},#{entity.newstate4},#{entity.newsystemnumber},#{entity.newsystemprimary},#{entity.newsystemnumber2},#{entity.newsystemprimary2},#{entity.newsystemnumber3},#{entity.newsystemprimary3},#{entity.newsystemnumber4},#{entity.newsystemprimary4},#{entity.businessdate},#{entity.successfultradedate},#{entity.businesstype},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},#{entity.def11},#{entity.def12},#{entity.def13},#{entity.def14},#{entity.def15},#{entity.def16},#{entity.def17},#{entity.def18},#{entity.def19},#{entity.def20},#{entity.def21},#{entity.def22},#{entity.def23},#{entity.def24},#{entity.def25},#{entity.def26},#{entity.def27},#{entity.def28},#{entity.def29},#{entity.def30},#{entity.def31},#{entity.def32},#{entity.def33},#{entity.def34},#{entity.def35},#{entity.def36},#{entity.def37},#{entity.def38},#{entity.def39},#{entity.def40}, 'Y') + + + + + insert into tocofs_saleout_detailed(id,clientCode, companyCode, facilityCode, shipmentCode, refOrderId, refOrderDetailId, refOrderCode, allocInvId, skuCode, skuName, sourceOrderCode, sourceLineNum, inventorySts, isGift, requestQty, shipQty, shipAt, quantityUM, listPrice, itemTotalAmount, totalPayAmount, totalWeight, totalVolume, totalVolumeWeight, weightUM, volumeUM, created, createdBy, lastUpdated, lastUpdatedBy, mainTableId, businessDate, successfulTradeDate, businessType) + values + + (#{entity.id},#{entity.clientcode},#{entity.companycode},#{entity.facilitycode},#{entity.shipmentcode},#{entity.reforderid},#{entity.reforderdetailid},#{entity.refordercode},#{entity.allocinvid},#{entity.skucode},#{entity.skuname},#{entity.sourceordercode},#{entity.sourcelinenum},#{entity.inventorysts},#{entity.isgift},#{entity.requestqty},#{entity.shipqty},#{entity.shipat},#{entity.quantityum},#{entity.listprice},#{entity.itemtotalamount},#{entity.totalpayamount},#{entity.totalweight},#{entity.totalvolume},#{entity.totalvolumeweight},#{entity.weightum},#{entity.volumeum},#{entity.created},#{entity.createdby},#{entity.lastupdated},#{entity.lastupdatedby},#{entity.maintableid},#{entity.businessdate},#{entity.successfultradedate},#{entity.businesstype}) + + on duplicate key update + id = values(id), + clientCode = values(clientCode), + companyCode = values(companyCode), + facilityCode = values(facilityCode), + shipmentCode = values(shipmentCode), + refOrderId = values(refOrderId), + refOrderDetailId = values(refOrderDetailId), + refOrderCode = values(refOrderCode), + allocInvId = values(allocInvId), + skuCode = values(skuCode), + skuName = values(skuName), + sourceOrderCode = values(sourceOrderCode), + sourceLineNum = values(sourceLineNum), + inventorySts = values(inventorySts), + isGift = values(isGift), + requestQty = values(requestQty), + shipQty = values(shipQty), + shipAt = values(shipAt), + quantityUM = values(quantityUM), + listPrice = values(listPrice), + itemTotalAmount = values(itemTotalAmount), + totalPayAmount = values(totalPayAmount), + totalWeight = values(totalWeight), + totalVolume = values(totalVolume), + totalVolumeWeight = values(totalVolumeWeight), + weightUM = values(weightUM), + volumeUM = values(volumeUM), + created = values(created), + createdBy = values(createdBy), + lastUpdated = values(lastUpdated), + lastUpdatedBy = values(lastUpdatedBy), + mainTableId = values(mainTableId), + businessDate = values(businessDate), + successfulTradeDate = values(successfulTradeDate), + businessType = values(businessType) + + + + + + insert into tocofs_saleout_detailed(id,newPushDate,newTransmitInfo,newState) + values + + ( + #{entity.id}, + #{entity.newpushdate}, + #{entity.newtransmitinfo}, + #{entity.newstate} + ) + + on duplicate key update + id = values(id), + newPushDate = values(newPushDate), + newTransmitInfo = values(newTransmitInfo), + newState = values(newState) + + + + + + insert into tocofs_saleout_detailed(id,newPushDate,newTransmitInfo,newState,newSystemNumber,newSystemPrimary) + values + + ( + #{entity.id}, + #{entity.newpushdate}, + #{entity.newtransmitinfo}, + #{entity.newstate}, + #{entity.newsystemnumber}, + #{entity.newsystemprimary} + ) + + on duplicate key update + id = values(id), + newPushDate = values(newPushDate), + newTransmitInfo = values(newTransmitInfo), + newState = values(newState), + newSystemNumber = values(newSystemNumber), + newSystemPrimary = values(newSystemPrimary) + + + + + + insert into tocofs_saleout_detailed(id,def1,def2,newState2,newSystemNumber2,newSystemPrimary2) + values + + ( + #{entity.id}, + #{entity.def1}, + #{entity.def2}, + #{entity.newstate2}, + #{entity.newsystemnumber2}, + #{entity.newsystemprimary2} + ) + + on duplicate key update + id = values(id), + def1 = values(def1), + def2 = values(def2), + newState2 = values(newState2), + newSystemNumber2 = values(newSystemNumber2), + newSystemPrimary2 = values(newSystemPrimary2) + + + + + + insert into tocofs_saleout_detailed(id,def3,def4,newState3,newSystemNumber3,newSystemPrimary3) + values + + ( + #{entity.id}, + #{entity.def3}, + #{entity.def4}, + #{entity.newstate3}, + #{entity.newsystemnumber3}, + #{entity.newsystemprimary3} + ) + + on duplicate key update + id = values(id), + def3 = values(def3), + def4 = values(def4), + newState3 = values(newState3), + newSystemNumber3 = values(newSystemNumber3), + newSystemPrimary3 = values(newSystemPrimary3) + + + + + + + insert into tocofs_saleout_detailed(id,newPushDate,newTransmitInfo,newState4,newSystemNumber,newSystemPrimary) + values + + ( + #{entity.id}, + #{entity.newPushDate}, + #{entity.newTransmitInfo}, + #{entity.newState4}, + #{entity.newSystemNumber}, + #{entity.newSystemPrimary} + ) + + on duplicate key update + id = values(id), + newPushDate = values(newPushDate), + newTransmitInfo = values(newTransmitInfo), + newState4 = values(newState4), + newSystemNumber = values(newSystemNumber), + newSystemPrimary = values(newSystemPrimary) + + + + + + + + insert into tocofs_saleout_detailed(id,newPushDate,newTransmitInfo,newState,newSystemNumber,newSystemPrimary) + values + + ( + #{entity.id}, + #{entity.newpushdate}, + #{entity.newtransmitinfo}, + #{entity.newstate}, + #{entity.newsystemnumber}, + #{entity.newsystemprimary} + ) + + on duplicate key update + id = values(id), + newPushDate = values(newPushDate), + newTransmitInfo = values(newTransmitInfo), + newState = values(newState), + newSystemNumber = values(newSystemNumber), + newSystemPrimary = values(newSystemPrimary) + + + + + insert into tocofs_saleout_detailed(id,def5,def6,newstate4) + values + + ( + #{entity.id}, + #{entity.def5}, + #{entity.def6}, + #{entity.newstate4} + ) + + on duplicate key update + id = values(id), + def5 = values(def5), + def6 = values(def6), + newstate4 = values(newstate4) + + + + + insert into tocofs_saleout_detailed(id,def5,def6,newState4,newSystemNumber4,newSystemPrimary4) + values + + ( + #{entity.id}, + #{entity.def5}, + #{entity.def6}, + #{entity.newstate4}, + #{entity.newsystemnumber4}, + #{entity.newsystemprimary4} + ) + + on duplicate key update + id = values(id), + def5 = values(def5), + def6 = values(def6), + newState4 = values(newState4), + newSystemNumber4 = values(newSystemNumber4), + newSystemPrimary4 = values(newSystemPrimary4) + + + + + update tocofs_saleout_detailed set + + clientCode = #{clientcode}, + companyCode = #{companycode}, + facilityCode = #{facilitycode}, + shipmentCode = #{shipmentcode}, + refOrderId = #{reforderid}, + refOrderDetailId = #{reforderdetailid}, + refOrderCode = #{refordercode}, + allocInvId = #{allocinvid}, + skuCode = #{skucode}, + skuName = #{skuname}, + sourceOrderCode = #{sourceordercode}, + sourceLineNum = #{sourcelinenum}, + inventorySts = #{inventorysts}, + isGift = #{isgift}, + requestQty = #{requestqty}, + shipQty = #{shipqty}, + shipAt = #{shipat}, + quantityUM = #{quantityum}, + listPrice = #{listprice}, + itemTotalAmount = #{itemtotalamount}, + totalPayAmount = #{totalpayamount}, + totalWeight = #{totalweight}, + totalVolume = #{totalvolume}, + totalVolumeWeight = #{totalvolumeweight}, + weightUM = #{weightum}, + volumeUM = #{volumeum}, + created = #{created}, + createdBy = #{createdby}, + lastUpdated = #{lastupdated}, + lastUpdatedBy = #{lastupdatedby}, + mainTableId = #{maintableid}, + newPushDate = #{newpushdate}, + newTransmitInfo = #{newtransmitinfo}, + newState = #{newstate}, + newState2 = #{newstate2}, + newState3 = #{newstate3}, + newState4 = #{newstate4}, + newSystemNumber = #{newsystemnumber}, + newSystemPrimary = #{newsystemprimary}, + newSystemNumber2 = #{newsystemnumber2}, + newSystemPrimary2 = #{newsystemprimary2}, + newSystemNumber3 = #{newsystemnumber3}, + newSystemPrimary3 = #{newsystemprimary3}, + newSystemNumber4 = #{newsystemnumber4}, + newSystemPrimary4 = #{newsystemprimary4}, + businessDate = #{businessdate}, + successfulTradeDate = #{successfultradedate}, + businessType = #{businesstype}, + def1 = #{def1}, + def2 = #{def2}, + def3 = #{def3}, + def4 = #{def4}, + def5 = #{def5}, + def6 = #{def6}, + def7 = #{def7}, + def8 = #{def8}, + def9 = #{def9}, + def10 = #{def10}, + def11 = #{def11}, + def12 = #{def12}, + def13 = #{def13}, + def14 = #{def14}, + def15 = #{def15}, + def16 = #{def16}, + def17 = #{def17}, + def18 = #{def18}, + def19 = #{def19}, + def20 = #{def20}, + def21 = #{def21}, + def22 = #{def22}, + def23 = #{def23}, + def24 = #{def24}, + def25 = #{def25}, + def26 = #{def26}, + def27 = #{def27}, + def28 = #{def28}, + def29 = #{def29}, + def30 = #{def30}, + def31 = #{def31}, + def32 = #{def32}, + def33 = #{def33}, + def34 = #{def34}, + def35 = #{def35}, + def36 = #{def36}, + def37 = #{def37}, + def38 = #{def38}, + def39 = #{def39}, + def40 = #{def40}, + + where id = #{id} + + + + update tocofs_saleout_detailed set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + where id = #{id} + + + + update tocofs_saleout_detailed set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and id = #{id} + and clientCode = #{clientcode} + and companyCode = #{companycode} + and facilityCode = #{facilitycode} + and shipmentCode = #{shipmentcode} + and refOrderId = #{reforderid} + and refOrderDetailId = #{reforderdetailid} + and refOrderCode = #{refordercode} + and allocInvId = #{allocinvid} + and skuCode = #{skucode} + and skuName = #{skuname} + and sourceOrderCode = #{sourceordercode} + and sourceLineNum = #{sourcelinenum} + and inventorySts = #{inventorysts} + and isGift = #{isgift} + and requestQty = #{requestqty} + and shipQty = #{shipqty} + and shipAt = #{shipat} + and quantityUM = #{quantityum} + and listPrice = #{listprice} + and itemTotalAmount = #{itemtotalamount} + and totalPayAmount = #{totalpayamount} + and totalWeight = #{totalweight} + and totalVolume = #{totalvolume} + and totalVolumeWeight = #{totalvolumeweight} + and weightUM = #{weightum} + and volumeUM = #{volumeum} + and created = #{created} + and createdBy = #{createdby} + and lastUpdated = #{lastupdated} + and lastUpdatedBy = #{lastupdatedby} + and mainTableId = #{maintableid} + and newPushDate = #{newpushdate} + and newTransmitInfo = #{newtransmitinfo} + and newState = #{newstate} + and newState2 = #{newstate2} + and newState3 = #{newstate3} + and newState4 = #{newstate4} + and newSystemNumber = #{newsystemnumber} + and newSystemPrimary = #{newsystemprimary} + and newSystemNumber2 = #{newsystemnumber2} + and newSystemPrimary2 = #{newsystemprimary2} + and newSystemNumber3 = #{newsystemnumber3} + and newSystemPrimary3 = #{newsystemprimary3} + and newSystemNumber4 = #{newsystemnumber4} + and newSystemPrimary4 = #{newsystemprimary4} + and businessDate = #{businessdate} + and successfulTradeDate = #{successfultradedate} + and businessType = #{businesstype} + and def1 = #{def1} + and def2 = #{def2} + and def3 = #{def3} + and def4 = #{def4} + and def5 = #{def5} + and def6 = #{def6} + and def7 = #{def7} + and def8 = #{def8} + and def9 = #{def9} + and def10 = #{def10} + and def11 = #{def11} + and def12 = #{def12} + and def13 = #{def13} + and def14 = #{def14} + and def15 = #{def15} + and def16 = #{def16} + and def17 = #{def17} + and def18 = #{def18} + and def19 = #{def19} + and def20 = #{def20} + and def21 = #{def21} + and def22 = #{def22} + and def23 = #{def23} + and def24 = #{def24} + and def25 = #{def25} + and def26 = #{def26} + and def27 = #{def27} + and def28 = #{def28} + and def29 = #{def29} + and def30 = #{def30} + and def31 = #{def31} + and def32 = #{def32} + and def33 = #{def33} + and def34 = #{def34} + and def35 = #{def35} + and def36 = #{def36} + and def37 = #{def37} + and def38 = #{def38} + and def39 = #{def39} + and def40 = #{def40} + and sts='Y' + + + + + delete from tocofs_saleout_detailed where id = #{id} + + \ No newline at end of file diff --git a/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsSaleoutEntity.java b/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsSaleoutEntity.java new file mode 100644 index 00000000..767b7c82 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsSaleoutEntity.java @@ -0,0 +1,410 @@ +package com.hzya.frame.report.lets.entity; + +import com.hzya.frame.web.entity.BaseEntity; +import lombok.Data; + +/** + * O出库单表头(TOC、TOB业务底表)(TocofsSaleout)实体类 + * + * @author makejava + * @since 2024-09-04 17:48:16 + */ +@Data +public class TocofsSaleoutEntity extends BaseEntity { + /** + * LETS + */ + private String clientcode; + /** + * LETS + */ + private String companycode; + /** + * hzz + */ + private String storecode; + /** + * hzz-xs + */ + private String facilitycode; + /** + * LETS-SH2024032700000002 + */ + private String code; + /** + * 22814582 + */ + private Long reforderid; + /** + * LETS-SO2024031900000002 + */ + private String refordercode; + /** + * SALES + */ + private String refordertype; + /** + * 510 + */ + private Long status; + /** + * 0 + */ + private Long consolidated; + /** + * SALES + */ + private String internalinstructiontype; + /** + * B2C + */ + private String bizchannel; + /** + * OFS + */ + private String sourceplatformcode; + /** + * NORMAL + */ + private String processtype; + /** + * 0 + */ + private Long sourceorderid; + /** + * LETS-SO2024031900000002 + */ + private String sourceordercode; + /** + * 杨 + */ + private String shiptoattentionto; + /** + * TB + */ + private String sourceuseraccount; + /** + * AAA + */ + private String shiptoaddress; + /** + * 中国 + */ + private String shiptocountry; + /** + * 950648 + */ + private String shiptostate; + /** + * 950649 + */ + private String shiptocity; + /** + * 950711 + */ + private String shiptodistrict; + /** + * 13909091212 + */ + private String shiptomobile; + /** + * 1 + */ + private Long totallines; + /** + * 10 + */ + private Long totalqty; + /** + * 0 + */ + private Long totalcontainers; + /** + * 0 + */ + private Long totalcases; + /** + * 0 + */ + private Long totalweight; + /** + * 0 + */ + private Long totalvolume; + /** + * 0 + */ + private Long totalvolumeweight; + /** + * G + */ + private String weightum; + /** + * CM3 + */ + private String volumeum; + /** + * 640 + */ + private Long totalamount; + /** + * 640 + */ + private Long totalpayamount; + /** + * 0 + */ + private Long postageamount; + /** + * 640 + */ + private Long itemtotalamount; + private String totalfulfillqty; + private String totalfulfillweight; + private String totalfulfillvolume; + private String totalfulfillvolumeweight; + /** + * 发货日期 + */ + private String shipat; + /** + * ZTO + */ + private String carriercode; + private String primarywaybillcode; + /** + * 1 + */ + private Long paymentstatus; + /** + * 0 + */ + private String codrequired; + /** + * 0 + */ + private String invoicerequired; + /** + * 2024-03-19 17:08:14 + */ + private String paidat; + private String shipfromattentionto; + private String shipfromaddress; + /** + * 萧山区 + */ + private String shipfromdistrict; + /** + * 杭州市 + */ + private String shipfromcity; + /** + * 浙江省 + */ + private String shipfromstate; + /** + * 中国 + */ + private String shipfromcountry; + private String shipfrompostalcode; + private String shipfromphone; + private String shipfrommobile; + private String shipfromfax; + private String shipfromemail; + /** + * 0 + */ + private Long codamount; + /** + * 0 + */ + private Long tax; + /** + * 1 + */ + private Long taxpaid; + /** + * 交易成功时间 + */ + private String tradesuccessat; + /** + * 交易成功状态 + */ + private String sourceorderstatus; + /** + * 上海市 + */ + private String shiptostatename; + /** + * 上海市 + */ + private String shiptocityname; + /** + * 杨浦区 + */ + private String shiptodistrictname; + /** + * 出库类型 + */ + private String shipmenttype; + /** + * 自定义项 + */ + private String def1; + /** + * 自定义项 + */ + private String def2; + /** + * 自定义项 + */ + private String def3; + /** + * 自定义项 + */ + private String def4; + /** + * 自定义项 + */ + private String def5; + /** + * 自定义项 + */ + private String def6; + /** + * 自定义项 + */ + private String def7; + /** + * 自定义项 + */ + private String def8; + /** + * 自定义项 + */ + private String def9; + /** + * 自定义项 + */ + private String def10; + /** + * 自定义项 + */ + private String def11; + /** + * 自定义项 + */ + private String def12; + /** + * 自定义项 + */ + private String def13; + /** + * 自定义项 + */ + private String def14; + /** + * 自定义项 + */ + private String def15; + /** + * 自定义项 + */ + private String def16; + /** + * 自定义项 + */ + private String def17; + /** + * 自定义项 + */ + private String def18; + /** + * 自定义项 + */ + private String def19; + /** + * 自定义项 + */ + private String def20; + /** + * 自定义项 + */ + private String def21; + /** + * 自定义项 + */ + private String def22; + /** + * 自定义项 + */ + private String def23; + /** + * 自定义项 + */ + private String def24; + /** + * 自定义项 + */ + private String def25; + /** + * 自定义项 + */ + private String def26; + /** + * 自定义项 + */ + private String def27; + /** + * 自定义项 + */ + private String def28; + /** + * 自定义项 + */ + private String def29; + /** + * 自定义项 + */ + private String def30; + /** + * 自定义项 + */ + private String def31; + /** + * 自定义项 + */ + private String def32; + /** + * 自定义项 + */ + private String def33; + /** + * 自定义项 + */ + private String def34; + /** + * 自定义项 + */ + private String def35; + /** + * 自定义项 + */ + private String def36; + /** + * 自定义项 + */ + private String def37; + /** + * 自定义项 + */ + private String def38; + /** + * 自定义项 + */ + private String def39; + /** + * 自定义项 + */ + private String def40; +} \ No newline at end of file diff --git a/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsSaleoutEntity.xml b/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsSaleoutEntity.xml new file mode 100644 index 00000000..9042a8a4 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/entity/TocofsSaleoutEntity.xml @@ -0,0 +1,1306 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id + ,clientCode + ,companyCode + ,storeCode + ,facilityCode + ,code + ,refOrderId + ,refOrderCode + ,refOrderType + ,status + ,consolidated + ,internalInstructionType + ,bizChannel + ,sourcePlatformCode + ,processType + ,sourceOrderId + ,sourceOrderCode + ,shipToAttentionTo + ,sourceUserAccount + ,shipToAddress + ,shipToCountry + ,shipToState + ,shipToCity + ,shipToDistrict + ,shipToMobile + ,totalLines + ,totalQty + ,totalContainers + ,totalCases + ,totalWeight + ,totalVolume + ,totalVolumeWeight + ,weightUM + ,volumeUM + ,totalAmount + ,totalPayAmount + ,postageAmount + ,itemTotalAmount + ,totalFulfillQty + ,totalFulfillWeight + ,totalFulfillVolume + ,totalFulfillVolumeWeight + ,shipAt + ,carrierCode + ,primaryWaybillCode + ,paymentStatus + ,codRequired + ,invoiceRequired + ,paidAt + ,shipFromAttentionTo + ,shipFromAddress + ,shipFromDistrict + ,shipFromCity + ,shipFromState + ,shipFromCountry + ,shipFromPostalCode + ,shipFromPhone + ,shipFromMobile + ,shipFromFax + ,shipFromEmail + ,codAmount + ,tax + ,taxPaid + ,tradeSuccessAt + ,sourceOrderStatus + ,shipToStateName + ,shipToCityName + ,shipToDistrictName + ,shipmentType + ,def1 + ,def2 + ,def3 + ,def4 + ,def5 + ,def6 + ,def7 + ,def8 + ,def9 + ,def10 + ,def11 + ,def12 + ,def13 + ,def14 + ,def15 + ,def16 + ,def17 + ,def18 + ,def19 + ,def20 + ,def21 + ,def22 + ,def23 + ,def24 + ,def25 + ,def26 + ,def27 + ,def28 + ,def29 + ,def30 + ,def31 + ,def32 + ,def33 + ,def34 + ,def35 + ,def36 + ,def37 + ,def38 + ,def39 + ,def40 + + + + + + + + + + + + + + + + insert into tocofs_saleout( + + id , + clientCode , + companyCode , + storeCode , + facilityCode , + code , + refOrderId , + refOrderCode , + refOrderType , + status , + consolidated , + internalInstructionType , + bizChannel , + sourcePlatformCode , + processType , + sourceOrderId , + sourceOrderCode , + shipToAttentionTo , + sourceUserAccount , + shipToAddress , + shipToCountry , + shipToState , + shipToCity , + shipToDistrict , + shipToMobile , + totalLines , + totalQty , + totalContainers , + totalCases , + totalWeight , + totalVolume , + totalVolumeWeight , + weightUM , + volumeUM , + totalAmount , + totalPayAmount , + postageAmount , + itemTotalAmount , + totalFulfillQty , + totalFulfillWeight , + totalFulfillVolume , + totalFulfillVolumeWeight , + shipAt , + carrierCode , + primaryWaybillCode , + paymentStatus , + codRequired , + invoiceRequired , + paidAt , + shipFromAttentionTo , + shipFromAddress , + shipFromDistrict , + shipFromCity , + shipFromState , + shipFromCountry , + shipFromPostalCode , + shipFromPhone , + shipFromMobile , + shipFromFax , + shipFromEmail , + codAmount , + tax , + taxPaid , + tradeSuccessAt , + sourceOrderStatus , + shipToStateName , + shipToCityName , + shipToDistrictName , + shipmentType , + def1 , + def2 , + def3 , + def4 , + def5 , + def6 , + def7 , + def8 , + def9 , + def10 , + def11 , + def12 , + def13 , + def14 , + def15 , + def16 , + def17 , + def18 , + def19 , + def20 , + def21 , + def22 , + def23 , + def24 , + def25 , + def26 , + def27 , + def28 , + def29 , + def30 , + def31 , + def32 , + def33 , + def34 , + def35 , + def36 , + def37 , + def38 , + def39 , + def40 , + sorts, + sts, + + )values( + + #{id} , + #{clientcode} , + #{companycode} , + #{storecode} , + #{facilitycode} , + #{code} , + #{reforderid} , + #{refordercode} , + #{refordertype} , + #{status} , + #{consolidated} , + #{internalinstructiontype} , + #{bizchannel} , + #{sourceplatformcode} , + #{processtype} , + #{sourceorderid} , + #{sourceordercode} , + #{shiptoattentionto} , + #{sourceuseraccount} , + #{shiptoaddress} , + #{shiptocountry} , + #{shiptostate} , + #{shiptocity} , + #{shiptodistrict} , + #{shiptomobile} , + #{totallines} , + #{totalqty} , + #{totalcontainers} , + #{totalcases} , + #{totalweight} , + #{totalvolume} , + #{totalvolumeweight} , + #{weightum} , + #{volumeum} , + #{totalamount} , + #{totalpayamount} , + #{postageamount} , + #{itemtotalamount} , + #{totalfulfillqty} , + #{totalfulfillweight} , + #{totalfulfillvolume} , + #{totalfulfillvolumeweight} , + #{shipat} , + #{carriercode} , + #{primarywaybillcode} , + #{paymentstatus} , + #{codrequired} , + #{invoicerequired} , + #{paidat} , + #{shipfromattentionto} , + #{shipfromaddress} , + #{shipfromdistrict} , + #{shipfromcity} , + #{shipfromstate} , + #{shipfromcountry} , + #{shipfrompostalcode} , + #{shipfromphone} , + #{shipfrommobile} , + #{shipfromfax} , + #{shipfromemail} , + #{codamount} , + #{tax} , + #{taxpaid} , + #{tradesuccessat} , + #{sourceorderstatus} , + #{shiptostatename} , + #{shiptocityname} , + #{shiptodistrictname} , + #{shipmenttype} , + #{def1} , + #{def2} , + #{def3} , + #{def4} , + #{def5} , + #{def6} , + #{def7} , + #{def8} , + #{def9} , + #{def10} , + #{def11} , + #{def12} , + #{def13} , + #{def14} , + #{def15} , + #{def16} , + #{def17} , + #{def18} , + #{def19} , + #{def20} , + #{def21} , + #{def22} , + #{def23} , + #{def24} , + #{def25} , + #{def26} , + #{def27} , + #{def28} , + #{def29} , + #{def30} , + #{def31} , + #{def32} , + #{def33} , + #{def34} , + #{def35} , + #{def36} , + #{def37} , + #{def38} , + #{def39} , + #{def40} , + (select (max(IFNULL( a.sorts, 0 )) + 1) as sort from tocofs_saleout a WHERE a.sts = 'Y' ), + 'Y', + + ) + + + + insert into tocofs_saleout(clientCode, companyCode, storeCode, facilityCode, code, refOrderId, refOrderCode, refOrderType, status, consolidated, internalInstructionType, bizChannel, sourcePlatformCode, processType, sourceOrderId, sourceOrderCode, shipToAttentionTo, sourceUserAccount, shipToAddress, shipToCountry, shipToState, shipToCity, shipToDistrict, shipToMobile, totalLines, totalQty, totalContainers, totalCases, totalWeight, totalVolume, totalVolumeWeight, weightUM, volumeUM, totalAmount, totalPayAmount, postageAmount, itemTotalAmount, totalFulfillQty, totalFulfillWeight, totalFulfillVolume, totalFulfillVolumeWeight, shipAt, carrierCode, primaryWaybillCode, paymentStatus, codRequired, invoiceRequired, paidAt, shipFromAttentionTo, shipFromAddress, shipFromDistrict, shipFromCity, shipFromState, shipFromCountry, shipFromPostalCode, shipFromPhone, shipFromMobile, shipFromFax, shipFromEmail, codAmount, tax, taxPaid, tradeSuccessAt, sourceOrderStatus, shipToStateName, shipToCityName, shipToDistrictName, shipmentType, def1, def2, def3, def4, def5, def6, def7, def8, def9, def10, def11, def12, def13, def14, def15, def16, def17, def18, def19, def20, def21, def22, def23, def24, def25, def26, def27, def28, def29, def30, def31, def32, def33, def34, def35, def36, def37, def38, def39, def40, sts) + values + + (#{entity.clientcode},#{entity.companycode},#{entity.storecode},#{entity.facilitycode},#{entity.code},#{entity.reforderid},#{entity.refordercode},#{entity.refordertype},#{entity.status},#{entity.consolidated},#{entity.internalinstructiontype},#{entity.bizchannel},#{entity.sourceplatformcode},#{entity.processtype},#{entity.sourceorderid},#{entity.sourceordercode},#{entity.shiptoattentionto},#{entity.sourceuseraccount},#{entity.shiptoaddress},#{entity.shiptocountry},#{entity.shiptostate},#{entity.shiptocity},#{entity.shiptodistrict},#{entity.shiptomobile},#{entity.totallines},#{entity.totalqty},#{entity.totalcontainers},#{entity.totalcases},#{entity.totalweight},#{entity.totalvolume},#{entity.totalvolumeweight},#{entity.weightum},#{entity.volumeum},#{entity.totalamount},#{entity.totalpayamount},#{entity.postageamount},#{entity.itemtotalamount},#{entity.totalfulfillqty},#{entity.totalfulfillweight},#{entity.totalfulfillvolume},#{entity.totalfulfillvolumeweight},#{entity.shipat},#{entity.carriercode},#{entity.primarywaybillcode},#{entity.paymentstatus},#{entity.codrequired},#{entity.invoicerequired},#{entity.paidat},#{entity.shipfromattentionto},#{entity.shipfromaddress},#{entity.shipfromdistrict},#{entity.shipfromcity},#{entity.shipfromstate},#{entity.shipfromcountry},#{entity.shipfrompostalcode},#{entity.shipfromphone},#{entity.shipfrommobile},#{entity.shipfromfax},#{entity.shipfromemail},#{entity.codamount},#{entity.tax},#{entity.taxpaid},#{entity.tradesuccessat},#{entity.sourceorderstatus},#{entity.shiptostatename},#{entity.shiptocityname},#{entity.shiptodistrictname},#{entity.shipmenttype},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},#{entity.def11},#{entity.def12},#{entity.def13},#{entity.def14},#{entity.def15},#{entity.def16},#{entity.def17},#{entity.def18},#{entity.def19},#{entity.def20},#{entity.def21},#{entity.def22},#{entity.def23},#{entity.def24},#{entity.def25},#{entity.def26},#{entity.def27},#{entity.def28},#{entity.def29},#{entity.def30},#{entity.def31},#{entity.def32},#{entity.def33},#{entity.def34},#{entity.def35},#{entity.def36},#{entity.def37},#{entity.def38},#{entity.def39},#{entity.def40}, 'Y') + + + + + insert into tocofs_saleout(id,clientCode, companyCode, storeCode, facilityCode, code, refOrderId, refOrderCode, refOrderType, status, consolidated, internalInstructionType, bizChannel, sourcePlatformCode, processType, sourceOrderId, sourceOrderCode, shipToAttentionTo, sourceUserAccount, shipToAddress, shipToCountry, shipToState, shipToCity, shipToDistrict, shipToMobile, totalLines, totalQty, totalContainers, totalCases, totalWeight, totalVolume, totalVolumeWeight, weightUM, volumeUM, totalAmount, totalPayAmount, postageAmount, itemTotalAmount, totalFulfillQty, totalFulfillWeight, totalFulfillVolume, totalFulfillVolumeWeight, shipAt, carrierCode, primaryWaybillCode, paymentStatus, codRequired, invoiceRequired, paidAt, shipFromAttentionTo, shipFromAddress, shipFromDistrict, shipFromCity, shipFromState, shipFromCountry, shipFromPostalCode, shipFromPhone, shipFromMobile, shipFromFax, shipFromEmail, codAmount, tax, taxPaid, tradeSuccessAt, sourceOrderStatus, shipToStateName, shipToCityName, shipToDistrictName, shipmentType, def1, def2, def3, def4, def5, def6, def7, def8, def9, def10, def11, def12, def13, def14, def15, def16, def17, def18, def19, def20, def21, def22, def23, def24, def25, def26, def27, def28, def29, def30, def31, def32, def33, def34, def35, def36, def37, def38, def39, def40) + values + + (#{entity.id},#{entity.clientcode},#{entity.companycode},#{entity.storecode},#{entity.facilitycode},#{entity.code},#{entity.reforderid},#{entity.refordercode},#{entity.refordertype},#{entity.status},#{entity.consolidated},#{entity.internalinstructiontype},#{entity.bizchannel},#{entity.sourceplatformcode},#{entity.processtype},#{entity.sourceorderid},#{entity.sourceordercode},#{entity.shiptoattentionto},#{entity.sourceuseraccount},#{entity.shiptoaddress},#{entity.shiptocountry},#{entity.shiptostate},#{entity.shiptocity},#{entity.shiptodistrict},#{entity.shiptomobile},#{entity.totallines},#{entity.totalqty},#{entity.totalcontainers},#{entity.totalcases},#{entity.totalweight},#{entity.totalvolume},#{entity.totalvolumeweight},#{entity.weightum},#{entity.volumeum},#{entity.totalamount},#{entity.totalpayamount},#{entity.postageamount},#{entity.itemtotalamount},#{entity.totalfulfillqty},#{entity.totalfulfillweight},#{entity.totalfulfillvolume},#{entity.totalfulfillvolumeweight},#{entity.shipat},#{entity.carriercode},#{entity.primarywaybillcode},#{entity.paymentstatus},#{entity.codrequired},#{entity.invoicerequired},#{entity.paidat},#{entity.shipfromattentionto},#{entity.shipfromaddress},#{entity.shipfromdistrict},#{entity.shipfromcity},#{entity.shipfromstate},#{entity.shipfromcountry},#{entity.shipfrompostalcode},#{entity.shipfromphone},#{entity.shipfrommobile},#{entity.shipfromfax},#{entity.shipfromemail},#{entity.codamount},#{entity.tax},#{entity.taxpaid},#{entity.tradesuccessat},#{entity.sourceorderstatus},#{entity.shiptostatename},#{entity.shiptocityname},#{entity.shiptodistrictname},#{entity.shipmenttype},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},#{entity.def11},#{entity.def12},#{entity.def13},#{entity.def14},#{entity.def15},#{entity.def16},#{entity.def17},#{entity.def18},#{entity.def19},#{entity.def20},#{entity.def21},#{entity.def22},#{entity.def23},#{entity.def24},#{entity.def25},#{entity.def26},#{entity.def27},#{entity.def28},#{entity.def29},#{entity.def30},#{entity.def31},#{entity.def32},#{entity.def33},#{entity.def34},#{entity.def35},#{entity.def36},#{entity.def37},#{entity.def38},#{entity.def39},#{entity.def40}) + + on duplicate key update + id = values(id), + clientCode = values(clientCode), + companyCode = values(companyCode), + storeCode = values(storeCode), + facilityCode = values(facilityCode), + code = values(code), + refOrderId = values(refOrderId), + refOrderCode = values(refOrderCode), + refOrderType = values(refOrderType), + status = values(status), + consolidated = values(consolidated), + internalInstructionType = values(internalInstructionType), + bizChannel = values(bizChannel), + sourcePlatformCode = values(sourcePlatformCode), + processType = values(processType), + sourceOrderId = values(sourceOrderId), + sourceOrderCode = values(sourceOrderCode), + shipToAttentionTo = values(shipToAttentionTo), + sourceUserAccount = values(sourceUserAccount), + shipToAddress = values(shipToAddress), + shipToCountry = values(shipToCountry), + shipToState = values(shipToState), + shipToCity = values(shipToCity), + shipToDistrict = values(shipToDistrict), + shipToMobile = values(shipToMobile), + totalLines = values(totalLines), + totalQty = values(totalQty), + totalContainers = values(totalContainers), + totalCases = values(totalCases), + totalWeight = values(totalWeight), + totalVolume = values(totalVolume), + totalVolumeWeight = values(totalVolumeWeight), + weightUM = values(weightUM), + volumeUM = values(volumeUM), + totalAmount = values(totalAmount), + totalPayAmount = values(totalPayAmount), + postageAmount = values(postageAmount), + itemTotalAmount = values(itemTotalAmount), + totalFulfillQty = values(totalFulfillQty), + totalFulfillWeight = values(totalFulfillWeight), + totalFulfillVolume = values(totalFulfillVolume), + totalFulfillVolumeWeight = values(totalFulfillVolumeWeight), + shipAt = values(shipAt), + carrierCode = values(carrierCode), + primaryWaybillCode = values(primaryWaybillCode), + paymentStatus = values(paymentStatus), + codRequired = values(codRequired), + invoiceRequired = values(invoiceRequired), + paidAt = values(paidAt), + shipFromAttentionTo = values(shipFromAttentionTo), + shipFromAddress = values(shipFromAddress), + shipFromDistrict = values(shipFromDistrict), + shipFromCity = values(shipFromCity), + shipFromState = values(shipFromState), + shipFromCountry = values(shipFromCountry), + shipFromPostalCode = values(shipFromPostalCode), + shipFromPhone = values(shipFromPhone), + shipFromMobile = values(shipFromMobile), + shipFromFax = values(shipFromFax), + shipFromEmail = values(shipFromEmail), + codAmount = values(codAmount), + tax = values(tax), + taxPaid = values(taxPaid), + tradeSuccessAt = values(tradeSuccessAt), + sourceOrderStatus = values(sourceOrderStatus), + shipToStateName = values(shipToStateName), + shipToCityName = values(shipToCityName), + shipToDistrictName = values(shipToDistrictName), + shipmentType = values(shipmentType), + def1 = values(def1), + def2 = values(def2), + def3 = values(def3), + def4 = values(def4), + def5 = values(def5), + def6 = values(def6), + def7 = values(def7), + def8 = values(def8), + def9 = values(def9), + def10 = values(def10), + def11 = values(def11), + def12 = values(def12), + def13 = values(def13), + def14 = values(def14), + def15 = values(def15), + def16 = values(def16), + def17 = values(def17), + def18 = values(def18), + def19 = values(def19), + def20 = values(def20), + def21 = values(def21), + def22 = values(def22), + def23 = values(def23), + def24 = values(def24), + def25 = values(def25), + def26 = values(def26), + def27 = values(def27), + def28 = values(def28), + def29 = values(def29), + def30 = values(def30), + def31 = values(def31), + def32 = values(def32), + def33 = values(def33), + def34 = values(def34), + def35 = values(def35), + def36 = values(def36), + def37 = values(def37), + def38 = values(def38), + def39 = values(def39), + def40 = values(def40) + + + update tocofs_saleout set + + clientCode = #{clientcode}, + companyCode = #{companycode}, + storeCode = #{storecode}, + facilityCode = #{facilitycode}, + code = #{code}, + refOrderId = #{reforderid}, + refOrderCode = #{refordercode}, + refOrderType = #{refordertype}, + status = #{status}, + consolidated = #{consolidated}, + internalInstructionType = #{internalinstructiontype}, + bizChannel = #{bizchannel}, + sourcePlatformCode = #{sourceplatformcode}, + processType = #{processtype}, + sourceOrderId = #{sourceorderid}, + sourceOrderCode = #{sourceordercode}, + shipToAttentionTo = #{shiptoattentionto}, + sourceUserAccount = #{sourceuseraccount}, + shipToAddress = #{shiptoaddress}, + shipToCountry = #{shiptocountry}, + shipToState = #{shiptostate}, + shipToCity = #{shiptocity}, + shipToDistrict = #{shiptodistrict}, + shipToMobile = #{shiptomobile}, + totalLines = #{totallines}, + totalQty = #{totalqty}, + totalContainers = #{totalcontainers}, + totalCases = #{totalcases}, + totalWeight = #{totalweight}, + totalVolume = #{totalvolume}, + totalVolumeWeight = #{totalvolumeweight}, + weightUM = #{weightum}, + volumeUM = #{volumeum}, + totalAmount = #{totalamount}, + totalPayAmount = #{totalpayamount}, + postageAmount = #{postageamount}, + itemTotalAmount = #{itemtotalamount}, + totalFulfillQty = #{totalfulfillqty}, + totalFulfillWeight = #{totalfulfillweight}, + totalFulfillVolume = #{totalfulfillvolume}, + totalFulfillVolumeWeight = #{totalfulfillvolumeweight}, + shipAt = #{shipat}, + carrierCode = #{carriercode}, + primaryWaybillCode = #{primarywaybillcode}, + paymentStatus = #{paymentstatus}, + codRequired = #{codrequired}, + invoiceRequired = #{invoicerequired}, + paidAt = #{paidat}, + shipFromAttentionTo = #{shipfromattentionto}, + shipFromAddress = #{shipfromaddress}, + shipFromDistrict = #{shipfromdistrict}, + shipFromCity = #{shipfromcity}, + shipFromState = #{shipfromstate}, + shipFromCountry = #{shipfromcountry}, + shipFromPostalCode = #{shipfrompostalcode}, + shipFromPhone = #{shipfromphone}, + shipFromMobile = #{shipfrommobile}, + shipFromFax = #{shipfromfax}, + shipFromEmail = #{shipfromemail}, + codAmount = #{codamount}, + tax = #{tax}, + taxPaid = #{taxpaid}, + tradeSuccessAt = #{tradesuccessat}, + sourceOrderStatus = #{sourceorderstatus}, + shipToStateName = #{shiptostatename}, + shipToCityName = #{shiptocityname}, + shipToDistrictName = #{shiptodistrictname}, + shipmentType = #{shipmenttype}, + def1 = #{def1}, + def2 = #{def2}, + def3 = #{def3}, + def4 = #{def4}, + def5 = #{def5}, + def6 = #{def6}, + def7 = #{def7}, + def8 = #{def8}, + def9 = #{def9}, + def10 = #{def10}, + def11 = #{def11}, + def12 = #{def12}, + def13 = #{def13}, + def14 = #{def14}, + def15 = #{def15}, + def16 = #{def16}, + def17 = #{def17}, + def18 = #{def18}, + def19 = #{def19}, + def20 = #{def20}, + def21 = #{def21}, + def22 = #{def22}, + def23 = #{def23}, + def24 = #{def24}, + def25 = #{def25}, + def26 = #{def26}, + def27 = #{def27}, + def28 = #{def28}, + def29 = #{def29}, + def30 = #{def30}, + def31 = #{def31}, + def32 = #{def32}, + def33 = #{def33}, + def34 = #{def34}, + def35 = #{def35}, + def36 = #{def36}, + def37 = #{def37}, + def38 = #{def38}, + def39 = #{def39}, + def40 = #{def40}, + + where id = #{id} + + + + update tocofs_saleout set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + where id = #{id} + + + + update tocofs_saleout set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id} + + and id = #{id} + and clientCode = #{clientcode} + and companyCode = #{companycode} + and storeCode = #{storecode} + and facilityCode = #{facilitycode} + and code = #{code} + and refOrderId = #{reforderid} + and refOrderCode = #{refordercode} + and refOrderType = #{refordertype} + and status = #{status} + and consolidated = #{consolidated} + and internalInstructionType = #{internalinstructiontype} + and bizChannel = #{bizchannel} + and sourcePlatformCode = #{sourceplatformcode} + and processType = #{processtype} + and sourceOrderId = #{sourceorderid} + and sourceOrderCode = #{sourceordercode} + and shipToAttentionTo = #{shiptoattentionto} + and sourceUserAccount = #{sourceuseraccount} + and shipToAddress = #{shiptoaddress} + and shipToCountry = #{shiptocountry} + and shipToState = #{shiptostate} + and shipToCity = #{shiptocity} + and shipToDistrict = #{shiptodistrict} + and shipToMobile = #{shiptomobile} + and totalLines = #{totallines} + and totalQty = #{totalqty} + and totalContainers = #{totalcontainers} + and totalCases = #{totalcases} + and totalWeight = #{totalweight} + and totalVolume = #{totalvolume} + and totalVolumeWeight = #{totalvolumeweight} + and weightUM = #{weightum} + and volumeUM = #{volumeum} + and totalAmount = #{totalamount} + and totalPayAmount = #{totalpayamount} + and postageAmount = #{postageamount} + and itemTotalAmount = #{itemtotalamount} + and totalFulfillQty = #{totalfulfillqty} + and totalFulfillWeight = #{totalfulfillweight} + and totalFulfillVolume = #{totalfulfillvolume} + and totalFulfillVolumeWeight = #{totalfulfillvolumeweight} + and shipAt = #{shipat} + and carrierCode = #{carriercode} + and primaryWaybillCode = #{primarywaybillcode} + and paymentStatus = #{paymentstatus} + and codRequired = #{codrequired} + and invoiceRequired = #{invoicerequired} + and paidAt = #{paidat} + and shipFromAttentionTo = #{shipfromattentionto} + and shipFromAddress = #{shipfromaddress} + and shipFromDistrict = #{shipfromdistrict} + and shipFromCity = #{shipfromcity} + and shipFromState = #{shipfromstate} + and shipFromCountry = #{shipfromcountry} + and shipFromPostalCode = #{shipfrompostalcode} + and shipFromPhone = #{shipfromphone} + and shipFromMobile = #{shipfrommobile} + and shipFromFax = #{shipfromfax} + and shipFromEmail = #{shipfromemail} + and codAmount = #{codamount} + and tax = #{tax} + and taxPaid = #{taxpaid} + and tradeSuccessAt = #{tradesuccessat} + and sourceOrderStatus = #{sourceorderstatus} + and shipToStateName = #{shiptostatename} + and shipToCityName = #{shiptocityname} + and shipToDistrictName = #{shiptodistrictname} + and shipmentType = #{shipmenttype} + and def1 = #{def1} + and def2 = #{def2} + and def3 = #{def3} + and def4 = #{def4} + and def5 = #{def5} + and def6 = #{def6} + and def7 = #{def7} + and def8 = #{def8} + and def9 = #{def9} + and def10 = #{def10} + and def11 = #{def11} + and def12 = #{def12} + and def13 = #{def13} + and def14 = #{def14} + and def15 = #{def15} + and def16 = #{def16} + and def17 = #{def17} + and def18 = #{def18} + and def19 = #{def19} + and def20 = #{def20} + and def21 = #{def21} + and def22 = #{def22} + and def23 = #{def23} + and def24 = #{def24} + and def25 = #{def25} + and def26 = #{def26} + and def27 = #{def27} + and def28 = #{def28} + and def29 = #{def29} + and def30 = #{def30} + and def31 = #{def31} + and def32 = #{def32} + and def33 = #{def33} + and def34 = #{def34} + and def35 = #{def35} + and def36 = #{def36} + and def37 = #{def37} + and def38 = #{def38} + and def39 = #{def39} + and def40 = #{def40} + and sts='Y' + + + + + delete from tocofs_saleout where id = #{id} + + \ No newline at end of file diff --git a/service/src/main/java/com/hzya/frame/report/lets/service/ITocofsReturngoodsDetailedService.java b/service/src/main/java/com/hzya/frame/report/lets/service/ITocofsReturngoodsDetailedService.java new file mode 100644 index 00000000..806b2d2e --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/service/ITocofsReturngoodsDetailedService.java @@ -0,0 +1,13 @@ +package com.hzya.frame.report.lets.service; + +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.report.lets.entity.TocofsReturngoodsDetailedEntity; + +/** + * root(TocofsReturngoodsDetailed)表服务接口 + * + * @author makejava + * @since 2024-08-09 13:45:47 + */ +public interface ITocofsReturngoodsDetailedService extends IBaseService { +} diff --git a/service/src/main/java/com/hzya/frame/report/lets/service/ITocofsReturngoodsService.java b/service/src/main/java/com/hzya/frame/report/lets/service/ITocofsReturngoodsService.java new file mode 100644 index 00000000..3096df46 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/service/ITocofsReturngoodsService.java @@ -0,0 +1,13 @@ +package com.hzya.frame.report.lets.service; + +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.report.lets.entity.TocofsReturngoodsEntity; + +/** + * OFS售后入库单(TocofsReturngoods)表服务接口 + * + * @author makejava + * @since 2024-08-09 11:08:40 + */ +public interface ITocofsReturngoodsService extends IBaseService { +} diff --git a/service/src/main/java/com/hzya/frame/report/lets/service/ITocofsSaleoutDetailedService.java b/service/src/main/java/com/hzya/frame/report/lets/service/ITocofsSaleoutDetailedService.java new file mode 100644 index 00000000..bc1a661b --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/service/ITocofsSaleoutDetailedService.java @@ -0,0 +1,13 @@ +package com.hzya.frame.report.lets.service; + +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.report.lets.entity.TocofsSaleoutDetailedEntity; + +/** + * tocofs_saleout_detailed(TocofsSaleoutDetailed)表服务接口 + * + * @author makejava + * @since 2024-08-01 17:01:53 + */ +public interface ITocofsSaleoutDetailedService extends IBaseService { +} diff --git a/service/src/main/java/com/hzya/frame/report/lets/service/ITocofsSaleoutService.java b/service/src/main/java/com/hzya/frame/report/lets/service/ITocofsSaleoutService.java new file mode 100644 index 00000000..a3197e3b --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/service/ITocofsSaleoutService.java @@ -0,0 +1,21 @@ +package com.hzya.frame.report.lets.service; + +import com.alibaba.fastjson.JSONObject; +import com.hzya.frame.basedao.service.IBaseService; +import com.hzya.frame.report.lets.entity.TocofsSaleoutEntity; +import com.hzya.frame.web.entity.JsonResultEntity; + +/** + * root(TocofsSaleout)表服务接口 + * + * @author makejava + * @since 2024-08-01 17:01:32 + */ +public interface ITocofsSaleoutService extends IBaseService { + /** + * 查询TOC、TOB销售正向流程报表数据 + * + * @author liuyang + */ + JsonResultEntity queryToCSalesReport(JSONObject jsonObject) throws Exception; +} diff --git a/service/src/main/java/com/hzya/frame/report/lets/service/impl/TocofsReturngoodsDetailedServiceImpl.java b/service/src/main/java/com/hzya/frame/report/lets/service/impl/TocofsReturngoodsDetailedServiceImpl.java new file mode 100644 index 00000000..27e65db9 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/service/impl/TocofsReturngoodsDetailedServiceImpl.java @@ -0,0 +1,26 @@ +package com.hzya.frame.report.lets.service.impl; + +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.report.lets.dao.ITocofsReturngoodsDetailedDao; +import com.hzya.frame.report.lets.entity.TocofsReturngoodsDetailedEntity; +import com.hzya.frame.report.lets.service.ITocofsReturngoodsDetailedService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +/** + * root(TocofsReturngoodsDetailed)表服务实现类 + * + * @author makejava + * @since 2024-08-09 13:45:47 + */ +@Service(value = "tocofsReturngoodsDetailedServiceImplReport") +public class TocofsReturngoodsDetailedServiceImpl extends BaseService implements ITocofsReturngoodsDetailedService { + + private ITocofsReturngoodsDetailedDao tocofsReturngoodsDetailedDao; + + @Autowired + public void setTocofsReturngoodsDetailedDao(ITocofsReturngoodsDetailedDao dao) { + this.tocofsReturngoodsDetailedDao = dao; + this.dao = dao; + } +} diff --git a/service/src/main/java/com/hzya/frame/report/lets/service/impl/TocofsReturngoodsServiceImpl.java b/service/src/main/java/com/hzya/frame/report/lets/service/impl/TocofsReturngoodsServiceImpl.java new file mode 100644 index 00000000..fb20ae4a --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/service/impl/TocofsReturngoodsServiceImpl.java @@ -0,0 +1,26 @@ +package com.hzya.frame.report.lets.service.impl; + +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.report.lets.dao.ITocofsReturngoodsDao; +import com.hzya.frame.report.lets.entity.TocofsReturngoodsEntity; +import com.hzya.frame.report.lets.service.ITocofsReturngoodsService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +/** + * OFS售后入库单(TocofsReturngoods)表服务实现类 + * + * @author makejava + * @since 2024-08-09 11:08:40 + */ +@Service(value = "tocofsReturngoodsServiceImplReport") +public class TocofsReturngoodsServiceImpl extends BaseService implements ITocofsReturngoodsService { + + private ITocofsReturngoodsDao tocofsReturngoodsDao; + + @Autowired + public void setTocofsReturngoodsDao(ITocofsReturngoodsDao dao) { + this.tocofsReturngoodsDao = dao; + this.dao = dao; + } +} diff --git a/service/src/main/java/com/hzya/frame/report/lets/service/impl/TocofsSaleoutDetailedServiceImpl.java b/service/src/main/java/com/hzya/frame/report/lets/service/impl/TocofsSaleoutDetailedServiceImpl.java new file mode 100644 index 00000000..2ca912cc --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/service/impl/TocofsSaleoutDetailedServiceImpl.java @@ -0,0 +1,27 @@ +package com.hzya.frame.report.lets.service.impl; + + +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.report.lets.dao.ITocofsSaleoutDetailedDao; +import com.hzya.frame.report.lets.entity.TocofsSaleoutDetailedEntity; +import com.hzya.frame.report.lets.service.ITocofsSaleoutDetailedService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +/** + * tocofs_saleout_detailed(TocofsSaleoutDetailed)表服务实现类 + * + * @author makejava + * @since 2024-08-01 17:01:53 + */ +@Service(value = "tocofsSaleoutDetailedServiceImplReport") +public class TocofsSaleoutDetailedServiceImpl extends BaseService implements ITocofsSaleoutDetailedService { + + private ITocofsSaleoutDetailedDao tocofsSaleoutDetailedDao; + + @Autowired + public void setTocofsSaleoutDetailedDao(ITocofsSaleoutDetailedDao dao) { + this.tocofsSaleoutDetailedDao = dao; + this.dao = dao; + } +} diff --git a/service/src/main/java/com/hzya/frame/report/lets/service/impl/TocofsSaleoutServiceImpl.java b/service/src/main/java/com/hzya/frame/report/lets/service/impl/TocofsSaleoutServiceImpl.java new file mode 100644 index 00000000..30e64238 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/service/impl/TocofsSaleoutServiceImpl.java @@ -0,0 +1,129 @@ +package com.hzya.frame.report.lets.service.impl; + +import cn.hutool.core.lang.Assert; +import com.alibaba.fastjson.JSONObject; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.hzya.frame.basedao.service.impl.BaseService; +import com.hzya.frame.page.PageAttribute; +import com.hzya.frame.report.lets.dao.ITocofsSaleoutDao; +import com.hzya.frame.report.lets.dao.ITocofsSaleoutDetailedDao; +import com.hzya.frame.report.lets.entity.TocofsReturngoodsEntity; +import com.hzya.frame.report.lets.entity.TocofsSaleoutDetailedEntity; +import com.hzya.frame.report.lets.entity.TocofsSaleoutEntity; +import com.hzya.frame.report.lets.service.ITocofsSaleoutService; +import com.hzya.frame.web.entity.BaseResult; +import com.hzya.frame.web.entity.JsonResultEntity; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * root(TocofsSaleout)表服务实现类 + * + * @author makejava + * @since 2024-08-01 17:01:32 + */ +@Service(value = "tocofsSaleoutServiceImplReport") +public class TocofsSaleoutServiceImpl extends BaseService implements ITocofsSaleoutService { + + private ITocofsSaleoutDao tocofsSaleoutDao; + + @Autowired + private ITocofsSaleoutDetailedDao iTocofsSaleoutDetailedDao; + + @Autowired + public void setTocofsSaleoutDao(ITocofsSaleoutDao dao) { + this.tocofsSaleoutDao = dao; + this.dao = dao; + } + + @Override + public JsonResultEntity queryToCSalesReport(JSONObject jsonObject) throws Exception { + JSONObject jsonStr = getstrObj("jsonStr", jsonObject); + + //分页参数 + String pageNum = jsonStr.getString("pageNum"); + String pageSize = jsonStr.getString("pageSize"); + Assert.notNull(pageNum, "pageNum不能为空"); + Assert.notNull(pageSize, "pageSize不能为空"); + + //业务类型:TOB、TOC + String businessType = jsonStr.getString("businessType"); + Assert.notNull(businessType, "businessType不能为空!"); + //出库日期范围 + String businessDate_start = jsonStr.getString("businessDate_start"); + String businessDate_end = jsonStr.getString("businessDate_end"); + if (businessDate_start != null) { + businessDate_start += " 00:00:00"; + } + if (businessDate_end != null) { + businessDate_end += " 23:59:59"; + } + //交易成功时间范围 + String successfulTradeDate_start = jsonStr.getString("successfulTradeDate_start"); + if (successfulTradeDate_start != null) { + successfulTradeDate_start += " 00:00:00"; + } + String successfulTradeDate_end = jsonStr.getString("successfulTradeDate_end"); + if (successfulTradeDate_end != null) { + successfulTradeDate_end += " 23:59:59"; + } + //推送时间 + String newPushDate = jsonStr.getString("newPushDate"); + String def5 = jsonStr.getString("def5"); + String def1 = jsonStr.getString("def1"); + String def3 = jsonStr.getString("def3"); + + //推送状态 + String newState = jsonStr.getString("newstate");//推送状态:TOB、TOC库存同步成功 + String newState4 = jsonStr.getString("newState4"); + String newstate2 = jsonStr.getString("newstate2"); + String newstate3 = jsonStr.getString("newstate3"); + //下游系统单号、下游系统主键 + String newsystemnumber = jsonStr.getString("newsystemnumber"); + String newsystemprimary = jsonStr.getString("newsystemprimary"); + String newSystemNumber4 = jsonStr.getString("newsystemnumber4"); + String newSystemPrimary4 = jsonStr.getString("newsystemprimary4"); + String newsystemnumber2 = jsonStr.getString("newsystemnumber2"); + String newsystemprimary2 = jsonStr.getString("newsystemprimary2"); + String newsystemnumber3 = jsonStr.getString("newsystemnumber3"); + String newsystemprimary3 = jsonStr.getString("newsystemprimary3"); + + TocofsSaleoutDetailedEntity tocofsSaleoutDetailedEntity = new TocofsSaleoutDetailedEntity(); + tocofsSaleoutDetailedEntity.setBusinesstype(businessType); + + tocofsSaleoutDetailedEntity.setBusinessdate_start(businessDate_start); + tocofsSaleoutDetailedEntity.setBusinessdate_end(businessDate_end); + tocofsSaleoutDetailedEntity.setSuccessfultradedate_start(successfulTradeDate_start); + tocofsSaleoutDetailedEntity.setSuccessfultradedate_end(successfulTradeDate_end); + + tocofsSaleoutDetailedEntity.setNewpushdate(newPushDate); + tocofsSaleoutDetailedEntity.setDef5(def5); + tocofsSaleoutDetailedEntity.setDef1(def1); + tocofsSaleoutDetailedEntity.setDef3(def3); + + tocofsSaleoutDetailedEntity.setNewstate(newState); + tocofsSaleoutDetailedEntity.setNewstate4(newState4); + tocofsSaleoutDetailedEntity.setNewstate2(newstate2); + tocofsSaleoutDetailedEntity.setNewstate3(newstate3); + + tocofsSaleoutDetailedEntity.setNewsystemnumber(newsystemnumber); + tocofsSaleoutDetailedEntity.setNewsystemprimary(newsystemprimary); + tocofsSaleoutDetailedEntity.setNewsystemnumber4(newSystemNumber4); + tocofsSaleoutDetailedEntity.setNewsystemprimary4(newSystemPrimary4); + tocofsSaleoutDetailedEntity.setNewsystemnumber2(newsystemnumber2); + tocofsSaleoutDetailedEntity.setNewsystemprimary2(newsystemprimary2); + tocofsSaleoutDetailedEntity.setNewsystemnumber3(newsystemnumber3); + tocofsSaleoutDetailedEntity.setNewsystemprimary3(newsystemprimary3); + + tocofsSaleoutDetailedEntity.setPageNum(Integer.valueOf(pageNum)); + tocofsSaleoutDetailedEntity.setPageSize(Integer.valueOf(pageSize)); + + PageHelper.startPage(tocofsSaleoutDetailedEntity.getPageNum(), tocofsSaleoutDetailedEntity.getPageSize()); + List tocofsSaleoutDetailedEntityPageAttribute = iTocofsSaleoutDetailedDao.query(tocofsSaleoutDetailedEntity); + PageInfo pageInfo = new PageInfo(tocofsSaleoutDetailedEntityPageAttribute); + return BaseResult.getSuccessMessageEntity("查询成功", pageInfo); + } +}