审核进程

master
chen 4 years ago
parent 1cae825d44
commit 29d7497cf1
  1. 10
      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/mapper/DgAuditProcessMapper.java
  3. 2
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/IDgAuditProcessService.java
  4. 5
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgAuditProcessServiceImpl.java
  5. 4
      dq-financial-guarantee/src/main/resources/mapper/guarantee/DgAuditProcessMapper.xml

@ -43,4 +43,14 @@ public class DgAuditProcessController {
return ResponseResult.SUCCESS(processList);
}
@ApiOperation(value = "审核流程进程")
@GetMapping("/getProcessId")
public ResponseResult getProcessId(
@ApiParam(name = "businessId", value = "业务id", required = true)
@RequestParam String businessId){
Integer processId = auditProcessService.getProcessId(businessId);
return ResponseResult.SUCCESS(processId);
}
}

@ -20,4 +20,5 @@ public interface DgAuditProcessMapper extends BaseMapper<DgAuditProcess> {
List<DgAuditProcess> selectAuditProcessList(@Param("businessId") String businessId,@Param("processId") String processId);
Integer selectProcessId(String businessId);
}

@ -16,4 +16,6 @@ import java.util.List;
public interface IDgAuditProcessService extends IService<DgAuditProcess> {
List<DgAuditProcess> queryProcessList(String businessId,String processId);
Integer getProcessId(String businessId);
}

@ -24,4 +24,9 @@ public class DgAuditProcessServiceImpl extends ServiceImpl<DgAuditProcessMapper,
List<DgAuditProcess> auditProcessList = baseMapper.selectAuditProcessList(businessId,processId);
return auditProcessList;
}
@Override
public Integer getProcessId(String businessId) {
return baseMapper.selectProcessId(businessId);
}
}

@ -23,4 +23,8 @@
</if>
</select>
<select id="selectProcessId" resultType="java.lang.Integer">
SELECT max(process_id) FROM dg_audit_process WHERE business_id = #{businessId}
</select>
</mapper>

Loading…
Cancel
Save