|
|
@ -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<>(); |
|
|
|
|
|
|
|
String temp = null; |
|
|
|
|
|
|
|
for (int n=0; n<list.size(); n++){ |
|
|
|
|
|
|
|
temp = list.get(n).getPresenterId().toString(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
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 (BusinessApplicationListResponse response:list) { |
|
|
|
for(EmployeeMessageResponse res : employeelist){ |
|
|
|
for(LinkedHashMap res : employeeMessage){ |
|
|
|
if(response.getPresenterId().equals(res.getId())){//如果提单人id相同情况下,就往对象里面赋值
|
|
|
|
if(response.getPresenterId().equals(res.get("id"))){//如果提单人id相同情况下,就往对象里面赋值
|
|
|
|
response.setAccount(res.getAccount()); |
|
|
|
response.setAccount(JSONObject.toJSONString(res.get("account"))); |
|
|
|
response.setDeptName(res.getDeptName()); |
|
|
|
response.setDeptName(JSONObject.toJSONString(res.get("deptName"))); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// i++;
|
|
|
|
} |
|
|
|
}*/ |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return new ResponseResult<PageUtils>().SUCCESS(data); |
|
|
|
return new ResponseResult<PageUtils>().SUCCESS(data); |
|
|
|