Browse Source

初始化

xda 3 years ago
parent
commit
e8eb319bfd
100 changed files with 6465 additions and 0 deletions
  1. 11 0
      .gitignore
  2. 187 0
      pom.xml
  3. 17 0
      src/main/java/com/winhc/returnmoney/ReturnMoneyApplication.java
  4. 28 0
      src/main/java/com/winhc/returnmoney/aspect/Authority.java
  5. 97 0
      src/main/java/com/winhc/returnmoney/aspect/AuthorityAspect.java
  6. 89 0
      src/main/java/com/winhc/returnmoney/aspect/LogAspect.java
  7. 45 0
      src/main/java/com/winhc/returnmoney/cloud/CrmService.java
  8. 157 0
      src/main/java/com/winhc/returnmoney/cloud/DataMiddlewareService.java
  9. 38 0
      src/main/java/com/winhc/returnmoney/cloud/InCaseService.java
  10. 28 0
      src/main/java/com/winhc/returnmoney/cloud/LawyerService.java
  11. 20 0
      src/main/java/com/winhc/returnmoney/cloud/SensorService.java
  12. 23 0
      src/main/java/com/winhc/returnmoney/cloud/WinCoinService.java
  13. 44 0
      src/main/java/com/winhc/returnmoney/cloud/bean/AddDiagnoseRecordDTO.java
  14. 25 0
      src/main/java/com/winhc/returnmoney/cloud/bean/AssociationEntityInfo.java
  15. 117 0
      src/main/java/com/winhc/returnmoney/cloud/bean/Company.java
  16. 26 0
      src/main/java/com/winhc/returnmoney/cloud/bean/CompanyBasicVO.java
  17. 25 0
      src/main/java/com/winhc/returnmoney/cloud/bean/CompanyRiskNumVO.java
  18. 21 0
      src/main/java/com/winhc/returnmoney/cloud/bean/CompleteActivityRequest.java
  19. 27 0
      src/main/java/com/winhc/returnmoney/cloud/bean/CreditPunishmentLabelListVO.java
  20. 45 0
      src/main/java/com/winhc/returnmoney/cloud/bean/CreditorsRightMonitorAddDTO.java
  21. 53 0
      src/main/java/com/winhc/returnmoney/cloud/bean/CreditorsRightMonitorCRMVO.java
  22. 29 0
      src/main/java/com/winhc/returnmoney/cloud/bean/CreditorsRightMonitorCancelDTO.java
  23. 56 0
      src/main/java/com/winhc/returnmoney/cloud/bean/DiagnosisDebtorDTO.java
  24. 195 0
      src/main/java/com/winhc/returnmoney/cloud/bean/DiagnosisRecord.java
  25. 53 0
      src/main/java/com/winhc/returnmoney/cloud/bean/DiagnosisRecordVO.java
  26. 92 0
      src/main/java/com/winhc/returnmoney/cloud/bean/ESCompany.java
  27. 39 0
      src/main/java/com/winhc/returnmoney/cloud/bean/ESDynamic.java
  28. 26 0
      src/main/java/com/winhc/returnmoney/cloud/bean/FinanceDynamicNumVO.java
  29. 77 0
      src/main/java/com/winhc/returnmoney/cloud/bean/FinanceDynamicVO.java
  30. 24 0
      src/main/java/com/winhc/returnmoney/cloud/bean/GetCompanyRiskNumDTO.java
  31. 24 0
      src/main/java/com/winhc/returnmoney/cloud/bean/GetCreditPunishmentLabelDTO.java
  32. 31 0
      src/main/java/com/winhc/returnmoney/cloud/bean/GetFinanceDynamicNumDTO.java
  33. 24 0
      src/main/java/com/winhc/returnmoney/cloud/bean/GetV8CompanyListDTO.java
  34. 36 0
      src/main/java/com/winhc/returnmoney/cloud/bean/MonitorCompDTO.java
  35. 38 0
      src/main/java/com/winhc/returnmoney/cloud/bean/QueryCompanyDynamicDTO.java
  36. 58 0
      src/main/java/com/winhc/returnmoney/cloud/bean/QueryESFinanceDynamicDTO.java
  37. 38 0
      src/main/java/com/winhc/returnmoney/cloud/bean/QueryV8DynamicDTO.java
  38. 112 0
      src/main/java/com/winhc/returnmoney/cloud/bean/ResponseVO.java
  39. 31 0
      src/main/java/com/winhc/returnmoney/cloud/bean/SensorDTO.java
  40. 22 0
      src/main/java/com/winhc/returnmoney/cloud/bean/ServiceCountDTO.java
  41. 25 0
      src/main/java/com/winhc/returnmoney/cloud/bean/ServiceCountVO.java
  42. 49 0
      src/main/java/com/winhc/returnmoney/cloud/bean/V8DynamicVO.java
  43. 107 0
      src/main/java/com/winhc/returnmoney/common/BaseController.java
  44. 32 0
      src/main/java/com/winhc/returnmoney/common/Constant.java
  45. 132 0
      src/main/java/com/winhc/returnmoney/config/BeanConfig.java
  46. 67 0
      src/main/java/com/winhc/returnmoney/config/CharlesRequestInterceptor.java
  47. 112 0
      src/main/java/com/winhc/returnmoney/controller/AccountBillController.java
  48. 99 0
      src/main/java/com/winhc/returnmoney/controller/AccountBillDiagnosisController.java
  49. 78 0
      src/main/java/com/winhc/returnmoney/controller/AccountBillMoneyRecordController.java
  50. 60 0
      src/main/java/com/winhc/returnmoney/controller/AccountBillOperLogController.java
  51. 60 0
      src/main/java/com/winhc/returnmoney/controller/AccountBillPayerController.java
  52. 65 0
      src/main/java/com/winhc/returnmoney/controller/AccountBookController.java
  53. 99 0
      src/main/java/com/winhc/returnmoney/controller/AccountBookOpenController.java
  54. 116 0
      src/main/java/com/winhc/returnmoney/controller/AccountRemindHistoryController.java
  55. 42 0
      src/main/java/com/winhc/returnmoney/controller/AccountRemindSettingController.java
  56. 134 0
      src/main/java/com/winhc/returnmoney/entity/AccountBill.java
  57. 68 0
      src/main/java/com/winhc/returnmoney/entity/AccountBillDiagnosis.java
  58. 86 0
      src/main/java/com/winhc/returnmoney/entity/AccountBillMoneyRecord.java
  59. 60 0
      src/main/java/com/winhc/returnmoney/entity/AccountBillOperLog.java
  60. 56 0
      src/main/java/com/winhc/returnmoney/entity/AccountBillPayer.java
  61. 60 0
      src/main/java/com/winhc/returnmoney/entity/AccountBillReceiptRecord.java
  62. 65 0
      src/main/java/com/winhc/returnmoney/entity/AccountBook.java
  63. 59 0
      src/main/java/com/winhc/returnmoney/entity/AccountRemindDefinition.java
  64. 107 0
      src/main/java/com/winhc/returnmoney/entity/AccountRemindHistory.java
  65. 53 0
      src/main/java/com/winhc/returnmoney/entity/AccountRemindSetting.java
  66. 38 0
      src/main/java/com/winhc/returnmoney/entity/BetaTestApply.java
  67. 76 0
      src/main/java/com/winhc/returnmoney/entity/Message.java
  68. 125 0
      src/main/java/com/winhc/returnmoney/entity/UserExt.java
  69. 89 0
      src/main/java/com/winhc/returnmoney/entity/UserInfo.java
  70. 65 0
      src/main/java/com/winhc/returnmoney/enums/AppPackageEnum.java
  71. 10 0
      src/main/java/com/winhc/returnmoney/enums/AuthorityEnum.java
  72. 552 0
      src/main/java/com/winhc/returnmoney/enums/Dict.java
  73. 131 0
      src/main/java/com/winhc/returnmoney/enums/DynamicEnum.java
  74. 72 0
      src/main/java/com/winhc/returnmoney/enums/FinanceDimensionEnum.java
  75. 45 0
      src/main/java/com/winhc/returnmoney/enums/FinanceDynamicTypeEnum.java
  76. 140 0
      src/main/java/com/winhc/returnmoney/enums/RadarInfoTypeEnum.java
  77. 52 0
      src/main/java/com/winhc/returnmoney/enums/ValueAddedServiceEnum.java
  78. 97 0
      src/main/java/com/winhc/returnmoney/exception/ExceptionHandle.java
  79. 17 0
      src/main/java/com/winhc/returnmoney/model/bo/AspectRequestBO.java
  80. 94 0
      src/main/java/com/winhc/returnmoney/model/bo/DynamicDataBO.java
  81. 40 0
      src/main/java/com/winhc/returnmoney/model/bo/DynamicItemBO.java
  82. 100 0
      src/main/java/com/winhc/returnmoney/model/dto/AccountBillDTO.java
  83. 54 0
      src/main/java/com/winhc/returnmoney/model/dto/AccountBillDiagnosisDTO.java
  84. 57 0
      src/main/java/com/winhc/returnmoney/model/dto/AccountBillMoneyRecordDTO.java
  85. 50 0
      src/main/java/com/winhc/returnmoney/model/dto/AccountBillOperLogDTO.java
  86. 44 0
      src/main/java/com/winhc/returnmoney/model/dto/AccountBillPayerDTO.java
  87. 53 0
      src/main/java/com/winhc/returnmoney/model/dto/AccountBookDTO.java
  88. 48 0
      src/main/java/com/winhc/returnmoney/model/dto/AccountRemindDefinitionDTO.java
  89. 44 0
      src/main/java/com/winhc/returnmoney/model/dto/AccountRemindHistoryDTO.java
  90. 33 0
      src/main/java/com/winhc/returnmoney/model/dto/AccountRemindSettingDTO.java
  91. 72 0
      src/main/java/com/winhc/returnmoney/model/dto/AddAccountBillDTO.java
  92. 25 0
      src/main/java/com/winhc/returnmoney/model/dto/AddAccountBillReceiptDTO.java
  93. 23 0
      src/main/java/com/winhc/returnmoney/model/dto/ApplyCustomerServiceDTO.java
  94. 25 0
      src/main/java/com/winhc/returnmoney/model/dto/BatchImportAccountBillDTO.java
  95. 25 0
      src/main/java/com/winhc/returnmoney/model/dto/BatchPollAccountBillDTO.java
  96. 48 0
      src/main/java/com/winhc/returnmoney/model/dto/GetAccountBillListDTO.java
  97. 21 0
      src/main/java/com/winhc/returnmoney/model/dto/PageDTO.java
  98. 64 0
      src/main/java/com/winhc/returnmoney/model/dto/RadarRtaDTO.java
  99. 17 0
      src/main/java/com/winhc/returnmoney/model/dto/RefreshGradeDTO.java
  100. 0 0
      src/main/java/com/winhc/returnmoney/model/dto/SearchKeywordDTO.java

+ 11 - 0
.gitignore

@@ -12,3 +12,14 @@
 # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
 hs_err_pid*
 
+### IntelliJ IDEA ###
+.idea
+*.iws
+*.iml
+*.ipr
+
+HELP.md
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**
+!**/src/test/**

+ 187 - 0
pom.xml

@@ -0,0 +1,187 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.springframework.boot</groupId>
+        <artifactId>spring-boot-starter-parent</artifactId>
+        <version>2.1.16.RELEASE</version>
+        <relativePath/> <!-- lookup parent from repository -->
+    </parent>
+    <groupId>com.winhc</groupId>
+    <artifactId>return-money</artifactId>
+    <version>0.0.1-SNAPSHOT</version>
+    <name>return-money-service</name>
+    <description>return-money-service</description>
+
+    <properties>
+        <java.version>1.8</java.version>
+        <spring-cloud.version>Greenwich.SR6</spring-cloud.version>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>com.winhc</groupId>
+            <artifactId>winhc-common</artifactId>
+            <version>1.0.7</version>
+            <exclusions>
+                <exclusion>
+                    <groupId>org.springframework.boot</groupId>
+                    <artifactId>spring-boot-starter-logging</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-log4j2</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-aop</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-web</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-data-redis</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-commons</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-configuration-processor</artifactId>
+            <optional>true</optional>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-openfeign</artifactId>
+        </dependency>
+
+        <!-- https://mvnrepository.com/artifact/com.baomidou/mybatis-plus-boot-starter -->
+        <dependency>
+            <groupId>com.baomidou</groupId>
+            <artifactId>mybatis-plus-boot-starter</artifactId>
+            <version>3.3.2</version>
+        </dependency>
+        <dependency>
+            <groupId>com.baomidou</groupId>
+            <artifactId>mybatis-plus-generator</artifactId>
+            <version>3.3.2</version>
+        </dependency>
+        <!--代码生成器依赖-->
+        <dependency>
+            <groupId>org.freemarker</groupId>
+            <artifactId>freemarker</artifactId>
+            <version>2.3.23</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.projectlombok</groupId>
+            <artifactId>lombok</artifactId>
+            <optional>true</optional>
+        </dependency>
+        <dependency>
+            <groupId>mysql</groupId>
+            <artifactId>mysql-connector-java</artifactId>
+            <version>8.0.23</version>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.commons</groupId>
+            <artifactId>commons-pool2</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.plugin</groupId>
+            <artifactId>spring-plugin-core</artifactId>
+            <version>2.0.0.RELEASE</version>
+        </dependency>
+        <!--apollo相关配置-->
+        <dependency>
+            <groupId>com.ctrip.framework.apollo</groupId>
+            <artifactId>apollo-client</artifactId>
+            <version>1.0.0</version>
+        </dependency>
+        <dependency>
+            <groupId>com.module.login</groupId>
+            <artifactId>user-session</artifactId>
+            <version>0.0.1-SNAPSHOT</version>
+        </dependency>
+
+
+        <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-collections4 -->
+        <dependency>
+            <groupId>org.apache.commons</groupId>
+            <artifactId>commons-collections4</artifactId>
+            <version>4.4</version>
+        </dependency>
+
+        <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
+        <dependency>
+            <groupId>org.apache.commons</groupId>
+            <artifactId>commons-lang3</artifactId>
+            <version>3.11</version>
+        </dependency>
+
+        <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
+        <dependency>
+            <groupId>com.alibaba</groupId>
+            <artifactId>fastjson</artifactId>
+            <version>1.2.75</version>
+        </dependency>
+        <dependency>
+            <groupId>com.xuxueli</groupId>
+            <artifactId>xxl-job-core</artifactId>
+            <version>2.3.0</version>
+        </dependency>
+
+        <!-- https://mvnrepository.com/artifact/cn.hutool/hutool-core -->
+        <dependency>
+            <groupId>cn.hutool</groupId>
+            <artifactId>hutool-core</artifactId>
+            <version>5.7.7</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.aliyun.openservices</groupId>
+            <artifactId>ons-client</artifactId>
+            <version>1.8.4.Final</version>
+        </dependency>
+
+    </dependencies>
+
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.springframework.cloud</groupId>
+                <artifactId>spring-cloud-dependencies</artifactId>
+                <version>${spring-cloud.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
+    <build>
+        <finalName>winhc-receivables-service</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

+ 17 - 0
src/main/java/com/winhc/returnmoney/ReturnMoneyApplication.java

@@ -0,0 +1,17 @@
+package com.winhc.returnmoney;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
+import org.springframework.cloud.openfeign.EnableFeignClients;
+
+@EnableDiscoveryClient
+@EnableFeignClients
+@SpringBootApplication
+public class ReturnMoneyApplication {
+
+    public static void main(String[] args) {
+        SpringApplication.run(ReturnMoneyApplication.class, args);
+    }
+
+}

+ 28 - 0
src/main/java/com/winhc/returnmoney/aspect/Authority.java

@@ -0,0 +1,28 @@
+package com.winhc.returnmoney.aspect;
+
+
+import com.winhc.returnmoney.enums.AuthorityEnum;
+
+import java.lang.annotation.*;
+
+/**
+ * @description: 接口约束
+ * @author: anakin
+ * @date 2020.10.12 15:08
+ */
+@Target(ElementType.METHOD)
+@Retention(RetentionPolicy.RUNTIME)
+@Documented
+public @interface Authority {
+    /**
+     * 限制等级
+     * @return
+     */
+    AuthorityEnum value() default AuthorityEnum.无;
+
+    /**
+     * 用户类型
+     * @return
+     */
+    String type() default "app";
+}

+ 97 - 0
src/main/java/com/winhc/returnmoney/aspect/AuthorityAspect.java

@@ -0,0 +1,97 @@
+//package com.winhc.returnmoney.aspect;
+//
+//import com.module.login.usersession.UserBean;
+//import com.winhc.common.base.ApiDataResult;
+//import com.winhc.common.base.BeanResponse;
+//import com.winhc.common.enums.CodeMsg;
+//import com.winhc.common.util.ResultUtil;
+//import com.winhc.returnmoney.entity.UserExt;
+//import com.winhc.returnmoney.repository.UserExtMapper;
+//import com.winhc.returnmoney.repository.UserInfoMapper;
+//import com.winhc.returnmoney.util.RequesterUtil;
+//import lombok.extern.slf4j.Slf4j;
+//import org.aspectj.lang.ProceedingJoinPoint;
+//import org.aspectj.lang.Signature;
+//import org.aspectj.lang.annotation.Around;
+//import org.aspectj.lang.annotation.Aspect;
+//import org.aspectj.lang.reflect.MethodSignature;
+//import org.springframework.stereotype.Component;
+//
+//import javax.annotation.Resource;
+//
+///**
+// * @description: 认证切面
+// * @author: anakin
+// * @date 2020.10.12 15:10
+// */
+//@Slf4j
+//@Aspect
+//@Component
+//public class AuthorityAspect {
+//    @Resource
+//    private UserInfoMapper userInfoMapper;
+//    @Resource
+//    private UserExtMapper userExtMapper;
+//
+//    @Around("@annotation(authority)")
+//    public Object around(ProceedingJoinPoint joinPoint, Authority authority) throws Throwable {
+//        Signature signature = joinPoint.getSignature();
+//        MethodSignature methodSignature = (MethodSignature) signature;
+//        boolean success = false;
+//        if ("app".equals(authority.type())) {
+//            switch (authority.value()) {
+//                case 无:
+//                    success = true;
+//                    break;
+//                case 登录用户:
+//                    success = RequesterUtil.getUser() != null;
+//                    break;
+//                case 登录且存在的用户:
+//                    UserBean userBean = RequesterUtil.getUser();
+//                    if (userBean != null && userBean.getUserId() != null
+//                            && userInfoMapper.selectById(userBean.getUserId()) != null) {
+//                        success = true;
+//                    } else {
+//                        success = false;
+//                    }
+//                    break;
+//                case VIP用户:
+//                    UserBean userBeanVIP = RequesterUtil.getUser();
+//                    if (userBeanVIP != null && userBeanVIP.getUserId() != null) {
+//                        UserExt userExt = userExtMapper.selectById(userBeanVIP.getUserId());
+//                        if (userExt != null && "0".equals(userExt.getVipSign())) {
+//                            success = true;
+//                        } else {
+//                            success = false;
+//                        }
+//                    } else {
+//                        success = false;
+//                    }
+//                    break;
+//                default:
+//                    success = true;
+//                    break;
+//            }
+//        } else if ("mis".equals(authority.type())){
+//            // 暂不支持mis用户认证
+//        }
+//        if (success) {
+//            return joinPoint.proceed();
+//        }
+//        return response(CodeMsg.FORBIDDEN, methodSignature.getReturnType());
+//    }
+//
+//    // 封装返回数据
+//    private Object response(CodeMsg codeMsg, Class type) {
+//        if (BeanResponse.class.equals(type)) {
+//            if (!"200".equals(codeMsg.getCode())) {
+//                return BeanResponse.error(codeMsg);
+//            }
+//            return BeanResponse.success(CodeMsg.SUCCESS);
+//        } else if (ApiDataResult.class.equals(type)) {
+//            return ResultUtil.response(codeMsg, null);
+//        } else {
+//            return ResultUtil.response(codeMsg);
+//        }
+//    }
+//}

+ 89 - 0
src/main/java/com/winhc/returnmoney/aspect/LogAspect.java

@@ -0,0 +1,89 @@
+package com.winhc.returnmoney.aspect;
+import com.winhc.common.util.GSON;
+import com.winhc.returnmoney.model.bo.AspectRequestBO;
+import com.winhc.returnmoney.util.MethodControlUtil;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+import org.aspectj.lang.JoinPoint;
+import org.aspectj.lang.Signature;
+import org.aspectj.lang.annotation.AfterReturning;
+import org.aspectj.lang.annotation.Aspect;
+import org.aspectj.lang.annotation.Before;
+import org.aspectj.lang.reflect.MethodSignature;
+import org.springframework.core.annotation.Order;
+import org.springframework.stereotype.Component;
+
+import javax.servlet.http.HttpServletResponse;
+
+
+/**
+ * @description: 日志切面
+ * @author: yujie
+ * @date 2019.11.27 8:52
+ */
+@Order
+@Slf4j
+@Aspect
+@Component
+public class LogAspect {
+
+    private static final String SEP = "\n";
+    private static String context_format = null;
+    private static String context_response = null;
+
+    static {
+        context_format = SEP + "->->->->->->->->->->->->->->->->->->->->->->->->->->->->" + SEP;
+        context_format += "-> {}" + SEP;
+        context_format += "-> Target: class[{}],method[{}]" + SEP;
+        context_format += "-> Url: path[{}],method[{}]" + SEP;
+        context_format += "-> Parameters : {} " + SEP;
+        context_format += "->->->->->->->->->->->->->->->->->->->->->->->->->->->->" + SEP;
+
+        context_response = SEP + "<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-" + SEP;
+        context_response += "<- Response:{}" + SEP;
+        context_response += "<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-" + SEP;
+    }
+
+    @Before("@annotation(apiOperation)")
+    public void doBefore(JoinPoint joinPoint, ApiOperation apiOperation) throws Throwable {
+        Signature signature = joinPoint.getSignature();
+        String methodName = signature.getName();
+        MethodSignature methodSignature = (MethodSignature) signature;
+        String className = signature.getDeclaringTypeName();
+        // 获取请求方式信息
+        AspectRequestBO aspectRequestBO = MethodControlUtil.getMethod(signature);
+        // 获取请求参数
+        String requestString = "void";
+        Object[] parameters = joinPoint.getArgs();
+        if (signature.toShortString().contains("..")) {
+            String[] parameterNames = methodSignature.getParameterNames();
+            StringBuilder reBuilder = new StringBuilder();
+            for (int index = 0; index < parameterNames.length; ++index) {
+                if (parameters[index] instanceof HttpServletResponse) {
+                    continue;
+                }
+                reBuilder.append(parameterNames[index]).append("=").append(GSON.toJSON(parameters[index])).append(";");
+            }
+            requestString = reBuilder.toString();
+        }
+        log.info(context_format, aspectRequestBO.getDesc(),className,methodName, aspectRequestBO.getPath(), aspectRequestBO.getMethod(),requestString);
+    }
+
+    @AfterReturning(returning = "cvt",pointcut = "@annotation(org.springframework.web.bind.annotation.ResponseBody)")
+    public void doAfterException(JoinPoint joinPoint, Object cvt){
+        log.info(context_response,getResponse(cvt));
+    }
+
+    @AfterReturning(returning = "cvt",pointcut = "@annotation(io.swagger.annotations.ApiOperation)")
+    public void doAfter(JoinPoint joinPoint, Object cvt){
+        log.info(context_response,getResponse(cvt));
+    }
+
+    private String getResponse(Object cvt) {
+        String res = "void";
+        if (cvt != null) {
+            res = GSON.toJSON(cvt);
+        }
+        return res;
+    }
+}

+ 45 - 0
src/main/java/com/winhc/returnmoney/cloud/CrmService.java

@@ -0,0 +1,45 @@
+package com.winhc.returnmoney.cloud;
+
+import com.winhc.common.base.ApiDataResult;
+import com.winhc.common.base.ApiResult;
+import com.winhc.returnmoney.cloud.bean.CreditorsRightMonitorAddDTO;
+import com.winhc.returnmoney.cloud.bean.CreditorsRightMonitorCRMVO;
+import com.winhc.returnmoney.cloud.bean.CreditorsRightMonitorCancelDTO;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+
+import java.util.List;
+
+/**
+ * @Description: CrmService
+ * @Author: xda
+ * @Date: 2021/9/17 18:01
+ */
+@FeignClient("crm-service")
+public interface CrmService {
+
+    /**
+     * 增加债权监测(多监测公司批量)
+     *
+     * @param dto dto
+     * @return com.winhc.common.base.ApiDataResult<java.util.List < CreditorsRightMonitorCRMVO>>
+     * @author xda
+     * @date 2021/9/17 18:09
+     */
+    @PostMapping("/app/noAuth/creditors")
+    ApiDataResult<List<CreditorsRightMonitorCRMVO>> addCreditorsRightMonitor(@RequestBody CreditorsRightMonitorAddDTO dto);
+
+
+    /**
+     * 删除 债权监测
+     *
+     * @param dto dto
+     * @return com.winhc.common.base.ApiResult
+     * @author xda
+     * @date 2021/9/18 14:05
+     */
+    @DeleteMapping("/app/noAuth/creditors")
+    ApiResult cancelCreditors(@RequestBody CreditorsRightMonitorCancelDTO dto);
+}

+ 157 - 0
src/main/java/com/winhc/returnmoney/cloud/DataMiddlewareService.java

@@ -0,0 +1,157 @@
+package com.winhc.returnmoney.cloud;
+
+import com.winhc.common.base.ApiDataResult;
+import com.winhc.common.model.base.VOPage;
+import com.winhc.returnmoney.cloud.bean.*;
+import com.winhc.returnmoney.cloud.bean.CreditPunishmentLabelListVO;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+/**
+ * @Description: 数据中间件服务
+ * @Author: xda
+ * @Date: 2020/7/18 10:50
+ */
+@FeignClient("winhc-data-middleware")
+//@FeignClient(value = "winhc-data-middleware", url = "http://47.101.212.122:10001/")
+public interface DataMiddlewareService {
+
+
+//    /**
+//     * 获取企业信息
+//     * @param keyWord keyWord
+//     * @return com.winhc.common.base.ApiDataResult<Company>
+//     * @Author: xda
+//     * @Date: 2020/12/15 16:51
+//     */
+//    @Deprecated
+//    @RequestMapping(value = "/company/detail", method = RequestMethod.GET)
+//    ApiDataResult<Company> queryCompany(@RequestParam String keyWord);
+
+//    /**
+//     * 获取企业信息list
+//     * @param names names
+//     * @param needLegalInfo needLegalInfo
+//     * @return com.winhc.common.base.ApiDataResult<java.util.List < Company>>
+//     * @author xda
+//     * @date 2020/12/22 15:04
+//     */
+//    @Deprecated
+//    @RequestMapping(value = "/company/list", method = RequestMethod.GET)
+//    ApiDataResult<List<ESCompany>> queryCompanyList(@RequestParam List<String> names,
+//                                                  @RequestParam(required = false,defaultValue = "false") Boolean needLegalInfo);
+
+//    /**
+//     * 查询企业动态
+//     * @param dto
+//     * @return
+//     */
+//    @Deprecated
+//    @PostMapping("/dynamic/list")
+//    @ApiOperation("查找企业动态列表")
+//    ApiDataResult<List<ESDynamic>> listDynamic(@RequestBody QueryCompanyDynamicDTO dto);
+
+    /**
+     * 企业基本信息列表
+     * @param names names
+     * @param needLegalInfo needLegalInfo
+     * @return com.winhc.common.base.ApiDataResult<java.util.List < ESCompany>>
+     * @Author: xda
+     * @Date: 2020/12/18 10:38
+     */
+    @Deprecated
+    @RequestMapping(value = "/company/list", method = RequestMethod.GET)
+    ApiDataResult<List<ESCompany>> queryCompanyBasicList(@RequestParam List<String> names,
+                                                         @RequestParam(required = false,defaultValue = "false") Boolean needLegalInfo);
+
+    /**
+     * 分页查询v8索引
+     * @param dto
+     * @param pageNum
+     * @param pagSize
+     * @return
+     */
+    @GetMapping("/dynamic/v8/page")
+    ApiDataResult<VOPage<V8DynamicVO>> pageDynamic(QueryV8DynamicDTO dto,
+                                                          @RequestParam(defaultValue = "1") Integer pageNum,
+                                                          @RequestParam(defaultValue = "10") Integer pagSize);
+
+
+    /**
+     * 查找财产线索动态
+     * @param dto
+     * @return
+     */
+    @PostMapping("/dynamic/finance/v8/page")
+    @ApiOperation("企业财产线索动态 分页")
+    ApiDataResult<VOPage<FinanceDynamicVO>> pageFinanceDynamic(@RequestBody QueryESFinanceDynamicDTO dto);
+
+
+//    @GetMapping("/dynamic/finance/{id}")
+//    @ApiOperation("企业财产线索动态详情")
+//    ApiDataResult<FinanceDynamicVO> pageFinanceDynamic(@PathVariable String id);
+
+
+    /**
+     * 企业财产线索total
+     * @param dto dto
+     * @return com.winhc.common.base.ApiDataResult<java.util.List < FinanceDynamicNumVO>>
+     * @author xda
+     * @date 2021/8/7 11:35
+     */
+    @Deprecated
+    @PostMapping("/dynamic/finance/num")
+    ApiDataResult<List<FinanceDynamicNumVO>> getFinanceDynamicNumList(@RequestBody GetFinanceDynamicNumDTO dto);
+
+    /**
+     * 财产线索数量
+     * @param dto
+     * @return
+     */
+    @PostMapping("/dynamic/finance/v8/num")
+    ApiDataResult<List<FinanceDynamicNumVO>> getFinanceDynamicNumV8List(@RequestBody GetFinanceDynamicNumDTO dto);
+
+    /**
+     * 企业风险数量
+     * @param dto dto
+     * @return com.winhc.common.base.ApiDataResult<java.util.List < CompanyRiskNumVO>>
+     * @author xda
+     * @date 2021/8/7 11:38
+     */
+    @PostMapping("/risk/companyList")
+    ApiDataResult<List<CompanyRiskNumVO>> getCompanyRiskNumList(@RequestBody GetCompanyRiskNumDTO dto);
+
+    /**
+     * companyIdList失信限高label
+     * @param dto dto
+     * @return com.winhc.common.base.ApiDataResult<java.util.List < CreditPunishmentLabelListVO>>
+     * @author xda
+     * @date 2021/8/7 14:36
+     */
+    @PostMapping("/credit/label")
+    ApiDataResult<List<CreditPunishmentLabelListVO>> getCreditPunishmentLabelList(@RequestBody GetCreditPunishmentLabelDTO dto);
+
+    /**
+     * 查询公司name
+     * @param dto dto
+     * @return com.winhc.common.base.ApiDataResult<java.util.List < CompanyBasicVO>>
+     * @author xda
+     * @date 2021/8/7 15:19
+     */
+    @PostMapping("/company/basic/v8")
+    ApiDataResult<List<CompanyBasicVO>> getV8CompanyListBasic(@RequestBody GetV8CompanyListDTO dto);
+
+    /**
+     * 查询企业ID v8
+     * @param companyName companyName
+     * @return com.winhc.common.base.ApiDataResult<java.lang.String>
+     * @author xda
+     * @date 2021/8/9 19:30
+     */
+    @PostMapping("/company/companyid")
+    ApiDataResult<String> queryCompanyId(@RequestBody String companyName);
+
+}

+ 38 - 0
src/main/java/com/winhc/returnmoney/cloud/InCaseService.java

@@ -0,0 +1,38 @@
+package com.winhc.returnmoney.cloud;
+
+import com.winhc.common.base.ApiDataResult;
+import com.winhc.returnmoney.cloud.bean.AddDiagnoseRecordDTO;
+import com.winhc.returnmoney.cloud.bean.DiagnosisRecord;
+import com.winhc.returnmoney.cloud.bean.DiagnosisRecordVO;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+
+/**
+ * @author Aaron
+ * @date 2020/12/14 10:19
+ * @description
+ */
+@FeignClient("inCaseService")
+//@FeignClient(value = "inCaseService",url = "106.14.81.247:58554")
+public interface InCaseService {
+    @PostMapping("diagnose/performance/assessment")
+    @ApiOperation("进行履债评估")
+    ApiDataResult<DiagnosisRecord> performanceAssessment(@Validated @RequestBody AddDiagnoseRecordDTO dto);
+
+
+    /**
+     * 查询评估record
+     * @param diagnosisId diagnosisId
+     * @return com.winhc.common.base.ApiDataResult<DiagnosisRecordVO>
+     * @author xda
+     * @date 2021/8/6 11:41
+     */
+    @GetMapping("/diagnose/{diagnosisId}")
+    ApiDataResult<DiagnosisRecordVO> getRecordVO(@PathVariable("diagnosisId") Long diagnosisId);
+
+}

+ 28 - 0
src/main/java/com/winhc/returnmoney/cloud/LawyerService.java

@@ -0,0 +1,28 @@
+package com.winhc.returnmoney.cloud;
+
+import com.winhc.common.base.BeanResponse;
+import com.winhc.returnmoney.cloud.bean.ServiceCountDTO;
+import com.winhc.returnmoney.cloud.bean.ServiceCountVO;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+
+/**
+ * @Description: LawyerService
+ * @Author: xda
+ * @Date: 2021/8/10 14:54
+ */
+@FeignClient("winhc-lawyer-service")
+//@FeignClient(value = "winhc-lawyer-service", url = "http://47.101.212.122:9595/")
+public interface LawyerService {
+
+    /**
+     * 根据制定类型查询人数和头像
+     * @param dto dto 
+     * @return com.winhc.common.base.BeanResponse<ServiceCountVO>
+     * @author xda
+     * @date 2021/8/10 14:56 
+     */
+    @RequestMapping(value = "/lawyerService/serviceCount", method = RequestMethod.GET)
+    BeanResponse<ServiceCountVO> getServiceCount(ServiceCountDTO dto);
+}

+ 20 - 0
src/main/java/com/winhc/returnmoney/cloud/SensorService.java

@@ -0,0 +1,20 @@
+package com.winhc.returnmoney.cloud;
+
+import com.winhc.returnmoney.cloud.bean.SensorDTO;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+
+/**
+ * @author Aaron
+ * @date 2020/12/23 11:08
+ * @description
+ */
+@FeignClient("winhc-sensors-analytics")
+public interface SensorService {
+    /**
+     * 上报神策事件
+     */
+    @PostMapping("/sensor/open/event_append")
+    void sensor(@RequestBody SensorDTO request);
+}

+ 23 - 0
src/main/java/com/winhc/returnmoney/cloud/WinCoinService.java

@@ -0,0 +1,23 @@
+package com.winhc.returnmoney.cloud;
+
+import com.winhc.returnmoney.cloud.bean.CompleteActivityRequest;
+import com.winhc.returnmoney.cloud.bean.ResponseVO;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+
+/**
+ * @author Aaron
+ * @date 2020/9/11 9:55
+ * @description
+ */
+@FeignClient("win-coin")
+public interface WinCoinService {
+    /**
+     * 完成运营任务
+     * @param request
+     * @return
+     */
+    @PostMapping("/wincoin_task/complete")
+    ResponseVO<Void> completeTask(@RequestBody CompleteActivityRequest request);
+}

+ 44 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/AddDiagnoseRecordDTO.java

@@ -0,0 +1,44 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.List;
+
+/**
+ * @author: liujian
+ * @description: 添加诊断记录的bean
+ * @date 2020-01-08 9:27
+ */
+@Data
+public class AddDiagnoseRecordDTO {
+
+
+    @ApiModelProperty(value = "原告", required = true)
+    private String creditorName;
+
+    @ApiModelProperty(value = "被告名称,以顿号隔开", required = true)
+    private String debtorName;
+
+    @ApiModelProperty(value = "被告", required = true)
+    private List<DiagnosisDebtorDTO> debtorDTOList;
+
+    @ApiModelProperty(value = "标的", required = true)
+    private Double caseAmt;
+
+    @ApiModelProperty(value = "1可执行诊断;2能胜诉诊断")
+    private Integer diagnosisType;
+
+    @ApiModelProperty(value = "0智能风控;1人工风控")
+    private Integer riskMode;
+
+    @ApiModelProperty(value = "用户ID")
+    private Long userId;
+
+    @ApiModelProperty(value = "操作员ID")
+    private Integer operId;
+
+
+
+
+}

+ 25 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/AssociationEntityInfo.java

@@ -0,0 +1,25 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+/**
+ * @description: 动态信息 实体对象
+ * @author: Anakin
+ * @date 2021.8.2 19:25
+ */
+@Data
+@ApiModel(description = "关联实体")
+public class AssociationEntityInfo {
+    @ApiModelProperty("实体ID")
+    private String keyno;
+    @ApiModelProperty("实体名称")
+    private String name;
+    @ApiModelProperty(value = "风险等级", example = "利好(0),提示(1),警示(2),高风险(3)")
+    private String riskLevel;
+    @ApiModelProperty(value = "实体角色", example = "做为被告/被上诉人")
+    private String rtaInfo;
+    @ApiModelProperty("是否为当前查询的公司")
+    private boolean hit = false;
+}

+ 117 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/Company.java

@@ -0,0 +1,117 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import lombok.Data;
+
+/**
+ * @description: hbase 企业基本信息
+ * @author: yujie
+ * @date 2020.6.12 10:05
+ */
+@Data
+public class Company {
+
+    // 查询时的企业名称(cid查询时,此字段为null)
+    private String queryCompanyName;
+    private String id;
+    // rowKey
+    private String cid;
+    private String base;
+    private String name;
+    private String nameEn;
+    private String nameAlias;
+    private String historyNames;
+    private String legalEntityId;
+    private String legalEntityType;
+    private String regNumber;
+    private String companyOrgType;
+    private String regLocation;
+    private String estiblishTime;
+    private String fromTime;
+    private String toTime;
+    private String businessScope;
+    private String regInstitute;
+    private String approvedTime;
+    private String regStatus;
+    private String regCapital;
+    private String orgNumber;
+    private String orgApprovedInstitute;
+    private String currentCid;
+    private String parentCid;
+    private String companyType;
+    private String creditCode;
+    private String score;
+    private String categoryCode;
+    private String lat;
+    private String lng;
+    private String areaCode;
+    private String regCapitalAmount;
+    private String regCapitalCurrency;
+    private String actualCapitalAmount;
+    private String actualCapitalCurrency;
+    private String regStatusStd;
+    private String socialSecurityStaffNum;
+    private String cancelDate;
+    private String cancelReason;
+    private String revokeDate;
+    private String revokeReason;
+    private String emails;
+    private String phones;
+    private String wechatPublicNum;
+    private String logo;
+    private String crawledTime;
+    private String createTime;
+    private String updateTime;
+    private String deleted;
+
+    /*
+     `id` BIGINT,
+     `cid` BIGINT COMMENT '公司标识',
+     `base` STRING COMMENT '归属省份的首字母小写',
+     `name` STRING COMMENT '公司名称',
+     `name_en` STRING COMMENT '英文名',
+     `name_alias` STRING COMMENT '公司别名',
+     `history_names` STRING COMMENT '公司历史名称',
+     `legal_entity_id` BIGINT COMMENT '法人ID:人标识或公司标识',
+     `legal_entity_type` BIGINT COMMENT '法人类型,1 人 2 公司',
+     `reg_number` STRING COMMENT '注册号',
+     `company_org_type` STRING COMMENT '公司类型',
+     `reg_location` STRING COMMENT '注册地址',
+     `estiblish_time` BIGINT COMMENT '成立日期',
+     `from_time` BIGINT COMMENT '营业期限开始日期',
+     `to_time` BIGINT COMMENT '营业期限终止日期',
+     `business_scope` STRING COMMENT '经营范围',
+     `reg_institute` STRING COMMENT '登记机关',
+     `approved_time` BIGINT COMMENT '核准日期',
+     `reg_status` STRING COMMENT '企业状态',
+     `reg_capital` STRING COMMENT '注册资本',
+     `org_number` STRING COMMENT '组织机构代码',
+     `org_approved_institute` STRING COMMENT '组织机构批准单位',
+     `current_cid` BIGINT COMMENT '如果该条记录为历史名称,则该字段值对应最新名称那条记录的id',
+     `parent_cid` BIGINT COMMENT '上级机构ID',
+     `company_type` BIGINT COMMENT '机构类型-1:公司,2:香港企业,3:社会组织,4:律所,5:事业单位,6:基金会,8:台湾企业',
+     `credit_code` STRING COMMENT '统一社会信用代码',
+     `score` STRING COMMENT '公司评分',
+     `category_code` STRING COMMENT '行业分类',
+     `lat` DOUBLE COMMENT '公司纬度',
+     `lng` DOUBLE COMMENT '公司经度',
+     `area_code` BIGINT COMMENT '行政区划码',
+     `reg_capital_amount` BIGINT COMMENT '注册资本金额,数值类型',
+     `reg_capital_currency` STRING COMMENT '注册资本币种  人民币 美元 欧元 等',
+     `actual_capital_amount` BIGINT COMMENT '实收资本金额(单位:分)',
+     `actual_capital_currency` STRING COMMENT '实收资本币种 人民币 美元 欧元等',
+     `reg_status_std` STRING COMMENT '公司注册状态标准化',
+     `social_security_staff_num` BIGINT COMMENT '职工参保人数',
+     `cancel_date` BIGINT COMMENT '注销日期',
+     `cancel_reason` STRING COMMENT '注销原因',
+     `revoke_date` BIGINT COMMENT '吊销日期',
+     `revoke_reason` STRING COMMENT '吊销原因/吊销凭证',
+     `emails` STRING COMMENT '邮箱列表',
+     `phones` STRING COMMENT '电话',
+     `wechat_public_num` STRING COMMENT '微信公众号',
+     `logo` STRING COMMENT '公司logo',
+     `crawled_time` BIGINT COMMENT '解析完成时间',
+     `create_time` BIGINT,
+     `update_time` BIGINT,
+     `deleted` BIGINT)
+     */
+}

+ 26 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/CompanyBasicVO.java

@@ -0,0 +1,26 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+/**
+ * @Description: CompanyBasicVO
+ * @Author: xda
+ * @Date: 2021/8/7 15:05
+ */
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@ApiModel("CompanyBasicVO")
+public class CompanyBasicVO {
+
+    @ApiModelProperty("companyId")
+    private String companyId;
+
+    @ApiModelProperty("companyName")
+    private String companyName;
+
+}

+ 25 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/CompanyRiskNumVO.java

@@ -0,0 +1,25 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+/**
+ * @Description: CompanyRiskNumVO
+ * @Author: xda
+ * @Date: 2021/8/6 15:14
+ */
+@Data
+@ApiModel("公司风险数量")
+@AllArgsConstructor
+@NoArgsConstructor
+public class CompanyRiskNumVO {
+
+    @ApiModelProperty("companyId")
+    private String companyId;
+
+    @ApiModelProperty("风险数量")
+    private Integer riskNum;
+}

+ 21 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/CompleteActivityRequest.java

@@ -0,0 +1,21 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
+import java.io.Serializable;
+
+/**
+ * @author Aaron
+ * @date 2020/9/10 16:20
+ * @description
+ */
+@Data
+@Accessors(chain = true)
+public class CompleteActivityRequest implements Serializable {
+    @ApiModelProperty(value = "任务编码,编码枚举--lawyer_workbench:每日记录随手记或提醒",required = true)
+    private String activityCode;
+    @ApiModelProperty(value = "用户id",required = true)
+    private Long userId;
+}

+ 27 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/CreditPunishmentLabelListVO.java

@@ -0,0 +1,27 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.util.List;
+
+/**
+ * @Description: CreditPunishmentLabelListVO
+ * @Author: xda
+ * @Date: 2021/8/7 13:56
+ */
+@Data
+@ApiModel("信用惩戒labelList")
+@AllArgsConstructor
+@NoArgsConstructor
+public class CreditPunishmentLabelListVO {
+
+    @ApiModelProperty("公司id")
+    private String companyId;
+
+    @ApiModelProperty("labelList")
+    private List<String> labelList;
+}

+ 45 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/CreditorsRightMonitorAddDTO.java

@@ -0,0 +1,45 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.ToString;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ *@description: CreditorsRightMonitor DTO
+ *@author: JPA AUTO
+ *@date: Tue Oct 22 12:33:38 CST 2019
+ */
+@Data
+@ToString
+@NoArgsConstructor
+@AllArgsConstructor
+@ApiModel(description = "债权监测")
+public class CreditorsRightMonitorAddDTO implements Serializable {
+
+	@ApiModelProperty(value = "客户Id",example="1234")
+	private Long custId;
+	@ApiModelProperty(value = "债权人名称",example="1234")
+	private String creditorCompName;
+	@ApiModelProperty(value = "联系人",example="董超神")
+	private String linkMan;
+	@ApiModelProperty(value = "手机号",example="13917965286")
+	private String mobileNo;
+	@ApiModelProperty(value = "投资经理Id",example="123")
+	private Integer saleOperId;
+	@ApiModelProperty(value = "投资经理名称",example="黄超神")
+	private String saleOperName;
+	@ApiModelProperty(value = "0:未修改;1:修改;",example="0")
+	private Integer modiSign;
+	@ApiModelProperty(value = "来源渠道:crm;app;")
+	private String channel;
+	@ApiModelProperty(value = "监控企业列表")
+	private List<MonitorCompDTO> monitorCompList;
+	@ApiModelProperty("用户userId")
+	private Long userId;
+}

+ 53 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/CreditorsRightMonitorCRMVO.java

@@ -0,0 +1,53 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.ToString;
+
+import java.io.Serializable;
+
+/**
+ * @description: CreditorsRightMonitor VO
+ * @author: JPA AUTO
+ * @date: Tue Oct 22 12:33:38 CST 2019
+ */
+@Data
+@ToString
+@NoArgsConstructor
+@AllArgsConstructor
+@ApiModel(description = "CREDITORS_RIGHT_MONITORVO")
+public class CreditorsRightMonitorCRMVO implements Serializable {
+    @ApiModelProperty(value = "null")
+    private Long id;
+    @ApiModelProperty(value = "null")
+    private Long custId;
+    @ApiModelProperty(value = "null")
+    private String creditorCompName;
+    @ApiModelProperty(value = "null")
+    private String monitorCompName;
+    @ApiModelProperty(value = "null")
+    private String linkMan;
+    @ApiModelProperty(value = "null")
+    private String mobileNo;
+    @ApiModelProperty(value = "null")
+    private Integer saleOperId;
+    @ApiModelProperty(value = "null")
+    private String saleOperName;
+    @ApiModelProperty(value = "null")
+    private java.util.Date applyTime;
+    @ApiModelProperty(value = "null")
+    private Integer monitorDays;
+    @ApiModelProperty(value = "null")
+    private java.util.Date endTime;
+    @ApiModelProperty(value = "null")
+    private Double amount;
+    @ApiModelProperty(value = "0:监控中;1:取消监控;2:监控到期")
+    private Integer status;
+    @ApiModelProperty(value = "0:未交易;1:交易中;2:已交易")
+    private Integer stage;
+    @ApiModelProperty("渠道来源:crm、app")
+    private String channel;
+}

+ 29 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/CreditorsRightMonitorCancelDTO.java

@@ -0,0 +1,29 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import javax.validation.constraints.NotBlank;
+import javax.validation.constraints.NotNull;
+
+/**
+ * @description: 取消债权监测
+ * @author: Anakin
+ * @date 2021.9.18 9:34
+ */
+@Data
+@ApiModel(description = "取消债权监测DTO")
+public class CreditorsRightMonitorCancelDTO {
+
+    @NotBlank
+    @ApiModelProperty(value = "监控企业名称")
+    private String monitorCompName;
+
+    @ApiModelProperty(value = "监控企业ID")
+    private String monitorKeyno;
+
+    @NotNull
+    @ApiModelProperty("用户USERID")
+    private Long userId;
+}

+ 56 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/DiagnosisDebtorDTO.java

@@ -0,0 +1,56 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.Set;
+
+/**
+ * @author: liujian
+ * @description: 诊断被告Bean
+ * @date 2020-03-17 14:24
+ */
+@Data
+public class DiagnosisDebtorDTO {
+
+    private Long id;
+    @ApiModelProperty(value = "被告名称")
+    private String litigantName;
+
+    @ApiModelProperty(value = "被告类型:0自然人 ;1企业;2 自然人无关联")
+    private String litigantType;
+
+    @ApiModelProperty(value = "自然人身份证号")
+    private String idNo;
+
+    @ApiModelProperty(value = "自然人关联公司")
+    private String relatedCompany;
+
+    @ApiModelProperty(value = "自然人年龄")
+    private Integer age;
+    @ApiModelProperty(value = "自然人户籍地址")
+    private String personAddress;
+
+    @ApiModelProperty(value = "自然人性别")
+    private String sex;
+
+    @ApiModelProperty("0 成功;1 失败")
+    private Integer status;
+
+    @ApiModelProperty("结果数据主键ID")
+    private String mId;
+
+    @ApiModelProperty(value = "ABCD")
+    private String grade;
+
+    @ApiModelProperty(value = "评分")
+    private Double score;
+
+    @ApiModelProperty(value = "是否选中作为最终评分:Y是 ;N否")
+    private String isChosen;
+
+    // (企业/自然人)措施Id
+    private Set<Integer> mesureIds;
+
+
+}

+ 195 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/DiagnosisRecord.java

@@ -0,0 +1,195 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModelProperty;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class DiagnosisRecord implements Serializable {
+    private Long diagnosisId;
+
+    @ApiModelProperty(value = "1可执行诊断;2能胜诉诊断")
+    private Integer diagnosisType;
+
+    @ApiModelProperty(value = "0智能风控;1人工风控")
+    private Integer riskMode;
+
+    private String creditorName;
+
+    private String debtorName;
+
+    private Double caseAmt;
+
+    @ApiModelProperty(value = "ABCD")
+    private String grade;
+
+    private Integer score;
+
+    private Date createTime;
+
+    private Long relatedId;
+
+    private String caseId;
+
+    private Long userId;
+
+    private Integer operId;
+
+    @ApiModelProperty(value = "0诊断中;1诊断完成;9诊断失败")
+    private Integer status;
+
+    private String result;
+
+    @ApiModelProperty(value = "评估结果关联要素JSON")
+    private String resultItem;
+
+
+
+    private static final long serialVersionUID = 1L;
+
+    public Long getDiagnosisId() {
+        return diagnosisId;
+    }
+
+    public void setDiagnosisId(Long diagnosisId) {
+        this.diagnosisId = diagnosisId;
+    }
+
+    public Integer getDiagnosisType() {
+        return diagnosisType;
+    }
+
+    public void setDiagnosisType(Integer diagnosisType) {
+        this.diagnosisType = diagnosisType;
+    }
+
+    public Integer getRiskMode() {
+        return riskMode;
+    }
+
+    public void setRiskMode(Integer riskMode) {
+        this.riskMode = riskMode;
+    }
+
+    public String getCreditorName() {
+        return creditorName;
+    }
+
+    public void setCreditorName(String creditorName) {
+        this.creditorName = creditorName;
+    }
+
+    public String getDebtorName() {
+        return debtorName;
+    }
+
+    public void setDebtorName(String debtorName) {
+        this.debtorName = debtorName;
+    }
+
+    public Double getCaseAmt() {
+        return caseAmt;
+    }
+
+    public void setCaseAmt(Double caseAmt) {
+        this.caseAmt = caseAmt;
+    }
+
+    public String getGrade() {
+        return grade;
+    }
+
+    public void setGrade(String grade) {
+        this.grade = grade;
+    }
+
+    public Integer getScore() {
+        return score;
+    }
+
+    public void setScore(Integer score) {
+        this.score = score;
+    }
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    public Long getRelatedId() {
+        return relatedId;
+    }
+
+    public void setRelatedId(Long relatedId) {
+        this.relatedId = relatedId;
+    }
+
+    public String getCaseId() {
+        return caseId;
+    }
+
+    public void setCaseId(String caseId) {
+        this.caseId = caseId;
+    }
+
+    public Long getUserId() {
+        return userId;
+    }
+
+    public void setUserId(Long userId) {
+        this.userId = userId;
+    }
+
+    public Integer getOperId() {
+        return operId;
+    }
+
+    public void setOperId(Integer operId) {
+        this.operId = operId;
+    }
+
+    public Integer getStatus() {
+        return status;
+    }
+
+    public void setStatus(Integer status) {
+        this.status = status;
+    }
+
+    public String getResult() {
+        return result;
+    }
+
+    public void setResult(String result) {
+        this.result = result;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", diagnosisId=").append(diagnosisId);
+        sb.append(", diagnosisType=").append(diagnosisType);
+        sb.append(", riskMode=").append(riskMode);
+        sb.append(", creditorName=").append(creditorName);
+        sb.append(", debtorName=").append(debtorName);
+        sb.append(", caseAmt=").append(caseAmt);
+        sb.append(", grade=").append(grade);
+        sb.append(", score=").append(score);
+        sb.append(", createTime=").append(createTime);
+        sb.append(", relatedId=").append(relatedId);
+        sb.append(", caseId=").append(caseId);
+        sb.append(", userId=").append(userId);
+        sb.append(", operId=").append(operId);
+        sb.append(", status=").append(status);
+        sb.append(", result=").append(result);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 53 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/DiagnosisRecordVO.java

@@ -0,0 +1,53 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.Date;
+
+/**
+ * @author: liujian
+ * @description:
+ * @date 2020-03-19 10:12
+ */
+@Data
+public class DiagnosisRecordVO {
+    private Long diagnosisId;
+
+    @ApiModelProperty(value = "1可执行诊断;2能胜诉诊断")
+    private Integer diagnosisType;
+
+    @ApiModelProperty(value = "0智能风控;1人工风控")
+    private Integer riskMode;
+
+    private String creditorName;
+
+    private String debtorName;
+
+    private Double caseAmt;
+
+    @ApiModelProperty(value = "ABCD")
+    private String grade;
+
+    private Double score;
+
+    private Date createTime;
+
+    private Long relatedId;
+
+    private String caseId;
+
+    private Long userId;
+
+    private Integer operId;
+
+    @ApiModelProperty(value = "0诊断中;1诊断完成;9诊断失败")
+    private Integer status;
+
+    private String result;
+
+    @ApiModelProperty(value = "评估结果关联要素JSON")
+    private String resultItem;
+
+
+}

+ 92 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/ESCompany.java

@@ -0,0 +1,92 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import lombok.Data;
+import lombok.experimental.Accessors;
+
+import java.util.List;
+
+/**
+ * @description: es company
+ * @author: yujie
+ * @date 2020.6.8 18:06
+ */
+@Data
+@Accessors(chain = true)
+public class ESCompany {
+
+    // 对应es id
+    private String id;
+
+    /**
+     *  原始cid
+     */
+    private String originalCid;
+
+    // 查询名称(企业最新名称可能与查询名称不一致,保留此字段)
+    private String queryName;
+
+    // name
+    private Cname cname;
+    // 机构类型-1:公司,2:香港企业,3:社会组织,4:律所,5:事业单位,6:基金会,8:台湾企业
+    private String companyType;
+    // 注册状态
+    private String regStatus;
+    // 区县CODE
+    private String countyCode;
+    // 区县
+    private String countyName;
+    // 当前CID
+    private String currentId;
+    // 曾用名
+    private List<HistoryName> historyName;
+    // 成立日期
+    private String estiblishTime;
+    // 行业分类第二类
+    private String categorySecond;
+    // 行业分类第三类
+    private String categoryThird;
+    // 行业分类第一类
+    private String categoryFirst;
+    // 省份
+    private String provinceName;
+    // 注册资本
+    private String regCapital;
+    // 注册地区
+    private String regLocation;
+    // 联系电话
+    private List<String> phones;
+    // logo(补充前缀)
+    private String logo;
+    // 统一社会信用代码
+    private String creditCode;
+    // 注册资本(金额数量)
+    private String regCapitalAmount;
+    // 法人ID
+    private String legalEntityId;
+    // 市
+    private String cityName;
+    // 行业分类CODE
+    private String categoryCode;
+    // 省份CODE
+    private String provinceCode;
+    // 市CODE
+    private String cityCode;
+    // 邮箱
+    private List<String> emails;
+    // 法人类型,1 人 2 公司
+    private String legalEntityType;
+
+    // 法人名称(需补充查询)
+    private String legalEntityName;
+
+    @Data
+    public static class Cname {
+        public String show;
+        public String value;
+    }
+
+    public static class HistoryName {
+        public String show;
+        public String value;
+    }
+}

+ 39 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/ESDynamic.java

@@ -0,0 +1,39 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+
+/**
+ * @description: 企业动态实体
+ * @author: yujie
+ * @date 2020.8.21 17:05
+ */
+@Data
+public class ESDynamic {
+    // rowkey
+    @SerializedName("biz_id")
+    private String bizId;
+    @SerializedName("rta_desc")
+    private String rtaDesc;
+//    // 变更内容
+//    @SerializedName("change_content")
+//    private String changeContent;
+//    // 企业cid
+//    private String cid;
+    // 企业名称
+    private String cname;
+//    // 风险等级
+//    @SerializedName("info_risk_level")
+//    private String infoRiskLevel;
+    // 信息类型
+    @SerializedName("info_type")
+    private String infoType;
+    // 创建时间
+    @SerializedName("create_time")
+    private String createTime;
+//    // 变更时间
+//    @SerializedName("change_time")
+//    private String changeTime;
+    // es主键id
+    private String dynamicId;
+}

+ 26 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/FinanceDynamicNumVO.java

@@ -0,0 +1,26 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+/**
+ * @Description: FinanceDynamicNumVO
+ * @Author: xda
+ * @Date: 2021/8/7 09:41
+ */
+@Data
+@ApiModel("财产线索")
+public class FinanceDynamicNumVO {
+
+    @ApiModelProperty("公司name")
+    private String companyName;
+
+    @ApiModelProperty("财产线索数量")
+    private Integer financeDynamicNum;
+
+    @ApiModelProperty("companyId")
+    private String companyId;
+
+
+}

+ 77 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/FinanceDynamicVO.java

@@ -0,0 +1,77 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+/**
+ * @description: 财产线索动态 VO
+ * @author: Anakin
+ * @date 2020.12.17 17:01
+ */
+@Data
+@ApiModel(description = "财产线索动态 VO")
+public class FinanceDynamicVO {
+    @ApiModelProperty("ES主键")
+    private String id;
+    @ApiModelProperty("业务ID")
+    private String bizId;
+    @ApiModelProperty("企业CID")
+    private String cid;
+    @ApiModelProperty("企业名称")
+    private String cname;
+    @ApiModelProperty("财产流向,0 -> 流入 1 -> 流出")
+    private String flowType;
+    @ApiModelProperty("风险等级,1->低级 2->中级 3->高级")
+    private String infoRiskLevel;
+    @ApiModelProperty("维度类型 " +
+            "1 ->  BANKRUPTCY_OPEN_CASE//HBase\n" +
+            "2 ->  COMPANY//HBase\n" +
+            "3 ->  COMPANY_BID_LIST//HBase\n" +
+            "4 ->  COMPANY_COPYRIGHT_REG_LIST//HBase\n" +
+            "5 ->  COMPANY_COPYRIGHT_WORKS_LIST//HBase\n" +
+            "6 ->  COMPANY_COURT_OPEN_ANNOUNCEMENT_LIST//HBase\n" +
+            "7 ->  COMPANY_DISHONEST_INFO//HBase\n" +
+            "8 ->  COMPANY_EQUITY_INFO_LIST//HBase\n" +
+            "9 ->  COMPANY_FINANCE//HBase\n" +
+            "10->  COMPANY_HOLDER//HBase\n" +
+            "11->  COMPANY_LAND_ANNOUNCEMENT//HBase\n" +
+            "12->  COMPANY_LAND_MORTGAGE//HBase\n" +
+            "13->  COMPANY_MORTGAGE_INFO//HBase\n" +
+            "14->  COMPANY_PATENT_LIST//HBase\n" +
+            "15->  COMPANY_TM//HBase\n" +
+            "16->  COMPANY_ZXR_LIST//HBase\n" +
+            "17->  COMPANY_ZXR_RESTRICT//HBase\n" +
+            "18->  WENSHU_DETAIL//ES\n" +
+            "18->  WENSHU_DETAIL//ES")
+    private String dimensionType;
+    @ApiModelProperty("线索类型" +
+            "1  -> 新增破产公告\n" +
+            "2  -> 注册资本上升\n" +
+            "3  -> 新增招标信息\n" +
+            "4  -> 软件著作权\n" +
+            "5  -> 作品著作权\n" +
+            "6  -> 有恢复执行案件即将开庭\n" +
+            "7  -> 失信信息移除\n" +
+            "8  -> 出质了持有股权\n" +
+            "9  -> 有新的融资\n" +
+            "10 -> 新增了股东\n" +
+            "11 -> 股东退出\n" +
+            "12 -> 购买了新的土地\n" +
+            "13 -> 抵押了公司土地\n" +
+            "14 -> 资产被抵押\n" +
+            "15 -> 新增专利信息\n" +
+            "16 -> 新增商标信息\n" +
+            "17 -> 被执行人信息移除\n" +
+            "18 -> 限制高消费移除\n" +
+            "19 -> 有恢复执行案件\n" +
+            "20 -> 新增胜诉案件" +
+            "21 -> 接受了他人土地抵押")
+    private String type;
+    @ApiModelProperty("变更时间")
+    private String changeTime;
+    @ApiModelProperty("创建时间")
+    private String createTime;
+    @ApiModelProperty("线索详情")
+    private Object detail;
+}

+ 24 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/GetCompanyRiskNumDTO.java

@@ -0,0 +1,24 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.util.List;
+
+/**
+ * @Description: GetCompanyRiskNumDTO
+ * @Author: xda
+ * @Date: 2021/8/6 15:16
+ */
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+@ApiModel("获取公司风险数量")
+public class GetCompanyRiskNumDTO {
+
+    @ApiModelProperty("companyIdList")
+    private List<String> companyIdList;
+}

+ 24 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/GetCreditPunishmentLabelDTO.java

@@ -0,0 +1,24 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.util.List;
+
+/**
+ * @Description: GetCreditPunishmentLabelDTO
+ * @Author: xda
+ * @Date: 2021/8/7 13:58
+ */
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+@ApiModel("获取信用惩戒label")
+public class GetCreditPunishmentLabelDTO {
+
+    @ApiModelProperty("公司idList")
+    public List<String> companyIdList;
+}

+ 31 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/GetFinanceDynamicNumDTO.java

@@ -0,0 +1,31 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.Accessors;
+
+import java.util.List;
+
+/**
+ * @Description: GetFinanceDynamicNumDTO
+ * @Author: xda
+ * @Date: 2021/8/7 09:43
+ */
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+@Accessors(chain = true)
+@ApiModel("获取财产线索num")
+public class GetFinanceDynamicNumDTO {
+
+    @ApiModelProperty("公司nameList")
+    private List<String> companyNameList;
+
+    @ApiModelProperty("公司companyIdList")
+    private List<String> companyIdList;
+
+
+}

+ 24 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/GetV8CompanyListDTO.java

@@ -0,0 +1,24 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.util.List;
+
+/**
+ * @Description: GetV8CompanyListDTO
+ * @Author: xda
+ * @Date: 2021/8/7 15:03
+ */
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+@ApiModel("获取公司信息")
+public class GetV8CompanyListDTO {
+
+    @ApiModelProperty("companyIdList")
+    private List<String> companyIdList;
+}

+ 36 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/MonitorCompDTO.java

@@ -0,0 +1,36 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.ToString;
+
+import java.io.Serializable;
+
+/**
+ *@description: CreditorsRightMonitor DTO
+ *@author: JPA AUTO
+ *@date: Tue Oct 22 12:33:38 CST 2019
+ */
+@Data
+@ToString
+@NoArgsConstructor
+@AllArgsConstructor
+@ApiModel(description = "被监测企业DTO")
+public class MonitorCompDTO implements Serializable {
+
+	@ApiModelProperty(value = "监控企业名称",example="孝义市曜鑫煤焦有限责任公司")
+	private String monitorCompName;
+	@ApiModelProperty(value = "监控企业名称",example="孝义市曜鑫煤焦有限责任公司")
+	private String monitorKeyno;
+	@ApiModelProperty(value = "债权标的",example="1000")
+	private Double amount;
+	@ApiModelProperty(value = "0:未交易;1:交易中;2:已交易",example="0")
+	private Integer stage;
+	@ApiModelProperty(value = "0:监控中;1:取消监控;2:监控到期",example="0")
+	private Integer status;
+
+
+}

+ 38 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/QueryCompanyDynamicDTO.java

@@ -0,0 +1,38 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
+import java.util.List;
+
+/**
+ * @description: 查询企业动态 DTO
+ * @author: yujie
+ * @date 2020.8.24 14:15
+ */
+@Data
+@Accessors(chain = true)
+@ApiModel(description = "查询企业动态 DTO")
+public class QueryCompanyDynamicDTO {
+
+    @ApiModelProperty("企业名称列表")
+    private List<String> companyNames;
+    @ApiModelProperty("开始时间 yyyyMMdd")
+    private String startDate;
+    @ApiModelProperty("结束时间yyyyMMdd")
+    private String endDate;
+    @ApiModelProperty("入库开始时间 yyyyMMdd")
+    private String createStartDate;
+    @ApiModelProperty("入库结束时间yyyyMMdd")
+    private String createEndDate;
+    @ApiModelProperty("动态类型")
+    private String infoType;
+    @ApiModelProperty("风险等级 风险等级:良好(1),提示(2),高风险(3)")
+    private String infoRiskLevel;
+    @ApiModelProperty("页码")
+    private Integer pageNum;
+    @ApiModelProperty("数量")
+    private Integer pageSize;
+}

+ 58 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/QueryESFinanceDynamicDTO.java

@@ -0,0 +1,58 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import com.winhc.common.model.base.DTOPage;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+import java.util.List;
+
+/**
+ * @description: 查询财产线索动态
+ * @author: Anakin
+ * @date 2020.12.17 16:09
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+@Accessors(chain = true)
+@ApiModel(description = "查询财产线索动态 DTO")
+public class QueryESFinanceDynamicDTO extends DTOPage {
+    @ApiModelProperty("企业名称列表|企业CID列表")
+    private List<String> keyWords;
+    @ApiModelProperty("财产流向,0 -> 流入 1 -> 流出")
+    private String flowType;
+    @ApiModelProperty("风险等级,1->低级 2->中级 3->高级")
+    private String infoRiskLevel;
+    @ApiModelProperty("线索类型" +
+            "1  -> 新增破产公告\n" +
+            "2  -> 注册资本上升\n" +
+            "3  -> 新增招标信息\n" +
+            "4  -> 软件著作权\n" +
+            "5  -> 作品著作权\n" +
+            "6  -> 有恢复执行案件即将开庭\n" +
+            "7  -> 失信信息移除\n" +
+            "8  -> 出质了持有股权\n" +
+            "9  -> 有新的融资\n" +
+            "10 -> 新增了股东\n" +
+            "11 -> 股东退出\n" +
+            "12 -> 购买了新的土地\n" +
+            "13 -> 抵押了公司土地\n" +
+            "14 -> 资产被抵押\n" +
+            "15 -> 新增专利信息\n" +
+            "16 -> 新增商标信息\n" +
+            "17 -> 被执行人信息移除\n" +
+            "18 -> 限制高消费移除\n" +
+            "19 -> 有恢复执行案件\n" +
+            "20 -> 新增胜诉案件")
+    private String type;
+    @ApiModelProperty("开始时间")
+    private String dateFrom;
+    @ApiModelProperty("结束时间")
+    private String dateEnd;
+    @ApiModelProperty("入库开始时间")
+    private String createDateFrom;
+    @ApiModelProperty("入库结束时间")
+    private String createDateEnd;
+}

+ 38 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/QueryV8DynamicDTO.java

@@ -0,0 +1,38 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.List;
+
+/**
+ * @description: 查询动态数据
+ * @author: Anakin
+ * @date 2021.7.13 10:28
+ */
+@Data
+@ApiModel(description = "查询动态数据")
+public class QueryV8DynamicDTO {
+    @ApiModelProperty("实体名称")
+    private List<String> entityNames;
+    @ApiModelProperty("实体ID")
+    private List<String> entityIds;
+//    @ApiModelProperty("实体类型(保留字段)")
+//    private String entityType;
+//    @ApiModelProperty("折叠数量")
+//    private Integer collapseSize;
+//    @ApiModelProperty("折叠Key")
+//    private String collapseKey;
+    @ApiModelProperty("风险等级 0,利好;1,提示;2,警示;3,高风险")
+    private String riskLevel;
+    @ApiModelProperty("动态类型")
+    private List<String> infoTypes;
+    @ApiModelProperty("开始日期 yyyy-MM-dd")
+    private String startDate;
+    @ApiModelProperty("结束日期 yyyy-MM-dd")
+    private String endDate;
+    @ApiModelProperty("动态入库日期 yyyy-MM-dd")
+    private String updateTime;
+
+}

+ 112 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/ResponseVO.java

@@ -0,0 +1,112 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+/**
+ * @author Aaron
+ * @date 2020/9/11 10:06
+ * @description
+ */
+@Data
+public class ResponseVO<T> {
+    @ApiModelProperty(value="成功:00; 失败:99",name="code", example="SUCCESS")
+    private String code;
+    @ApiModelProperty(value="返回消息",name="msg",example="操作成功")
+    private String msg;
+    @ApiModelProperty(value="返回消息",name="msg",example="操作成功")
+    private String isSuccess;
+    @ApiModelProperty(value="返回体",name="body",example="{}")
+    private T body;
+    @ApiModelProperty(value="成功:00; 失败:99",name="code", example="SUCCESS")
+    private String errorCode;
+    @ApiModelProperty(value="返回消息",name="msg",example="操作成功")
+    private String errorMsg;
+
+    public String getErrorCode() {
+        return errorCode;
+    }
+
+    public void setErrorCode(String errorCode) {
+        this.errorCode = errorCode;
+    }
+
+    public String getErrorMsg() {
+        return errorMsg;
+    }
+
+    public void setErrorMsg(String errorMsg) {
+        this.errorMsg = errorMsg;
+    }
+
+    public String getIsSuccess() {
+        return isSuccess;
+    }
+
+    public void setIsSuccess(String isSuccess) {
+        this.isSuccess = isSuccess;
+    }
+
+    public static <T> ResponseVO<T> retSuccess(T body){
+        ResponseVO<T> vo = new ResponseVO<>(body);
+        return vo.success();
+    }
+
+    public ResponseVO(T body) {
+        this.body = body;
+    }
+    public ResponseVO() {}
+
+    public static <T> ResponseVO<T> retSuccess(){
+        ResponseVO<T> vo = new ResponseVO<>();
+        return vo.success();
+    }
+    public static <T> ResponseVO<T> retFail(){
+        ResponseVO<T> vo = new ResponseVO<>();
+        return vo.fail();
+    }
+    public static <T> ResponseVO<T> retFail(String msg){
+        ResponseVO<T> vo = new ResponseVO<>();
+        return vo.fail(msg);
+    }
+
+    public ResponseVO<T> success(){
+        return success("操作成功");
+    }
+    public ResponseVO<T> success(String msg){
+        code = "00";
+        errorCode="00";
+        this.errorMsg=msg;
+        this.msg = msg;
+        isSuccess="T";
+        return this;
+    }
+
+    public ResponseVO<T> fail(){
+        return fail("");
+    }
+    public ResponseVO<T> fail(String msg){
+        code = "99";
+        isSuccess="F";
+        errorCode="99";
+        this.errorMsg=msg;
+        this.msg = msg;
+        return this;
+    }
+
+    public String getCode() {
+        return code;
+    }
+
+    public void setCode(String code) {
+        this.code = code;
+    }
+
+    public String getMsg() {
+        return msg;
+    }
+
+    public void setMsg(String msg) {
+        this.msg = msg;
+    }
+}

+ 31 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/SensorDTO.java

@@ -0,0 +1,31 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
+import java.io.Serializable;
+import java.util.Map;
+
+/**
+ * @author Aaron
+ * @date 2020/9/2 15:37
+ * @description
+ */
+@Data
+@ApiModel(value="上报神策请求体")
+@Accessors(chain = true)
+public class SensorDTO implements Serializable {
+    @ApiModelProperty("用户唯一标识,服务端时间一般传userId")
+    private String distinctId;
+
+    @ApiModelProperty("是否登录用户")
+    private boolean login;
+
+    @ApiModelProperty("上报事件名称")
+    private String eventName;
+
+    @ApiModelProperty("上报事件属性")
+    private Map<String,Object> properties;
+}

+ 22 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/ServiceCountDTO.java

@@ -0,0 +1,22 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+/**
+ * @Description: ServiceCountDTO
+ * @Author: xda
+ * @Date: 2021/7/6 09:29
+ */
+@Data
+@ApiModel("ServiceCountDTO")
+@AllArgsConstructor
+@NoArgsConstructor
+public class ServiceCountDTO {
+
+    @ApiModelProperty("1追欠款。")
+    private Integer type;
+}

+ 25 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/ServiceCountVO.java

@@ -0,0 +1,25 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.List;
+
+/**
+ * @Description: ServiceCountVO
+ * @Author: xda
+ * @Date: 2021/7/6 09:31
+ */
+@Data
+@ApiModel("ServiceCountVO")
+public class ServiceCountVO {
+
+    @ApiModelProperty("头像list")
+    private List<String> imageList;
+
+    @ApiModelProperty("服务次数")
+    private Long serviceCount;
+
+
+}

+ 49 - 0
src/main/java/com/winhc/returnmoney/cloud/bean/V8DynamicVO.java

@@ -0,0 +1,49 @@
+package com.winhc.returnmoney.cloud.bean;
+
+import com.winhc.returnmoney.model.bo.DynamicDataBO;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.List;
+
+/**
+ * @description: v8动态信息
+ * @author: Anakin
+ * @date 2021.8.2 10:40
+ */
+@Data
+@ApiModel(description = "v8 动态信息")
+public class V8DynamicVO {
+    @ApiModelProperty("ID")
+    private String id;
+    @ApiModelProperty("实体对象列表")
+    private List<AssociationEntityInfo> associationEntityInfo;
+    @ApiModelProperty("业务变更时间 yyyy-MM-dd")
+    private String bizTime;
+    @ApiModelProperty("0 非历史, 1 历史")
+    private String deleted;
+    //不需要折叠
+//    @ApiModelProperty("折叠Key(用于展开折叠数据)")
+//    private String collapseKey;
+//    @ApiModelProperty("折叠总数")
+//    private Long collapseTotal;
+//    @ApiModelProperty("折叠动态列表")
+//    private List<V8DynamicVO> collapseDynamics;
+    @ApiModelProperty("动态CODE")
+    private String dynamicCode;
+    @ApiModelProperty("动态内容")
+    private String dynamicInfo;
+    @ApiModelProperty("动态JSON内容")
+    private List<DynamicDataBO> dynamicJSON;
+    @ApiModelProperty("动态时间 yyyy-MM-dd")
+    private String dynamicTime;
+    @ApiModelProperty("详情Key")
+    private String rowkey;
+    @ApiModelProperty("动态类型")
+    private String tn;
+    @ApiModelProperty("动态类型")
+    private String infoType;
+    @ApiModelProperty("风险等级 利好(0),提示(1),警示(2),高风险(3)")
+    private String riskLevel;
+}

+ 107 - 0
src/main/java/com/winhc/returnmoney/common/BaseController.java

@@ -0,0 +1,107 @@
+package com.winhc.returnmoney.common;
+
+import com.module.login.usersession.UserBean;
+import com.winhc.common.enums.CodeMsg;
+import com.winhc.common.exception.CommonException;
+import com.winhc.common.util.GSON;
+import com.winhc.returnmoney.enums.AppPackageEnum;
+import org.apache.commons.lang.StringUtils;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.springframework.web.context.request.RequestContextHolder;
+import org.springframework.web.context.request.ServletRequestAttributes;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.servlet.http.HttpSession;
+import java.util.Objects;
+
+/**
+ * 所有Action的基础类.
+ * 
+ * @author
+ */
+public abstract class BaseController {
+
+    private static final Log log = LogFactory.getLog(BaseController.class);
+
+
+    protected HttpServletResponse response;
+
+    public HttpSession getSession() {
+        return ((ServletRequestAttributes) Objects.requireNonNull(RequestContextHolder.getRequestAttributes()))
+                .getRequest().getSession();
+    }
+
+    public HttpServletRequest getRequest() {
+        return ((ServletRequestAttributes) Objects.requireNonNull(RequestContextHolder.getRequestAttributes())).getRequest();
+    }
+
+    public String getAppid() {
+        HttpServletRequest request = getRequest();
+        String appId = request.getHeader("appid");
+        return appId;
+    }
+
+    public String getSessionId() {
+        HttpServletRequest request = getRequest();
+        String sessionId = request.getHeader("sessionId");
+        return sessionId;
+    }
+
+    public void getApiInfo() {
+        HttpServletRequest request = getRequest();
+        String apiVersion = request.getHeader("apiVersion");
+        String sessionId = request.getHeader("sessionId");
+        String appId = request.getHeader("appid");
+        String osType = request.getHeader("osType");
+        String deviceId = request.getHeader("deviceId");
+        String brand = request.getHeader("brand");
+        String osVersion = request.getHeader("osVersion");
+        String appVersion = request.getHeader("appVersion");
+        String userInfo = request.getHeader("userInfo");
+        log.info(" *****************************************************************************************************"
+                + "*******************************************************************************************************************");
+        log.info(" userInfo :" + userInfo +",apiVersion :" + apiVersion + " ,sessionId: " + sessionId + " , appId: " + appId
+                + " ,osType: " + osType + " ,deviceId : " + deviceId + " , brand : " + brand
+                + " ,osVersion : " + osVersion + " , appVersion :" + appVersion);
+        log.info(" *****************************************************************************************************"
+                + "*******************************************************************************************************************");
+    }
+
+    /**
+     * 获取app版本
+     * @return java.lang.String
+     * @author xda
+     * @date 2021/5/6 14:20
+     */
+    public String getAppVersion() {
+        HttpServletRequest request = getRequest();
+        return request.getHeader("appVersion");
+    }
+
+    public UserBean getUser() {
+        HttpServletRequest request = getRequest();
+        String userInfo = request.getHeader("userInfo");
+        if (StringUtils.isEmpty(userInfo)) {
+            throw new CommonException(CodeMsg.UNAUTHORIZED);
+        }
+        UserBean user = GSON.fromJson(userInfo, UserBean.class);
+        if (Objects.isNull(user)) {
+            throw new CommonException(CodeMsg.UNAUTHORIZED);
+        }
+        log.info(String.format("userInfo:[%s]", GSON.toJSON(user)));
+        return user;
+    }
+
+    /**
+     * 获取包名
+     * @return java.lang.String
+     * @author xda
+     * @date 2021/10/21 09:26
+     */
+    public String getAppPackageName() {
+        return AppPackageEnum.getAppPackageEnum(getRequest().getHeader("appPackage")).getPackageName();
+    }
+
+}

+ 32 - 0
src/main/java/com/winhc/returnmoney/common/Constant.java

@@ -0,0 +1,32 @@
+package com.winhc.returnmoney.common;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @Description: Constant
+ * @Author: xda
+ * @Date: 2020/12/19  10:19
+ */
+public class Constant {
+
+    public static final String MAX_MONEY = "9999999999.99";
+
+    public static Map<String, String> INFO_TYPE = new HashMap<>();
+
+    public static List<String> IMG_LIST = new ArrayList<>(
+            Arrays.asList("https://winhc.oss-cn-shanghai.aliyuncs.com/app/avatarOne.png",
+                    "https://winhc.oss-cn-shanghai.aliyuncs.com/app/avatarTwo.png",
+                    "https://winhc.oss-cn-shanghai.aliyuncs.com/app/avatarThree.png"));
+
+    /**
+     * 合同模板任务前缀
+     */
+    public static final String COMPLETE_PREFIX_RECEIVABLE = "COMPLETE_RECEIVABLE_";
+
+}
+
+

+ 132 - 0
src/main/java/com/winhc/returnmoney/config/BeanConfig.java

@@ -0,0 +1,132 @@
+package com.winhc.returnmoney.config;
+
+import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
+import com.baomidou.mybatisplus.extension.plugins.pagination.optimize.JsqlParserCountOptimize;
+import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
+import com.fasterxml.jackson.annotation.JsonAutoDetect;
+import com.fasterxml.jackson.annotation.PropertyAccessor;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.xxl.job.core.executor.impl.XxlJobSpringExecutor;
+import io.swagger.annotations.ApiOperation;
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.data.redis.connection.RedisConnectionFactory;
+import org.springframework.data.redis.core.RedisTemplate;
+import org.springframework.data.redis.core.StringRedisTemplate;
+import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer;
+import springfox.documentation.builders.ApiInfoBuilder;
+import springfox.documentation.builders.PathSelectors;
+import springfox.documentation.builders.RequestHandlerSelectors;
+import springfox.documentation.builders.RequestParameterBuilder;
+import springfox.documentation.oas.annotations.EnableOpenApi;
+import springfox.documentation.service.ApiInfo;
+import springfox.documentation.service.Contact;
+import springfox.documentation.service.ParameterType;
+import springfox.documentation.service.RequestParameter;
+import springfox.documentation.spi.DocumentationType;
+import springfox.documentation.spring.web.plugins.Docket;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * @Description: BeanConfig
+ * @Author: xda
+ * @Date: 2021/4/26 17:55
+ */
+@EnableOpenApi
+@Configuration
+@MapperScan("com.winhc.returnmoney.repository")
+@EnableApolloConfig({"application", "DEV.WINHC-COMMON"})
+public class BeanConfig {
+
+
+    @Value("${xxl.job.accessToken}")
+    private String accessToken;
+
+    @Value("${spring.application.name}")
+    private String appName;
+
+    @Value("${server.port}")
+    private int serverPort;
+
+    @Value("${xxl.job.executor.logpath}")
+    private String logPath;
+
+    @Value("${xxl.job.executor.logretentiondays}")
+    private int logRetentionDays;
+
+    @Value("${xxl.job.admin.addresses}")
+    private String adminAddress;
+
+
+    @Bean
+    public XxlJobSpringExecutor xxlJobExecutor() {
+        XxlJobSpringExecutor xxlJobSpringExecutor = new XxlJobSpringExecutor();
+        xxlJobSpringExecutor.setPort(serverPort + 10000);
+        xxlJobSpringExecutor.setAdminAddresses(adminAddress);
+        xxlJobSpringExecutor.setAppname(appName);
+        xxlJobSpringExecutor.setAccessToken(accessToken);
+        xxlJobSpringExecutor.setLogRetentionDays(logRetentionDays);
+        xxlJobSpringExecutor.setLogPath(logPath);
+        return xxlJobSpringExecutor;
+    }
+
+    @Bean
+    public PaginationInterceptor paginationInterceptor() {
+        PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
+        // 设置请求的页面大于最大页后操作, true调回到首页,false 继续请求  默认false
+        paginationInterceptor.setOverflow(false);
+        // 设置最大单页限制数量,默认 1000 条,-1 不受限制
+        paginationInterceptor.setLimit(1000);
+        // 开启 count 的 join 优化,只针对部分 left join
+        paginationInterceptor.setCountSqlParser(new JsqlParserCountOptimize(true));
+        return paginationInterceptor;
+    }
+
+    @Bean
+    public RedisTemplate<String, String> redisTemplate(RedisConnectionFactory factory) {
+        StringRedisTemplate template = new StringRedisTemplate(factory);
+        Jackson2JsonRedisSerializer<Object> jackson2JsonRedisSerializer = new Jackson2JsonRedisSerializer<>(
+                Object.class);
+        ObjectMapper om = new ObjectMapper();
+        om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY);
+        om.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL);
+        jackson2JsonRedisSerializer.setObjectMapper(om);
+        //序列化 值时使用此序列化方法
+        template.setValueSerializer(jackson2JsonRedisSerializer);
+        template.afterPropertiesSet();
+        return template;
+    }
+
+    @Value("${spring.application.name}")
+    private String applicationName;
+
+    @Bean
+    public Docket createRestApi() {
+        List<RequestParameter> list = new ArrayList<>();
+        list.add(new RequestParameterBuilder()
+                .name("userInfo")
+                .description("用户信息")
+                .required(false)
+                .in(ParameterType.HEADER)
+                .build());
+        return new Docket(DocumentationType.OAS_30)
+                .apiInfo(apiInfo())
+                .select()
+                .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))
+                .paths(PathSelectors.any())
+                .build().globalRequestParameters(list);
+    }
+
+    private ApiInfo apiInfo() {
+        return new ApiInfoBuilder()
+                .title(applicationName + "接口文档")
+                .description("更多接口相关问题咨询服务开发者")
+                .contact(new Contact("winhc", "http://www.winhc.cn", "xuda@winhc.cn"))
+                .version("1.0")
+                .build();
+    }
+}

+ 67 - 0
src/main/java/com/winhc/returnmoney/config/CharlesRequestInterceptor.java

@@ -0,0 +1,67 @@
+package com.winhc.returnmoney.config;
+
+import com.fasterxml.jackson.databind.JsonNode;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import feign.Request;
+import feign.RequestInterceptor;
+import feign.RequestTemplate;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.util.StringUtils;
+
+import java.io.IOException;
+import java.util.*;
+
+/**
+ * 解决feign使用get方法传递bean
+ */
+@Configuration
+public class CharlesRequestInterceptor implements RequestInterceptor {
+    @Autowired
+    private ObjectMapper objectMapper;
+
+    @Override
+    public void apply(RequestTemplate template) {
+        // feign 不支持 GET 方法传 POJO, json body转query
+        if ("GET".equals(template.method()) && template.body() != null) {
+            try {
+                JsonNode jsonNode = objectMapper.readTree(template.body());
+
+                template.body(Request.Body.empty());
+
+                Map<String, Collection<String>> queries = new HashMap<>();
+                buildQuery(jsonNode, "", queries);
+                template.queries(queries);
+            } catch (IOException e) {
+                e.printStackTrace();
+            }
+        }
+    }
+
+    private void buildQuery(JsonNode jsonNode, String path, Map<String, Collection<String>> queries) {
+        if (!jsonNode.isContainerNode()) { // 叶子节点
+            if (jsonNode.isNull()) {
+                return;
+            }
+            Collection<String> values = queries.computeIfAbsent(path, k -> new ArrayList<>());
+            values.add(jsonNode.asText());
+            return;
+        }
+        if (jsonNode.isArray()) { // 数组节点
+            Iterator<JsonNode> it = jsonNode.elements();
+            while (it.hasNext()) {
+                buildQuery(it.next(), path, queries);
+            }
+        } else {
+            Iterator<Map.Entry<String, JsonNode>> it = jsonNode.fields();
+            while (it.hasNext()) {
+                Map.Entry<String, JsonNode> entry = it.next();
+                if (StringUtils.hasText(path)) {
+                    buildQuery(entry.getValue(), path + "." + entry.getKey(), queries);
+                } else { // 根节点
+                    buildQuery(entry.getValue(), entry.getKey(), queries);
+                }
+            }
+        }
+    }
+}

+ 112 - 0
src/main/java/com/winhc/returnmoney/controller/AccountBillController.java

@@ -0,0 +1,112 @@
+//package com.winhc.returnmoney.controller;
+//
+//import com.winhc.common.base.BeanResponse;
+//import com.winhc.common.enums.CodeMsg;
+//import com.winhc.common.model.base.VOPage;
+//import com.winhc.returnmoney.common.BaseController;
+//import com.winhc.returnmoney.entity.AccountBill;
+//import com.winhc.returnmoney.model.dto.*;
+//import com.winhc.returnmoney.model.vo.*;
+//import com.winhc.returnmoney.service.AccountBillService;
+//import com.winhc.returnmoney.util.RequesterUtil;
+//import io.swagger.annotations.Api;
+//import io.swagger.annotations.ApiOperation;
+//import lombok.extern.slf4j.Slf4j;
+//import org.springframework.beans.factory.annotation.Autowired;
+//import org.springframework.validation.annotation.Validated;
+//import org.springframework.web.bind.annotation.*;
+//
+//import java.util.List;
+//
+//
+///**
+// * @description AccountBill Controller
+// * @author Generator
+// * @date 2020-12-15
+// */
+//@Slf4j
+//@Api(tags = "账款")
+//@RestController
+//@RequestMapping(value = "/accountBill")
+//public class AccountBillController extends BaseController {
+//
+//    @Autowired
+//    private AccountBillService accountBillService;
+//
+//    @ApiOperation("获取账本下的账款列表")
+//    @RequestMapping( method = RequestMethod.GET)
+//    public BeanResponse<VOPage<AccountBillListVO>> getAccountBillList(@Validated GetAccountBillListDTO dto) {
+//        return BeanResponse.success(CodeMsg.SUCCESS, accountBillService.getAccountBillList(dto.setUserId(RequesterUtil.getCurrentUserId())));
+//    }
+//
+//    @ApiOperation("获取账款信息by账款id")
+//    @RequestMapping(value = "/{id}", method = RequestMethod.GET)
+//    public BeanResponse<AccountBillDetailVO> getAccountBillDetailById(@PathVariable("id") Long id) {
+//        return BeanResponse.success(CodeMsg.SUCCESS, accountBillService.getAccountBillDetailById(id, RequesterUtil.getCurrentUserId(), getAppPackageName(), getAppVersion()));
+//    }
+//
+//    @ApiOperation("根据类型和账款id修改账款信息")
+//    @RequestMapping(value = "/{id}", method = RequestMethod.PUT)
+//    public BeanResponse<Boolean> updateAccountBillByType(@PathVariable("id")Long id, @Validated @RequestBody UpdateAccountBillDTO dto) {
+//        return BeanResponse.success(CodeMsg.SUCCESS, accountBillService.updateAccountBillByType(dto.setUserId(RequesterUtil.getCurrentUserId()).setAccountBillId(id)));
+//    }
+//
+//    @ApiOperation("新增账款")
+//    @RequestMapping(method = RequestMethod.POST)
+//    public BeanResponse<AccountBillVO> addAccountBook(@Validated @RequestBody AddAccountBillDTO dto) {
+//        return BeanResponse.success(CodeMsg.SUCCESS, accountBillService.addAccountBill(dto, RequesterUtil.getCurrentUserId()));
+//    }
+//
+//    @ApiOperation("删除账款")
+//    @DeleteMapping("/{id}")
+//    public BeanResponse<Boolean> delAccountBook(@PathVariable("id")Long id){
+//        return BeanResponse.success(CodeMsg.SUCCESS, accountBillService.deleteAccountBill(id,RequesterUtil.getCurrentUser()));
+//    }
+//
+//    @ApiOperation("简易轮询账款")
+//    @RequestMapping(value = "/poll/{id}", method = RequestMethod.GET)
+//    public BeanResponse<AccountBillVO> pollAccountBillById(@PathVariable("id")Long id) {
+//        return BeanResponse.success(CodeMsg.SUCCESS, accountBillService.pollAccountBillById(new AccountBill().setId(id).setUserId(RequesterUtil.getCurrentUserId())));
+//    }
+//
+//    @ApiOperation("批量轮询")
+//    @RequestMapping(value = "/poll/batch", method = RequestMethod.POST)
+//    public BeanResponse<List<AccountBillVO>> pollBatchAccountBillByIds(@RequestBody BatchPollAccountBillDTO dto) {
+//        return BeanResponse.success(CodeMsg.SUCCESS, accountBillService.pollBatchAccountBillByIds(dto.setUserId(RequesterUtil.getCurrentUserId())));
+//    }
+//
+//    @ApiOperation("联系客服")
+//    @RequestMapping(value = "/apply", method = RequestMethod.GET)
+//    public BeanResponse<Boolean> applyCustomerService(ApplyCustomerServiceDTO dto) {
+//        return BeanResponse.success(CodeMsg.SUCCESS, accountBillService.applyCustomerService(dto.setUserId(RequesterUtil.getCurrentUserId())));
+//    }
+//
+//    @ApiOperation("批量导入")
+//    @RequestMapping(value = "/batchImport", method = RequestMethod.POST)
+//    public BeanResponse<BatchImportResultVO> batchImportAccountBill(@RequestBody List<BatchImportAccountBillDTO> dtoList) {
+//        return BeanResponse.success(CodeMsg.SUCCESS, accountBillService.batchImportAccountBill(dtoList));
+//    }
+//
+//    @ApiOperation("账款添加一笔已收回记录")
+//    @RequestMapping(value = "/receipt", method = RequestMethod.POST)
+//    public BeanResponse<Boolean> addAccountBillReceipt(@RequestBody AddAccountBillReceiptDTO dto) {
+//        return BeanResponse.success(CodeMsg.SUCCESS, accountBillService.addAccountBillReceipt(dto, RequesterUtil.getCurrentUserId()));
+//    }
+//
+////    @Deprecated
+////    @ApiOperation("修复cid对应companyId")
+////    @RequestMapping(value = "/fixCompanyId", method = RequestMethod.POST)
+////    public BeanResponse<Boolean> fixCompanyId() {
+////        return BeanResponse.success(CodeMsg.SUCCESS, accountBillService.fixCompanyId());
+////    }
+//
+//    @ApiOperation("获取用户应收账款总额和笔数")
+//    @RequestMapping(value = "/total/{userId}", method = RequestMethod.GET)
+//    public BeanResponse<AccountBillTotalVO> getTotalMoneyAndCount(@PathVariable("userId") Long userId) {
+//        return BeanResponse.success(CodeMsg.SUCCESS, accountBillService.getTotalMoneyAndCount(userId));
+//    }
+//
+//
+//
+//
+//}

+ 99 - 0
src/main/java/com/winhc/returnmoney/controller/AccountBillDiagnosisController.java

@@ -0,0 +1,99 @@
+//package com.winhc.returnmoney.controller;
+//
+//import com.winhc.common.base.BeanResponse;
+//import com.winhc.common.enums.CodeMsg;
+//import com.winhc.common.model.base.VOPage;
+//import com.winhc.returnmoney.model.vo.DiagnosisHistoryVO;
+//import com.winhc.returnmoney.model.vo.DiagnosisSectionVO;
+//import com.winhc.returnmoney.mq.bean.RiskScoreDataTransfer;
+//import com.winhc.returnmoney.service.AccountBillDiagnosisService;
+//import io.swagger.annotations.Api;
+//import io.swagger.annotations.ApiOperation;
+//import lombok.extern.slf4j.Slf4j;
+//import org.springframework.beans.factory.annotation.Autowired;
+//import org.springframework.web.bind.annotation.PathVariable;
+//import org.springframework.web.bind.annotation.RequestMapping;
+//import org.springframework.web.bind.annotation.RequestMethod;
+//import org.springframework.web.bind.annotation.RequestParam;
+//import org.springframework.web.bind.annotation.RestController;
+//
+//
+///**
+// * @description AccountBillDiagnosis Controller
+// * @author Generator
+// * @date 2020-12-15
+// */
+//@Slf4j
+//@Api(tags = "账款评级")
+//@RestController
+//@RequestMapping("/accountBillDiagnosis")
+//public class AccountBillDiagnosisController {
+//
+//    @Autowired
+//    private AccountBillDiagnosisService diagnosisService;
+//
+//    @ApiOperation("账款评级历史")
+//    @RequestMapping(value = "/history/{id}", method = RequestMethod.GET)
+//    public BeanResponse<VOPage<DiagnosisHistoryVO>> getDiagnosisHistory(@PathVariable("id") Long id,
+//                                                                @RequestParam(value = "pageNum" , defaultValue = "1")Integer pageNum,
+//                                                                @RequestParam(value = "pageSize", defaultValue = "10")Integer pageSize) {
+//        return BeanResponse.success(CodeMsg.SUCCESS, diagnosisService.getDiagnosisHistory(id, pageNum, pageSize));
+//    }
+//
+//    @ApiOperation("账款评级区间历史")
+//    @RequestMapping(value = "/dynamic/{id}", method = RequestMethod.GET)
+//    public BeanResponse<DiagnosisSectionVO> getDiagnosisDynamic(@PathVariable("id")Long id) {
+//        return BeanResponse.success(CodeMsg.SUCCESS, diagnosisService.getDiagnosisDynamic(id));
+//    }
+//
+//    @ApiOperation("report回调接口")
+//    @RequestMapping(value = "/open/grade/refresh", method = RequestMethod.GET)
+//    public BeanResponse<Boolean> updateGrade(RiskScoreDataTransfer transfer){
+//        diagnosisService.updateGrade(transfer);
+//        return BeanResponse.success(CodeMsg.SUCCESS,Boolean.TRUE);
+//    }
+//
+//
+//
+//    //@Autowired
+//    //private AccountBillDiagnosisService accountBillDiagnosisService;
+//    //
+//    //@PostMapping
+//    //@ApiOperation(value = "add AccountBillDiagnosis")
+//    //public ApiResult add(@Validated @RequestBody AccountBillDiagnosisDTO dto) {
+//    //    accountBillDiagnosisService.add(dto);
+//    //    return ResultUtil.response(CodeMsg.SUCCESS);
+//    //}
+//    //
+//    //@PutMapping("/{id}")
+//    //@ApiOperation(value = "update AccountBillDiagnosis")
+//    //public ApiResult update(@PathVariable Long id, @Validated @RequestBody AccountBillDiagnosisDTO dto) {
+//    //    accountBillDiagnosisService.update(id, dto);
+//    //    return ResultUtil.response(CodeMsg.SUCCESS);
+//    //}
+//    //
+//    //@GetMapping("/{id}")
+//    //@ApiOperation(value = "find AccountBillDiagnosis")
+//    //public ApiDataResult<AccountBillDiagnosisVO> find(@PathVariable Long id) {
+//    //    return ResultUtil.response(CodeMsg.SUCCESS,accountBillDiagnosisService.find(id));
+//    //}
+//    //
+//    //@DeleteMapping("/{id}")
+//    //@ApiOperation(value = "delete AccountBillDiagnosis")
+//    //public ApiResult delete(@PathVariable Long id) {
+//    //    accountBillDiagnosisService.delete(id);
+//    //    return ResultUtil.response(CodeMsg.SUCCESS);
+//    //}
+//    //
+//    //@GetMapping("/list")
+//    //@ApiOperation(value = "list of AccountBillDiagnosis")
+//    //public ApiDataResult<List<AccountBillDiagnosisVO>> list(AccountBillDiagnosisDTO dto) {
+//    //    return ResultUtil.response(CodeMsg.SUCCESS,accountBillDiagnosisService.find(dto));
+//    //}
+//    //
+//    //@GetMapping("/page")
+//    //@ApiOperation(value = "page of AccountBillDiagnosis")
+//    //public ApiDataResult<VOPage<AccountBillDiagnosisVO>> page(AccountBillDiagnosisDTO dto, @RequestParam Integer pageNum, @RequestParam Integer pageSize) {
+//    //    return ResultUtil.response(CodeMsg.SUCCESS,accountBillDiagnosisService.find(dto, pageNum, pageSize));
+//    //}
+//}

+ 78 - 0
src/main/java/com/winhc/returnmoney/controller/AccountBillMoneyRecordController.java

@@ -0,0 +1,78 @@
+//package com.winhc.returnmoney.controller;
+//
+//import com.winhc.common.base.BeanResponse;
+//import com.winhc.common.enums.CodeMsg;
+//import com.winhc.returnmoney.model.vo.BillMoneyChangeRecordVO;
+//import com.winhc.returnmoney.service.AccountBillMoneyRecordService;
+//import org.springframework.web.bind.annotation.RequestMapping;
+//import org.springframework.beans.factory.annotation.Autowired;
+//import org.springframework.web.bind.annotation.*;
+//import java.util.List;
+//import lombok.extern.slf4j.Slf4j;
+//import io.swagger.annotations.Api;
+//import io.swagger.annotations.ApiOperation;
+//import org.springframework.web.bind.annotation.RestController;
+//
+//
+///**
+// * @description AccountBillMoneyRecord Controller
+// * @author Generator
+// * @date 2020-12-15
+// */
+//@Slf4j
+//@Api(tags = "账款金额变动记录")
+//@RestController
+//@RequestMapping("/accountBillMoneyRecord")
+//public class AccountBillMoneyRecordController {
+//
+//    @Autowired
+//    private AccountBillMoneyRecordService moneyRecordService;
+//
+//    @ApiOperation(value = "变动记录list")
+//    @RequestMapping(value = "/{accountBillId}", method = RequestMethod.GET)
+//    public BeanResponse<List<BillMoneyChangeRecordVO>> getChangeRecordList(@PathVariable("accountBillId")Long accountBillId) {
+//        return BeanResponse.success(CodeMsg.SUCCESS, moneyRecordService.getChangeRecordList(accountBillId));
+//    }
+//
+//    //@Autowired
+//    //private AccountBillMoneyRecordService accountBillMoneyRecordService;
+//    //
+//    //@PostMapping
+//    //@ApiOperation(value = "add AccountBillMoneyRecord")
+//    //public ApiResult add(@Validated @RequestBody AccountBillMoneyRecordDTO dto) {
+//    //    accountBillMoneyRecordService.add(dto);
+//    //    return ResultUtil.response(CodeMsg.SUCCESS);
+//    //}
+//    //
+//    //@PutMapping("/{id}")
+//    //@ApiOperation(value = "update AccountBillMoneyRecord")
+//    //public ApiResult update(@PathVariable Long id, @Validated @RequestBody AccountBillMoneyRecordDTO dto) {
+//    //    accountBillMoneyRecordService.update(id, dto);
+//    //    return ResultUtil.response(CodeMsg.SUCCESS);
+//    //}
+//    //
+//    //@GetMapping("/{id}")
+//    //@ApiOperation(value = "find AccountBillMoneyRecord")
+//    //public ApiDataResult<AccountBillMoneyRecordVO> find(@PathVariable Long id) {
+//    //    return ResultUtil.response(CodeMsg.SUCCESS,accountBillMoneyRecordService.find(id));
+//    //}
+//    //
+//    //@DeleteMapping("/{id}")
+//    //@ApiOperation(value = "delete AccountBillMoneyRecord")
+//    //public ApiResult delete(@PathVariable Long id) {
+//    //    accountBillMoneyRecordService.delete(id);
+//    //    return ResultUtil.response(CodeMsg.SUCCESS);
+//    //}
+//    //
+//    //@GetMapping("/list")
+//    //@ApiOperation(value = "list of AccountBillMoneyRecord")
+//    //public ApiDataResult<List<AccountBillMoneyRecordVO>> list(AccountBillMoneyRecordDTO dto) {
+//    //    return ResultUtil.response(CodeMsg.SUCCESS,accountBillMoneyRecordService.find(dto));
+//    //}
+//    //
+//    //@GetMapping("/page")
+//    //@ApiOperation(value = "page of AccountBillMoneyRecord")
+//    //public ApiDataResult<VOPage<AccountBillMoneyRecordVO>> page(AccountBillMoneyRecordDTO dto, @RequestParam Integer pageNum, @RequestParam Integer pageSize) {
+//    //    return ResultUtil.response(CodeMsg.SUCCESS,accountBillMoneyRecordService.find(dto, pageNum, pageSize));
+//    //}
+//}

+ 60 - 0
src/main/java/com/winhc/returnmoney/controller/AccountBillOperLogController.java

@@ -0,0 +1,60 @@
+//package com.winhc.returnmoney.controller;
+//
+//import org.springframework.web.bind.annotation.RequestMapping;
+//import lombok.extern.slf4j.Slf4j;
+//import io.swagger.annotations.Api;
+//import org.springframework.web.bind.annotation.RestController;
+//
+//
+///**
+// * @description AccountBillOperLog Controller
+// * @author Generator
+// * @date 2020-12-15
+// */
+//@Slf4j
+//@Api(tags = "AccountBillOperLog Controller")
+//@RestController
+//@RequestMapping("accountBillOperLog")
+//public class AccountBillOperLogController {
+//    //@Autowired
+//    //private AccountBillOperLogService accountBillOperLogService;
+//    //
+//    //@PostMapping
+//    //@ApiOperation(value = "add AccountBillOperLog")
+//    //public ApiResult add(@Validated @RequestBody AccountBillOperLogDTO dto) {
+//    //    accountBillOperLogService.add(dto);
+//    //    return ResultUtil.response(CodeMsg.SUCCESS);
+//    //}
+//    //
+//    //@PutMapping("/{id}")
+//    //@ApiOperation(value = "update AccountBillOperLog")
+//    //public ApiResult update(@PathVariable Long id, @Validated @RequestBody AccountBillOperLogDTO dto) {
+//    //    accountBillOperLogService.update(id, dto);
+//    //    return ResultUtil.response(CodeMsg.SUCCESS);
+//    //}
+//    //
+//    //@GetMapping("/{id}")
+//    //@ApiOperation(value = "find AccountBillOperLog")
+//    //public ApiDataResult<AccountBillOperLogVO> find(@PathVariable Long id) {
+//    //    return ResultUtil.response(CodeMsg.SUCCESS,accountBillOperLogService.find(id));
+//    //}
+//    //
+//    //@DeleteMapping("/{id}")
+//    //@ApiOperation(value = "delete AccountBillOperLog")
+//    //public ApiResult delete(@PathVariable Long id) {
+//    //    accountBillOperLogService.delete(id);
+//    //    return ResultUtil.response(CodeMsg.SUCCESS);
+//    //}
+//    //
+//    //@GetMapping("/list")
+//    //@ApiOperation(value = "list of AccountBillOperLog")
+//    //public ApiDataResult<List<AccountBillOperLogVO>> list(AccountBillOperLogDTO dto) {
+//    //    return ResultUtil.response(CodeMsg.SUCCESS,accountBillOperLogService.find(dto));
+//    //}
+//    //
+//    //@GetMapping("/page")
+//    //@ApiOperation(value = "page of AccountBillOperLog")
+//    //public ApiDataResult<VOPage<AccountBillOperLogVO>> page(AccountBillOperLogDTO dto, @RequestParam Integer pageNum, @RequestParam Integer pageSize) {
+//    //    return ResultUtil.response(CodeMsg.SUCCESS,accountBillOperLogService.find(dto, pageNum, pageSize));
+//    //}
+//}

+ 60 - 0
src/main/java/com/winhc/returnmoney/controller/AccountBillPayerController.java

@@ -0,0 +1,60 @@
+//package com.winhc.returnmoney.controller;
+//
+//import org.springframework.web.bind.annotation.RequestMapping;
+//import lombok.extern.slf4j.Slf4j;
+//import io.swagger.annotations.Api;
+//import org.springframework.web.bind.annotation.RestController;
+//
+//
+///**
+// * @description AccountBillPayer Controller
+// * @author Generator
+// * @date 2020-12-15
+// */
+//@Slf4j
+//@Api(tags = "AccountBillPayer Controller")
+//@RestController
+//@RequestMapping("accountBillPayer")
+//public class AccountBillPayerController {
+//    //@Autowired
+//    //private AccountBillPayerService accountBillPayerService;
+//    //
+//    //@PostMapping
+//    //@ApiOperation(value = "add AccountBillPayer")
+//    //public ApiResult add(@Validated @RequestBody AccountBillPayerDTO dto) {
+//    //    accountBillPayerService.add(dto);
+//    //    return ResultUtil.response(CodeMsg.SUCCESS);
+//    //}
+//    //
+//    //@PutMapping("/{id}")
+//    //@ApiOperation(value = "update AccountBillPayer")
+//    //public ApiResult update(@PathVariable Long id, @Validated @RequestBody AccountBillPayerDTO dto) {
+//    //    accountBillPayerService.update(id, dto);
+//    //    return ResultUtil.response(CodeMsg.SUCCESS);
+//    //}
+//    //
+//    //@GetMapping("/{id}")
+//    //@ApiOperation(value = "find AccountBillPayer")
+//    //public ApiDataResult<AccountBillPayerVO> find(@PathVariable Long id) {
+//    //    return ResultUtil.response(CodeMsg.SUCCESS,accountBillPayerService.find(id));
+//    //}
+//    //
+//    //@DeleteMapping("/{id}")
+//    //@ApiOperation(value = "delete AccountBillPayer")
+//    //public ApiResult delete(@PathVariable Long id) {
+//    //    accountBillPayerService.delete(id);
+//    //    return ResultUtil.response(CodeMsg.SUCCESS);
+//    //}
+//    //
+//    //@GetMapping("/list")
+//    //@ApiOperation(value = "list of AccountBillPayer")
+//    //public ApiDataResult<List<AccountBillPayerVO>> list(AccountBillPayerDTO dto) {
+//    //    return ResultUtil.response(CodeMsg.SUCCESS,accountBillPayerService.find(dto));
+//    //}
+//    //
+//    //@GetMapping("/page")
+//    //@ApiOperation(value = "page of AccountBillPayer")
+//    //public ApiDataResult<VOPage<AccountBillPayerVO>> page(AccountBillPayerDTO dto, @RequestParam Integer pageNum, @RequestParam Integer pageSize) {
+//    //    return ResultUtil.response(CodeMsg.SUCCESS,accountBillPayerService.find(dto, pageNum, pageSize));
+//    //}
+//}

+ 65 - 0
src/main/java/com/winhc/returnmoney/controller/AccountBookController.java

@@ -0,0 +1,65 @@
+//package com.winhc.returnmoney.controller;
+//
+//import com.winhc.common.base.BeanResponse;
+//import com.winhc.common.enums.CodeMsg;
+//import com.winhc.returnmoney.model.dto.RefreshGradeDTO;
+//import com.winhc.returnmoney.model.dto.UpdateAccountBookDTO;
+//import com.winhc.returnmoney.model.vo.AccountBookDetailVO;
+//import com.winhc.returnmoney.model.vo.AccountBookVO;
+//import com.winhc.returnmoney.service.AccountBookService;
+//import com.winhc.returnmoney.util.RequesterUtil;
+//import io.swagger.annotations.Api;
+//import io.swagger.annotations.ApiOperation;
+//import lombok.extern.slf4j.Slf4j;
+//import org.springframework.beans.factory.annotation.Autowired;
+//import org.springframework.web.bind.annotation.*;
+//
+//import java.util.List;
+//
+//
+///**
+// * @description AccountBook Controller
+// * @author Generator
+// * @date 2020-12-15
+// */
+//@Slf4j
+//@Api(tags = "账本")
+//@RestController
+//@RequestMapping("/accountBook")
+//public class AccountBookController {
+//
+//    @Autowired
+//    private AccountBookService accountBookService;
+//
+//    @ApiOperation(value = "获取账本列表")
+//    @RequestMapping( method = RequestMethod.GET)
+//    public BeanResponse<List<AccountBookVO>> getAccountBookList() {
+//        return BeanResponse.success(CodeMsg.SUCCESS, accountBookService.getAccountBookList(RequesterUtil.getCurrentUserId()));
+//    }
+//
+//    @ApiOperation(value = "查看单个账本")
+//    @RequestMapping(value = "/{id}", method = RequestMethod.GET)
+//    public BeanResponse<AccountBookDetailVO> getAccountBookById(@PathVariable("id") Long id) {
+//        return BeanResponse.success(CodeMsg.SUCCESS, accountBookService.getAccountBookById(id, RequesterUtil.getCurrentUserId()));
+//    }
+//
+//    @ApiOperation("设置账本name")
+//    @RequestMapping(value = "/{id}", method = RequestMethod.PUT)
+//    public BeanResponse<Boolean> updateAccountBookNameById(@PathVariable("id")Long id, @RequestBody UpdateAccountBookDTO dto) {
+//        return BeanResponse.success(CodeMsg.SUCCESS, accountBookService.updateAccountBookNameById(dto.setUserId(RequesterUtil.getCurrentUserId()).setAccountBookId(id)));
+//    }
+//
+//    @ApiOperation("刷新账本下所有账款评级")
+//    @PostMapping("/refresh")
+//    @Deprecated
+//    public BeanResponse<Boolean> refreshGrade(@RequestBody RefreshGradeDTO refreshGradeDTO) {
+//        return BeanResponse.success(CodeMsg.SUCCESS, accountBookService.refreshGrade(refreshGradeDTO,RequesterUtil.getCurrentUserId()));
+//    }
+//
+//    @ApiOperation("删除账本")
+//    @RequestMapping(value = "/{accountBookId}", method = RequestMethod.DELETE)
+//    public BeanResponse<Boolean> deleteAccountBook(@PathVariable("accountBookId") Long accountBookId) {
+//        return BeanResponse.success(CodeMsg.SUCCESS, accountBookService.deleteAccountBook(accountBookId, RequesterUtil.getCurrentUserId()));
+//    }
+//
+//}

+ 99 - 0
src/main/java/com/winhc/returnmoney/controller/AccountBookOpenController.java

@@ -0,0 +1,99 @@
+//package com.winhc.returnmoney.controller;
+//
+//import com.winhc.common.base.BeanResponse;
+//import com.winhc.common.enums.CodeMsg;
+//import com.winhc.common.model.base.VOPage;
+//import com.winhc.returnmoney.common.BaseController;
+//import com.winhc.returnmoney.model.dto.GetAccountBillListDTO;
+//import com.winhc.returnmoney.model.vo.AccountBillDetailVO;
+//import com.winhc.returnmoney.model.vo.AccountBillListVO;
+//import com.winhc.returnmoney.model.vo.AccountBookDetailVO;
+//import com.winhc.returnmoney.model.vo.AccountBookVO;
+//import com.winhc.returnmoney.model.vo.BillMoneyChangeRecordVO;
+//import com.winhc.returnmoney.model.vo.DiagnosisHistoryVO;
+//import com.winhc.returnmoney.model.vo.DiagnosisSectionVO;
+//import com.winhc.returnmoney.service.AccountBillDiagnosisService;
+//import com.winhc.returnmoney.service.AccountBillMoneyRecordService;
+//import com.winhc.returnmoney.service.AccountBillService;
+//import com.winhc.returnmoney.service.AccountBookService;
+//import io.swagger.annotations.Api;
+//import io.swagger.annotations.ApiOperation;
+//import org.springframework.beans.factory.annotation.Autowired;
+//import org.springframework.web.bind.annotation.PathVariable;
+//import org.springframework.web.bind.annotation.RequestMapping;
+//import org.springframework.web.bind.annotation.RequestMethod;
+//import org.springframework.web.bind.annotation.RequestParam;
+//import org.springframework.web.bind.annotation.RestController;
+//
+//import java.util.List;
+//
+///**
+// * @Description: AccountBookOpenController
+// * @Author: xda
+// * @Date: 2020/12/21  18:20
+// */
+//@Api(tags = "演示数据")
+//@RestController
+//@RequestMapping("/open")
+//public class AccountBookOpenController extends BaseController {
+//
+//    @Autowired
+//    private AccountBillService accountBillService;
+//
+//    @Autowired
+//    private AccountBookService accountBookService;
+//
+//    @Autowired
+//    private AccountBillMoneyRecordService moneyRecordService;
+//
+//    @Autowired
+//    private AccountBillDiagnosisService diagnosisService;
+//
+//    // 11.3.5 USER WINHC
+//
+//    @ApiOperation(value = "获取账本列表")
+//    @RequestMapping(value = "/accountBook", method = RequestMethod.GET)
+//    public BeanResponse<List<AccountBookVO>> getAccountBookList() {
+//        return BeanResponse.success(CodeMsg.SUCCESS, accountBookService.getAccountBookList(0L));
+//    }
+//
+//    @ApiOperation(value = "查看单个账本")
+//    @RequestMapping(value = "/accountBook/{id}", method = RequestMethod.GET)
+//    public BeanResponse<AccountBookDetailVO> getAccountBookById(@PathVariable("id") Long id) {
+//        return BeanResponse.success(CodeMsg.SUCCESS, accountBookService.getAccountBookById(id, 0L));
+//    }
+//
+//    @ApiOperation("获取账本下的账款列表")
+//    @RequestMapping(value = "/accountBill", method = RequestMethod.GET)
+//    public BeanResponse<VOPage<AccountBillListVO>> getAccountBillList(GetAccountBillListDTO dto) {
+//        return BeanResponse.success(CodeMsg.SUCCESS, accountBillService.getAccountBillList(dto.setUserId(0L)));
+//    }
+//
+//    @ApiOperation("获取账款信息by账款id")
+//    @RequestMapping(value = "/accountBill/{id}", method = RequestMethod.GET)
+//    public BeanResponse<AccountBillDetailVO> getAccountBillDetailById(@PathVariable("id") Long id) {
+//        return BeanResponse.success(CodeMsg.SUCCESS, accountBillService.getAccountBillDetailById(id, 0L, getAppPackageName(), getAppVersion()));
+//    }
+//
+//    @ApiOperation(value = "变动记录list")
+//    @RequestMapping(value = "/accountBillMoneyRecord/{accountBillId}", method = RequestMethod.GET)
+//    public BeanResponse<List<BillMoneyChangeRecordVO>> getChangeRecordList(@PathVariable("accountBillId")Long accountBillId) {
+//        return BeanResponse.success(CodeMsg.SUCCESS, moneyRecordService.getChangeRecordList(accountBillId));
+//    }
+//
+//    @ApiOperation("账款评级历史")
+//    @RequestMapping(value = "/accountBillDiagnosis/history/{id}", method = RequestMethod.GET)
+//    public BeanResponse<VOPage<DiagnosisHistoryVO>> getDiagnosisHistory(@PathVariable("id") Long id,
+//                                                                        @RequestParam(value = "pageNum" , defaultValue = "1")Integer pageNum,
+//                                                                        @RequestParam(value = "pageSize", defaultValue = "10")Integer pageSize) {
+//        return BeanResponse.success(CodeMsg.SUCCESS, diagnosisService.getDiagnosisHistory(id, pageNum, pageSize));
+//    }
+//
+//    @ApiOperation("账款评级区间历史")
+//    @RequestMapping(value = "/accountBillDiagnosis/dynamic/{id}", method = RequestMethod.GET)
+//    public BeanResponse<DiagnosisSectionVO> getDiagnosisDynamic(@PathVariable("id")Long id) {
+//        return BeanResponse.success(CodeMsg.SUCCESS, diagnosisService.getDiagnosisDynamic(id));
+//    }
+//
+//
+//}

+ 116 - 0
src/main/java/com/winhc/returnmoney/controller/AccountRemindHistoryController.java

@@ -0,0 +1,116 @@
+//package com.winhc.returnmoney.controller;
+//
+//import com.winhc.common.base.BeanResponse;
+//import com.winhc.common.enums.CodeMsg;
+//import com.winhc.common.util.ResultUtil;
+//import com.winhc.returnmoney.common.BaseController;
+//import com.winhc.returnmoney.model.vo.AccountRemindCountVO;
+//import com.winhc.returnmoney.model.vo.AccountRemindHistoryCountVO;
+//import com.winhc.returnmoney.service.MessageService;
+//import com.winhc.returnmoney.util.RequesterUtil;
+//import com.winhc.returnmoney.model.dto.AccountRemindHistoryDTO;
+//import com.winhc.returnmoney.service.AccountRemindHistoryService;
+//import org.springframework.web.bind.annotation.RequestMapping;
+//import com.winhc.returnmoney.model.vo.AccountRemindHistoryVO;
+//import org.springframework.beans.factory.annotation.Autowired;
+//import org.springframework.web.bind.annotation.*;
+//
+//import java.util.List;
+//import lombok.extern.slf4j.Slf4j;
+//import io.swagger.annotations.Api;
+//import io.swagger.annotations.ApiOperation;
+//import org.springframework.web.bind.annotation.RestController;
+//import springfox.documentation.annotations.ApiIgnore;
+//
+//
+///**
+// * @description AccountRemindHistory Controller
+// * @author Generator
+// * @date 2020-12-14
+// */
+//@Slf4j
+//@Api(tags = "智能提醒API")
+//@RestController
+//@RequestMapping("accountRemind")
+//public class AccountRemindHistoryController extends BaseController {
+//    @Autowired
+//    private AccountRemindHistoryService accountRemindHistoryService;
+//
+//    @Autowired
+//    private MessageService messageService;
+//
+//
+//    @GetMapping("/{id}")
+//    @ApiOperation(value = "根据id查询智能提醒详情")
+//    public BeanResponse<AccountRemindHistoryVO> find(@PathVariable Long id) {
+//        return BeanResponse.resultData2BeanResponse(ResultUtil.response(CodeMsg.SUCCESS,accountRemindHistoryService.find(id, getAppVersion(), getAppPackageName(), getUser())));
+//    }
+//
+//
+//    @GetMapping("/page")
+//    @ApiOperation(value = "根据条件查询智能提醒")
+//    public BeanResponse<List<AccountRemindHistoryVO>> page(AccountRemindHistoryDTO dto,
+//                                                           @RequestParam(required = false,defaultValue = "1") Integer pageNum,
+//                                                           @RequestParam(required = false,defaultValue = "10") Integer pageSize) {
+//        dto.setUserId(RequesterUtil.getCurrentUserId());
+//        return BeanResponse.resultPageData2BeanResponse(ResultUtil.response(CodeMsg.SUCCESS,accountRemindHistoryService.find(dto, pageNum, pageSize, getAppVersion(), getAppPackageName(), getUser())));
+//    }
+//
+//
+//    @GetMapping("/unread")
+//    @ApiOperation(value = "查询未读智能提醒数量")
+//    public BeanResponse<Integer> unReadNumber(){
+//        return BeanResponse.success(CodeMsg.SUCCESS,accountRemindHistoryService.unRead(RequesterUtil.getCurrentUserId()));
+//    }
+//
+//    @GetMapping("/count/withunread")
+//    @ApiOperation(value = "新版数量")
+//    public BeanResponse<AccountRemindCountVO> queryRemindCount(AccountRemindHistoryDTO dto){
+//        return BeanResponse.success(CodeMsg.SUCCESS,accountRemindHistoryService.queryRemidCount(dto,RequesterUtil.getCurrentUser()));
+//    }
+//
+//    @GetMapping("/count")
+//    @ApiOperation(value = "筛选条件数量")
+//    public BeanResponse<List<AccountRemindHistoryCountVO>> queryCount(AccountRemindHistoryDTO accountRemindHistoryDTO){
+//        accountRemindHistoryDTO.setUserId(RequesterUtil.getCurrentUserId());
+//        return BeanResponse.success(CodeMsg.SUCCESS,accountRemindHistoryService.queryCount(accountRemindHistoryDTO));
+//    }
+//
+////    @Autowired
+////    AccountBillDiagnosisService accountBillDiagnosisService;
+////
+////    @GetMapping("/test")
+////    @ApiOperation(value = "后端测试用刷新评分")
+////    @ApiIgnore
+////    public BeanResponse<Void> test(@RequestParam String company,@RequestParam Long accountBillid,@RequestParam BigDecimal amt){
+////        List<String> companys = new ArrayList<>();
+////        companys.add(company);
+////        accountBillDiagnosisService.addAccountBillDiagnosis(RequesterUtil.getCurrentUserId(),accountBillid,amt,companys);
+////        return BeanResponse.success(CodeMsg.SUCCESS);
+////    }
+//
+//    @PostMapping("/update/functionlist")
+//    @ApiOperation(value = "更新functionlist")
+//    @ApiIgnore
+//    public BeanResponse<Boolean> updateFunctionList(){
+//        accountRemindHistoryService.updateFunctionList();
+//        return BeanResponse.success(CodeMsg.SUCCESS);
+//    }
+//
+//    @PostMapping("/update/newRemindContent")
+//    @ApiOperation(value = "更新newRemindContent")
+//    @ApiIgnore
+//    public BeanResponse<Boolean> updateNewRemindContent(){
+//        accountRemindHistoryService.updateNewRemindContent();
+//        return BeanResponse.success(CodeMsg.SUCCESS);
+//    }
+//
+//    @PostMapping("/update/message")
+//    @ApiOperation(value = "更新message")
+//    @ApiIgnore
+//    public BeanResponse<Boolean> updateMessage(){
+//        messageService.updateMessage();
+//        return BeanResponse.success(CodeMsg.SUCCESS);
+//    }
+//
+//}

+ 42 - 0
src/main/java/com/winhc/returnmoney/controller/AccountRemindSettingController.java

@@ -0,0 +1,42 @@
+//package com.winhc.returnmoney.controller;
+//
+//import com.module.login.usersession.UserBean;
+//import com.winhc.common.base.BeanResponse;
+//import com.winhc.common.enums.CodeMsg;
+//import com.winhc.returnmoney.model.dto.AccountRemindSettingDTO;
+//import com.winhc.returnmoney.model.vo.AccountRemindSettingVO;
+//import com.winhc.returnmoney.service.AccountRemindSettingService;
+//import com.winhc.returnmoney.util.RequesterUtil;
+//import io.swagger.annotations.Api;
+//import io.swagger.annotations.ApiOperation;
+//import lombok.extern.slf4j.Slf4j;
+//import org.springframework.beans.factory.annotation.Autowired;
+//import org.springframework.web.bind.annotation.*;
+//
+///**
+// * @author Aaron
+// * @date 2021/8/3 15:06
+// * @description
+// */
+//@Slf4j
+//@Api(tags = "提醒设置")
+//@RestController
+//@RequestMapping("accountRemind/setting")
+//public class AccountRemindSettingController {
+//    @Autowired
+//    private AccountRemindSettingService accountRemindSettingService;
+//
+//    @GetMapping
+//    @ApiOperation(value = "查询提醒设置")
+//    public BeanResponse<AccountRemindSettingVO> querySetting(){
+//        UserBean userBean = RequesterUtil.getCurrentUser();
+//        return BeanResponse.success(CodeMsg.SUCCESS, accountRemindSettingService.find(userBean.getUserId()));
+//    }
+//
+//    @PostMapping
+//    @ApiOperation(value = "修改提醒设置")
+//    public BeanResponse<Boolean> updateSetting(@RequestBody AccountRemindSettingDTO dto){
+//        accountRemindSettingService.update(RequesterUtil.getCurrentUser(),dto);
+//        return BeanResponse.success(CodeMsg.SUCCESS,Boolean.TRUE);
+//    }
+//}

+ 134 - 0
src/main/java/com/winhc/returnmoney/entity/AccountBill.java

@@ -0,0 +1,134 @@
+package com.winhc.returnmoney.entity;
+
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import java.time.LocalDate;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @description AccountBill实体对象
+ * @author Generator
+ * @date 2020-12-15
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@TableName("ACCOUNT_BILL")
+@ApiModel(value="AccountBill实体对象", description="账款表")
+@Accessors(chain = true)
+public class AccountBill implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "ID", type = IdType.AUTO)
+    private Long id;
+
+    @ApiModelProperty(value = "账本id")
+    @TableField("ACCOUNT_BOOK_ID")
+    private Long accountBookId;
+
+    @ApiModelProperty(value = "当前应收金额/新版本为账款总金额")
+    @TableField("RECEIVABLE")
+    private BigDecimal receivable;
+
+    @ApiModelProperty(value = "已收回金额")
+    @TableField("RECEIPT")
+    private BigDecimal receipt;
+
+    @ApiModelProperty(value = "账款状态,1进行中,2已逾期,3已收回")
+    @TableField("ACCOUNT_BILL_STATUS")
+    private Integer accountBillStatus;
+
+    @ApiModelProperty(value = "账款阶段,1未起诉,2已起诉,3已申请执行,4终结本次执行")
+    @TableField("ACCOUNT_BILL_STAGE")
+    private Integer accountBillStage;
+
+    @ApiModelProperty(value = "应收账款日期")
+    @TableField("END_DATE")
+    private LocalDate endDate;
+
+    @ApiModelProperty(value = "账款备注")
+    @TableField("ACCOUNT_BILL_REMARK")
+    private String accountBillRemark;
+
+    @ApiModelProperty(value = "账款标题")
+    @TableField("ACCOUNT_BILL_TITLE")
+    private String accountBillTitle;
+
+    @ApiModelProperty(value = "账款logo")
+    @TableField("ACCOUNT_BILL_LOGO")
+    private String accountBillLogo;
+
+    @ApiModelProperty(value = "账款刷新状态。1未刷新,2刷新中,3已刷新,0刷新失败")
+    @TableField("REFRESH_STATUS")
+    private Integer refreshStatus;
+
+    @ApiModelProperty(value = "上次评估ID")
+    @TableField("PRE_DIAGNOSIS_ID")
+    private Long preDiagnosisId;
+
+    @ApiModelProperty(value = "评估id")
+    @TableField("DIAGNOSIS_ID")
+    private Long diagnosisId;
+
+    @ApiModelProperty(value = "上次评估等级")
+    @TableField("PRE_DIAGNOSIS_GRADE")
+    private String preDiagnosisGrade;
+
+    @ApiModelProperty(value = "评估等级")
+    @TableField("DIAGNOSIS_GRADE")
+    private String diagnosisGrade;
+
+    @ApiModelProperty(value = "上次评估分数")
+    @TableField("PRE_DIAGNOSIS_SCORE")
+    private BigDecimal preDiagnosisScore;
+
+    @ApiModelProperty(value = "本次评估分数")
+    @TableField("DIAGNOSIS_SCORE")
+    private BigDecimal diagnosisScore;
+
+    @ApiModelProperty(value = "上次评估时间")
+    @TableField("PRE_DIAGNOSIS_DATETIME")
+    private LocalDateTime preDiagnosisDatetime;
+
+    @ApiModelProperty(value = "评估时间")
+    @TableField("DIAGNOSIS_DATETIME")
+    private LocalDateTime diagnosisDatetime;
+
+    @ApiModelProperty(value = "趋势,1上升,2下降。0持平")
+    @TableField("DIAGNOSIS_TREND")
+    private Integer diagnosisTrend;
+
+    @TableField("REMIND_INFO")
+    @ApiModelProperty("提醒消息")
+    private String remindInfo;
+
+    @ApiModelProperty(value = "账款收回时间")
+    @TableField("SETTLE_TIME")
+    private LocalDateTime settleTime;
+
+    @ApiModelProperty("userId")
+    private Long userId;
+
+    @ApiModelProperty(value = "是否删除,1删除。0否")
+    @TableField("DELETED")
+    private Integer deleted;
+
+    @ApiModelProperty(value = "创建时间")
+    @TableField("TIME_CREATED")
+    private LocalDateTime timeCreated;
+
+    @ApiModelProperty(value = "修改时间")
+    @TableField("TIME_MODIFIED")
+    private LocalDateTime timeModified;
+
+
+}

+ 68 - 0
src/main/java/com/winhc/returnmoney/entity/AccountBillDiagnosis.java

@@ -0,0 +1,68 @@
+package com.winhc.returnmoney.entity;
+
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @description AccountBillDiagnosis实体对象
+ * @author Generator
+ * @date 2020-12-15
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@TableName("ACCOUNT_BILL_DIAGNOSIS")
+@ApiModel(value="AccountBillDiagnosis实体对象", description="账款评估记录表")
+@Accessors(chain = true)
+public class AccountBillDiagnosis implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "ID", type = IdType.AUTO)
+    private Long id;
+
+    @ApiModelProperty(value = "账款id")
+    @TableField("ACCOUNT_BILL_ID")
+    private Long accountBillId;
+
+    @ApiModelProperty(value = "评估等级")
+    @TableField("DIAGNOSIS_GRADE")
+    private String diagnosisGrade;
+
+    @ApiModelProperty(value = "评估分值")
+    @TableField("DIAGNOSIS_SCORE")
+    private BigDecimal diagnosisScore;
+
+    @ApiModelProperty(value = "评估时间")
+    @TableField("DIAGNOSIS_DATETIME")
+    private LocalDateTime diagnosisDatetime;
+
+    @ApiModelProperty(value = "评估状态:0诊断中;1诊断完成;9诊断失败")
+    @TableField("DIAGNOSIS_STATUS")
+    private Integer diagnosisStatus;
+
+    @ApiModelProperty(value = "评估详情")
+    @TableField("DIAGNOSIS_DETAIL")
+    private String diagnosisDetail;
+
+    @ApiModelProperty(value = "创建时间")
+    @TableField("TIME_CREATED")
+    private LocalDateTime timeCreated;
+
+    @ApiModelProperty(value = "修改时间")
+    @TableField("TIME_MODIFIED")
+    private LocalDateTime timeModified;
+
+    @ApiModelProperty(value = "履债评估结果id")
+    @TableField("BIZ_ID")
+    private Long bizId;
+}

+ 86 - 0
src/main/java/com/winhc/returnmoney/entity/AccountBillMoneyRecord.java

@@ -0,0 +1,86 @@
+package com.winhc.returnmoney.entity;
+
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+
+import com.winhc.returnmoney.enums.Dict;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * @description AccountBillMoneyRecord实体对象
+ * @author Generator
+ * @date 2020-12-15
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@TableName("ACCOUNT_BILL_MONEY_RECORD")
+@ApiModel(value="AccountBillMoneyRecord实体对象", description="账款金额变动记录")
+public class AccountBillMoneyRecord implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "ID", type = IdType.AUTO)
+    private Long id;
+
+    @ApiModelProperty(value = "账本id")
+    @TableField("ACCOUNT_BOOK_ID")
+    private Long accountBookId;
+
+    @ApiModelProperty(value = "账款id")
+    @TableField("ACCOUNT_BILL_ID")
+    private Long accountBillId;
+
+    @ApiModelProperty(value = "变更类型,1增加,2减少")
+    @TableField("CHANGE_TYPE")
+    private Integer changeType;
+
+    @ApiModelProperty(value = "变更金额")
+    @TableField("CHANGE_MONEY")
+    private BigDecimal changeMoney;
+
+    @ApiModelProperty(value = "改变前金额")
+    @TableField("PRE_MONEY")
+    private BigDecimal preMoney;
+
+    @ApiModelProperty(value = "创建时间")
+    @TableField("TIME_CREATED")
+    private LocalDateTime timeCreated;
+
+    @ApiModelProperty(value = "修改时间")
+    @TableField("TIME_MODIFIED")
+    private LocalDateTime timeModified;
+
+    @ApiModelProperty(value = "是否删除,1删除。0否")
+    @TableField("DELETED")
+    private Integer deleted;
+
+    public static AccountBillMoneyRecord convert2Record(AccountBill accountBill, BigDecimal preMoney, BigDecimal changeMoney) {
+        AccountBillMoneyRecord record = new AccountBillMoneyRecord();
+        record.setAccountBookId(accountBill.getAccountBookId());
+        record.setAccountBillId(accountBill.getId());
+        record.setChangeType(Dict.ChangeTypeEnum.getMoneyCrease(preMoney, changeMoney));
+        record.setChangeMoney(changeMoney);
+        record.setPreMoney(preMoney);
+        return record;
+    }
+
+    public static AccountBillMoneyRecord convert2NewRecord(AccountBill accountBill, BigDecimal changeMoney) {
+        AccountBillMoneyRecord record = new AccountBillMoneyRecord();
+        record.setAccountBookId(accountBill.getAccountBookId());
+        record.setAccountBillId(accountBill.getId());
+        record.setChangeType(Dict.ChangeTypeEnum.getMoneyCrease(accountBill.getReceivable().subtract(accountBill.getReceipt()), changeMoney));
+        record.setChangeMoney(changeMoney);
+        record.setPreMoney(accountBill.getReceivable().subtract(accountBill.getReceipt()));
+        return record;
+    }
+
+
+}

+ 60 - 0
src/main/java/com/winhc/returnmoney/entity/AccountBillOperLog.java

@@ -0,0 +1,60 @@
+package com.winhc.returnmoney.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @description AccountBillOperLog实体对象
+ * @author Generator
+ * @date 2020-12-15
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@TableName("ACCOUNT_BILL_OPER_LOG")
+@ApiModel(value="AccountBillOperLog实体对象", description="账款精灵操作日志表")
+public class AccountBillOperLog implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "ID", type = IdType.AUTO)
+    private Long id;
+
+    @ApiModelProperty(value = "动作代码")
+    @TableField("ACTION_CODE")
+    private String actionCode;
+
+    @ApiModelProperty(value = "动作名称")
+    @TableField("ACTION_NAME")
+    private String actionName;
+
+    @ApiModelProperty(value = "操作时间")
+    @TableField("OPER_TIME")
+    private LocalDateTime operTime;
+
+    @ApiModelProperty(value = "用户ID")
+    @TableField("USER_ID")
+    private Long userId;
+
+    @ApiModelProperty(value = "业务类型")
+    @TableField("BIZ_TYPE")
+    private String bizType;
+
+    @ApiModelProperty(value = "业务ID")
+    @TableField("BIZ_ID")
+    private String bizId;
+
+    @ApiModelProperty(value = "操作内容")
+    @TableField("ACTION_CONTENT")
+    private String actionContent;
+
+
+}

+ 56 - 0
src/main/java/com/winhc/returnmoney/entity/AccountBillPayer.java

@@ -0,0 +1,56 @@
+package com.winhc.returnmoney.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @description AccountBillPayer实体对象
+ * @author Generator
+ * @date 2020-12-15
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@TableName("ACCOUNT_BILL_PAYER")
+@ApiModel(value="AccountBillPayer实体对象", description="账款付款人明细表")
+public class AccountBillPayer implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "ID", type = IdType.AUTO)
+    private Long id;
+
+    @ApiModelProperty(value = "账款id")
+    @TableField("ACCOUNT_BILL_ID")
+    private Long accountBillId;
+
+    @ApiModelProperty(value = "付款公司名称")
+    @TableField("PAYER_NAME")
+    private String payerName;
+
+    @ApiModelProperty(value = "付款公司CID")
+    @TableField("PAYER_CID")
+    private String payerCid;
+
+    @ApiModelProperty(value = "付款公司companyId")
+    @TableField("PAYER_COMPANY_ID")
+    private String payerCompanyId;
+
+    @ApiModelProperty(value = "付款公司LOGO")
+    @TableField("PAYER_LOGO")
+    private String payerLogo;
+
+    @ApiModelProperty(value = "创建时间")
+    @TableField("TIME_CREATED")
+    private LocalDateTime timeCreated;
+
+
+}

+ 60 - 0
src/main/java/com/winhc/returnmoney/entity/AccountBillReceiptRecord.java

@@ -0,0 +1,60 @@
+package com.winhc.returnmoney.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.Accessors;
+
+import java.math.BigDecimal;
+import java.time.LocalDateTime;
+
+/**
+ * @Description: AccountBillReceiptRecord
+ * @Author: xda
+ * @Date: 2021/8/5 16:10
+ */
+@Data
+@TableName("ACCOUNT_BILL_RECEIPT_RECORD")
+@AllArgsConstructor
+@NoArgsConstructor
+@Accessors(chain = true)
+public class AccountBillReceiptRecord {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "ID", type = IdType.AUTO)
+    private Long id;
+
+    @ApiModelProperty(value = "账本id")
+    @TableField("ACCOUNT_BOOK_ID")
+    private Long accountBookId;
+
+    @ApiModelProperty(value = "账款id")
+    @TableField("ACCOUNT_BILL_ID")
+    private Long accountBillId;
+
+    @ApiModelProperty(value = "变更金额")
+    @TableField("RECEIPT_MONEY")
+    private BigDecimal receiptMoney;
+
+    @ApiModelProperty(value = "改变前金额")
+    @TableField("PRE_MONEY")
+    private BigDecimal preMoney;
+
+    @ApiModelProperty(value = "创建时间")
+    @TableField("TIME_CREATED")
+    private LocalDateTime timeCreated;
+
+    @ApiModelProperty(value = "修改时间")
+    @TableField("TIME_MODIFIED")
+    private LocalDateTime timeModified;
+
+    @ApiModelProperty(value = "是否删除,1删除。0否")
+    @TableField("DELETED")
+    private Integer deleted;
+}

+ 65 - 0
src/main/java/com/winhc/returnmoney/entity/AccountBook.java

@@ -0,0 +1,65 @@
+package com.winhc.returnmoney.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @description AccountBook实体对象
+ * @author Generator
+ * @date 2020-12-15
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@TableName("ACCOUNT_BOOK")
+@ApiModel(value="AccountBook实体对象", description="账本表")
+@Accessors(chain = true)
+public class AccountBook implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "ID", type = IdType.AUTO)
+    private Long id;
+
+    @ApiModelProperty(value = "收款公司名称")
+    @TableField("PAYEE_NAME")
+    private String payeeName;
+
+    @ApiModelProperty(value = "收款公司LOGO")
+    @TableField("PAYEE_LOGO")
+    private String payeeLogo;
+
+    @ApiModelProperty(value = "收款公司CID")
+    @TableField("PAYEE_CID")
+    private String payeeCid;
+
+    @ApiModelProperty(value = "账本刷新状态。1未刷新,2刷新中,3已刷新,0刷新失败")
+    @TableField("REFRESH_STATUS")
+    private Integer refreshStatus;
+
+    @ApiModelProperty(value = "用户id")
+    @TableField("USER_ID")
+    private Long userId;
+
+    @ApiModelProperty(value = "创建时间")
+    @TableField("TIME_CREATED")
+    private LocalDateTime timeCreated;
+
+    @ApiModelProperty(value = "修改时间")
+    @TableField("TIME_MODIFIED")
+    private LocalDateTime timeModified;
+
+    @ApiModelProperty(value = "是否删除,1删除。0否")
+    @TableField("DELETED")
+    private Integer deleted;
+
+
+}

+ 59 - 0
src/main/java/com/winhc/returnmoney/entity/AccountRemindDefinition.java

@@ -0,0 +1,59 @@
+package com.winhc.returnmoney.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @description AccountRemindDefinition实体对象
+ * @author Generator
+ * @date 2020-12-15
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@TableName("ACCOUNT_REMIND_DEFINITION")
+@ApiModel(value="AccountRemindDefinition实体对象", description="")
+public class AccountRemindDefinition implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "ID", type = IdType.AUTO)
+    private Long id;
+
+    @ApiModelProperty(value = "提醒类型,枚举(中文):逾期提醒、评级提醒、财产线索、风险提醒")
+    @TableField("REMIND_TYPE")
+    private String remindType;
+
+    @ApiModelProperty(value = "触发时机。"+
+            "1、逾期提醒:OVERDUE_WEEK(逾期前一周)、OVERDUED(已逾期)、OVERDUE_THREEMONTH(逾期三个月)、OVERDUE_HALFYEAR(逾期半年)、OVERDUE_YEAR(逾期1年)、OVERDUE_THREEYEAR(逾期3年)"+
+            "2、评级提醒:A、B、C、D"+
+            "3 4根据动态的数据来")
+    @TableField("OPPORTUNITY")
+    private String opportunity;
+
+    @ApiModelProperty(value = "账单状态,1进行中,2已逾期,3已收回")
+    @TableField("ACCOUNT_BILL_STATUS")
+    private Integer accountBillStatus;
+
+    @ApiModelProperty(value = "账款阶段,1未起诉 2已起诉  3已申请执行 4终结本次执行")
+    @TableField("ACCOUNT_BILL_STAGE")
+    private Integer accountBillStage;
+
+    @ApiModelProperty(value = "提醒文案")
+    @TableField("REMIND_CONTENT")
+    private String remindContent;
+
+    @ApiModelProperty(value = "功能列表")
+    @TableField("FUNCTION_LIST")
+    private String functionList;
+
+
+}

+ 107 - 0
src/main/java/com/winhc/returnmoney/entity/AccountRemindHistory.java

@@ -0,0 +1,107 @@
+package com.winhc.returnmoney.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @description AccountRemindHistory实体对象
+ * @author Generator
+ * @date 2021-05-21
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@TableName("ACCOUNT_REMIND_HISTORY")
+@ApiModel(value="AccountRemindHistory实体对象", description="智能提醒历史表")
+public class AccountRemindHistory implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "ID", type = IdType.AUTO)
+    private Long id;
+
+    @ApiModelProperty(value = "用户ID")
+    @TableField("USER_ID")
+    private Long userId;
+
+    @ApiModelProperty(value = "账本ID")
+    @TableField("ACCOUNT_BOOK_ID")
+    private Long accountBookId;
+
+    @ApiModelProperty(value = "账单主键")
+    @TableField("ACCOUNT_BILL_ID")
+    private Long accountBillId;
+
+    @ApiModelProperty(value = "动态主键")
+    @TableField("TREND_ID")
+    private String trendId;
+
+    @ApiModelProperty(value = "动态内容")
+    @TableField("TREND_CONTENT")
+    private String trendContent;
+
+    @ApiModelProperty(value = "提醒时间")
+    @TableField("REMIND_TIME")
+    private LocalDateTime remindTime;
+
+    @ApiModelProperty(value = "公司名称")
+    @TableField("COMPANY_NAME")
+    private String companyName;
+
+    @ApiModelProperty(value = "提醒标题")
+    @TableField("REMIND_TITLE")
+    private String remindTitle;
+
+    @ApiModelProperty(value = "提醒文案")
+    @TableField("REMIND_CONTENT")
+    private String remindContent;
+
+    @ApiModelProperty(value = "功能列表")
+    @TableField("FUNCTION_LIST")
+    private String functionList;
+
+    @ApiModelProperty(value = "提醒类型,枚举(中文):逾期提醒、账款评级、财产线索、风险预警")
+    @TableField("REMIND_TYPE")
+    private String remindType;
+
+    @ApiModelProperty(value = "0未读1已读")
+    @TableField("READ_STATUS")
+    private Integer readStatus;
+
+    @ApiModelProperty(value = "动态类型")
+    @TableField("TRENT_TYPE")
+    private String trentType;
+
+    @ApiModelProperty(value = "跳转详情用")
+    @TableField("BIZ_ID")
+    private String bizId;
+
+    @ApiModelProperty(value = "跳转详情用")
+    @TableField("DIMENSION_TYPE")
+    private String dimensionType;
+
+    @ApiModelProperty(value = "跳转详情用")
+    @TableField("INFO_TYPE")
+    private String infoType;
+
+    @ApiModelProperty(value = "跳转详情用")
+    @TableField("DYNAMIC_ID")
+    private String dynamicId;
+
+    @ApiModelProperty(value = "提醒文案新版")
+    @TableField("NEW_TREND_CONTENT")
+    private String newTrendContent;
+
+    @ApiModelProperty(value = "0旧1新")
+    @TableField("IS_NEW")
+    private String isNew;
+}

+ 53 - 0
src/main/java/com/winhc/returnmoney/entity/AccountRemindSetting.java

@@ -0,0 +1,53 @@
+package com.winhc.returnmoney.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @description AccountRemindSetting实体对象
+ * @author Generator
+ * @date 2021-08-03
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@TableName("ACCOUNT_REMIND_SETTING")
+@ApiModel(value="AccountRemindSetting实体对象", description="提醒设置表")
+public class AccountRemindSetting implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @ApiModelProperty(value = "主键")
+    @TableId(value = "ID", type = IdType.AUTO)
+    private Long id;
+
+    @ApiModelProperty(value = "用户id")
+    @TableField("USER_ID")
+    private Long userId;
+
+    @ApiModelProperty(value = "账款逾期是否需要提醒 0不需要  1需要")
+    @TableField("OVERDUE")
+    private Integer overdue;
+
+    @ApiModelProperty(value = "评级变更是否需要提醒 0不需要  1需要")
+    @TableField("RANK")
+    private Integer rank;
+
+    @ApiModelProperty(value = "财产线索是否需要提醒 0不需要  1需要")
+    @TableField("FINANCE")
+    private Integer finance;
+
+    @ApiModelProperty(value = "风险动态是否需要提醒 0不需要  1需要")
+    @TableField("RISK")
+    private Integer risk;
+
+
+}

+ 38 - 0
src/main/java/com/winhc/returnmoney/entity/BetaTestApply.java

@@ -0,0 +1,38 @@
+package com.winhc.returnmoney.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+import java.time.LocalDateTime;
+
+/**
+ * @Description: BetaTestApply
+ * @Author: xda
+ * @Date: 2020/11/26  19:19
+ */
+@Data
+@TableName("BETA_TEST_APPLY")
+public class BetaTestApply {
+
+    @TableId(value = "ID", type = IdType.AUTO)
+    private Long id;
+
+    @TableField("PRODUCT_CODE")
+    private String productCode;
+
+    @TableField("APPLY_USER_ID")
+    private Long applyUserId;
+
+    @TableField("APPLY_USER_MOBILE_NO")
+    private String applyUserMobileNo;
+
+    @TableField("APPLY_TIME")
+    private LocalDateTime applyTime;
+
+    @TableField("STATUS")
+    private String status;
+
+}

+ 76 - 0
src/main/java/com/winhc/returnmoney/entity/Message.java

@@ -0,0 +1,76 @@
+package com.winhc.returnmoney.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @description Message实体对象
+ * @author Generator
+ * @date 2021-08-16
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@TableName("MESSAGE")
+@ApiModel(value="Message实体对象", description="")
+public class Message implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "MESSAGE_ID", type = IdType.AUTO)
+    private Long messageId;
+
+    @TableField("CASE_ID")
+    private String caseId;
+
+    @ApiModelProperty(value = "1风控阶段;2诉讼阶段;3执行阶段;4结算阶段")
+    @TableField("BIZ_STAGE")
+    private Integer bizStage;
+
+    @ApiModelProperty(value = "消息分类:服务提醒(0),小赢管家(1),案件助手(2),动态监测(4),工作台提醒(5)")
+    @TableField("MESSAGE_KIND")
+    private String messageKind;
+
+    @TableField("SUBJECT")
+    private String subject;
+
+    @TableField("CONTENT")
+    private String content;
+
+    @TableField("USER_ACCOUNT")
+    private String userAccount;
+
+    @TableField("WARN_AREA")
+    private String warnArea;
+
+    @TableField("ACTION")
+    private String action;
+
+    @TableField("MESSAGE_TIME")
+    private String messageTime;
+
+    @ApiModelProperty(value = "0已推送;1未推送")
+    @TableField("PUSH_STATUS")
+    private String pushStatus;
+
+    @ApiModelProperty(value = "0已读;1未读")
+    @TableField("READ_STATUS")
+    private String readStatus;
+
+    @TableField("USER_ID")
+    private Long userId;
+
+    @ApiModelProperty(value = "0通知;1消息")
+    @TableField("MESSAGE_TYPE")
+    private String messageType;
+
+
+}

+ 125 - 0
src/main/java/com/winhc/returnmoney/entity/UserExt.java

@@ -0,0 +1,125 @@
+package com.winhc.returnmoney.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @description UserExt实体对象
+ * @author Generator
+ * @date 2020-12-16
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@TableName("USER_EXT")
+@ApiModel(value="UserExt实体对象", description="")
+public class UserExt implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId("USER_ID")
+    private Long userId;
+
+    @TableField("MOBILE_NO")
+    private String mobileNo;
+
+    @TableField("EMAIL")
+    private String email;
+
+    @ApiModelProperty(value = "0当事人;1律师;")
+    @TableField("USER_TYPE")
+    private String userType;
+
+    @ApiModelProperty(value = "Y是;N否")
+    @TableField("IS_AGENCY")
+    private String isAgency;
+
+    @TableField("USER_NAME")
+    private String userName;
+
+    @ApiModelProperty(value = "1身份证;2营业执照;")
+    @TableField("ID_TYPE")
+    private String idType;
+
+    @TableField("ID_NO")
+    private String idNo;
+
+    @TableField("INVITE_CODE")
+    private String inviteCode;
+
+    @TableField("LAWFIRM_NAME")
+    private String lawfirmName;
+
+    @TableField("LAWYER_NO")
+    private String lawyerNo;
+
+    @TableField("ADV_AREA")
+    private String advArea;
+
+    @ApiModelProperty(value = "可选多个案件类型标签")
+    @TableField("ADV_FIELD")
+    private String advField;
+
+    @TableField("LIGHT_VALUE")
+    private Integer lightValue;
+
+    @TableField("PROVINCE")
+    private String province;
+
+    @TableField("CITY")
+    private String city;
+
+    @TableField("LAWYER_YEAR")
+    private Integer lawyerYear;
+
+    @TableField("HERO_TAG")
+    private String heroTag;
+
+    @ApiModelProperty(value = "0:未认证;1待认证;2已认证;3认证失败")
+    @TableField("LAWYER_STATUS")
+    private String lawyerStatus;
+
+    @TableField("LAWYER_NO_PIC")
+    private String lawyerNoPic;
+
+    @TableField("FACE_ID_NO")
+    private String faceIdNo;
+
+    @TableField("AUDIT_DEMO")
+    private String auditDemo;
+
+    @TableField("LAWYER_DUTY")
+    private String lawyerDuty;
+
+    @ApiModelProperty(value = "律师等级:A、B、C")
+    @TableField("LAWYER_LEVER")
+    private String lawyerLever;
+
+    @ApiModelProperty(value = "0:VIP;1:非VIP")
+    @TableField("VIP_SIGN")
+    private String vipSign;
+
+    @TableField("VIP_START_TIME")
+    private LocalDateTime vipStartTime;
+
+    @TableField("VIP_END_TIME")
+    private LocalDateTime vipEndTime;
+
+    @ApiModelProperty(value = "个人VIP结束时间")
+    @TableField("PERSON_VIP_END_TIME")
+    private LocalDateTime personVipEndTime;
+
+    @ApiModelProperty(value = "用户选择身份(1、商务人士  2、认证律师  3、企业法务 4、其他)")
+    @TableField("IDENTITY")
+    private String identity;
+
+
+}

+ 89 - 0
src/main/java/com/winhc/returnmoney/entity/UserInfo.java

@@ -0,0 +1,89 @@
+package com.winhc.returnmoney.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @description UserInfo实体对象
+ * @author Generator
+ * @date 2020-08-18
+ */
+@Data
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+@TableName("USER_INFO")
+@ApiModel(value="UserInfo实体对象", description="")
+public class UserInfo implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "USER_ID", type = IdType.AUTO)
+    private Long userId;
+
+    @TableField("LOGIN_ID")
+    private String loginId;
+
+    @TableField("MOBILE_NO")
+    private String mobileNo;
+
+    @TableField("EMAIL")
+    private String email;
+
+    @TableField("LOGIN_PWD")
+    private String loginPwd;
+
+    @TableField("PAY_PWD")
+    private String payPwd;
+
+    @TableField("SSO_TYPE")
+    private String ssoType;
+
+    @TableField("SSO_TOKEN")
+    private String ssoToken;
+
+    @TableField("NICK_NAME")
+    private String nickName;
+
+    @TableField("AVATAR")
+    private String avatar;
+
+    @TableField("OPEN_DATE")
+    private String openDate;
+
+    @TableField("OPEN_TIME")
+    private String openTime;
+
+    @TableField("LOGIN_TIME")
+    private String loginTime;
+
+    @ApiModelProperty(value = "0:启用;1:冻结;2:手机号失效;3:未激活")
+    @TableField("STATUS")
+    private String status;
+
+    @ApiModelProperty(value = "1:APP;2:微信;3:网站;4第三方;5后台管理;6微信小程序")
+    @TableField("REG_CHANNEL")
+    private String regChannel;
+
+    @TableField("UNIONID")
+    private String unionid;
+
+    @TableField("OPENID_WINHC_MP")
+    private String openidWinhcMp;
+
+    @TableField("OPENID_APSARA_MP")
+    private String openidApsaraMp;
+
+    @ApiModelProperty(value = "IOS(appstore),Android(vivo、xiaomi、meizu、qutoutiao、huawei、zhihu、yingyongbao、360、weibo、baidu、jinritoutiao、oppo)")
+    @TableField("APP_CHANNEL")
+    private String appChannel;
+
+
+}

+ 65 - 0
src/main/java/com/winhc/returnmoney/enums/AppPackageEnum.java

@@ -0,0 +1,65 @@
+package com.winhc.returnmoney.enums;
+
+/**
+ * @Description: AppPackageEnum
+ * @Author: xda
+ * @Date: 2021/12/20 09:43
+ */
+public enum AppPackageEnum {
+
+    /**
+     *  包名枚举
+     */
+    FIREFLY("com.firefly.mobile.app", "赢火虫", 1),
+    WIN_LAWYER("com.winhc.user.app", "赢律师APP", 2),
+    MINI_PROGRAM("com.winhc.user.mp", "赢律师小程序", 3),
+    MOBILE_WEB("com.winhc.user.mweb", "赢律师M站", 4),
+    PC_WEB("com.winhc.user.pc", "PC端", 5),
+    LEGAL_CLOUD("com.winhc.legal.app", "云法务", 6)
+            ;
+
+    private final String packageName;
+
+    private final String desc;
+
+    private final Integer code;
+
+
+
+    AppPackageEnum(String packageName, String desc, Integer code) {
+        this.packageName = packageName;
+        this.desc = desc;
+        this.code = code;
+    }
+
+    public String getPackageName() {
+        return packageName;
+    }
+
+    public String getDesc() {
+        return desc;
+    }
+
+    public Integer getCode() {
+        return code;
+    }
+
+
+    public static AppPackageEnum getAppPackageEnumByCode(Integer serviceOrigin) {
+        for (AppPackageEnum appPackageEnum : AppPackageEnum.values()) {
+            if (appPackageEnum.getCode().equals(serviceOrigin)) {
+                return appPackageEnum;
+            }
+        }
+        return null;
+    }
+
+    public static AppPackageEnum getAppPackageEnum(String packageName) {
+        for (AppPackageEnum appPackageEnum : AppPackageEnum.values()) {
+            if (appPackageEnum.getPackageName().equals(packageName)) {
+                return appPackageEnum;
+            }
+        }
+        return AppPackageEnum.FIREFLY;
+    }
+}

+ 10 - 0
src/main/java/com/winhc/returnmoney/enums/AuthorityEnum.java

@@ -0,0 +1,10 @@
+package com.winhc.returnmoney.enums;
+
+/**
+ * @description: 接口权限枚举
+ * @author: anakin
+ * @date 2020.10.12 15:05
+ */
+public enum AuthorityEnum {
+    无, 登录用户, 登录且存在的用户, VIP用户
+}

+ 552 - 0
src/main/java/com/winhc/returnmoney/enums/Dict.java

@@ -0,0 +1,552 @@
+package com.winhc.returnmoney.enums;
+
+import com.winhc.common.enums.CodeMsg;
+import com.winhc.common.exception.CommonException;
+import org.apache.commons.lang3.ObjectUtils;
+
+import java.math.BigDecimal;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Objects;
+import java.util.stream.Collectors;
+
+/**
+ * @description: 字典类
+ * @author: yujie
+ * @date 2020.8.18 9:17
+ */
+public class Dict {
+
+    public enum RefreshStatusEnum {
+        /**
+         *  刷新状态
+         */
+        REFRESH_WAIT(1, "未刷新"),
+        REFRESH_ING(2, "刷新中"),
+        REFRESH_SUCCESS(3, "已刷新"),
+        REFRESH_FAIL(0, "刷新失败");
+
+        private final Integer code;
+
+        private final String msg;
+
+        RefreshStatusEnum(Integer code, String msg) {
+            this.code = code;
+            this.msg = msg;
+        }
+
+        public Integer getCode() {
+            return this.code;
+        }
+
+        public String getMsg() {
+            return this.msg;
+        }
+    }
+
+    public enum DeletedEnum {
+        /**
+         *  是否删除
+         */
+        NORMAL(0, "正常"),
+        DELETE(1, "删除");
+
+        private final Integer code;
+
+        private final String msg;
+
+        DeletedEnum(Integer code, String msg) {
+            this.code = code;
+            this.msg = msg;
+        }
+
+        public Integer getCode() {
+            return this.code;
+        }
+
+        public String getMsg() {
+            return this.msg;
+        }
+
+    }
+
+    public enum AccountBillStatusEnum {
+        /**
+         *  账款状态
+         */
+        PROGRESSING(1, "进行中"),
+        OVERDUE(2, "已逾期"),
+        SUCCESS(3, "已收回");
+
+        private final Integer code;
+
+        private final String msg;
+
+        AccountBillStatusEnum(Integer code, String msg) {
+            this.code = code;
+            this.msg = msg;
+        }
+
+        public Integer getCode() {
+            return this.code;
+        }
+
+        public String getMsg() {
+            return this.msg;
+        }
+
+        public static List<Integer> getBillStatusList() {
+            return Arrays.stream(AccountBillStatusEnum.values()).map(AccountBillStatusEnum::getCode).collect(Collectors.toList());
+        }
+
+    }
+
+    public enum DiagnosisTrendEnum {
+        /**
+         *  评估趋势
+         */
+        ASCEND(1, "上升"),
+        DESCENT(2, "下降"),
+        KEEP(0, "保持");
+
+        private final Integer code;
+
+        private final String msg;
+
+        DiagnosisTrendEnum(Integer code, String msg) {
+            this.code = code;
+            this.msg = msg;
+        }
+
+        public Integer getCode() {
+            return this.code;
+        }
+
+        public String getMsg() {
+            return this.msg;
+        }
+
+        public static Integer getDiagnosisTrend(BigDecimal preScore, BigDecimal score) {
+            if (Objects.isNull(preScore)) {
+                return 0;
+            }
+            if (score.compareTo(preScore) > 0) {
+                return DiagnosisTrendEnum.ASCEND.getCode();
+            }
+            if (score.compareTo(preScore) < 0) {
+                return DiagnosisTrendEnum.DESCENT.getCode();
+            }
+            return 0;
+        }
+
+    }
+
+    public enum DiagnosisStatusEnum {
+        /**
+         *  评估状态:0诊断中;1诊断完成;9诊断失败
+         */
+        DIAGNOSIS_ING(0, "诊断中"),
+        DIAGNOSIS_SUCCESS(1, "诊断完成"),
+        DIAGNOSIS_FAIL(9, "诊断失败");
+
+        private final Integer code;
+
+        private final String msg;
+
+        DiagnosisStatusEnum(Integer code, String msg) {
+            this.code = code;
+            this.msg = msg;
+        }
+
+        public Integer getCode() {
+            return this.code;
+        }
+
+        public String getMsg() {
+            return this.msg;
+        }
+    }
+
+    public enum ChangeTypeEnum {
+        /**
+         *  变更类型,增加,减少
+         */
+        INCREASE(1, "增加"),
+        DECREASE(2, "减少");
+
+        private final Integer code;
+
+        private final String msg;
+
+        ChangeTypeEnum(Integer code, String msg) {
+            this.code = code;
+            this.msg = msg;
+        }
+
+        public Integer getCode() {
+            return this.code;
+        }
+
+        public String getMsg() {
+            return this.msg;
+        }
+
+        public static Integer getMoneyCrease(BigDecimal preMoney, BigDecimal changeMoney) {
+            if (ObjectUtils.anyNull(preMoney, changeMoney)) {
+                return null;
+            }
+            if (preMoney.compareTo(changeMoney) < 0) {
+                return ChangeTypeEnum.INCREASE.getCode();
+            }
+            if (preMoney.compareTo(changeMoney) > 0) {
+                return ChangeTypeEnum.DECREASE.getCode();
+            }
+            return null;
+        }
+    }
+
+    public enum ReceiveTypeEnum {
+        /**
+         *  收入类型,1应收金额,2已收金额
+         */
+        RECEIVABLE(1, "应收金额"),
+        RECEIVED(2, "已收金额");
+
+        private final Integer code;
+
+        private final String msg;
+
+        ReceiveTypeEnum(Integer code, String msg) {
+            this.code = code;
+            this.msg = msg;
+        }
+
+        public Integer getCode() {
+            return this.code;
+        }
+
+        public String getMsg() {
+            return this.msg;
+        }
+    }
+
+    public enum AccountBillStageEnum {
+        /**
+         *  账款阶段,1未起诉,2已起诉,3已申请执行,4终结本次执行
+         */
+        NON_PROSECUTE(1, "未起诉"),
+        PROSECUTE_ING(2, "已起诉"),
+        APPLY_EXECUTE(3, "已申请执行"),
+        FINAL_EXECUTE(4, "终结本次执行");
+
+        private final Integer code;
+
+        private final String msg;
+
+        AccountBillStageEnum(Integer code, String msg) {
+            this.code = code;
+            this.msg = msg;
+        }
+
+        public Integer getCode() {
+            return this.code;
+        }
+
+        public String getMsg() {
+            return this.msg;
+        }
+
+        public static String getMsgByCode(Integer code) {
+            for (AccountBillStageEnum e : AccountBillStageEnum.values()) {
+                if (e.getCode().equals(code)) {
+                    return e.getMsg();
+                }
+            }
+            return null;
+        }
+    }
+
+
+    /**
+     * 报告类型
+     */
+    public enum ReportTypeEnum {
+        /**
+         * 报告类型
+         */
+        资信的调查报告(0), 案件进展报告(1), 债权穿透分析报告(2), 公司动态监测报告(3), 律师匹配报告(4),
+        简易资信报告(5), 权益及风险分析报(6), 律师分析报告(7), 可执行诊断报告(8), 案件托管报告(9),
+        财产信息分析报告(10), 履债评估报告(11);
+        private Integer code;
+
+        ReportTypeEnum(Integer code) {
+            this.code = code;
+        }
+
+        public Integer getCode() {
+            return code;
+        }
+
+        public static String getDescByCode(Integer code) {
+            for (ReportTypeEnum e : ReportTypeEnum.values()) {
+                if (e.getCode().equals(code)) {
+                    return e.name();
+                }
+            }
+            return null;
+        }
+
+    }
+
+    /**
+     * 被告类型
+     */
+    public enum LitigantTypeEnum {
+        /**
+         * 报告类型
+         */
+        自然人("0"),企业("1"),自然人无关联("2");
+        private final String code;
+
+        LitigantTypeEnum(String code) {
+            this.code = code;
+        }
+
+        public String getCode() {
+            return code;
+        }
+    }
+
+    public enum rankStatusEnum {
+        /**
+         * 评分结果
+         */
+        待评分(0), 评分完成(1), 评分失败(3);
+        private final Integer code;
+
+        rankStatusEnum(Integer code) {
+            this.code = code;
+        }
+
+        public Integer getCode() {
+            return code;
+        }
+    }
+
+    public enum ReadStatusEnum {
+        /**
+         * 读状态
+         */
+        未读(0),已读(1);
+        private final Integer code;
+
+        ReadStatusEnum(Integer code) {
+            this.code = code;
+        }
+
+        public Integer getCode() {
+            return code;
+        }
+    }
+
+    public enum OverdueEnum{
+        /**
+         * 逾期枚举
+         */
+        即将逾期("OVERDUE_WEEK"),已逾期("OVERDUED"),已逾期三个月("OVERDUE_THREEMONTH"),
+        已逾期半年("OVERDUE_HALFYEAR"),已逾期一年("OVERDUE_YEAR"),已逾期三年("OVERDUE_THREEYEAR"),其他("OTHER");
+        private final String code;
+
+        OverdueEnum(String code) {
+            this.code = code;
+        }
+
+        public String getCode() {
+            return code;
+        }
+    }
+
+
+    public enum RemindEnum {
+        /**
+         * 智能提醒类型
+         */
+        逾期提醒,账款评级,财产线索,风险预警;
+    }
+
+
+    public enum UpdateTypeEnum {
+        /**
+         * 修改类型
+         */
+        END_DATE(1, "应收日期"),
+        RECEIVABLE(2, "应收金额"),
+        ALL(3, "账款信息");
+        private final Integer code;
+
+        private final String message;
+
+        UpdateTypeEnum(Integer code, String message) {
+            this.code = code;
+            this.message = message;
+        }
+
+        public Integer getCode() {
+            return code;
+        }
+
+        public String getMessage() {
+            return message;
+        }
+    }
+
+
+    public enum MsgNameEnum {
+        /**
+         * 模板名称
+         */
+        逾期APP提醒(""),逾期短信提醒(""),
+        评级变动APP提醒(""),评级变动短信提醒(""),
+        财产线索APP提醒(""),财产线索短信提醒(""),
+        风险提醒APP提醒(""),风险提醒短信提醒(""),评级无变动APP提醒("");
+        public String code;
+
+        MsgNameEnum(String code) {
+            this.code = code;
+        }
+    }
+
+    public enum MsgKindEnum{
+        /**
+         * 消息类型
+         */
+        app, weixin, sms, mail, delay
+    }
+
+    public enum VIP_SIGN_ENUM {
+
+        /**
+         *  vip类型
+         */
+        VIP("0"), 非VIP("1");
+        private final String code;
+
+        VIP_SIGN_ENUM(String code) {
+            this.code = code;
+        }
+
+        public String getCode() {
+            return code;
+        }
+
+    }
+
+    public enum REMIND_SETTING_ENUM {
+
+        /**
+         *  提醒设置类型
+         */
+        不需要提醒(0), 需要提醒(1);
+        private final Integer code;
+
+        REMIND_SETTING_ENUM(Integer code) {
+            this.code = code;
+        }
+
+        public Integer getCode() {
+            return code;
+        }
+
+    }
+
+    public enum TIME_SLOT_ENUM {
+        全部("ALL"),近30天("MONTH");
+
+        private String code;
+
+        TIME_SLOT_ENUM(String code) {
+            this.code = code;
+        }
+
+        public String getCode() {
+            return code;
+        }
+    }
+
+    public enum OverdueDayTypeNum {
+        /**
+         *  逾期天数类型
+         */
+        三个月内(1),
+        三至六个月(2),
+        半年至一年(3),
+        一年至三年(4),
+        三年以上(5);
+
+        private final Integer code;
+
+        OverdueDayTypeNum(Integer code) {
+            this.code = code;
+        }
+
+        public Integer getCode() {
+            return code;
+        }
+    }
+
+    public enum OverdueTipsEnum {
+        /**
+         *  1催款函,2快速咨询,3追欠款,4律师函服务
+         */
+        催款函(1, "催款函"),
+        快速咨询(2, "去咨询"),
+        追欠款(3, "立即前往"),
+        律师函服务(4, "律师函服务");
+
+        private final Integer code;
+
+        private final String desc;
+
+        OverdueTipsEnum(Integer code, String desc) {
+            this.code = code;
+            this.desc = desc;
+        }
+
+        public Integer getCode() {
+            return code;
+        }
+
+        public String getDesc() {
+            return desc;
+        }
+    }
+
+    /**
+     * 用户身份
+     */
+    public enum IdentityEnum {
+        /**
+         * 用户身份
+         */
+        商务人士("1"),认证律师("2"),认证法务("3"),其他法律人("4");
+        private final String code;
+
+        IdentityEnum(String code) {
+            this.code = code;
+        }
+
+        public String getCode() {
+            return code;
+        }
+
+        public static String getDescByCode(String code) {
+            for (IdentityEnum e : IdentityEnum.values()) {
+                if (e.getCode().equals(code)) {
+                    return e.name();
+                }
+            }
+            // 此处未查到,返回空串
+            return "";
+        }
+    }
+}

+ 131 - 0
src/main/java/com/winhc/returnmoney/enums/DynamicEnum.java

@@ -0,0 +1,131 @@
+package com.winhc.returnmoney.enums;
+
+import java.util.Objects;
+
+/**
+ * @description: 动态类型
+ * @author: Anakin
+ * @date 2021.8.2 10:12
+ */
+public enum DynamicEnum {
+    //经营异常新增
+    经营异常("company_abnormal_info", "301901", "1","company_abnormal_info","JingYingYiChangDet"),
+    经营异常_移除("company_abnormal_info", "301902", "1","","JingYingYiChangDet"),
+    法院公告("company_court_announcement","302001", "2","company_court_announcement_list","KaiTingGongGaoDet"),
+    开庭公告("company_court_open_announcement","302101", "3","company_court_open_announcement_list",""),
+    立案信息("company_court_register","302201", "4","company_court_register_list","LiAnXinXiDet"),
+    环保处罚("company_env_punishment","302401", "5","","HuanBaoChuFaDet"),
+    严重违法("company_illegal_info","302501", "6","company_illegal_info","YanZhongWeiFaXingWeiDet"),
+    行政处罚("company_punishment_info","302601", "7","","XingZhengChuFaDet"),
+    行政处罚_信用中国("company_punishment_info","302601", "7","","XingZhengChuFaDet"),
+    送达公告("company_send_announcement","302701", "8","","SongDaGongGaoDet"),
+    税收违法("company_tax_contravention","302801", "9","company_tax_contravention","ShuiShouWeiFaDet"),
+    司法拍卖("auction_tracking","302901", "10","company_judicial_sale_combine_list","PaiMaiXiangQing"),
+    欠税公告("company_own_tax","303001", "11","company_own_tax","QianShuiGongGaoDet"),
+    询价评估结果("zxr_evaluate_results","304501", "12","","XunJiaPingGuDet"),
+    破产信息("bankruptcy_open_case","303101", "13","bankruptcy_open_case","PoChanChongZhengDet"),
+    简易注销("company_brief_cancel_announcement","303201", "14","company_brief_cancel_announcement","JianYiZhuXiao"),
+    失信被执行人("company_dishonest_info","303301", "15","company_dishonest_info","ShiXinQingKuangDet"),
+    公示催告("company_public_announcement","303401", "16","","GongShiCuiGaoDet"),
+    被执行人("company_zxr","303501", "17","company_zxr_list","BeiZhiXingRenDet"),
+    终本案件("company_zxr_final_case","303601", "18","company_zxr_final_case","ZhongBenAnJianDet"),
+    限制高消费("company_zxr_restrict","303701", "19","company_zxr_restrict","JYXianZhiGaoXiaoFeiDet"),
+    限制出境("restrictions_on_exit","303801", "20","","XianZhiChuJingDet"),
+    股权出质("company_equity_info","303901", "21","company_equity_info","GuQuanChuZhiDet"),
+    股权质押("company_equity_pledge_holder","304001", "22","","GuQuanZhiYaDet"),
+    股权冻结("company_judicial_assistance","304101", "23","","GuQuanDongJieDet"),
+    土地抵押("company_land_mortgage","304201", "24","company_land_mortgage","TuDiDiYaDet"),
+    动产抵押("company_mortgage_info","304301", "25","company_mortgage_info","DongChanDiYaDet"),
+    裁判文书("company_lawsuit","304401", "26","wenshu_detail_combine","JYWenShuDet"),
+
+    抽查检查("company_check_info","201101", "27","","ChouChaJianChaDet"),
+    双随机抽查("company_double_random_check_info","201201", "28","","ShuangSuiJiChouChaDet"),
+    融资信息("company_finance","201301", "29","","RongZhiXinXi"),
+    行政许可("company_license","201401", "30","","XingZhenXuKeDet"),
+    行政许可_信用中国("company_license_creditchina","201401", "30","","XingZhenXuKeDet"),
+    购地信息("company_land_announcement","201501", "31","","GouDiXinXiDet"),
+    地块公示("company_land_publicity","201601", "32","","TuDiXinXiDet"),
+    土地转让("company_land_transfer","201701", "33","company_land_transfer","TuDiZhuanRangDet"),
+    知识产权("intellectual","201801", "34","",""),
+//    公司名称("intellectual","101001"),
+    股东变更("company_holder","101101","42","company_holder","GuDongBianGengDet")
+    ;
+    private String tn;
+    private String code;
+    private String infoType;
+    private String opportunity;
+    private String routing;
+
+    DynamicEnum(String tn,String code,  String infoType, String opportunity, String routing) {
+        this.code = code;
+        this.tn = tn;
+        this.infoType = infoType;
+        this.opportunity = opportunity;
+        this.routing = routing;
+    }
+
+    public static DynamicEnum getEnum(String code) {
+        for (DynamicEnum en : DynamicEnum.values()) {
+            if (Objects.equals(en.getCode(), code)) {
+                return en;
+            }
+        }
+        return null;
+    }
+
+    public static String getDescByTn(String tn) {
+        for (DynamicEnum en : DynamicEnum.values()) {
+            if (Objects.equals(en.getTn(), tn)) {
+                return en.name();
+            }
+        }
+        return null;
+    }
+
+    public static String getOpportunityByTn(String tn) {
+        for (DynamicEnum en : DynamicEnum.values()) {
+            if (Objects.equals(en.getTn(), tn)) {
+                return en.getOpportunity();
+            }
+        }
+        return null;
+    }
+
+    public static String getInfoTypeByTn(String tn) {
+        for (DynamicEnum en : DynamicEnum.values()) {
+            if (Objects.equals(en.getTn(), tn)) {
+                return en.getInfoType();
+            }
+        }
+        return null;
+    }
+
+    public static String getRoutingByTn(String tn) {
+        for (DynamicEnum en : DynamicEnum.values()) {
+            if (Objects.equals(en.getTn(), tn)) {
+                return en.getRouting();
+            }
+        }
+        return null;
+    }
+
+    public String getCode() {
+        return code;
+    }
+
+    public String getTn() {
+        return tn;
+    }
+
+    public String getInfoType() {
+        return infoType;
+    }
+
+    public String getOpportunity() {
+        return opportunity;
+    }
+
+    public String getRouting() {
+        return routing;
+    }
+}

+ 72 - 0
src/main/java/com/winhc/returnmoney/enums/FinanceDimensionEnum.java

@@ -0,0 +1,72 @@
+package com.winhc.returnmoney.enums;
+
+/**
+ * @description: 财产线索维度枚举
+ * @author: Anakin
+ * @date 2020.12.17 17:07
+ */
+public enum FinanceDimensionEnum {
+    破产公告("1","BANKRUPTCY_OPEN_CASE","破产公告", "PoChanChongZhengDet"),
+    工商信息("2","INCREASE_REGISTERED_CAPITAL_INFO","工商信息", "GongShangXinXiCaiChan"),
+    招投标("3","COMPANY_BID_LIST","招投标", "ZhaoTouBiaoDet"),
+    软件著作权("4","COMPANY_COPYRIGHT_REG_LIST","软件著作权","RuanJianZhuZuoQuanDet"),
+    作品著作权("5","COMPANY_COPYRIGHT_WORKS_LIST","作品著作权", "ZuoPinZhuZuoQuanDet"),
+    开庭公告("6","COMPANY_COURT_OPEN_ANNOUNCEMENT_LIST","开庭公告", "KaiTingGongGaoDet"),
+    企业失信被执("7","COMPANY_DISHONEST_INFO","企业失信被执", "ShiXinQingKuangDet"),
+    股权出质("8","COMPANY_EQUITY_INFO_LIST","股权出质", "GuQuanChuZhiDet"),
+    融资历史("9","COMPANY_FINANCE","融资历史", "RongZhiXinXi"),
+    股东("10","COMPANY_HOLDER","股东", "GuDongCaiChan"),
+    购地信息("11","COMPANY_LAND_ANNOUNCEMENT","购地信息", "GouDiXinXiDet"),
+    土地抵押("12","COMPANY_LAND_MORTGAGE","土地抵押", "TuDiDiYaDet"),
+    动产抵押("13","COMPANY_MORTGAGE_INFO","动产抵押", "DongChanDiYaDet"),
+    专利("14","COMPANY_PATENT_LIST","专利", "ZhuanLiDet"),
+    商标("15","COMPANY_TM","商标", "ShangBiaoDet"),
+    企业被执行人("16","COMPANY_ZXR_LIST","企业被执行人", "BeiZhiXingRen"),
+    限制消费令("17","COMPANY_ZXR_RESTRICT","限制消费令", "JYXianZhiGaoXiaoFeiDet"),
+    裁判文书("18","WENSHU_DETAIL","裁判文书", "JYNewCaselibDet"),
+    司法拍卖("19","AUCTION_TRACKING_LIST","司法拍卖", "PaiMaiXiangQing"),
+    询价评估机构("20","ZXR_EVALUATE","询价评估(机构)","XunJiaPingGuJiGouCaiChan"),
+    询价评估结果("21","ZXR_EVALUATE_RESULTS","询价评估", "XunJiaPingGuDet");
+    private String code;
+    private String tableName;
+    private String desc;
+    private String routing;
+
+    FinanceDimensionEnum(String code, String tableName, String desc) {
+        this.code = code;
+        this.tableName = tableName;
+        this.desc = desc;
+    }
+
+    FinanceDimensionEnum(String code, String tableName, String desc, String routing) {
+        this.code = code;
+        this.tableName = tableName;
+        this.desc = desc;
+        this.routing = routing;
+    }
+
+    public String getCode() {
+        return code;
+    }
+
+    public String getDesc() {
+        return desc;
+    }
+
+    public String getTableName() {
+        return tableName;
+    }
+
+    public String getRouting() {
+        return routing;
+    }
+
+    public static FinanceDimensionEnum getByCode(String code) {
+        for (FinanceDimensionEnum e : FinanceDimensionEnum.values()) {
+            if (e.getCode().equals(code)) {
+                return e;
+            }
+        }
+        return null;
+    }
+}

+ 45 - 0
src/main/java/com/winhc/returnmoney/enums/FinanceDynamicTypeEnum.java

@@ -0,0 +1,45 @@
+package com.winhc.returnmoney.enums;
+
+/**
+ * @author Aaron
+ * @date 2020/12/19 9:47
+ * @description
+ */
+public enum FinanceDynamicTypeEnum {
+    /**
+     * 财产动态类型
+     */
+    新增破产公告("1","新增破产公告"),注册资本上升("2","注册资本上升"),新增招标信息("3","新增招标信息"),
+    软件著作权("4","新增软件著作权"),作品著作权("5","新增作品著作权"),有恢复执行案件即将开庭("6","有恢复执行案件即将开庭"),
+    失信信息移除("7","失信信息移除"),出质了持有股权("8","出质了持有股权"),有新的融资("9","有新的融资"),
+    新增了股东("10","新增了股东"),股东退出("11","股东退出"),购买了新的土地("12","购买了新的土地"),
+    抵押了公司土地("13","抵押了公司土地"),资产被抵押("14","资产被抵押"),新增专利信息("15","新增专利信息"),
+    新增商标信息("16","新增商标信息"),被执行人信息移除("17","被执行人信息移除"),限制高消费移除("18","限制高消费移除"),
+    有恢复执行案件("19","有恢复执行案件"),新增胜诉案件("20","新增胜诉案件"),接受了他人土地抵押("21","接受了他人土地抵押"),
+    有资产即将被司法拍卖("22","有资产即将被司法拍卖");
+
+    private String code;
+    private String desc;
+
+    FinanceDynamicTypeEnum(String code, String desc) {
+        this.code = code;
+        this.desc = desc;
+    }
+
+    public String getCode() {
+        return code;
+    }
+
+    public String getDesc() {
+        return desc;
+    }
+
+    public static String getDescByCode(String code) {
+        for (FinanceDynamicTypeEnum e : FinanceDynamicTypeEnum.values()) {
+            if (e.getCode().equals(code)) {
+                return e.getDesc();
+            }
+        }
+        return null;
+    }
+}

+ 140 - 0
src/main/java/com/winhc/returnmoney/enums/RadarInfoTypeEnum.java

@@ -0,0 +1,140 @@
+package com.winhc.returnmoney.enums;
+
+/**
+ * @description: 雷达监控信息类型
+ * @author: yujie
+ * @date 2020.8.24 19:12
+ */
+public enum RadarInfoTypeEnum {
+    破产公告("bankruptcy_open_case","破产公告", "PoChanGongGao"),
+    工商信息("company","工商信息", "GongShangXinXi"),
+    经营异常("company_abnormal_info","经营异常", "JingYingYiChang"),
+    年报_对外担保("company_annual_report_out_guarantee","对外担保", "DuiWaiDanBao"),
+    年报_对外投资("company_annual_report_out_investment","对外投资", "DuiWaiTouZi"),
+    招投标("company_bid","招投标", "ZhaoTouBiao"),
+    简易注销_结果("company_brief_cancel_announcement","简易注销", "JianYiZhuXiao"),
+    抽查检查("company_check_info","抽查检查", "ChouChaJianCha"),
+    法院公告("company_court_announcement_list","法院公告", "FaYuanGongGao"),
+    开庭公告("company_court_open_announcement_list","开庭公告", "KaiTingGongGao"),
+    立案信息("company_court_register_list","立案信息", "LiAnXinXi"),
+    企业失信被执("company_dishonest_info","企业失信被执", "QiYeShiXinBeiZhi"),
+    双随机抽查("company_double_random_check_info","双随机抽查", "ShuangSuiJiChouCha"),
+    招聘信息("company_employment","招聘信息", "ZhaoPinXinXi"),
+    环保处罚("company_env_punishment","环保处罚", "HuanBaoChuFa"),
+    股权出质("company_equity_info","股权出质", "GuQuanChuZhi"),
+    融资历史("company_finance","融资历史", "RongZiLiShi"),
+    股东("company_holder","股东", "GuDong"),
+    严重违法("company_illegal_info","严重违法", "YanZhongWeiFa"),
+    司法拍卖("company_judicial_sale_combine_list","司法拍卖", "SiFaPaiMai"),
+    购地信息("company_land_announcement","购地信息", "GouDiXinXi"),
+    土地抵押("company_land_mortgage","土地抵押", "TuDiDiYa"),
+    地块公示("company_land_publicity","地块公示", "DiKuaiGongShi"),
+    土地转让("company_land_transfer","土地转让", "TuDiZhuanRang"),
+    行政许可("company_license","行政许可", "XingZhengXuKe"),
+    行政许可_信用中国("company_license_creditchina","行政许可(信用中国)", "XingZhengXuKeXinYongZhongGuo"),
+    行政许可_企业公示("company_license_entpub","行政许可(企业公示)", "XingZhengXuKeQiYeGongShi"),
+    清算信息("company_liquidating_info","清算信息", "QingSuanXinXi"),
+    动产抵押("company_mortgage_info","动产抵押", "DongChanDiYa"),
+    欠税公告("company_own_tax","欠税公告", "QianShuiGongGao"),
+    公示催告("company_public_announcement2_list","公示催告", "GongShiCuiGao"),
+    行政处罚("company_punishment_info","行政处罚", "XingZhengChuFa"),
+    行政处罚_信用中国("company_punishment_info_creditchina","行政处罚(信用中国)", "XingZhengChuFaXinYongZhongGuo"),
+    送达公告("company_send_announcement_list","送达公告", "SongDaGongGao"),
+    主要成员("company_staff","主要成员", "ZhuYaoRenYuan"),
+    企业公告("company_stock_announcement","企业公告", "QiYeGongGao"),
+    税收违法("company_tax_contravention","税收违法", "ShuiShouWeiFa"),
+    终本案件("company_zxr_final_case","终本案件", "ZhongBenAnJian"),
+    限制消费令("company_zxr_restrict","限制消费令", "XianZhiXiaoFeiLing"),
+    裁判文书("wenshu_detail_combine","裁判文书", "CaiPanWenShu"),
+    知识产权("intellectual","知识产权", "ZhiShiChanQuan"),
+    企业被执("company_zxr_list","企业被执","BeiZhiXingRen");
+    private String code;
+    private String desc;
+    private String url;
+
+    RadarInfoTypeEnum(String code, String desc, String url) {
+        this.code = code;
+        this.desc = desc;
+        this.url = url;
+    }
+
+    public String getCode() {
+        return code;
+    }
+
+    public String getDesc() {
+        return desc;
+    }
+
+    public String getUrl() {
+        return url;
+    }
+
+    public static String getDescByCode(String code) {
+        for (RadarInfoTypeEnum e : RadarInfoTypeEnum.values()) {
+            if (e.getCode().equals(code)) {
+                return e.name();
+            }
+        }
+        return null;
+    }
+    public static RadarInfoTypeEnum getByCode(String code) {
+        for (RadarInfoTypeEnum e : RadarInfoTypeEnum.values()) {
+            if (e.getCode().equals(code)) {
+                return e;
+            }
+        }
+        return null;
+    }
+
+    public static String getUrlByCode(String code) {
+        for (RadarInfoTypeEnum e : RadarInfoTypeEnum.values()) {
+            if (e.getCode().equals(code)) {
+                return e.getUrl();
+            }
+        }
+        return null;
+    }
+}
+/**
+ * bankruptcy_open_case破产公告
+ * company工商信息
+ * company_abnormal_info经营异常
+ * company_annual_report_out_guarantee年报_对外担保
+ * company_annual_report_out_investment年报_对外投资
+ * company_bid招投标
+ * company_brief_cancel_announcement_result简易注销_结果
+ * company_check_info抽查检查
+ * company_court_announcement_list法院公告
+ * company_court_open_announcement_list开庭公告
+ * company_court_register_list立案信息
+ * company_dishonest_info企业失信被执
+ * company_double_random_check_info双随机抽查
+ * company_employment招聘信息
+ * company_env_punishment环保处罚
+ * company_equity_info股权出质
+ * company_finance融资历史
+ * company_holder股东
+ * company_illegal_info严重违法
+ * company_judicial_sale_combine_list司法拍卖
+ * company_land_announcement购地信息
+ * company_land_mortgage土地抵押
+ * company_land_publicity地块公示
+ * company_land_transfer土地转让
+ * company_license行政许可
+ * company_license_creditchina行政许可_信用中国
+ * company_license_entpub行政许可_企业公示
+ * company_liquidating_info清算信息
+ * company_mortgage_info动产抵押
+ * company_own_tax欠税公告
+ * company_public_announcement2_list公示催告
+ * company_punishment_info行政处罚
+ * company_punishment_info_creditchina行政处罚_信用中国
+ * company_send_announcement_list送达公告
+ * company_staff主要成员
+ * company_stock_announcement企业公告
+ * company_tax_contravention税收违法
+ * company_zxr_final_case终本案件
+ * company_zxr_restrict限制消费令
+ * wenshu_detail_combine裁判文书
+ */

+ 52 - 0
src/main/java/com/winhc/returnmoney/enums/ValueAddedServiceEnum.java

@@ -0,0 +1,52 @@
+package com.winhc.returnmoney.enums;
+
+import java.util.List;
+
+/**
+ * @Description: ValueAddedServiceEnum
+ * @Author: xda
+ * @Date: 2020/12/23  17:35
+ */
+public enum ValueAddedServiceEnum {
+
+    /**
+     *  增值服务
+     */
+//    anjianzhenduan("案件诊断", "智能评估案件胜诉概率及债务人履职能力"),
+    susongtouzi("诉讼投资", "零成本启动诉讼,商事案件首选"),
+    jinzhidiaocha("尽职调查", "全面结构化深度调查企业情况"),
+    zhaocaichan("找财产", "快速查找企业财产线索"),
+    chafengxian("查风险", "查企业风险信息,提前做好预防"),
+    qiyefayan("企业法眼", "快速查看企业司法信息,便捷、高效"),
+//    chashixinren("查失信限高", "快速识别身边\"老赖\""),
+    chabeizhixingren("查失信限高", "包括失信、被执、限高、终本等多维度信息"),
+    chasifaanjian("查司法案件", "司法裁判数据支持,快速查找司法案件"),
+    soulvshi("找律师", "精准匹配适合您案件的律师"),
+    hetongmuban("合同模板", "多种合同模板随时下载"),
+    cuikuanhan("催款函", "一键下载催款函模板"),
+    leianjiansuo("类案检索", "大数据精准检索同类案件"),
+    zhaozhaiquan("找债权", "查找债权关系,了解企业债务情况"),
+    lvshihanfuwu("律师函服务", "专业律师撰写律师函,让发送对象了解法律后果"),
+    zixunlvshi("咨询律师", "可找律师咨询汇款策略,提高汇款概率")
+    ;
+
+
+
+
+    private String title;
+
+    private String desc;
+
+    ValueAddedServiceEnum(String title, String desc) {
+        this.title = title;
+        this.desc = desc;
+    }
+
+    public String getTitle() {
+        return title;
+    }
+
+    public String getDesc() {
+        return desc;
+    }
+}

+ 97 - 0
src/main/java/com/winhc/returnmoney/exception/ExceptionHandle.java

@@ -0,0 +1,97 @@
+package com.winhc.returnmoney.exception;
+
+import com.winhc.common.base.BeanResponse;
+import com.winhc.common.enums.CodeMsg;
+import com.winhc.common.exception.CommonException;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.core.annotation.Order;
+import org.springframework.validation.BindException;
+import org.springframework.web.bind.MethodArgumentNotValidException;
+import org.springframework.web.bind.annotation.ControllerAdvice;
+import org.springframework.web.bind.annotation.ExceptionHandler;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+
+/**
+ * @description: 全局异常捕获
+ * @author: yujie
+ * @date 2019/4/24 10:07
+ */
+@Order(1)
+@Slf4j
+@ControllerAdvice
+public class ExceptionHandle {
+
+    /**
+     * 异常捕获
+     * @param exception 异常
+     * @return
+     */
+    @ExceptionHandler(value = Exception.class)
+    @ResponseBody
+    public BeanResponse<Void> exceptionHandle(Exception exception) {
+        log.error("系统异常", exception);
+        return BeanResponse.error(CodeMsg.FAILED);
+    }
+
+    /**
+     * 通用异常捕获
+     * @param commonException 通用异常
+     * @return
+     */
+    @ExceptionHandler(value = CommonException.class)
+    @ResponseBody
+    public BeanResponse<Void> commonExceptionHandle(CommonException commonException) {
+        log.error("通用异常", commonException);
+        return BeanResponse.error(CodeMsg.FAILED.getCode(), commonException.getMessage());
+    }
+
+    /**
+     * 参数校验异常绑定
+     * @param bindException 绑定异常
+     * @return
+     */
+    @ExceptionHandler(value = BindException.class)
+    @ResponseBody
+    public BeanResponse<Void> bindExceptionHandle(BindException bindException) {
+        StringBuilder msgBuilder = new StringBuilder();
+        bindException.getBindingResult().getFieldErrors().forEach(error -> msgBuilder.append(error.getDefaultMessage()));
+        //bindException.getFieldErrors().forEach(error -> msgBuilder.append(error.getField()).append(":")
+        //        .append(error.getDefaultMessage()).append("/"));
+        //msgBuilder.deleteCharAt(msgBuilder.lastIndexOf("/"));
+        String errorMsg = msgBuilder.toString();
+        log.error("参数异常:" + errorMsg);
+        return BeanResponse.error(CodeMsg.VALIDATE_PARAMETER.getCode(), errorMsg);
+    }
+
+    /**
+     * 参数校验异常绑定
+     * @param ex 绑定异常
+     * @return
+     */
+    @ExceptionHandler(value = MethodArgumentNotValidException.class)
+    @ResponseBody
+    public BeanResponse<Void> argumentNotValid(MethodArgumentNotValidException ex) {
+        StringBuilder msgBuilder = new StringBuilder();
+        //ex.getBindingResult().getFieldErrors().forEach(error -> msgBuilder.append(error.getField()).append(":")
+                //.append(error.getDefaultMessage()).append("/"));
+        ex.getBindingResult().getFieldErrors().forEach(error -> msgBuilder.append(error.getDefaultMessage()));
+        //msgBuilder.deleteCharAt(msgBuilder.lastIndexOf("/"));
+        String errorMsg = msgBuilder.toString();
+        log.error("参数异常:" + errorMsg);
+        return BeanResponse.error(CodeMsg.VALIDATE_PARAMETER.getCode(), errorMsg);
+    }
+
+
+    /**
+     * 参数校验异常绑定
+     * @param ex 绑定异常
+     * @return
+     */
+    @ExceptionHandler(value = {IllegalArgumentException.class})
+    @ResponseBody
+    public BeanResponse<Void> argumentException(RuntimeException ex) {
+        log.error("IllegalArgumentException:" + ex.getMessage());
+        return BeanResponse.error(CodeMsg.VALIDATE_PARAMETER.getCode(), ex.getMessage());
+    }
+}

+ 17 - 0
src/main/java/com/winhc/returnmoney/model/bo/AspectRequestBO.java

@@ -0,0 +1,17 @@
+package com.winhc.returnmoney.model.bo;
+
+import lombok.AllArgsConstructor;
+import lombok.Data;
+
+/**
+ * @description: aop获取的请求信息
+ * @author: yujie
+ * @date 2019.11.27 14:45
+ */
+@AllArgsConstructor
+@Data
+public class AspectRequestBO {
+    private String method;
+    private String path;
+    private String desc;
+}

+ 94 - 0
src/main/java/com/winhc/returnmoney/model/bo/DynamicDataBO.java

@@ -0,0 +1,94 @@
+package com.winhc.returnmoney.model.bo;
+
+import cn.hutool.core.collection.CollUtil;
+import io.swagger.annotations.ApiModel;
+import lombok.Data;
+
+import java.util.List;
+
+/**
+ * @description: 动态数据对象
+ * @author: Anakin
+ * @date 2021.8.3 15:25
+ */
+@Data
+@ApiModel(description = "动态数据对象")
+public class DynamicDataBO {
+    private Object K;
+    private Object V;
+    private List<DynamicItemBO> L;
+
+    public DynamicDataBO(Object k, Object v) {
+        this.K = k;
+        this.V = v;
+    }
+
+    public DynamicDataBO(List<DynamicItemBO> l) {
+        this.L = l;
+    }
+
+    public DynamicDataBO(Object k, List<DynamicItemBO> l) {
+        this.K = k;
+        this.L = l;
+    }
+
+    public DynamicDataBO(Object k, DynamicItemBO... item) {
+        this.K = k;
+        this.L = CollUtil.newArrayList(item);
+    }
+
+    public DynamicDataBO(){}
+
+    public DynamicDataBO(Object k, Object v, List<DynamicItemBO> l) {
+        K = k;
+        V = v;
+        L = l;
+    }
+
+    /**
+     * [
+     *        {
+     * 		"K": "公告类型",-------------------------------------------- 公告类型:法院公告
+     * 		"V": "法院公告"
+     *    },
+     *    {
+     * 		"K": "案号",
+     * 		"V": "JTY(2019)"
+     *    },
+     *    {
+     * 		"K": "当事人",
+     * 		"L": [------------------------------------------------------- L中内容为拼接一行内容
+     *            {
+     * 				"I": "dkk9895667kk17nk78gh",------------------------- V为显示字段,I不为空则V高亮,根据ID长短跳转企业、自然人
+     * 				"V": "华为技术有限公司"
+     *            },
+     *            {
+     * 				"V":","
+     *            },
+     *            {
+     * 				"I": "dkk8989090",
+     * 				"V": "乐视控股(北京)有限公司"
+     *            }
+     * 		]
+     *    },
+     *    {
+     * 		"L": [
+     *            {
+     * 				"V": "从"
+     *            },
+     *            {
+     * 				"I": "dkk9895667kk17nk78gh",
+     * 				"V": "华为技术有限公司"
+     *            },
+     *            {
+     * 				"V": "变为"
+     *            },
+     *            {
+     * 				"I": "dkk8989090",
+     * 				"V": "乐视控股(北京)有限公司"
+     *            }
+     * 		]
+     *    }
+     * ]
+     */
+}

+ 40 - 0
src/main/java/com/winhc/returnmoney/model/bo/DynamicItemBO.java

@@ -0,0 +1,40 @@
+package com.winhc.returnmoney.model.bo;
+
+import lombok.Data;
+
+import java.util.List;
+
+/**
+ * @description: 动态JSON节点类
+ * @author: Anakin
+ * @date 2021.8.4 14:02
+ */
+@Data
+public class DynamicItemBO {
+    private Object I;
+    private Object V;
+
+    public DynamicItemBO(Object i, Object v) {
+        this.I = i;
+        this.V = v;
+    }
+
+    public DynamicItemBO(Object v) {
+        this.V = v;
+    }
+
+    public DynamicItemBO(){}
+
+    /**
+     * 连接两个节点
+     * @param bf
+     * @param sym
+     * @param af
+     * @return
+     */
+    public static List<DynamicItemBO> connect(List<DynamicItemBO> bf, String sym, List<DynamicItemBO> af) {
+        bf.add(new DynamicItemBO(sym));
+        bf.addAll(af);
+        return bf;
+    }
+}

+ 100 - 0
src/main/java/com/winhc/returnmoney/model/dto/AccountBillDTO.java

@@ -0,0 +1,100 @@
+package com.winhc.returnmoney.model.dto;
+
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import java.time.LocalDate;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
+/**
+ * @description AccountBill DTO对象
+ * @author Generator
+ * @date 2020-12-15
+ */
+@Data
+@Accessors(chain = true)
+@ApiModel(value="AccountBill DTO对象", description="账款表")
+public class AccountBillDTO {
+
+
+    @ApiModelProperty(value = "账本id")
+    private Long accountBookId;
+
+    @ApiModelProperty(value = "总应收金额")
+    private BigDecimal totalReceivable;
+
+    @ApiModelProperty(value = "当前应收金额")
+    private BigDecimal receivable;
+
+    @ApiModelProperty(value = "已收金额")
+    private BigDecimal received;
+
+    @ApiModelProperty(value = "账款状态,1进行中,2已逾期,3已收回")
+    private Integer accountBillStatus;
+
+    @ApiModelProperty(value = "账款阶段")
+    private Integer accountBillStage;
+
+    @ApiModelProperty(value = "应收账款日期")
+    private LocalDate endDate;
+
+    @ApiModelProperty(value = "账款备注")
+    private String accountBillRemark;
+
+    @ApiModelProperty(value = "账款标题")
+    private String accountBillTitle;
+
+    @ApiModelProperty(value = "账款logo")
+    private String accountBillLogo;
+
+    @ApiModelProperty(value = "账款刷新状态。1未刷新,2刷新中,3已刷新,0刷新失败")
+    private Integer refreshStatus;
+
+    @ApiModelProperty(value = "上次评估ID")
+    private Long preDiagnosisId;
+
+    @ApiModelProperty(value = "评估id")
+    private Long diagnosisId;
+
+    @ApiModelProperty(value = "上次评估等级")
+    private String preDiagnosisGrade;
+
+    @ApiModelProperty(value = "评估等级")
+    private String diagnosisGrade;
+
+    @ApiModelProperty(value = "本次评估分数")
+    private BigDecimal preDiagnosisScore;
+
+    @ApiModelProperty(value = "本次评估分数")
+    private BigDecimal diagnosisScore;
+
+    @ApiModelProperty(value = "上次评估时间")
+    private LocalDateTime preDiagnosisDatetime;
+
+    @ApiModelProperty(value = "评估时间")
+    private LocalDateTime diagnosisDatetime;
+
+    @ApiModelProperty(value = "趋势,1上升,2下降。0持平")
+    private Integer diagnosisTrend;
+
+    @ApiModelProperty(value = "")
+    private String remindInfo;
+
+    @ApiModelProperty(value = "是否删除,1删除。0否")
+    private Integer deleted;
+
+    @ApiModelProperty(value = "创建时间")
+    private LocalDateTime timeCreated;
+
+    @ApiModelProperty(value = "修改时间")
+    private LocalDateTime timeModified;
+
+
+}

+ 54 - 0
src/main/java/com/winhc/returnmoney/model/dto/AccountBillDiagnosisDTO.java

@@ -0,0 +1,54 @@
+package com.winhc.returnmoney.model.dto;
+
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
+/**
+ * @description AccountBillDiagnosis DTO对象
+ * @author Generator
+ * @date 2020-12-15
+ */
+@Data
+@Accessors(chain = true)
+@ApiModel(value="AccountBillDiagnosis DTO对象", description="账款评估记录表")
+public class AccountBillDiagnosisDTO {
+
+
+    @ApiModelProperty(value = "")
+    private Long id;
+
+    @ApiModelProperty(value = "账款id")
+    private Long accountBillId;
+
+    @ApiModelProperty(value = "评估等级")
+    private String diagnosisGrade;
+
+    @ApiModelProperty(value = "评估分值")
+    private BigDecimal diagnosisScore;
+
+    @ApiModelProperty(value = "评估时间")
+    private LocalDateTime diagnosisDatetime;
+
+    @ApiModelProperty(value = "评估状态:0诊断中;1诊断完成;9诊断失败")
+    private Integer diagnosisStatus;
+
+    @ApiModelProperty(value = "评估详情")
+    private String diagnosisDetail;
+
+    @ApiModelProperty(value = "创建时间")
+    private LocalDateTime timeCreated;
+
+    @ApiModelProperty(value = "修改时间")
+    private LocalDateTime timeModified;
+
+
+}

+ 57 - 0
src/main/java/com/winhc/returnmoney/model/dto/AccountBillMoneyRecordDTO.java

@@ -0,0 +1,57 @@
+package com.winhc.returnmoney.model.dto;
+
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
+/**
+ * @description AccountBillMoneyRecord DTO对象
+ * @author Generator
+ * @date 2020-12-15
+ */
+@Data
+@Accessors(chain = true)
+@ApiModel(value="AccountBillMoneyRecord DTO对象", description="账款金额变动记录")
+public class AccountBillMoneyRecordDTO {
+
+
+    @ApiModelProperty(value = "")
+    private Long id;
+
+    @ApiModelProperty(value = "账本id")
+    private Long accountBookId;
+
+    @ApiModelProperty(value = "账款id")
+    private Long accountBillId;
+
+    @ApiModelProperty(value = "变更类型,1增加,2减少")
+    private Integer changeType;
+
+    @ApiModelProperty(value = "收入类型,1账款总额,2已收金额")
+    private Integer receiveType;
+
+    @ApiModelProperty(value = "变更金额")
+    private BigDecimal changeMoney;
+
+    @ApiModelProperty(value = "改变前金额")
+    private BigDecimal preMoney;
+
+    @ApiModelProperty(value = "创建时间")
+    private LocalDateTime timeCreated;
+
+    @ApiModelProperty(value = "修改时间")
+    private LocalDateTime timeModified;
+
+    @ApiModelProperty(value = "是否删除,1删除。0否")
+    private Integer deleted;
+
+
+}

+ 50 - 0
src/main/java/com/winhc/returnmoney/model/dto/AccountBillOperLogDTO.java

@@ -0,0 +1,50 @@
+package com.winhc.returnmoney.model.dto;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
+/**
+ * @description AccountBillOperLog DTO对象
+ * @author Generator
+ * @date 2020-12-15
+ */
+@Data
+@Accessors(chain = true)
+@ApiModel(value="AccountBillOperLog DTO对象", description="账款精灵操作日志表")
+public class AccountBillOperLogDTO {
+
+
+    @ApiModelProperty(value = "")
+    private Long id;
+
+    @ApiModelProperty(value = "动作代码")
+    private String actionCode;
+
+    @ApiModelProperty(value = "动作名称")
+    private String actionName;
+
+    @ApiModelProperty(value = "操作时间")
+    private LocalDateTime operTime;
+
+    @ApiModelProperty(value = "用户ID")
+    private Long userId;
+
+    @ApiModelProperty(value = "业务类型")
+    private String bizType;
+
+    @ApiModelProperty(value = "业务ID")
+    private String bizId;
+
+    @ApiModelProperty(value = "操作内容")
+    private String actionContent;
+
+
+}

+ 44 - 0
src/main/java/com/winhc/returnmoney/model/dto/AccountBillPayerDTO.java

@@ -0,0 +1,44 @@
+package com.winhc.returnmoney.model.dto;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
+/**
+ * @description AccountBillPayer DTO对象
+ * @author Generator
+ * @date 2020-12-15
+ */
+@Data
+@Accessors(chain = true)
+@ApiModel(value="AccountBillPayer DTO对象", description="账款付款人明细表")
+public class AccountBillPayerDTO {
+
+
+    @ApiModelProperty(value = "")
+    private Long id;
+
+    @ApiModelProperty(value = "账款id")
+    private Long accountBillId;
+
+    @ApiModelProperty(value = "付款公司名称")
+    private String payerName;
+
+    @ApiModelProperty(value = "付款公司CID")
+    private String payerCid;
+
+    @ApiModelProperty(value = "付款公司LOGO")
+    private String payerLogo;
+
+    @ApiModelProperty(value = "创建时间")
+    private LocalDateTime timeCreated;
+
+
+}

+ 53 - 0
src/main/java/com/winhc/returnmoney/model/dto/AccountBookDTO.java

@@ -0,0 +1,53 @@
+package com.winhc.returnmoney.model.dto;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
+/**
+ * @description AccountBook DTO对象
+ * @author Generator
+ * @date 2020-12-15
+ */
+@Data
+@Accessors(chain = true)
+@ApiModel(value="AccountBook DTO对象", description="账本表")
+public class AccountBookDTO {
+
+
+    @ApiModelProperty(value = "")
+    private Long id;
+
+    @ApiModelProperty(value = "收款公司名称")
+    private String payeeName;
+
+    @ApiModelProperty(value = "收款公司LOGO")
+    private String payeeLogo;
+
+    @ApiModelProperty(value = "收款公司CID")
+    private String payeeCid;
+
+    @ApiModelProperty(value = "账本刷新状态。1未刷新,2刷新中,3已刷新,0刷新失败")
+    private Integer refreshStatus;
+
+    @ApiModelProperty(value = "用户id")
+    private Long userId;
+
+    @ApiModelProperty(value = "创建时间")
+    private LocalDateTime timeCreated;
+
+    @ApiModelProperty(value = "修改时间")
+    private LocalDateTime timeModified;
+
+    @ApiModelProperty(value = "是否删除,1删除。0否")
+    private Integer deleted;
+
+
+}

+ 48 - 0
src/main/java/com/winhc/returnmoney/model/dto/AccountRemindDefinitionDTO.java

@@ -0,0 +1,48 @@
+package com.winhc.returnmoney.model.dto;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
+/**
+ * @description AccountRemindDefinition DTO对象
+ * @author Generator
+ * @date 2020-12-15
+ */
+@Data
+@Accessors(chain = true)
+@ApiModel(value="AccountRemindDefinition DTO对象", description="")
+public class AccountRemindDefinitionDTO {
+
+
+    @ApiModelProperty(value = "")
+    private Long id;
+
+    @ApiModelProperty(value = "提醒类型,枚举(中文):逾期提醒、评级提醒、财产线索、风险提醒")
+    private String remindType;
+
+    @ApiModelProperty(value = "触发时机。"+
+            "1、逾期提醒:OVERDUE_WEEK(逾期前一周)、OVERDUED(已逾期)、OVERDUE_THREEMONTH(逾期三个月)、OVERDUE_HALFYEAR(逾期半年)、OVERDUE_YEAR(逾期1年)、OVERDUE_THREEYEAR(逾期3年)"+
+            "2、评级提醒:A、B、C、D"+
+            "3 4根据动态的数据来")
+    private String opportunity;
+
+    @ApiModelProperty(value = "账单状态,1进行中,2已逾期,3已收回")
+    private Integer accountBillStatus;
+
+    @ApiModelProperty(value = "账款阶段,1未起诉 2已起诉  3已申请执行 4终结本次执行")
+    private Integer accountBillStage;
+
+    @ApiModelProperty(value = "提醒文案")
+    private String remindContent;
+
+    @ApiModelProperty(value = "功能列表")
+    private String functionList;
+
+
+}

+ 44 - 0
src/main/java/com/winhc/returnmoney/model/dto/AccountRemindHistoryDTO.java

@@ -0,0 +1,44 @@
+package com.winhc.returnmoney.model.dto;
+
+import java.time.LocalDate;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.experimental.Accessors;
+import org.springframework.format.annotation.DateTimeFormat;
+import springfox.documentation.annotations.ApiIgnore;
+
+/**
+ * @description AccountRemindHistory DTO对象
+ * @author Generator
+ * @date 2020-12-14
+ */
+@Data
+@Accessors(chain = true)
+@ApiModel(value="智能提醒历史表入参")
+public class AccountRemindHistoryDTO {
+    @ApiModelProperty(value = "用户ID,后端默认添加")
+    private Long userId;
+
+    @ApiModelProperty(value = "账本ID")
+    private Long accountBookId;
+
+    @ApiModelProperty(value = "账款ID,进账款详情页才传")
+    private Long accountBillId;
+
+    @ApiModelProperty(value = "提醒类型(不传或者传非枚举字段默认全部),查数量不传:逾期提醒、账款评级、财产线索、风险预警、全部")
+    private String remindType;
+
+    @ApiModelProperty(value = "筛选时间类型: ALL(全部)、MONTH(近30天) 不传默认MONTH")
+    private String timeSlot;
+
+//    @ApiModelProperty(value = "提醒起始时间,格式yyyy-MM-dd")
+//    @DateTimeFormat(pattern="yyyy-MM-dd")
+//    private LocalDate remindStartDate;
+//
+//    @ApiModelProperty(value = "提醒结束时间,格式yyyy-MM-dd")
+//    @DateTimeFormat(pattern="yyyy-MM-dd")
+//    private LocalDate remindEndDate;
+
+
+}

+ 33 - 0
src/main/java/com/winhc/returnmoney/model/dto/AccountRemindSettingDTO.java

@@ -0,0 +1,33 @@
+package com.winhc.returnmoney.model.dto;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
+/**
+ * @description AccountRemindSetting DTO对象
+ * @author Generator
+ * @date 2021-08-03
+ */
+@Data
+@Accessors(chain = true)
+@ApiModel(value="AccountRemindSetting DTO对象", description="提醒设置表")
+public class AccountRemindSettingDTO {
+    @ApiModelProperty(value = "账款逾期是否需要提醒 0不需要  1需要")
+    private Integer overdue;
+
+    @ApiModelProperty(value = "评级变更是否需要提醒 0不需要  1需要")
+    private Integer rank;
+
+    @ApiModelProperty(value = "财产线索是否需要提醒 0不需要  1需要")
+    private Integer finance;
+
+    @ApiModelProperty(value = "风险动态是否需要提醒 0不需要  1需要")
+    private Integer risk;
+}

+ 72 - 0
src/main/java/com/winhc/returnmoney/model/dto/AddAccountBillDTO.java

@@ -0,0 +1,72 @@
+package com.winhc.returnmoney.model.dto;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.winhc.returnmoney.common.Constant;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import org.hibernate.validator.constraints.Length;
+import org.hibernate.validator.constraints.Range;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import javax.validation.constraints.DecimalMax;
+import javax.validation.constraints.DecimalMin;
+import javax.validation.constraints.NotNull;
+import java.math.BigDecimal;
+import java.time.LocalDate;
+import java.util.List;
+
+/**
+ * @description AccountBook DTO对象
+ * @author Generator
+ * @date 2020-12-15
+ */
+@Data
+@ApiModel(value="新增账本")
+public class AddAccountBillDTO {
+
+    @ApiModelProperty(value = "账本id,不传则表示新建一个账款+账本")
+    private Long accountBookId;
+
+    @ApiModelProperty(value = "收款公司名称")
+    @Length(max = 20, message = "收款公司名称超出长度限制")
+    private String payeeName;
+
+    @ApiModelProperty(value = "付款公司cid列表(移除)")
+    @Deprecated
+    private List<String> payerCidList;
+
+    @ApiModelProperty(value = "付款公司companyId列表(新增)")
+    private List<String> payerCompanyIdList;
+
+    @ApiModelProperty(value = "总应收金额")
+    @NotNull(message = "应收金额不能为空")
+    @DecimalMax(value = Constant.MAX_MONEY, message = "应收金额超出限制")
+    @DecimalMin(value = "0", message = "应收金额低于限制")
+    private BigDecimal receivable;
+
+    @ApiModelProperty(value = "账款状态,1进行中,2已逾期")
+    @NotNull(message = "账款状态不能为空")
+    @Range(min = 1, max = 2, message = "账款状态选择错误")
+    private Integer accountBillStatus;
+
+    @ApiModelProperty(value = "账款阶段,1未起诉,2已起诉,3已申请执行,4终结本次执行")
+    @Range(min = 1, max = 4, message = "账款阶段选择错误")
+    private Integer accountBillStage;
+
+    @ApiModelProperty(value = "应收账款日期, string, 格式yyyy-MM-dd")
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
+    private LocalDate endDate;
+
+    @ApiModelProperty(value = "账款备注")
+    @Length(max = 7, message = "备注超过长度限制")
+    private String accountBillRemark;
+
+
+
+
+
+
+
+}

+ 25 - 0
src/main/java/com/winhc/returnmoney/model/dto/AddAccountBillReceiptDTO.java

@@ -0,0 +1,25 @@
+package com.winhc.returnmoney.model.dto;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.math.BigDecimal;
+
+/**
+ * @Description: AddAccountBillReceiptDTO
+ * @Author: xda
+ * @Date: 2021/8/5 17:55
+ */
+@Data
+@ApiModel("添加已收账款")
+public class AddAccountBillReceiptDTO {
+
+    @ApiModelProperty("账款id")
+    private Long accountBillId;
+
+    @ApiModelProperty("收回金额")
+    private BigDecimal receipt;
+
+
+}

+ 23 - 0
src/main/java/com/winhc/returnmoney/model/dto/ApplyCustomerServiceDTO.java

@@ -0,0 +1,23 @@
+package com.winhc.returnmoney.model.dto;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
+/**
+ * @Description: ApplyCustomerServiceDTO
+ * @Author: xda
+ * @Date: 2020/12/22  10:33
+ */
+@Data
+@ApiModel("联系客服")
+@Accessors(chain = true)
+public class ApplyCustomerServiceDTO {
+
+    @ApiModelProperty("手机号")
+    private String mobile;
+
+    @ApiModelProperty(hidden = true)
+    private Long userId;
+}

+ 25 - 0
src/main/java/com/winhc/returnmoney/model/dto/BatchImportAccountBillDTO.java

@@ -0,0 +1,25 @@
+package com.winhc.returnmoney.model.dto;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * @Description: BatchImportAccountBillDTO
+ * @Author: xda
+ * @Date: 2020/12/22  14:37
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+@ApiModel("批量导入对象")
+public class BatchImportAccountBillDTO extends AddAccountBillDTO{
+
+    @ApiModelProperty("付款人name,分号分隔")
+    private String payerName;
+
+    @ApiModelProperty("手机号")
+    private String mobile;
+
+
+}

+ 25 - 0
src/main/java/com/winhc/returnmoney/model/dto/BatchPollAccountBillDTO.java

@@ -0,0 +1,25 @@
+package com.winhc.returnmoney.model.dto;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
+import java.util.List;
+
+/**
+ * @Description: BatchPollAccountBillDTO
+ * @Author: xda
+ * @Date: 2020/12/21  10:12
+ */
+@Data
+@ApiModel("批量id")
+@Accessors(chain = true)
+public class BatchPollAccountBillDTO {
+
+    @ApiModelProperty(hidden = true)
+    private Long userId;
+
+    @ApiModelProperty("账款idList")
+    private List<Long> idList;
+}

+ 48 - 0
src/main/java/com/winhc/returnmoney/model/dto/GetAccountBillListDTO.java

@@ -0,0 +1,48 @@
+package com.winhc.returnmoney.model.dto;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import org.hibernate.validator.constraints.Range;
+
+import java.time.LocalDate;
+
+/**
+ * @Description: GetAccountBillListDTO
+ * @Author: xda
+ * @Date: 2020/12/16  11:27
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+@ApiModel("获取账款列表请求对象")
+@Accessors(chain = true)
+public class GetAccountBillListDTO extends PageDTO{
+
+    @ApiModelProperty("账本id")
+    private Long accountBookId;
+
+    @ApiModelProperty(hidden = true)
+    private Long userId;
+
+    @ApiModelProperty(value = "账款状态,1进行中,2已逾期,3已收回")
+    @Range(min = 1, max = 3, message = "账款状态选择错误")
+    private Integer accountBillStatus;
+
+    @ApiModelProperty(value = "评估等级A,B,C,D")
+    private String diagnosisGrade;
+
+    @ApiModelProperty("搜索关键字,付款公司name or 标签")
+    private String keyword;
+
+    @ApiModelProperty("逾期天数类型,3个月内[1], 3-6个月[2], 半年至1年[3], 1-3年[4], 3年以上[5](新增)")
+    private Integer overdueDayType;
+
+    @ApiModelProperty(hidden = true)
+    private LocalDate startDate;
+
+    @ApiModelProperty(hidden = true)
+    private LocalDate endDate;
+
+}

+ 21 - 0
src/main/java/com/winhc/returnmoney/model/dto/PageDTO.java

@@ -0,0 +1,21 @@
+package com.winhc.returnmoney.model.dto;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+/**
+ * @Description: PageDTO
+ * @Author: xda
+ * @Date: 2020/12/16  11:46
+ */
+@Data
+@ApiModel("分页dto")
+public class PageDTO {
+
+    @ApiModelProperty("页长")
+    private Integer pageSize = 20;
+
+    @ApiModelProperty("页码")
+    private Integer pageNum = 1;
+}

+ 64 - 0
src/main/java/com/winhc/returnmoney/model/dto/RadarRtaDTO.java

@@ -0,0 +1,64 @@
+//package com.winhc.returnmoney.model.dto;
+//
+//import io.swagger.annotations.ApiModel;
+//import io.swagger.annotations.ApiModelProperty;
+//import lombok.AllArgsConstructor;
+//import lombok.Data;
+//import lombok.NoArgsConstructor;
+//import lombok.ToString;
+//
+//import javax.validation.constraints.NotBlank;
+//import javax.validation.constraints.NotNull;
+//import java.io.Serializable;
+//
+///**
+// *@description: RadarRta DTO
+// *@author: JPA AUTO
+// *@date: Mon Sep 02 14:21:35 CST 2019
+// */
+//@Data
+//@ToString
+//@NoArgsConstructor
+//@AllArgsConstructor
+//@ApiModel(description = "雷达监控企业 DTO")
+//public class RadarRtaDTO implements Serializable {
+//
+//	@NotBlank
+//	@ApiModelProperty(value = "企业名称")
+//	private String compName;
+//	@ApiModelProperty(value = "企业CID")
+//	private String keyNo;
+//
+//	@NotNull
+//	@ApiModelProperty(value = "周期(天)")
+//	private Integer cycleDays;
+//
+//	@ApiModelProperty(value = "业务类型:1已关闭案件;2已结案案件;3鹰眼查;4企业;5风控通过案件;6已签约案件;7已签约当事人;8风控拒绝案件; 9已委托案件,10债权监测,11旧案托管,12账款管家")
+//	private Integer bizType = 4;
+//
+//	@ApiModelProperty("案件ID")
+//	private String caseId;
+//
+//	@ApiModelProperty("用户ID")
+//	private Long userId;
+//
+//	@ApiModelProperty("操作员ID")
+//	private Integer operId;
+//
+//	@ApiModelProperty("操作员名称")
+//	private String operName;
+//
+//	@ApiModelProperty("业务ID")
+//	private String bizId;
+//
+//	@ApiModelProperty("监控截至日期yyyy-MM-dd")
+//	private String endDate;
+////	@ApiModelProperty(value = "null")
+////	private java.util.Date openDate;
+////	@ApiModelProperty(value = "null")
+////	private java.util.Date closeDate;
+////	@ApiModelProperty(value = "0开通,1关闭")
+////	private Integer status;
+////	@ApiModelProperty(value = "0:未处理1:企查查处理中2:企查查处理完毕 ")
+////	private Integer processStatus;
+//}

+ 17 - 0
src/main/java/com/winhc/returnmoney/model/dto/RefreshGradeDTO.java

@@ -0,0 +1,17 @@
+package com.winhc.returnmoney.model.dto;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * @author Aaron
+ * @date 2020/12/16 9:53
+ * @description
+ */
+@Data
+public class RefreshGradeDTO implements Serializable {
+    @ApiModelProperty(value = "账本ID")
+    private Long accountBookId;
+}

+ 0 - 0
src/main/java/com/winhc/returnmoney/model/dto/SearchKeywordDTO.java


Some files were not shown because too many files changed in this diff