|
@@ -1,5 +1,6 @@
|
|
|
package com.sooka.jnb.handleAffairs.service.impl;
|
|
|
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
import com.ruoyi.common.utils.DateUtils;
|
|
|
import com.ruoyi.common.utils.SecurityUtils;
|
|
@@ -29,8 +30,9 @@ public class TopicTypeServiceImpl implements ITopicTypeService
|
|
|
*/
|
|
|
@Override
|
|
|
public TopicType selectTopicTypeById(Long id)
|
|
|
- {
|
|
|
- return topicTypeMapper.selectTopicTypeById(id);
|
|
|
+ { TopicType topicType = topicTypeMapper.selectTopicTypeById(id);
|
|
|
+ topicType.setObjectOfHandlingArray(Arrays.asList(topicType.getObjectOfHandling().split(",")));
|
|
|
+ return topicType;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -41,8 +43,11 @@ public class TopicTypeServiceImpl implements ITopicTypeService
|
|
|
*/
|
|
|
@Override
|
|
|
public List<TopicType> selectTopicTypeList(TopicType topicType)
|
|
|
- {
|
|
|
- return topicTypeMapper.selectTopicTypeList(topicType);
|
|
|
+ { List<TopicType> list = topicTypeMapper.selectTopicTypeList(topicType);
|
|
|
+ list.forEach(e->{
|
|
|
+ e.setObjectOfHandlingArray(Arrays.asList(e.getObjectOfHandling().split(",")));
|
|
|
+ });
|
|
|
+ return list;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -57,6 +62,7 @@ public class TopicTypeServiceImpl implements ITopicTypeService
|
|
|
topicType.setCreateTime(DateUtils.getNowDate());
|
|
|
topicType.setCreateBy(SecurityUtils.getUserId().toString());
|
|
|
topicType.setDelFlag("0");
|
|
|
+ topicType.setObjectOfHandling(String.join(",",topicType.getObjectOfHandlingArray()));
|
|
|
return topicTypeMapper.insertTopicType(topicType);
|
|
|
}
|
|
|
|
|
@@ -71,6 +77,7 @@ public class TopicTypeServiceImpl implements ITopicTypeService
|
|
|
{
|
|
|
topicType.setUpdateTime(DateUtils.getNowDate());
|
|
|
topicType.setUpdateBy(SecurityUtils.getUserId().toString());
|
|
|
+ topicType.setObjectOfHandling(String.join(",",topicType.getObjectOfHandlingArray()));
|
|
|
return topicTypeMapper.updateTopicType(topicType);
|
|
|
}
|
|
|
|