完善功能

master
chen 4 years ago
parent 7bfa9f6034
commit 459d06aa3f
  1. 13
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgAuditProcessController.java
  2. 20
      dq-framework-model/src/main/java/com/daqing/framework/domain/guarantee/po/ProcessPO.java
  3. 2
      dq-framework-model/src/main/java/com/daqing/framework/domain/hrms/response/HrmsCode.java

@ -1,8 +1,10 @@
package com.daqing.financial.guarantee.controller; package com.daqing.financial.guarantee.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.daqing.financial.guarantee.service.IDgAuditProcessService; import com.daqing.financial.guarantee.service.IDgAuditProcessService;
import com.daqing.framework.domain.guarantee.DgAuditProcess; import com.daqing.framework.domain.guarantee.DgAuditProcess;
import com.daqing.framework.domain.guarantee.po.ProcessPO;
import com.daqing.framework.model.response.ResponseResult; import com.daqing.framework.model.response.ResponseResult;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
@ -49,8 +51,15 @@ public class DgAuditProcessController {
public ResponseResult getProcessId( public ResponseResult getProcessId(
@ApiParam(name = "businessId", value = "业务id", required = true) @ApiParam(name = "businessId", value = "业务id", required = true)
@RequestParam String businessId){ @RequestParam String businessId){
List<Integer> processId = auditProcessService.getProcessId(businessId); List<Integer> processIds = auditProcessService.getProcessId(businessId);
return ResponseResult.SUCCESS(processId); QueryWrapper<DgAuditProcess> wrapper = new QueryWrapper<>();
wrapper.eq("business_id",businessId).orderByDesc("create_time").last("limit 1");
DgAuditProcess process = auditProcessService.getOne(wrapper);
Integer processId = process.getProcessId();
ProcessPO processPO = new ProcessPO();
processPO.setProcessIds(processIds);
processPO.setProcessId(processId);
return ResponseResult.SUCCESS(processPO);
} }
} }

@ -0,0 +1,20 @@
package com.daqing.framework.domain.guarantee.po;
import lombok.Data;
import lombok.ToString;
import java.util.List;
/**
* @Author chen
* @DATE 2020/12/21 17:43
* @Version 1.0
*/
@Data
@ToString
public class ProcessPO {
private List<Integer> processIds;
private Integer processId;
}

@ -77,8 +77,6 @@ public enum HrmsCode implements ResultCode {
ROLE_NAME_EXIST(false,44002,"该角色名称已存在,请重新输入!"), ROLE_NAME_EXIST(false,44002,"该角色名称已存在,请重新输入!"),
EMP_POSITION_EXSIT(false, 22006, "该职位下已关联员工!"), EMP_POSITION_EXSIT(false, 22006, "该职位下已关联员工!"),
EMPTY_OPINION(false, 10000, "请填写审核意见!"),
EMP_SAME(false, 51001, "A,B角不能选同一个人!"), EMP_SAME(false, 51001, "A,B角不能选同一个人!"),
EMP_TO_BE_CHOOSE(false, 51002, "该用户已经被指派!"); EMP_TO_BE_CHOOSE(false, 51002, "该用户已经被指派!");

Loading…
Cancel
Save