fix: 剩料回库

This commit is contained in:
2025-12-02 13:26:16 +08:00
parent d88a9478e5
commit 96a4a34b18

View File

@@ -223,12 +223,14 @@ public class PdaProductionServiceImpl implements PdaProductionService {
if (ObjectUtil.isEmpty(startPoint.getVehicle_code())) { if (ObjectUtil.isEmpty(startPoint.getVehicle_code())) {
throw new BadRequestException("该点位没有载具信息!"); throw new BadRequestException("该点位没有载具信息!");
} }
List<GroupPlate> list = groupplateService.list(new LambdaQueryWrapper<GroupPlate>() // List<GroupPlate> list = groupplateService.list(new LambdaQueryWrapper<GroupPlate>()
.eq(GroupPlate::getVehicle_code, search) // .eq(GroupPlate::getVehicle_code, search)
.ne(GroupPlate::getStatus, IOSEnum.GROUP_PLATE_STATUS.code("出库"))); // .ne(GroupPlate::getStatus, IOSEnum.GROUP_PLATE_STATUS.code("出库")));
if (list.size() > 0) { List<JSONObject> res = groupplateService.getPalletViewByVehicleCode(search);
if (res.size() > 0) {
log.info("剩料回库"); log.info("剩料回库");
// 剩料回库 // 剩料回库
param.put("rows", res);
Sectattr sectattr = sectattrService.findByCode(startPoint.getIn_sect(), false); Sectattr sectattr = sectattrService.findByCode(startPoint.getIn_sect(), false);
param.put("bill_type", IOSEnum.IN_BILL_TYPE.code("剩料回库")); param.put("bill_type", IOSEnum.IN_BILL_TYPE.code("剩料回库"));
// 1 创建入库单、明细、分配明细 // 1 创建入库单、明细、分配明细