业务申请列表修改

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

Loading…
Cancel
Save