| | |
| | | import com.zy.asrs.service.MatService; |
| | | import com.zy.asrs.service.WrkDetlService; |
| | | import com.zy.common.model.DetlDto; |
| | | import com.zy.common.utils.HttpHandler; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public boolean updateAnfme(Double anfme, Integer wrkNo, String matnr, String batch,String barcode) { |
| | | if (anfme <= 0) { |
| | | return this.baseMapper.deleteItem(wrkNo, matnr, batch,barcode) > 0; |
| | | } else { |
| | | return baseMapper.updateAnfme(anfme, wrkNo, matnr, batch,barcode) > 0; |
| | | } |
| | | } |
| | | @Override |
| | | public boolean updateBuyerLabel(String orderNo,String buyerLabel,String barcode){ |
| | | return this.baseMapper.updateBuyerLabel(orderNo, buyerLabel,barcode) > 0; |
| | | } |
| | | |
| | | @Override |
| | | public List<WrkDetl> selectAndLogByOrderNo(String orderNo) { |
| | | return this.baseMapper.selectAndLogByOrderNo(orderNo); |
| | | } |
| | |
| | | public List<WrkDetl> selectAndLogByOrderNoGroupByMatnrOfSum(String orderNo) { |
| | | return this.baseMapper.selectAndLogByOrderNoGroupByMatnrOfSum(orderNo); |
| | | } |
| | | |
| | | @Override |
| | | public List<WrkDetl> findByWorkNo(Integer workNo) { |
| | | return this.baseMapper.findByWorkNo(workNo); |
| | | } |
| | | @Override |
| | | public boolean updateIoTime(Integer workNo, Date ioTime) { |
| | | return this.baseMapper.updateIoTime(workNo, ioTime) > 0; |
| | | } |
| | | @Override |
| | | public List<WrkDetl> findByBarcode(String barcode) { |
| | | return this.baseMapper.findByBarcode(barcode); |
| | | } |
| | | } |