From 9c2f23b222186a3e00e15ae193e285291d78abd2 Mon Sep 17 00:00:00 2001
From: chenjiahe <763432473@qq.com>
Date: 星期四, 07 十二月 2023 14:19:26 +0800
Subject: [PATCH] 非繁忙时间

---
 phi_platform_user/src/main/java/com/hx/phip/service/deduction/impl/DeductionSingleServiceImpl.java |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/phi_platform_user/src/main/java/com/hx/phip/service/deduction/impl/DeductionSingleServiceImpl.java b/phi_platform_user/src/main/java/com/hx/phip/service/deduction/impl/DeductionSingleServiceImpl.java
index edaacd9..95cba4c 100644
--- a/phi_platform_user/src/main/java/com/hx/phip/service/deduction/impl/DeductionSingleServiceImpl.java
+++ b/phi_platform_user/src/main/java/com/hx/phip/service/deduction/impl/DeductionSingleServiceImpl.java
@@ -11,6 +11,7 @@
 import com.hx.phiappt.constants.tool.PerformanceInfoTool;
 import com.hx.phiappt.constants.tool.UserInfoTool;
 import com.hx.phiappt.constants.tool.UserStatusTool;
+import com.hx.phiappt.constants.tool.appointment.AppointmentTool;
 import com.hx.phiappt.constants.tool.user.UserLabelTool;
 import com.hx.phiappt.constants.tool.user.UserLevelTool;
 import com.hx.phiappt.dao.mapper.ProjectTypeMapper;
@@ -377,6 +378,16 @@
                     // 20220222 淇敼
                     // throw new PlatTipsException(PlatformCode.ERROR_PARAMETER_NULL,"鏈壘鍒扮鍚堣姹傜殑椤圭洰淇℃伅锛�");
                 }
+
+                //------妫�娴嬮潪绻佸繖鍒掓墸椤圭洰
+                List<Project> projectList = new ArrayList<>();
+                Project project = commonService.selectOneByKey(ProjectMapper.class,userProjectItem.getGoodsId());
+                if(project != null){
+                    projectList.add(project);
+                    //妫�娴嬮潪绻佸繖鍒掓墸椤圭洰
+                    AppointmentTool.paddleProjectNonBusy(shop.getId(),new Date(),projectList,null,commonService);
+                }
+
             }
 
             // 鍒掓墸鍒ゆ柇璁㈠崟鏄惁鍦ㄥ鏍搁��娆炬垨鑰呭彇娑堣鍗曚簡

--
Gitblit v1.8.0