From 1ab197ce175ad7001e4903005645a486a08d9ceb Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期一, 16 六月 2025 17:55:40 +0800
Subject: [PATCH] 提交
---
server/service/src/main/java/com/doumee/service/business/impl/SolutionsServiceImpl.java | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/server/service/src/main/java/com/doumee/service/business/impl/SolutionsServiceImpl.java b/server/service/src/main/java/com/doumee/service/business/impl/SolutionsServiceImpl.java
index 2acfe51..1991698 100644
--- a/server/service/src/main/java/com/doumee/service/business/impl/SolutionsServiceImpl.java
+++ b/server/service/src/main/java/com/doumee/service/business/impl/SolutionsServiceImpl.java
@@ -79,9 +79,10 @@
throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"鏈煡璇㈠埌涓绘柟妗堟暟鎹�!");
}
solutions.setInsuranceId(solutionsBase.getInsuranceId());
- solutions.setCanAdd(solutionsBase.getCanAdd());
- solutions.setCanReduce(solutionsBase.getCanReduce());
- solutions.setCanChangeUnit(solutionsBase.getCanChangeUnit());
+// solutions.setCanAdd(solutionsBase.getCanAdd());
+// solutions.setCanReduce(solutionsBase.getCanReduce());
+// solutions.setCanChangeUnit(solutionsBase.getCanChangeUnit());
+// solutions.setDelOnlyReplace(solutionsBase.getDelOnlyReplace());
solutions.setAddValidDays(solutionsBase.getAddValidDays());
solutions.setDelValidDays(solutionsBase.getDelValidDays());
solutions.setMinAge(solutionsBase.getMinAge());
@@ -141,6 +142,7 @@
private void dealWorkType(Solutions solutions, Solutions newModel, List<SolutionWorktype> worktypes) {
int num =0;
+ List<SolutionWorktype> typeList = new ArrayList<>();
for(SolutionWorktype type : worktypes) {
//鍩虹鐗堟湰
SolutionWorktype w = new SolutionWorktype();
@@ -157,8 +159,12 @@
//鍘嗗彶鐗堟湰鐨勫伐绉嶄俊鎭�
SolutionWorktype newType = new SolutionWorktype();
BeanUtils.copyProperties(w, newType);
+ newType.setId(null);
newType.setSolutionId(newModel.getId());
- solutionWorktypeJoinMapper.insert(newType);
+ typeList.add(newType);
+ }
+ if(typeList.size()>0){
+ solutionWorktypeJoinMapper.insert(typeList);
}
}
@@ -205,6 +211,10 @@
||Objects.isNull(solutions.getType())
||Objects.isNull(solutions.getRetrial())
||Objects.isNull(solutions.getFanganFile())
+ || Objects.isNull(solutions.getCanAdd())
+ || Objects.isNull(solutions.getCanReduce())
+ || Objects.isNull(solutions.getCanChangeUnit())
+ || Objects.isNull(solutions.getDelOnlyReplace())
// ||Constants.formatIntegerNum(solutions.getPriceCycleUnit()) < 0
||Constants.formatIntegerNum(solutions.getInsureCycle()) < 0
||Constants.formatIntegerNum(solutions.getInsureCycleUnit()) < 0
--
Gitblit v1.9.3