Merge remote-tracking branch 'origin/master'

master
shijie 4 years ago
commit ded4548f26
  1. 15
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgAuditProcessController.java
  2. 1
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgEfficiencyServiceImpl.java
  3. 1
      dq-framework-model/src/main/java/com/daqing/framework/domain/guarantee/DgAuditProcess.java

@ -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("\"",""));
} }
} }
} }

@ -511,7 +511,6 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA
efficiencyListResponse.setClientName(name); efficiencyListResponse.setClientName(name);
efficiencyListResponse.setApplicantId(presenterId); efficiencyListResponse.setApplicantId(presenterId);
efficiencyListResponse.setApplicationDate(new SimpleDateFormat("yyyy-MM-dd").format(createTime)); efficiencyListResponse.setApplicationDate(new SimpleDateFormat("yyyy-MM-dd").format(createTime));
efficiencyListResponse.setClientName(String.valueOf(companyId));
//用户处理过业务,统计耗时 //用户处理过业务,统计耗时
QueryWrapper<DgAuditProcess> wrapper = new QueryWrapper<>(); QueryWrapper<DgAuditProcess> wrapper = new QueryWrapper<>();
wrapper.eq("user_id", currentUser).eq("business_id",key); wrapper.eq("user_id", currentUser).eq("business_id",key);

@ -38,6 +38,7 @@ public class DgAuditProcess implements Serializable {
@ApiModelProperty(value = "用户id") @ApiModelProperty(value = "用户id")
private Integer userId; private Integer userId;
@TableField(exist = false)
@ApiModelProperty(value = "部门名称(实为角色名称)") @ApiModelProperty(value = "部门名称(实为角色名称)")
private String deptName; private String deptName;

Loading…
Cancel
Save