| | |
| | | return AjaxResult.error("获取用户信息错误"); |
| | | } |
| | | |
| | | if(redisCache.hasHKey("getOrderDetailByProParentId"+tjNumber,proParentId)){ |
| | | Map<String, Object> mapValue = redisCache.getCacheMapValue("getOrderDetailByProParentId" + tjNumber, proParentId); |
| | | return AjaxResult.success(mapValue); |
| | | } |
| | | // if(redisCache.hasHKey("getOrderDetailByProParentId"+tjNumber,proParentId)){ |
| | | // Map<String, Object> mapValue = redisCache.getCacheMapValue("getOrderDetailByProParentId" + tjNumber, proParentId); |
| | | // return AjaxResult.success(mapValue); |
| | | // } |
| | | |
| | | TjOrderRemark remark = remarkService.getTjOrderRemarkByTjNumAndProParentId(tjNumber, proParentId); |
| | | List<TjProject> proParentList = projectService.getTjProjectListBySoneId(proParentId); |
| | | if (null == proParentList) { |
| | | return AjaxResult.error("该项目下暂时没数据"); |
| | | if (null == proParentList || proParentList.size()==0) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("xiaoJieIds", null); |
| | | map.put("sons", projectService.list(new LambdaQueryWrapper<TjProject>().eq(TjProject::getProId,proParentId))); |
| | | map.put("xiaoJie", null); |
| | | map.put("remark", remark.getRemark()); |
| | | return AjaxResult.success(map); |
| | | } |
| | | List<Long> proParentIdList = proParentList.stream().map(TjProject::getProId).collect(Collectors.toList()); |
| | | TjOrder one = orderService.getOrderByTjNum(tjNumber); |