| | |
| | | return service.getSopInfo(list,code,model,pageCurr,pageSize); |
| | | } |
| | | |
| | | @ApiOperation("更新sop说明(不含锁信息)") |
| | | @PostMapping("updateSop") |
| | | public Response updateSop(@RequestBody SOP sop) { |
| | | return service.updateSop(sop); |
| | | } |
| | | |
| | | } |
| | |
| | | return new Response().setII(1,list.size()>0,pageInfo,"查询sop信息"); |
| | | } |
| | | |
| | | |
| | | //更新sop说明(不含锁信息) |
| | | @Transactional |
| | | public Response updateSop(SOP sop) { |
| | | List<SOPProduct> sopProductList = sop.getSopProductList(); |
| | | mapper.updateById(sop); |
| | | if(sopProductList.size()>0) { |
| | | sopProductList.forEach(product -> product.setSopId(sop.getId())); |
| | | productService.updateBySid(sopProductList,sop.getId()); |
| | | } |
| | | return new Response().setII(1,"更新sop说明完成"); |
| | | } |
| | | } |