|
|
@ -12,6 +12,7 @@ import com.heai.modules.board.entity.*; |
|
|
import com.heai.modules.board.service.BoardService; |
|
|
import com.heai.modules.board.service.BoardService; |
|
|
import com.heai.modules.pad.entity.AttachmentListData; |
|
|
import com.heai.modules.pad.entity.AttachmentListData; |
|
|
import com.heai.modules.production.dao.FunctionMapper; |
|
|
import com.heai.modules.production.dao.FunctionMapper; |
|
|
|
|
|
import com.heai.modules.production.dao.PrintLabelRecordMapper; |
|
|
import com.heai.modules.production.dao.SoScheduledListMapper; |
|
|
import com.heai.modules.production.dao.SoScheduledListMapper; |
|
|
import com.heai.modules.production.dao.TcpMapper; |
|
|
import com.heai.modules.production.dao.TcpMapper; |
|
|
import com.heai.modules.production.entity.*; |
|
|
import com.heai.modules.production.entity.*; |
|
|
@ -671,7 +672,7 @@ public class BoardServiceImpl implements BoardService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public List<PackagePrintData> getPackagePrintDataList(Integer previousSeqNo, BigDecimal number,String site,String orderNo,String seqNo) { |
|
|
|
|
|
|
|
|
public List<PackagePrintData> getPackagePrintDataList(Integer previousSeqNo, BigDecimal number,String site,String orderNo,String seqNo,BigDecimal weight) { |
|
|
// 1、上一道工序 |
|
|
// 1、上一道工序 |
|
|
if (StringUtils.isEmpty(site)){ |
|
|
if (StringUtils.isEmpty(site)){ |
|
|
throw new RuntimeException("参数Site为空"); |
|
|
throw new RuntimeException("参数Site为空"); |
|
|
@ -716,6 +717,7 @@ public class BoardServiceImpl implements BoardService { |
|
|
record.setPrintQty(BigDecimal.valueOf(packagePrintData.getUnitQty())); |
|
|
record.setPrintQty(BigDecimal.valueOf(packagePrintData.getUnitQty())); |
|
|
record.setCreateTime(new Date()); |
|
|
record.setCreateTime(new Date()); |
|
|
record.setScanSeqNo(Long.valueOf(seqNo)); |
|
|
record.setScanSeqNo(Long.valueOf(seqNo)); |
|
|
|
|
|
record.setWeight(weight); |
|
|
// 添加初始化状态 |
|
|
// 添加初始化状态 |
|
|
record.setStatus("未入库"); |
|
|
record.setStatus("未入库"); |
|
|
printLabelRecordService.save(record); |
|
|
printLabelRecordService.save(record); |
|
|
@ -740,6 +742,7 @@ public class BoardServiceImpl implements BoardService { |
|
|
} |
|
|
} |
|
|
// 2、返回集合 |
|
|
// 2、返回集合 |
|
|
List<PackagePrintData> list = boardMapper.getPackagePrintDataList(printLabelRecord.getSeqNo().intValue(),printLabelRecord.getQty()); |
|
|
List<PackagePrintData> list = boardMapper.getPackagePrintDataList(printLabelRecord.getSeqNo().intValue(),printLabelRecord.getQty()); |
|
|
|
|
|
PrintLabelRecord labelData = boardMapper.getPrintLabelRecordById(printLabelRecord.getId()); |
|
|
if (list.isEmpty()){ |
|
|
if (list.isEmpty()){ |
|
|
throw new RuntimeException("派工单未查询到标签信息"); |
|
|
throw new RuntimeException("派工单未查询到标签信息"); |
|
|
} |
|
|
} |
|
|
@ -768,6 +771,7 @@ public class BoardServiceImpl implements BoardService { |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
packagePrintData.setPrintId(printLabelRecord.getItemNo()); |
|
|
packagePrintData.setPrintId(printLabelRecord.getItemNo()); |
|
|
|
|
|
packagePrintData.setTcpValue(labelData.getWeight().toString()); |
|
|
List<PackagePrintData> resultList = new ArrayList<>(); |
|
|
List<PackagePrintData> resultList = new ArrayList<>(); |
|
|
packagePrintData.setUnitQty(printLabelRecord.getPrintQty().doubleValue()); |
|
|
packagePrintData.setUnitQty(printLabelRecord.getPrintQty().doubleValue()); |
|
|
resultList.add(packagePrintData); |
|
|
resultList.add(packagePrintData); |
|
|
|