From c229f46d74f99b17aeb0bcb9df97dba5dec6d419 Mon Sep 17 00:00:00 2001 From: zhenggl Date: Wed, 13 Sep 2023 13:42:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=96=B0=E5=A2=9E=E6=A0=B9=E6=8D=AEbk?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=82=AC=E6=94=B6=E6=95=B0=E6=8D=AE=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3,=E5=82=AC=E6=94=B6=E8=A1=A8=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=A4=84=E7=90=86=E4=BA=BA=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../athena/app/ptc/infra/entity/CollectionDetailEntity.java | 4 ++++ .../athena/app/ptc/provider/ReceivablesDetailEAIService.java | 5 ++++- .../ptc/provider/impl/ReceivablesDetailEAIServiceImpl.java | 5 +++++ .../service/receivables/ReceivablesTaskGetEAIService.java | 5 ++++- .../athena/app/ptc/service/receivables/ReceivablesUtil.java | 2 ++ doc/sql/app-20230912-ddl.sql | 3 +++ 6 files changed, 22 insertions(+), 2 deletions(-) diff --git a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/infra/entity/CollectionDetailEntity.java b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/infra/entity/CollectionDetailEntity.java index 8b479a7..6b9792f 100644 --- a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/infra/entity/CollectionDetailEntity.java +++ b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/infra/entity/CollectionDetailEntity.java @@ -119,6 +119,10 @@ public class CollectionDetailEntity extends BaseMgrEntity headers, String messageBody) throws Exception; - @EAIService(id = ReceivablesUtil.RECEIVABLES_TASK_GET) + @EAIService(id = ReceivablesUtil.RECEIVABLES_INITIAL_CREATE) DWEAIResult initialCreate(Map headers, String messageBody) throws Exception; + + @EAIService(id = ReceivablesUtil.RECEIVABLES_TASK_DELETE) + DWEAIResult taskDelete(Map headers, String messageBody) throws Exception; } diff --git a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/provider/impl/ReceivablesDetailEAIServiceImpl.java b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/provider/impl/ReceivablesDetailEAIServiceImpl.java index 5a71f22..6aa553e 100644 --- a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/provider/impl/ReceivablesDetailEAIServiceImpl.java +++ b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/provider/impl/ReceivablesDetailEAIServiceImpl.java @@ -36,4 +36,9 @@ public class ReceivablesDetailEAIServiceImpl implements ReceivablesDetailEAIServ public DWEAIResult initialCreate(Map headers, String messageBody) throws Exception { return eaiServiceContext.execute(ReceivablesUtil.RECEIVABLES_INITIAL_CREATE,headers,messageBody); } + + @Override + public DWEAIResult taskDelete(Map headers, String messageBody) throws Exception { + return eaiServiceContext.execute(ReceivablesUtil.RECEIVABLES_TASK_DELETE,headers,messageBody); + } } diff --git a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/receivables/ReceivablesTaskGetEAIService.java b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/receivables/ReceivablesTaskGetEAIService.java index cb7507d..b61bc9b 100644 --- a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/receivables/ReceivablesTaskGetEAIService.java +++ b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/receivables/ReceivablesTaskGetEAIService.java @@ -41,7 +41,9 @@ public class ReceivablesTaskGetEAIService extends AbsEAIService { List collectionDetailEntities = eaiRequest.getObject("get_data", new TypeReference>() {}); for (CollectionDetailEntity collectionDetailEntity : collectionDetailEntities) { - if (StringUtils.isEmpty(collectionDetailEntity.getSalesOrder())||StringUtils.isEmpty(collectionDetailEntity.getSalesOrderNumber())){ + if (StringUtils.isEmpty(collectionDetailEntity.getSalesOrder()) + ||StringUtils.isEmpty(collectionDetailEntity.getSalesOrderNumber()) + ||StringUtils.isEmpty(collectionDetailEntity.getProcessedBy())){ throw new DWBusinessException("缺少必要参数"); } } @@ -55,6 +57,7 @@ public class ReceivablesTaskGetEAIService extends AbsEAIService { wrapper -> wrapper .eq(CollectionDetailEntity::getSalesOrder, collectionDetailEntity.getSalesOrder()) .eq(CollectionDetailEntity::getSalesOrderNumber, collectionDetailEntity.getSalesOrderNumber()) + .eq(CollectionDetailEntity::getProcessedBy, collectionDetailEntity.getProcessedBy()) ); } diff --git a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/receivables/ReceivablesUtil.java b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/receivables/ReceivablesUtil.java index e15b528..6eacabb 100644 --- a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/receivables/ReceivablesUtil.java +++ b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/receivables/ReceivablesUtil.java @@ -13,4 +13,6 @@ public class ReceivablesUtil { public static final String RECEIVABLES_TASK_CREATE = "demo.ptc.athenapot.receivables.create"; public static final String RECEIVABLES_INITIAL_CREATE = "demo.ptc.athenapot.receivables.initial.create"; + + public static final String RECEIVABLES_TASK_DELETE = "demo.ptc.athenapot.receivables.task.delete"; } diff --git a/doc/sql/app-20230912-ddl.sql b/doc/sql/app-20230912-ddl.sql index 79bc4fe..8247887 100644 --- a/doc/sql/app-20230912-ddl.sql +++ b/doc/sql/app-20230912-ddl.sql @@ -116,3 +116,6 @@ CREATE TABLE `cim_limit_credit` ( -- 修改问题明细长度 ALTER TABLE `cim_chat_file` MODIFY COLUMN `question` varchar (500); + +-- 催收表新增处理人 +alter table cim_collection_detail Add column processed_by varchar(32) null default '' COMMENT '处理人';