|
|
@@ -37,6 +37,7 @@ import com.xunmei.system.api.RemoteUserService;
|
|
|
import com.xunmei.system.api.domain.SysOrg;
|
|
|
import com.xunmei.system.api.function.RemoteCallHandlerExecutor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Qualifier;
|
|
|
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
|
|
|
@@ -178,7 +179,29 @@ public class PanelServiceImpl implements PanelService {
|
|
|
List<PanelListVo> data = map.getValue();
|
|
|
vo.setNums(data.size());
|
|
|
vo.setTaskTypeText(PanelTypeEnums.getName(map.getKey()));
|
|
|
- vo.setDataList(data);
|
|
|
+ if(ObjectUtil.equal(map.getKey(),PanelTypeEnums.SAFETY_CHECK.getCode())){
|
|
|
+ if(data.size()>0)
|
|
|
+ {
|
|
|
+ Map<String, List<PanelListVo>> groupedItems = data.stream()
|
|
|
+ .collect(Collectors.groupingBy(PanelListVo::getTaskName));
|
|
|
+ List<PanelListVo> tempData=new ArrayList<>();
|
|
|
+
|
|
|
+ for (Map.Entry<String, List<PanelListVo>> entry : groupedItems.entrySet()) {
|
|
|
+ PanelListVo parentItem=new PanelListVo();
|
|
|
+ BeanUtils.copyProperties(entry.getValue().get(0),parentItem);
|
|
|
+ parentItem.setUncompleted(entry.getValue());
|
|
|
+ tempData.add(parentItem);
|
|
|
+ }
|
|
|
+ vo.setDataList(tempData);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ vo.setDataList(data);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else {
|
|
|
+
|
|
|
+ vo.setDataList(data);
|
|
|
+ }
|
|
|
list.add(vo);
|
|
|
}
|
|
|
|