小程序申请记录以及详情、已申请额度显示

master
river 4 years ago
parent b7fc81ae1c
commit 0f7af07b86
  1. 32
      dq-financial-crms/src/main/java/com/daqing/financial/crms/controller/CustomerAppletController.java
  2. 9
      dq-financial-crms/src/main/java/com/daqing/financial/crms/dao/CustomerAppletDao.java
  3. 5
      dq-financial-crms/src/main/java/com/daqing/financial/crms/model/request/CompanyAppletRequest.java
  4. 43
      dq-financial-crms/src/main/java/com/daqing/financial/crms/model/response/ApplicationRecordResponse.java
  5. 25
      dq-financial-crms/src/main/java/com/daqing/financial/crms/model/response/ApplyDetailResponse.java
  6. 9
      dq-financial-crms/src/main/java/com/daqing/financial/crms/service/CustomerAppletService.java
  7. 121
      dq-financial-crms/src/main/java/com/daqing/financial/crms/service/impl/CustomerAppletServiceImpl.java
  8. 37
      dq-financial-crms/src/main/resources/mapper/crms/CustomerAppletDao.xml
  9. 82
      dq-financial-guarantee/src/main/resources/bootstrap.properties
  10. 84
      dq-financial-hrms-auth/src/main/resources/bootstrap.properties
  11. 2
      dq-financial-hrms/src/main/resources/bootstrap.properties
  12. 50
      dq-framework-model/src/main/java/com/daqing/framework/domain/crms/ext/ApplicationRecordPO.java
  13. 33
      dq-framework-model/src/main/java/com/daqing/framework/domain/crms/ext/ApplyDetailPO.java
  14. 1
      dq-framework-model/src/main/java/com/daqing/framework/domain/crms/ext/CustomerCompanyDTO.java
  15. 5
      dq-framework-model/src/main/java/com/daqing/framework/domain/crms/response/CrmsCode.java
  16. 2
      dq-govern-gateway/src/main/resources/bootstrap.properties

@ -3,6 +3,8 @@ package com.daqing.financial.crms.controller;
import com.daqing.financial.crms.model.request.CompanyAppletRequest;
import com.daqing.financial.crms.model.request.CompanyCustomerRequest;
import com.daqing.financial.crms.model.request.PersonalAppletRequest;
import com.daqing.financial.crms.model.response.ApplicationRecordResponse;
import com.daqing.financial.crms.model.response.ApplyDetailResponse;
import com.daqing.financial.crms.service.CustomerAppletService;
import com.daqing.framework.domain.crms.ext.CustomerPersonalTOI;
import com.daqing.framework.model.response.ResponseResult;
@ -94,4 +96,34 @@ public class CustomerAppletController {
return result ? ResponseResult.SUCCESS() : ResponseResult.FAIL();
}
/**
* 申请记录
*/
@GetMapping("/get/record")
@ApiOperation(value = "获取申请记录", response = ApplicationRecordResponse.class)
public ResponseResult getApplicationRecord(Integer type, Integer status) {
return ResponseResult.SUCCESS(customerAppletService.getApplicationRecord(type, status));
}
/**
* 获取申请额度
*/
@GetMapping("/get/apply/mount")
@ApiOperation(value = "获取已申请额度")
public ResponseResult getApplyMount(){
return ResponseResult.SUCCESS(customerAppletService.getApplyMount());
}
/**
* 获取申请记录详情
*/
@GetMapping("/get/apply/detail")
@ApiOperation(value = "获取申请记录详情", response = ApplyDetailResponse.class)
public ResponseResult getApplyDetail(@RequestParam("id") Integer id) {
return ResponseResult.SUCCESS(customerAppletService.getApplyDetail(id));
}
}

@ -2,9 +2,13 @@ package com.daqing.financial.crms.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.daqing.framework.domain.crms.CustomerEntity;
import com.daqing.framework.domain.crms.ext.ApplicationRecordPO;
import com.daqing.framework.domain.crms.ext.ApplyDetailPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 客户小程序认证(录入)
*
@ -23,4 +27,9 @@ public interface CustomerAppletDao extends BaseMapper<CustomerEntity> {
Boolean updateCustomer(@Param("customer") CustomerEntity customerEntity);
Integer getCompanyId(Integer customerId);
List<ApplicationRecordPO> getApplicationRecord(@Param("companyId")Integer companyId, @Param("status")Integer status);
ApplyDetailPO getApplyDetail(Integer id);
}

@ -1,5 +1,6 @@
package com.daqing.financial.crms.model.request;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
@ -33,6 +34,7 @@ public class CompanyAppletRequest implements Serializable {
@ApiModelProperty(value = "联系电话")
private String phone;
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@ApiModelProperty(value = "注册时间")
private Date registerTime;
@ -89,4 +91,7 @@ public class CompanyAppletRequest implements Serializable {
@ApiModelProperty(value = "关联人id")
private List<Integer> relatedId;
@ApiModelProperty("企业客户表id,即查询关联人所需的id")
private Integer customerId;
}

@ -0,0 +1,43 @@
package com.daqing.financial.crms.model.response;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
import java.util.Date;
/**
* 申请记录响应类
*
* @auther River
* @date 2021/2/22 11:33
*/
@Data
@ToString
public class ApplicationRecordResponse implements Serializable {
@ApiModelProperty("id")
private Integer id;
@ApiModelProperty("客户类型")
private Integer type;
@ApiModelProperty("贷款用途")
private String amountWide;
@ApiModelProperty("申请额度")
private Double applyAmount;
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@ApiModelProperty("申请日期")
private Date applyDate;
@ApiModelProperty("申请期限")
private String applyTime;
@ApiModelProperty("状态,0:已完成,1:已受理,2:审核中,3:拒绝,4:驳回,5:撤销")
private Integer status;
}

@ -0,0 +1,25 @@
package com.daqing.financial.crms.model.response;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
/**
* 申请记录详情返回类
*
* @auther River
* @date 2021/2/24 10:12
*/
@Data
@ToString
public class ApplyDetailResponse implements Serializable {
@ApiModelProperty("状态")
private Integer status;
@ApiModelProperty("审核意见/拒绝、驳回意见")
private String remark;
}

@ -3,8 +3,11 @@ package com.daqing.financial.crms.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.daqing.financial.crms.model.request.CompanyAppletRequest;
import com.daqing.financial.crms.model.request.PersonalAppletRequest;
import com.daqing.financial.crms.model.response.ApplicationRecordResponse;
import com.daqing.financial.crms.model.response.ApplyDetailResponse;
import com.daqing.framework.domain.crms.CustomerEntity;
import java.util.List;
import java.util.Map;
/**
@ -26,4 +29,10 @@ public interface CustomerAppletService extends IService<CustomerEntity> {
Boolean updatePersonal(PersonalAppletRequest personalAppletRequest);
Boolean updateCompany(CompanyAppletRequest companyAppletRequest);
List<ApplicationRecordResponse> getApplicationRecord(Integer type, Integer status);
Map getApplyMount();
ApplyDetailResponse getApplyDetail(Integer id);
}

@ -8,32 +8,28 @@ import com.daqing.financial.crms.dao.CustomerDao;
import com.daqing.financial.crms.dao.PersonalCustomerDao;
import com.daqing.financial.crms.mapper.CrmsCustomerRelatedMapper;
import com.daqing.financial.crms.model.request.CompanyAppletRequest;
import com.daqing.financial.crms.model.request.CompanyCustomerRequest;
import com.daqing.financial.crms.model.request.PersonalAppletRequest;
import com.daqing.financial.crms.model.response.ApplicationRecordResponse;
import com.daqing.financial.crms.model.response.ApplyDetailResponse;
import com.daqing.financial.crms.service.CustomerAppletService;
import com.daqing.financial.crms.service.CustomerService;
import com.daqing.financial.crms.service.ICrmsCustomerRelatedService;
import com.daqing.framework.domain.crms.CompanyCustomerEntity;
import com.daqing.framework.domain.crms.CrmsCustomerRelated;
import com.daqing.framework.domain.crms.CustomerEntity;
import com.daqing.framework.domain.crms.PersonalCustomerEntity;
import com.daqing.framework.domain.crms.ext.ApplicationRecordPO;
import com.daqing.framework.domain.crms.ext.ApplyDetailPO;
import com.daqing.framework.domain.crms.ext.CrmsConstant;
import com.daqing.framework.domain.crms.ext.CustomerPersonalTOU;
import com.daqing.framework.domain.crms.response.CrmsCode;
import com.daqing.framework.exception.ExceptionCast;
import com.daqing.framework.model.response.CommonCode;
import com.daqing.framework.model.response.PromptSuccess;
import com.daqing.framework.model.response.ResponseResult;
import com.daqing.framework.util.RedisUtil;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.*;
/**
@ -208,6 +204,12 @@ public class CustomerAppletServiceImpl extends ServiceImpl<CustomerAppletDao, Cu
.eq("customer_id", (long) customerId));
BeanUtils.copyProperties(customer, companyAppletRequest);
BeanUtils.copyProperties(companyCustomerEntity, companyAppletRequest);
if (companyAppletRequest.getIsExistRelated() == 1) {
Integer companyId = this.getBaseMapper().getCompanyId(customerId);
if (companyId != null) {
companyAppletRequest.setCustomerId(companyId);
}
}
return companyAppletRequest;
}
return null;
@ -302,6 +304,109 @@ public class CustomerAppletServiceImpl extends ServiceImpl<CustomerAppletDao, Cu
return false;
}
/**
* 申请记录
*/
@Transactional
@Override
public List<ApplicationRecordResponse> getApplicationRecord(Integer type, Integer status) {
List<ApplicationRecordResponse> applicationRecordResponseList = new ArrayList<>();
// 获取客户的登录信息/暂时没有个人类型申请信息,所以个人类型返回空而企业类型返回所有
if (type == null || (type != 0 && type != 1) || type == 1) {
Integer customerId = this.getBaseMapper().getCustomerId(Integer.parseInt(this.getUserId()), 1);
if (customerId == null) {
ExceptionCast.cast(CrmsCode.CUSTOMER_APPLET_IS_NULL);
}
Integer companyId = this.getBaseMapper().getCompanyId(customerId);
// 查询申请记录信息
List<ApplicationRecordPO> applicationRecordPOList = this.getBaseMapper().getApplicationRecord(companyId, status);
for (ApplicationRecordPO applicationRecordPO : applicationRecordPOList) {
ApplicationRecordResponse applicationRecordResponse = new ApplicationRecordResponse();
// 状态为已受理、审核中、拒绝、驳回、已撤销情况
if (applicationRecordPO.getAuditStatus() != null && (applicationRecordPO.getAuditStatus() == 1
|| applicationRecordPO.getAuditStatus() == 2 || applicationRecordPO.getAuditStatus() == 3
|| applicationRecordPO.getAuditStatus() == 4 || applicationRecordPO.getAuditStatus() == 5)) {
BeanUtils.copyProperties(applicationRecordPO, applicationRecordResponse);
applicationRecordResponse.setStatus(applicationRecordPO.getAuditStatus());
applicationRecordResponse.setType(1);
}
// 状态为已完成的情况,如果同时存在已完成会覆盖以上情况
if (applicationRecordPO.getBusinessStatus() != null && applicationRecordPO.getBusinessStatus() == 2) {
BeanUtils.copyProperties(applicationRecordPO, applicationRecordResponse);
applicationRecordResponse.setStatus(0);
applicationRecordResponse.setType(1);
}
applicationRecordResponseList.add(applicationRecordResponse);
}
}
return applicationRecordResponseList;
}
/**
* 获取申请额度
*/
@Override
public Map getApplyMount() {
// 个人类型暂时没有
Integer customerId = this.getBaseMapper().getCustomerId(Integer.parseInt(this.getUserId()), 1);
if (customerId == null) {
ExceptionCast.cast(CrmsCode.CUSTOMER_APPLET_IS_NULL);
}
Integer companyId = this.getBaseMapper().getCompanyId(customerId);
// 查询申请记录信息
List<ApplicationRecordPO> applicationRecordPOList = this.getBaseMapper().getApplicationRecord(companyId, null);
Double company = 0.00;
for (ApplicationRecordPO applicationRecordPO : applicationRecordPOList) {
company += applicationRecordPO.getApplyAmount();
}
Map<String, Double> map = new HashMap<>();
map.put("company", company);
map.put("personal", 0.00);
return map;
}
/**
* 获取申请记录详情
*/
@Override
public ApplyDetailResponse getApplyDetail(Integer id) {
if (id == null) {
ExceptionCast.cast(CommonCode.INVALID_PARAM);
}
ApplyDetailResponse applyDetailResponse = new ApplyDetailResponse();
ApplyDetailPO applyDetail = this.getBaseMapper().getApplyDetail(id);
if (applyDetail == null) {
ExceptionCast.cast(CrmsCode.CUSTOMER_APPLET_STATUS_IS_NULL);
}
// 判断当前申请信息的状态
if (applyDetail.getBusinessStatus() != null && applyDetail.getBusinessStatus() == 2) {
// 已完成
applyDetailResponse.setStatus(0);
return applyDetailResponse;
}
if (applyDetail.getAuditStatus() == null) {
ExceptionCast.cast(CrmsCode.CUSTOMER_APPLET_STATUS_IS_NULL);
}
switch (applyDetail.getAuditStatus()) {
case 1:
applyDetailResponse.setStatus(applyDetail.getAuditStatus());
break;
case 2:
applyDetailResponse.setStatus(applyDetail.getAuditStatus());
break;
case 3: // 拒绝
applyDetailResponse.setStatus(applyDetail.getAuditStatus());
applyDetailResponse.setRemark(applyDetail.getRemark());
break;
case 4: // 驳回
applyDetailResponse.setStatus(applyDetail.getAuditStatus());
applyDetailResponse.setRemark(applyDetail.getRemark());
break;
default:
ExceptionCast.cast(CrmsCode.CUSTOMER_APPLET_STATUS_IS_NULL);
}
return applyDetailResponse;
}
/**
* 获取当前登录用户信息

@ -22,4 +22,41 @@
WHERE id = #{customer.id}
</update>
<!-- 获取企业类型客户的id -->
<select id="getCompanyId" parameterType="integer" resultType="integer">
SELECT id FROM crms_company_customer WHERE customer_id = #{customerId}
</select>
<!-- 申请记录 -->
<select id="getApplicationRecord" resultType="com.daqing.framework.domain.crms.ext.ApplicationRecordPO">
SELECT a.id AS id,a.create_time AS apply_date,a.amount_wide AS amount_wide,a.apply_time AS apply_time,l.status AS audit_status,
a.apply_amount AS apply_amount,b.business_status AS business_status
FROM dg_apply_amount_info AS a
LEFT JOIN dg_business_process_status AS b
ON a.id = b.business_id
LEFT JOIN dg_apply_amount_list AS l
ON l.business_id = a.id
WHERE a.company_id = #{companyId}
<if test="status == null or (status != 0 and status != 1 and status != 2 and status != 3 and status != 4 and status != 5)">
AND (b.business_status = 2 OR l.status IN (1,2,3,4,5))
</if>
<if test="status == 0">
AND b.business_status = 2
</if>
<if test="status == 1 or status == 2 or status == 3 or status == 4 or status == 5">
AND l.status = #{status}
</if>
GROUP BY a.id
</select>
<!-- 获取申请记录详情 -->
<select id="getApplyDetail" parameterType="integer" resultType="com.daqing.framework.domain.crms.ext.ApplyDetailPO">
SELECT l.status AS audit_status,l.apply_content AS remark,b.business_status AS business_status
FROM dg_apply_amount_list AS l
LEFT JOIN dg_business_process_status AS b
ON l.business_id = b.business_id
WHERE l.role_id = 58
AND l.business_id = #{id}
</select>
</mapper>

@ -1,21 +1,21 @@
#服务名称
#spring.application.name=dq-financial-guarantee
##配置中心地址
#spring.cloud.nacos.config.server-addr=127.0.0.1:8848
#spring.cloud.nacos.config.file-extension=yml
##redis配置
#spring.redis.host=127.0.0.1
#spring.redis.port=6379
#spring.redis.password=
#spring.redis.database=0
#spring.redis.timeout=30000
#spring.redis.jedis.pool.max-active=8
#spring.redis.jedis.pool.max-wait=-1
#spring.redis.jedis.pool.max-idle=8
#spring.redis.jedis.pool.min-idle=0
spring.application.name=dq-financial-guarantee
#配置中心地址
spring.cloud.nacos.config.server-addr=192.168.31.140:8848
spring.cloud.nacos.config.file-extension=yml
#redis配置
spring.redis.host=127.0.0.1
spring.redis.port=6379
spring.redis.password=
spring.redis.database=0
spring.redis.timeout=30000
spring.redis.jedis.pool.max-active=8
spring.redis.jedis.pool.max-wait=-1
spring.redis.jedis.pool.max-idle=8
spring.redis.jedis.pool.min-idle=0
#本地测试环境
#spring.cloud.nacos.config.namespace=1520c5ea-5f15-4ac1-9eb1-d25924825b99
spring.cloud.nacos.config.namespace=1520c5ea-5f15-4ac1-9eb1-d25924825b99
#线上测试环境
#spring.cloud.nacos.config.namespace=5698e60a-9d0b-433f-a69f-12b0a2d23128
@ -36,29 +36,29 @@ spring.servlet.multipart.max-file-size=10MB
#
##正式环境(prod)
##服务名称
spring.application.name=dq-financial-guarantee
#配置中心地址
spring.cloud.nacos.config.server-addr=120.78.127.12:8848
spring.cloud.nacos.config.namespace=502bfc93-6e2f-44aa-93ad-f074664c6826
spring.cloud.nacos.config.ext-config[0].data-id=dq-financial-guarantee.yml
spring.cloud.nacos.config.ext-config[0].group=prod
spring.cloud.nacos.config.ext-config[0].refresh=true
spring.cloud.nacos.config.ext-config[1].data-id=datasource.yml
spring.cloud.nacos.config.ext-config[1].group=prod
spring.cloud.nacos.config.ext-config[1].refresh=true
spring.cloud.nacos.config.ext-config[2].data-id=mybatis.yml
spring.cloud.nacos.config.ext-config[2].group=prod
spring.cloud.nacos.config.ext-config[2].refresh=true
spring.redis.host=127.0.0.1
spring.redis.port=6379
spring.redis.password=dq123456
spring.redis.database=0
spring.redis.timeout=30000
spring.redis.jedis.pool.max-active=8
spring.redis.jedis.pool.max-wait=-1
spring.redis.jedis.pool.max-idle=8
spring.redis.jedis.pool.min-idle=0
#spring.application.name=dq-financial-guarantee
##配置中心地址
#spring.cloud.nacos.config.server-addr=120.78.127.12:8848
#spring.cloud.nacos.config.namespace=502bfc93-6e2f-44aa-93ad-f074664c6826
#
#spring.cloud.nacos.config.ext-config[0].data-id=dq-financial-guarantee.yml
#spring.cloud.nacos.config.ext-config[0].group=prod
#spring.cloud.nacos.config.ext-config[0].refresh=true
#
#spring.cloud.nacos.config.ext-config[1].data-id=datasource.yml
#spring.cloud.nacos.config.ext-config[1].group=prod
#spring.cloud.nacos.config.ext-config[1].refresh=true
#
#spring.cloud.nacos.config.ext-config[2].data-id=mybatis.yml
#spring.cloud.nacos.config.ext-config[2].group=prod
#spring.cloud.nacos.config.ext-config[2].refresh=true
#
#spring.redis.host=127.0.0.1
#spring.redis.port=6379
#spring.redis.password=dq123456
#spring.redis.database=0
#spring.redis.timeout=30000
#spring.redis.jedis.pool.max-active=8
#spring.redis.jedis.pool.max-wait=-1
#spring.redis.jedis.pool.max-idle=8
#spring.redis.jedis.pool.min-idle=0

@ -1,21 +1,21 @@
#服务名称
#spring.application.name=dq-financial-hrms-auth
##配置中心地址
#spring.cloud.nacos.config.server-addr=127.0.0.1:8848
#spring.cloud.nacos.config.file-extension=yml
##redis配置
#spring.redis.host=127.0.0.1
#spring.redis.port=6379
#spring.redis.password=
#spring.redis.database=0
#spring.redis.timeout=30000
#spring.redis.jedis.pool.max-active=8
#spring.redis.jedis.pool.max-wait=-1
#spring.redis.jedis.pool.max-idle=8
#spring.redis.jedis.pool.min-idle=0
spring.application.name=dq-financial-hrms-auth
#配置中心地址
spring.cloud.nacos.config.server-addr=192.168.31.140:8848
spring.cloud.nacos.config.file-extension=yml
#redis配置
spring.redis.host=127.0.0.1
spring.redis.port=6379
spring.redis.password=
spring.redis.database=0
spring.redis.timeout=30000
spring.redis.jedis.pool.max-active=8
spring.redis.jedis.pool.max-wait=-1
spring.redis.jedis.pool.max-idle=8
spring.redis.jedis.pool.min-idle=0
#本地测试环境
#spring.cloud.nacos.config.namespace=1520c5ea-5f15-4ac1-9eb1-d25924825b99
spring.cloud.nacos.config.namespace=1520c5ea-5f15-4ac1-9eb1-d25924825b99
#线上测试环境
#spring.cloud.nacos.config.namespace=5698e60a-9d0b-433f-a69f-12b0a2d23128
@ -30,30 +30,30 @@ ribbon.ConnectTimeout: 30000
#正式环境(prod)
spring.application.name=dq-financial-hrms-auth
spring.cloud.nacos.config.server-addr=120.78.127.12:8848
spring.cloud.nacos.config.namespace=b590c830-7ada-44b7-968f-e8d0c81990c4
#spring.cloud.nacos.config.group=prod
spring.cloud.nacos.config.ext-config[0].data-id=datasource.yml
spring.cloud.nacos.config.ext-config[0].group=prod
spring.cloud.nacos.config.ext-config[0].refresh=true
spring.cloud.nacos.config.ext-config[1].data-id=mybatis.yml
spring.cloud.nacos.config.ext-config[1].group=prod
spring.cloud.nacos.config.ext-config[1].refresh=true
spring.cloud.nacos.config.ext-config[2].data-id=other.yml
spring.cloud.nacos.config.ext-config[2].group=prod
spring.cloud.nacos.config.ext-config[2].refresh=true
spring.redis.host=127.0.0.1
spring.redis.port=6379
spring.redis.password=dq123456
spring.redis.database=0
spring.redis.timeout=30000
spring.redis.jedis.pool.max-active=8
spring.redis.jedis.pool.max-wait=-1
spring.redis.jedis.pool.max-idle=8
spring.redis.jedis.pool.min-idle=0
#spring.application.name=dq-financial-hrms-auth
#
#spring.cloud.nacos.config.server-addr=120.78.127.12:8848
#spring.cloud.nacos.config.namespace=b590c830-7ada-44b7-968f-e8d0c81990c4
##spring.cloud.nacos.config.group=prod
#
#spring.cloud.nacos.config.ext-config[0].data-id=datasource.yml
#spring.cloud.nacos.config.ext-config[0].group=prod
#spring.cloud.nacos.config.ext-config[0].refresh=true
#
#spring.cloud.nacos.config.ext-config[1].data-id=mybatis.yml
#spring.cloud.nacos.config.ext-config[1].group=prod
#spring.cloud.nacos.config.ext-config[1].refresh=true
#
#spring.cloud.nacos.config.ext-config[2].data-id=other.yml
#spring.cloud.nacos.config.ext-config[2].group=prod
#spring.cloud.nacos.config.ext-config[2].refresh=true
#
#spring.redis.host=127.0.0.1
#spring.redis.port=6379
#spring.redis.password=dq123456
#spring.redis.database=0
#spring.redis.timeout=30000
#spring.redis.jedis.pool.max-active=8
#spring.redis.jedis.pool.max-wait=-1
#spring.redis.jedis.pool.max-idle=8
#spring.redis.jedis.pool.min-idle=0

@ -1,7 +1,7 @@
#服务名称
spring.application.name=dq-financial-hrms
#配置中心地址
spring.cloud.nacos.config.server-addr=127.0.0.1:8848
spring.cloud.nacos.config.server-addr=192.168.31.140:8848
spring.cloud.nacos.config.file-extension=yml
#redis配置
spring.redis.host=127.0.0.1

@ -0,0 +1,50 @@
package com.daqing.framework.domain.crms.ext;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
import java.util.Date;
/**
* 申请记录接收类
*
* @auther River
* @date 2021/2/22 14:11
*/
@Data
@ToString
public class ApplicationRecordPO implements Serializable {
private Integer id;
/**
* 申请日期
*/
private Date applyDate;
/**
* 申请额度
*/
private Double applyAmount;
/**
* 贷款用途
*/
private String amountWide;
/**
* 申请期限
*/
private String applyTime;
/**
* 业务状态
*/
private Integer businessStatus;
/**
* 审批状态(是否受理)
*/
private Integer auditStatus;
}

@ -0,0 +1,33 @@
package com.daqing.framework.domain.crms.ext;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
/**
* 获取申请记录详情持久层接收类
*
* @auther River
* @date 2021/2/24 10:25
*/
@Data
@ToString
public class ApplyDetailPO implements Serializable {
/**
* 审核状态
*/
private Integer auditStatus;
/**
* 业务状态
*/
private Integer businessStatus;
/**
* 审核意见
*/
private String remark;
}

@ -132,5 +132,4 @@ public class CustomerCompanyDTO implements Serializable {
@ApiModelProperty(value = "是否存在关联人 0->否;1->是")
private Integer isExistRelated;
}

@ -21,8 +21,9 @@ public enum CrmsCode implements ResultCode {
NOT_NULL(false,20004,"上传的文件不能为空"),
CUSTOMER_IS_NULL(false,20005,"导入数据失败,当前员工不存在!"),
CUSTOMER_NAME_REPETITION(false, 20006, "当前客户名称已存在!"),
CUSTOMER_APPLET_IS_NULL(false, 20007,"未查询到你的信息,请先录入(认证)你的信息!"),
CUSTOMER_APPLET_EXIST(false, 20008,"你已认证自己的信息,无需再次认证!");
CUSTOMER_APPLET_IS_NULL(false, 20007,"未查询到你的认证信息,请先认证你的信息!"),
CUSTOMER_APPLET_EXIST(false, 20008,"你已认证自己的信息,无需再次认证!"),
CUSTOMER_APPLET_STATUS_IS_NULL(false, 20009, "当前申请贷款信息状态异常,请刷新重试!");
/**
* 操作是否成功

@ -1,7 +1,7 @@
#服务名称
spring.application.name=dq-govern-gateway
#配置中心地址
spring.cloud.nacos.config.server-addr=127.0.0.1:8848
spring.cloud.nacos.config.server-addr=192.168.31.140:8848
spring.cloud.nacos.config.file-extension=yml
#redis配置
spring.redis.host=127.0.0.1

Loading…
Cancel
Save