|
@@ -266,6 +266,31 @@ public class PlanQuarterServiceImpl extends ServiceImpl<PlanQuarterMapper, PlanQ
|
|
|
}
|
|
|
responseVo.setFileInfos(fileInfos);
|
|
|
}
|
|
|
+ String organDivision = byId.getOrganDivision();
|
|
|
+ if (!ObjectUtils.isEmpty(organDivision)) {
|
|
|
+ int length = organDivision.split(",").length;
|
|
|
+ SysDeptOrgan organ = new SysDeptOrgan();
|
|
|
+ if (length > 1) {
|
|
|
+ StringBuilder builder = new StringBuilder();
|
|
|
+ String[] split = organDivision.split(",");
|
|
|
+ for (String s : split) {
|
|
|
+ organ = sysDeptOrganMapper.selectById(s);
|
|
|
+ if (!ObjectUtils.isEmpty(organ)) {
|
|
|
+ if (!organDivision.endsWith(s)) {
|
|
|
+ builder.append(organ.getOrganName() + ",");
|
|
|
+ } else {
|
|
|
+ builder.append(organ.getOrganName());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ responseVo.setOrganDivisionStr(builder.toString());
|
|
|
+ } else if (length == 1) {
|
|
|
+ organ = sysDeptOrganMapper.selectById(organDivision);
|
|
|
+ if (!ObjectUtils.isEmpty(organ)) {
|
|
|
+ responseVo.setOrganDivisionStr(organ.getOrganName());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
return AjaxResult.success(responseVo);
|
|
|
}
|
|
|
|