| | |
| | | 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; |
| | |
| | | return service.getSopInfo(list,code,model,pageCurr,pageSize); |
| | | } |
| | | |
| | | @ApiOperation("查询sop历史") |
| | | @GetMapping("getSopHis") |
| | | public Response getSopHis(@RequestParam(required = false) String fileName) { |
| | | return service.getSopHis(fileName); |
| | | } |
| | | |
| | | @ApiOperation("更新sop说明(不含锁信息)") |
| | | @PostMapping("updateSop") |
| | | public Response updateSop(@RequestBody SOP 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); |
| | | } |
| | | |
| | | } |