|
@@ -6,6 +6,7 @@ import java.util.Map;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
import com.ruoyi.common.utils.SecurityUtils;
|
|
import com.ruoyi.common.utils.SecurityUtils;
|
|
|
|
+import com.ruoyi.common.utils.Threads;
|
|
import com.ruoyi.framework.web.service.PermissionService;
|
|
import com.ruoyi.framework.web.service.PermissionService;
|
|
import com.ruoyi.quartz.task.RyTask;
|
|
import com.ruoyi.quartz.task.RyTask;
|
|
import com.ruoyi.system.domain.TblMaintainLog;
|
|
import com.ruoyi.system.domain.TblMaintainLog;
|
|
@@ -162,6 +163,28 @@ public class TblMaintainController extends BaseController
|
|
* @param tblMaintainLog
|
|
* @param tblMaintainLog
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
|
|
+ @PostMapping("/resultsupload")
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:maintain:feedback')")
|
|
|
|
+ public AjaxResult maintainResultsUpload(@RequestBody TblMaintainLog tblMaintainLog){
|
|
|
|
+ if(tblMaintainLog==null || tblMaintainLog.getMaintainId()==null || tblMaintainLog.getLogDes()==null){
|
|
|
|
+ return error("表单不完整");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ TblMaintain maintain = tblMaintainService.selectTblMaintainById(tblMaintainLog.getMaintainId());
|
|
|
|
+ if(maintain==null){
|
|
|
|
+ return error("计划不存在");
|
|
|
|
+ }
|
|
|
|
+// maintain.setStatus(4L);
|
|
|
|
+ tblMaintainLog.setMaintainStatus(4L);
|
|
|
|
+ tblMaintainLogService.insertTblMaintainLog(tblMaintainLog);
|
|
|
|
+// tblMaintainService.updateTblMaintain(maintain);
|
|
|
|
+ //发送钉钉通知
|
|
|
|
+
|
|
|
|
+ ryTask.setNotice("011544081228132554,013303042738042020",null,"养护计划成果上传通知","http://www.baidu.com");
|
|
|
|
+
|
|
|
|
+ return success("成功");
|
|
|
|
+ }
|
|
|
|
+
|
|
@PostMapping("/feedback")
|
|
@PostMapping("/feedback")
|
|
@PreAuthorize("@ss.hasPermi('system:maintain:feedback')")
|
|
@PreAuthorize("@ss.hasPermi('system:maintain:feedback')")
|
|
public AjaxResult maintainFeedback(@RequestBody TblMaintainLog tblMaintainLog){
|
|
public AjaxResult maintainFeedback(@RequestBody TblMaintainLog tblMaintainLog){
|
|
@@ -200,8 +223,8 @@ public class TblMaintainController extends BaseController
|
|
if(maintain==null){
|
|
if(maintain==null){
|
|
return error("计划不存在");
|
|
return error("计划不存在");
|
|
}
|
|
}
|
|
- maintain.setStatus(4L);
|
|
|
|
- tblMaintainLog.setMaintainStatus(4L);
|
|
|
|
|
|
+ maintain.setStatus(5L);
|
|
|
|
+ tblMaintainLog.setMaintainStatus(5L);
|
|
tblMaintainLogService.insertTblMaintainLog(tblMaintainLog);
|
|
tblMaintainLogService.insertTblMaintainLog(tblMaintainLog);
|
|
tblMaintainService.updateTblMaintain(maintain);
|
|
tblMaintainService.updateTblMaintain(maintain);
|
|
//发送钉钉通知
|
|
//发送钉钉通知
|