|
|
@ -503,15 +503,15 @@ public class IssueProjectCategoryDictServiceImpl extends BaseServiceImpl<IssuePr |
|
|
|
* @date 2021/5/17 2:16 下午 |
|
|
|
*/ |
|
|
|
public String disposeCategory(List<ProjectCategoryDisPoseResultDTO> list){ |
|
|
|
String result = ""; |
|
|
|
StringBuilder r = new StringBuilder(); |
|
|
|
if (!CollectionUtils.isEmpty(list)){ |
|
|
|
list.forEach(l -> { |
|
|
|
result.concat(l.getCategoryName()).concat(","); |
|
|
|
r.append(l.getCategoryName()).append(","); |
|
|
|
}); |
|
|
|
} |
|
|
|
if (StringUtils.isEmpty(result)){ |
|
|
|
return result; |
|
|
|
if (StringUtils.isEmpty(r.toString())){ |
|
|
|
return r.toString(); |
|
|
|
} |
|
|
|
return result.substring(NumConstant.ZERO,result.length()-NumConstant.ONE); |
|
|
|
return r.toString().substring(NumConstant.ZERO,r.length()-NumConstant.ONE); |
|
|
|
} |
|
|
|
} |
|
|
|