|
|
|
@ -1057,8 +1057,6 @@ public class TaskQuestServiceImpl extends BaseServiceImpl<TaskQuestMapper, TaskQ
|
|
|
|
|
positionCode = goodsAreaEntity.getHeadline() + "-" + basicdataGoodsShelfEntity.getGoodsShelfName() + "-" + goodsAllocationEntity.getGoodsAllocationName(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QuestDetailDTO questDetail = taskSearchDTO.getQuestDetail(); |
|
|
|
|
QuestDetailEntity questDetailEntity = new QuestDetailEntity(); |
|
|
|
|
BeanUtil.copy(questDetail, questDetailEntity); |
|
|
|
@ -1146,6 +1144,9 @@ public class TaskQuestServiceImpl extends BaseServiceImpl<TaskQuestMapper, TaskQ
|
|
|
|
|
packagelistVO.setMaterialName(questDetailEntity.getMaterialName()); |
|
|
|
|
} |
|
|
|
|
packagelistVO.setAllocation(questDetailEntity.getPositionCode()); |
|
|
|
|
packagelistVO.setQuestDetailId(questDetailEntity.getId()); |
|
|
|
|
packagelistVO.setQuestStatus(questDetailEntity.getQuestStatus()); |
|
|
|
|
packagelistVO.setQuestTarget(questDetailEntity.getQuestTarget()); |
|
|
|
|
packagelistVO.setOrderCode(orderCode.get(0)); |
|
|
|
|
packagelistVO.setCurrentStatus("1"); // 默认在库
|
|
|
|
|
taskPackagelistVOS.add(packagelistVO); |
|
|
|
@ -1287,7 +1288,7 @@ public class TaskQuestServiceImpl extends BaseServiceImpl<TaskQuestMapper, TaskQ
|
|
|
|
|
.eq(QuestDetailEntity::getQuestId, taskQuestId) |
|
|
|
|
.like(QuestDetailEntity::getOrderCode, incomingBatch) |
|
|
|
|
.eq(QuestDetailEntity::getQuestType, 3) |
|
|
|
|
.eq(QuestDetailEntity::getQuestTarget, 1) |
|
|
|
|
.in(QuestDetailEntity::getQuestTarget, 1,2) |
|
|
|
|
.eq(QuestDetailEntity::getWarehouseId, taskSearchDTO.getWarehouseId())); |
|
|
|
|
if (Func.isNotEmpty(questDetailEntityList) && questDetailEntityList.size()>0){ |
|
|
|
|
TaskContractVO taskContractVO = new TaskContractVO(); |
|
|
|
@ -1358,6 +1359,8 @@ public class TaskQuestServiceImpl extends BaseServiceImpl<TaskQuestMapper, TaskQ
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
taskContractVO.setZktotal(libNum.get()); |
|
|
|
|
taskContractVO.setIsZero(0); |
|
|
|
|
taskContractVO.setIsInventory(0); |
|
|
|
|
} else { |
|
|
|
|
//查询任务表 是否需要进行盘点任务数据的插入
|
|
|
|
|
List<QuestDetailEntity> zeroQuestDetailEntityList = questDetailService.list(Wrappers.<QuestDetailEntity>query().lambda() |
|
|
|
@ -1409,6 +1412,9 @@ public class TaskQuestServiceImpl extends BaseServiceImpl<TaskQuestMapper, TaskQ
|
|
|
|
|
questDetailEntity.setStockNum(stockArticleInfo.getHandQuantity()); |
|
|
|
|
questDetailEntity.setQuestType(3); |
|
|
|
|
questDetailService.save(questDetailEntity); |
|
|
|
|
taskContractVO.setIsZero(1); |
|
|
|
|
taskContractVO.setIsInventory(0); |
|
|
|
|
taskContractVOS.add(taskContractVO); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|