业务申请列表修改

master
shijie 4 years ago
parent d37696724f
commit 4e0f44fdbf
  1. 38
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgApplyAmountInfoController.java

@ -44,10 +44,7 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.util.ArrayList; import java.util.*;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;
/** /**
* <p> * <p>
@ -197,38 +194,19 @@ public class DgApplyAmountInfoController implements DgApplyAmountInfoControllerA
} }
//根据提单人id查询其部门名称 //根据提单人id查询其部门名称
ResponseResult responseResult = hrmsFeignService.getAccountAndDeptNameById(arr); ResponseResult responseResult = hrmsFeignService.getAccountAndDeptNameById(arr);
List<EmployeeMessageResponse> employeeMessage = null; List<LinkedHashMap> employeeMessage = null;
if(responseResult.getData() != null){ if(responseResult.getData() != null){
employeeMessage = (List<EmployeeMessageResponse>) responseResult.getData(); employeeMessage = (List<LinkedHashMap>) responseResult.getData();
}
System.out.println("employeeMessage============"+employeeMessage);
List<String> empList = new ArrayList<>();
for (EmployeeMessageResponse resq : employeeMessage) {
empList.add(resq.getId().toString());
} }
/* List<String> strList = new ArrayList<>(); for (BusinessApplicationListResponse response:list) {
String temp = null; for(LinkedHashMap res : employeeMessage){
for (int n=0; n<list.size(); n++){ if(response.getPresenterId().equals(res.get("id"))){//如果提单人id相同情况下,就往对象里面赋值
temp = list.get(n).getPresenterId().toString(); response.setAccount(JSONObject.toJSONString(res.get("account")));
} response.setDeptName(JSONObject.toJSONString(res.get("deptName")));
if(empList.contains(temp)){
strList.add(temp);
} }
System.out.println("strList=============="+strList);*/
//int i=0;
//List<EmployeeMessageResponse> employeelist = JSONObject.parseArray(employeeMessage,EmployeeMessageResponse.class);
/* for (BusinessApplicationListResponse response:list) {
for(EmployeeMessageResponse res : employeelist){
if(response.getPresenterId().equals(res.getId())){//如果提单人id相同情况下,就往对象里面赋值
response.setAccount(res.getAccount());
response.setDeptName(res.getDeptName());
} }
} }
// i++;
}*/
} }
} }
return new ResponseResult<PageUtils>().SUCCESS(data); return new ResponseResult<PageUtils>().SUCCESS(data);

Loading…
Cancel
Save