diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleOutPluginInitializerToC.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleOutPluginInitializerToC.java index cebdb7e6..9621e852 100644 --- a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleOutPluginInitializerToC.java +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/SoSaleOutPluginInitializerToC.java @@ -150,8 +150,9 @@ public class SoSaleOutPluginInitializerToC extends PluginBaseEntity { //默认被定时器执行,每天晚上凌晨0点5分 //暂定先同步TOC销售库存、再推送TOC销售确认收入 List startAndEndVos = calculateCalculateEntireDayPeriod(null); - startImplementStockByTime(startAndEndVos.get(0).getStart_time(), startAndEndVos.get(0).getEnd_time()); - startImplementTranByTime(startAndEndVos.get(0).getStart_time(), startAndEndVos.get(0).getEnd_time()); + //TODO 1~4号暂时不推送 +// startImplementStockByTime(startAndEndVos.get(0).getStart_time(), startAndEndVos.get(0).getEnd_time()); +// startImplementTranByTime(startAndEndVos.get(0).getStart_time(), startAndEndVos.get(0).getEnd_time()); } } } catch (Exception e) { 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 index 0b8d4ce5..62ec0097 100644 --- 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 @@ -1,6 +1,8 @@ package com.hzya.frame.report.lets.dao; import com.hzya.frame.basedao.dao.IBaseDao; +import com.hzya.frame.report.lets.dto.TobofsReturnGoodsDetailedDto; +import com.hzya.frame.report.lets.dto.TocofsReturnGoodsDetailedDto; import com.hzya.frame.report.lets.entity.TocofsReturngoodsDetailedEntity; import java.util.List; @@ -12,4 +14,18 @@ import java.util.List; * @since 2024-09-13 11:58:26 */ public interface ITocofsReturngoodsDetailedDao extends IBaseDao { + /** + * 查询 采用==查询,适用toc + * + * @author liuyang + */ + List queryEntityListBaseToc(TocofsReturngoodsDetailedEntity tocofsReturngoodsDetailedEntity) throws Exception; + + + /** + * 查询 采用==查询,适用tob + * + * @author liuyang + */ + List queryEntityListBaseTob(TocofsReturngoodsDetailedEntity tocofsReturngoodsDetailedEntity) throws Exception; } \ 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 index 16ff1f9a..a47feecf 100644 --- 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 @@ -2,6 +2,8 @@ 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.dto.TobofsReturnGoodsDetailedDto; +import com.hzya.frame.report.lets.dto.TocofsReturnGoodsDetailedDto; import com.hzya.frame.report.lets.entity.TocofsReturngoodsDetailedEntity; import org.springframework.stereotype.Repository; @@ -15,5 +17,14 @@ import java.util.List; */ @Repository(value = "tocofsReturngoodsDetailedDaoImplReport") public class TocofsReturngoodsDetailedDaoImpl extends MybatisGenericDao implements ITocofsReturngoodsDetailedDao { + @Override + public List queryEntityListBaseToc(TocofsReturngoodsDetailedEntity tocofsReturngoodsDetailedEntity) throws Exception { + return (List) selectList("com.hzya.frame.report.lets.dao.impl.TocofsReturngoodsDetailedDaoImpl.entity_list_base_toc", tocofsReturngoodsDetailedEntity); + } + + @Override + public List queryEntityListBaseTob(TocofsReturngoodsDetailedEntity tocofsReturngoodsDetailedEntity) throws Exception { + return (List) selectList("com.hzya.frame.report.lets.dao.impl.TocofsReturngoodsDetailedDaoImpl.entity_list_base_tob", tocofsReturngoodsDetailedEntity); + } } diff --git a/service/src/main/java/com/hzya/frame/report/lets/dto/TobofsReturnGoodsDetailedDto.java b/service/src/main/java/com/hzya/frame/report/lets/dto/TobofsReturnGoodsDetailedDto.java new file mode 100644 index 00000000..21580b5c --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/dto/TobofsReturnGoodsDetailedDto.java @@ -0,0 +1,69 @@ +package com.hzya.frame.report.lets.dto; + +import com.alibaba.excel.annotation.ExcelProperty; +import lombok.Data; + +/** + * TOC退货Excel报表导出 + * + * @Author:liuyang + * @Package:com.hzya.frame.report.lets.dto + * @Project:kangarooDataCenterV3 + * @name:TocofsSaleoutDetailedDto + * @Date:2024/10/30 14:59 + * @Filename:TocofsSaleoutDetailedDto + */ +@Data +public class TobofsReturnGoodsDetailedDto { + + @ExcelProperty(value = "O入库单明细主键") + private String id; + @ExcelProperty(value = "O货主编码") + private String headCompanyCode; + @ExcelProperty(value = "O仓库编码") + private String headFacilityCode; + @ExcelProperty(value = "O平台编码") + private String headSourcePlatformCode; + @ExcelProperty(value = "O店铺编码") + private String headStoreCode; + @ExcelProperty(value = "O售后入库单编码") + private String headCode; + @ExcelProperty(value = "O中台业务类型") + private String businessType; + @ExcelProperty(value = "O货品sku") + private String skuCode; + @ExcelProperty(value = "O货品名称") + private String skuName; + @ExcelProperty(value = "O实入数量") + private String receivedQty; + + //TOC退货-库存 开始 + @ExcelProperty(value = "O退货入库时间") + private String businessDate; + @ExcelProperty(value = "库存-报错详情") + private String newTransmitInfo; + @ExcelProperty(value = "库存-推送时间") + private String newPushDate; + @ExcelProperty(value = "库存-推送状态") + private String newState; + @ExcelProperty(value = "库存-U8C单号") + private String newSystemNumber; + @ExcelProperty(value = "库存-U8C主键") + private String newSystemPrimary; + //TOC退货-库存 结束 + + //TOC退货-交易成功 开始 + @ExcelProperty(value = "O退款完成时间") + private String refundedAt; + @ExcelProperty(value = "交易成功-报错详情") + private String newTransmitInfo2; + @ExcelProperty(value = "交易成功-推送时间") + private String newPushDate2; + @ExcelProperty(value = "交易成功-推送状态") + private String newState2; + @ExcelProperty(value = "交易成功-下游单号") + private String newSystemNumber2; + @ExcelProperty(value = "交易成功-下游主键") + private String newSystemPrimary2; + //TOC退货-交易成功 结束 +} diff --git a/service/src/main/java/com/hzya/frame/report/lets/dto/TocofsReturnGoodsDetailedDto.java b/service/src/main/java/com/hzya/frame/report/lets/dto/TocofsReturnGoodsDetailedDto.java new file mode 100644 index 00000000..419466a4 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/report/lets/dto/TocofsReturnGoodsDetailedDto.java @@ -0,0 +1,69 @@ +package com.hzya.frame.report.lets.dto; + +import com.alibaba.excel.annotation.ExcelProperty; +import lombok.Data; + +/** + * TOC退货Excel报表导出 + * + * @Author:liuyang + * @Package:com.hzya.frame.report.lets.dto + * @Project:kangarooDataCenterV3 + * @name:TocofsSaleoutDetailedDto + * @Date:2024/10/30 14:59 + * @Filename:TocofsSaleoutDetailedDto + */ +@Data +public class TocofsReturnGoodsDetailedDto { + + @ExcelProperty(value = "O入库单明细主键") + private String id; + @ExcelProperty(value = "O货主编码") + private String headCompanyCode; + @ExcelProperty(value = "O仓库编码") + private String headFacilityCode; + @ExcelProperty(value = "O平台编码") + private String headSourcePlatformCode; + @ExcelProperty(value = "O店铺编码") + private String headStoreCode; + @ExcelProperty(value = "O售后入库单编码") + private String headCode; + @ExcelProperty(value = "O中台业务类型") + private String businessType; + @ExcelProperty(value = "O货品sku") + private String skuCode; + @ExcelProperty(value = "O货品名称") + private String skuName; + @ExcelProperty(value = "O实入数量") + private String receivedQty; + + //TOC退货-库存 开始 + @ExcelProperty(value = "O退货入库时间") + private String businessDate; + @ExcelProperty(value = "库存-报错详情") + private String newTransmitInfo3; + @ExcelProperty(value = "库存-推送时间") + private String newPushDate3; + @ExcelProperty(value = "库存-推送状态") + private String newState3; + @ExcelProperty(value = "库存-U8C单号") + private String newSystemNumber3; + @ExcelProperty(value = "库存-U8C主键") + private String newSystemPrimary3; + //TOC退货-库存 结束 + + //TOC退货-交易成功 开始 + @ExcelProperty(value = "O退款完成时间") + private String refundedAt; + @ExcelProperty(value = "交易成功-报错详情") + private String newTransmitInfo4; + @ExcelProperty(value = "交易成功-推送时间") + private String newPushDate4; + @ExcelProperty(value = "交易成功-推送状态") + private String newState4; + @ExcelProperty(value = "交易成功-下游单号") + private String newSystemNumber4; + @ExcelProperty(value = "交易成功-下游主键") + private String newSystemPrimary4; + //TOC退货-交易成功 结束 +} 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 index debd0465..ea618d42 100644 --- 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 @@ -204,6 +204,7 @@ ,def40 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +