|
@@ -38,13 +38,11 @@ import javax.validation.constraints.Min;
|
|
|
@RequestMapping(ApiConstant.DEFAULT_URI_PREFIX + SystemConstant.PREFIX_URL_VIOLATION)
|
|
|
public class TBViolationController {
|
|
|
|
|
|
-
|
|
|
@Resource
|
|
|
TBViolationService tBViolationService;
|
|
|
@Resource
|
|
|
SysUserService sysUserService;
|
|
|
|
|
|
-
|
|
|
@ApiOperation(value = "sop违规登记表查询接口")
|
|
|
@RequestMapping(value = "/query", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "sop违规登记表查询结果", response = TBViolationResult.class)})
|
|
@@ -75,9 +73,7 @@ public class TBViolationController {
|
|
|
return ResultUtil.ok(tBViolationService.saveTBViolation(tBViolation));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
//关闭违规登记
|
|
|
-
|
|
|
@ApiOperation(value = "关闭违规登记")
|
|
|
@RequestMapping(value = "/close", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "关闭成功")})
|
|
@@ -90,7 +86,6 @@ public class TBViolationController {
|
|
|
}
|
|
|
|
|
|
//重启违规登记
|
|
|
-
|
|
|
@ApiOperation(value = "重启违规登记")
|
|
|
@RequestMapping(value = "/restart", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "重启成功")})
|
|
@@ -101,7 +96,6 @@ public class TBViolationController {
|
|
|
return ResultUtil.ok(tBViolationService.saveTBViolation(tBViolation));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
//根据code的获取详细信息
|
|
|
@ApiOperation(value = "sop违规登记表获取单个接口")
|
|
|
@RequestMapping(value = "/getByCode", method = RequestMethod.POST)
|
|
@@ -115,7 +109,6 @@ public class TBViolationController {
|
|
|
@RequestMapping(value = "/creator/list", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "创建者list", response = SysUser.class)})
|
|
|
public Result getCreatorList() {
|
|
|
-
|
|
|
return ResultUtil.ok(sysUserService.lambdaQuery().inSql(SysUser::getId, "select DISTINCT create_id from t_b_violation").list());
|
|
|
}
|
|
|
|
|
@@ -126,5 +119,4 @@ public class TBViolationController {
|
|
|
|
|
|
return ResultUtil.ok(sysUserService.lambdaQuery().inSql(SysUser::getId, "select DISTINCT user_id from t_b_violation").list());
|
|
|
}
|
|
|
-
|
|
|
}
|