
11 changed files with 345 additions and 0 deletions
@ -0,0 +1,84 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loancaseprogress; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.yxt.common.core.domain.BaseEntity; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/8/16 14:34 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "案件进程管理", description = "案件进程管理") |
||||
|
@TableName("loan_case_progress") |
||||
|
public class LoanCaseProgress extends BaseEntity { |
||||
|
@ApiModelProperty("创建部门") |
||||
|
private String createDept; |
||||
|
@ApiModelProperty("创建部门sid") |
||||
|
private String createDeptSid; |
||||
|
@ApiModelProperty("创建人") |
||||
|
private String createByName; |
||||
|
@ApiModelProperty("客户名称") |
||||
|
private String customerName; |
||||
|
@ApiModelProperty("客户sid") |
||||
|
private String customerSid; |
||||
|
@ApiModelProperty("贷款人sid") |
||||
|
private String loanSid; |
||||
|
@ApiModelProperty("贷款人") |
||||
|
private String loanName; |
||||
|
@ApiModelProperty("贷款人证件号码") |
||||
|
private String idNumber; |
||||
|
@ApiModelProperty("贷款合同编号") |
||||
|
private String loanContractNo; |
||||
|
@ApiModelProperty("资方") |
||||
|
private String bankName; |
||||
|
@ApiModelProperty("资方合同编号") |
||||
|
private String bankContractNo; |
||||
|
@ApiModelProperty("公司负责人") |
||||
|
private String companyHead; |
||||
|
@ApiModelProperty("公司负责人sid") |
||||
|
private String companyHeadSid; |
||||
|
@ApiModelProperty("法务部门负责人") |
||||
|
private String legalHead; |
||||
|
@ApiModelProperty("法务部门负责人sid") |
||||
|
private String legalHeadSid; |
||||
|
@ApiModelProperty("案件编号") |
||||
|
private String caseNo; |
||||
|
@ApiModelProperty("案件类型Key") |
||||
|
private String caseTypeKey; |
||||
|
@ApiModelProperty("案件类型") |
||||
|
private String caseType; |
||||
|
@ApiModelProperty("使用组织sid") |
||||
|
private String useOrgSid; |
||||
|
@ApiModelProperty("使用组织名称") |
||||
|
private String useOrgName; |
||||
|
@ApiModelProperty("使用组织全路径") |
||||
|
private String orgSidPath; |
||||
|
@ApiModelProperty("欠款合计") |
||||
|
private BigDecimal amountAll; |
||||
|
@ApiModelProperty("是否全额诉讼") |
||||
|
private String full; |
||||
|
@ApiModelProperty("起诉金额合计") |
||||
|
private BigDecimal sueMoney; |
||||
|
@ApiModelProperty("部分诉讼说明") |
||||
|
private String sueShows; |
||||
|
@ApiModelProperty("起诉原因") |
||||
|
private String sueReason; |
||||
|
@ApiModelProperty("诉讼时效") |
||||
|
private String sueAging; |
||||
|
@ApiModelProperty("案件当前阶段") |
||||
|
private String caseStage; |
||||
|
@ApiModelProperty("案件当前阶段编号") |
||||
|
private String caseStageNo; |
||||
|
@ApiModelProperty("案件当前环节") |
||||
|
private String caseTache; |
||||
|
@ApiModelProperty("案件当前环节编号") |
||||
|
private String caseTacheNo; |
||||
|
@ApiModelProperty("业务来源sid") |
||||
|
private String busSid; |
||||
|
} |
@ -0,0 +1,15 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loancaseprogress; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/8/21 9:13 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class LoanCaseProgressDetailsVo implements Vo { |
||||
|
|
||||
|
} |
@ -0,0 +1,17 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loancaseprogress; |
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/8/21 9:12 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class LoanCaseProgressDto implements Dto { |
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loancaseprogress; |
||||
|
|
||||
|
import io.swagger.annotations.Api; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @description: 案件进程管理 |
||||
|
* @author: fan |
||||
|
* @date: 2023/7/6 |
||||
|
**/ |
||||
|
@Api(tags = "案件进程管理") |
||||
|
@FeignClient( |
||||
|
contextId = "anrui-riskcenter-LoanCaseProgress", |
||||
|
name = "anrui-riskcenter", |
||||
|
path = "v1/LoanCaseProgress", |
||||
|
fallback = LoanCaseProgressFeignFallback.class) |
||||
|
public interface LoanCaseProgressFeign { |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,13 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loancaseprogress; |
||||
|
|
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/8/16 14:36 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class LoanCaseProgressFeignFallback implements LoanCaseProgressFeign { |
||||
|
|
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loancaseprogress; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/8/16 15:05 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class LoanCaseProgressQuery implements Query { |
||||
|
|
||||
|
|
||||
|
@ApiModelProperty("组织全路径") |
||||
|
private String orgPath; |
||||
|
@ApiModelProperty("菜单sid") |
||||
|
private String menuSid; |
||||
|
@ApiModelProperty("菜单url") |
||||
|
private String menuUrl; |
||||
|
@ApiModelProperty("用户sid") |
||||
|
private String userSid; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,15 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loancaseprogress; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/8/16 15:04 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class LoanCaseProgressVo implements Vo { |
||||
|
|
||||
|
} |
@ -0,0 +1,24 @@ |
|||||
|
package com.yxt.anrui.riskcenter.biz.loancaseprogress; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.toolkit.Constants; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseprogress.LoanCaseProgress; |
||||
|
import com.yxt.anrui.riskcenter.api.loanparameter.LoanParameter; |
||||
|
import com.yxt.anrui.riskcenter.api.loanparameter.LoanParameterVo; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.apache.ibatis.annotations.Select; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: fan |
||||
|
* @date: 2023/8/21 |
||||
|
**/ |
||||
|
@Mapper |
||||
|
public interface LoanCaseProgressMapper extends BaseMapper<LoanCaseProgress> { |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,5 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.yxt.anrui.riskcenter.biz.loancaseprogress.LoanCaseProgressMapper"> |
||||
|
|
||||
|
</mapper> |
@ -0,0 +1,28 @@ |
|||||
|
package com.yxt.anrui.riskcenter.biz.loancaseprogress; |
||||
|
|
||||
|
|
||||
|
import com.yxt.anrui.riskcenter.api.loancaseprogress.LoanCaseProgressFeign; |
||||
|
import com.yxt.anrui.riskcenter.api.loanparameter.*; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: fan |
||||
|
* @date: 2023/8/21 |
||||
|
**/ |
||||
|
@Api(tags = "案件进程管理") |
||||
|
@RestController |
||||
|
@RequestMapping("v1/LoanCaseProgress") |
||||
|
public class LoanCaseProgressRest implements LoanCaseProgressFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private LoanCaseProgressService loanCaseProgressService; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,97 @@ |
|||||
|
package com.yxt.anrui.riskcenter.biz.loancaseprogress; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationFeign; |
||||
|
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationVo; |
||||
|
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrgFeign; |
||||
|
import com.yxt.anrui.portal.api.sysuser.PrivilegeQuery; |
||||
|
import com.yxt.anrui.portal.api.sysuser.SysUserFeign; |
||||
|
import com.yxt.anrui.riskcenter.api.loancaseprogress.LoanCaseProgress; |
||||
|
import com.yxt.anrui.riskcenter.api.loanparameter.*; |
||||
|
import com.yxt.common.base.service.MybatisBaseService; |
||||
|
import com.yxt.common.base.utils.PagerUtil; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: fan |
||||
|
* @date: 2023/8/21 |
||||
|
**/ |
||||
|
@Service |
||||
|
public class LoanCaseProgressService extends MybatisBaseService<LoanCaseProgressMapper, LoanCaseProgress> { |
||||
|
|
||||
|
@Autowired |
||||
|
private SysUserFeign sysUserFeign; |
||||
|
@Autowired |
||||
|
private SysStaffOrgFeign sysStaffOrgFeign; |
||||
|
@Autowired |
||||
|
private SysOrganizationFeign sysOrganizationFeign; |
||||
|
|
||||
|
// public PagerVo<LoanParameterVo> listPage(PagerQuery<LoanParameterQuery> pq) {
|
||||
|
// IPage<LoanParameter> page = PagerUtil.queryToPage(pq);
|
||||
|
// LoanParameterQuery pagerQuery = pq.getParams();
|
||||
|
// QueryWrapper<LoanParameter> qw = new QueryWrapper<>();
|
||||
|
// //=======================
|
||||
|
// PrivilegeQuery privilegeQuery = new PrivilegeQuery();
|
||||
|
// privilegeQuery.setOrgPath(pagerQuery.getOrgPath());
|
||||
|
// privilegeQuery.setMenuSid(pagerQuery.getMenuSid());
|
||||
|
// privilegeQuery.setMenuUrl(pagerQuery.getMenuUrl());
|
||||
|
// privilegeQuery.setUserSid(pagerQuery.getUserSid());
|
||||
|
// ResultBean<String> defaultIdReltBean = sysUserFeign.selectPrivilegeLevel(privilegeQuery);
|
||||
|
// if (StringUtils.isNotBlank(defaultIdReltBean.getData())) {
|
||||
|
// //数据权限ID(1集团、2事业部、3分公司、4部门、5个人)
|
||||
|
// String orgSidPath = pagerQuery.getOrgPath();
|
||||
|
// orgSidPath = orgSidPath + "/";
|
||||
|
// int i1 = orgSidPath.indexOf("/");
|
||||
|
// int i2 = orgSidPath.indexOf("/", i1 + 1);
|
||||
|
// int i3 = orgSidPath.indexOf("/", i2 + 1);
|
||||
|
// int i4 = orgSidPath.indexOf("/", i3 + 1);
|
||||
|
// String orgLevelKey = defaultIdReltBean.getData();
|
||||
|
// if ("1".equals(orgLevelKey)) {
|
||||
|
// orgSidPath = orgSidPath.substring(0, i1);
|
||||
|
// qw.like("orgSidPath", orgSidPath);
|
||||
|
// } else if ("2".equals(orgLevelKey)) {
|
||||
|
// orgSidPath = orgSidPath.substring(0, i2);
|
||||
|
// qw.like("orgSidPath", orgSidPath);
|
||||
|
// } else if ("3".equals(orgLevelKey)) {
|
||||
|
// orgSidPath = orgSidPath.substring(0, i3);
|
||||
|
// qw.like("orgSidPath", orgSidPath);
|
||||
|
// } else if ("4".equals(orgLevelKey)) {
|
||||
|
// orgSidPath = orgSidPath.substring(0, i4);
|
||||
|
// qw.like("orgSidPath", orgSidPath);
|
||||
|
// } else if ("5".equals(orgLevelKey)) {
|
||||
|
// qw.eq("createBySid", pagerQuery.getUserSid());
|
||||
|
// } else {
|
||||
|
// PagerVo<LoanParameterVo> p = new PagerVo<>();
|
||||
|
// return p;
|
||||
|
// }
|
||||
|
// } else {
|
||||
|
// PagerVo<LoanParameterVo> p = new PagerVo<>();
|
||||
|
// return p;
|
||||
|
// }
|
||||
|
// //=======================
|
||||
|
// //参数编码
|
||||
|
// if (StringUtils.isNotBlank(pagerQuery.getParameterNo())) {
|
||||
|
// qw.like("parameterNo", pagerQuery.getParameterNo());
|
||||
|
// }
|
||||
|
// //参数名称
|
||||
|
// if (StringUtils.isNotBlank(pagerQuery.getParameterName())) {
|
||||
|
// qw.like("parameterName", pagerQuery.getParameterName());
|
||||
|
// }
|
||||
|
// qw.eq("isDelete", 0);
|
||||
|
// qw.orderByDesc("createTime");
|
||||
|
// IPage<LoanParameterVo> pagging = baseMapper.listPage(page, qw);
|
||||
|
// PagerVo<LoanParameterVo> p = PagerUtil.pageToVo(pagging, null);
|
||||
|
// return p;
|
||||
|
// }
|
||||
|
|
||||
|
|
||||
|
} |
Loading…
Reference in new issue