Commit 8761c83c13b45c164a6f3df7ba5ba2076a70691f

Authored by 房远帅
2 parents 0a68406a 1cccc4de

Merge branch 'master_0929' into master_after20

@@ -106,6 +106,12 @@ public class GetSpecLockDelayApplicationBo extends BaseBo<SpecLockDelayApplicati @@ -106,6 +106,12 @@ public class GetSpecLockDelayApplicationBo extends BaseBo<SpecLockDelayApplicati
106 @ApiModelProperty(value = "数量(t)") 106 @ApiModelProperty(value = "数量(t)")
107 private BigDecimal totalQuantity; 107 private BigDecimal totalQuantity;
108 108
  109 + /**
  110 + * 是否展示审核按钮(非持久化字段)
  111 + */
  112 + @ApiModelProperty(value = "是否展示审核按钮")
  113 + private Boolean showExamine;
  114 +
109 public GetSpecLockDelayApplicationBo() { 115 public GetSpecLockDelayApplicationBo() {
110 116
111 } 117 }
@@ -108,11 +108,20 @@ public class SpecLockDelayApplicationServiceImpl extends BaseMpServiceImpl<SpecL @@ -108,11 +108,20 @@ public class SpecLockDelayApplicationServiceImpl extends BaseMpServiceImpl<SpecL
108 return getBaseMapper().query(vo); 108 return getBaseMapper().query(vo);
109 } 109 }
110 110
111 - @Cacheable(value = SpecLockDelayApplication.CACHE_NAME, key = "@cacheVariables.tenantId() + #id", unless = "#result == null")  
112 @Override 111 @Override
113 public SpecLockDelayApplication findById(String id) { 112 public SpecLockDelayApplication findById(String id) {
  113 + SpecLockDelayApplication specLockDelayApplication = getBaseMapper().selectById(id);
  114 + if (specLockDelayApplication == null) {
  115 + return null;
  116 + }
  117 + // 获取当前人员的待办任务数据
  118 + List<FlowTaskDto> flowTaskList = flowTaskWrapperMapper.queryTodoList(new QueryTodoTaskListVo(), SecurityUtil.getCurrentUser().getId());
  119 + if (CollectionUtils.isNotEmpty(flowTaskList)) {
  120 + List<String> businessIds = flowTaskList.stream().map(FlowTaskDto::getBusinessId).collect(Collectors.toList());
  121 + specLockDelayApplication.setShowExamine(businessIds.contains(specLockDelayApplication.getId()));
  122 + }
114 123
115 - return getBaseMapper().selectById(id); 124 + return specLockDelayApplication;
116 } 125 }
117 126
118 @OpLog(type = OtherOpLogType.class, name = "新增锁价无规格操作申请单,ID:{}", params = {"#id"}) 127 @OpLog(type = OtherOpLogType.class, name = "新增锁价无规格操作申请单,ID:{}", params = {"#id"})