| | |
| | | wrapper.set("receiver_ids",defectiveHis.getReceiverIds()); |
| | | wrapper.set("receiver_names",defectiveHis.getReceiverNames()); |
| | | int resProduct=defective.getRestProduct()-defectiveHis.getDelProduct(); |
| | | defectiveHis.setRestProduct(resProduct); |
| | | wrapper.set("rest_product",resProduct); |
| | | if(resProduct==0){ |
| | | defectiveHis.setConfirmStatus(2);//不良品数量为0结束 |
| | |
| | | wrapper.eq("id",defectiveHis.getDeftId()); |
| | | mapper.update(null,wrapper); |
| | | //记录处理记录 |
| | | |
| | | defectiveHisService.updateDefective(defective,defectiveHis,multipartFileList); |
| | | |
| | | //发送邮件 |
| | |
| | | defectiveHis.setConfirmStatus(3); |
| | | defectiveHis.setDelProduct(0); |
| | | defectiveHis.setDelName(ActionUtil.getUser().getName()); |
| | | defectiveHis.setRestProduct(0); |
| | | defectiveHisService.stopDefective(defectiveHis); |
| | | return new Response().set(1,true); |
| | | } |