|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.daqing.financial.guarantee.controller; |
|
|
|
package com.daqing.financial.guarantee.controller; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.daqing.financial.guarantee.feign.HrmsFeignService; |
|
|
|
import com.daqing.financial.guarantee.feign.HrmsFeignService; |
|
|
|
import com.daqing.financial.guarantee.service.IDgAuditProcessService; |
|
|
|
import com.daqing.financial.guarantee.service.IDgAuditProcessService; |
|
|
@ -18,6 +19,7 @@ import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.LinkedHashMap; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -48,12 +50,15 @@ public class DgAuditProcessController { |
|
|
|
@RequestParam(required = false) String processId){ |
|
|
|
@RequestParam(required = false) String processId){ |
|
|
|
List<DgAuditProcess> processList = auditProcessService.queryProcessList(businessId,processId); |
|
|
|
List<DgAuditProcess> processList = auditProcessService.queryProcessList(businessId,processId); |
|
|
|
ResponseResult responseResult = hrmsFeignService.roleList(); |
|
|
|
ResponseResult responseResult = hrmsFeignService.roleList(); |
|
|
|
//获取角色名称信息
|
|
|
|
|
|
|
|
List<RoleEntity> list = (List<RoleEntity>) responseResult.getData(); |
|
|
|
List<LinkedHashMap> message = null; |
|
|
|
|
|
|
|
if(responseResult.getData() != null){ |
|
|
|
|
|
|
|
message = (List<LinkedHashMap>) responseResult.getData(); |
|
|
|
|
|
|
|
} |
|
|
|
for (DgAuditProcess process:processList){ |
|
|
|
for (DgAuditProcess process:processList){ |
|
|
|
for (RoleEntity roleEntity:list){ |
|
|
|
for(LinkedHashMap res : message){ |
|
|
|
if (process.getRoleId().equals(roleEntity.getId())){ |
|
|
|
if(process.getRoleId().equals(res.get("id"))){//如果id相同情况下,就往对象里面赋值
|
|
|
|
process.setDeptName(roleEntity.getName()); |
|
|
|
process.setDeptName(JSONObject.toJSONString(res.get("name")).replace("\"","")); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|