| | |
| | | * @param feedback |
| | | * @return |
| | | */ |
| | | @Transactional |
| | | public Response confirmFeedback(BOMFeedback feedback) { |
| | | DocUser user = ActionUtil.getUser(); |
| | | int userId = user.getId().intValue(); |
| | |
| | | int count=mapper.update(null,wrapper); |
| | | bl=count>0; |
| | | msg="接收者确认反馈"; |
| | | |
| | | if(confirmStatus == 2){ |
| | | //解锁产品 |
| | | Integer productId = mapper.selectById(id).getProductId(); |
| | | Product product = productService.getById(productId); |
| | | if(product!=null){ |
| | | int version=product.getVersion(); |
| | | if(version!=-1){ |
| | | phisService.setpHistoryEnable(product.getParentCode(),product.getCustomCode(),version,1,"问题反馈后"+ username +"确认不需要修改bom,系统执行产品解锁",DateUtil.YYYY_MM_DD_HH_MM_SS.format(product.getVersionTime())); |
| | | } |
| | | }else{ |
| | | ProductHistory phis = phisService.getById(productId); |
| | | phisService.setpHistoryEnable(phis.getParentCode(),phis.getCustomCode(),phis.getVersion(),1,"问题反馈后"+ username +"确认不需要修改bom,系统执行产品解锁",DateUtil.YYYY_MM_DD_HH_MM_SS.format(phis.getVersionTime())); |
| | | } |
| | | } |
| | | } |
| | | return new Response().set(1,bl,msg); |
| | | } |