环保检查隐患指派

pull/4/head
fangjiakai 2024-02-22 17:35:23 +08:00
parent e2045a7a9a
commit 9d1bcaa909
1 changed files with 7 additions and 0 deletions

View File

@ -22,6 +22,7 @@ import com.zcloud.service.system.DictionariesService;
import com.zcloud.service.system.ImgFilesService; import com.zcloud.service.system.ImgFilesService;
import com.zcloud.service.system.UsersService; import com.zcloud.service.system.UsersService;
import com.zcloud.util.*; import com.zcloud.util.*;
import com.zcloud.util.message.MessageService;
import net.sf.json.JSONArray; import net.sf.json.JSONArray;
import org.apache.commons.collections.map.HashedMap; import org.apache.commons.collections.map.HashedMap;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
@ -77,6 +78,8 @@ public class HiddenController extends BaseController {
private Smb smb; private Smb smb;
@Autowired @Autowired
private SafetyEnvironmentalService safetyenvironmentalService; private SafetyEnvironmentalService safetyenvironmentalService;
@Autowired
private MessageService messageService;
/** /**
* *
* *
@ -1974,6 +1977,10 @@ public class HiddenController extends BaseController {
safetyenvironmentalService.editStatus(inspection); safetyenvironmentalService.editStatus(inspection);
} }
hiddenService.assign(pd); 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("result", errInfo);
map.put("pd", pd); map.put("pd", pd);
return map; return map;