浏览代码

1、添加pom引用
2、注释无用代码

41235 1 年之前
父节点
当前提交
ac97ab5cae
共有 63 个文件被更改,包括 2829 次插入2990 次删除
  1. 4 0
      hx-admin/pom.xml
  2. 5 0
      hx-common/pom.xml
  3. 44 44
      hx-common/src/main/java/com/fjhx/common/controller/currency/CurrencyRateController.java
  4. 31 31
      hx-common/src/main/java/com/fjhx/common/controller/on/OnLineInfoController.java
  5. 24 24
      hx-common/src/main/java/com/fjhx/common/entity/coding/dto/CodingRuleDto.java
  6. 17 17
      hx-common/src/main/java/com/fjhx/common/entity/coding/dto/CodingRuleSelectDto.java
  7. 30 30
      hx-common/src/main/java/com/fjhx/common/entity/coding/dto/DefaultRule.java
  8. 41 41
      hx-common/src/main/java/com/fjhx/common/entity/coding/po/CodingRule.java
  9. 28 28
      hx-common/src/main/java/com/fjhx/common/entity/coding/po/CodingRuleAuto.java
  10. 17 17
      hx-common/src/main/java/com/fjhx/common/entity/contract/dto/ContractTemplateDto.java
  11. 53 53
      hx-common/src/main/java/com/fjhx/common/entity/contract/po/ContractTemplate.java
  12. 29 29
      hx-common/src/main/java/com/fjhx/common/entity/contract/vo/ContractTemplateVo.java
  13. 51 51
      hx-common/src/main/java/com/fjhx/common/entity/corporation/dto/CorporationDto.java
  14. 17 17
      hx-common/src/main/java/com/fjhx/common/entity/corporation/dto/CorporationSelectDto.java
  15. 137 137
      hx-common/src/main/java/com/fjhx/common/entity/corporation/po/Corporation.java
  16. 25 25
      hx-common/src/main/java/com/fjhx/common/entity/corporation/vo/CorporationVo.java
  17. 33 33
      hx-common/src/main/java/com/fjhx/common/entity/currency/po/CurrencyRate.java
  18. 20 20
      hx-common/src/main/java/com/fjhx/common/entity/documentary/bo/DocumentaryData.java
  19. 17 17
      hx-common/src/main/java/com/fjhx/common/entity/documentary/dto/DocumentaryDto.java
  20. 25 25
      hx-common/src/main/java/com/fjhx/common/entity/documentary/dto/DocumentaryRecordDto.java
  21. 34 34
      hx-common/src/main/java/com/fjhx/common/entity/documentary/dto/DocumentaryRecordSelectDto.java
  22. 17 17
      hx-common/src/main/java/com/fjhx/common/entity/documentary/dto/DocumentarySelectDto.java
  23. 17 17
      hx-common/src/main/java/com/fjhx/common/entity/on/dto/OnLineInfoDto.java
  24. 17 17
      hx-common/src/main/java/com/fjhx/common/entity/on/dto/OnLineInfoSelectDto.java
  25. 27 27
      hx-common/src/main/java/com/fjhx/common/entity/on/vo/OnLineInfoVo.java
  26. 17 17
      hx-common/src/main/java/com/fjhx/common/entity/problem/dto/ProblemFeedbackDto.java
  27. 27 27
      hx-common/src/main/java/com/fjhx/common/entity/problem/dto/ProblemFeedbackSelectDto.java
  28. 61 61
      hx-common/src/main/java/com/fjhx/common/entity/problem/po/ProblemFeedback.java
  29. 17 17
      hx-common/src/main/java/com/fjhx/common/entity/problem/vo/ProblemFeedbackVo.java
  30. 19 19
      hx-common/src/main/java/com/fjhx/common/entity/send/dto/SendMegDto.java
  31. 27 27
      hx-common/src/main/java/com/fjhx/common/entity/send/dto/SendMegSelectDto.java
  32. 59 59
      hx-common/src/main/java/com/fjhx/common/entity/send/po/SendMeg.java
  33. 17 17
      hx-common/src/main/java/com/fjhx/common/entity/send/vo/SendMegVo.java
  34. 169 169
      hx-common/src/main/java/com/fjhx/common/enums/CodingRuleEnum.java
  35. 41 41
      hx-common/src/main/java/com/fjhx/common/enums/RuleTypeEnum.java
  36. 17 17
      hx-common/src/main/java/com/fjhx/common/mapper/coding/CodingRuleAutoMapper.java
  37. 17 17
      hx-common/src/main/java/com/fjhx/common/mapper/coding/CodingRuleMapper.java
  38. 26 26
      hx-common/src/main/java/com/fjhx/common/mapper/contract/ContractTemplateMapper.java
  39. 26 26
      hx-common/src/main/java/com/fjhx/common/mapper/corporation/CorporationMapper.java
  40. 16 16
      hx-common/src/main/java/com/fjhx/common/mapper/currency/CurrencyRateMapper.java
  41. 26 26
      hx-common/src/main/java/com/fjhx/common/mapper/documentary/DocumentaryMapper.java
  42. 21 21
      hx-common/src/main/java/com/fjhx/common/mapper/documentary/DocumentaryRecordMapper.java
  43. 27 27
      hx-common/src/main/java/com/fjhx/common/mapper/on/OnLineInfoMapper.java
  44. 26 26
      hx-common/src/main/java/com/fjhx/common/mapper/problem/ProblemFeedbackMapper.java
  45. 17 17
      hx-common/src/main/java/com/fjhx/common/service/coding/CodingRuleAutoService.java
  46. 33 33
      hx-common/src/main/java/com/fjhx/common/service/coding/CodingRuleService.java
  47. 21 21
      hx-common/src/main/java/com/fjhx/common/service/coding/impl/CodingRuleAutoServiceImpl.java
  48. 283 283
      hx-common/src/main/java/com/fjhx/common/service/coding/impl/CodingRuleServiceImpl.java
  49. 46 46
      hx-common/src/main/java/com/fjhx/common/service/corporation/CorporationService.java
  50. 100 100
      hx-common/src/main/java/com/fjhx/common/service/corporation/impl/CorporationServiceImpl.java
  51. 28 28
      hx-common/src/main/java/com/fjhx/common/service/currency/CurrencyRateService.java
  52. 32 32
      hx-common/src/main/java/com/fjhx/common/service/currency/impl/CurrencyRateServiceImpl.java
  53. 40 40
      hx-common/src/main/java/com/fjhx/common/service/documentary/DocumentaryRecordService.java
  54. 46 46
      hx-common/src/main/java/com/fjhx/common/service/documentary/DocumentaryService.java
  55. 22 22
      hx-common/src/main/java/com/fjhx/common/service/documentary/GetDocumentaryBusinessTemplate.java
  56. 233 233
      hx-common/src/main/java/com/fjhx/common/service/documentary/impl/DocumentaryRecordServiceImpl.java
  57. 59 59
      hx-common/src/main/java/com/fjhx/common/service/documentary/impl/DocumentaryServiceImpl.java
  58. 19 19
      hx-common/src/main/java/com/fjhx/common/service/on/OnLineInfoService.java
  59. 183 183
      hx-common/src/main/java/com/fjhx/common/service/on/impl/OnLineInfoServiceImpl.java
  60. 41 41
      hx-common/src/main/java/com/fjhx/common/service/problem/ProblemFeedbackService.java
  61. 56 56
      hx-common/src/main/java/com/fjhx/common/service/problem/impl/ProblemFeedbackServiceImpl.java
  62. 154 154
      hx-common/src/main/java/com/fjhx/common/utils/Assert.java
  63. 0 170
      hx-common/src/main/java/com/fjhx/common/utils/ExchangeRateUtil.java

+ 4 - 0
hx-admin/pom.xml

@@ -27,6 +27,10 @@
             <scope>test</scope>
         </dependency>
 
+        <dependency>
+            <groupId>org.yaml</groupId>
+            <artifactId>snakeyaml</artifactId>
+        </dependency>
 
         <dependency>
             <groupId>org.springframework.boot</groupId>

+ 5 - 0
hx-common/pom.xml

@@ -62,6 +62,11 @@
             <artifactId>hutool-all</artifactId>
             <version>5.8.0.M2</version>
         </dependency>
+        <dependency>
+            <groupId>com.alibaba.fastjson2</groupId>
+            <artifactId>fastjson2</artifactId>
+            <version>2.0.41</version>
+        </dependency>
 
     </dependencies>
 

+ 44 - 44
hx-common/src/main/java/com/fjhx/common/controller/currency/CurrencyRateController.java

@@ -1,44 +1,44 @@
-package com.fjhx.common.controller.currency;
-
-import com.fjhx.common.entity.currency.po.CurrencyRate;
-import com.fjhx.common.service.currency.CurrencyRateService;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-import java.util.List;
-
-/**
- * <p>
- * 币种默认汇率 前端控制器
- * </p>
- *
- * @author
- * @since 2023-04-24
- */
-@RestController
-@RequestMapping("/currencyRate")
-public class CurrencyRateController {
-
-    @Autowired
-    private CurrencyRateService currencyRateService;
-
-    /**
-     * 币种默认汇率列表
-     */
-    @PostMapping("/list")
-    public List<CurrencyRate> list() {
-        return currencyRateService.getList();
-    }
-
-    /**
-     * 币种默认汇率编辑
-     */
-    @PostMapping("/edit")
-    public void edit(@RequestBody List<CurrencyRate> currencyRateList) {
-        currencyRateService.edit(currencyRateList);
-    }
-
-}
+//package com.fjhx.common.controller.currency;
+//
+//import com.fjhx.common.entity.currency.po.CurrencyRate;
+//import com.fjhx.common.service.currency.CurrencyRateService;
+//import org.springframework.beans.factory.annotation.Autowired;
+//import org.springframework.web.bind.annotation.PostMapping;
+//import org.springframework.web.bind.annotation.RequestBody;
+//import org.springframework.web.bind.annotation.RequestMapping;
+//import org.springframework.web.bind.annotation.RestController;
+//
+//import java.util.List;
+//
+///**
+// * <p>
+// * 币种默认汇率 前端控制器
+// * </p>
+// *
+// * @author
+// * @since 2023-04-24
+// */
+//@RestController
+//@RequestMapping("/currencyRate")
+//public class CurrencyRateController {
+//
+//    @Autowired
+//    private CurrencyRateService currencyRateService;
+//
+//    /**
+//     * 币种默认汇率列表
+//     */
+//    @PostMapping("/list")
+//    public List<CurrencyRate> list() {
+//        return currencyRateService.getList();
+//    }
+//
+//    /**
+//     * 币种默认汇率编辑
+//     */
+//    @PostMapping("/edit")
+//    public void edit(@RequestBody List<CurrencyRate> currencyRateList) {
+//        currencyRateService.edit(currencyRateList);
+//    }
+//
+//}

+ 31 - 31
hx-common/src/main/java/com/fjhx/common/controller/on/OnLineInfoController.java

@@ -1,31 +1,31 @@
-package com.fjhx.common.controller.on;
-
-import com.fjhx.common.entity.on.vo.OnLineInfoReturnData;
-import com.fjhx.common.service.on.OnLineInfoService;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-
-/**
- * <p>
- * 在线时长信息 前端控制器
- * </p>
- *
- * @author
- * @since 2023-08-08
- */
-@RestController
-@RequestMapping("/onLineInfo")
-public class OnLineInfoController {
-
-    @Autowired
-    private OnLineInfoService onLineInfoService;
-
-    @GetMapping("/info")
-    OnLineInfoReturnData onLineInfo() {
-        return onLineInfoService.onLineInfo();
-    }
-
-}
+//package com.fjhx.common.controller.on;
+//
+//import com.fjhx.common.entity.on.vo.OnLineInfoReturnData;
+//import com.fjhx.common.service.on.OnLineInfoService;
+//import org.springframework.beans.factory.annotation.Autowired;
+//import org.springframework.web.bind.annotation.GetMapping;
+//import org.springframework.web.bind.annotation.RequestMapping;
+//import org.springframework.web.bind.annotation.RestController;
+//
+//
+///**
+// * <p>
+// * 在线时长信息 前端控制器
+// * </p>
+// *
+// * @author
+// * @since 2023-08-08
+// */
+//@RestController
+//@RequestMapping("/onLineInfo")
+//public class OnLineInfoController {
+//
+//    @Autowired
+//    private OnLineInfoService onLineInfoService;
+//
+//    @GetMapping("/info")
+//    OnLineInfoReturnData onLineInfo() {
+//        return onLineInfoService.onLineInfo();
+//    }
+//
+//}

+ 24 - 24
hx-common/src/main/java/com/fjhx/common/entity/coding/dto/CodingRuleDto.java

@@ -1,24 +1,24 @@
-package com.fjhx.common.entity.coding.dto;
-
-import com.fjhx.common.entity.coding.po.CodingRule;
-import lombok.Getter;
-import lombok.Setter;
-
-import java.util.List;
-
-/**
- * 编码规则新增编辑入参实体
- *
- * @author 
- * @since 2023-04-13
- */
-@Getter
-@Setter
-public class CodingRuleDto extends CodingRule {
-
-    /**
-     * 编码配置规则
-     */
-    private List<RuleVo> ruleVoList;
-
-}
+//package com.fjhx.common.entity.coding.dto;
+//
+//import com.fjhx.common.entity.coding.po.CodingRule;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+//import java.util.List;
+//
+///**
+// * 编码规则新增编辑入参实体
+// *
+// * @author
+// * @since 2023-04-13
+// */
+//@Getter
+//@Setter
+//public class CodingRuleDto extends CodingRule {
+//
+//    /**
+//     * 编码配置规则
+//     */
+//    private List<RuleVo> ruleVoList;
+//
+//}

+ 17 - 17
hx-common/src/main/java/com/fjhx/common/entity/coding/dto/CodingRuleSelectDto.java

@@ -1,17 +1,17 @@
-package com.fjhx.common.entity.coding.dto;
-
-import com.ruoyi.common.core.domain.BaseSelectDto;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 编码规则列表查询入参实体
- *
- * @author 
- * @since 2023-04-13
- */
-@Getter
-@Setter
-public class CodingRuleSelectDto extends BaseSelectDto {
-
-}
+//package com.fjhx.common.entity.coding.dto;
+//
+//import com.ruoyi.common.core.domain.BaseSelectDto;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+///**
+// * 编码规则列表查询入参实体
+// *
+// * @author
+// * @since 2023-04-13
+// */
+//@Getter
+//@Setter
+//public class CodingRuleSelectDto extends BaseSelectDto {
+//
+//}

+ 30 - 30
hx-common/src/main/java/com/fjhx/common/entity/coding/dto/DefaultRule.java

@@ -1,30 +1,30 @@
-package com.fjhx.common.entity.coding.dto;
-
-import com.fjhx.common.enums.RuleTypeEnum;
-import lombok.Getter;
-import lombok.Setter;
-
-@Getter
-@Setter
-public class DefaultRule {
-
-    /**
-     * 编码规则
-     */
-    private RuleTypeEnum ruleTypeEnum;
-
-    /**
-     * 值
-     */
-    private String value;
-
-    public DefaultRule(RuleTypeEnum ruleTypeEnum) {
-        this.ruleTypeEnum = ruleTypeEnum;
-    }
-
-    public DefaultRule(RuleTypeEnum ruleTypeEnum, String value) {
-        this.ruleTypeEnum = ruleTypeEnum;
-        this.value = value;
-    }
-
-}
+//package com.fjhx.common.entity.coding.dto;
+//
+//import com.fjhx.common.enums.RuleTypeEnum;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+//@Getter
+//@Setter
+//public class DefaultRule {
+//
+//    /**
+//     * 编码规则
+//     */
+//    private RuleTypeEnum ruleTypeEnum;
+//
+//    /**
+//     * 值
+//     */
+//    private String value;
+//
+//    public DefaultRule(RuleTypeEnum ruleTypeEnum) {
+//        this.ruleTypeEnum = ruleTypeEnum;
+//    }
+//
+//    public DefaultRule(RuleTypeEnum ruleTypeEnum, String value) {
+//        this.ruleTypeEnum = ruleTypeEnum;
+//        this.value = value;
+//    }
+//
+//}

+ 41 - 41
hx-common/src/main/java/com/fjhx/common/entity/coding/po/CodingRule.java

@@ -1,41 +1,41 @@
-package com.fjhx.common.entity.coding.po;
-
-import com.baomidou.mybatisplus.annotation.TableName;
-import com.ruoyi.common.core.domain.BasePo;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * <p>
- * 编码规则
- * </p>
- *
- * @author 
- * @since 2023-04-13
- */
-@Getter
-@Setter
-@TableName("coding_rule")
-public class CodingRule extends BasePo {
-
-    /**
-     * 规则key
-     */
-    private String codingKey;
-
-    /**
-     * 功能名称
-     */
-    private String codingName;
-
-    /**
-     * demo
-     */
-    private String codingDemo;
-
-    /**
-     * 规则json
-     */
-    private String ruleJson;
-
-}
+//package com.fjhx.common.entity.coding.po;
+//
+//import com.baomidou.mybatisplus.annotation.TableName;
+//import com.ruoyi.common.core.domain.BasePo;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+///**
+// * <p>
+// * 编码规则
+// * </p>
+// *
+// * @author
+// * @since 2023-04-13
+// */
+//@Getter
+//@Setter
+//@TableName("coding_rule")
+//public class CodingRule extends BasePo {
+//
+//    /**
+//     * 规则key
+//     */
+//    private String codingKey;
+//
+//    /**
+//     * 功能名称
+//     */
+//    private String codingName;
+//
+//    /**
+//     * demo
+//     */
+//    private String codingDemo;
+//
+//    /**
+//     * 规则json
+//     */
+//    private String ruleJson;
+//
+//}

+ 28 - 28
hx-common/src/main/java/com/fjhx/common/entity/coding/po/CodingRuleAuto.java

@@ -1,28 +1,28 @@
-package com.fjhx.common.entity.coding.po;
-
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.ruoyi.common.core.domain.BasePo;
-import com.baomidou.mybatisplus.annotation.TableName;
-import java.util.Date;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * <p>
- * 规则配置自增编码
- * </p>
- *
- * @author 
- * @since 2023-05-18
- */
-@Getter
-@Setter
-@TableName("coding_rule_auto")
-public class CodingRuleAuto extends BasePo {
-
-    @TableField("`key`")
-    private String key;
-
-    private Integer num;
-
-}
+//package com.fjhx.common.entity.coding.po;
+//
+//import com.baomidou.mybatisplus.annotation.TableField;
+//import com.ruoyi.common.core.domain.BasePo;
+//import com.baomidou.mybatisplus.annotation.TableName;
+//import java.util.Date;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+///**
+// * <p>
+// * 规则配置自增编码
+// * </p>
+// *
+// * @author
+// * @since 2023-05-18
+// */
+//@Getter
+//@Setter
+//@TableName("coding_rule_auto")
+//public class CodingRuleAuto extends BasePo {
+//
+//    @TableField("`key`")
+//    private String key;
+//
+//    private Integer num;
+//
+//}

+ 17 - 17
hx-common/src/main/java/com/fjhx/common/entity/contract/dto/ContractTemplateDto.java

@@ -1,17 +1,17 @@
-package com.fjhx.common.entity.contract.dto;
-
-import com.fjhx.common.entity.contract.po.ContractTemplate;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 合同模板新增编辑入参实体
- *
- * @author 
- * @since 2023-04-14
- */
-@Getter
-@Setter
-public class ContractTemplateDto extends ContractTemplate {
-
-}
+//package com.fjhx.common.entity.contract.dto;
+//
+//import com.fjhx.common.entity.contract.po.ContractTemplate;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+///**
+// * 合同模板新增编辑入参实体
+// *
+// * @author
+// * @since 2023-04-14
+// */
+//@Getter
+//@Setter
+//public class ContractTemplateDto extends ContractTemplate {
+//
+//}

+ 53 - 53
hx-common/src/main/java/com/fjhx/common/entity/contract/po/ContractTemplate.java

@@ -1,53 +1,53 @@
-package com.fjhx.common.entity.contract.po;
-
-import com.baomidou.mybatisplus.annotation.TableName;
-import com.ruoyi.common.core.domain.BasePo;
-import lombok.Getter;
-import lombok.Setter;
-
-import javax.validation.constraints.NotBlank;
-import javax.validation.constraints.NotNull;
-
-/**
- * <p>
- * 合同模板
- * </p>
- *
- * @author
- * @since 2023-04-14
- */
-@Getter
-@Setter
-@TableName("contract_template")
-public class ContractTemplate extends BasePo {
-
-    /**
-     * 模板名称
-     */
-    @NotBlank(message = "模板名称不能为空")
-    private String templateName;
-
-    /**
-     * 公司id
-     */
-    @NotNull(message = "公司id不能为空")
-    private Long corporationId;
-
-    /**
-     * 联系人名称
-     */
-    @NotBlank(message = "联系人名称不能为空")
-    private String contactName;
-
-    /**
-     * 联系人电话
-     */
-    @NotBlank(message = "联系人电话不能为空")
-    private String contactNumber;
-
-    /**
-     * 模板内容
-     */
-    private String templateContent;
-
-}
+//package com.fjhx.common.entity.contract.po;
+//
+//import com.baomidou.mybatisplus.annotation.TableName;
+//import com.ruoyi.common.core.domain.BasePo;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+//import javax.validation.constraints.NotBlank;
+//import javax.validation.constraints.NotNull;
+//
+///**
+// * <p>
+// * 合同模板
+// * </p>
+// *
+// * @author
+// * @since 2023-04-14
+// */
+//@Getter
+//@Setter
+//@TableName("contract_template")
+//public class ContractTemplate extends BasePo {
+//
+//    /**
+//     * 模板名称
+//     */
+//    @NotBlank(message = "模板名称不能为空")
+//    private String templateName;
+//
+//    /**
+//     * 公司id
+//     */
+//    @NotNull(message = "公司id不能为空")
+//    private Long corporationId;
+//
+//    /**
+//     * 联系人名称
+//     */
+//    @NotBlank(message = "联系人名称不能为空")
+//    private String contactName;
+//
+//    /**
+//     * 联系人电话
+//     */
+//    @NotBlank(message = "联系人电话不能为空")
+//    private String contactNumber;
+//
+//    /**
+//     * 模板内容
+//     */
+//    private String templateContent;
+//
+//}

+ 29 - 29
hx-common/src/main/java/com/fjhx/common/entity/contract/vo/ContractTemplateVo.java

@@ -1,29 +1,29 @@
-package com.fjhx.common.entity.contract.vo;
-
-import com.fjhx.common.entity.contract.po.ContractTemplate;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 合同模板列表查询返回值实体
- *
- * @author
- * @since 2023-04-14
- */
-@Getter
-@Setter
-public class ContractTemplateVo extends ContractTemplate {
-
-    /**
-     * 公司名称
-     */
-    private String corporationName;
-
-    /**
-     * 客户电话
-     */
-    private String corporationNumber;
-
-
-
-}
+//package com.fjhx.common.entity.contract.vo;
+//
+//import com.fjhx.common.entity.contract.po.ContractTemplate;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+///**
+// * 合同模板列表查询返回值实体
+// *
+// * @author
+// * @since 2023-04-14
+// */
+//@Getter
+//@Setter
+//public class ContractTemplateVo extends ContractTemplate {
+//
+//    /**
+//     * 公司名称
+//     */
+//    private String corporationName;
+//
+//    /**
+//     * 客户电话
+//     */
+//    private String corporationNumber;
+//
+//
+//
+//}

+ 51 - 51
hx-common/src/main/java/com/fjhx/common/entity/corporation/dto/CorporationDto.java

@@ -1,51 +1,51 @@
-package com.fjhx.common.entity.corporation.dto;
-
-import com.fjhx.area.service.SetCustomizeAreaId;
-import com.fjhx.common.entity.corporation.po.Corporation;
-import com.fjhx.file.entity.ObsFile;
-import lombok.Getter;
-import lombok.Setter;
-
-import java.util.List;
-
-/**
- * 多公司配置新增编辑入参实体
- *
- * @author
- * @since 2023-04-10
- */
-@Getter
-@Setter
-public class CorporationDto extends Corporation implements SetCustomizeAreaId {
-
-    /**
-     * 企业logo
-     */
-    List<ObsFile> enterpriseLogoList;
-
-    /**
-     * 法人签名
-     */
-    List<ObsFile> larSignList;
-
-    /**
-     * 公章
-     */
-    List<ObsFile> officialSealList;
-
-    /**
-     * 合同章
-     */
-    List<ObsFile> contractSealList;
-
-    /**
-     * 省/州名称
-     */
-    private String provinceName;
-
-    /**
-     * 市名称
-     */
-    private String cityName;
-
-}
+//package com.fjhx.common.entity.corporation.dto;
+//
+//import com.fjhx.area.service.SetCustomizeAreaId;
+//import com.fjhx.common.entity.corporation.po.Corporation;
+//import com.fjhx.file.entity.ObsFile;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+//import java.util.List;
+//
+///**
+// * 多公司配置新增编辑入参实体
+// *
+// * @author
+// * @since 2023-04-10
+// */
+//@Getter
+//@Setter
+//public class CorporationDto extends Corporation implements SetCustomizeAreaId {
+//
+//    /**
+//     * 企业logo
+//     */
+//    List<ObsFile> enterpriseLogoList;
+//
+//    /**
+//     * 法人签名
+//     */
+//    List<ObsFile> larSignList;
+//
+//    /**
+//     * 公章
+//     */
+//    List<ObsFile> officialSealList;
+//
+//    /**
+//     * 合同章
+//     */
+//    List<ObsFile> contractSealList;
+//
+//    /**
+//     * 省/州名称
+//     */
+//    private String provinceName;
+//
+//    /**
+//     * 市名称
+//     */
+//    private String cityName;
+//
+//}

+ 17 - 17
hx-common/src/main/java/com/fjhx/common/entity/corporation/dto/CorporationSelectDto.java

@@ -1,17 +1,17 @@
-package com.fjhx.common.entity.corporation.dto;
-
-import com.ruoyi.common.core.domain.BaseSelectDto;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 多公司配置列表查询入参实体
- *
- * @author 
- * @since 2023-04-10
- */
-@Getter
-@Setter
-public class CorporationSelectDto extends BaseSelectDto {
-
-}
+//package com.fjhx.common.entity.corporation.dto;
+//
+//import com.ruoyi.common.core.domain.BaseSelectDto;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+///**
+// * 多公司配置列表查询入参实体
+// *
+// * @author
+// * @since 2023-04-10
+// */
+//@Getter
+//@Setter
+//public class CorporationSelectDto extends BaseSelectDto {
+//
+//}

+ 137 - 137
hx-common/src/main/java/com/fjhx/common/entity/corporation/po/Corporation.java

@@ -1,137 +1,137 @@
-package com.fjhx.common.entity.corporation.po;
-
-import com.baomidou.mybatisplus.annotation.TableName;
-import com.fasterxml.jackson.annotation.JsonFormat;
-import com.ruoyi.common.core.domain.BasePo;
-import java.util.Date;
-import lombok.Getter;
-import lombok.Setter;
-
-import javax.validation.constraints.NotBlank;
-
-/**
- * <p>
- * 多公司配置
- * </p>
- *
- * @author
- * @since 2023-04-10
- */
-@Getter
-@Setter
-@TableName("corporation")
-public class Corporation extends BasePo {
-
-    /**
-     * 公司名称
-     */
-    private String name;
-
-    /**
-     * 公司英文名称
-     */
-    private String nameEn;
-
-    /**
-     * 企业类型
-     */
-    private String type;
-
-    /**
-     * 统一信用代码
-     */
-    private String uscCode;
-
-    /**
-     * 法定代表人
-     */
-    private String legalPersonName;
-
-    /**
-     * 注册资本
-     */
-    private String registeredCapital;
-
-    /**
-     * 营业开始日期
-     */
-//    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
-    private String startDate;
-
-    /**
-     * 营业结束日期
-     */
-//    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
-    private String stopDate;
-
-    /**
-     * 纳税人资质
-     */
-    private String taxpayerQualification;
-
-    /**
-     * 进出口企业代码
-     */
-    private String iaeeCode;
-
-    /**
-     * 进出口企业代码
-     */
-    private String yfId;
-    /**
-     * 公司电话
-     */
-    @NotBlank(message = "公司电话不能为空")
-    private String corporationNumber;
-
-    /**
-     * 国家表id
-     */
-    @NotBlank(message = "国家id不能为空")
-    private Long countryId;
-
-    /**
-     * 省份id
-     */
-    @NotBlank(message = "省份id不能为空")
-    private Long provinceId;
-
-    /**
-     * 城市id
-     */
-    @NotBlank(message = "城市id不能为空")
-    private Long cityId;
-
-    /**
-     * 详细地址
-     */
-    private String address;
-
-    /**
-     * 国家表英文字符串
-     */
-    @NotBlank(message = "国家英文名称不能为空")
-    private String countryEnStr;
-
-    /**
-     * 省份英文字符串
-     */
-    @NotBlank(message = "省份英文名称不能为空")
-    private String provinceEnStr;
-
-    /**
-     * 城市英文字符串
-     */
-    @NotBlank(message = "城市英文名称不能为空")
-    private String cityEnStr;
-
-    /**
-     * 详细地址英文
-     */
-    private String addressEn;
-
-    /**
-     * 海关注册代码
-     */
-    private String crCode;
-}
+//package com.fjhx.common.entity.corporation.po;
+//
+//import com.baomidou.mybatisplus.annotation.TableName;
+//import com.fasterxml.jackson.annotation.JsonFormat;
+//import com.ruoyi.common.core.domain.BasePo;
+//import java.util.Date;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+//import javax.validation.constraints.NotBlank;
+//
+///**
+// * <p>
+// * 多公司配置
+// * </p>
+// *
+// * @author
+// * @since 2023-04-10
+// */
+//@Getter
+//@Setter
+//@TableName("corporation")
+//public class Corporation extends BasePo {
+//
+//    /**
+//     * 公司名称
+//     */
+//    private String name;
+//
+//    /**
+//     * 公司英文名称
+//     */
+//    private String nameEn;
+//
+//    /**
+//     * 企业类型
+//     */
+//    private String type;
+//
+//    /**
+//     * 统一信用代码
+//     */
+//    private String uscCode;
+//
+//    /**
+//     * 法定代表人
+//     */
+//    private String legalPersonName;
+//
+//    /**
+//     * 注册资本
+//     */
+//    private String registeredCapital;
+//
+//    /**
+//     * 营业开始日期
+//     */
+////    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
+//    private String startDate;
+//
+//    /**
+//     * 营业结束日期
+//     */
+////    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
+//    private String stopDate;
+//
+//    /**
+//     * 纳税人资质
+//     */
+//    private String taxpayerQualification;
+//
+//    /**
+//     * 进出口企业代码
+//     */
+//    private String iaeeCode;
+//
+//    /**
+//     * 进出口企业代码
+//     */
+//    private String yfId;
+//    /**
+//     * 公司电话
+//     */
+//    @NotBlank(message = "公司电话不能为空")
+//    private String corporationNumber;
+//
+//    /**
+//     * 国家表id
+//     */
+//    @NotBlank(message = "国家id不能为空")
+//    private Long countryId;
+//
+//    /**
+//     * 省份id
+//     */
+//    @NotBlank(message = "省份id不能为空")
+//    private Long provinceId;
+//
+//    /**
+//     * 城市id
+//     */
+//    @NotBlank(message = "城市id不能为空")
+//    private Long cityId;
+//
+//    /**
+//     * 详细地址
+//     */
+//    private String address;
+//
+//    /**
+//     * 国家表英文字符串
+//     */
+//    @NotBlank(message = "国家英文名称不能为空")
+//    private String countryEnStr;
+//
+//    /**
+//     * 省份英文字符串
+//     */
+//    @NotBlank(message = "省份英文名称不能为空")
+//    private String provinceEnStr;
+//
+//    /**
+//     * 城市英文字符串
+//     */
+//    @NotBlank(message = "城市英文名称不能为空")
+//    private String cityEnStr;
+//
+//    /**
+//     * 详细地址英文
+//     */
+//    private String addressEn;
+//
+//    /**
+//     * 海关注册代码
+//     */
+//    private String crCode;
+//}

+ 25 - 25
hx-common/src/main/java/com/fjhx/common/entity/corporation/vo/CorporationVo.java

@@ -1,25 +1,25 @@
-package com.fjhx.common.entity.corporation.vo;
-
-import com.fjhx.area.service.ISetAreaName;
-import com.fjhx.area.service.SetCustomizeAreaName;
-import com.fjhx.common.entity.corporation.po.Corporation;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 多公司配置列表查询返回值实体
- *
- * @author 
- * @since 2023-04-10
- */
-@Getter
-@Setter
-public class CorporationVo extends Corporation implements SetCustomizeAreaName {
-
-    private String countryName;
-
-    private String provinceName;
-
-    private String cityName;
-
-}
+//package com.fjhx.common.entity.corporation.vo;
+//
+//import com.fjhx.area.service.ISetAreaName;
+//import com.fjhx.area.service.SetCustomizeAreaName;
+//import com.fjhx.common.entity.corporation.po.Corporation;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+///**
+// * 多公司配置列表查询返回值实体
+// *
+// * @author
+// * @since 2023-04-10
+// */
+//@Getter
+//@Setter
+//public class CorporationVo extends Corporation implements SetCustomizeAreaName {
+//
+//    private String countryName;
+//
+//    private String provinceName;
+//
+//    private String cityName;
+//
+//}

+ 33 - 33
hx-common/src/main/java/com/fjhx/common/entity/currency/po/CurrencyRate.java

@@ -1,33 +1,33 @@
-package com.fjhx.common.entity.currency.po;
-
-import com.baomidou.mybatisplus.annotation.TableName;
-import com.ruoyi.common.core.domain.BasePo;
-import lombok.Getter;
-import lombok.Setter;
-
-import java.math.BigDecimal;
-
-/**
- * <p>
- * 币种默认汇率
- * </p>
- *
- * @author
- * @since 2023-04-24
- */
-@Getter
-@Setter
-@TableName("currency_rate")
-public class CurrencyRate extends BasePo {
-
-    /**
-     * 币种类型
-     */
-    private String type;
-
-    /**
-     * 汇率
-     */
-    private BigDecimal rate;
-
-}
+//package com.fjhx.common.entity.currency.po;
+//
+//import com.baomidou.mybatisplus.annotation.TableName;
+//import com.ruoyi.common.core.domain.BasePo;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+//import java.math.BigDecimal;
+//
+///**
+// * <p>
+// * 币种默认汇率
+// * </p>
+// *
+// * @author
+// * @since 2023-04-24
+// */
+//@Getter
+//@Setter
+//@TableName("currency_rate")
+//public class CurrencyRate extends BasePo {
+//
+//    /**
+//     * 币种类型
+//     */
+//    private String type;
+//
+//    /**
+//     * 汇率
+//     */
+//    private BigDecimal rate;
+//
+//}

+ 20 - 20
hx-common/src/main/java/com/fjhx/common/entity/documentary/bo/DocumentaryData.java

@@ -1,20 +1,20 @@
-package com.fjhx.common.entity.documentary.bo;
-
-import com.fjhx.common.entity.documentary.vo.DocumentaryRecordVo;
-
-import java.util.List;
-import java.util.Map;
-
-public interface DocumentaryData {
-
-    /**
-     * 获取业务id
-     */
-    Long getId();
-
-    /**
-     * 赋值跟单记录
-     */
-    void setDocumentaryRecord(Map<Long, List<DocumentaryRecordVo>> documentaryRecord);
-
-}
+//package com.fjhx.common.entity.documentary.bo;
+//
+//import com.fjhx.common.entity.documentary.vo.DocumentaryRecordVo;
+//
+//import java.util.List;
+//import java.util.Map;
+//
+//public interface DocumentaryData {
+//
+//    /**
+//     * 获取业务id
+//     */
+//    Long getId();
+//
+//    /**
+//     * 赋值跟单记录
+//     */
+//    void setDocumentaryRecord(Map<Long, List<DocumentaryRecordVo>> documentaryRecord);
+//
+//}

+ 17 - 17
hx-common/src/main/java/com/fjhx/common/entity/documentary/dto/DocumentaryDto.java

@@ -1,17 +1,17 @@
-package com.fjhx.common.entity.documentary.dto;
-
-import com.fjhx.common.entity.documentary.po.Documentary;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 跟单配置新增编辑入参实体
- *
- * @author 
- * @since 2023-04-19
- */
-@Getter
-@Setter
-public class DocumentaryDto extends Documentary {
-
-}
+//package com.fjhx.common.entity.documentary.dto;
+//
+//import com.fjhx.common.entity.documentary.po.Documentary;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+///**
+// * 跟单配置新增编辑入参实体
+// *
+// * @author
+// * @since 2023-04-19
+// */
+//@Getter
+//@Setter
+//public class DocumentaryDto extends Documentary {
+//
+//}

+ 25 - 25
hx-common/src/main/java/com/fjhx/common/entity/documentary/dto/DocumentaryRecordDto.java

@@ -1,25 +1,25 @@
-package com.fjhx.common.entity.documentary.dto;
-
-import com.fjhx.common.entity.documentary.po.DocumentaryRecord;
-import com.fjhx.file.entity.ObsFile;
-import lombok.Getter;
-import lombok.Setter;
-
-import java.util.List;
-
-/**
- * 跟单记录新增编辑入参实体
- *
- * @author
- * @since 2023-04-21
- */
-@Getter
-@Setter
-public class DocumentaryRecordDto extends DocumentaryRecord {
-
-    /**
-     * 文件列表
-     */
-    private List<ObsFile> fileList;
-
-}
+//package com.fjhx.common.entity.documentary.dto;
+//
+//import com.fjhx.common.entity.documentary.po.DocumentaryRecord;
+//import com.fjhx.file.entity.ObsFile;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+//import java.util.List;
+//
+///**
+// * 跟单记录新增编辑入参实体
+// *
+// * @author
+// * @since 2023-04-21
+// */
+//@Getter
+//@Setter
+//public class DocumentaryRecordDto extends DocumentaryRecord {
+//
+//    /**
+//     * 文件列表
+//     */
+//    private List<ObsFile> fileList;
+//
+//}

+ 34 - 34
hx-common/src/main/java/com/fjhx/common/entity/documentary/dto/DocumentaryRecordSelectDto.java

@@ -1,34 +1,34 @@
-package com.fjhx.common.entity.documentary.dto;
-
-import com.alibaba.fastjson2.JSONObject;
-import com.ruoyi.common.core.domain.BaseSelectDto;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 跟单记录列表查询入参实体
- *
- * @author
- * @since 2023-04-20
- */
-@Getter
-@Setter
-public class DocumentaryRecordSelectDto extends BaseSelectDto {
-
-    /**
-     * 跟单类型
-     * {@link com.fjhx.common.entity.documentary.eums.DocumentaryTypeEnum}
-     */
-    private Integer type;
-
-    /**
-     * 搜索条件
-     */
-    private JSONObject condition;
-
-    /**
-     * 无跟单记录配置id
-     */
-    private Long noRecordDocumentaryId;
-
-}
+//package com.fjhx.common.entity.documentary.dto;
+//
+//import com.alibaba.fastjson2.JSONObject;
+//import com.ruoyi.common.core.domain.BaseSelectDto;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+///**
+// * 跟单记录列表查询入参实体
+// *
+// * @author
+// * @since 2023-04-20
+// */
+//@Getter
+//@Setter
+//public class DocumentaryRecordSelectDto extends BaseSelectDto {
+//
+//    /**
+//     * 跟单类型
+//     * {@link com.fjhx.common.entity.documentary.eums.DocumentaryTypeEnum}
+//     */
+//    private Integer type;
+//
+//    /**
+//     * 搜索条件
+//     */
+//    private JSONObject condition;
+//
+//    /**
+//     * 无跟单记录配置id
+//     */
+//    private Long noRecordDocumentaryId;
+//
+//}

+ 17 - 17
hx-common/src/main/java/com/fjhx/common/entity/documentary/dto/DocumentarySelectDto.java

@@ -1,17 +1,17 @@
-package com.fjhx.common.entity.documentary.dto;
-
-import com.ruoyi.common.core.domain.BaseSelectDto;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 跟单配置列表查询入参实体
- *
- * @author 
- * @since 2023-04-19
- */
-@Getter
-@Setter
-public class DocumentarySelectDto extends BaseSelectDto {
-
-}
+//package com.fjhx.common.entity.documentary.dto;
+//
+//import com.ruoyi.common.core.domain.BaseSelectDto;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+///**
+// * 跟单配置列表查询入参实体
+// *
+// * @author
+// * @since 2023-04-19
+// */
+//@Getter
+//@Setter
+//public class DocumentarySelectDto extends BaseSelectDto {
+//
+//}

+ 17 - 17
hx-common/src/main/java/com/fjhx/common/entity/on/dto/OnLineInfoDto.java

@@ -1,17 +1,17 @@
-package com.fjhx.common.entity.on.dto;
-
-import com.fjhx.common.entity.on.po.OnLineInfo;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 在线时长信息新增编辑入参实体
- *
- * @author
- * @since 2023-08-08
- */
-@Getter
-@Setter
-public class OnLineInfoDto extends OnLineInfo {
-
-}
+//package com.fjhx.common.entity.on.dto;
+//
+//import com.fjhx.common.entity.on.po.OnLineInfo;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+///**
+// * 在线时长信息新增编辑入参实体
+// *
+// * @author
+// * @since 2023-08-08
+// */
+//@Getter
+//@Setter
+//public class OnLineInfoDto extends OnLineInfo {
+//
+//}

+ 17 - 17
hx-common/src/main/java/com/fjhx/common/entity/on/dto/OnLineInfoSelectDto.java

@@ -1,17 +1,17 @@
-package com.fjhx.common.entity.on.dto;
-
-import com.ruoyi.common.core.domain.BaseSelectDto;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 在线时长信息列表查询入参实体
- *
- * @author
- * @since 2023-08-08
- */
-@Getter
-@Setter
-public class OnLineInfoSelectDto extends BaseSelectDto {
-
-}
+//package com.fjhx.common.entity.on.dto;
+//
+//import com.ruoyi.common.core.domain.BaseSelectDto;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+///**
+// * 在线时长信息列表查询入参实体
+// *
+// * @author
+// * @since 2023-08-08
+// */
+//@Getter
+//@Setter
+//public class OnLineInfoSelectDto extends BaseSelectDto {
+//
+//}

+ 27 - 27
hx-common/src/main/java/com/fjhx/common/entity/on/vo/OnLineInfoVo.java

@@ -1,27 +1,27 @@
-package com.fjhx.common.entity.on.vo;
-
-import com.fjhx.common.entity.on.po.OnLineInfo;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 在线时长信息列表查询返回值实体
- *
- * @author
- * @since 2023-08-08
- */
-@Getter
-@Setter
-public class OnLineInfoVo extends OnLineInfo {
-
-    /**
-     * 部门id
-     */
-    private Long deptId;
-
-    /**
-     * 用户名
-     */
-    private String userName;
-
-}
+//package com.fjhx.common.entity.on.vo;
+//
+//import com.fjhx.common.entity.on.po.OnLineInfo;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+///**
+// * 在线时长信息列表查询返回值实体
+// *
+// * @author
+// * @since 2023-08-08
+// */
+//@Getter
+//@Setter
+//public class OnLineInfoVo extends OnLineInfo {
+//
+//    /**
+//     * 部门id
+//     */
+//    private Long deptId;
+//
+//    /**
+//     * 用户名
+//     */
+//    private String userName;
+//
+//}

+ 17 - 17
hx-common/src/main/java/com/fjhx/common/entity/problem/dto/ProblemFeedbackDto.java

@@ -1,17 +1,17 @@
-package com.fjhx.common.entity.problem.dto;
-
-import com.fjhx.common.entity.problem.po.ProblemFeedback;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 问题反馈新增编辑入参实体
- *
- * @author 
- * @since 2023-05-04
- */
-@Getter
-@Setter
-public class ProblemFeedbackDto extends ProblemFeedback {
-
-}
+//package com.fjhx.common.entity.problem.dto;
+//
+//import com.fjhx.common.entity.problem.po.ProblemFeedback;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+///**
+// * 问题反馈新增编辑入参实体
+// *
+// * @author
+// * @since 2023-05-04
+// */
+//@Getter
+//@Setter
+//public class ProblemFeedbackDto extends ProblemFeedback {
+//
+//}

+ 27 - 27
hx-common/src/main/java/com/fjhx/common/entity/problem/dto/ProblemFeedbackSelectDto.java

@@ -1,27 +1,27 @@
-package com.fjhx.common.entity.problem.dto;
-
-import com.ruoyi.common.core.domain.BaseSelectDto;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 问题反馈列表查询入参实体
- *
- * @author 
- * @since 2023-05-04
- */
-@Getter
-@Setter
-public class ProblemFeedbackSelectDto extends BaseSelectDto {
-
-    /**
-     * 租户id
-     */
-    private String tenantId;
-
-    /**
-     * 回复状态 0待回复 1已回复
-     */
-    private Integer status;
-
-}
+//package com.fjhx.common.entity.problem.dto;
+//
+//import com.ruoyi.common.core.domain.BaseSelectDto;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+///**
+// * 问题反馈列表查询入参实体
+// *
+// * @author
+// * @since 2023-05-04
+// */
+//@Getter
+//@Setter
+//public class ProblemFeedbackSelectDto extends BaseSelectDto {
+//
+//    /**
+//     * 租户id
+//     */
+//    private String tenantId;
+//
+//    /**
+//     * 回复状态 0待回复 1已回复
+//     */
+//    private Integer status;
+//
+//}

+ 61 - 61
hx-common/src/main/java/com/fjhx/common/entity/problem/po/ProblemFeedback.java

@@ -1,61 +1,61 @@
-package com.fjhx.common.entity.problem.po;
-
-import com.baomidou.mybatisplus.annotation.TableName;
-import com.ruoyi.common.core.domain.BasePo;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * <p>
- * 问题反馈
- * </p>
- *
- * @author
- * @since 2023-05-04
- */
-@Getter
-@Setter
-@TableName("problem_feedback")
-public class ProblemFeedback extends BasePo {
-
-    /**
-     * 姓名
-     */
-    private String name;
-
-    /**
-     * 公司名称
-     */
-    private String companyName;
-
-    /**
-     * 联系方式
-     */
-    private String contactInformation;
-
-    /**
-     * 模块类型
-     */
-    private String moduleType;
-
-    /**
-     * 问题说明
-     */
-    private String problemStatement;
-
-    /**
-     * 0待回复 1已回复
-     */
-    private Integer status;
-
-    /**
-     * 回复内容
-     */
-    private String replyContent;
-
-    /**
-     * 租户id
-     */
-    private String tenantId;
-
-}
+//package com.fjhx.common.entity.problem.po;
+//
+//import com.baomidou.mybatisplus.annotation.TableName;
+//import com.ruoyi.common.core.domain.BasePo;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+///**
+// * <p>
+// * 问题反馈
+// * </p>
+// *
+// * @author
+// * @since 2023-05-04
+// */
+//@Getter
+//@Setter
+//@TableName("problem_feedback")
+//public class ProblemFeedback extends BasePo {
+//
+//    /**
+//     * 姓名
+//     */
+//    private String name;
+//
+//    /**
+//     * 公司名称
+//     */
+//    private String companyName;
+//
+//    /**
+//     * 联系方式
+//     */
+//    private String contactInformation;
+//
+//    /**
+//     * 模块类型
+//     */
+//    private String moduleType;
+//
+//    /**
+//     * 问题说明
+//     */
+//    private String problemStatement;
+//
+//    /**
+//     * 0待回复 1已回复
+//     */
+//    private Integer status;
+//
+//    /**
+//     * 回复内容
+//     */
+//    private String replyContent;
+//
+//    /**
+//     * 租户id
+//     */
+//    private String tenantId;
+//
+//}

+ 17 - 17
hx-common/src/main/java/com/fjhx/common/entity/problem/vo/ProblemFeedbackVo.java

@@ -1,17 +1,17 @@
-package com.fjhx.common.entity.problem.vo;
-
-import com.fjhx.common.entity.problem.po.ProblemFeedback;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 问题反馈列表查询返回值实体
- *
- * @author 
- * @since 2023-05-04
- */
-@Getter
-@Setter
-public class ProblemFeedbackVo extends ProblemFeedback {
-
-}
+//package com.fjhx.common.entity.problem.vo;
+//
+//import com.fjhx.common.entity.problem.po.ProblemFeedback;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+///**
+// * 问题反馈列表查询返回值实体
+// *
+// * @author
+// * @since 2023-05-04
+// */
+//@Getter
+//@Setter
+//public class ProblemFeedbackVo extends ProblemFeedback {
+//
+//}

+ 19 - 19
hx-common/src/main/java/com/fjhx/common/entity/send/dto/SendMegDto.java

@@ -1,19 +1,19 @@
-package com.fjhx.common.entity.send.dto;
-
-import com.fjhx.common.entity.send.po.SendMeg;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 新增编辑入参实体
- *
- * @author 
- * @since 2023-05-22
- */
-@Getter
-@Setter
-public class SendMegDto extends SendMeg {
-
-
-
-}
+//package com.fjhx.common.entity.send.dto;
+//
+//import com.fjhx.common.entity.send.po.SendMeg;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+///**
+// * 新增编辑入参实体
+// *
+// * @author
+// * @since 2023-05-22
+// */
+//@Getter
+//@Setter
+//public class SendMegDto extends SendMeg {
+//
+//
+//
+//}

+ 27 - 27
hx-common/src/main/java/com/fjhx/common/entity/send/dto/SendMegSelectDto.java

@@ -1,27 +1,27 @@
-package com.fjhx.common.entity.send.dto;
-
-import com.ruoyi.common.core.domain.BaseSelectDto;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 列表查询入参实体
- *
- * @author 
- * @since 2023-05-22
- */
-@Getter
-@Setter
-public class SendMegSelectDto extends BaseSelectDto {
-
-    /**
-     * 状态 0待发送 1以发送
-     */
-    private Integer status;
-
-    /**
-     * 消息类型 1系统公告
-     */
-    private Integer type;
-
-}
+//package com.fjhx.common.entity.send.dto;
+//
+//import com.ruoyi.common.core.domain.BaseSelectDto;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+///**
+// * 列表查询入参实体
+// *
+// * @author
+// * @since 2023-05-22
+// */
+//@Getter
+//@Setter
+//public class SendMegSelectDto extends BaseSelectDto {
+//
+//    /**
+//     * 状态 0待发送 1以发送
+//     */
+//    private Integer status;
+//
+//    /**
+//     * 消息类型 1系统公告
+//     */
+//    private Integer type;
+//
+//}

+ 59 - 59
hx-common/src/main/java/com/fjhx/common/entity/send/po/SendMeg.java

@@ -1,59 +1,59 @@
-package com.fjhx.common.entity.send.po;
-
-import com.baomidou.mybatisplus.annotation.TableName;
-import com.ruoyi.common.core.domain.BasePo;
-import lombok.Getter;
-import lombok.Setter;
-
-import javax.validation.constraints.NotEmpty;
-import javax.validation.constraints.NotNull;
-import java.util.Date;
-
-/**
- * <p>
- *
- * </p>
- *
- * @author
- * @since 2023-05-22
- */
-@Getter
-@Setter
-@TableName("send_meg")
-public class SendMeg extends BasePo {
-
-    /**
-     * 消息类型 1系统公告
-     */
-    @NotNull(message = "消息类型不能为空")
-    private Integer type;
-
-    /**
-     * 标题
-     */
-    @NotEmpty(message = "标题不能为空")
-    private String title;
-
-    /**
-     * 内容
-     */
-    @NotEmpty(message = "消息正文不能为空")
-    private String content;
-
-    /**
-     * 发送时间
-     */
-    @NotEmpty(message = "发送时间不能为空")
-    private Date sendTime;
-
-    /**
-     * 结束时间
-     */
-    private Date endTime;
-
-    /**
-     * 状态 0待发送 1已发送
-     */
-    private Integer status;
-
-}
+//package com.fjhx.common.entity.send.po;
+//
+//import com.baomidou.mybatisplus.annotation.TableName;
+//import com.ruoyi.common.core.domain.BasePo;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+//import javax.validation.constraints.NotEmpty;
+//import javax.validation.constraints.NotNull;
+//import java.util.Date;
+//
+///**
+// * <p>
+// *
+// * </p>
+// *
+// * @author
+// * @since 2023-05-22
+// */
+//@Getter
+//@Setter
+//@TableName("send_meg")
+//public class SendMeg extends BasePo {
+//
+//    /**
+//     * 消息类型 1系统公告
+//     */
+//    @NotNull(message = "消息类型不能为空")
+//    private Integer type;
+//
+//    /**
+//     * 标题
+//     */
+//    @NotEmpty(message = "标题不能为空")
+//    private String title;
+//
+//    /**
+//     * 内容
+//     */
+//    @NotEmpty(message = "消息正文不能为空")
+//    private String content;
+//
+//    /**
+//     * 发送时间
+//     */
+//    @NotEmpty(message = "发送时间不能为空")
+//    private Date sendTime;
+//
+//    /**
+//     * 结束时间
+//     */
+//    private Date endTime;
+//
+//    /**
+//     * 状态 0待发送 1已发送
+//     */
+//    private Integer status;
+//
+//}

+ 17 - 17
hx-common/src/main/java/com/fjhx/common/entity/send/vo/SendMegVo.java

@@ -1,17 +1,17 @@
-package com.fjhx.common.entity.send.vo;
-
-import com.fjhx.common.entity.send.po.SendMeg;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 列表查询返回值实体
- *
- * @author 
- * @since 2023-05-22
- */
-@Getter
-@Setter
-public class SendMegVo extends SendMeg {
-
-}
+//package com.fjhx.common.entity.send.vo;
+//
+//import com.fjhx.common.entity.send.po.SendMeg;
+//import lombok.Getter;
+//import lombok.Setter;
+//
+///**
+// * 列表查询返回值实体
+// *
+// * @author
+// * @since 2023-05-22
+// */
+//@Getter
+//@Setter
+//public class SendMegVo extends SendMeg {
+//
+//}

+ 169 - 169
hx-common/src/main/java/com/fjhx/common/enums/CodingRuleEnum.java

@@ -1,169 +1,169 @@
-package com.fjhx.common.enums;
-
-import com.fjhx.common.entity.coding.dto.DefaultRule;
-import com.fjhx.common.entity.coding.dto.RuleVo;
-import com.ruoyi.common.exception.ServiceException;
-import lombok.AllArgsConstructor;
-import lombok.Getter;
-
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.stream.Collectors;
-
-@Getter
-@AllArgsConstructor
-public enum CodingRuleEnum {
-
-    /**
-     * 外销合同
-     */ 
-    CONTRACT("contract", "外销合同", Arrays.asList(
-            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "SC-"),
-            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
-            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
-    )),
-    /**
-     * 样品单
-     */
-    SAMPLE("sample", "样品单", Arrays.asList(
-            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "YP-"),
-            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
-            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
-    )),
-    /**
-     * EHSD采购编码
-     */
-    EHSD_PURCHASE("ehsd_purchase", "EHSD采购单", Arrays.asList(
-            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "PO-"),
-            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
-            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
-    )),
-    /**
-     * 报价单
-     */
-    SALE_QUOTATION("sale_quotation", "报价单", Arrays.asList(
-            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "GSQT-"),
-            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
-            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
-    )),
-    /**
-     * 包装
-     */
-    PACK("pack", "包装", Arrays.asList(
-            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "PACK-"),
-            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
-            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
-    )),
-    /**
-     * 采购编码
-     */
-    PURCHASE("purchase", "采购单", Arrays.asList(
-            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "SC-"),
-            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
-            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
-    )),
-
-    /**
-     * 服务合同
-     */
-    SERVICE_CONTRACT("service_contract", "服务合同", Arrays.asList(
-            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "PO-"),
-            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
-            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
-    )),
-
-    //---------------------------采购模块-----------------------------
-
-    /**
-     * 申购单
-     */
-    SUBSCRIBE("subscribe", "申购单", Arrays.asList(
-            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "PR-"),
-            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
-            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
-    )),
-    /**
-     * 到货
-     */
-    ARRIVAL("arrival", "到货", Arrays.asList(
-            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "PA-"),
-            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
-            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
-    )),
-    /**
-     * 质检
-     */
-    QUALITY("quality", "质检", Arrays.asList(
-            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "ZJ-"),
-            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
-            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
-    )),
-    /**
-     * 退货
-     */
-    SALES_RETURN("sales_return", "退货", Arrays.asList(
-            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "TH-"),
-            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
-            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
-    )),
-    /**
-     * EHSD到货检验编码
-     */
-    EHSD_QUALITY("ehsd_quality", "到货检验编码", Arrays.asList(
-            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "EHSD-QUALITY-"),
-            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
-            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
-    )),
-    ;
-
-    /**
-     * 编码规则key
-     */
-    private final String key;
-
-    /**
-     * 功能名称
-     */
-    private final String name;
-
-    /**
-     * 默认规则
-     */
-    private final List<DefaultRule> defaultRuleList;
-
-    private static final Map<String, CodingRuleEnum> map = new HashMap<>();
-
-    static {
-        for (CodingRuleEnum value : CodingRuleEnum.values()) {
-            map.put(value.key, value);
-        }
-    }
-
-    private static DefaultRule getDefaultRule(RuleTypeEnum ruleTypeEnum) {
-        return new DefaultRule(ruleTypeEnum);
-    }
-
-    private static DefaultRule getDefaultRule(RuleTypeEnum ruleTypeEnum, String value) {
-        return new DefaultRule(ruleTypeEnum, value);
-    }
-
-    public List<RuleVo> getDefaultRuleVoList() {
-        return defaultRuleList.stream().map(item -> {
-            RuleVo ruleVo = new RuleVo();
-            ruleVo.setRuleType(item.getRuleTypeEnum().getType());
-            ruleVo.setValue(item.getValue());
-            return ruleVo;
-        }).collect(Collectors.toList());
-    }
-
-    public static List<RuleVo> getDefaultRuleVoList(String key) {
-        CodingRuleEnum codingRuleEnum = map.get(key);
-        if (codingRuleEnum == null) {
-            throw new ServiceException("编码规则key不存在");
-        }
-        return codingRuleEnum.getDefaultRuleVoList();
-    }
-
-}
+//package com.fjhx.common.enums;
+//
+//import com.fjhx.common.entity.coding.dto.DefaultRule;
+//import com.fjhx.common.entity.coding.dto.RuleVo;
+//import com.ruoyi.common.exception.ServiceException;
+//import lombok.AllArgsConstructor;
+//import lombok.Getter;
+//
+//import java.util.Arrays;
+//import java.util.HashMap;
+//import java.util.List;
+//import java.util.Map;
+//import java.util.stream.Collectors;
+//
+//@Getter
+//@AllArgsConstructor
+//public enum CodingRuleEnum {
+//
+//    /**
+//     * 外销合同
+//     */
+//    CONTRACT("contract", "外销合同", Arrays.asList(
+//            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "SC-"),
+//            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
+//            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
+//    )),
+//    /**
+//     * 样品单
+//     */
+//    SAMPLE("sample", "样品单", Arrays.asList(
+//            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "YP-"),
+//            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
+//            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
+//    )),
+//    /**
+//     * EHSD采购编码
+//     */
+//    EHSD_PURCHASE("ehsd_purchase", "EHSD采购单", Arrays.asList(
+//            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "PO-"),
+//            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
+//            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
+//    )),
+//    /**
+//     * 报价单
+//     */
+//    SALE_QUOTATION("sale_quotation", "报价单", Arrays.asList(
+//            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "GSQT-"),
+//            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
+//            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
+//    )),
+//    /**
+//     * 包装
+//     */
+//    PACK("pack", "包装", Arrays.asList(
+//            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "PACK-"),
+//            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
+//            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
+//    )),
+//    /**
+//     * 采购编码
+//     */
+//    PURCHASE("purchase", "采购单", Arrays.asList(
+//            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "SC-"),
+//            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
+//            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
+//    )),
+//
+//    /**
+//     * 服务合同
+//     */
+//    SERVICE_CONTRACT("service_contract", "服务合同", Arrays.asList(
+//            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "PO-"),
+//            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
+//            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
+//    )),
+//
+//    //---------------------------采购模块-----------------------------
+//
+//    /**
+//     * 申购单
+//     */
+//    SUBSCRIBE("subscribe", "申购单", Arrays.asList(
+//            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "PR-"),
+//            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
+//            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
+//    )),
+//    /**
+//     * 到货
+//     */
+//    ARRIVAL("arrival", "到货", Arrays.asList(
+//            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "PA-"),
+//            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
+//            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
+//    )),
+//    /**
+//     * 质检
+//     */
+//    QUALITY("quality", "质检", Arrays.asList(
+//            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "ZJ-"),
+//            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
+//            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
+//    )),
+//    /**
+//     * 退货
+//     */
+//    SALES_RETURN("sales_return", "退货", Arrays.asList(
+//            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "TH-"),
+//            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
+//            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
+//    )),
+//    /**
+//     * EHSD到货检验编码
+//     */
+//    EHSD_QUALITY("ehsd_quality", "到货检验编码", Arrays.asList(
+//            getDefaultRule(RuleTypeEnum.CUSTOMIZE, "EHSD-QUALITY-"),
+//            getDefaultRule(RuleTypeEnum.DATE_FORMAT, "yyyyMM-"),
+//            getDefaultRule(RuleTypeEnum.AUTOINCREMENT, "3")
+//    )),
+//    ;
+//
+//    /**
+//     * 编码规则key
+//     */
+//    private final String key;
+//
+//    /**
+//     * 功能名称
+//     */
+//    private final String name;
+//
+//    /**
+//     * 默认规则
+//     */
+//    private final List<DefaultRule> defaultRuleList;
+//
+//    private static final Map<String, CodingRuleEnum> map = new HashMap<>();
+//
+//    static {
+//        for (CodingRuleEnum value : CodingRuleEnum.values()) {
+//            map.put(value.key, value);
+//        }
+//    }
+//
+//    private static DefaultRule getDefaultRule(RuleTypeEnum ruleTypeEnum) {
+//        return new DefaultRule(ruleTypeEnum);
+//    }
+//
+//    private static DefaultRule getDefaultRule(RuleTypeEnum ruleTypeEnum, String value) {
+//        return new DefaultRule(ruleTypeEnum, value);
+//    }
+//
+//    public List<RuleVo> getDefaultRuleVoList() {
+//        return defaultRuleList.stream().map(item -> {
+//            RuleVo ruleVo = new RuleVo();
+//            ruleVo.setRuleType(item.getRuleTypeEnum().getType());
+//            ruleVo.setValue(item.getValue());
+//            return ruleVo;
+//        }).collect(Collectors.toList());
+//    }
+//
+//    public static List<RuleVo> getDefaultRuleVoList(String key) {
+//        CodingRuleEnum codingRuleEnum = map.get(key);
+//        if (codingRuleEnum == null) {
+//            throw new ServiceException("编码规则key不存在");
+//        }
+//        return codingRuleEnum.getDefaultRuleVoList();
+//    }
+//
+//}

+ 41 - 41
hx-common/src/main/java/com/fjhx/common/enums/RuleTypeEnum.java

@@ -1,41 +1,41 @@
-package com.fjhx.common.enums;
-
-import com.ruoyi.common.exception.ServiceException;
-import lombok.AllArgsConstructor;
-import lombok.Getter;
-
-import java.util.HashMap;
-import java.util.Map;
-
-@Getter
-@AllArgsConstructor
-public enum RuleTypeEnum {
-
-    CUSTOMIZE(1, "自定义字符"),
-    COUNTRY_CODE(2, "客户国家编码"),
-    SALESMAN_CODE(3, "业务员代码"),
-    CUSTOMER_CODE(4, "客户编码"),
-    AUTOINCREMENT(5, "自增编号"),
-    DATE_FORMAT(6, "日期");
-
-    private final Integer type;
-
-    private final String name;
-
-    private static final Map<Integer, RuleTypeEnum> map = new HashMap<>();
-
-    static {
-        for (RuleTypeEnum value : RuleTypeEnum.values()) {
-            map.put(value.getType(), value);
-        }
-    }
-
-    public static RuleTypeEnum getRuleTypeEnum(Integer type) {
-        RuleTypeEnum ruleTypeEnum = map.get(type);
-        if (ruleTypeEnum == null) {
-            throw new ServiceException("编码规则类型不存在");
-        }
-        return ruleTypeEnum;
-    }
-
-}
+//package com.fjhx.common.enums;
+//
+//import com.ruoyi.common.exception.ServiceException;
+//import lombok.AllArgsConstructor;
+//import lombok.Getter;
+//
+//import java.util.HashMap;
+//import java.util.Map;
+//
+//@Getter
+//@AllArgsConstructor
+//public enum RuleTypeEnum {
+//
+//    CUSTOMIZE(1, "自定义字符"),
+//    COUNTRY_CODE(2, "客户国家编码"),
+//    SALESMAN_CODE(3, "业务员代码"),
+//    CUSTOMER_CODE(4, "客户编码"),
+//    AUTOINCREMENT(5, "自增编号"),
+//    DATE_FORMAT(6, "日期");
+//
+//    private final Integer type;
+//
+//    private final String name;
+//
+//    private static final Map<Integer, RuleTypeEnum> map = new HashMap<>();
+//
+//    static {
+//        for (RuleTypeEnum value : RuleTypeEnum.values()) {
+//            map.put(value.getType(), value);
+//        }
+//    }
+//
+//    public static RuleTypeEnum getRuleTypeEnum(Integer type) {
+//        RuleTypeEnum ruleTypeEnum = map.get(type);
+//        if (ruleTypeEnum == null) {
+//            throw new ServiceException("编码规则类型不存在");
+//        }
+//        return ruleTypeEnum;
+//    }
+//
+//}

+ 17 - 17
hx-common/src/main/java/com/fjhx/common/mapper/coding/CodingRuleAutoMapper.java

@@ -1,17 +1,17 @@
-package com.fjhx.common.mapper.coding;
-
-import com.fjhx.common.entity.coding.po.CodingRuleAuto;
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-
-
-/**
- * <p>
- * 规则配置自增编码 Mapper 接口
- * </p>
- *
- * @author 
- * @since 2023-05-18
- */
-public interface CodingRuleAutoMapper extends BaseMapper<CodingRuleAuto> {
-
-}
+//package com.fjhx.common.mapper.coding;
+//
+//import com.fjhx.common.entity.coding.po.CodingRuleAuto;
+//import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+//
+//
+///**
+// * <p>
+// * 规则配置自增编码 Mapper 接口
+// * </p>
+// *
+// * @author
+// * @since 2023-05-18
+// */
+//public interface CodingRuleAutoMapper extends BaseMapper<CodingRuleAuto> {
+//
+//}

+ 17 - 17
hx-common/src/main/java/com/fjhx/common/mapper/coding/CodingRuleMapper.java

@@ -1,17 +1,17 @@
-package com.fjhx.common.mapper.coding;
-
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.fjhx.common.entity.coding.po.CodingRule;
-
-
-/**
- * <p>
- * 编码规则 Mapper 接口
- * </p>
- *
- * @author
- * @since 2023-04-13
- */
-public interface CodingRuleMapper extends BaseMapper<CodingRule> {
-
-}
+//package com.fjhx.common.mapper.coding;
+//
+//import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+//import com.fjhx.common.entity.coding.po.CodingRule;
+//
+//
+///**
+// * <p>
+// * 编码规则 Mapper 接口
+// * </p>
+// *
+// * @author
+// * @since 2023-04-13
+// */
+//public interface CodingRuleMapper extends BaseMapper<CodingRule> {
+//
+//}

+ 26 - 26
hx-common/src/main/java/com/fjhx/common/mapper/contract/ContractTemplateMapper.java

@@ -1,26 +1,26 @@
-package com.fjhx.common.mapper.contract;
-
-import com.fjhx.common.entity.contract.po.ContractTemplate;
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.common.entity.contract.vo.ContractTemplateVo;
-import com.ruoyi.common.utils.wrapper.IWrapper;
-import org.apache.ibatis.annotations.Param;
-
-
-/**
- * <p>
- * 合同模板 Mapper 接口
- * </p>
- *
- * @author 
- * @since 2023-04-14
- */
-public interface ContractTemplateMapper extends BaseMapper<ContractTemplate> {
-
-    /**
-     * 合同模板分页
-     */
-    Page<ContractTemplateVo> getPage(@Param("page") Page<Object> page, @Param("ew") IWrapper<ContractTemplate> wrapper);
-
-}
+//package com.fjhx.common.mapper.contract;
+//
+//import com.fjhx.common.entity.contract.po.ContractTemplate;
+//import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+//import com.fjhx.common.entity.contract.vo.ContractTemplateVo;
+//import com.ruoyi.common.utils.wrapper.IWrapper;
+//import org.apache.ibatis.annotations.Param;
+//
+//
+///**
+// * <p>
+// * 合同模板 Mapper 接口
+// * </p>
+// *
+// * @author
+// * @since 2023-04-14
+// */
+//public interface ContractTemplateMapper extends BaseMapper<ContractTemplate> {
+//
+//    /**
+//     * 合同模板分页
+//     */
+//    Page<ContractTemplateVo> getPage(@Param("page") Page<Object> page, @Param("ew") IWrapper<ContractTemplate> wrapper);
+//
+//}

+ 26 - 26
hx-common/src/main/java/com/fjhx/common/mapper/corporation/CorporationMapper.java

@@ -1,26 +1,26 @@
-package com.fjhx.common.mapper.corporation;
-
-import com.fjhx.common.entity.corporation.po.Corporation;
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.common.entity.corporation.vo.CorporationVo;
-import com.ruoyi.common.utils.wrapper.IWrapper;
-import org.apache.ibatis.annotations.Param;
-
-
-/**
- * <p>
- * 多公司配置 Mapper 接口
- * </p>
- *
- * @author 
- * @since 2023-04-10
- */
-public interface CorporationMapper extends BaseMapper<Corporation> {
-
-    /**
-     * 多公司配置分页
-     */
-    Page<CorporationVo> getPage(@Param("page") Page<Object> page, @Param("ew") IWrapper<Corporation> wrapper);
-
-}
+//package com.fjhx.common.mapper.corporation;
+//
+//import com.fjhx.common.entity.corporation.po.Corporation;
+//import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+//import com.fjhx.common.entity.corporation.vo.CorporationVo;
+//import com.ruoyi.common.utils.wrapper.IWrapper;
+//import org.apache.ibatis.annotations.Param;
+//
+//
+///**
+// * <p>
+// * 多公司配置 Mapper 接口
+// * </p>
+// *
+// * @author
+// * @since 2023-04-10
+// */
+//public interface CorporationMapper extends BaseMapper<Corporation> {
+//
+//    /**
+//     * 多公司配置分页
+//     */
+//    Page<CorporationVo> getPage(@Param("page") Page<Object> page, @Param("ew") IWrapper<Corporation> wrapper);
+//
+//}

+ 16 - 16
hx-common/src/main/java/com/fjhx/common/mapper/currency/CurrencyRateMapper.java

@@ -1,16 +1,16 @@
-package com.fjhx.common.mapper.currency;
-
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.fjhx.common.entity.currency.po.CurrencyRate;
-
-/**
- * <p>
- * 币种默认汇率 Mapper 接口
- * </p>
- *
- * @author
- * @since 2023-04-24
- */
-public interface CurrencyRateMapper extends BaseMapper<CurrencyRate> {
-
-}
+//package com.fjhx.common.mapper.currency;
+//
+//import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+//import com.fjhx.common.entity.currency.po.CurrencyRate;
+//
+///**
+// * <p>
+// * 币种默认汇率 Mapper 接口
+// * </p>
+// *
+// * @author
+// * @since 2023-04-24
+// */
+//public interface CurrencyRateMapper extends BaseMapper<CurrencyRate> {
+//
+//}

+ 26 - 26
hx-common/src/main/java/com/fjhx/common/mapper/documentary/DocumentaryMapper.java

@@ -1,26 +1,26 @@
-package com.fjhx.common.mapper.documentary;
-
-import com.fjhx.common.entity.documentary.po.Documentary;
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.common.entity.documentary.vo.DocumentaryVo;
-import com.ruoyi.common.utils.wrapper.IWrapper;
-import org.apache.ibatis.annotations.Param;
-
-
-/**
- * <p>
- * 跟单配置 Mapper 接口
- * </p>
- *
- * @author 
- * @since 2023-04-19
- */
-public interface DocumentaryMapper extends BaseMapper<Documentary> {
-
-    /**
-     * 跟单配置分页
-     */
-    Page<DocumentaryVo> getPage(@Param("page") Page<Object> page, @Param("ew") IWrapper<Documentary> wrapper);
-
-}
+//package com.fjhx.common.mapper.documentary;
+//
+//import com.fjhx.common.entity.documentary.po.Documentary;
+//import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+//import com.fjhx.common.entity.documentary.vo.DocumentaryVo;
+//import com.ruoyi.common.utils.wrapper.IWrapper;
+//import org.apache.ibatis.annotations.Param;
+//
+//
+///**
+// * <p>
+// * 跟单配置 Mapper 接口
+// * </p>
+// *
+// * @author
+// * @since 2023-04-19
+// */
+//public interface DocumentaryMapper extends BaseMapper<Documentary> {
+//
+//    /**
+//     * 跟单配置分页
+//     */
+//    Page<DocumentaryVo> getPage(@Param("page") Page<Object> page, @Param("ew") IWrapper<Documentary> wrapper);
+//
+//}

+ 21 - 21
hx-common/src/main/java/com/fjhx/common/mapper/documentary/DocumentaryRecordMapper.java

@@ -1,21 +1,21 @@
-package com.fjhx.common.mapper.documentary;
-
-import com.fjhx.common.entity.documentary.po.DocumentaryRecord;
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.common.entity.documentary.vo.DocumentaryRecordVo;
-import com.ruoyi.common.utils.wrapper.IWrapper;
-import org.apache.ibatis.annotations.Param;
-
-
-/**
- * <p>
- * 跟单记录 Mapper 接口
- * </p>
- *
- * @author 
- * @since 2023-04-20
- */
-public interface DocumentaryRecordMapper extends BaseMapper<DocumentaryRecord> {
-
-}
+//package com.fjhx.common.mapper.documentary;
+//
+//import com.fjhx.common.entity.documentary.po.DocumentaryRecord;
+//import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+//import com.fjhx.common.entity.documentary.vo.DocumentaryRecordVo;
+//import com.ruoyi.common.utils.wrapper.IWrapper;
+//import org.apache.ibatis.annotations.Param;
+//
+//
+///**
+// * <p>
+// * 跟单记录 Mapper 接口
+// * </p>
+// *
+// * @author
+// * @since 2023-04-20
+// */
+//public interface DocumentaryRecordMapper extends BaseMapper<DocumentaryRecord> {
+//
+//}

+ 27 - 27
hx-common/src/main/java/com/fjhx/common/mapper/on/OnLineInfoMapper.java

@@ -1,27 +1,27 @@
-package com.fjhx.common.mapper.on;
-
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.fjhx.common.entity.on.po.OnLineInfo;
-import com.fjhx.common.entity.on.vo.OnLineInfoVo;
-
-import java.util.List;
-
-
-/**
- * <p>
- * 在线时长信息 Mapper 接口
- * </p>
- *
- * @author
- * @since 2023-08-08
- */
-public interface OnLineInfoMapper extends BaseMapper<OnLineInfo> {
-
-    /**
-     * 获取7天内的在线时长
-     */
-    Long getOnLineTimeByUserId(Long userId);
-
-    List<OnLineInfoVo> getOnLineTimeByDeptIds(List<Long> deptIds);
-
-}
+//package com.fjhx.common.mapper.on;
+//
+//import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+//import com.fjhx.common.entity.on.po.OnLineInfo;
+//import com.fjhx.common.entity.on.vo.OnLineInfoVo;
+//
+//import java.util.List;
+//
+//
+///**
+// * <p>
+// * 在线时长信息 Mapper 接口
+// * </p>
+// *
+// * @author
+// * @since 2023-08-08
+// */
+//public interface OnLineInfoMapper extends BaseMapper<OnLineInfo> {
+//
+//    /**
+//     * 获取7天内的在线时长
+//     */
+//    Long getOnLineTimeByUserId(Long userId);
+//
+//    List<OnLineInfoVo> getOnLineTimeByDeptIds(List<Long> deptIds);
+//
+//}

+ 26 - 26
hx-common/src/main/java/com/fjhx/common/mapper/problem/ProblemFeedbackMapper.java

@@ -1,26 +1,26 @@
-package com.fjhx.common.mapper.problem;
-
-import com.fjhx.common.entity.problem.po.ProblemFeedback;
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.common.entity.problem.vo.ProblemFeedbackVo;
-import com.ruoyi.common.utils.wrapper.IWrapper;
-import org.apache.ibatis.annotations.Param;
-
-
-/**
- * <p>
- * 问题反馈 Mapper 接口
- * </p>
- *
- * @author 
- * @since 2023-05-04
- */
-public interface ProblemFeedbackMapper extends BaseMapper<ProblemFeedback> {
-
-    /**
-     * 问题反馈分页
-     */
-    Page<ProblemFeedbackVo> getPage(@Param("page") Page<Object> page, @Param("ew") IWrapper<ProblemFeedback> wrapper);
-
-}
+//package com.fjhx.common.mapper.problem;
+//
+//import com.fjhx.common.entity.problem.po.ProblemFeedback;
+//import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+//import com.fjhx.common.entity.problem.vo.ProblemFeedbackVo;
+//import com.ruoyi.common.utils.wrapper.IWrapper;
+//import org.apache.ibatis.annotations.Param;
+//
+//
+///**
+// * <p>
+// * 问题反馈 Mapper 接口
+// * </p>
+// *
+// * @author
+// * @since 2023-05-04
+// */
+//public interface ProblemFeedbackMapper extends BaseMapper<ProblemFeedback> {
+//
+//    /**
+//     * 问题反馈分页
+//     */
+//    Page<ProblemFeedbackVo> getPage(@Param("page") Page<Object> page, @Param("ew") IWrapper<ProblemFeedback> wrapper);
+//
+//}

+ 17 - 17
hx-common/src/main/java/com/fjhx/common/service/coding/CodingRuleAutoService.java

@@ -1,17 +1,17 @@
-package com.fjhx.common.service.coding;
-
-import com.fjhx.common.entity.coding.po.CodingRuleAuto;
-import com.ruoyi.common.core.service.BaseService;
-
-
-/**
- * <p>
- * 规则配置自增编码 服务类
- * </p>
- *
- * @author 
- * @since 2023-05-18
- */
-public interface CodingRuleAutoService extends BaseService<CodingRuleAuto> {
-
-}
+//package com.fjhx.common.service.coding;
+//
+//import com.fjhx.common.entity.coding.po.CodingRuleAuto;
+//import com.ruoyi.common.core.service.BaseService;
+//
+//
+///**
+// * <p>
+// * 规则配置自增编码 服务类
+// * </p>
+// *
+// * @author
+// * @since 2023-05-18
+// */
+//public interface CodingRuleAutoService extends BaseService<CodingRuleAuto> {
+//
+//}

+ 33 - 33
hx-common/src/main/java/com/fjhx/common/service/coding/CodingRuleService.java

@@ -1,33 +1,33 @@
-package com.fjhx.common.service.coding;
-
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.common.entity.coding.dto.CodingRuleDto;
-import com.fjhx.common.entity.coding.dto.CodingRuleSelectDto;
-import com.fjhx.common.entity.coding.po.CodingRule;
-import com.fjhx.common.entity.coding.vo.CodingRulePageVo;
-import com.ruoyi.common.core.service.BaseService;
-
-
-/**
- * <p>
- * 编码规则 服务类
- * </p>
- *
- * @author
- * @since 2023-04-13
- */
-public interface CodingRuleService extends BaseService<CodingRule> {
-
-    /**
-     * 编码规则分页
-     */
-    Page<CodingRulePageVo> getPage(CodingRuleSelectDto dto);
-
-    /**
-     * 编码规则编辑
-     */
-    void edit(CodingRuleDto codingRuleDto);
-
-    String createCode(String key, Long customerId);
-
-}
+//package com.fjhx.common.service.coding;
+//
+//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+//import com.fjhx.common.entity.coding.dto.CodingRuleDto;
+//import com.fjhx.common.entity.coding.dto.CodingRuleSelectDto;
+//import com.fjhx.common.entity.coding.po.CodingRule;
+//import com.fjhx.common.entity.coding.vo.CodingRulePageVo;
+//import com.ruoyi.common.core.service.BaseService;
+//
+//
+///**
+// * <p>
+// * 编码规则 服务类
+// * </p>
+// *
+// * @author
+// * @since 2023-04-13
+// */
+//public interface CodingRuleService extends BaseService<CodingRule> {
+//
+//    /**
+//     * 编码规则分页
+//     */
+//    Page<CodingRulePageVo> getPage(CodingRuleSelectDto dto);
+//
+//    /**
+//     * 编码规则编辑
+//     */
+//    void edit(CodingRuleDto codingRuleDto);
+//
+//    String createCode(String key, Long customerId);
+//
+//}

+ 21 - 21
hx-common/src/main/java/com/fjhx/common/service/coding/impl/CodingRuleAutoServiceImpl.java

@@ -1,21 +1,21 @@
-package com.fjhx.common.service.coding.impl;
-
-import com.fjhx.common.entity.coding.po.CodingRuleAuto;
-import com.fjhx.common.mapper.coding.CodingRuleAutoMapper;
-import com.fjhx.common.service.coding.CodingRuleAutoService;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import org.springframework.stereotype.Service;
-
-
-/**
- * <p>
- * 规则配置自增编码 服务实现类
- * </p>
- *
- * @author 
- * @since 2023-05-18
- */
-@Service
-public class CodingRuleAutoServiceImpl extends ServiceImpl<CodingRuleAutoMapper, CodingRuleAuto> implements CodingRuleAutoService {
-
-}
+//package com.fjhx.common.service.coding.impl;
+//
+//import com.fjhx.common.entity.coding.po.CodingRuleAuto;
+//import com.fjhx.common.mapper.coding.CodingRuleAutoMapper;
+//import com.fjhx.common.service.coding.CodingRuleAutoService;
+//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+//import org.springframework.stereotype.Service;
+//
+//
+///**
+// * <p>
+// * 规则配置自增编码 服务实现类
+// * </p>
+// *
+// * @author
+// * @since 2023-05-18
+// */
+//@Service
+//public class CodingRuleAutoServiceImpl extends ServiceImpl<CodingRuleAutoMapper, CodingRuleAuto> implements CodingRuleAutoService {
+//
+//}

+ 283 - 283
hx-common/src/main/java/com/fjhx/common/service/coding/impl/CodingRuleServiceImpl.java

@@ -1,284 +1,284 @@
-package com.fjhx.common.service.coding.impl;
-
-import cn.hutool.core.convert.Convert;
-import cn.hutool.core.date.DateUtil;
-import cn.hutool.core.util.StrUtil;
-import com.alibaba.fastjson2.JSON;
-import com.baomidou.dynamic.datasource.toolkit.DynamicDataSourceContextHolder;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.fjhx.area.entity.po.CustomizeArea;
-import com.fjhx.area.service.CustomizeAreaService;
-import com.fjhx.common.constant.SourceConstant;
-import com.fjhx.common.entity.coding.bo.CustomerCodeAndCountryId;
-import com.fjhx.common.entity.coding.dto.CodingRuleDto;
-import com.fjhx.common.entity.coding.dto.CodingRuleSelectDto;
-import com.fjhx.common.entity.coding.dto.RuleVo;
-import com.fjhx.common.entity.coding.po.CodingRule;
-import com.fjhx.common.entity.coding.po.CodingRuleAuto;
-import com.fjhx.common.entity.coding.vo.CodingRulePageVo;
-import com.fjhx.common.enums.CodingRuleEnum;
-import com.fjhx.common.enums.RuleTypeEnum;
-import com.fjhx.common.mapper.coding.CodingRuleMapper;
-import com.fjhx.common.service.coding.CodingRuleAutoService;
-import com.fjhx.common.service.coding.CodingRuleCustomerService;
-import com.fjhx.common.service.coding.CodingRuleService;
-import com.ruoyi.common.core.domain.BaseIdPo;
-import com.ruoyi.common.core.domain.entity.SysUser;
-import com.ruoyi.common.exception.ServiceException;
-import com.ruoyi.common.utils.SecurityUtils;
-import com.ruoyi.system.service.ISysUserService;
-import com.ruoyi.system.utils.UserUtil;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.List;
-import java.util.Map;
-
-
-/**
- * <p>
- * 编码规则 服务实现类
- * </p>
- *
- * @author
- * @since 2023-04-13
- */
-@Service
-public class CodingRuleServiceImpl extends ServiceImpl<CodingRuleMapper, CodingRule> implements CodingRuleService {
-
+//package com.fjhx.common.service.coding.impl;
+//
+//import cn.hutool.core.convert.Convert;
+//import cn.hutool.core.date.DateUtil;
+//import cn.hutool.core.util.StrUtil;
+//import com.alibaba.fastjson2.JSON;
+//import com.baomidou.dynamic.datasource.toolkit.DynamicDataSourceContextHolder;
+//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+//import com.fjhx.area.entity.po.CustomizeArea;
+//import com.fjhx.area.service.CustomizeAreaService;
+//import com.fjhx.common.constant.SourceConstant;
+//import com.fjhx.common.entity.coding.bo.CustomerCodeAndCountryId;
+//import com.fjhx.common.entity.coding.dto.CodingRuleDto;
+//import com.fjhx.common.entity.coding.dto.CodingRuleSelectDto;
+//import com.fjhx.common.entity.coding.dto.RuleVo;
+//import com.fjhx.common.entity.coding.po.CodingRule;
+//import com.fjhx.common.entity.coding.po.CodingRuleAuto;
+//import com.fjhx.common.entity.coding.vo.CodingRulePageVo;
+//import com.fjhx.common.enums.CodingRuleEnum;
+//import com.fjhx.common.enums.RuleTypeEnum;
+//import com.fjhx.common.mapper.coding.CodingRuleMapper;
+//import com.fjhx.common.service.coding.CodingRuleAutoService;
+//import com.fjhx.common.service.coding.CodingRuleCustomerService;
+//import com.fjhx.common.service.coding.CodingRuleService;
+//import com.ruoyi.common.core.domain.BaseIdPo;
+//import com.ruoyi.common.core.domain.entity.SysUser;
+//import com.ruoyi.common.exception.ServiceException;
+//import com.ruoyi.common.utils.SecurityUtils;
+//import com.ruoyi.system.service.ISysUserService;
+//import com.ruoyi.system.utils.UserUtil;
+//import org.springframework.beans.factory.annotation.Autowired;
+//import org.springframework.stereotype.Service;
+//
+//import java.util.ArrayList;
+//import java.util.Date;
+//import java.util.List;
+//import java.util.Map;
+//
+//
+///**
+// * <p>
+// * 编码规则 服务实现类
+// * </p>
+// *
+// * @author
+// * @since 2023-04-13
+// */
+//@Service
+//public class CodingRuleServiceImpl extends ServiceImpl<CodingRuleMapper, CodingRule> implements CodingRuleService {
+//
+////    @Autowired
+////    private CodingRuleCustomerService codingRuleCustomerService;
+//
 //    @Autowired
-//    private CodingRuleCustomerService codingRuleCustomerService;
-
-    @Autowired
-    private CustomizeAreaService customizeAreaService;
-
-    @Autowired
-    private ISysUserService sysUserService;
-
-    @Autowired
-    private CodingRuleAutoService codingRuleAutoService;
-
-    @Override
-    public Page<CodingRulePageVo> getPage(CodingRuleSelectDto dto) {
-
-        Integer pageNum = dto.getPageNum();
-        Integer pageSize = dto.getPageSize();
-
-        int startIndex = (pageNum - 1) * pageSize;
-        int endIndex = pageNum * pageSize;
-
-        int tempIndex = 0;
-
-        List<CodingRulePageVo> codingRulePageVoList = new ArrayList<>();
-        List<String> keyList = new ArrayList<>();
-
-        for (CodingRuleEnum codingRuleEnum : CodingRuleEnum.values()) {
-            if (StrUtil.isNotBlank(dto.getKeyword())) {
-
-                if (codingRuleEnum.getName().contains(dto.getKeyword())) {
-                    tempIndex = getTempIndex(startIndex, endIndex, tempIndex, codingRulePageVoList, keyList, codingRuleEnum);
-                }
-
-            } else {
-                tempIndex = getTempIndex(startIndex, endIndex, tempIndex, codingRulePageVoList, keyList, codingRuleEnum);
-            }
-
-        }
-
-        Page<CodingRulePageVo> page = dto.getPage();
-        page.setRecords(codingRulePageVoList);
-        page.setTotal(tempIndex);
-
-        if (keyList.size() == 0) {
-            return page;
-        }
-
-        Map<String, CodingRule> kEntity = mapKEntity(CodingRule::getCodingKey, q -> q.in(CodingRule::getCodingKey, keyList));
-
-        for (CodingRulePageVo codingRulePageVo : codingRulePageVoList) {
-            CodingRule codingRule = kEntity.get(codingRulePageVo.getCodingKey());
-            if (codingRule == null) {
-                continue;
-            }
-            codingRulePageVo.setId(codingRule.getId());
-            codingRulePageVo.setCodingDemo(codingRule.getCodingDemo());
-            codingRulePageVo.setRuleVoList(JSON.parseArray(codingRule.getRuleJson(), RuleVo.class));
-            codingRulePageVo.setUpdateTime(codingRule.getUpdateTime());
-            codingRulePageVo.setUpdateUser(codingRule.getUpdateUser());
-        }
-
-        UserUtil.assignmentNickName(codingRulePageVoList, CodingRulePageVo::getUpdateUser, CodingRulePageVo::setUpdateUserName);
-
-        return page;
-    }
-
-    @Override
-    public void edit(CodingRuleDto codingRuleDto) {
-        codingRuleDto.setRuleJson(JSON.toJSONString(codingRuleDto.getRuleVoList()));
-        this.saveOrUpdate(codingRuleDto);
-    }
-
-    /**
-     * 生成编码
-     *
-     * @param key        编码key
-     * @param customerId 客户id
-     * @return 生成的编码
-     */
-    @Override
-    public String createCode(String key, Long customerId) {
-
-        StringBuilder codeBuilder = new StringBuilder();
-
-        CustomerCodeAndCountryId customerCodeAndCountryId = null;
-        Integer autoNum = null;
-        String countryCode = null;
-        String userCode = null;
-        Date data = null;
-
-        List<RuleVo> ruleVoList = getRuleVoList(key);
-        for (RuleVo ruleVo : ruleVoList) {
-            Integer ruleType = ruleVo.getRuleType();
-            RuleTypeEnum ruleTypeEnum = RuleTypeEnum.getRuleTypeEnum(ruleType);
-
-            switch (ruleTypeEnum) {
-                case CUSTOMIZE:
-                    codeBuilder.append(ruleVo.getValue());
-                    break;
-                case COUNTRY_CODE:
-                    if (customerCodeAndCountryId == null) {
-//                        customerCodeAndCountryId = codingRuleCustomerService.getCustomerCodeAndCountryId(customerId);
-                    }
-                    if (countryCode == null) {
-                        countryCode = getCountryCode(customerCodeAndCountryId.getCountryId());
-                    }
-                    codeBuilder.append(countryCode);
-                    break;
-                case SALESMAN_CODE:
-                    if (userCode == null) {
-                        userCode = getUserCode();
-                    }
-                    codeBuilder.append(userCode);
-                    break;
-                case CUSTOMER_CODE:
-                    if (customerCodeAndCountryId == null) {
-//                        customerCodeAndCountryId = codingRuleCustomerService.getCustomerCodeAndCountryId(customerId);
-                    }
-                    codeBuilder.append(customerCodeAndCountryId.getCustomerCode());
-                    break;
-                case AUTOINCREMENT:
-                    if (autoNum == null) {
-                        autoNum = getAutoCode(key);
-                    }
-                    String value = ruleVo.getValue();
-                    codeBuilder.append(autoGenericCode(value, autoNum));
-                    break;
-                case DATE_FORMAT:
-                    String dataFormat = ruleVo.getValue();
-                    try {
-                        if (data == null) {
-                            data = new Date();
-                        }
-                        String format = DateUtil.format(data, dataFormat);
-                        codeBuilder.append(format);
-                    } catch (Exception e) {
-                        throw new ServiceException("生成编码配置日期生成格式错误");
-                    }
-                    break;
-            }
-        }
-
-        return codeBuilder.toString();
-    }
-
-    private synchronized Integer getAutoCode(String key) {
-        CodingRuleAuto codingRuleAuto = codingRuleAutoService.getOne(q -> q.eq(CodingRuleAuto::getKey, key));
-        if (codingRuleAuto == null) {
-            codingRuleAuto = new CodingRuleAuto();
-            codingRuleAuto.setKey(key);
-            codingRuleAuto.setNum(1);
-            codingRuleAutoService.save(codingRuleAuto);
-            return 1;
-        }
-
-        codingRuleAuto.setNum(codingRuleAuto.getNum() + 1);
-        codingRuleAutoService.updateById(codingRuleAuto);
-        return codingRuleAuto.getNum();
-    }
-
-
-    private int getTempIndex(int startIndex, int endIndex, int tempIndex,
-                             List<CodingRulePageVo> codingRulePageVoList,
-                             List<String> keyList,
-                             CodingRuleEnum codingRuleEnum) {
-
-        if (tempIndex >= startIndex && tempIndex < endIndex) {
-            CodingRulePageVo codingRulePageVo = new CodingRulePageVo();
-            codingRulePageVo.setCodingKey(codingRuleEnum.getKey());
-            codingRulePageVo.setCodingName(codingRuleEnum.getName());
-            codingRulePageVo.setRuleVoList(codingRuleEnum.getDefaultRuleVoList());
-            codingRulePageVoList.add(codingRulePageVo);
-            keyList.add(codingRuleEnum.getKey());
-        }
-
-        return ++tempIndex;
-    }
-
-    private List<RuleVo> getRuleVoList(String key) {
-        CodingRule codingRule = getOne(q -> q.eq(CodingRule::getCodingKey, key));
-
-        if (codingRule != null) {
-            List<RuleVo> ruleVoList = JSON.parseArray(codingRule.getRuleJson(), RuleVo.class);
-            if (ruleVoList.size() == 0) {
-                throw new ServiceException("编码生成规则为空");
-            }
-            return ruleVoList;
-        }
-        return CodingRuleEnum.getDefaultRuleVoList(key);
-    }
-
-    private String getCountryCode(Long countryId) {
-        DynamicDataSourceContextHolder.push(SourceConstant.BASE);
-        CustomizeArea customizeArea = customizeAreaService.getOne(q -> q
-                .eq(BaseIdPo::getId, countryId)
-                .eq(CustomizeArea::getLevelCode, 1));
-        DynamicDataSourceContextHolder.poll();
-
-        if (customizeArea == null) {
-            throw new ServiceException("国家为空");
-        }
-
-        return customizeArea.getCode();
-    }
-
-
-    /**
-     * 获取业务员编码
-     */
-    private String getUserCode() {
-        DynamicDataSourceContextHolder.push(SourceConstant.BASE);
-        SysUser sysUser = sysUserService.getById(SecurityUtils.getUserId());
-        DynamicDataSourceContextHolder.poll();
-        String userCode = sysUser.getUserCode();
-        if (StrUtil.isBlank(userCode)) {
-            throw new ServiceException("业务员代码未配置,生成编码失败");
-        }
-        return userCode;
-    }
-
-    /**
-     * 不够位数的在前面补0,保留num的长度位数字
-     */
-    private static String autoGenericCode(Object length, Integer codeNum) {
-        Integer integer = Convert.toInt(length);
-        if (integer == null) {
-            throw new ServiceException("自定义编码长度不为数字");
-        }
-
-        return String.format("%0" + integer + "d", codeNum);
-    }
-
-}
+//    private CustomizeAreaService customizeAreaService;
+//
+//    @Autowired
+//    private ISysUserService sysUserService;
+//
+//    @Autowired
+//    private CodingRuleAutoService codingRuleAutoService;
+//
+//    @Override
+//    public Page<CodingRulePageVo> getPage(CodingRuleSelectDto dto) {
+//
+//        Integer pageNum = dto.getPageNum();
+//        Integer pageSize = dto.getPageSize();
+//
+//        int startIndex = (pageNum - 1) * pageSize;
+//        int endIndex = pageNum * pageSize;
+//
+//        int tempIndex = 0;
+//
+//        List<CodingRulePageVo> codingRulePageVoList = new ArrayList<>();
+//        List<String> keyList = new ArrayList<>();
+//
+//        for (CodingRuleEnum codingRuleEnum : CodingRuleEnum.values()) {
+//            if (StrUtil.isNotBlank(dto.getKeyword())) {
+//
+//                if (codingRuleEnum.getName().contains(dto.getKeyword())) {
+//                    tempIndex = getTempIndex(startIndex, endIndex, tempIndex, codingRulePageVoList, keyList, codingRuleEnum);
+//                }
+//
+//            } else {
+//                tempIndex = getTempIndex(startIndex, endIndex, tempIndex, codingRulePageVoList, keyList, codingRuleEnum);
+//            }
+//
+//        }
+//
+//        Page<CodingRulePageVo> page = dto.getPage();
+//        page.setRecords(codingRulePageVoList);
+//        page.setTotal(tempIndex);
+//
+//        if (keyList.size() == 0) {
+//            return page;
+//        }
+//
+//        Map<String, CodingRule> kEntity = mapKEntity(CodingRule::getCodingKey, q -> q.in(CodingRule::getCodingKey, keyList));
+//
+//        for (CodingRulePageVo codingRulePageVo : codingRulePageVoList) {
+//            CodingRule codingRule = kEntity.get(codingRulePageVo.getCodingKey());
+//            if (codingRule == null) {
+//                continue;
+//            }
+//            codingRulePageVo.setId(codingRule.getId());
+//            codingRulePageVo.setCodingDemo(codingRule.getCodingDemo());
+//            codingRulePageVo.setRuleVoList(JSON.parseArray(codingRule.getRuleJson(), RuleVo.class));
+//            codingRulePageVo.setUpdateTime(codingRule.getUpdateTime());
+//            codingRulePageVo.setUpdateUser(codingRule.getUpdateUser());
+//        }
+//
+//        UserUtil.assignmentNickName(codingRulePageVoList, CodingRulePageVo::getUpdateUser, CodingRulePageVo::setUpdateUserName);
+//
+//        return page;
+//    }
+//
+//    @Override
+//    public void edit(CodingRuleDto codingRuleDto) {
+//        codingRuleDto.setRuleJson(JSON.toJSONString(codingRuleDto.getRuleVoList()));
+//        this.saveOrUpdate(codingRuleDto);
+//    }
+//
+//    /**
+//     * 生成编码
+//     *
+//     * @param key        编码key
+//     * @param customerId 客户id
+//     * @return 生成的编码
+//     */
+//    @Override
+//    public String createCode(String key, Long customerId) {
+//
+//        StringBuilder codeBuilder = new StringBuilder();
+//
+//        CustomerCodeAndCountryId customerCodeAndCountryId = null;
+//        Integer autoNum = null;
+//        String countryCode = null;
+//        String userCode = null;
+//        Date data = null;
+//
+//        List<RuleVo> ruleVoList = getRuleVoList(key);
+//        for (RuleVo ruleVo : ruleVoList) {
+//            Integer ruleType = ruleVo.getRuleType();
+//            RuleTypeEnum ruleTypeEnum = RuleTypeEnum.getRuleTypeEnum(ruleType);
+//
+//            switch (ruleTypeEnum) {
+//                case CUSTOMIZE:
+//                    codeBuilder.append(ruleVo.getValue());
+//                    break;
+//                case COUNTRY_CODE:
+//                    if (customerCodeAndCountryId == null) {
+////                        customerCodeAndCountryId = codingRuleCustomerService.getCustomerCodeAndCountryId(customerId);
+//                    }
+//                    if (countryCode == null) {
+//                        countryCode = getCountryCode(customerCodeAndCountryId.getCountryId());
+//                    }
+//                    codeBuilder.append(countryCode);
+//                    break;
+//                case SALESMAN_CODE:
+//                    if (userCode == null) {
+//                        userCode = getUserCode();
+//                    }
+//                    codeBuilder.append(userCode);
+//                    break;
+//                case CUSTOMER_CODE:
+//                    if (customerCodeAndCountryId == null) {
+////                        customerCodeAndCountryId = codingRuleCustomerService.getCustomerCodeAndCountryId(customerId);
+//                    }
+//                    codeBuilder.append(customerCodeAndCountryId.getCustomerCode());
+//                    break;
+//                case AUTOINCREMENT:
+//                    if (autoNum == null) {
+//                        autoNum = getAutoCode(key);
+//                    }
+//                    String value = ruleVo.getValue();
+//                    codeBuilder.append(autoGenericCode(value, autoNum));
+//                    break;
+//                case DATE_FORMAT:
+//                    String dataFormat = ruleVo.getValue();
+//                    try {
+//                        if (data == null) {
+//                            data = new Date();
+//                        }
+//                        String format = DateUtil.format(data, dataFormat);
+//                        codeBuilder.append(format);
+//                    } catch (Exception e) {
+//                        throw new ServiceException("生成编码配置日期生成格式错误");
+//                    }
+//                    break;
+//            }
+//        }
+//
+//        return codeBuilder.toString();
+//    }
+//
+//    private synchronized Integer getAutoCode(String key) {
+//        CodingRuleAuto codingRuleAuto = codingRuleAutoService.getOne(q -> q.eq(CodingRuleAuto::getKey, key));
+//        if (codingRuleAuto == null) {
+//            codingRuleAuto = new CodingRuleAuto();
+//            codingRuleAuto.setKey(key);
+//            codingRuleAuto.setNum(1);
+//            codingRuleAutoService.save(codingRuleAuto);
+//            return 1;
+//        }
+//
+//        codingRuleAuto.setNum(codingRuleAuto.getNum() + 1);
+//        codingRuleAutoService.updateById(codingRuleAuto);
+//        return codingRuleAuto.getNum();
+//    }
+//
+//
+//    private int getTempIndex(int startIndex, int endIndex, int tempIndex,
+//                             List<CodingRulePageVo> codingRulePageVoList,
+//                             List<String> keyList,
+//                             CodingRuleEnum codingRuleEnum) {
+//
+//        if (tempIndex >= startIndex && tempIndex < endIndex) {
+//            CodingRulePageVo codingRulePageVo = new CodingRulePageVo();
+//            codingRulePageVo.setCodingKey(codingRuleEnum.getKey());
+//            codingRulePageVo.setCodingName(codingRuleEnum.getName());
+//            codingRulePageVo.setRuleVoList(codingRuleEnum.getDefaultRuleVoList());
+//            codingRulePageVoList.add(codingRulePageVo);
+//            keyList.add(codingRuleEnum.getKey());
+//        }
+//
+//        return ++tempIndex;
+//    }
+//
+//    private List<RuleVo> getRuleVoList(String key) {
+//        CodingRule codingRule = getOne(q -> q.eq(CodingRule::getCodingKey, key));
+//
+//        if (codingRule != null) {
+//            List<RuleVo> ruleVoList = JSON.parseArray(codingRule.getRuleJson(), RuleVo.class);
+//            if (ruleVoList.size() == 0) {
+//                throw new ServiceException("编码生成规则为空");
+//            }
+//            return ruleVoList;
+//        }
+//        return CodingRuleEnum.getDefaultRuleVoList(key);
+//    }
+//
+//    private String getCountryCode(Long countryId) {
+//        DynamicDataSourceContextHolder.push(SourceConstant.BASE);
+//        CustomizeArea customizeArea = customizeAreaService.getOne(q -> q
+//                .eq(BaseIdPo::getId, countryId)
+//                .eq(CustomizeArea::getLevelCode, 1));
+//        DynamicDataSourceContextHolder.poll();
+//
+//        if (customizeArea == null) {
+//            throw new ServiceException("国家为空");
+//        }
+//
+//        return customizeArea.getCode();
+//    }
+//
+//
+//    /**
+//     * 获取业务员编码
+//     */
+//    private String getUserCode() {
+//        DynamicDataSourceContextHolder.push(SourceConstant.BASE);
+//        SysUser sysUser = sysUserService.getById(SecurityUtils.getUserId());
+//        DynamicDataSourceContextHolder.poll();
+//        String userCode = sysUser.getUserCode();
+//        if (StrUtil.isBlank(userCode)) {
+//            throw new ServiceException("业务员代码未配置,生成编码失败");
+//        }
+//        return userCode;
+//    }
+//
+//    /**
+//     * 不够位数的在前面补0,保留num的长度位数字
+//     */
+//    private static String autoGenericCode(Object length, Integer codeNum) {
+//        Integer integer = Convert.toInt(length);
+//        if (integer == null) {
+//            throw new ServiceException("自定义编码长度不为数字");
+//        }
+//
+//        return String.format("%0" + integer + "d", codeNum);
+//    }
+//
+//}

+ 46 - 46
hx-common/src/main/java/com/fjhx/common/service/corporation/CorporationService.java

@@ -1,46 +1,46 @@
-package com.fjhx.common.service.corporation;
-
-import com.fjhx.common.entity.corporation.po.Corporation;
-import com.ruoyi.common.core.service.BaseService;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.common.entity.corporation.vo.CorporationVo;
-import com.fjhx.common.entity.corporation.dto.CorporationSelectDto;
-import com.fjhx.common.entity.corporation.dto.CorporationDto;
-
-
-/**
- * <p>
- * 多公司配置 服务类
- * </p>
- *
- * @author 
- * @since 2023-04-10
- */
-public interface CorporationService extends BaseService<Corporation> {
-
-    /**
-     * 多公司配置分页
-     */
-    Page<CorporationVo> getPage(CorporationSelectDto dto);
-
-    /**
-     * 多公司配置明细
-     */
-    CorporationVo detail(Long id);
-
-    /**
-     * 多公司配置新增
-     */
-    void add(CorporationDto corporationDto);
-
-    /**
-     * 多公司配置编辑
-     */
-    void edit(CorporationDto corporationDto);
-
-    /**
-     * 多公司配置删除
-     */
-    void delete(Long id);
-
-}
+//package com.fjhx.common.service.corporation;
+//
+//import com.fjhx.common.entity.corporation.po.Corporation;
+//import com.ruoyi.common.core.service.BaseService;
+//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+//import com.fjhx.common.entity.corporation.vo.CorporationVo;
+//import com.fjhx.common.entity.corporation.dto.CorporationSelectDto;
+//import com.fjhx.common.entity.corporation.dto.CorporationDto;
+//
+//
+///**
+// * <p>
+// * 多公司配置 服务类
+// * </p>
+// *
+// * @author
+// * @since 2023-04-10
+// */
+//public interface CorporationService extends BaseService<Corporation> {
+//
+//    /**
+//     * 多公司配置分页
+//     */
+//    Page<CorporationVo> getPage(CorporationSelectDto dto);
+//
+//    /**
+//     * 多公司配置明细
+//     */
+//    CorporationVo detail(Long id);
+//
+//    /**
+//     * 多公司配置新增
+//     */
+//    void add(CorporationDto corporationDto);
+//
+//    /**
+//     * 多公司配置编辑
+//     */
+//    void edit(CorporationDto corporationDto);
+//
+//    /**
+//     * 多公司配置删除
+//     */
+//    void delete(Long id);
+//
+//}

+ 100 - 100
hx-common/src/main/java/com/fjhx/common/service/corporation/impl/CorporationServiceImpl.java

@@ -1,100 +1,100 @@
-package com.fjhx.common.service.corporation.impl;
-
-import cn.hutool.core.bean.BeanUtil;
-import cn.hutool.core.util.ObjectUtil;
-import com.baomidou.dynamic.datasource.annotation.DS;
-import com.baomidou.dynamic.datasource.annotation.DSTransactional;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.fjhx.area.utils.CustomizeAreaUtil;
-import com.fjhx.common.constant.SourceConstant;
-import com.fjhx.common.entity.corporation.dto.CorporationDto;
-import com.fjhx.common.entity.corporation.dto.CorporationSelectDto;
-import com.fjhx.common.entity.corporation.po.Corporation;
-import com.fjhx.common.entity.corporation.vo.CorporationVo;
-import com.fjhx.common.mapper.corporation.CorporationMapper;
-import com.fjhx.common.service.corporation.CorporationService;
-import com.fjhx.file.utils.ObsFileUtil;
-import com.ruoyi.common.utils.wrapper.IWrapper;
-import org.springframework.stereotype.Service;
-
-import java.util.List;
-
-
-/**
- * <p>
- * 多公司配置 服务实现类
- * </p>
- *
- * @author 
- * @since 2023-04-10
- */
-@DS(SourceConstant.COMMON)
-@Service
-public class CorporationServiceImpl extends ServiceImpl<CorporationMapper, Corporation> implements CorporationService {
-
-    @Override
-    public Page<CorporationVo> getPage(CorporationSelectDto dto) {
-        IWrapper<Corporation> wrapper = getWrapper();
-        wrapper.orderByDesc("c", Corporation::getId);
-        if(ObjectUtil.isNotEmpty(dto.getKeyword())){
-            wrapper.and(q->q.like(Corporation::getName,dto.getKeyword())
-                    .or().like(Corporation::getLegalPersonName,dto.getKeyword())
-                    .or().like(Corporation::getNameEn,dto.getKeyword()));
-        }
-        Page<CorporationVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
-        List<CorporationVo> records = page.getRecords();
-        // 赋值国省市
-        CustomizeAreaUtil.setAreaName(records);
-        return page;
-    }
-
-    @Override
-    public CorporationVo detail(Long id) {
-        Corporation Corporation = this.getById(id);
-        CorporationVo result = BeanUtil.toBean(Corporation, CorporationVo.class);
-        // 赋值国省市
-        CustomizeAreaUtil.setAreaName(result);
-        return result;
-    }
-
-    @DSTransactional
-    @Override
-    public void add(CorporationDto corporationDto) {
-
-        CustomizeAreaUtil.setAreaId(corporationDto);
-
-        this.save(corporationDto);
-        // 企业logo
-        ObsFileUtil.saveFile(corporationDto.getEnterpriseLogoList(), corporationDto.getId(), 1);
-        // 法人签名
-        ObsFileUtil.saveFile(corporationDto.getLarSignList(), corporationDto.getId(), 2);
-        // 公章
-        ObsFileUtil.saveFile(corporationDto.getOfficialSealList(), corporationDto.getId(), 3);
-        // 合同章
-        ObsFileUtil.saveFile(corporationDto.getContractSealList(), corporationDto.getId(), 4);
-    }
-
-    @DSTransactional
-    @Override
-    public void edit(CorporationDto corporationDto) {
-
-        CustomizeAreaUtil.setAreaId(corporationDto);
-
-        this.updateById(corporationDto);
-        // 企业logo
-        ObsFileUtil.editFile(corporationDto.getEnterpriseLogoList(), corporationDto.getId(), 1);
-        // 法人签名
-        ObsFileUtil.editFile(corporationDto.getLarSignList(), corporationDto.getId(), 2);
-        // 公章
-        ObsFileUtil.editFile(corporationDto.getOfficialSealList(), corporationDto.getId(), 3);
-        // 合同章
-        ObsFileUtil.editFile(corporationDto.getContractSealList(), corporationDto.getId(), 4);
-    }
-
-    @Override
-    public void delete(Long id) {
-        this.removeById(id);
-    }
-
-}
+//package com.fjhx.common.service.corporation.impl;
+//
+//import cn.hutool.core.bean.BeanUtil;
+//import cn.hutool.core.util.ObjectUtil;
+//import com.baomidou.dynamic.datasource.annotation.DS;
+//import com.baomidou.dynamic.datasource.annotation.DSTransactional;
+//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+//import com.fjhx.area.utils.CustomizeAreaUtil;
+//import com.fjhx.common.constant.SourceConstant;
+//import com.fjhx.common.entity.corporation.dto.CorporationDto;
+//import com.fjhx.common.entity.corporation.dto.CorporationSelectDto;
+//import com.fjhx.common.entity.corporation.po.Corporation;
+//import com.fjhx.common.entity.corporation.vo.CorporationVo;
+//import com.fjhx.common.mapper.corporation.CorporationMapper;
+//import com.fjhx.common.service.corporation.CorporationService;
+//import com.fjhx.file.utils.ObsFileUtil;
+//import com.ruoyi.common.utils.wrapper.IWrapper;
+//import org.springframework.stereotype.Service;
+//
+//import java.util.List;
+//
+//
+///**
+// * <p>
+// * 多公司配置 服务实现类
+// * </p>
+// *
+// * @author
+// * @since 2023-04-10
+// */
+//@DS(SourceConstant.COMMON)
+//@Service
+//public class CorporationServiceImpl extends ServiceImpl<CorporationMapper, Corporation> implements CorporationService {
+//
+//    @Override
+//    public Page<CorporationVo> getPage(CorporationSelectDto dto) {
+//        IWrapper<Corporation> wrapper = getWrapper();
+//        wrapper.orderByDesc("c", Corporation::getId);
+//        if(ObjectUtil.isNotEmpty(dto.getKeyword())){
+//            wrapper.and(q->q.like(Corporation::getName,dto.getKeyword())
+//                    .or().like(Corporation::getLegalPersonName,dto.getKeyword())
+//                    .or().like(Corporation::getNameEn,dto.getKeyword()));
+//        }
+//        Page<CorporationVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
+//        List<CorporationVo> records = page.getRecords();
+//        // 赋值国省市
+//        CustomizeAreaUtil.setAreaName(records);
+//        return page;
+//    }
+//
+//    @Override
+//    public CorporationVo detail(Long id) {
+//        Corporation Corporation = this.getById(id);
+//        CorporationVo result = BeanUtil.toBean(Corporation, CorporationVo.class);
+//        // 赋值国省市
+//        CustomizeAreaUtil.setAreaName(result);
+//        return result;
+//    }
+//
+//    @DSTransactional
+//    @Override
+//    public void add(CorporationDto corporationDto) {
+//
+//        CustomizeAreaUtil.setAreaId(corporationDto);
+//
+//        this.save(corporationDto);
+//        // 企业logo
+//        ObsFileUtil.saveFile(corporationDto.getEnterpriseLogoList(), corporationDto.getId(), 1);
+//        // 法人签名
+//        ObsFileUtil.saveFile(corporationDto.getLarSignList(), corporationDto.getId(), 2);
+//        // 公章
+//        ObsFileUtil.saveFile(corporationDto.getOfficialSealList(), corporationDto.getId(), 3);
+//        // 合同章
+//        ObsFileUtil.saveFile(corporationDto.getContractSealList(), corporationDto.getId(), 4);
+//    }
+//
+//    @DSTransactional
+//    @Override
+//    public void edit(CorporationDto corporationDto) {
+//
+//        CustomizeAreaUtil.setAreaId(corporationDto);
+//
+//        this.updateById(corporationDto);
+//        // 企业logo
+//        ObsFileUtil.editFile(corporationDto.getEnterpriseLogoList(), corporationDto.getId(), 1);
+//        // 法人签名
+//        ObsFileUtil.editFile(corporationDto.getLarSignList(), corporationDto.getId(), 2);
+//        // 公章
+//        ObsFileUtil.editFile(corporationDto.getOfficialSealList(), corporationDto.getId(), 3);
+//        // 合同章
+//        ObsFileUtil.editFile(corporationDto.getContractSealList(), corporationDto.getId(), 4);
+//    }
+//
+//    @Override
+//    public void delete(Long id) {
+//        this.removeById(id);
+//    }
+//
+//}

+ 28 - 28
hx-common/src/main/java/com/fjhx/common/service/currency/CurrencyRateService.java

@@ -1,28 +1,28 @@
-package com.fjhx.common.service.currency;
-
-import com.fjhx.common.entity.currency.po.CurrencyRate;
-import com.ruoyi.common.core.service.BaseService;
-
-import java.util.List;
-
-/**
- * <p>
- * 币种默认汇率 服务类
- * </p>
- *
- * @author
- * @since 2023-04-24
- */
-public interface CurrencyRateService extends BaseService<CurrencyRate> {
-
-    /**
-     * 币种默认汇率列表
-     */
-    List<CurrencyRate> getList();
-
-    /**
-     * 币种默认汇率编辑
-     */
-    void edit(List<CurrencyRate> currencyRateList);
-
-}
+//package com.fjhx.common.service.currency;
+//
+//import com.fjhx.common.entity.currency.po.CurrencyRate;
+//import com.ruoyi.common.core.service.BaseService;
+//
+//import java.util.List;
+//
+///**
+// * <p>
+// * 币种默认汇率 服务类
+// * </p>
+// *
+// * @author
+// * @since 2023-04-24
+// */
+//public interface CurrencyRateService extends BaseService<CurrencyRate> {
+//
+//    /**
+//     * 币种默认汇率列表
+//     */
+//    List<CurrencyRate> getList();
+//
+//    /**
+//     * 币种默认汇率编辑
+//     */
+//    void edit(List<CurrencyRate> currencyRateList);
+//
+//}

+ 32 - 32
hx-common/src/main/java/com/fjhx/common/service/currency/impl/CurrencyRateServiceImpl.java

@@ -1,32 +1,32 @@
-package com.fjhx.common.service.currency.impl;
-
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.fjhx.common.entity.currency.po.CurrencyRate;
-import com.fjhx.common.mapper.currency.CurrencyRateMapper;
-import com.fjhx.common.service.currency.CurrencyRateService;
-import org.springframework.stereotype.Service;
-
-import java.util.List;
-
-/**
- * <p>
- * 币种默认汇率 服务实现类
- * </p>
- *
- * @author
- * @since 2023-04-24
- */
-@Service
-public class CurrencyRateServiceImpl extends ServiceImpl<CurrencyRateMapper, CurrencyRate> implements CurrencyRateService {
-
-    @Override
-    public List<CurrencyRate> getList() {
-        return list();
-    }
-
-    @Override
-    public void edit(List<CurrencyRate> currencyRateList) {
-        saveOrUpdateBatch(currencyRateList);
-    }
-
-}
+//package com.fjhx.common.service.currency.impl;
+//
+//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+//import com.fjhx.common.entity.currency.po.CurrencyRate;
+//import com.fjhx.common.mapper.currency.CurrencyRateMapper;
+//import com.fjhx.common.service.currency.CurrencyRateService;
+//import org.springframework.stereotype.Service;
+//
+//import java.util.List;
+//
+///**
+// * <p>
+// * 币种默认汇率 服务实现类
+// * </p>
+// *
+// * @author
+// * @since 2023-04-24
+// */
+//@Service
+//public class CurrencyRateServiceImpl extends ServiceImpl<CurrencyRateMapper, CurrencyRate> implements CurrencyRateService {
+//
+//    @Override
+//    public List<CurrencyRate> getList() {
+//        return list();
+//    }
+//
+//    @Override
+//    public void edit(List<CurrencyRate> currencyRateList) {
+//        saveOrUpdateBatch(currencyRateList);
+//    }
+//
+//}

+ 40 - 40
hx-common/src/main/java/com/fjhx/common/service/documentary/DocumentaryRecordService.java

@@ -1,40 +1,40 @@
-package com.fjhx.common.service.documentary;
-
-import com.fjhx.common.entity.documentary.dto.DocumentaryRecordDto;
-import com.fjhx.common.entity.documentary.dto.DocumentaryRecordSelectDto;
-import com.fjhx.common.entity.documentary.po.DocumentaryRecord;
-import com.fjhx.common.entity.documentary.vo.DocumentaryRecordInfoVo;
-import com.ruoyi.common.core.service.BaseService;
-
-
-/**
- * <p>
- * 跟单记录 服务类
- * </p>
- *
- * @author
- * @since 2023-04-20
- */
-public interface DocumentaryRecordService extends BaseService<DocumentaryRecord> {
-
-    /**
-     * 跟单记录信息
-     */
-    DocumentaryRecordInfoVo getInfo(DocumentaryRecordSelectDto dto);
-
-    /**
-     * 添加跟单记录
-     */
-    void add(DocumentaryRecordDto dto);
-
-    /**
-     * 编辑跟单记录
-     */
-    void edit(DocumentaryRecordDto dto);
-
-    /**
-     * 删除跟单记录
-     */
-    void delete(Long id);
-
-}
+//package com.fjhx.common.service.documentary;
+//
+//import com.fjhx.common.entity.documentary.dto.DocumentaryRecordDto;
+//import com.fjhx.common.entity.documentary.dto.DocumentaryRecordSelectDto;
+//import com.fjhx.common.entity.documentary.po.DocumentaryRecord;
+//import com.fjhx.common.entity.documentary.vo.DocumentaryRecordInfoVo;
+//import com.ruoyi.common.core.service.BaseService;
+//
+//
+///**
+// * <p>
+// * 跟单记录 服务类
+// * </p>
+// *
+// * @author
+// * @since 2023-04-20
+// */
+//public interface DocumentaryRecordService extends BaseService<DocumentaryRecord> {
+//
+//    /**
+//     * 跟单记录信息
+//     */
+//    DocumentaryRecordInfoVo getInfo(DocumentaryRecordSelectDto dto);
+//
+//    /**
+//     * 添加跟单记录
+//     */
+//    void add(DocumentaryRecordDto dto);
+//
+//    /**
+//     * 编辑跟单记录
+//     */
+//    void edit(DocumentaryRecordDto dto);
+//
+//    /**
+//     * 删除跟单记录
+//     */
+//    void delete(Long id);
+//
+//}

+ 46 - 46
hx-common/src/main/java/com/fjhx/common/service/documentary/DocumentaryService.java

@@ -1,46 +1,46 @@
-package com.fjhx.common.service.documentary;
-
-import com.fjhx.common.entity.documentary.po.Documentary;
-import com.ruoyi.common.core.service.BaseService;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.common.entity.documentary.vo.DocumentaryVo;
-import com.fjhx.common.entity.documentary.dto.DocumentarySelectDto;
-import com.fjhx.common.entity.documentary.dto.DocumentaryDto;
-
-
-/**
- * <p>
- * 跟单配置 服务类
- * </p>
- *
- * @author 
- * @since 2023-04-19
- */
-public interface DocumentaryService extends BaseService<Documentary> {
-
-    /**
-     * 跟单配置分页
-     */
-    Page<DocumentaryVo> getPage(DocumentarySelectDto dto);
-
-    /**
-     * 跟单配置明细
-     */
-    DocumentaryVo detail(Long id);
-
-    /**
-     * 跟单配置新增
-     */
-    void add(DocumentaryDto documentaryDto);
-
-    /**
-     * 跟单配置编辑
-     */
-    void edit(DocumentaryDto documentaryDto);
-
-    /**
-     * 跟单配置删除
-     */
-    void delete(Long id);
-
-}
+//package com.fjhx.common.service.documentary;
+//
+//import com.fjhx.common.entity.documentary.po.Documentary;
+//import com.ruoyi.common.core.service.BaseService;
+//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+//import com.fjhx.common.entity.documentary.vo.DocumentaryVo;
+//import com.fjhx.common.entity.documentary.dto.DocumentarySelectDto;
+//import com.fjhx.common.entity.documentary.dto.DocumentaryDto;
+//
+//
+///**
+// * <p>
+// * 跟单配置 服务类
+// * </p>
+// *
+// * @author
+// * @since 2023-04-19
+// */
+//public interface DocumentaryService extends BaseService<Documentary> {
+//
+//    /**
+//     * 跟单配置分页
+//     */
+//    Page<DocumentaryVo> getPage(DocumentarySelectDto dto);
+//
+//    /**
+//     * 跟单配置明细
+//     */
+//    DocumentaryVo detail(Long id);
+//
+//    /**
+//     * 跟单配置新增
+//     */
+//    void add(DocumentaryDto documentaryDto);
+//
+//    /**
+//     * 跟单配置编辑
+//     */
+//    void edit(DocumentaryDto documentaryDto);
+//
+//    /**
+//     * 跟单配置删除
+//     */
+//    void delete(Long id);
+//
+//}

+ 22 - 22
hx-common/src/main/java/com/fjhx/common/service/documentary/GetDocumentaryBusinessTemplate.java

@@ -1,22 +1,22 @@
-package com.fjhx.common.service.documentary;
-
-import com.alibaba.fastjson2.JSONObject;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.common.entity.documentary.bo.DocumentaryData;
-import com.ruoyi.common.core.domain.BaseSelectDto;
-
-import java.util.List;
-
-public interface GetDocumentaryBusinessTemplate {
-
-    /**
-     * 获取跟单分页数据
-     *
-     * @param selectData        筛选条件
-     * @param dto               分页参数
-     * @param excludeBusinessId 排除业务id
-     * @return 分页数据
-     */
-    Page<? extends DocumentaryData> getDocumentaryPage(JSONObject selectData, BaseSelectDto dto, List<Long> excludeBusinessId);
-
-}
+//package com.fjhx.common.service.documentary;
+//
+//import com.alibaba.fastjson2.JSONObject;
+//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+//import com.fjhx.common.entity.documentary.bo.DocumentaryData;
+//import com.ruoyi.common.core.domain.BaseSelectDto;
+//
+//import java.util.List;
+//
+//public interface GetDocumentaryBusinessTemplate {
+//
+//    /**
+//     * 获取跟单分页数据
+//     *
+//     * @param selectData        筛选条件
+//     * @param dto               分页参数
+//     * @param excludeBusinessId 排除业务id
+//     * @return 分页数据
+//     */
+//    Page<? extends DocumentaryData> getDocumentaryPage(JSONObject selectData, BaseSelectDto dto, List<Long> excludeBusinessId);
+//
+//}

+ 233 - 233
hx-common/src/main/java/com/fjhx/common/service/documentary/impl/DocumentaryRecordServiceImpl.java

@@ -1,233 +1,233 @@
-package com.fjhx.common.service.documentary.impl;
-
-import cn.hutool.core.bean.BeanUtil;
-import com.baomidou.dynamic.datasource.annotation.DSTransactional;
-import com.baomidou.dynamic.datasource.toolkit.DynamicDataSourceContextHolder;
-import com.baomidou.mybatisplus.core.toolkit.Wrappers;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.fjhx.common.constant.SourceConstant;
-import com.fjhx.common.entity.documentary.bo.DocumentaryData;
-import com.fjhx.common.entity.documentary.dto.DocumentaryRecordDto;
-import com.fjhx.common.entity.documentary.dto.DocumentaryRecordSelectDto;
-import com.fjhx.common.entity.documentary.eums.DocumentaryTypeEnum;
-import com.fjhx.common.entity.documentary.po.Documentary;
-import com.fjhx.common.entity.documentary.po.DocumentaryRecord;
-import com.fjhx.common.entity.documentary.vo.DocumentaryRecordInfoVo;
-import com.fjhx.common.entity.documentary.vo.DocumentaryRecordVo;
-import com.fjhx.common.entity.documentary.vo.DocumentaryVo;
-import com.fjhx.common.mapper.documentary.DocumentaryRecordMapper;
-import com.fjhx.common.service.documentary.DocumentaryRecordService;
-import com.fjhx.common.service.documentary.DocumentaryService;
-import com.fjhx.common.service.documentary.GetDocumentaryBusinessTemplate;
-import com.fjhx.file.entity.FileInfoVo;
-import com.fjhx.file.utils.ObsFileUtil;
-import com.ruoyi.common.core.domain.BaseIdPo;
-import com.ruoyi.common.exception.ServiceException;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.security.core.context.SecurityContext;
-import org.springframework.security.core.context.SecurityContextHolder;
-import org.springframework.stereotype.Service;
-import org.springframework.web.context.request.RequestContextHolder;
-import org.springframework.web.context.request.ServletRequestAttributes;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.concurrent.ArrayBlockingQueue;
-import java.util.concurrent.CompletableFuture;
-import java.util.concurrent.ThreadPoolExecutor;
-import java.util.concurrent.TimeUnit;
-import java.util.stream.Collectors;
-
-
-/**
- * <p>
- * 跟单记录 服务实现类
- * </p>
- *
- * @author
- * @since 2023-04-20
- */
-@Service
-public class DocumentaryRecordServiceImpl extends ServiceImpl<DocumentaryRecordMapper, DocumentaryRecord> implements DocumentaryRecordService {
-
-    ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(
-            4,
-            20,
-            60,
-            TimeUnit.SECONDS,
-            new ArrayBlockingQueue<>(20),
-            new ThreadPoolExecutor.CallerRunsPolicy()
-    );
-
-    @Autowired
-    private DocumentaryService documentaryService;
-
-    @Override
-    public DocumentaryRecordInfoVo getInfo(DocumentaryRecordSelectDto dto) {
-
-        // 获取跟单类型
-        DocumentaryTypeEnum typeEnum = DocumentaryTypeEnum.getEnum(dto.getType());
-        GetDocumentaryBusinessTemplate bean = typeEnum.getBusinessBean();
-
-        ServletRequestAttributes servletRequestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
-        SecurityContext context = SecurityContextHolder.getContext();
-
-        CompletableFuture<? extends Page<? extends DocumentaryData>> pageCompletableFuture =
-                CompletableFuture.supplyAsync(() -> {
-                    // 设置子线程共享
-                    RequestContextHolder.setRequestAttributes(servletRequestAttributes, true);
-                    SecurityContextHolder.setContext(context);
-                    DynamicDataSourceContextHolder.push(SourceConstant.COMMON);
-
-                    List<Long> excludeBusinessId = null;
-                    Long noRecordDocumentaryId = dto.getNoRecordDocumentaryId();
-                    if (noRecordDocumentaryId != null) {
-                        // 排除业务id
-                        excludeBusinessId = listObject(DocumentaryRecord::getBusinessId,
-                                q -> q.eq(DocumentaryRecord::getDocumentaryId, noRecordDocumentaryId));
-                    }
-
-                    Page<? extends DocumentaryData> page = bean.getDocumentaryPage(dto.getCondition(), dto, excludeBusinessId);
-                    setDocumentaryRecord(page);
-
-                    DynamicDataSourceContextHolder.poll();
-                    return page;
-                }, threadPoolExecutor).exceptionally(e -> {
-                    if (e instanceof ServiceException) {
-                        throw (ServiceException) e;
-                    }
-                    throw new RuntimeException(e);
-                });
-
-        CompletableFuture<List<DocumentaryVo>> getDocumentaryListFuture =
-                CompletableFuture.supplyAsync(() -> {
-                    // 设置子线程共享
-                    RequestContextHolder.setRequestAttributes(servletRequestAttributes, true);
-                    SecurityContextHolder.setContext(context);
-                    DynamicDataSourceContextHolder.push(SourceConstant.COMMON);
-
-                    List<DocumentaryVo> documentaryList = getDocumentaryList(typeEnum.getKey());
-                    if (documentaryList.size() > 0) {
-                        setDocumentaryRecordCount(documentaryList);
-                    }
-
-                    DynamicDataSourceContextHolder.poll();
-                    return documentaryList;
-                }, threadPoolExecutor).exceptionally(e -> {
-                    if (e instanceof ServiceException) {
-                        throw (ServiceException) e;
-                    }
-                    throw new RuntimeException(e);
-                });
-
-
-        Page<? extends DocumentaryData> documentaryDataPage = pageCompletableFuture.join();
-        List<DocumentaryVo> documentaryList = getDocumentaryListFuture.join();
-
-        DocumentaryRecordInfoVo vo = new DocumentaryRecordInfoVo();
-        vo.setDocumentaryList(documentaryList);
-        vo.setPage(documentaryDataPage);
-        return vo;
-    }
-
-    @DSTransactional
-    @Override
-    public void add(DocumentaryRecordDto dto) {
-        save(dto);
-        ObsFileUtil.saveFile(dto.getFileList(), dto.getId());
-    }
-
-    @DSTransactional
-    @Override
-    public void edit(DocumentaryRecordDto dto) {
-        if (dto.getId() == null) {
-            throw new ServiceException("跟单记录id不能为空");
-        }
-
-        updateById(dto);
-        ObsFileUtil.editFile(dto.getFileList(), dto.getId());
-    }
-
-    @DSTransactional
-    @Override
-    public void delete(Long id) {
-        removeById(id);
-        ObsFileUtil.removeFile(id);
-    }
-
-    /**
-     * 获取跟单配置
-     *
-     * @param type 跟单类型
-     * @return 跟单列表
-     */
-    private List<DocumentaryVo> getDocumentaryList(Integer type) {
-        List<Documentary> list = documentaryService.list(q -> q
-                .eq(Documentary::getType, type)
-                .orderByAsc(Documentary::getSort)
-        );
-        return BeanUtil.copyToList(list, DocumentaryVo.class);
-    }
-
-    /**
-     * 设置跟单记录总条数
-     *
-     * @param documentaryList 跟单配置
-     */
-    private void setDocumentaryRecordCount(List<DocumentaryVo> documentaryList) {
-        List<Long> documentaryIdList = documentaryList.stream().map(BaseIdPo::getId).collect(Collectors.toList());
-
-        Map<Object, Long> countMap = listMaps(Wrappers.<DocumentaryRecord>query()
-                .select("documentary_id as documentaryId", "count(0) as count")
-                .lambda()
-                .in(DocumentaryRecord::getDocumentaryId, documentaryIdList)
-                .groupBy(DocumentaryRecord::getDocumentaryId)
-        ).stream().collect(Collectors.toMap(
-                item -> item.get("documentaryId"),
-                item -> (Long) item.get("count")));
-
-        for (DocumentaryVo documentaryVo : documentaryList) {
-            documentaryVo.setCount(countMap.getOrDefault(documentaryVo.getId(), 0L));
-        }
-
-    }
-
-    /**
-     * 赋值跟单记录明细
-     */
-    private void setDocumentaryRecord(Page<? extends DocumentaryData> page) {
-        List<? extends DocumentaryData> records = page.getRecords();
-
-        if (records.size() == 0) {
-            return;
-        }
-
-        // 业务id
-        List<Long> businessIdList = records.stream().map(DocumentaryData::getId).collect(Collectors.toList());
-
-        // 根据业务id查询跟单记录
-        List<DocumentaryRecord> list = list(q -> q.in(DocumentaryRecord::getBusinessId, businessIdList));
-
-        // 查询跟单记录文件
-        List<Long> documentaryRecordList = list.stream().map(BaseIdPo::getId).collect(Collectors.toList());
-        Map<Long, List<FileInfoVo>> fileMap = ObsFileUtil.getFileMap(documentaryRecordList);
-
-        List<DocumentaryRecordVo> documentaryRecordVoList = BeanUtil.copyToList(list, DocumentaryRecordVo.class);
-
-        Map<Long, Map<Long, List<DocumentaryRecordVo>>> map = documentaryRecordVoList.stream()
-                .peek(item -> item.setFileList(fileMap.getOrDefault(item.getId(), new ArrayList<>())))
-                .collect(Collectors.groupingBy(DocumentaryRecord::getBusinessId,
-                        Collectors.groupingBy(DocumentaryRecord::getDocumentaryId)));
-
-        // 赋值
-        for (DocumentaryData record : records) {
-            record.setDocumentaryRecord(map.getOrDefault(record.getId(), new HashMap<>()));
-        }
-
-    }
-
-
-}
+//package com.fjhx.common.service.documentary.impl;
+//
+//import cn.hutool.core.bean.BeanUtil;
+//import com.baomidou.dynamic.datasource.annotation.DSTransactional;
+//import com.baomidou.dynamic.datasource.toolkit.DynamicDataSourceContextHolder;
+//import com.baomidou.mybatisplus.core.toolkit.Wrappers;
+//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+//import com.fjhx.common.constant.SourceConstant;
+//import com.fjhx.common.entity.documentary.bo.DocumentaryData;
+//import com.fjhx.common.entity.documentary.dto.DocumentaryRecordDto;
+//import com.fjhx.common.entity.documentary.dto.DocumentaryRecordSelectDto;
+//import com.fjhx.common.entity.documentary.eums.DocumentaryTypeEnum;
+//import com.fjhx.common.entity.documentary.po.Documentary;
+//import com.fjhx.common.entity.documentary.po.DocumentaryRecord;
+//import com.fjhx.common.entity.documentary.vo.DocumentaryRecordInfoVo;
+//import com.fjhx.common.entity.documentary.vo.DocumentaryRecordVo;
+//import com.fjhx.common.entity.documentary.vo.DocumentaryVo;
+//import com.fjhx.common.mapper.documentary.DocumentaryRecordMapper;
+//import com.fjhx.common.service.documentary.DocumentaryRecordService;
+//import com.fjhx.common.service.documentary.DocumentaryService;
+//import com.fjhx.common.service.documentary.GetDocumentaryBusinessTemplate;
+//import com.fjhx.file.entity.FileInfoVo;
+//import com.fjhx.file.utils.ObsFileUtil;
+//import com.ruoyi.common.core.domain.BaseIdPo;
+//import com.ruoyi.common.exception.ServiceException;
+//import org.springframework.beans.factory.annotation.Autowired;
+//import org.springframework.security.core.context.SecurityContext;
+//import org.springframework.security.core.context.SecurityContextHolder;
+//import org.springframework.stereotype.Service;
+//import org.springframework.web.context.request.RequestContextHolder;
+//import org.springframework.web.context.request.ServletRequestAttributes;
+//
+//import java.util.ArrayList;
+//import java.util.HashMap;
+//import java.util.List;
+//import java.util.Map;
+//import java.util.concurrent.ArrayBlockingQueue;
+//import java.util.concurrent.CompletableFuture;
+//import java.util.concurrent.ThreadPoolExecutor;
+//import java.util.concurrent.TimeUnit;
+//import java.util.stream.Collectors;
+//
+//
+///**
+// * <p>
+// * 跟单记录 服务实现类
+// * </p>
+// *
+// * @author
+// * @since 2023-04-20
+// */
+//@Service
+//public class DocumentaryRecordServiceImpl extends ServiceImpl<DocumentaryRecordMapper, DocumentaryRecord> implements DocumentaryRecordService {
+//
+//    ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(
+//            4,
+//            20,
+//            60,
+//            TimeUnit.SECONDS,
+//            new ArrayBlockingQueue<>(20),
+//            new ThreadPoolExecutor.CallerRunsPolicy()
+//    );
+//
+//    @Autowired
+//    private DocumentaryService documentaryService;
+//
+//    @Override
+//    public DocumentaryRecordInfoVo getInfo(DocumentaryRecordSelectDto dto) {
+//
+//        // 获取跟单类型
+//        DocumentaryTypeEnum typeEnum = DocumentaryTypeEnum.getEnum(dto.getType());
+//        GetDocumentaryBusinessTemplate bean = typeEnum.getBusinessBean();
+//
+//        ServletRequestAttributes servletRequestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
+//        SecurityContext context = SecurityContextHolder.getContext();
+//
+//        CompletableFuture<? extends Page<? extends DocumentaryData>> pageCompletableFuture =
+//                CompletableFuture.supplyAsync(() -> {
+//                    // 设置子线程共享
+//                    RequestContextHolder.setRequestAttributes(servletRequestAttributes, true);
+//                    SecurityContextHolder.setContext(context);
+//                    DynamicDataSourceContextHolder.push(SourceConstant.COMMON);
+//
+//                    List<Long> excludeBusinessId = null;
+//                    Long noRecordDocumentaryId = dto.getNoRecordDocumentaryId();
+//                    if (noRecordDocumentaryId != null) {
+//                        // 排除业务id
+//                        excludeBusinessId = listObject(DocumentaryRecord::getBusinessId,
+//                                q -> q.eq(DocumentaryRecord::getDocumentaryId, noRecordDocumentaryId));
+//                    }
+//
+//                    Page<? extends DocumentaryData> page = bean.getDocumentaryPage(dto.getCondition(), dto, excludeBusinessId);
+//                    setDocumentaryRecord(page);
+//
+//                    DynamicDataSourceContextHolder.poll();
+//                    return page;
+//                }, threadPoolExecutor).exceptionally(e -> {
+//                    if (e instanceof ServiceException) {
+//                        throw (ServiceException) e;
+//                    }
+//                    throw new RuntimeException(e);
+//                });
+//
+//        CompletableFuture<List<DocumentaryVo>> getDocumentaryListFuture =
+//                CompletableFuture.supplyAsync(() -> {
+//                    // 设置子线程共享
+//                    RequestContextHolder.setRequestAttributes(servletRequestAttributes, true);
+//                    SecurityContextHolder.setContext(context);
+//                    DynamicDataSourceContextHolder.push(SourceConstant.COMMON);
+//
+//                    List<DocumentaryVo> documentaryList = getDocumentaryList(typeEnum.getKey());
+//                    if (documentaryList.size() > 0) {
+//                        setDocumentaryRecordCount(documentaryList);
+//                    }
+//
+//                    DynamicDataSourceContextHolder.poll();
+//                    return documentaryList;
+//                }, threadPoolExecutor).exceptionally(e -> {
+//                    if (e instanceof ServiceException) {
+//                        throw (ServiceException) e;
+//                    }
+//                    throw new RuntimeException(e);
+//                });
+//
+//
+//        Page<? extends DocumentaryData> documentaryDataPage = pageCompletableFuture.join();
+//        List<DocumentaryVo> documentaryList = getDocumentaryListFuture.join();
+//
+//        DocumentaryRecordInfoVo vo = new DocumentaryRecordInfoVo();
+//        vo.setDocumentaryList(documentaryList);
+//        vo.setPage(documentaryDataPage);
+//        return vo;
+//    }
+//
+//    @DSTransactional
+//    @Override
+//    public void add(DocumentaryRecordDto dto) {
+//        save(dto);
+//        ObsFileUtil.saveFile(dto.getFileList(), dto.getId());
+//    }
+//
+//    @DSTransactional
+//    @Override
+//    public void edit(DocumentaryRecordDto dto) {
+//        if (dto.getId() == null) {
+//            throw new ServiceException("跟单记录id不能为空");
+//        }
+//
+//        updateById(dto);
+//        ObsFileUtil.editFile(dto.getFileList(), dto.getId());
+//    }
+//
+//    @DSTransactional
+//    @Override
+//    public void delete(Long id) {
+//        removeById(id);
+//        ObsFileUtil.removeFile(id);
+//    }
+//
+//    /**
+//     * 获取跟单配置
+//     *
+//     * @param type 跟单类型
+//     * @return 跟单列表
+//     */
+//    private List<DocumentaryVo> getDocumentaryList(Integer type) {
+//        List<Documentary> list = documentaryService.list(q -> q
+//                .eq(Documentary::getType, type)
+//                .orderByAsc(Documentary::getSort)
+//        );
+//        return BeanUtil.copyToList(list, DocumentaryVo.class);
+//    }
+//
+//    /**
+//     * 设置跟单记录总条数
+//     *
+//     * @param documentaryList 跟单配置
+//     */
+//    private void setDocumentaryRecordCount(List<DocumentaryVo> documentaryList) {
+//        List<Long> documentaryIdList = documentaryList.stream().map(BaseIdPo::getId).collect(Collectors.toList());
+//
+//        Map<Object, Long> countMap = listMaps(Wrappers.<DocumentaryRecord>query()
+//                .select("documentary_id as documentaryId", "count(0) as count")
+//                .lambda()
+//                .in(DocumentaryRecord::getDocumentaryId, documentaryIdList)
+//                .groupBy(DocumentaryRecord::getDocumentaryId)
+//        ).stream().collect(Collectors.toMap(
+//                item -> item.get("documentaryId"),
+//                item -> (Long) item.get("count")));
+//
+//        for (DocumentaryVo documentaryVo : documentaryList) {
+//            documentaryVo.setCount(countMap.getOrDefault(documentaryVo.getId(), 0L));
+//        }
+//
+//    }
+//
+//    /**
+//     * 赋值跟单记录明细
+//     */
+//    private void setDocumentaryRecord(Page<? extends DocumentaryData> page) {
+//        List<? extends DocumentaryData> records = page.getRecords();
+//
+//        if (records.size() == 0) {
+//            return;
+//        }
+//
+//        // 业务id
+//        List<Long> businessIdList = records.stream().map(DocumentaryData::getId).collect(Collectors.toList());
+//
+//        // 根据业务id查询跟单记录
+//        List<DocumentaryRecord> list = list(q -> q.in(DocumentaryRecord::getBusinessId, businessIdList));
+//
+//        // 查询跟单记录文件
+//        List<Long> documentaryRecordList = list.stream().map(BaseIdPo::getId).collect(Collectors.toList());
+//        Map<Long, List<FileInfoVo>> fileMap = ObsFileUtil.getFileMap(documentaryRecordList);
+//
+//        List<DocumentaryRecordVo> documentaryRecordVoList = BeanUtil.copyToList(list, DocumentaryRecordVo.class);
+//
+//        Map<Long, Map<Long, List<DocumentaryRecordVo>>> map = documentaryRecordVoList.stream()
+//                .peek(item -> item.setFileList(fileMap.getOrDefault(item.getId(), new ArrayList<>())))
+//                .collect(Collectors.groupingBy(DocumentaryRecord::getBusinessId,
+//                        Collectors.groupingBy(DocumentaryRecord::getDocumentaryId)));
+//
+//        // 赋值
+//        for (DocumentaryData record : records) {
+//            record.setDocumentaryRecord(map.getOrDefault(record.getId(), new HashMap<>()));
+//        }
+//
+//    }
+//
+//
+//}

+ 59 - 59
hx-common/src/main/java/com/fjhx/common/service/documentary/impl/DocumentaryServiceImpl.java

@@ -1,59 +1,59 @@
-package com.fjhx.common.service.documentary.impl;
-
-import cn.hutool.core.bean.BeanUtil;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.fjhx.common.entity.documentary.dto.DocumentaryDto;
-import com.fjhx.common.entity.documentary.dto.DocumentarySelectDto;
-import com.fjhx.common.entity.documentary.po.Documentary;
-import com.fjhx.common.entity.documentary.vo.DocumentaryVo;
-import com.fjhx.common.mapper.documentary.DocumentaryMapper;
-import com.fjhx.common.service.documentary.DocumentaryService;
-import com.ruoyi.common.utils.wrapper.IWrapper;
-import org.springframework.stereotype.Service;
-
-
-/**
- * <p>
- * 跟单配置 服务实现类
- * </p>
- *
- * @author 
- * @since 2023-04-19
- */
-@Service
-public class DocumentaryServiceImpl extends ServiceImpl<DocumentaryMapper, Documentary> implements DocumentaryService {
-
-    @Override
-    public Page<DocumentaryVo> getPage(DocumentarySelectDto dto) {
-        IWrapper<Documentary> wrapper = getWrapper();
-
-        wrapper.orderByAsc("d", Documentary::getType);
-        wrapper.orderByAsc("d", Documentary::getSort);
-        Page<DocumentaryVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
-        return page;
-    }
-
-    @Override
-    public DocumentaryVo detail(Long id) {
-        Documentary Documentary = this.getById(id);
-        DocumentaryVo result = BeanUtil.toBean(Documentary, DocumentaryVo.class);
-        return result;
-    }
-
-    @Override
-    public void add(DocumentaryDto documentaryDto) {
-        this.save(documentaryDto);
-    }
-
-    @Override
-    public void edit(DocumentaryDto documentaryDto) {
-        this.updateById(documentaryDto);
-    }
-
-    @Override
-    public void delete(Long id) {
-        this.removeById(id);
-    }
-
-}
+//package com.fjhx.common.service.documentary.impl;
+//
+//import cn.hutool.core.bean.BeanUtil;
+//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+//import com.fjhx.common.entity.documentary.dto.DocumentaryDto;
+//import com.fjhx.common.entity.documentary.dto.DocumentarySelectDto;
+//import com.fjhx.common.entity.documentary.po.Documentary;
+//import com.fjhx.common.entity.documentary.vo.DocumentaryVo;
+//import com.fjhx.common.mapper.documentary.DocumentaryMapper;
+//import com.fjhx.common.service.documentary.DocumentaryService;
+//import com.ruoyi.common.utils.wrapper.IWrapper;
+//import org.springframework.stereotype.Service;
+//
+//
+///**
+// * <p>
+// * 跟单配置 服务实现类
+// * </p>
+// *
+// * @author
+// * @since 2023-04-19
+// */
+//@Service
+//public class DocumentaryServiceImpl extends ServiceImpl<DocumentaryMapper, Documentary> implements DocumentaryService {
+//
+//    @Override
+//    public Page<DocumentaryVo> getPage(DocumentarySelectDto dto) {
+//        IWrapper<Documentary> wrapper = getWrapper();
+//
+//        wrapper.orderByAsc("d", Documentary::getType);
+//        wrapper.orderByAsc("d", Documentary::getSort);
+//        Page<DocumentaryVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
+//        return page;
+//    }
+//
+//    @Override
+//    public DocumentaryVo detail(Long id) {
+//        Documentary Documentary = this.getById(id);
+//        DocumentaryVo result = BeanUtil.toBean(Documentary, DocumentaryVo.class);
+//        return result;
+//    }
+//
+//    @Override
+//    public void add(DocumentaryDto documentaryDto) {
+//        this.save(documentaryDto);
+//    }
+//
+//    @Override
+//    public void edit(DocumentaryDto documentaryDto) {
+//        this.updateById(documentaryDto);
+//    }
+//
+//    @Override
+//    public void delete(Long id) {
+//        this.removeById(id);
+//    }
+//
+//}

+ 19 - 19
hx-common/src/main/java/com/fjhx/common/service/on/OnLineInfoService.java

@@ -1,19 +1,19 @@
-package com.fjhx.common.service.on;
-
-import com.fjhx.common.entity.on.po.OnLineInfo;
-import com.fjhx.common.entity.on.vo.OnLineInfoReturnData;
-import com.ruoyi.common.core.service.BaseService;
-
-
-/**
- * <p>
- * 在线时长信息 服务类
- * </p>
- *
- * @author
- * @since 2023-08-08
- */
-public interface OnLineInfoService extends BaseService<OnLineInfo> {
-
-    OnLineInfoReturnData onLineInfo();
-}
+//package com.fjhx.common.service.on;
+//
+//import com.fjhx.common.entity.on.po.OnLineInfo;
+//import com.fjhx.common.entity.on.vo.OnLineInfoReturnData;
+//import com.ruoyi.common.core.service.BaseService;
+//
+//
+///**
+// * <p>
+// * 在线时长信息 服务类
+// * </p>
+// *
+// * @author
+// * @since 2023-08-08
+// */
+//public interface OnLineInfoService extends BaseService<OnLineInfo> {
+//
+//    OnLineInfoReturnData onLineInfo();
+//}

+ 183 - 183
hx-common/src/main/java/com/fjhx/common/service/on/impl/OnLineInfoServiceImpl.java

@@ -1,183 +1,183 @@
-package com.fjhx.common.service.on.impl;
-
-import cn.hutool.core.util.ObjectUtil;
-import com.alibaba.fastjson2.JSONObject;
-import com.baomidou.dynamic.datasource.toolkit.DynamicDataSourceContextHolder;
-import com.baomidou.mybatisplus.core.toolkit.Wrappers;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.fjhx.common.constant.SourceConstant;
-import com.fjhx.common.entity.on.po.OnLineInfo;
-import com.fjhx.common.entity.on.vo.OnLineInfoReturnData;
-import com.fjhx.common.entity.on.vo.OnLineInfoVo;
-import com.fjhx.common.mapper.on.OnLineInfoMapper;
-import com.fjhx.common.service.on.OnLineInfoService;
-import com.fjhx.socket.core.WebSocketServer;
-import com.fjhx.socket.core.event.WebSocketOnMessageEvent;
-import com.fjhx.socket.core.event.WebSocketOnOpenEvent;
-import com.ruoyi.common.annotation.TenantIgnore;
-import com.ruoyi.common.core.domain.entity.SysDept;
-import com.ruoyi.common.utils.SecurityUtils;
-import com.ruoyi.system.service.ISysDeptService;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.context.event.EventListener;
-import org.springframework.stereotype.Service;
-
-import java.math.BigDecimal;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Date;
-import java.util.List;
-
-
-/**
- * <p>
- * 在线时长信息 服务实现类
- * </p>
- *
- * @author
- * @since 2023-08-08
- */
-@Service
-public class OnLineInfoServiceImpl extends ServiceImpl<OnLineInfoMapper, OnLineInfo> implements OnLineInfoService {
-
-    @Autowired
-    private ISysDeptService sysDeptService;
-
-    @Override
-    public OnLineInfoReturnData onLineInfo() {
-        Long userId = SecurityUtils.getUserId();
-
-
-        //部门负责人:可查看负责部门/部门总监:可以查看对应部门及级联部门
-        DynamicDataSourceContextHolder.push(SourceConstant.BASE);
-        List<SysDept> deptList = sysDeptService.list(Wrappers.<SysDept>lambdaQuery()
-                .eq(SysDept::getLeaderId, userId)
-                .or()
-                .eq(SysDept::getDirectorId, userId)
-        );
-        DynamicDataSourceContextHolder.poll();
-
-        //递归获取子数据
-        List<OnLineInfoReturnData.Dept> deptList1 = getDeptList(deptList, userId, 0);
-
-        //返回数据
-        OnLineInfoReturnData onLineInfoReturnData = new OnLineInfoReturnData();
-        //我的在线时长
-        BigDecimal divide = BigDecimal.valueOf(baseMapper.getOnLineTimeByUserId(userId)).divide(BigDecimal.valueOf(3600), 2, BigDecimal.ROUND_HALF_UP);
-        onLineInfoReturnData.setOnLineTime(divide);
-        //部门列表
-        onLineInfoReturnData.setDeptList(deptList1);
-
-        return onLineInfoReturnData;
-    }
-
-    List<OnLineInfoReturnData.Dept> getDeptList(List<SysDept> deptList, Long userId, Integer type) {
-        List<OnLineInfoReturnData.Dept> deptList1 = new ArrayList<>();
-        for (SysDept sysDept : deptList) {
-            List<OnLineInfoReturnData.User> userList = new ArrayList<>();
-            //获取用户列表
-            List<OnLineInfoVo> onLineTimeByDeptIds = baseMapper.getOnLineTimeByDeptIds(Collections.singletonList(sysDept.getDeptId()));
-            BigDecimal deptOnLineTime = BigDecimal.ZERO;
-            for (OnLineInfoVo onLineTimeByDeptId : onLineTimeByDeptIds) {
-                OnLineInfoReturnData.User user = new OnLineInfoReturnData.User();
-                user.setUserName(onLineTimeByDeptId.getUserName());
-
-                BigDecimal divide = BigDecimal.valueOf(onLineTimeByDeptId.getOnLineDuration()).divide(BigDecimal.valueOf(3600), 2, BigDecimal.ROUND_HALF_UP);
-                user.setOnLineTime(divide);
-                userList.add(user);
-
-                deptOnLineTime = deptOnLineTime.add(divide);
-            }
-
-            OnLineInfoReturnData.Dept dept1 = new OnLineInfoReturnData.Dept();
-            dept1.setDeptName(sysDept.getDeptName());
-            dept1.setUserList(userList);
-            dept1.setOnLineTime(deptOnLineTime);
-
-
-            //如果部门总监是我 查询部门下的子部门(type=1是递归进来的需要查子部门)
-            if (type == 1 || userId.equals(sysDept.getDirectorId())) {
-                DynamicDataSourceContextHolder.push(SourceConstant.BASE);
-                List<SysDept> deptList11 = sysDeptService.list(Wrappers.<SysDept>lambdaQuery().eq(SysDept::getParentId, sysDept.getDeptId()));
-                DynamicDataSourceContextHolder.poll();
-                //赋值子部门
-                List<OnLineInfoReturnData.Dept> deptList2 = getDeptList(deptList11, userId, 1);
-                dept1.setDeptList(deptList2);
-                //计算子部门列表的时长和加到当前部门上
-                BigDecimal onLineTimeCount = deptList2.stream().map(OnLineInfoReturnData.Dept::getOnLineTime).reduce(BigDecimal.ZERO, BigDecimal::add);
-                dept1.setOnLineTime(dept1.getOnLineTime().add(onLineTimeCount));
-            }
-
-            //返回数据
-            deptList1.add(dept1);
-        }
-        return deptList1;
-    }
-
-    /**
-     * 用户连接websock监听
-     */
-    @EventListener
-    @TenantIgnore
-    public void webSocketOnOpenEvent(WebSocketOnOpenEvent webSocketOnOpenEvent) {
-        WebSocketServer webSocketServer = webSocketOnOpenEvent.getWebSocketServer();
-        Long userId = webSocketServer.getUserId();
-        //记录上线时间
-        DynamicDataSourceContextHolder.push(SourceConstant.COMMON);
-        OnLineInfo onLineInfo = this.getOne(q -> q.eq(OnLineInfo::getUserId, userId).apply("DATE(on_line_date) = DATE(NOW())"));
-        DynamicDataSourceContextHolder.poll();
-        if (ObjectUtil.isEmpty(onLineInfo)) {
-            onLineInfo = new OnLineInfo();
-            onLineInfo.setOnLineDuration(0L);
-            onLineInfo.setOnLineDate(new Date());
-            onLineInfo.setUserId(userId);
-            onLineInfo.setTenantId(webSocketServer.getTenantId());
-        }
-        onLineInfo.setLastOnlineTime(new Date());
-        DynamicDataSourceContextHolder.push(SourceConstant.COMMON);
-        this.saveOrUpdate(onLineInfo);
-        DynamicDataSourceContextHolder.poll();
-    }
-
-    /**
-     * 收到websock消息监听
-     */
-    @EventListener
-    @TenantIgnore
-    public void webSocketOnMessageEvent(WebSocketOnMessageEvent webSocketOnMessageEvent) {
-        WebSocketServer webSocketServer = webSocketOnMessageEvent.getWebSocketServer();
-        Long userId = webSocketServer.getUserId();
-
-        String message = webSocketOnMessageEvent.getMessage();
-        JSONObject json = JSONObject.parseObject(message);
-        if (ObjectUtil.isNotEmpty(json.get("heartbeat"))) {
-            //保存在线时长信息
-            DynamicDataSourceContextHolder.push(SourceConstant.COMMON);
-            OnLineInfo onLineInfo = this.getOne(q -> q.eq(OnLineInfo::getUserId, userId).apply("DATE(on_line_date) = DATE(NOW())"));
-            DynamicDataSourceContextHolder.poll();
-            if (ObjectUtil.isEmpty(onLineInfo)) {
-                onLineInfo = new OnLineInfo();
-                onLineInfo.setOnLineDuration(0L);
-                onLineInfo.setOnLineDate(new Date());
-                onLineInfo.setUserId(userId);
-                onLineInfo.setTenantId(webSocketServer.getTenantId());
-            }
-
-
-            Long startTime = onLineInfo.getLastOnlineTime().getTime();
-            Date endDate = new Date();
-            //在线时长(秒)
-            long onLineTime = (endDate.getTime() - startTime) / 1000;
-
-            //记录在线时长
-            onLineInfo.setOnLineDuration(onLineInfo.getOnLineDuration() + onLineTime);
-            onLineInfo.setLastOnlineTime(endDate);
-            DynamicDataSourceContextHolder.push(SourceConstant.COMMON);
-            this.saveOrUpdate(onLineInfo);
-            DynamicDataSourceContextHolder.poll();
-        }
-    }
-
-}
-
-
+//package com.fjhx.common.service.on.impl;
+//
+//import cn.hutool.core.util.ObjectUtil;
+//import com.alibaba.fastjson2.JSONObject;
+//import com.baomidou.dynamic.datasource.toolkit.DynamicDataSourceContextHolder;
+//import com.baomidou.mybatisplus.core.toolkit.Wrappers;
+//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+//import com.fjhx.common.constant.SourceConstant;
+//import com.fjhx.common.entity.on.po.OnLineInfo;
+//import com.fjhx.common.entity.on.vo.OnLineInfoReturnData;
+//import com.fjhx.common.entity.on.vo.OnLineInfoVo;
+//import com.fjhx.common.mapper.on.OnLineInfoMapper;
+//import com.fjhx.common.service.on.OnLineInfoService;
+//import com.fjhx.socket.core.WebSocketServer;
+//import com.fjhx.socket.core.event.WebSocketOnMessageEvent;
+//import com.fjhx.socket.core.event.WebSocketOnOpenEvent;
+//import com.ruoyi.common.annotation.TenantIgnore;
+//import com.ruoyi.common.core.domain.entity.SysDept;
+//import com.ruoyi.common.utils.SecurityUtils;
+//import com.ruoyi.system.service.ISysDeptService;
+//import org.springframework.beans.factory.annotation.Autowired;
+//import org.springframework.context.event.EventListener;
+//import org.springframework.stereotype.Service;
+//
+//import java.math.BigDecimal;
+//import java.util.ArrayList;
+//import java.util.Collections;
+//import java.util.Date;
+//import java.util.List;
+//
+//
+///**
+// * <p>
+// * 在线时长信息 服务实现类
+// * </p>
+// *
+// * @author
+// * @since 2023-08-08
+// */
+//@Service
+//public class OnLineInfoServiceImpl extends ServiceImpl<OnLineInfoMapper, OnLineInfo> implements OnLineInfoService {
+//
+//    @Autowired
+//    private ISysDeptService sysDeptService;
+//
+//    @Override
+//    public OnLineInfoReturnData onLineInfo() {
+//        Long userId = SecurityUtils.getUserId();
+//
+//
+//        //部门负责人:可查看负责部门/部门总监:可以查看对应部门及级联部门
+//        DynamicDataSourceContextHolder.push(SourceConstant.BASE);
+//        List<SysDept> deptList = sysDeptService.list(Wrappers.<SysDept>lambdaQuery()
+//                .eq(SysDept::getLeaderId, userId)
+//                .or()
+//                .eq(SysDept::getDirectorId, userId)
+//        );
+//        DynamicDataSourceContextHolder.poll();
+//
+//        //递归获取子数据
+//        List<OnLineInfoReturnData.Dept> deptList1 = getDeptList(deptList, userId, 0);
+//
+//        //返回数据
+//        OnLineInfoReturnData onLineInfoReturnData = new OnLineInfoReturnData();
+//        //我的在线时长
+//        BigDecimal divide = BigDecimal.valueOf(baseMapper.getOnLineTimeByUserId(userId)).divide(BigDecimal.valueOf(3600), 2, BigDecimal.ROUND_HALF_UP);
+//        onLineInfoReturnData.setOnLineTime(divide);
+//        //部门列表
+//        onLineInfoReturnData.setDeptList(deptList1);
+//
+//        return onLineInfoReturnData;
+//    }
+//
+//    List<OnLineInfoReturnData.Dept> getDeptList(List<SysDept> deptList, Long userId, Integer type) {
+//        List<OnLineInfoReturnData.Dept> deptList1 = new ArrayList<>();
+//        for (SysDept sysDept : deptList) {
+//            List<OnLineInfoReturnData.User> userList = new ArrayList<>();
+//            //获取用户列表
+//            List<OnLineInfoVo> onLineTimeByDeptIds = baseMapper.getOnLineTimeByDeptIds(Collections.singletonList(sysDept.getDeptId()));
+//            BigDecimal deptOnLineTime = BigDecimal.ZERO;
+//            for (OnLineInfoVo onLineTimeByDeptId : onLineTimeByDeptIds) {
+//                OnLineInfoReturnData.User user = new OnLineInfoReturnData.User();
+//                user.setUserName(onLineTimeByDeptId.getUserName());
+//
+//                BigDecimal divide = BigDecimal.valueOf(onLineTimeByDeptId.getOnLineDuration()).divide(BigDecimal.valueOf(3600), 2, BigDecimal.ROUND_HALF_UP);
+//                user.setOnLineTime(divide);
+//                userList.add(user);
+//
+//                deptOnLineTime = deptOnLineTime.add(divide);
+//            }
+//
+//            OnLineInfoReturnData.Dept dept1 = new OnLineInfoReturnData.Dept();
+//            dept1.setDeptName(sysDept.getDeptName());
+//            dept1.setUserList(userList);
+//            dept1.setOnLineTime(deptOnLineTime);
+//
+//
+//            //如果部门总监是我 查询部门下的子部门(type=1是递归进来的需要查子部门)
+//            if (type == 1 || userId.equals(sysDept.getDirectorId())) {
+//                DynamicDataSourceContextHolder.push(SourceConstant.BASE);
+//                List<SysDept> deptList11 = sysDeptService.list(Wrappers.<SysDept>lambdaQuery().eq(SysDept::getParentId, sysDept.getDeptId()));
+//                DynamicDataSourceContextHolder.poll();
+//                //赋值子部门
+//                List<OnLineInfoReturnData.Dept> deptList2 = getDeptList(deptList11, userId, 1);
+//                dept1.setDeptList(deptList2);
+//                //计算子部门列表的时长和加到当前部门上
+//                BigDecimal onLineTimeCount = deptList2.stream().map(OnLineInfoReturnData.Dept::getOnLineTime).reduce(BigDecimal.ZERO, BigDecimal::add);
+//                dept1.setOnLineTime(dept1.getOnLineTime().add(onLineTimeCount));
+//            }
+//
+//            //返回数据
+//            deptList1.add(dept1);
+//        }
+//        return deptList1;
+//    }
+//
+//    /**
+//     * 用户连接websock监听
+//     */
+//    @EventListener
+//    @TenantIgnore
+//    public void webSocketOnOpenEvent(WebSocketOnOpenEvent webSocketOnOpenEvent) {
+//        WebSocketServer webSocketServer = webSocketOnOpenEvent.getWebSocketServer();
+//        Long userId = webSocketServer.getUserId();
+//        //记录上线时间
+//        DynamicDataSourceContextHolder.push(SourceConstant.COMMON);
+//        OnLineInfo onLineInfo = this.getOne(q -> q.eq(OnLineInfo::getUserId, userId).apply("DATE(on_line_date) = DATE(NOW())"));
+//        DynamicDataSourceContextHolder.poll();
+//        if (ObjectUtil.isEmpty(onLineInfo)) {
+//            onLineInfo = new OnLineInfo();
+//            onLineInfo.setOnLineDuration(0L);
+//            onLineInfo.setOnLineDate(new Date());
+//            onLineInfo.setUserId(userId);
+//            onLineInfo.setTenantId(webSocketServer.getTenantId());
+//        }
+//        onLineInfo.setLastOnlineTime(new Date());
+//        DynamicDataSourceContextHolder.push(SourceConstant.COMMON);
+//        this.saveOrUpdate(onLineInfo);
+//        DynamicDataSourceContextHolder.poll();
+//    }
+//
+//    /**
+//     * 收到websock消息监听
+//     */
+//    @EventListener
+//    @TenantIgnore
+//    public void webSocketOnMessageEvent(WebSocketOnMessageEvent webSocketOnMessageEvent) {
+//        WebSocketServer webSocketServer = webSocketOnMessageEvent.getWebSocketServer();
+//        Long userId = webSocketServer.getUserId();
+//
+//        String message = webSocketOnMessageEvent.getMessage();
+//        JSONObject json = JSONObject.parseObject(message);
+//        if (ObjectUtil.isNotEmpty(json.get("heartbeat"))) {
+//            //保存在线时长信息
+//            DynamicDataSourceContextHolder.push(SourceConstant.COMMON);
+//            OnLineInfo onLineInfo = this.getOne(q -> q.eq(OnLineInfo::getUserId, userId).apply("DATE(on_line_date) = DATE(NOW())"));
+//            DynamicDataSourceContextHolder.poll();
+//            if (ObjectUtil.isEmpty(onLineInfo)) {
+//                onLineInfo = new OnLineInfo();
+//                onLineInfo.setOnLineDuration(0L);
+//                onLineInfo.setOnLineDate(new Date());
+//                onLineInfo.setUserId(userId);
+//                onLineInfo.setTenantId(webSocketServer.getTenantId());
+//            }
+//
+//
+//            Long startTime = onLineInfo.getLastOnlineTime().getTime();
+//            Date endDate = new Date();
+//            //在线时长(秒)
+//            long onLineTime = (endDate.getTime() - startTime) / 1000;
+//
+//            //记录在线时长
+//            onLineInfo.setOnLineDuration(onLineInfo.getOnLineDuration() + onLineTime);
+//            onLineInfo.setLastOnlineTime(endDate);
+//            DynamicDataSourceContextHolder.push(SourceConstant.COMMON);
+//            this.saveOrUpdate(onLineInfo);
+//            DynamicDataSourceContextHolder.poll();
+//        }
+//    }
+//
+//}
+//
+//

+ 41 - 41
hx-common/src/main/java/com/fjhx/common/service/problem/ProblemFeedbackService.java

@@ -1,41 +1,41 @@
-package com.fjhx.common.service.problem;
-
-import com.fjhx.common.entity.problem.po.ProblemFeedback;
-import com.ruoyi.common.core.service.BaseService;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.fjhx.common.entity.problem.vo.ProblemFeedbackVo;
-import com.fjhx.common.entity.problem.dto.ProblemFeedbackSelectDto;
-import com.fjhx.common.entity.problem.dto.ProblemFeedbackDto;
-
-
-/**
- * <p>
- * 问题反馈 服务类
- * </p>
- *
- * @author 
- * @since 2023-05-04
- */
-public interface ProblemFeedbackService extends BaseService<ProblemFeedback> {
-
-    /**
-     * 问题反馈分页
-     */
-    Page<ProblemFeedbackVo> getPage(ProblemFeedbackSelectDto dto);
-
-    /**
-     * 问题反馈明细
-     */
-    ProblemFeedbackVo detail(Long id);
-
-    /**
-     * 问题反馈新增
-     */
-    void add(ProblemFeedbackDto problemFeedbackDto);
-
-    /**
-     * 问题反馈编辑
-     */
-    void edit(ProblemFeedbackDto problemFeedbackDto);
-
-}
+//package com.fjhx.common.service.problem;
+//
+//import com.fjhx.common.entity.problem.po.ProblemFeedback;
+//import com.ruoyi.common.core.service.BaseService;
+//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+//import com.fjhx.common.entity.problem.vo.ProblemFeedbackVo;
+//import com.fjhx.common.entity.problem.dto.ProblemFeedbackSelectDto;
+//import com.fjhx.common.entity.problem.dto.ProblemFeedbackDto;
+//
+//
+///**
+// * <p>
+// * 问题反馈 服务类
+// * </p>
+// *
+// * @author
+// * @since 2023-05-04
+// */
+//public interface ProblemFeedbackService extends BaseService<ProblemFeedback> {
+//
+//    /**
+//     * 问题反馈分页
+//     */
+//    Page<ProblemFeedbackVo> getPage(ProblemFeedbackSelectDto dto);
+//
+//    /**
+//     * 问题反馈明细
+//     */
+//    ProblemFeedbackVo detail(Long id);
+//
+//    /**
+//     * 问题反馈新增
+//     */
+//    void add(ProblemFeedbackDto problemFeedbackDto);
+//
+//    /**
+//     * 问题反馈编辑
+//     */
+//    void edit(ProblemFeedbackDto problemFeedbackDto);
+//
+//}

+ 56 - 56
hx-common/src/main/java/com/fjhx/common/service/problem/impl/ProblemFeedbackServiceImpl.java

@@ -1,56 +1,56 @@
-package com.fjhx.common.service.problem.impl;
-
-import cn.hutool.core.bean.BeanUtil;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.fjhx.common.entity.problem.dto.ProblemFeedbackDto;
-import com.fjhx.common.entity.problem.dto.ProblemFeedbackSelectDto;
-import com.fjhx.common.entity.problem.po.ProblemFeedback;
-import com.fjhx.common.entity.problem.vo.ProblemFeedbackVo;
-import com.fjhx.common.mapper.problem.ProblemFeedbackMapper;
-import com.fjhx.common.service.problem.ProblemFeedbackService;
-import com.ruoyi.common.constant.StatusConstant;
-import com.ruoyi.common.utils.wrapper.IWrapper;
-import org.springframework.stereotype.Service;
-
-
-/**
- * <p>
- * 问题反馈 服务实现类
- * </p>
- *
- * @author
- * @since 2023-05-04
- */
-@Service
-public class ProblemFeedbackServiceImpl extends ServiceImpl<ProblemFeedbackMapper, ProblemFeedback> implements ProblemFeedbackService {
-
-    @Override
-    public Page<ProblemFeedbackVo> getPage(ProblemFeedbackSelectDto dto) {
-        IWrapper<ProblemFeedback> wrapper = getWrapper();
-        wrapper.eq("pf", ProblemFeedback::getTenantId, dto.getTenantId());
-        wrapper.eq("pf", ProblemFeedback::getStatus, dto.getStatus());
-        wrapper.orderByDesc("pf", ProblemFeedback::getId);
-        Page<ProblemFeedbackVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
-        return page;
-    }
-
-    @Override
-    public ProblemFeedbackVo detail(Long id) {
-        ProblemFeedback ProblemFeedback = this.getById(id);
-        ProblemFeedbackVo result = BeanUtil.toBean(ProblemFeedback, ProblemFeedbackVo.class);
-        return result;
-    }
-
-    @Override
-    public void add(ProblemFeedbackDto problemFeedbackDto) {
-        this.save(problemFeedbackDto);
-    }
-
-    @Override
-    public void edit(ProblemFeedbackDto problemFeedbackDto) {
-        problemFeedbackDto.setStatus(StatusConstant.YES);
-        this.updateById(problemFeedbackDto);
-    }
-
-}
+//package com.fjhx.common.service.problem.impl;
+//
+//import cn.hutool.core.bean.BeanUtil;
+//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+//import com.fjhx.common.entity.problem.dto.ProblemFeedbackDto;
+//import com.fjhx.common.entity.problem.dto.ProblemFeedbackSelectDto;
+//import com.fjhx.common.entity.problem.po.ProblemFeedback;
+//import com.fjhx.common.entity.problem.vo.ProblemFeedbackVo;
+//import com.fjhx.common.mapper.problem.ProblemFeedbackMapper;
+//import com.fjhx.common.service.problem.ProblemFeedbackService;
+//import com.ruoyi.common.constant.StatusConstant;
+//import com.ruoyi.common.utils.wrapper.IWrapper;
+//import org.springframework.stereotype.Service;
+//
+//
+///**
+// * <p>
+// * 问题反馈 服务实现类
+// * </p>
+// *
+// * @author
+// * @since 2023-05-04
+// */
+//@Service
+//public class ProblemFeedbackServiceImpl extends ServiceImpl<ProblemFeedbackMapper, ProblemFeedback> implements ProblemFeedbackService {
+//
+//    @Override
+//    public Page<ProblemFeedbackVo> getPage(ProblemFeedbackSelectDto dto) {
+//        IWrapper<ProblemFeedback> wrapper = getWrapper();
+//        wrapper.eq("pf", ProblemFeedback::getTenantId, dto.getTenantId());
+//        wrapper.eq("pf", ProblemFeedback::getStatus, dto.getStatus());
+//        wrapper.orderByDesc("pf", ProblemFeedback::getId);
+//        Page<ProblemFeedbackVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
+//        return page;
+//    }
+//
+//    @Override
+//    public ProblemFeedbackVo detail(Long id) {
+//        ProblemFeedback ProblemFeedback = this.getById(id);
+//        ProblemFeedbackVo result = BeanUtil.toBean(ProblemFeedback, ProblemFeedbackVo.class);
+//        return result;
+//    }
+//
+//    @Override
+//    public void add(ProblemFeedbackDto problemFeedbackDto) {
+//        this.save(problemFeedbackDto);
+//    }
+//
+//    @Override
+//    public void edit(ProblemFeedbackDto problemFeedbackDto) {
+//        problemFeedbackDto.setStatus(StatusConstant.YES);
+//        this.updateById(problemFeedbackDto);
+//    }
+//
+//}

+ 154 - 154
hx-common/src/main/java/com/fjhx/common/utils/Assert.java

@@ -1,155 +1,155 @@
-package com.fjhx.common.utils;
-
-
-import cn.hutool.core.util.ObjectUtil;
-import com.ruoyi.common.exception.ServiceException;
-
-import java.math.BigDecimal;
-
-public class Assert {
-
-    /**
-     * 断言client返回成功
-     *
-     * @param r 返回结果集
-     */
-//    public static <T> T result(R<T> r) {
-//        Assert.eqTrue(r.isSuccess(), r.getMsg());
-//        return r.getData();
+//package com.fjhx.common.utils;
+//
+//
+//import cn.hutool.core.util.ObjectUtil;
+//import com.ruoyi.common.exception.ServiceException;
+//
+//import java.math.BigDecimal;
+//
+//public class Assert {
+//
+//    /**
+//     * 断言client返回成功
+//     *
+//     * @param r 返回结果集
+//     */
+////    public static <T> T result(R<T> r) {
+////        Assert.eqTrue(r.isSuccess(), r.getMsg());
+////        return r.getData();
+////    }
+//
+//    /**
+//     * 断言为空
+//     *
+//     * @param obj    参数
+//     * @param errStr 异常提示
+//     */
+//    public static void empty(Object obj, String errStr) {
+//        if (ObjectUtil.isNotEmpty(obj)) {
+//            throw new ServiceException(errStr);
+//        }
 //    }
-
-    /**
-     * 断言为空
-     *
-     * @param obj    参数
-     * @param errStr 异常提示
-     */
-    public static void empty(Object obj, String errStr) {
-        if (ObjectUtil.isNotEmpty(obj)) {
-            throw new ServiceException(errStr);
-        }
-    }
-
-    /**
-     * 断言不为空
-     *
-     * @param obj    参数
-     * @param errStr 异常提示
-     */
-    public static void notEmpty(Object obj, String errStr) {
-        if (ObjectUtil.isEmpty(obj)) {
-            throw new ServiceException(errStr);
-        }
-    }
-
-    /**
-     * 断言为0
-     *
-     * @param integer 参数
-     * @param errStr  异常提示
-     */
-    public static void eqZero(Integer integer, String errStr) {
-        if (integer != 0) {
-            throw new ServiceException(errStr);
-        }
-    }
-
-    /**
-     * 断言为0
-     *
-     * @param integer 参数
-     * @param errStr  异常提示
-     */
-    public static void eqZero(Long integer, String errStr) {
-        if (integer != 0) {
-            throw new ServiceException(errStr);
-        }
-    }
-
-    /**
-     * 断言为1
-     *
-     * @param along  参数
-     * @param errStr 异常提示
-     */
-    public static void eqOne(Long along, String errStr) {
-        if (along != 1) {
-            throw new ServiceException(errStr);
-        }
-    }
-
-    /**
-     * 断言为1
-     *
-     * @param integer 参数
-     * @param errStr  异常提示
-     */
-    public static void eqOne(Integer integer, String errStr) {
-        if (integer != 1) {
-            throw new ServiceException(errStr);
-        }
-    }
-
-    /**
-     * 断言为真
-     *
-     * @param flag   参数
-     * @param errStr 异常提示
-     */
-    public static void eqTrue(Boolean flag, String errStr) {
-        if (flag == null || flag.equals(false)) {
-            throw new ServiceException(errStr);
-        }
-    }
-
-    /**
-     * 断言大于0
-     *
-     * @param bigDecimal 参数
-     * @param errStr     异常提示
-     */
-    public static void gtZero(BigDecimal bigDecimal, String errStr) {
-        if (bigDecimal == null || BigDecimal.ZERO.compareTo(bigDecimal) > 0) {
-            throw new ServiceException(errStr);
-        }
-    }
-
-    /**
-     * 断言大于等于0
-     *
-     * @param bigDecimal 参数
-     * @param errStr     异常提示
-     */
-    public static void geZero(BigDecimal bigDecimal, String errStr) {
-        if (bigDecimal == null || BigDecimal.ZERO.compareTo(bigDecimal) >= 0) {
-            throw new ServiceException(errStr);
-        }
-    }
-
-
-    /**
-     * 断言大于0
-     *
-     * @param integer 参数
-     * @param errStr  异常提示
-     */
-    public static void gtZero(Integer integer, String errStr) {
-        if (integer == null || integer <= 0) {
-            throw new ServiceException(errStr);
-        }
-    }
-
-
-    /**
-     * 验证id是否正确
-     *
-     * @param id     参数
-     * @param errStr 异常提示
-     */
-    public static void isAaaignId(Object id, String errStr) {
-        if (id == null || id.toString().length() != 19) {
-            throw new ServiceException(errStr);
-        }
-    }
-
-}
+//
+//    /**
+//     * 断言不为空
+//     *
+//     * @param obj    参数
+//     * @param errStr 异常提示
+//     */
+//    public static void notEmpty(Object obj, String errStr) {
+//        if (ObjectUtil.isEmpty(obj)) {
+//            throw new ServiceException(errStr);
+//        }
+//    }
+//
+//    /**
+//     * 断言为0
+//     *
+//     * @param integer 参数
+//     * @param errStr  异常提示
+//     */
+//    public static void eqZero(Integer integer, String errStr) {
+//        if (integer != 0) {
+//            throw new ServiceException(errStr);
+//        }
+//    }
+//
+//    /**
+//     * 断言为0
+//     *
+//     * @param integer 参数
+//     * @param errStr  异常提示
+//     */
+//    public static void eqZero(Long integer, String errStr) {
+//        if (integer != 0) {
+//            throw new ServiceException(errStr);
+//        }
+//    }
+//
+//    /**
+//     * 断言为1
+//     *
+//     * @param along  参数
+//     * @param errStr 异常提示
+//     */
+//    public static void eqOne(Long along, String errStr) {
+//        if (along != 1) {
+//            throw new ServiceException(errStr);
+//        }
+//    }
+//
+//    /**
+//     * 断言为1
+//     *
+//     * @param integer 参数
+//     * @param errStr  异常提示
+//     */
+//    public static void eqOne(Integer integer, String errStr) {
+//        if (integer != 1) {
+//            throw new ServiceException(errStr);
+//        }
+//    }
+//
+//    /**
+//     * 断言为真
+//     *
+//     * @param flag   参数
+//     * @param errStr 异常提示
+//     */
+//    public static void eqTrue(Boolean flag, String errStr) {
+//        if (flag == null || flag.equals(false)) {
+//            throw new ServiceException(errStr);
+//        }
+//    }
+//
+//    /**
+//     * 断言大于0
+//     *
+//     * @param bigDecimal 参数
+//     * @param errStr     异常提示
+//     */
+//    public static void gtZero(BigDecimal bigDecimal, String errStr) {
+//        if (bigDecimal == null || BigDecimal.ZERO.compareTo(bigDecimal) > 0) {
+//            throw new ServiceException(errStr);
+//        }
+//    }
+//
+//    /**
+//     * 断言大于等于0
+//     *
+//     * @param bigDecimal 参数
+//     * @param errStr     异常提示
+//     */
+//    public static void geZero(BigDecimal bigDecimal, String errStr) {
+//        if (bigDecimal == null || BigDecimal.ZERO.compareTo(bigDecimal) >= 0) {
+//            throw new ServiceException(errStr);
+//        }
+//    }
+//
+//
+//    /**
+//     * 断言大于0
+//     *
+//     * @param integer 参数
+//     * @param errStr  异常提示
+//     */
+//    public static void gtZero(Integer integer, String errStr) {
+//        if (integer == null || integer <= 0) {
+//            throw new ServiceException(errStr);
+//        }
+//    }
+//
+//
+//    /**
+//     * 验证id是否正确
+//     *
+//     * @param id     参数
+//     * @param errStr 异常提示
+//     */
+//    public static void isAaaignId(Object id, String errStr) {
+//        if (id == null || id.toString().length() != 19) {
+//            throw new ServiceException(errStr);
+//        }
+//    }
+//
+//}

文件差异内容过多而无法显示
+ 0 - 170
hx-common/src/main/java/com/fjhx/common/utils/ExchangeRateUtil.java


部分文件因为文件数量过多而无法显示