Commit 0db2f61a by huangjinxin

fix:甘特图标签返回优化

1 parent b08c0e1f
...@@ -87,7 +87,7 @@ public class OrderInfoEntity { ...@@ -87,7 +87,7 @@ public class OrderInfoEntity {
private String source; private String source;
@Column(name = "bean_priority", length = 10) @Column(name = "bean_priority", length = 10)
private String beanPriority; private String beanPriority = "0";
@Column(name = "bean_tags", length = 200) @Column(name = "bean_tags", length = 200)
private String beanTags; private String beanTags;
......
...@@ -246,7 +246,7 @@ public class EngineerGanttServiceImpl implements EngineerGanttService { ...@@ -246,7 +246,7 @@ public class EngineerGanttServiceImpl implements EngineerGanttService {
private String getTags(OrderInfoEntity order) { private String getTags(OrderInfoEntity order) {
List<String> tagList = new ArrayList(); List<String> tagList = new ArrayList();
if (StringUtils.isNotBlank(order.getBeanTags())) { if (StringUtils.isNotBlank(order.getBeanTags())) {
tagList = Arrays.asList(order.getBeanTags().split(",")); tagList = Arrays.stream(order.getBeanTags().split(",")).collect(Collectors.toList());
} }
if (order.getIsCutoff() == 1) { if (order.getIsCutoff() == 1) {
tagList.add(OrderPeaTagsEnum.cutoff.getTag()); tagList.add(OrderPeaTagsEnum.cutoff.getTag());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!