|
@@ -10,6 +10,7 @@ import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import static com.rongwei.safecommon.utils.SaveConstans.IssuesListNotice.ISSUES_EMAIL_TITLE;
|
|
|
|
|
@@ -18,9 +19,9 @@ import static com.rongwei.safecommon.utils.SaveConstans.IssuesListNotice.ISSUES_
|
|
|
* 生产问题管理
|
|
|
* 2024-09-25 hp
|
|
|
*/
|
|
|
-@Controller
|
|
|
-@RequestMapping("/srmIssueslist")
|
|
|
-@Slf4j
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("srmIssueslist")
|
|
|
public class SrmIssuesListController {
|
|
|
|
|
|
@Autowired
|
|
@@ -33,8 +34,9 @@ public class SrmIssuesListController {
|
|
|
* @return
|
|
|
*/
|
|
|
@Scheduled(cron = "0 0/10 * * * ? ")
|
|
|
- @PostMapping("approvalTimeoutReminder")
|
|
|
+ @PostMapping("/approvalTimeoutReminder")
|
|
|
public R batchSavePlansTiming(){
|
|
|
- return srmIssuesListService.approvalTimeoutReminder();
|
|
|
+ R r = srmIssuesListService.approvalTimeoutReminder();
|
|
|
+ return r;
|
|
|
}
|
|
|
}
|