diff --git a/src/main/java/com/glxp/api/controller/TestController.java b/src/main/java/com/glxp/api/controller/TestController.java index 815d4c6aa..6c54073de 100644 --- a/src/main/java/com/glxp/api/controller/TestController.java +++ b/src/main/java/com/glxp/api/controller/TestController.java @@ -11,6 +11,7 @@ import com.glxp.api.req.sync.BasicExportStatusRequest; import com.glxp.api.res.chs.YbHcflEntityResponse; import com.glxp.api.service.thrsys.ThrConsumeMaterialCategoryService; import com.glxp.api.service.thrsys.ThrInvOrderService; +import com.glxp.api.service.thrsys.ThrProductsService; import com.glxp.api.task.TestStatOrderService; import com.glxp.api.util.MsDateUtil; import com.glxp.api.util.RedisUtil; @@ -123,4 +124,19 @@ public class TestController { return ResultVOUtils.success(""); } + + /** + * 拉取视图测试 + */ + @Resource + private ThrProductsService thrProductsService; + @GetMapping("/test/downloadThrPi") + public BaseResponse downloadThrPi() { + ThrSystemDetailEntity thrSystemDetailEntity = new ThrSystemDetailEntity(); + thrSystemDetailEntity.setThirdSysFk("thirdId"); + thrSystemDetailEntity.setProductType(2); + thrProductsService.downloadThrPi(thrSystemDetailEntity); + return ResultVOUtils.success(""); + } + } diff --git a/src/main/java/com/glxp/api/entity/thrsys/ThrSystemDetailEntity.java b/src/main/java/com/glxp/api/entity/thrsys/ThrSystemDetailEntity.java index 42d382f46..2af8eb417 100644 --- a/src/main/java/com/glxp/api/entity/thrsys/ThrSystemDetailEntity.java +++ b/src/main/java/com/glxp/api/entity/thrsys/ThrSystemDetailEntity.java @@ -27,6 +27,8 @@ public class ThrSystemDetailEntity { private Integer time; private Integer dlLastTime; + private Integer productType; + public String getValue() { if (value == null) return null; diff --git a/src/main/java/com/glxp/api/service/collect/RelCodeDetailService.java b/src/main/java/com/glxp/api/service/collect/RelCodeDetailService.java index 8772e6156..a5cf1cc97 100644 --- a/src/main/java/com/glxp/api/service/collect/RelCodeDetailService.java +++ b/src/main/java/com/glxp/api/service/collect/RelCodeDetailService.java @@ -54,6 +54,9 @@ public class RelCodeDetailService extends ServiceImpl { ScheduledRequest scheduledRequest = new ScheduledRequest(); scheduledRequest.setCronName("heartTask"); - ScheduledEntity scheduledEntity = scheduledDao.findScheduled(scheduledRequest); - String cron = scheduledEntity.getCron(); +// ScheduledEntity scheduledEntity = scheduledDao.findScheduled(scheduledRequest); + String cron = "0 0 0 1 * ?"; if (cron.isEmpty()) { log.error("cron is null"); }