From 9d1bcaa90990dd904109c26da7ecb7fe9182ab0a Mon Sep 17 00:00:00 2001 From: fangjiakai <450850793@qq.com> Date: Thu, 22 Feb 2024 17:35:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=AF=E4=BF=9D=E6=A3=80=E6=9F=A5=E9=9A=90?= =?UTF-8?q?=E6=82=A3=E6=8C=87=E6=B4=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/zcloud/controller/hidden/HiddenController.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/com/zcloud/controller/hidden/HiddenController.java b/src/main/java/com/zcloud/controller/hidden/HiddenController.java index eab4543..826e2e7 100644 --- a/src/main/java/com/zcloud/controller/hidden/HiddenController.java +++ b/src/main/java/com/zcloud/controller/hidden/HiddenController.java @@ -22,6 +22,7 @@ import com.zcloud.service.system.DictionariesService; import com.zcloud.service.system.ImgFilesService; import com.zcloud.service.system.UsersService; import com.zcloud.util.*; +import com.zcloud.util.message.MessageService; import net.sf.json.JSONArray; import org.apache.commons.collections.map.HashedMap; import org.apache.shiro.authz.annotation.RequiresPermissions; @@ -77,6 +78,8 @@ public class HiddenController extends BaseController { private Smb smb; @Autowired private SafetyEnvironmentalService safetyenvironmentalService; + @Autowired + private MessageService messageService; /** * 新增 * @@ -1974,6 +1977,10 @@ public class HiddenController extends BaseController { safetyenvironmentalService.editStatus(inspection); } hiddenService.assign(pd); + if (Tools.notEmpty(pd.getString("CONFIRM_USER"))) { + messageService.sendMessageByParameter("HIDDEN_MAIL_001", "友情提示:有一条隐患需要确认", pd.getString("CORPINFO_ID"), pd.getString("CONFIRM_USER"), pd.getString("HIDDEN_ID"), + pd.getString("HIDDENDESCR"), "隐患确认", "确认", "", ""); + } map.put("result", errInfo); map.put("pd", pd); return map;