From 1c286167a06201f683d657c38bb3bdd711bad6a5 Mon Sep 17 00:00:00 2001 From: caoyizhong <1270296080> Date: Thu, 14 Dec 2023 11:35:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B7=A5=E5=8D=95=E8=B6=85?= =?UTF-8?q?=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AftersalesCompletionRecipientEntity.java | 9 ++++- .../AftersalesCompletionRecordEntity.java | 4 +- .../entity/AftersalesProcessorEntity.java | 9 +++++ blade-service/logpm-aftersales/pom.xml | 4 ++ .../AftersalesWorkOrderController.java | 9 ++++- .../mapper/AftersalesOvertimeFineMapper.xml | 3 +- .../impl/AftersalesWorkOrderServiceImpl.java | 37 ++++++++++++++----- 7 files changed, 58 insertions(+), 17 deletions(-) diff --git a/blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesCompletionRecipientEntity.java b/blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesCompletionRecipientEntity.java index d5e206fde..63657c652 100644 --- a/blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesCompletionRecipientEntity.java +++ b/blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesCompletionRecipientEntity.java @@ -90,11 +90,16 @@ public class AftersalesCompletionRecipientEntity extends TenantEntity { * 异常工单ID */ @ApiModelProperty(value = "异常工单ID") - private String workOrderId; + private Long workOrderId; /** * 仓库ID */ @ApiModelProperty(value = "仓库ID") - private String warehouseId; + private Long warehouseId; + /** + * 说明 + */ + @ApiModelProperty(value = "说明") + private String explain; } diff --git a/blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesCompletionRecordEntity.java b/blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesCompletionRecordEntity.java index 6b4948171..7cda149b7 100644 --- a/blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesCompletionRecordEntity.java +++ b/blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesCompletionRecordEntity.java @@ -96,11 +96,11 @@ public class AftersalesCompletionRecordEntity extends TenantEntity { * 异常工单ID */ @ApiModelProperty(value = "异常工单ID") - private String workOrderId; + private Long workOrderId; /** * 仓库ID */ @ApiModelProperty(value = "仓库ID") - private String warehouseId; + private Long warehouseId; } diff --git a/blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesProcessorEntity.java b/blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesProcessorEntity.java index 1b934eaba..4256510a8 100644 --- a/blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesProcessorEntity.java +++ b/blade-service-api/logpm-aftersales-api/src/main/java/com/logpm/aftersales/entity/AftersalesProcessorEntity.java @@ -97,4 +97,13 @@ public class AftersalesProcessorEntity extends TenantEntity { @ApiModelProperty(value = "仓库ID") private Long warehouseId; + /** + * 指派时间 + */ + @ApiModelProperty(value = "指派时间") + private Date assignTime; + + + + } diff --git a/blade-service/logpm-aftersales/pom.xml b/blade-service/logpm-aftersales/pom.xml index 5fa0bb176..b3c84bd23 100644 --- a/blade-service/logpm-aftersales/pom.xml +++ b/blade-service/logpm-aftersales/pom.xml @@ -73,6 +73,10 @@ blade-biz-common ${bladex.project.version} + + com.xuxueli + xxl-job-core + diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java index da025469f..f5e281a50 100644 --- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java +++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java @@ -23,6 +23,7 @@ import com.logpm.aftersales.entity.AftersalesSettlementEntity; import com.logpm.aftersales.excel.AftersalesWorkOrderImporter; import com.logpm.basicdata.entity.BasicdataWarehouseEntity; import com.logpm.basicdata.feign.IBasicdataWarehouseClient; +import com.xxl.job.core.handler.annotation.XxlJob; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; @@ -39,6 +40,7 @@ import org.springblade.core.secure.utils.AuthUtil; import org.springblade.core.tool.api.R; import org.springblade.core.tool.utils.Func; import org.springblade.system.entity.User; +import org.springframework.scheduling.annotation.Scheduled; import org.springframework.web.bind.annotation.*; import com.baomidou.mybatisplus.core.metadata.IPage; import com.logpm.aftersales.entity.AftersalesWorkOrderEntity; @@ -145,12 +147,15 @@ public class AftersalesWorkOrderController extends BladeController { } /** - * 客服异常工单 查询处理超时的数据 待处理 + * 客服异常工单 查询处理超时的数据 待处理r */ - @GetMapping("/isItTimeout") +// @GetMapping("/isItTimeout") @ApiOperationSupport(order = 2) @ApiOperation(value = "查询处理超时的数据", notes = "传入aftersalesWorkOrder") + @XxlJob("syncWarehouseToNew") + @Scheduled(cron = "0 0/1 * * * ?") public void getIsItTimeout() { + log.info("查询处理超时的数据>>>>>>>>"); aftersalesWorkOrderService.getIsItTimeout(); } diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesOvertimeFineMapper.xml b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesOvertimeFineMapper.xml index d4d69ba0d..4b8213f6e 100644 --- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesOvertimeFineMapper.xml +++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesOvertimeFineMapper.xml @@ -25,7 +25,8 @@