|
@@ -1,10 +1,20 @@
|
|
|
package com.qmth.sop.server.api;
|
|
|
|
|
|
|
|
|
+import com.qmth.boot.api.constant.ApiConstant;
|
|
|
+import com.qmth.sop.business.entity.TBQualityProblemApply;
|
|
|
+import com.qmth.sop.common.contant.SystemConstant;
|
|
|
+import com.qmth.sop.common.util.Result;
|
|
|
+import com.qmth.sop.common.util.ResultUtil;
|
|
|
+import io.swagger.annotations.*;
|
|
|
+import org.springframework.validation.BindingResult;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import javax.validation.Valid;
|
|
|
+
|
|
|
/**
|
|
|
* <p>
|
|
|
* 考勤补卡申请表 前端控制器
|
|
@@ -13,8 +23,18 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
* @author wangliang
|
|
|
* @since 2023-08-01
|
|
|
*/
|
|
|
+@Api(tags = "考勤异常申请Controller")
|
|
|
@RestController
|
|
|
-@RequestMapping("/t-bding-apply")
|
|
|
+@RequestMapping(ApiConstant.DEFAULT_URI_PREFIX + SystemConstant.PREFIX_URL_DING_EXCEPTION_APPLY)
|
|
|
public class TBDingApplyController {
|
|
|
|
|
|
+ @ApiOperation(value = "考勤异常申请新增接口")
|
|
|
+ @RequestMapping(value = "/save", method = RequestMethod.POST)
|
|
|
+ @ApiResponses({@ApiResponse(code = 200, message = "返回信息", response = Object.class)})
|
|
|
+ public Result save(@Valid @ApiParam(value = "考勤异常申请信息", required = true) @RequestBody TBQualityProblemApply tbQualityProblemApply, BindingResult bindingResult) throws InterruptedException {
|
|
|
+ if (bindingResult.hasErrors()) {
|
|
|
+ return ResultUtil.error(bindingResult.getAllErrors().get(0).getDefaultMessage());
|
|
|
+ }
|
|
|
+ return ResultUtil.ok();
|
|
|
+ }
|
|
|
}
|