| | |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.core.common.Cools; |
| | | import com.zy.asrs.entity.WrkMast; |
| | | import com.zy.asrs.entity.result.FindLocNoAttributeVo; |
| | | import com.zy.asrs.mapper.WrkMastMapper; |
| | | import com.zy.asrs.service.WrkMastService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Propagation; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | return wrkMasts.get(0); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(propagation = Propagation.REQUIRES_NEW) |
| | | public void updateCtnType(WrkMast wrkMast) { |
| | | if (wrkMast.getCtnType() == 0) { |
| | | wrkMast.setCtnType(1); |
| | | this.updateById(wrkMast); |
| | | log.info("自动补尾桶信号成功,任务号:{}",wrkMast.getWrkNo()); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public int getStoreCount(Integer crnNo) { |
| | | return selectCount(new EntityWrapper<WrkMast>().eq("crn_no", crnNo) |
| | | .last(" and (wrk_sts in (1,2) or (wrk_sts=3 and wrk_no in (select wrk_no from asr_bas_devp)))")); |
| | | } |
| | | |
| | | @Override |
| | | public int selectWrkMastBareBoardStaNo(Integer ioType,Integer staNo) { |
| | | return this.baseMapper.selectWrkMastBareBoardStaNo(ioType,staNo); |
| | | } |
| | | |
| | | @Override |
| | | public List<WrkMast> selectWrkMastWrkDetl(Integer ioType, FindLocNoAttributeVo findLocNoAttributeVo, Integer crnNo) { |
| | | return this.baseMapper.selectWrkMastWrkDetl(ioType,findLocNoAttributeVo.getMatnr(),findLocNoAttributeVo.getBatch(),findLocNoAttributeVo.getBrand() |
| | | ,findLocNoAttributeVo.getStandby1(),findLocNoAttributeVo.getStandby2(),findLocNoAttributeVo.getStandby3() |
| | | ,findLocNoAttributeVo.getBoxType1(),findLocNoAttributeVo.getBoxType2(),findLocNoAttributeVo.getBoxType3() |
| | | ,crnNo); |
| | | } |
| | | } |