|
|
|
@ -263,16 +263,16 @@ public class TaskQuestServiceImpl extends BaseServiceImpl<TaskQuestMapper, TaskQ
|
|
|
|
|
//查询托盘名称
|
|
|
|
|
|
|
|
|
|
Integer conditions = i.getConditions(); |
|
|
|
|
if (1==conditions) { |
|
|
|
|
if (1 == conditions) { |
|
|
|
|
detailEntity.setQuestTarget(1); |
|
|
|
|
|
|
|
|
|
} else if (2==conditions) { |
|
|
|
|
} else if (2 == conditions) { |
|
|
|
|
detailEntity.setQuestTarget(3); |
|
|
|
|
|
|
|
|
|
}else if( 3==conditions){ |
|
|
|
|
} else if (3 == conditions) { |
|
|
|
|
detailEntity.setQuestTarget(2); |
|
|
|
|
}else{ |
|
|
|
|
log.warn(">>>>>>>>>>> 警告 错误的包件数据类型 ,{}",i); |
|
|
|
|
} else { |
|
|
|
|
log.warn(">>>>>>>>>>> 警告 错误的包件数据类型 ,{}", i); |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -312,13 +312,13 @@ public class TaskQuestServiceImpl extends BaseServiceImpl<TaskQuestMapper, TaskQ
|
|
|
|
|
|
|
|
|
|
private DistributionStockArticleEntity getCacheEntityByStockArticleId(DistributionParcelListEntity i) { |
|
|
|
|
|
|
|
|
|
String key = CacheNames.tenantKeyObj(AuthUtil.getTenantId(),"getEntityByStockArticleId", i.getStockArticleId()); |
|
|
|
|
String key = CacheNames.tenantKeyObj(AuthUtil.getTenantId(), "getEntityByStockArticleId", i.getStockArticleId()); |
|
|
|
|
DistributionStockArticleEntity temp = bladeRedis.get(key); |
|
|
|
|
if(ObjectUtils.isNotNull(temp)){ |
|
|
|
|
if (ObjectUtils.isNotNull(temp)) { |
|
|
|
|
temp = distributionStockArticleClient.findEntityByStockArticleId(i.getStockArticleId()); |
|
|
|
|
if(ObjectUtils.isNotNull(temp)){ |
|
|
|
|
if (ObjectUtils.isNotNull(temp)) { |
|
|
|
|
// 设定该条数据的缓存时间 10分钟
|
|
|
|
|
bladeRedis.setEx(key,temp,600L); |
|
|
|
|
bladeRedis.setEx(key, temp, 600L); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
@ -1007,6 +1007,11 @@ public class TaskQuestServiceImpl extends BaseServiceImpl<TaskQuestMapper, TaskQ
|
|
|
|
|
questDetailEntityIPage.getRecords().forEach(i -> { |
|
|
|
|
QuestDetailVO questDetailVO = new QuestDetailVO(); |
|
|
|
|
BeanUtil.copyProperties(i, questDetailVO); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (StringUtil.isNotBlank(questDetailVO.getGroundingPositionCode())) { |
|
|
|
|
questDetailVO.setPositionCode(questDetailVO.getGroundingPositionCode()); |
|
|
|
|
} |
|
|
|
|
if (!i.getQuestStatus().equals(0)) { |
|
|
|
|
R<List<User>> listR = userSearchClient.listByUser(String.valueOf(i.getUpdateUser())); |
|
|
|
|
if (ObjectUtils.isNotNull(listR.getData())) { |
|
|
|
@ -2988,11 +2993,11 @@ public class TaskQuestServiceImpl extends BaseServiceImpl<TaskQuestMapper, TaskQ
|
|
|
|
|
private R<Object> extracted(Long questId, QuestDetailEntity questDetail) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<TaskQuestChildVO> taskQuestChildVOS = bladeRedis.get(RedisKeyConstant.TASK_QUEST_CHILD_KEY+questId); |
|
|
|
|
List<TaskQuestChildVO> taskQuestChildVOS = bladeRedis.get(RedisKeyConstant.TASK_QUEST_CHILD_KEY + questId); |
|
|
|
|
if (taskQuestChildVOS == null) { |
|
|
|
|
taskQuestChildVOS = taskQuestChildService.selectlistByMasterId(questId); |
|
|
|
|
if(taskQuestChildVOS!=null){ |
|
|
|
|
bladeRedis.setEx(RedisKeyConstant.TASK_QUEST_CHILD_KEY+questId, taskQuestChildVOS, 1000L); |
|
|
|
|
if (taskQuestChildVOS != null) { |
|
|
|
|
bladeRedis.setEx(RedisKeyConstant.TASK_QUEST_CHILD_KEY + questId, taskQuestChildVOS, 1000L); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|