Merge branch 'b_lms' of http://121.40.234.130:8899/root/lanzhouhailiang_one into b_lms
This commit is contained in:
@@ -14,6 +14,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.github.pagehelper.Page;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.nl.b_lms.pdm.bi.slittingproductionplan.service.IPdmBiSlittingproductionplanService;
|
||||
import org.nl.b_lms.pdm.bi.slittingproductionplan.service.dao.mapper.PdmBiSlittingproductionplanMapper;
|
||||
import org.nl.b_lms.pdm.subpackagerelation.dao.PdmBiSubpackagerelation;
|
||||
@@ -406,15 +407,27 @@ public class StIvtIostorinvServiceImpl extends ServiceImpl<StIvtIostorinvMapper,
|
||||
}
|
||||
|
||||
private BstIvtBoxinfo getBstIvtBoxinfo(Map whereJson) {
|
||||
//查询木箱码
|
||||
//查询木箱信息
|
||||
String containerName;
|
||||
if (whereJson.get("tableMater") != null) {
|
||||
JSONArray jsonArray = JSON.parseArray(JSON.toJSONString(whereJson.get("tableMater")));
|
||||
containerName = jsonArray.getJSONObject(0).getString("pcsn");
|
||||
} else {
|
||||
containerName = whereJson.get("material_barcode").toString().split(",")[0];
|
||||
}
|
||||
if (StringUtils.isBlank(containerName)) {
|
||||
throw new BadRequestException("子卷号不能为空");
|
||||
}
|
||||
PdmBiSubpackagerelation pdmBiSubpackagerelation = ipdmBiSubpackagerelationService.getOne(new LambdaQueryWrapper<PdmBiSubpackagerelation>()
|
||||
.eq(PdmBiSubpackagerelation::getContainer_name, whereJson.get("material_barcode").toString().split(",")[0]));
|
||||
.eq(PdmBiSubpackagerelation::getContainer_name, containerName));
|
||||
if (pdmBiSubpackagerelation == null) {
|
||||
throw new BadRequestException("子卷包装关系不存在");
|
||||
}
|
||||
// 查询木箱信息
|
||||
BstIvtBoxinfo boxDao = iBstIvtBoxinfoService.getOne(
|
||||
return iBstIvtBoxinfoService.getOne(
|
||||
new QueryWrapper<BstIvtBoxinfo>().lambda()
|
||||
.eq(BstIvtBoxinfo::getBox_no, pdmBiSubpackagerelation.getPackage_box_sn())
|
||||
);
|
||||
return boxDao;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -512,7 +525,8 @@ public class StIvtIostorinvServiceImpl extends ServiceImpl<StIvtIostorinvMapper,
|
||||
jsonTaskParam.put("task_type", "010703");
|
||||
jsonTaskParam.put("start_device_code", pointDto.getPoint_code());
|
||||
jsonTaskParam.put("next_device_code", jsonDis.getString("struct_code"));
|
||||
jsonTaskParam.put("vehicle_code", whereJson.get("vehicle_code"));
|
||||
//jsonTaskParam.put("vehicle_code", whereJson.get("vehicle_code"));
|
||||
jsonTaskParam.put("vehicle_code", "A00010");
|
||||
jsonTaskParam.put("vehicle_code2", whereJson.get("vehicle_code2"));
|
||||
jsonTaskParam.put("inv_type", mstDao.getBill_type());
|
||||
jsonTaskParam.put("inv_id", mstDao.getIostorinv_id());
|
||||
|
||||
Reference in New Issue
Block a user