Showing
12 changed files
with
18 additions
and
33 deletions
| ... | ... | @@ -80,7 +80,7 @@ CREATE TABLE IF NOT EXISTS `customer_credit` |
| 80 | 80 | `company_id` varchar(32) DEFAULT NULL COMMENT '单位名称', |
| 81 | 81 | `company_nature` varchar(100) DEFAULT NULL COMMENT '企业性质', |
| 82 | 82 | `company_address` varchar(100) DEFAULT NULL COMMENT '单位地址', |
| 83 | - `registered_capital` double DEFAULT NULL COMMENT '注册资本(单位:万元)', | |
| 83 | + `registered_capital` varchar(50) DEFAULT NULL COMMENT '注册资本', | |
| 84 | 84 | `bank_account` varchar(50) DEFAULT NULL COMMENT '账号', |
| 85 | 85 | `bank_name` varchar(100) DEFAULT NULL COMMENT '开户行', |
| 86 | 86 | `tax_number` varchar(50) DEFAULT NULL COMMENT '税号', |
| ... | ... | @@ -90,7 +90,7 @@ CREATE TABLE IF NOT EXISTS `customer_credit` |
| 90 | 90 | `business_property` varchar(50) DEFAULT NULL COMMENT '经营场地属性', |
| 91 | 91 | `land_area` varchar(200) DEFAULT NULL COMMENT '占地面积(平方米)', |
| 92 | 92 | `storage_conditions` varchar(100) DEFAULT NULL COMMENT '仓储条件', |
| 93 | - `employee_count` int DEFAULT NULL COMMENT '员工人数', | |
| 93 | + `employee_count` varchar(50) DEFAULT NULL COMMENT '员工人数', | |
| 94 | 94 | `equipment_attributes` varchar(100) DEFAULT NULL COMMENT '设备属性', |
| 95 | 95 | `asset_evaluation` varchar(200) DEFAULT NULL COMMENT '资产评估', |
| 96 | 96 | `last_year_sales` varchar(50) DEFAULT NULL COMMENT '上年度销售额(万元)', |
| ... | ... | @@ -163,7 +163,7 @@ CREATE TABLE IF NOT EXISTS `customer_credit_history` |
| 163 | 163 | `company_id` varchar(32) DEFAULT NULL COMMENT '单位名称', |
| 164 | 164 | `company_nature` varchar(100) DEFAULT NULL COMMENT '企业性质', |
| 165 | 165 | `company_address` varchar(100) DEFAULT NULL COMMENT '单位地址', |
| 166 | - `registered_capital` double DEFAULT NULL COMMENT '注册资本(单位:万元)', | |
| 166 | + `registered_capital` varchar(50) DEFAULT NULL COMMENT '注册资本', | |
| 167 | 167 | `bank_account` varchar(50) DEFAULT NULL COMMENT '账号', |
| 168 | 168 | `bank_name` varchar(100) DEFAULT NULL COMMENT '开户行', |
| 169 | 169 | `tax_number` varchar(50) DEFAULT NULL COMMENT '税号', |
| ... | ... | @@ -173,7 +173,7 @@ CREATE TABLE IF NOT EXISTS `customer_credit_history` |
| 173 | 173 | `business_property` varchar(50) DEFAULT NULL COMMENT '经营场地属性', |
| 174 | 174 | `land_area` varchar(200) DEFAULT NULL COMMENT '占地面积(平方米)', |
| 175 | 175 | `storage_conditions` varchar(100) DEFAULT NULL COMMENT '仓储条件', |
| 176 | - `employee_count` int DEFAULT NULL COMMENT '员工人数', | |
| 176 | + `employee_count` varchar(50) DEFAULT NULL COMMENT '员工人数', | |
| 177 | 177 | `equipment_attributes` varchar(100) DEFAULT NULL COMMENT '设备属性', |
| 178 | 178 | `asset_evaluation` varchar(200) DEFAULT NULL COMMENT '资产评估', |
| 179 | 179 | `last_year_sales` varchar(50) DEFAULT NULL COMMENT '上年度销售额(万元)', | ... | ... |
xingyun-sc/src/main/java/com/lframework/xingyun/sc/controller/customer/CustomerCreditController.java
| ... | ... | @@ -310,14 +310,14 @@ public class CustomerCreditController extends DefaultBaseController { |
| 310 | 310 | List<List<String>> noteRows = Arrays.asList( |
| 311 | 311 | Collections.singletonList("【重要填写说明】"), |
| 312 | 312 | Collections.singletonList("1. 带*是必填项"), |
| 313 | - Collections.singletonList("2. 办事处要是全称:例如 北方办事处"), | |
| 314 | - Collections.singletonList("3. 区域要是全称:例如 山东区域"), | |
| 313 | + Collections.singletonList("2. 办事处要是平台中存在的:例如 北方"), | |
| 314 | + Collections.singletonList("3. 区域要是平台中存在的:例如 山东"), | |
| 315 | 315 | Collections.singletonList("4. 企业类型只能是:经销商、终端、外贸"), |
| 316 | - Collections.singletonList("5. 注册资本格式:100 或 100万元,只支持数字类型"), | |
| 316 | + Collections.singletonList("5. 注册资本格式:文本格式"), | |
| 317 | 317 | Collections.singletonList("6. 登记日期、注册时间格式:2025年3月21日 或 2025-03-21 或 2025/3/21"), |
| 318 | 318 | Collections.singletonList("7. 年龄格式:正整数,不要带单位 例如 25"), |
| 319 | 319 | Collections.singletonList("8. 性别格式:男 或 女"), |
| 320 | - Collections.singletonList("9. 员工人数格式:正整数,不要带单位 例如 25"), | |
| 320 | + Collections.singletonList("9. 员工人数格式:文本格式"), | |
| 321 | 321 | Collections.singletonList("10. 建议客户分类格式:只能为:AAA、AA、A、BBB、BB、B、C、D"), |
| 322 | 322 | Collections.singletonList("11. 调查人:只能是系统中存在的人") |
| 323 | 323 | ); | ... | ... |
| ... | ... | @@ -213,15 +213,6 @@ public class CustomerCreditImportListener extends ExcelImportListener<CustomerCr |
| 213 | 213 | "第" + context.readRowHolder().getRowIndex() + "行”性别“格式错误!"); |
| 214 | 214 | } |
| 215 | 215 | } |
| 216 | - //员工人数 | |
| 217 | - if (data.getEmployeeCountStr() != null) { | |
| 218 | - try { | |
| 219 | - data.setEmployeeCount(Integer.parseInt(data.getEmployeeCountStr())); | |
| 220 | - } catch (Exception e) { | |
| 221 | - throw new DefaultClientException( | |
| 222 | - "第" + context.readRowHolder().getRowIndex() + "行”员工人数“格式错误!"); | |
| 223 | - } | |
| 224 | - } | |
| 225 | 216 | //结算期限 |
| 226 | 217 | if (StringUtil.isBlank(data.getSettlementPeriod())) { |
| 227 | 218 | throw new DefaultClientException( | ... | ... |
| ... | ... | @@ -280,14 +280,8 @@ public class CustomerCreditImportModel implements ExcelModel { |
| 280 | 280 | /** |
| 281 | 281 | * 员工人数 |
| 282 | 282 | */ |
| 283 | - @ExcelIgnore | |
| 284 | - private Integer employeeCount; | |
| 285 | - | |
| 286 | - /** | |
| 287 | - * 员工人数 | |
| 288 | - */ | |
| 289 | - @ExcelProperty("员工人数(人)") | |
| 290 | - private String employeeCountStr; | |
| 283 | + @ExcelProperty("员工人数") | |
| 284 | + private String employeeCount; | |
| 291 | 285 | |
| 292 | 286 | /** |
| 293 | 287 | * 设备属性 | ... | ... |
| ... | ... | @@ -175,7 +175,7 @@ public class CreateCustomerCreditHistoryVo implements BaseVo, Serializable { |
| 175 | 175 | */ |
| 176 | 176 | @ApiModelProperty("员工人数") |
| 177 | 177 | @TypeMismatch(message = "员工人数格式有误!") |
| 178 | - private Integer employeeCount; | |
| 178 | + private String employeeCount; | |
| 179 | 179 | |
| 180 | 180 | /** |
| 181 | 181 | * 设备属性 | ... | ... |
| ... | ... | @@ -155,7 +155,7 @@ public class CreateCustomerCreditVo implements BaseVo, Serializable { |
| 155 | 155 | */ |
| 156 | 156 | @ApiModelProperty("员工人数") |
| 157 | 157 | @TypeMismatch(message = "员工人数格式有误!") |
| 158 | - private Integer employeeCount; | |
| 158 | + private String employeeCount; | |
| 159 | 159 | |
| 160 | 160 | /** |
| 161 | 161 | * 设备属性 | ... | ... |
| ... | ... | @@ -166,7 +166,7 @@ public class UpdateCustomerCreditVo implements BaseVo, Serializable { |
| 166 | 166 | */ |
| 167 | 167 | @ApiModelProperty("员工人数") |
| 168 | 168 | @TypeMismatch(message = "员工人数格式有误!") |
| 169 | - private Integer employeeCount; | |
| 169 | + private String employeeCount; | |
| 170 | 170 | |
| 171 | 171 | /** |
| 172 | 172 | * 设备属性 | ... | ... |