Showing
7 changed files
with
69 additions
and
7 deletions
| 1 | +package com.lframework.xingyun.sc.bo; | |
| 2 | + | |
| 3 | +import io.swagger.annotations.ApiModelProperty; | |
| 4 | +import lombok.Data; | |
| 5 | + | |
| 6 | +@Data | |
| 7 | +public class FileInfo { | |
| 8 | + | |
| 9 | + /** | |
| 10 | + * 文件ID | |
| 11 | + */ | |
| 12 | + @ApiModelProperty("文件ID") | |
| 13 | + private String fileId; | |
| 14 | + | |
| 15 | + /** | |
| 16 | + * 文件名称 | |
| 17 | + */ | |
| 18 | + @ApiModelProperty("文件名称") | |
| 19 | + private String fileName; | |
| 20 | +} | ... | ... |
| 1 | 1 | package com.lframework.xingyun.sc.bo.customer.credit; |
| 2 | 2 | |
| 3 | -import com.baomidou.mybatisplus.annotation.TableField; | |
| 4 | 3 | import com.fasterxml.jackson.annotation.JsonFormat; |
| 5 | 4 | import com.fasterxml.jackson.annotation.JsonIgnore; |
| 6 | 5 | import com.lframework.starter.web.core.dto.BaseDto; |
| 6 | +import com.lframework.xingyun.sc.bo.FileInfo; | |
| 7 | 7 | import com.lframework.xingyun.sc.entity.CorePersonnel; |
| 8 | 8 | import com.lframework.xingyun.sc.entity.CustomerCredit; |
| 9 | -import java.math.BigDecimal; | |
| 10 | 9 | import com.lframework.starter.common.constants.StringPool; |
| 11 | 10 | import com.lframework.starter.web.core.bo.BaseBo; |
| 12 | 11 | |
| ... | ... | @@ -14,7 +13,6 @@ import java.time.LocalDate; |
| 14 | 13 | import java.time.LocalDateTime; |
| 15 | 14 | import java.util.List; |
| 16 | 15 | |
| 17 | -import com.lframework.starter.web.core.components.validation.TypeMismatch; | |
| 18 | 16 | import io.swagger.annotations.ApiModelProperty; |
| 19 | 17 | |
| 20 | 18 | import lombok.Data; |
| ... | ... | @@ -409,6 +407,12 @@ public class GetCustomerCreditBo extends BaseBo<CustomerCredit> implements BaseD |
| 409 | 407 | private String businessFileId; |
| 410 | 408 | |
| 411 | 409 | /** |
| 410 | + * 工商信息文件列表(JSON数组) | |
| 411 | + */ | |
| 412 | + @ApiModelProperty(value = "工商信息文件列表(JSON数组)") | |
| 413 | + private List<FileInfo> businessFileInfoList; | |
| 414 | + | |
| 415 | + /** | |
| 412 | 416 | * 股东信息文件名 |
| 413 | 417 | */ |
| 414 | 418 | @ApiModelProperty(value = "股东信息文件名") |
| ... | ... | @@ -421,6 +425,12 @@ public class GetCustomerCreditBo extends BaseBo<CustomerCredit> implements BaseD |
| 421 | 425 | private String shareholderFileId; |
| 422 | 426 | |
| 423 | 427 | /** |
| 428 | + * 股东信息文件列表(JSON数组) | |
| 429 | + */ | |
| 430 | + @ApiModelProperty(value = "股东信息文件列表(JSON数组)") | |
| 431 | + private List<FileInfo> shareholderFileInfoList; | |
| 432 | + | |
| 433 | + /** | |
| 424 | 434 | * 所属营销部分管 |
| 425 | 435 | */ |
| 426 | 436 | @ApiModelProperty(value = "所属营销部分管") | ... | ... |
xingyun-sc/src/main/java/com/lframework/xingyun/sc/controller/customer/CustomerCreditController.java
| ... | ... | @@ -20,6 +20,7 @@ import com.lframework.starter.web.inner.entity.SysUser; |
| 20 | 20 | import com.lframework.starter.web.inner.service.system.SysUserService; |
| 21 | 21 | import com.lframework.xingyun.basedata.entity.Customer; |
| 22 | 22 | import com.lframework.xingyun.basedata.service.customer.CustomerService; |
| 23 | +import com.lframework.xingyun.sc.bo.FileInfo; | |
| 23 | 24 | import com.lframework.xingyun.sc.bo.customer.credit.GetCustomerCreditBo; |
| 24 | 25 | import com.lframework.xingyun.sc.entity.CorePersonnel; |
| 25 | 26 | import com.lframework.xingyun.sc.entity.CustomerCredit; |
| ... | ... | @@ -485,6 +486,12 @@ public class CustomerCreditController extends DefaultBaseController { |
| 485 | 486 | private GetCustomerCreditBo packCustomerCreditData(CustomerCredit credit) { |
| 486 | 487 | // 处理关联数据 |
| 487 | 488 | GetCustomerCreditBo data = new GetCustomerCreditBo(credit); |
| 489 | + if (StringUtil.isNotEmpty(credit.getBusinessFileList())) { | |
| 490 | + data.setBusinessFileInfoList(JsonUtil.parseList(credit.getBusinessFileList(), FileInfo.class)); | |
| 491 | + } | |
| 492 | + if (StringUtil.isNotEmpty(credit.getShareholderFileList())) { | |
| 493 | + data.setShareholderFileInfoList(JsonUtil.parseList(credit.getShareholderFileList(), FileInfo.class)); | |
| 494 | + } | |
| 488 | 495 | //获取核心人员信息 |
| 489 | 496 | QueryCorePersonnelVo vo = new QueryCorePersonnelVo(); |
| 490 | 497 | vo.setCreditId(credit.getId()); | ... | ... |
| ... | ... | @@ -323,6 +323,11 @@ public class CustomerCredit extends BaseEntity implements BaseDto { |
| 323 | 323 | private String businessFileId; |
| 324 | 324 | |
| 325 | 325 | /** |
| 326 | + * 工商信息文件列表(JSON文本) | |
| 327 | + */ | |
| 328 | + private String businessFileList; | |
| 329 | + | |
| 330 | + /** | |
| 326 | 331 | * 股东信息文件名 |
| 327 | 332 | */ |
| 328 | 333 | private String shareholderFileName; |
| ... | ... | @@ -333,6 +338,11 @@ public class CustomerCredit extends BaseEntity implements BaseDto { |
| 333 | 338 | private String shareholderFileId; |
| 334 | 339 | |
| 335 | 340 | /** |
| 341 | + * 股东信息文件列表(JSON文本) | |
| 342 | + */ | |
| 343 | + private String shareholderFileList; | |
| 344 | + | |
| 345 | + /** | |
| 336 | 346 | * 所属营销部分管 |
| 337 | 347 | */ |
| 338 | 348 | private String marketingDepartmentManagement; | ... | ... |
| ... | ... | @@ -1134,10 +1134,8 @@ public class CustomerCreditServiceImpl extends BaseMpServiceImpl<CustomerCreditM |
| 1134 | 1134 | .set(CustomerCredit::getCompanyCreditLimit, StringUtil.isBlank(vo.getCompanyCreditLimit()) ? null : vo.getCompanyCreditLimit()) |
| 1135 | 1135 | .set(CustomerCredit::getCompanyMaterialSupplyPlan, StringUtil.isBlank(vo.getCompanyMaterialSupplyPlan()) ? null : vo.getCompanyMaterialSupplyPlan()) |
| 1136 | 1136 | .set(CustomerCredit::getCompanySuggestedCategory, vo.getCompanySuggestedCategory()) |
| 1137 | - .set(CustomerCredit::getBusinessFileName, StringUtil.isBlank(vo.getBusinessFileName()) ? null : vo.getBusinessFileName()) | |
| 1138 | - .set(CustomerCredit::getBusinessFileId, StringUtil.isBlank(vo.getBusinessFileId()) ? null : vo.getBusinessFileId()) | |
| 1139 | - .set(CustomerCredit::getShareholderFileName, StringUtil.isBlank(vo.getShareholderFileName()) ? null : vo.getShareholderFileName()) | |
| 1140 | - .set(CustomerCredit::getShareholderFileId, StringUtil.isBlank(vo.getShareholderFileId()) ? null : vo.getShareholderFileId()) | |
| 1137 | + .set(CustomerCredit::getBusinessFileList, CollectionUtils.isEmpty(vo.getBusinessFileList()) ? null : JsonUtil.toJsonString(vo.getBusinessFileList())) | |
| 1138 | + .set(CustomerCredit::getShareholderFileList, CollectionUtils.isEmpty(vo.getShareholderFileList()) ? null : JsonUtil.toJsonString(vo.getShareholderFileList())) | |
| 1141 | 1139 | .eq(CustomerCredit::getId, vo.getId()); |
| 1142 | 1140 | |
| 1143 | 1141 | getBaseMapper().update(updateWrapper); | ... | ... |
| 1 | 1 | package com.lframework.xingyun.sc.vo.customer.credit; |
| 2 | 2 | |
| 3 | 3 | import com.baomidou.mybatisplus.annotation.TableField; |
| 4 | +import com.lframework.xingyun.sc.bo.FileInfo; | |
| 4 | 5 | import lombok.Data; |
| 5 | 6 | import java.math.BigDecimal; |
| 6 | 7 | import javax.validation.constraints.NotBlank; |
| ... | ... | @@ -426,6 +427,12 @@ public class UpdateCustomerCreditVo implements BaseVo, Serializable { |
| 426 | 427 | private String businessFileId; |
| 427 | 428 | |
| 428 | 429 | /** |
| 430 | + * 工商信息文件列表(JSON数组) | |
| 431 | + */ | |
| 432 | + @ApiModelProperty(value = "工商信息文件列表(JSON数组)") | |
| 433 | + private List<FileInfo> businessFileList; | |
| 434 | + | |
| 435 | + /** | |
| 429 | 436 | * 股东信息文件名 |
| 430 | 437 | */ |
| 431 | 438 | @ApiModelProperty(value = "股东信息文件名") |
| ... | ... | @@ -438,6 +445,12 @@ public class UpdateCustomerCreditVo implements BaseVo, Serializable { |
| 438 | 445 | private String shareholderFileId; |
| 439 | 446 | |
| 440 | 447 | /** |
| 448 | + * 股东信息文件列表(JSON数组) | |
| 449 | + */ | |
| 450 | + @ApiModelProperty(value = "股东信息文件列表(JSON数组)") | |
| 451 | + private List<FileInfo> shareholderFileList; | |
| 452 | + | |
| 453 | + /** | |
| 441 | 454 | * 客户资信历史记录id |
| 442 | 455 | */ |
| 443 | 456 | @ApiModelProperty(value = "客户资信历史记录id") | ... | ... |
| ... | ... | @@ -61,8 +61,10 @@ |
| 61 | 61 | <result column="company_suggested_category" property="companySuggestedCategory"/> |
| 62 | 62 | <result column="business_file_name" property="businessFileName"/> |
| 63 | 63 | <result column="business_file_id" property="businessFileId"/> |
| 64 | + <result column="business_file_list" property="businessFileList"/> | |
| 64 | 65 | <result column="shareholder_file_name" property="shareholderFileName"/> |
| 65 | 66 | <result column="shareholder_file_id" property="shareholderFileId"/> |
| 67 | + <result column="shareholder_file_list" property="shareholderFileList"/> | |
| 66 | 68 | <result column="marketing_department_management" property="marketingDepartmentManagement"/> |
| 67 | 69 | <result column="marketing_department_supervisor" property="marketingDepartmentSupervisor"/> |
| 68 | 70 | <result column="marketing_center_supervisor" property="marketingCenterSupervisor"/> |
| ... | ... | @@ -139,11 +141,13 @@ |
| 139 | 141 | tb.status, |
| 140 | 142 | tb.business_file_name, |
| 141 | 143 | tb.business_file_id, |
| 144 | + tb.business_file_list, | |
| 142 | 145 | tb.shareholder_file_name, |
| 143 | 146 | tb.marketing_department_management, |
| 144 | 147 | tb.marketing_department_supervisor, |
| 145 | 148 | tb.marketing_center_supervisor, |
| 146 | 149 | tb.shareholder_file_id, |
| 150 | + tb.shareholder_file_list, | |
| 147 | 151 | tb.enterprise_operation_type, |
| 148 | 152 | tb.frozen_status, |
| 149 | 153 | tb.is_change, | ... | ... |