Showing
7 changed files
with
20 additions
and
4 deletions
xingyun-sc/src/main/java/com/lframework/xingyun/sc/controller/customer/CustomerCreditController.java
| ... | ... | @@ -314,13 +314,14 @@ public class CustomerCreditController extends DefaultBaseController { |
| 314 | 314 | Collections.singletonList("1. 带*是必填项"), |
| 315 | 315 | Collections.singletonList("2. 办事处要是全称:例如 北方办事处"), |
| 316 | 316 | Collections.singletonList("3. 区域要是全称:例如 山东区域"), |
| 317 | - Collections.singletonList("4. 企业类型只能是:经销商、终端"), | |
| 317 | + Collections.singletonList("4. 企业类型只能是:经销商、终端、外贸"), | |
| 318 | 318 | Collections.singletonList("5. 注册资本格式:100 或 100万元"), |
| 319 | 319 | Collections.singletonList("6. 登记日期、注册时间格式:2025年3月21日 或 2025-03-21 或 2025/3/21"), |
| 320 | 320 | Collections.singletonList("7. 年龄格式:正整数,不要带单位 例如 25"), |
| 321 | 321 | Collections.singletonList("8. 性别格式:男 或 女"), |
| 322 | 322 | Collections.singletonList("9. 员工人数格式:正整数,不要带单位 例如 25"), |
| 323 | - Collections.singletonList("10. 建议客户分类格式:只能为:AAA、AA、A、BBB、BB、B、C、D") | |
| 323 | + Collections.singletonList("10. 建议客户分类格式:只能为:AAA、AA、A、BBB、BB、B、C、D"), | |
| 324 | + Collections.singletonList("11. 调查人:只能是系统中存在的人") | |
| 324 | 325 | ); |
| 325 | 326 | |
| 326 | 327 | try (OutputStream out = response.getOutputStream()) { | ... | ... |
xingyun-sc/src/main/java/com/lframework/xingyun/sc/controller/order/PurchaseOrderInfoController.java
| ... | ... | @@ -407,7 +407,8 @@ public class PurchaseOrderInfoController extends DefaultBaseController { |
| 407 | 407 | String et = data.getEnterpriseType(); |
| 408 | 408 | dataMap.put("enterpriseType", |
| 409 | 409 | "DEALER".equals(et) ? "经销商" : |
| 410 | - "TERMINAL".equals(et) ? "终端" : ""); | |
| 410 | + "TERMINAL".equals(et) ? "终端" : | |
| 411 | + "FOREIGN".equals(et) ? "外贸" : ""); | |
| 411 | 412 | //办事处 |
| 412 | 413 | dataMap.put("deptName", data.getDeptName() == null ? "" : data.getDeptName()); |
| 413 | 414 | //区域 | ... | ... |
| ... | ... | @@ -187,6 +187,9 @@ public class CustomerDevelopExportModel extends BaseBo<GetCustomerDevelopPlanBo> |
| 187 | 187 | case "TERMINAL": |
| 188 | 188 | this.customerTypeName = "终端"; |
| 189 | 189 | break; |
| 190 | + case "FOREIGN": | |
| 191 | + this.customerTypeName = "外贸"; | |
| 192 | + break; | |
| 190 | 193 | default: |
| 191 | 194 | break; |
| 192 | 195 | } | ... | ... |
| ... | ... | @@ -374,6 +374,9 @@ public class CustomerCreditExportModel extends BaseBo<GetCustomerCreditBo> imple |
| 374 | 374 | case "TERMINAL": |
| 375 | 375 | this.enterpriseType = "终端"; |
| 376 | 376 | break; |
| 377 | + case "FOREIGN": | |
| 378 | + this.enterpriseType = "外贸"; | |
| 379 | + break; | |
| 377 | 380 | default: |
| 378 | 381 | break; |
| 379 | 382 | } | ... | ... |
| ... | ... | @@ -152,6 +152,8 @@ public class CustomerCreditImportListener extends ExcelImportListener<CustomerCr |
| 152 | 152 | data.setEnterpriseType("DEALER"); |
| 153 | 153 | } else if ("终端".equals(data.getEnterpriseType())) { |
| 154 | 154 | data.setEnterpriseType("TERMINAL"); |
| 155 | + } else if ("外贸".equals(data.getEnterpriseType())) { | |
| 156 | + data.setEnterpriseType("FOREIGN"); | |
| 155 | 157 | } else { |
| 156 | 158 | throw new DefaultClientException( |
| 157 | 159 | "第" + context.readRowHolder().getRowIndex() + "行“企业类型”不存在"); | ... | ... |
| ... | ... | @@ -348,6 +348,8 @@ public class CustomerCreditHistoryServiceImpl extends BaseMpServiceImpl<Customer |
| 348 | 348 | value1 = "终端"; |
| 349 | 349 | } else if ("DEALER".equals(data.getEnterpriseType())) { |
| 350 | 350 | value1 = "经销商"; |
| 351 | + } else if ("FOREIGN".equals(data.getEnterpriseType())) { | |
| 352 | + value1 = "外贸"; | |
| 351 | 353 | } |
| 352 | 354 | } |
| 353 | 355 | if (StringUtil.isNotEmpty(customerCreditHistory.getEnterpriseType())) { |
| ... | ... | @@ -355,6 +357,8 @@ public class CustomerCreditHistoryServiceImpl extends BaseMpServiceImpl<Customer |
| 355 | 357 | value2 = "终端"; |
| 356 | 358 | } else if ("DEALER".equals(customerCreditHistory.getEnterpriseType())) { |
| 357 | 359 | value2 = "经销商"; |
| 360 | + } else if ("FOREIGN".equals(customerCreditHistory.getEnterpriseType())) { | |
| 361 | + value2 = "外贸"; | |
| 358 | 362 | } |
| 359 | 363 | } |
| 360 | 364 | } | ... | ... |
| ... | ... | @@ -1410,7 +1410,9 @@ public class CustomerCreditServiceImpl extends BaseMpServiceImpl<CustomerCreditM |
| 1410 | 1410 | enterpriseType = "经销商"; |
| 1411 | 1411 | } else if ("TERMINAL".equals(data.getEnterpriseType())) { |
| 1412 | 1412 | enterpriseType = "终端"; |
| 1413 | - } else { | |
| 1413 | + } else if ("FOREIGN".equals(data.getEnterpriseType())) { | |
| 1414 | + enterpriseType = "外贸"; | |
| 1415 | + } else { | |
| 1414 | 1416 | enterpriseType = data.getEnterpriseType(); |
| 1415 | 1417 | } |
| 1416 | 1418 | data.setEnterpriseType(enterpriseType); | ... | ... |