Showing
13 changed files
with
26 additions
and
62 deletions
| @@ -108,10 +108,10 @@ public class GetCustomerCreditBo extends BaseBo<CustomerCredit> implements BaseD | @@ -108,10 +108,10 @@ public class GetCustomerCreditBo extends BaseBo<CustomerCredit> implements BaseD | ||
| 108 | private String companyAddress; | 108 | private String companyAddress; |
| 109 | 109 | ||
| 110 | /** | 110 | /** |
| 111 | - * 注册资本(单位:万元) | 111 | + * 注册资本 |
| 112 | */ | 112 | */ |
| 113 | - @ApiModelProperty("注册资本(单位:万元)") | ||
| 114 | - private BigDecimal registeredCapital; | 113 | + @ApiModelProperty("注册资本") |
| 114 | + private String registeredCapital; | ||
| 115 | 115 | ||
| 116 | /** | 116 | /** |
| 117 | * 账号 | 117 | * 账号 |
| @@ -107,10 +107,10 @@ public class GetCustomerCreditHistoryBo extends BaseBo<CustomerCreditHistory> { | @@ -107,10 +107,10 @@ public class GetCustomerCreditHistoryBo extends BaseBo<CustomerCreditHistory> { | ||
| 107 | private String companyAddress; | 107 | private String companyAddress; |
| 108 | 108 | ||
| 109 | /** | 109 | /** |
| 110 | - * 注册资本(单位:万元) | 110 | + * 注册资本 |
| 111 | */ | 111 | */ |
| 112 | - @ApiModelProperty("注册资本(单位:万元)") | ||
| 113 | - private BigDecimal registeredCapital; | 112 | + @ApiModelProperty("注册资本") |
| 113 | + private String registeredCapital; | ||
| 114 | 114 | ||
| 115 | /** | 115 | /** |
| 116 | * 账号 | 116 | * 账号 |
| 1 | package com.lframework.xingyun.sc.entity; | 1 | package com.lframework.xingyun.sc.entity; |
| 2 | 2 | ||
| 3 | import com.baomidou.mybatisplus.annotation.TableName; | 3 | import com.baomidou.mybatisplus.annotation.TableName; |
| 4 | -import java.math.BigDecimal; | ||
| 5 | import com.lframework.starter.web.core.dto.BaseDto; | 4 | import com.lframework.starter.web.core.dto.BaseDto; |
| 6 | 5 | ||
| 7 | import java.time.LocalDate; | 6 | import java.time.LocalDate; |
| @@ -9,7 +8,6 @@ import java.time.LocalDateTime; | @@ -9,7 +8,6 @@ import java.time.LocalDateTime; | ||
| 9 | import com.baomidou.mybatisplus.annotation.FieldFill; | 8 | import com.baomidou.mybatisplus.annotation.FieldFill; |
| 10 | import com.lframework.starter.web.core.entity.BaseEntity; | 9 | import com.lframework.starter.web.core.entity.BaseEntity; |
| 11 | import com.baomidou.mybatisplus.annotation.TableField; | 10 | import com.baomidou.mybatisplus.annotation.TableField; |
| 12 | -import io.swagger.annotations.ApiModelProperty; | ||
| 13 | import lombok.Data; | 11 | import lombok.Data; |
| 14 | 12 | ||
| 15 | /** | 13 | /** |
| @@ -95,9 +93,9 @@ public class CustomerCredit extends BaseEntity implements BaseDto { | @@ -95,9 +93,9 @@ public class CustomerCredit extends BaseEntity implements BaseDto { | ||
| 95 | private String companyAddress; | 93 | private String companyAddress; |
| 96 | 94 | ||
| 97 | /** | 95 | /** |
| 98 | - * 注册资本(单位:万元) | 96 | + * 注册资本 |
| 99 | */ | 97 | */ |
| 100 | - private BigDecimal registeredCapital; | 98 | + private String registeredCapital; |
| 101 | 99 | ||
| 102 | /** | 100 | /** |
| 103 | * 账号 | 101 | * 账号 |
| @@ -95,10 +95,10 @@ public class CustomerCreditHistory extends BaseEntity implements BaseDto { | @@ -95,10 +95,10 @@ public class CustomerCreditHistory extends BaseEntity implements BaseDto { | ||
| 95 | private String companyAddress; | 95 | private String companyAddress; |
| 96 | 96 | ||
| 97 | /** | 97 | /** |
| 98 | - * 注册资本(单位:万元) | 98 | + * 注册资本 |
| 99 | */ | 99 | */ |
| 100 | @Label("注册资本") | 100 | @Label("注册资本") |
| 101 | - private BigDecimal registeredCapital; | 101 | + private String registeredCapital; |
| 102 | 102 | ||
| 103 | /** | 103 | /** |
| 104 | * 账号 | 104 | * 账号 |
| @@ -32,50 +32,42 @@ public class CustomerCreditChangeImportModel implements ExcelModel { | @@ -32,50 +32,42 @@ public class CustomerCreditChangeImportModel implements ExcelModel { | ||
| 32 | /** | 32 | /** |
| 33 | * 年度总销量 | 33 | * 年度总销量 |
| 34 | */ | 34 | */ |
| 35 | - @ExcelRequired | ||
| 36 | @ExcelProperty("年度总销量(吨)") | 35 | @ExcelProperty("年度总销量(吨)") |
| 37 | private String annualTotalSales; | 36 | private String annualTotalSales; |
| 38 | 37 | ||
| 39 | /** | 38 | /** |
| 40 | * 主要行业 | 39 | * 主要行业 |
| 41 | */ | 40 | */ |
| 42 | - @ExcelRequired | ||
| 43 | @ExcelProperty("主要行业") | 41 | @ExcelProperty("主要行业") |
| 44 | private String mainIndustry; | 42 | private String mainIndustry; |
| 45 | 43 | ||
| 46 | - @ExcelRequired | ||
| 47 | @ExcelProperty("占用天数(天)") | 44 | @ExcelProperty("占用天数(天)") |
| 48 | private String occupationDays; | 45 | private String occupationDays; |
| 49 | 46 | ||
| 50 | - @ExcelRequired | ||
| 51 | @ExcelProperty("吨盈利(元/吨)") | 47 | @ExcelProperty("吨盈利(元/吨)") |
| 52 | private String profitPerTon; | 48 | private String profitPerTon; |
| 53 | 49 | ||
| 54 | /** | 50 | /** |
| 55 | * 结算期限 | 51 | * 结算期限 |
| 56 | */ | 52 | */ |
| 57 | - @ExcelRequired | ||
| 58 | @ExcelProperty("结算期限") | 53 | @ExcelProperty("结算期限") |
| 59 | private String companySettlementPeriod; | 54 | private String companySettlementPeriod; |
| 60 | 55 | ||
| 61 | /** | 56 | /** |
| 62 | * 授信额度 | 57 | * 授信额度 |
| 63 | */ | 58 | */ |
| 64 | - @ExcelRequired | ||
| 65 | @ExcelProperty("授信额度(万元)") | 59 | @ExcelProperty("授信额度(万元)") |
| 66 | private String companyCreditLimit; | 60 | private String companyCreditLimit; |
| 67 | 61 | ||
| 68 | /** | 62 | /** |
| 69 | * 加工操作方案 | 63 | * 加工操作方案 |
| 70 | */ | 64 | */ |
| 71 | - @ExcelRequired | ||
| 72 | @ExcelProperty("加工操作方案") | 65 | @ExcelProperty("加工操作方案") |
| 73 | private String companyMaterialSupplyPlan; | 66 | private String companyMaterialSupplyPlan; |
| 74 | 67 | ||
| 75 | /** | 68 | /** |
| 76 | * 客户分类 | 69 | * 客户分类 |
| 77 | */ | 70 | */ |
| 78 | - @ExcelRequired | ||
| 79 | @ExcelProperty("客户分类") | 71 | @ExcelProperty("客户分类") |
| 80 | private String companySuggestedCategory; | 72 | private String companySuggestedCategory; |
| 81 | } | 73 | } |
| @@ -68,10 +68,10 @@ public class CustomerCreditExportModel extends BaseBo<GetCustomerCreditBo> imple | @@ -68,10 +68,10 @@ public class CustomerCreditExportModel extends BaseBo<GetCustomerCreditBo> imple | ||
| 68 | private String companyAddress; | 68 | private String companyAddress; |
| 69 | 69 | ||
| 70 | /** | 70 | /** |
| 71 | - * 注册资本(单位:万元) | 71 | + * 注册资本 |
| 72 | */ | 72 | */ |
| 73 | @ExcelProperty("注册资本") | 73 | @ExcelProperty("注册资本") |
| 74 | - private BigDecimal registeredCapital; | 74 | + private String registeredCapital; |
| 75 | 75 | ||
| 76 | /** | 76 | /** |
| 77 | * 账号 | 77 | * 账号 |
| @@ -159,21 +159,6 @@ public class CustomerCreditImportListener extends ExcelImportListener<CustomerCr | @@ -159,21 +159,6 @@ public class CustomerCreditImportListener extends ExcelImportListener<CustomerCr | ||
| 159 | "第" + context.readRowHolder().getRowIndex() + "行“企业类型”不存在"); | 159 | "第" + context.readRowHolder().getRowIndex() + "行“企业类型”不存在"); |
| 160 | } | 160 | } |
| 161 | } | 161 | } |
| 162 | - //注册资本 | ||
| 163 | - if (data.getRegisteredCapitalStr() != null) { | ||
| 164 | - try { | ||
| 165 | - data.setRegisteredCapital(new BigDecimal(data.getRegisteredCapitalStr())); | ||
| 166 | - } catch (NumberFormatException ignored) { | ||
| 167 | - Matcher matcher = WAN_PATTERN.matcher(data.getRegisteredCapitalStr()); | ||
| 168 | - if (matcher.matches()) { | ||
| 169 | - BigDecimal number = new BigDecimal(matcher.group(1)); | ||
| 170 | - data.setRegisteredCapital(number); | ||
| 171 | - } else { | ||
| 172 | - throw new DefaultClientException( | ||
| 173 | - "第" + context.readRowHolder().getRowIndex() + "行“注册资本”格式错误"); | ||
| 174 | - } | ||
| 175 | - } | ||
| 176 | - } | ||
| 177 | //注册时间 | 162 | //注册时间 |
| 178 | if (data.getRegistrationTimeStr() != null) { | 163 | if (data.getRegistrationTimeStr() != null) { |
| 179 | String dateStr = data.getRegistrationTimeStr().trim(); | 164 | String dateStr = data.getRegistrationTimeStr().trim(); |
| @@ -5,7 +5,6 @@ import com.alibaba.excel.annotation.ExcelProperty; | @@ -5,7 +5,6 @@ import com.alibaba.excel.annotation.ExcelProperty; | ||
| 5 | import com.lframework.starter.web.core.annotations.excel.ExcelRequired; | 5 | import com.lframework.starter.web.core.annotations.excel.ExcelRequired; |
| 6 | import com.lframework.starter.web.core.components.excel.ExcelModel; | 6 | import com.lframework.starter.web.core.components.excel.ExcelModel; |
| 7 | import lombok.Data; | 7 | import lombok.Data; |
| 8 | -import java.math.BigDecimal; | ||
| 9 | import java.time.LocalDate; | 8 | import java.time.LocalDate; |
| 10 | 9 | ||
| 11 | @Data | 10 | @Data |
| @@ -109,16 +108,10 @@ public class CustomerCreditImportModel implements ExcelModel { | @@ -109,16 +108,10 @@ public class CustomerCreditImportModel implements ExcelModel { | ||
| 109 | private String companyAddress; | 108 | private String companyAddress; |
| 110 | 109 | ||
| 111 | /** | 110 | /** |
| 112 | - * 注册资本(万元) | ||
| 113 | - */ | ||
| 114 | - @ExcelIgnore | ||
| 115 | - private BigDecimal registeredCapital; | ||
| 116 | - | ||
| 117 | - /** | ||
| 118 | * 注册资本 | 111 | * 注册资本 |
| 119 | */ | 112 | */ |
| 120 | - @ExcelProperty("注册资本(万元)") | ||
| 121 | - private String registeredCapitalStr; | 113 | + @ExcelProperty("注册资本") |
| 114 | + private String registeredCapital; | ||
| 122 | 115 | ||
| 123 | /** | 116 | /** |
| 124 | * 账号 | 117 | * 账号 |
| @@ -1461,7 +1461,8 @@ public class CustomerCreditServiceImpl extends BaseMpServiceImpl<CustomerCreditM | @@ -1461,7 +1461,8 @@ public class CustomerCreditServiceImpl extends BaseMpServiceImpl<CustomerCreditM | ||
| 1461 | Files.createDirectories(dirPath); | 1461 | Files.createDirectories(dirPath); |
| 1462 | } | 1462 | } |
| 1463 | // 3. 生成唯一文件名 | 1463 | // 3. 生成唯一文件名 |
| 1464 | - String fileName = "资信报告_" + System.currentTimeMillis() + ".docx"; | 1464 | + String companyName = credit.getCompanyName(); |
| 1465 | + String fileName = companyName + "-资信调查表.docx"; | ||
| 1465 | String outputPath = dirPath.resolve(fileName).toString(); | 1466 | String outputPath = dirPath.resolve(fileName).toString(); |
| 1466 | 1467 | ||
| 1467 | // 5. 重新打包为 .docx | 1468 | // 5. 重新打包为 .docx |
| 1 | package com.lframework.xingyun.sc.vo.customer.credit; | 1 | package com.lframework.xingyun.sc.vo.customer.credit; |
| 2 | 2 | ||
| 3 | -import java.math.BigDecimal; | ||
| 4 | import javax.validation.constraints.NotBlank; | 3 | import javax.validation.constraints.NotBlank; |
| 5 | import java.time.LocalDate; | 4 | import java.time.LocalDate; |
| 6 | import com.lframework.starter.web.core.vo.BaseVo; | 5 | import com.lframework.starter.web.core.vo.BaseVo; |
| @@ -103,11 +102,10 @@ public class CreateCustomerCreditHistoryVo implements BaseVo, Serializable { | @@ -103,11 +102,10 @@ public class CreateCustomerCreditHistoryVo implements BaseVo, Serializable { | ||
| 103 | private String companyAddress; | 102 | private String companyAddress; |
| 104 | 103 | ||
| 105 | /** | 104 | /** |
| 106 | - * 注册资本(单位:万元) | 105 | + * 注册资本 |
| 107 | */ | 106 | */ |
| 108 | - @ApiModelProperty("注册资本(单位:万元)") | ||
| 109 | - @TypeMismatch(message = "注册资本(单位:万元)格式有误!") | ||
| 110 | - private BigDecimal registeredCapital; | 107 | + @ApiModelProperty("注册资本") |
| 108 | + private String registeredCapital; | ||
| 111 | 109 | ||
| 112 | /** | 110 | /** |
| 113 | * 账号 | 111 | * 账号 |
| 1 | package com.lframework.xingyun.sc.vo.customer.credit; | 1 | package com.lframework.xingyun.sc.vo.customer.credit; |
| 2 | 2 | ||
| 3 | -import java.math.BigDecimal; | ||
| 4 | import javax.validation.constraints.NotBlank; | 3 | import javax.validation.constraints.NotBlank; |
| 5 | import java.time.LocalDate; | 4 | import java.time.LocalDate; |
| 6 | import com.lframework.starter.web.core.vo.BaseVo; | 5 | import com.lframework.starter.web.core.vo.BaseVo; |
| @@ -83,11 +82,10 @@ public class CreateCustomerCreditVo implements BaseVo, Serializable { | @@ -83,11 +82,10 @@ public class CreateCustomerCreditVo implements BaseVo, Serializable { | ||
| 83 | private String companyAddress; | 82 | private String companyAddress; |
| 84 | 83 | ||
| 85 | /** | 84 | /** |
| 86 | - * 注册资本(单位:万元) | 85 | + * 注册资本 |
| 87 | */ | 86 | */ |
| 88 | - @ApiModelProperty("注册资本(单位:万元)") | ||
| 89 | - @TypeMismatch(message = "注册资本(单位:万元)格式有误!") | ||
| 90 | - private BigDecimal registeredCapital; | 87 | + @ApiModelProperty("注册资本") |
| 88 | + private String registeredCapital; | ||
| 91 | 89 | ||
| 92 | /** | 90 | /** |
| 93 | * 账号 | 91 | * 账号 |
| @@ -92,11 +92,10 @@ public class UpdateCustomerCreditVo implements BaseVo, Serializable { | @@ -92,11 +92,10 @@ public class UpdateCustomerCreditVo implements BaseVo, Serializable { | ||
| 92 | private String companyAddress; | 92 | private String companyAddress; |
| 93 | 93 | ||
| 94 | /** | 94 | /** |
| 95 | - * 注册资本(单位:万元) | 95 | + * 注册资本 |
| 96 | */ | 96 | */ |
| 97 | - @ApiModelProperty("注册资本(单位:万元)") | ||
| 98 | - @TypeMismatch(message = "注册资本(单位:万元)格式有误!") | ||
| 99 | - private BigDecimal registeredCapital; | 97 | + @ApiModelProperty("注册资本") |
| 98 | + private String registeredCapital; | ||
| 100 | 99 | ||
| 101 | /** | 100 | /** |
| 102 | * 账号 | 101 | * 账号 |
| @@ -214,7 +214,7 @@ | @@ -214,7 +214,7 @@ | ||
| 214 | <w:sz w:val="16"/> | 214 | <w:sz w:val="16"/> |
| 215 | <w:szCs w:val="32"/> | 215 | <w:szCs w:val="32"/> |
| 216 | </w:rPr> | 216 | </w:rPr> |
| 217 | - <w:t xml:space="preserve"> ${region!}</w:t> | 217 | + <w:t xml:space="preserve"> ${regionName!}</w:t> |
| 218 | </w:r> | 218 | </w:r> |
| 219 | </w:p> | 219 | </w:p> |
| 220 | </w:tc> | 220 | </w:tc> |