台账出入库明细解开注释

This commit is contained in:
汤锦科 2024-12-20 15:13:10 +08:00
parent d5904db69a
commit eaf2b3ee82

View File

@ -94,55 +94,55 @@ public class BaseKnifeServiceImpl implements IBaseKnifeService {
List<HashMap<String, Object>> hashMapList = new ArrayList<>(); List<HashMap<String, Object>> hashMapList = new ArrayList<>();
// 根据台账实例ID获取出库实例列表并遍历 // 根据台账实例ID获取出库实例列表并遍历
// WmsOutPlanDetailEntity wmsOutPlanDetailEntityQuery = new WmsOutPlanDetailEntity(); WmsOutPlanDetailEntity wmsOutPlanDetailEntityQuery = new WmsOutPlanDetailEntity();
// wmsOutPlanDetailEntityQuery.setBaseKnifeId(nowBaseKnife.getBaseKnifeId()); wmsOutPlanDetailEntityQuery.setBaseKnifeId(nowBaseKnife.getBaseKnifeId());
// List<WmsOutPlanDetailEntity> wmsOutPlanDetailEntityList = this.wmsOutPlanDetailEntityMapper.selectWmsOutPlanDetailEntityList(wmsOutPlanDetailEntityQuery); List<WmsOutPlanDetailEntity> wmsOutPlanDetailEntityList = this.wmsOutPlanDetailEntityMapper.selectWmsOutPlanDetailEntityList(wmsOutPlanDetailEntityQuery);
// wmsOutPlanDetailEntityList.forEach(nowWmsOutPlanDetailEntity -> { wmsOutPlanDetailEntityList.forEach(nowWmsOutPlanDetailEntity -> {
// // 根据出库实例对象获取出库计划明细 // 根据出库实例对象获取出库计划明细
// WmsOutPlanDetail wmsOutPlanDetail = this.wmsOutPlanMapper.selectWmsOutPlanDetailById(nowWmsOutPlanDetailEntity.getWmsOutPlanDetailId()); WmsOutPlanDetail wmsOutPlanDetail = this.wmsOutPlanMapper.selectWmsOutPlanDetailById(nowWmsOutPlanDetailEntity.getWmsOutPlanDetailId());
//
// // 根据计划明细获得出库计划 // 根据计划明细获得出库计划
// WmsOutPlan wmsOutPlan = this.wmsOutPlanMapper.selectWmsOutPlanByWmsOutPlanId(wmsOutPlanDetail.getWmsOutPlanId()); WmsOutPlan wmsOutPlan = this.wmsOutPlanMapper.selectWmsOutPlanByWmsOutPlanId(wmsOutPlanDetail.getWmsOutPlanId());
//
// // 根据出库计划获得出库类型 // 根据出库计划获得出库类型
// WmsBusinessType wmsBusinessType = this.wmsBusinessTypeMapper.selectWmsBusinessTypeByTypeId(wmsOutPlan.getWmsBusinessTypeId().toString()); WmsBusinessType wmsBusinessType = this.wmsBusinessTypeMapper.selectWmsBusinessTypeByTypeId(wmsOutPlan.getWmsBusinessTypeId().toString());
//
// // 设定出库信息数据 // 设定出库信息数据
// HashMap<String, Object> hashMap = new HashMap<>(); HashMap<String, Object> hashMap = new HashMap<>();
// /* 来自计划 */ /* 来自计划 */
// hashMap.put("planCode", wmsOutPlan.getPlanCode()); // 计划编号 hashMap.put("planCode", wmsOutPlan.getPlanCode()); // 计划编号
// hashMap.put("planStatus", wmsOutPlan.getPlanState()); // 计划状态 hashMap.put("planStatus", wmsOutPlan.getPlanState()); // 计划状态
// hashMap.put("planType", wmsOutPlan.getPlanType()); // 计划类型 hashMap.put("planType", wmsOutPlan.getPlanType()); // 计划类型
// hashMap.put("useUsername", wmsOutPlan.getRecipientUsername()); // 领用人 hashMap.put("useUsername", wmsOutPlan.getRecipientUsername()); // 领用人
// /* 来自出入库计划类型 */ /* 来自出入库计划类型 */
// hashMap.put("planTypeId", wmsBusinessType.getTypeId()); // 出库类型ID hashMap.put("planTypeId", wmsBusinessType.getTypeId()); // 出库类型ID
// hashMap.put("planTypeCode", wmsBusinessType.getCode()); // 出库类型编码 hashMap.put("planTypeCode", wmsBusinessType.getCode()); // 出库类型编码
// hashMap.put("planTypeName", wmsBusinessType.getName()); // 出库类型名称 hashMap.put("planTypeName", wmsBusinessType.getName()); // 出库类型名称
// /* 来自计划明细 */ /* 来自计划明细 */
// hashMap.put("detailBatchNum", wmsOutPlanDetail.getDetailBatchNum()); // 明细批次 hashMap.put("detailBatchNum", wmsOutPlanDetail.getDetailBatchNum()); // 明细批次
// hashMap.put("wmStorageAreaId", wmsOutPlanDetail.getWmStorageAreaId()); // 库位ID hashMap.put("wmStorageAreaId", wmsOutPlanDetail.getWmStorageAreaId()); // 库位ID
// hashMap.put("wmStorageAreaCode", wmsOutPlanDetail.getWmStorageAreaCode()); // 库位编码 hashMap.put("wmStorageAreaCode", wmsOutPlanDetail.getWmStorageAreaCode()); // 库位编码
// hashMap.put("wmStorageAreaName", wmsOutPlanDetail.getWmStorageAreaName()); // 库位名称 hashMap.put("wmStorageAreaName", wmsOutPlanDetail.getWmStorageAreaName()); // 库位名称
// hashMap.put("detailStatus", wmsOutPlanDetail.getDetailState()); // 明细状态 hashMap.put("detailStatus", wmsOutPlanDetail.getDetailState()); // 明细状态
// hashMap.put("isToolSetting", nowWmsOutPlanDetailEntity.getIsToolSetting()); // 是否对刀 hashMap.put("isToolSetting", nowWmsOutPlanDetailEntity.getIsToolSetting()); // 是否对刀
// hashMap.put("toolSettingParam", nowWmsOutPlanDetailEntity.getToolSettingParam()); // 对刀参数 hashMap.put("toolSettingParam", nowWmsOutPlanDetailEntity.getToolSettingParam()); // 对刀参数
//
// /* 实体 */ /* 实体 */
// String outTime = null; String outTime = null;
// if (nowWmsOutPlanDetailEntity.getCreateTime() != null) if (nowWmsOutPlanDetailEntity.getCreateTime() != null)
// outTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(nowWmsOutPlanDetailEntity.getCreateTime()); outTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(nowWmsOutPlanDetailEntity.getCreateTime());
// hashMap.put("outTime", outTime); // 出库时间 hashMap.put("outTime", outTime); // 出库时间
// hashMapList.add(hashMap); hashMapList.add(hashMap);
//
// // 注入出库信息对象 // 注入出库信息对象
// nowBaseKnife.setOutInfoList(hashMapList); nowBaseKnife.setOutInfoList(hashMapList);
// }); });
//
// // 构建入库信息 // 构建入库信息
// WmsInPlanDetailEntity wmsInPlanDetailEntityQuery = new WmsInPlanDetailEntity(); WmsInPlanDetailEntity wmsInPlanDetailEntityQuery = new WmsInPlanDetailEntity();
// wmsInPlanDetailEntityQuery.setKnifeId(nowBaseKnife.getBaseKnifeId()); wmsInPlanDetailEntityQuery.setKnifeId(nowBaseKnife.getBaseKnifeId());
// List<WmsInPlanDetailEntity> wmsInPlanDetailEntityList = wmsInPlanDetailEntityService.selectWmsInPlanDetailEntityList(wmsInPlanDetailEntityQuery); List<WmsInPlanDetailEntity> wmsInPlanDetailEntityList = wmsInPlanDetailEntityService.selectWmsInPlanDetailEntityList(wmsInPlanDetailEntityQuery);
// nowBaseKnife.setInInfoList(wmsInPlanDetailEntityList); nowBaseKnife.setInInfoList(wmsInPlanDetailEntityList);
// 查询基础物料 // 查询基础物料
if ("PRODUCT".equals(nowBaseKnife.getItemOrProduct())) { if ("PRODUCT".equals(nowBaseKnife.getItemOrProduct())) {