| | |
| | | package com.zy.asrs.wms.task; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.zy.asrs.common.wms.entity.WrkMast; |
| | | import com.zy.asrs.common.wms.service.WrkMastService; |
| | | import com.zy.asrs.framework.common.Cools; |
| | |
| | | return; |
| | | } |
| | | for (WrkMast wrkMast : wrkMasts) { |
| | | WrkMast wrkMast1= wrkMastService.getOne(new LambdaQueryWrapper<WrkMast>().eq(WrkMast::getMemo,wrkMast.getWrkNo())); |
| | | if(!Cools.isEmpty(wrkMast1)){ |
| | | continue; |
| | | } |
| | | if (wrkMast.getIoType() == 101 || wrkMast.getIoType() == 110) { |
| | | if (Cools.isEmpty(wrkMast.getExitMk())) { |
| | | continue; |
| | |
| | | } |
| | | } |
| | | |
| | | ReturnT<String> result = workLogHandler.start(wrkMast); |
| | | if (!result.isSuccess()) { |
| | | try{ |
| | | ReturnT<String> result = workLogHandler.start(wrkMast); |
| | | if (!result.isSuccess()) { |
| | | log.error("工作档[workNo={}]历史档处理失败", wrkMast.getWrkNo()); |
| | | } |
| | | } catch (Exception e){ |
| | | log.error("工作档[workNo={}]历史档处理失败", wrkMast.getWrkNo()); |
| | | log.error("工作档[workNo={}]历史档处理失败,异常:{}", wrkMast.getWrkNo(),e.getMessage()); |
| | | } |
| | | } |
| | | } |