fix
parent
e79b2c6f22
commit
4a88530f86
|
|
@ -2,9 +2,9 @@ nacos:
|
||||||
url: prod-nacos:8848
|
url: prod-nacos:8848
|
||||||
namespace: jjb-dragon
|
namespace: jjb-dragon
|
||||||
application:
|
application:
|
||||||
name: jjb-saas-zcloud-safety-accountability-list
|
name: jjb-saas-zcloud-safetyDutyList
|
||||||
version:
|
version:
|
||||||
gateway: safetyAccountabilityList
|
gateway: safetyDutyList
|
||||||
cn-name: 安全责任清单
|
cn-name: 安全责任清单
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ public class FeedbackExceptionCheckJob implements Job {
|
||||||
* @return 执行结果,成功返回ReturnT.SUCCESS,失败返回ReturnT.FAIL_CODE及异常信息
|
* @return 执行结果,成功返回ReturnT.SUCCESS,失败返回ReturnT.FAIL_CODE及异常信息
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@JobRegister(cron = "0 0 0 1 * ?", jobDesc = "安全责任清单-反馈异常检测", triggerStatus = 1)
|
@JobRegister(cron = "0 55 10 * * ?", jobDesc = "安全责任清单-反馈异常检测", triggerStatus = 1)
|
||||||
@XxlJob("com.zcloud.safetyDutyList.job.FeedbackExceptionCheckJob")
|
@XxlJob("com.zcloud.safetyDutyList.job.FeedbackExceptionCheckJob")
|
||||||
public ReturnT<String> execute(String param) {
|
public ReturnT<String> execute(String param) {
|
||||||
log.info("【安全责任清单】开始执行反馈异常检测定时任务");
|
log.info("【安全责任清单】开始执行反馈异常检测定时任务");
|
||||||
|
|
|
||||||
|
|
@ -26,35 +26,30 @@ public class FeedbackController {
|
||||||
/** 安全责任清单服务接口(反馈相关操作统一通过该接口处理) */
|
/** 安全责任清单服务接口(反馈相关操作统一通过该接口处理) */
|
||||||
private final TaskListServiceI taskListService;
|
private final TaskListServiceI taskListService;
|
||||||
|
|
||||||
// 调整完毕,待测试
|
|
||||||
@ApiOperation("提交反馈")
|
@ApiOperation("提交反馈")
|
||||||
@PostMapping("/save")
|
@PostMapping("/save")
|
||||||
public SingleResponse addFeedback(@Validated @RequestBody FeedbackAddCmd cmd) {
|
public SingleResponse addFeedback(@Validated @RequestBody FeedbackAddCmd cmd) {
|
||||||
return taskListService.addFeedback(cmd);
|
return taskListService.addFeedback(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 调整完毕,待测试
|
|
||||||
@ApiOperation("获取反馈周期分组列表")
|
@ApiOperation("获取反馈周期分组列表")
|
||||||
@PostMapping("/periodGroupList")
|
@PostMapping("/periodGroupList")
|
||||||
public MultiResponse<FeedbackPeriodGroupCO> periodGroupList(@RequestBody FeedbackPeriodGroupQry qry) {
|
public MultiResponse<FeedbackPeriodGroupCO> periodGroupList(@RequestBody FeedbackPeriodGroupQry qry) {
|
||||||
return taskListService.feedbackPeriodGroupList(qry);
|
return taskListService.feedbackPeriodGroupList(qry);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 调整完毕,待测试
|
|
||||||
@ApiOperation("获取反馈列表")
|
@ApiOperation("获取反馈列表")
|
||||||
@PostMapping("/list")
|
@PostMapping("/list")
|
||||||
public MultiResponse<FeedbackCO> feedbackList(@Validated @RequestBody FeedbackListQry qry) {
|
public MultiResponse<FeedbackCO> feedbackList(@Validated @RequestBody FeedbackListQry qry) {
|
||||||
return taskListService.feedbackList(qry);
|
return taskListService.feedbackList(qry);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 调整完毕,待测试
|
|
||||||
@ApiOperation("获取反馈详情")
|
@ApiOperation("获取反馈详情")
|
||||||
@GetMapping("/{feedbackId}")
|
@GetMapping("/{feedbackId}")
|
||||||
public SingleResponse<FeedbackInfoCO> getByFeedbackId(@PathVariable String feedbackId) {
|
public SingleResponse<FeedbackInfoCO> getByFeedbackId(@PathVariable String feedbackId) {
|
||||||
return taskListService.getByFeedbackId(feedbackId);
|
return taskListService.getByFeedbackId(feedbackId);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 调整完毕,待测试 - 是否需要
|
|
||||||
@ApiOperation("获取异常记录列表")
|
@ApiOperation("获取异常记录列表")
|
||||||
@PostMapping("/exception/list")
|
@PostMapping("/exception/list")
|
||||||
public PageResponse<FeedbackExceptionCO> exceptionPage(@RequestBody FeedbackExceptionPageQry qry) {
|
public PageResponse<FeedbackExceptionCO> exceptionPage(@RequestBody FeedbackExceptionPageQry qry) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue