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;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.daqing.financial.guarantee.feign.HrmsFeignService;
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.RestController;
import java.util.LinkedHashMap;
import java.util.List;
/**
@ -48,12 +50,15 @@ public class DgAuditProcessController {
@RequestParam(required = false) String processId){
List<DgAuditProcess> processList = auditProcessService.queryProcessList(businessId,processId);
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 (RoleEntity roleEntity:list){
if (process.getRoleId().equals(roleEntity.getId())){
process.setDeptName(roleEntity.getName());
for(LinkedHashMap res : message){
if(process.getRoleId().equals(res.get("id"))){//如果id相同情况下,就往对象里面赋值
process.setDeptName(JSONObject.toJSONString(res.get("name")).replace("\"",""));
}
}
}

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

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

Loading…
Cancel
Save