|
|
@ -12,6 +12,7 @@ import com.epmet.dto.extract.result.SatisfactionInfoResultDTO; |
|
|
|
import com.epmet.dto.issue.*; |
|
|
|
import com.epmet.entity.issue.IssueEntity; |
|
|
|
import com.epmet.service.Issue.IssueService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.util.CollectionUtils; |
|
|
@ -26,6 +27,7 @@ import java.util.Set; |
|
|
|
* @dscription |
|
|
|
* @date 2020/6/17 16:02 |
|
|
|
*/ |
|
|
|
@Slf4j |
|
|
|
@Service |
|
|
|
@DataSource(DataSourceConstant.GOV_ISSUE) |
|
|
|
public class IssueServiceImpl implements IssueService { |
|
|
@ -162,8 +164,11 @@ public class IssueServiceImpl implements IssueService { |
|
|
|
List<IssueProjectCategoryDictDTO> categories = statsIssueDao.selectCategory(customerId, categoryIds); |
|
|
|
if(!CollectionUtils.isEmpty(categories)){ |
|
|
|
StringBuilder str = new StringBuilder(); |
|
|
|
categories.forEach(category -> {str.append(category.getCategoryName()).append(StrConstant.COMMA);}); |
|
|
|
map.put(projectId,str.substring(NumConstant.ZERO,str.length() - NumConstant.TWO)); |
|
|
|
categories.forEach(category -> { |
|
|
|
str.append(category.getCategoryName()).append(StrConstant.COMMA); |
|
|
|
//log.info(str.toString());
|
|
|
|
}); |
|
|
|
map.put(projectId,str.substring(NumConstant.ZERO,str.length() - NumConstant.ONE)); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|