|  |  | 
 |  |  |  | 
 |  |  | import com.baomidou.mybatisplus.mapper.EntityWrapper; | 
 |  |  | import com.core.common.Cools; | 
 |  |  | import com.core.exception.CoolException; | 
 |  |  | import com.zy.asrs.entity.*; | 
 |  |  | import com.zy.asrs.service.*; | 
 |  |  | import com.zy.asrs.task.AbstractHandler; | 
 |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private LocDetlService locDetlService; | 
 |  |  |     @Autowired | 
 |  |  |     private WaitPakinService waitPakinService; | 
 |  |  |     private TestMastService testMastService; | 
 |  |  |     @Autowired | 
 |  |  |     private OrderDetlService orderDetlService; | 
 |  |  |  | 
 |  |  | 
 |  |  |                     locMast.setIoTime(now); | 
 |  |  |                     locMast.setModiTime(now); | 
 |  |  |                     locMast.setFireStatus(0); | 
 |  |  |                     locMast.setPackStatus(4); //4:静置中 | 
 |  |  |                     if (locMast.getLocType1()==sourceLoc.getLocType1()){ | 
 |  |  |                         locMast.setPackStatus(sourceLoc.getPackStatus()); | 
 |  |  |                     }else { | 
 |  |  |                         locMast.setPackStatus(4); //4:静置中 | 
 |  |  |                         if (locMast.getLocType1()==1 && sourceLoc.getLocType1()==2){ | 
 |  |  |                             TestMast testMast = testMastService.selectOne(new EntityWrapper<TestMast>() | 
 |  |  |                                     .eq("loc_no",sourceLoc.getLocNo()) | 
 |  |  |                                     .eq("barcode",locMast.getBarcode()) | 
 |  |  |                                     .eq("status",4) | 
 |  |  |                             ); | 
 |  |  |                             testMast.setStatus(5); | 
 |  |  |                             testMast.setModiTime(new Date()); | 
 |  |  |                             if (!testMastService.update(testMast,new EntityWrapper<TestMast>().eq("loc_no",sourceLoc.getLocNo()).eq("barcode",locMast.getBarcode()).eq("status",4))){ | 
 |  |  |                                 throw new CoolException("更改测试状态失败"); | 
 |  |  |                             } | 
 |  |  |                         } | 
 |  |  |                     } | 
 |  |  |                     if (!locMastService.updateById(locMast)) { | 
 |  |  | //                        exceptionHandle("库位移转 ===>> 修改目标库位状态失败;[workNo={0}],[locNo={1}]", wrkMast.getWrkNo(), wrkMast.getLocNo()); | 
 |  |  |                         TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); |