| | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.dto.SopDto; |
| | | import com.whyc.pojo.SOP; |
| | | import com.whyc.pojo.SOPLockLog; |
| | | import com.whyc.service.SOPService; |
| | | import com.whyc.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | |
| | | @ApiOperation("查询sop信息") |
| | | @PostMapping("getSopInfo") |
| | | public Response getSopInfo(@RequestBody(required = false) List<SopDto> list |
| | | , @RequestParam(required = false) String code, @RequestParam(required = false) String model |
| | | , @RequestParam(required = false) String code, @RequestParam(required = false) String model, @RequestParam(required = false) Integer status |
| | | , @RequestParam int pageCurr, @RequestParam int pageSize) { |
| | | return service.getSopInfo(list,code,model,pageCurr,pageSize); |
| | | return service.getSopInfo(list,code,model,status,pageCurr,pageSize); |
| | | } |
| | | |
| | | @ApiOperation("查询sop历史") |
| | | @GetMapping("getSopHis") |
| | | public Response getSopHis(@RequestParam(required = false) String fileName) { |
| | | return service.getSopHis(fileName); |
| | | } |
| | | |
| | | @ApiOperation("更新sop说明(不含锁信息)") |
| | |
| | | |
| | | @ApiOperation("设置sop有效状态") |
| | | @PutMapping("updateStatusById") |
| | | public Response updateStatusById(@RequestParam int id,@RequestParam int status) { |
| | | return service.updateStatusById(id,status); |
| | | public Response updateStatusById(@RequestBody SOPLockLog lockLog) { |
| | | return service.updateStatusById(lockLog); |
| | | } |
| | | |
| | | } |