|
@@ -187,7 +187,7 @@ public class CommonBusinessService {
|
|
|
CooperateManageQueryResVo cooperateManageQueryResVo = new CooperateManageQueryResVo();
|
|
CooperateManageQueryResVo cooperateManageQueryResVo = new CooperateManageQueryResVo();
|
|
|
cooperateManageQueryResVo.setId(cooperateManageQueryResDto.getId());
|
|
cooperateManageQueryResVo.setId(cooperateManageQueryResDto.getId());
|
|
|
cooperateManageQueryResVo.setCooperateTypes(cooperateManageQueryResDto.getTypes());
|
|
cooperateManageQueryResVo.setCooperateTypes(cooperateManageQueryResDto.getTypes());
|
|
|
- cooperateManageQueryResVo.setCreateTime(cooperateManageQueryResDto.getCreateTime());
|
|
|
|
|
|
|
+
|
|
|
cooperateManageQueryResVo.setRemark(cooperateManageQueryResDto.getRemark());
|
|
cooperateManageQueryResVo.setRemark(cooperateManageQueryResDto.getRemark());
|
|
|
cooperateManageQueryResVo.setStatus(cooperateManageQueryResDto.getStatus());
|
|
cooperateManageQueryResVo.setStatus(cooperateManageQueryResDto.getStatus());
|
|
|
cooperateManageQueryResVo.setApplyTypeCode(cooperateManageQueryResDto.getApplyTypeCode());
|
|
cooperateManageQueryResVo.setApplyTypeCode(cooperateManageQueryResDto.getApplyTypeCode());
|
|
@@ -213,12 +213,42 @@ public class CommonBusinessService {
|
|
|
cooperateManageQueryResVo.setManagerId(cooperateManageQueryResDto.getInviteeContactsId());
|
|
cooperateManageQueryResVo.setManagerId(cooperateManageQueryResDto.getInviteeContactsId());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ //转换合作属性
|
|
|
|
|
+ String types = cooperateManageQueryResDto.getTypes();
|
|
|
|
|
+ List<Integer> typeList = Arrays.stream(types.split(Global.COMMA)).map(Integer::parseInt).distinct().toList();
|
|
|
|
|
+ if (!Objects.equals(LoginUserHolder.getEntId(), cooperateManageQueryResDto.getEntId())) {
|
|
|
|
|
+ List<Integer> targetTypes = new ArrayList<>();
|
|
|
|
|
+ for (Integer type : typeList) {
|
|
|
|
|
+ targetTypes.add(changeCooperateType(type));
|
|
|
|
|
+ }
|
|
|
|
|
+ cooperateManageQueryResVo.setCooperateTypes(String.join(Global.COMMA,targetTypes.stream().distinct().map(String::valueOf).toList()));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
result.add(cooperateManageQueryResVo);
|
|
result.add(cooperateManageQueryResVo);
|
|
|
}
|
|
}
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ public Integer changeCooperateType(Integer type) {
|
|
|
|
|
+ if (type.equals(CooperateTypeEnum.SUPPLIER.getCode())) {
|
|
|
|
|
+ return CooperateTypeEnum.PURCHASER.getCode();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (type.equals(CooperateTypeEnum.PURCHASER.getCode())) {
|
|
|
|
|
+ return CooperateTypeEnum.SUPPLIER.getCode();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (type.equals(CooperateTypeEnum.CONSIGN.getCode())) {
|
|
|
|
|
+ return CooperateTypeEnum.CARRIAGE.getCode();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (type.equals(CooperateTypeEnum.CARRIAGE.getCode())) {
|
|
|
|
|
+ return CooperateTypeEnum.CONSIGN.getCode();
|
|
|
|
|
+ }
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* @return FindListGroupResVo
|
|
* @return FindListGroupResVo
|
|
|
* @desc: 初始化分组返参
|
|
* @desc: 初始化分组返参
|