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