|
|
|
@ -3,6 +3,7 @@ package com.ruoyi.database.controller;
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.ruoyi.database.domain.MetaActualUnitUserInfo;
|
|
|
|
|
import com.ruoyi.database.domain.MetaRealEstateInfo;
|
|
|
|
|
import com.ruoyi.database.service.MetaActualUnitUserInfoService;
|
|
|
|
|
import com.ruoyi.common.annotation.Log;
|
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
@ -17,6 +18,8 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -38,7 +41,20 @@ public class MetaActualUnitUserInfoController extends BaseController {
|
|
|
|
|
public TableDataInfo<MetaActualUnitUserInfo> list(MetaActualUnitUserInfo metaActualUnitUserInfo) {
|
|
|
|
|
startPage();
|
|
|
|
|
List<MetaActualUnitUserInfo> list = metaActualUnitUserInfoService.list(new QueryWrapper<>(metaActualUnitUserInfo));
|
|
|
|
|
return getDataTable(list);
|
|
|
|
|
HashMap<String, MetaActualUnitUserInfo> map = new HashMap<>();
|
|
|
|
|
for (MetaActualUnitUserInfo metaActualUnitUserInfo1 : list) {
|
|
|
|
|
String staffName = metaActualUnitUserInfo1.getStaffName();
|
|
|
|
|
if (map.containsKey(staffName)){
|
|
|
|
|
map.get(staffName).getStaffTypeCns().add(metaActualUnitUserInfo1.getStaffTypeCn());
|
|
|
|
|
} else {
|
|
|
|
|
List<String> strings = new ArrayList<>();
|
|
|
|
|
strings.add(metaActualUnitUserInfo1.getStaffTypeCn());
|
|
|
|
|
metaActualUnitUserInfo1.setStaffTypeCns(strings);
|
|
|
|
|
map.put(staffName,metaActualUnitUserInfo1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
ArrayList<MetaActualUnitUserInfo> metaActualUnitUserInfos = new ArrayList<>(map.values());
|
|
|
|
|
return getDataTable(metaActualUnitUserInfos);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping
|
|
|
|
|