|
@@ -1,6 +1,7 @@
|
|
package com.qmth.sop.server.api;
|
|
package com.qmth.sop.server.api;
|
|
|
|
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
import com.qmth.sop.business.entity.TBDingApply;
|
|
import com.qmth.sop.business.entity.TBDingApply;
|
|
import com.qmth.sop.business.service.TBDingApplyService;
|
|
import com.qmth.sop.business.service.TBDingApplyService;
|
|
@@ -9,13 +10,12 @@ import com.qmth.sop.common.util.Result;
|
|
import com.qmth.sop.common.util.ResultUtil;
|
|
import com.qmth.sop.common.util.ResultUtil;
|
|
import io.swagger.annotations.*;
|
|
import io.swagger.annotations.*;
|
|
import org.springframework.validation.BindingResult;
|
|
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 org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
import javax.validation.Valid;
|
|
import javax.validation.Valid;
|
|
|
|
+import javax.validation.constraints.Max;
|
|
|
|
+import javax.validation.constraints.Min;
|
|
|
|
|
|
/**
|
|
/**
|
|
* <p>
|
|
* <p>
|
|
@@ -42,4 +42,36 @@ public class TBDingApplyController {
|
|
}
|
|
}
|
|
return ResultUtil.ok(tbDingApplyService.saveDingApply(tbDingApply));
|
|
return ResultUtil.ok(tbDingApplyService.saveDingApply(tbDingApply));
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "异常待审核接口")
|
|
|
|
+ @RequestMapping(value = "/flow/task/un_done/list", method = RequestMethod.POST)
|
|
|
|
+ @ApiResponses({@ApiResponse(code = 200, message = "返回信息", response = Object.class)})
|
|
|
|
+ public Result flowTaskUnDoneList(@ApiParam(value = "服务单元id") @RequestParam(required = false) Long serviceId,
|
|
|
|
+ @ApiParam(value = "姓名") @RequestParam(required = false) String name,
|
|
|
|
+ @ApiParam(value = "供应商id") @RequestParam(required = false) Long supplierId,
|
|
|
|
+ @ApiParam(value = "客户名称") @RequestParam(required = false) String customName,
|
|
|
|
+ @ApiParam(value = "异常开始时间") @RequestParam(required = false) Long startTime,
|
|
|
|
+ @ApiParam(value = "异常结束时间") @RequestParam(required = false) Long endTime,
|
|
|
|
+ @ApiParam(value = "申请开始时间") @RequestParam(required = false) Long applyStartTime,
|
|
|
|
+ @ApiParam(value = "申请结束时间") @RequestParam(required = false) Long applyEndTime,
|
|
|
|
+ @ApiParam(value = "页码", required = true) @RequestParam @Min(SystemConstant.PAGE_NUMBER_MIN) Integer pageNumber,
|
|
|
|
+ @ApiParam(value = "页数", required = true) @RequestParam @Min(SystemConstant.PAGE_SIZE_MIN) @Max(SystemConstant.PAGE_SIZE_MAX) Integer pageSize) {
|
|
|
|
+ return ResultUtil.ok(tbDingApplyService.flowTaskUnDoneList(new Page<>(pageNumber, pageSize), serviceId, name, supplierId, customName, startTime, endTime, applyStartTime, applyEndTime));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "异常已审核接口")
|
|
|
|
+ @RequestMapping(value = "/flow/task/done/list", method = RequestMethod.POST)
|
|
|
|
+ @ApiResponses({@ApiResponse(code = 200, message = "返回信息", response = Object.class)})
|
|
|
|
+ public Result flowTaskDoneList(@ApiParam(value = "服务单元id") @RequestParam(required = false) Long serviceId,
|
|
|
|
+ @ApiParam(value = "姓名") @RequestParam(required = false) String name,
|
|
|
|
+ @ApiParam(value = "供应商id") @RequestParam(required = false) Long supplierId,
|
|
|
|
+ @ApiParam(value = "客户名称") @RequestParam(required = false) String customName,
|
|
|
|
+ @ApiParam(value = "异常开始时间") @RequestParam(required = false) Long startTime,
|
|
|
|
+ @ApiParam(value = "异常结束时间") @RequestParam(required = false) Long endTime,
|
|
|
|
+ @ApiParam(value = "申请开始时间") @RequestParam(required = false) Long applyStartTime,
|
|
|
|
+ @ApiParam(value = "申请结束时间") @RequestParam(required = false) Long applyEndTime,
|
|
|
|
+ @ApiParam(value = "页码", required = true) @RequestParam @Min(SystemConstant.PAGE_NUMBER_MIN) Integer pageNumber,
|
|
|
|
+ @ApiParam(value = "页数", required = true) @RequestParam @Min(SystemConstant.PAGE_SIZE_MIN) @Max(SystemConstant.PAGE_SIZE_MAX) Integer pageSize) {
|
|
|
|
+ return ResultUtil.ok(tbDingApplyService.flowTaskDoneList(new Page<>(pageNumber, pageSize), serviceId, name, supplierId, customName, startTime, endTime, applyStartTime, applyEndTime));
|
|
|
|
+ }
|
|
}
|
|
}
|