feat(credit): 新增客户管理模块并优化字段类型

- 添加客户实体类 CreditCustomer 及相关控制器、服务、映射文件
- 统一将多个实体中的 LocalDate 和 BigDecimal 字段改为 String 类型
- 更新相关控制器逻辑,移除 ImportHelper 的日期和数值解析调用
- 修正 XML 映射文件中字段名引用错误的问题
- 调整部分表字段注释描述,如 defendant Appellee 改为 Appellee
This commit is contained in:
2025-12-22 08:51:12 +08:00
parent cb8cc3c530
commit 42ebdf5653
49 changed files with 543 additions and 489 deletions

View File

@@ -260,7 +260,7 @@ public class CreditBreachOfTrustController extends BaseController {
entity.setPlaintiffAppellant(param.getPlaintiffAppellant());
entity.setAppellee(param.getAppellee());
entity.setOtherPartiesThirdParty(param.getOtherPartiesThirdParty());
entity.setOccurrenceTime(ImportHelper.parseLocalDate(param.getOccurrenceTime(), "发生时间"));
entity.setOccurrenceTime(param.getOccurrenceTime());
entity.setCaseNumber(param.getCaseNumber());
entity.setCauseOfAction(param.getCauseOfAction());
entity.setInvolvedAmount(ImportHelper.parseBigDecimal(param.getInvolvedAmount(), "涉案金额"));

View File

@@ -264,7 +264,7 @@ public class CreditCaseFilingController extends BaseController {
entity.setPlaintiffAppellant(param.getPlaintiffAppellant());
entity.setAppellee(param.getAppellee());
entity.setOtherPartiesThirdParty(param.getOtherPartiesThirdParty());
entity.setOccurrenceTime(ImportHelper.parseLocalDate(param.getOccurrenceTime(), "发生时间"));
entity.setOccurrenceTime(param.getOccurrenceTime());
entity.setCaseNumber(param.getCaseNumber());
entity.setCauseOfAction(param.getCauseOfAction());
entity.setInvolvedAmount(ImportHelper.parseBigDecimal(param.getInvolvedAmount(), "涉案金额"));

View File

@@ -259,8 +259,8 @@ public class CreditCompetitorController extends BaseController {
entity.setCompanyName(param.getCompanyName());
entity.setLegalRepresentative(param.getLegalRepresentative());
entity.setRegisteredCapital(ImportHelper.parseBigDecimal(param.getRegisteredCapital(), "注册资本"));
entity.setEstablishmentDate(ImportHelper.parseLocalDate(param.getEstablishmentDate(), "成立日期"));
entity.setRegisteredCapital(param.getRegisteredCapital());
entity.setEstablishmentDate(param.getEstablishmentDate());
entity.setRegistrationStatus(param.getRegistrationStatus());
entity.setIndustry(param.getIndustry());
entity.setProvince(param.getProvince());

View File

@@ -264,7 +264,7 @@ public class CreditCourtAnnouncementController extends BaseController {
entity.setPlaintiffAppellant(param.getPlaintiffAppellant());
entity.setAppellee(param.getAppellee());
entity.setOtherPartiesThirdParty(param.getOtherPartiesThirdParty());
entity.setOccurrenceTime(ImportHelper.parseLocalDate(param.getOccurrenceTime(), "发生时间"));
entity.setOccurrenceTime(param.getOccurrenceTime());
entity.setCaseNumber(param.getCaseNumber());
entity.setCauseOfAction(param.getCauseOfAction());
entity.setInvolvedAmount(ImportHelper.parseBigDecimal(param.getInvolvedAmount(), "涉案金额"));

View File

@@ -264,7 +264,7 @@ public class CreditCourtSessionController extends BaseController {
entity.setPlaintiffAppellant(param.getPlaintiffAppellant());
entity.setAppellee(param.getAppellee());
entity.setOtherPartiesThirdParty(param.getOtherPartiesThirdParty());
entity.setOccurrenceTime(ImportHelper.parseLocalDate(param.getOccurrenceTime(), "发生时间"));
entity.setOccurrenceTime(param.getOccurrenceTime());
entity.setCaseNumber(param.getCaseNumber());
entity.setCauseOfAction(param.getCauseOfAction());
entity.setInvolvedAmount(ImportHelper.parseBigDecimal(param.getInvolvedAmount(), "涉案金额"));

View File

@@ -0,0 +1,119 @@
package com.gxwebsoft.credit.controller;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.credit.entity.CreditCustomer;
import com.gxwebsoft.credit.param.CreditCustomerParam;
import com.gxwebsoft.credit.service.CreditCustomerService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 客户控制器
*
* @author 科技小王子
* @since 2025-12-21 21:20:58
*/
@Tag(name = "客户管理")
@RestController
@RequestMapping("/api/credit/credit-customer")
public class CreditCustomerController extends BaseController {
@Resource
private CreditCustomerService creditCustomerService;
@Operation(summary = "分页查询客户")
@GetMapping("/page")
public ApiResult<PageResult<CreditCustomer>> page(CreditCustomerParam param) {
// 使用关联查询
return success(creditCustomerService.pageRel(param));
}
@Operation(summary = "查询全部客户")
@GetMapping()
public ApiResult<List<CreditCustomer>> list(CreditCustomerParam param) {
// 使用关联查询
return success(creditCustomerService.listRel(param));
}
@Operation(summary = "根据id查询客户")
@GetMapping("/{id}")
public ApiResult<CreditCustomer> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(creditCustomerService.getByIdRel(id));
}
@PreAuthorize("hasAuthority('credit:creditCustomer:save')")
@OperationLog
@Operation(summary = "添加客户")
@PostMapping()
public ApiResult<?> save(@RequestBody CreditCustomer creditCustomer) {
if (creditCustomerService.save(creditCustomer)) {
return success("添加成功");
}
return fail("添加失败");
}
@PreAuthorize("hasAuthority('credit:creditCustomer:update')")
@OperationLog
@Operation(summary = "修改客户")
@PutMapping()
public ApiResult<?> update(@RequestBody CreditCustomer creditCustomer) {
if (creditCustomerService.updateById(creditCustomer)) {
return success("修改成功");
}
return fail("修改失败");
}
@PreAuthorize("hasAuthority('credit:creditCustomer:remove')")
@OperationLog
@Operation(summary = "删除客户")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (creditCustomerService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@PreAuthorize("hasAuthority('credit:creditCustomer:save')")
@OperationLog
@Operation(summary = "批量添加客户")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<CreditCustomer> list) {
if (creditCustomerService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@PreAuthorize("hasAuthority('credit:creditCustomer:update')")
@OperationLog
@Operation(summary = "批量修改客户")
@PutMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody BatchParam<CreditCustomer> batchParam) {
if (batchParam.update(creditCustomerService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@PreAuthorize("hasAuthority('credit:creditCustomer:remove')")
@OperationLog
@Operation(summary = "批量删除客户")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (creditCustomerService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -264,7 +264,7 @@ public class CreditDeliveryNoticeController extends BaseController {
entity.setPlaintiffAppellant(param.getPlaintiffAppellant());
entity.setAppellee(param.getAppellee());
entity.setOtherPartiesThirdParty(param.getOtherPartiesThirdParty());
entity.setOccurrenceTime(ImportHelper.parseLocalDate(param.getOccurrenceTime(), "发生时间"));
entity.setOccurrenceTime(param.getOccurrenceTime());
entity.setCaseNumber(param.getCaseNumber());
entity.setCauseOfAction(param.getCauseOfAction());
entity.setInvolvedAmount(ImportHelper.parseBigDecimal(param.getInvolvedAmount(), "涉案金额"));

View File

@@ -267,13 +267,13 @@ public class CreditExternalController extends BaseController {
entity.setName(param.getName());
entity.setStatusTxt(param.getStatusTxt());
entity.setLegalRepresentative(param.getLegalRepresentative());
entity.setRegisteredCapital(ImportHelper.parseBigDecimal(param.getRegisteredCapital(), "注册资本"));
entity.setEstablishmentDate(ImportHelper.parseLocalDate(param.getEstablishmentDate(), "成立日期"));
entity.setShareholdingRatio(ImportHelper.parseBigDecimal(param.getShareholdingRatio(), "持股比例"));
entity.setSubscribedInvestmentAmount(ImportHelper.parseBigDecimal(param.getSubscribedInvestmentAmount(), "认缴出资额"));
entity.setSubscribedInvestmentDate(ImportHelper.parseLocalDate(param.getSubscribedInvestmentDate(), "认缴出资日期"));
entity.setIndirectShareholdingRatio(ImportHelper.parseBigDecimal(param.getIndirectShareholdingRatio(), "间接持股比例"));
entity.setInvestmentDate(ImportHelper.parseLocalDate(param.getInvestmentDate(), "投资日期"));
entity.setRegisteredCapital(param.getRegisteredCapital());
entity.setEstablishmentDate(param.getEstablishmentDate());
entity.setShareholdingRatio(param.getShareholdingRatio());
entity.setSubscribedInvestmentAmount(param.getSubscribedInvestmentAmount());
entity.setSubscribedInvestmentDate(param.getSubscribedInvestmentDate());
entity.setIndirectShareholdingRatio(param.getIndirectShareholdingRatio());
entity.setInvestmentDate(param.getInvestmentDate());
entity.setRegion(param.getRegion());
entity.setIndustry(param.getIndustry());
entity.setInvestmentCount(param.getInvestmentCount());

View File

@@ -264,7 +264,7 @@ public class CreditFinalVersionController extends BaseController {
entity.setPlaintiffAppellant(param.getPlaintiffAppellant());
entity.setAppellee(param.getAppellee());
entity.setOtherPartiesThirdParty(param.getOtherPartiesThirdParty());
entity.setOccurrenceTime(ImportHelper.parseLocalDate(param.getOccurrenceTime(), "发生时间"));
entity.setOccurrenceTime(param.getOccurrenceTime());
entity.setCaseNumber(param.getCaseNumber());
entity.setCauseOfAction(param.getCauseOfAction());
entity.setInvolvedAmount(ImportHelper.parseBigDecimal(param.getInvolvedAmount(), "涉案金额"));

View File

@@ -264,7 +264,7 @@ public class CreditGqdjController extends BaseController {
entity.setPlaintiffAppellant(param.getPlaintiffAppellant());
entity.setAppellee(param.getAppellee());
entity.setOtherPartiesThirdParty(param.getOtherPartiesThirdParty());
entity.setOccurrenceTime(ImportHelper.parseLocalDate(param.getOccurrenceTime(), "发生时间"));
entity.setOccurrenceTime(param.getOccurrenceTime());
entity.setCaseNumber(param.getCaseNumber());
entity.setCauseOfAction(param.getCauseOfAction());
entity.setInvolvedAmount(ImportHelper.parseBigDecimal(param.getInvolvedAmount(), "涉案金额"));

View File

@@ -259,7 +259,7 @@ public class CreditJudgmentDebtorController extends BaseController {
entity.setCaseNumber(param.getCaseNumber());
entity.setName(param.getName());
entity.setCode(param.getCode());
entity.setOccurrenceTime(ImportHelper.parseLocalDate(param.getOccurrenceTime(), "立案日期"));
entity.setOccurrenceTime(param.getOccurrenceTime());
entity.setAmount(ImportHelper.parseBigDecimal(param.getAmount(), "执行标的(元)"));
entity.setCourtName(param.getCourtName());
entity.setDataStatus(param.getDataStatus());

View File

@@ -264,7 +264,7 @@ public class CreditJudicialDocumentController extends BaseController {
entity.setPlaintiffAppellant(param.getPlaintiffAppellant());
entity.setAppellee(param.getAppellee());
entity.setOtherPartiesThirdParty(param.getOtherPartiesThirdParty());
entity.setOccurrenceTime(ImportHelper.parseLocalDate(param.getOccurrenceTime(), "发生时间"));
entity.setOccurrenceTime(param.getOccurrenceTime());
entity.setCaseNumber(param.getCaseNumber());
entity.setCauseOfAction(param.getCauseOfAction());
entity.setInvolvedAmount(ImportHelper.parseBigDecimal(param.getInvolvedAmount(), "涉案金额"));

View File

@@ -264,7 +264,7 @@ public class CreditMediationController extends BaseController {
entity.setPlaintiffAppellant(param.getPlaintiffAppellant());
entity.setAppellee(param.getAppellee());
entity.setOtherPartiesThirdParty(param.getOtherPartiesThirdParty());
entity.setOccurrenceTime(ImportHelper.parseLocalDate(param.getOccurrenceTime(), "发生时间"));
entity.setOccurrenceTime(param.getOccurrenceTime());
entity.setCaseNumber(param.getCaseNumber());
entity.setCauseOfAction(param.getCauseOfAction());
entity.setInvolvedAmount(ImportHelper.parseBigDecimal(param.getInvolvedAmount(), "涉案金额"));

View File

@@ -257,7 +257,7 @@ public class CreditRiskRelationController extends BaseController {
entity.setMainBodyName(param.getMainBodyName());
entity.setRegistrationStatus(param.getRegistrationStatus());
entity.setRegisteredCapital(ImportHelper.parseBigDecimal(param.getRegisteredCapital(), "注册资本"));
entity.setRegisteredCapital(param.getRegisteredCapital());
entity.setProvinceRegion(param.getProvinceRegion());
entity.setAssociatedRelation(param.getAssociatedRelation());
entity.setRiskRelation(param.getRiskRelation());

View File

@@ -264,7 +264,7 @@ public class CreditXgxfController extends BaseController {
entity.setPlaintiffAppellant(param.getPlaintiffAppellant());
entity.setAppellee(param.getAppellee());
entity.setOtherPartiesThirdParty(param.getOtherPartiesThirdParty());
entity.setOccurrenceTime(ImportHelper.parseLocalDate(param.getOccurrenceTime(), "发生时间"));
entity.setOccurrenceTime(param.getOccurrenceTime());
entity.setCaseNumber(param.getCaseNumber());
entity.setCauseOfAction(param.getCauseOfAction());
entity.setInvolvedAmount(ImportHelper.parseBigDecimal(param.getInvolvedAmount(), "涉案金额"));

View File

@@ -1,389 +0,0 @@
CREATE TABLE credit_risk_relation (
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`main_body_name` VARCHAR(255) COMMENT '主体名称',
`registration_status` VARCHAR(50) COMMENT '登记状态',
`registered_capital` DECIMAL(18, 2) COMMENT '注册资本',
`province_region` VARCHAR(255) COMMENT '省份地区',
`associated_relation` VARCHAR(255) COMMENT '关联关系',
`risk_relation` VARCHAR(255) COMMENT '风险关系',
`comments` varchar(300) NOT NULL DEFAULT '' COMMENT '备注',
`recommend` int NOT NULL DEFAULT '0' COMMENT '是否推荐',
`sort_number` int unsigned NOT NULL DEFAULT '100' COMMENT '排序(数字越小越靠前)',
`status` int unsigned NOT NULL DEFAULT '0' COMMENT '状态, 0正常, 1冻结',
`deleted` int NOT NULL DEFAULT '0' COMMENT '是否删除, 0否, 1是',
`user_id` int unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
`tenant_id` int NOT NULL DEFAULT '1' COMMENT '租户id',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `main_body_name` (`main_body_name`) USING BTREE,
KEY `tenant_id` (`tenant_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb3 COMMENT '风险关系表';
CREATE TABLE credit_competitor (
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`company_name` VARCHAR(255) COMMENT '企业名称',
`legal_representative` VARCHAR(255) COMMENT '法定代表人',
`registered_capital` DECIMAL(18, 2) COMMENT '注册资本',
`establishment_date` DATE COMMENT '成立日期',
`registration_status` VARCHAR(50) COMMENT '登记状态',
`industry` VARCHAR(255) COMMENT '所属行业',
`province` VARCHAR(50) COMMENT '所属省份',
`comments` varchar(300) NOT NULL DEFAULT '' COMMENT '备注',
`recommend` int NOT NULL DEFAULT '0' COMMENT '是否推荐',
`sort_number` int unsigned NOT NULL DEFAULT '100' COMMENT '排序(数字越小越靠前)',
`status` int unsigned NOT NULL DEFAULT '0' COMMENT '状态, 0正常, 1冻结',
`deleted` int NOT NULL DEFAULT '0' COMMENT '是否删除, 0否, 1是',
`user_id` int unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
`tenant_id` int NOT NULL DEFAULT '1' COMMENT '租户id',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `company_name` (`company_name`) USING BTREE,
KEY `tenant_id` (`tenant_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb3 COMMENT '竞争对手';
CREATE TABLE credit_customer (
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`name` VARCHAR(255) COMMENT '客户',
`status_txt` VARCHAR(50) COMMENT '状态',
`price` DECIMAL(10, 2) COMMENT '销售金额(万元)',
`public_date` DATE COMMENT '公开日期',
`data_source` VARCHAR(255) COMMENT '数据来源',
`comments` varchar(300) NOT NULL DEFAULT '' COMMENT '备注',
`recommend` int NOT NULL DEFAULT '0' COMMENT '是否推荐',
`sort_number` int unsigned NOT NULL DEFAULT '100' COMMENT '排序(数字越小越靠前)',
`status` int unsigned NOT NULL DEFAULT '0' COMMENT '状态, 0正常, 1冻结',
`deleted` int NOT NULL DEFAULT '0' COMMENT '是否删除, 0否, 1是',
`user_id` int unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
`tenant_id` int NOT NULL DEFAULT '1' COMMENT '租户id',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `name` (`name`) USING BTREE,
KEY `tenant_id` (`tenant_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb3 COMMENT '客户';
CREATE TABLE credit_judicial_big_data (
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`data_type` VARCHAR(50) COMMIT '数据类型',
`plaintiff_appellant` VARCHAR(255) COMMENT '原告/上诉人',
`defendant Appellee` VARCHAR(255) COMMENT '被告/被上诉人',
`other_parties_third_party` VARCHAR(255) COMMENT '其他当事人/第三人',
`occurrence_time` DATE COMMENT '发生时间',
`case_number` VARCHAR(50) COMMENT '案号',
`cause_of_action` VARCHAR(255) COMMENT '案由',
`involved_amount` DECIMAL(18, 2) COMMENT '涉案金额',
`court_name` VARCHAR(255) COMMENT '法院',
`data_status` ENUM('正常', '异常') COMMENT '数据状态',
`comments` varchar(300) NOT NULL DEFAULT '' COMMENT '备注',
`recommend` int NOT NULL DEFAULT '0' COMMENT '是否推荐',
`sort_number` int unsigned NOT NULL DEFAULT '100' COMMENT '排序(数字越小越靠前)',
`status` int unsigned NOT NULL DEFAULT '0' COMMENT '状态, 0正常, 1冻结',
`deleted` int NOT NULL DEFAULT '0' COMMENT '是否删除, 0否, 1是',
`user_id` int unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
`tenant_id` int NOT NULL DEFAULT '1' COMMENT '租户id',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE,
KEY `tenant_id` (`tenant_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb3 COMMENT '司法大数据';
CREATE TABLE credit_case_filing (
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`data_type` VARCHAR(50) COMMIT '数据类型',
`plaintiff_appellant` VARCHAR(255) COMMENT '原告/上诉人',
`defendant Appellee` VARCHAR(255) COMMENT '被告/被上诉人',
`other_parties_third_party` VARCHAR(255) COMMENT '其他当事人/第三人',
`occurrence_time` DATE COMMENT '发生时间',
`case_number` VARCHAR(50) COMMENT '案号',
`cause_of_action` VARCHAR(255) COMMENT '案由',
`involved_amount` DECIMAL(18, 2) COMMENT '涉案金额',
`court_name` VARCHAR(255) COMMENT '法院',
`data_status` ENUM('正常', '异常') COMMENT '数据状态',
`comments` varchar(300) NOT NULL DEFAULT '' COMMENT '备注',
`recommend` int NOT NULL DEFAULT '0' COMMENT '是否推荐',
`sort_number` int unsigned NOT NULL DEFAULT '100' COMMENT '排序(数字越小越靠前)',
`status` int unsigned NOT NULL DEFAULT '0' COMMENT '状态, 0正常, 1冻结',
`deleted` int NOT NULL DEFAULT '0' COMMENT '是否删除, 0否, 1是',
`user_id` int unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
`tenant_id` int NOT NULL DEFAULT '1' COMMENT '租户id',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE,
KEY `tenant_id` (`tenant_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb3 COMMENT '立案信息司法大数据';
CREATE TABLE credit_court_session (
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`data_type` VARCHAR(50) COMMENT '数据类型',
`plaintiff_appellant` VARCHAR(255) COMMENT '原告/上诉人',
`defendant Appellee` VARCHAR(255) COMMENT '被告/被上诉人',
`other_parties_third_party` VARCHAR(255) COMMENT '其他当事人/第三人',
`occurrence_time` DATE COMMENT '发生时间',
`case_number` VARCHAR(50) COMMENT '案号',
`cause_of_action` VARCHAR(255) COMMENT '案由',
`involved_amount` DECIMAL(18, 2) COMMENT '涉案金额',
`court_name` VARCHAR(255) COMMENT '法院',
`data_status` ENUM('正常', '异常') COMMENT '数据状态',
`comments` varchar(300) NOT NULL DEFAULT '' COMMENT '备注',
`recommend` int NOT NULL DEFAULT '0' COMMENT '是否推荐',
`sort_number` int unsigned NOT NULL DEFAULT '100' COMMENT '排序(数字越小越靠前)',
`status` int unsigned NOT NULL DEFAULT '0' COMMENT '状态, 0正常, 1冻结',
`deleted` int NOT NULL DEFAULT '0' COMMENT '是否删除, 0否, 1是',
`user_id` int unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
`tenant_id` int NOT NULL DEFAULT '1' COMMENT '租户id',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE,
KEY `tenant_id` (`tenant_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb3 COMMENT '开庭公告司法大数据';
CREATE TABLE credit_court_announcement (
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`data_type` VARCHAR(50) COMMENT '数据类型',
`plaintiff_appellant` VARCHAR(255) COMMENT '原告/上诉人',
`defendant Appellee` VARCHAR(255) COMMENT '被告/被上诉人',
`other_parties_third_party` VARCHAR(255) COMMENT '其他当事人/第三人',
`occurrence_time` DATE COMMENT '发生时间',
`case_number` VARCHAR(50) COMMENT '案号',
`cause_of_action` VARCHAR(255) COMMENT '案由',
`involved_amount` DECIMAL(18, 2) COMMENT '涉案金额',
`court_name` VARCHAR(255) COMMENT '法院',
`data_status` ENUM('正常', '异常') COMMENT '数据状态',
`comments` varchar(300) NOT NULL DEFAULT '' COMMENT '备注',
`recommend` int NOT NULL DEFAULT '0' COMMENT '是否推荐',
`sort_number` int unsigned NOT NULL DEFAULT '100' COMMENT '排序(数字越小越靠前)',
`status` int unsigned NOT NULL DEFAULT '0' COMMENT '状态, 0正常, 1冻结',
`deleted` int NOT NULL DEFAULT '0' COMMENT '是否删除, 0否, 1是',
`user_id` int unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
`tenant_id` int NOT NULL DEFAULT '1' COMMENT '租户id',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE,
KEY `tenant_id` (`tenant_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb3 COMMENT '法院公告司法大数据';
CREATE TABLE credit_delivery_notice (
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`data_type` VARCHAR(50) COMMENT '数据类型',
`plaintiff_appellant` VARCHAR(255) COMMENT '原告/上诉人',
`defendant Appellee` VARCHAR(255) COMMENT '被告/被上诉人',
`other_parties_third_party` VARCHAR(255) COMMENT '其他当事人/第三人',
`occurrence_time` DATE COMMENT '发生时间',
`case_number` VARCHAR(50) COMMENT '案号',
`cause_of_action` VARCHAR(255) COMMENT '案由',
`involved_amount` DECIMAL(18, 2) COMMENT '涉案金额',
`court_name` VARCHAR(255) COMMENT '法院',
`data_status` ENUM('正常', '异常') COMMENT '数据状态',
`comments` varchar(300) NOT NULL DEFAULT '' COMMENT '备注',
`recommend` int NOT NULL DEFAULT '0' COMMENT '是否推荐',
`sort_number` int unsigned NOT NULL DEFAULT '100' COMMENT '排序(数字越小越靠前)',
`status` int unsigned NOT NULL DEFAULT '0' COMMENT '状态, 0正常, 1冻结',
`deleted` int NOT NULL DEFAULT '0' COMMENT '是否删除, 0否, 1是',
`user_id` int unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
`tenant_id` int NOT NULL DEFAULT '1' COMMENT '租户id',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE,
KEY `tenant_id` (`tenant_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb3 COMMENT '送达公告司法大数据';
CREATE TABLE credit_judicial_document (
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`data_type` VARCHAR(50) COMMENT '数据类型',
`plaintiff_appellant` VARCHAR(255) COMMENT '原告/上诉人',
`defendant Appellee` VARCHAR(255) COMMENT '被告/被上诉人',
`other_parties_third_party` VARCHAR(255) COMMENT '其他当事人/第三人',
`occurrence_time` DATE COMMENT '发生时间',
`case_number` VARCHAR(50) COMMENT '案号',
`cause_of_action` VARCHAR(255) COMMENT '案由',
`involved_amount` DECIMAL(18, 2) COMMENT '涉案金额',
`court_name` VARCHAR(255) COMMENT '法院',
`data_status` ENUM('正常', '异常') COMMENT '数据状态',
`comments` varchar(300) NOT NULL DEFAULT '' COMMENT '备注',
`recommend` int NOT NULL DEFAULT '0' COMMENT '是否推荐',
`sort_number` int unsigned NOT NULL DEFAULT '100' COMMENT '排序(数字越小越靠前)',
`status` int unsigned NOT NULL DEFAULT '0' COMMENT '状态, 0正常, 1冻结',
`deleted` int NOT NULL DEFAULT '0' COMMENT '是否删除, 0否, 1是',
`user_id` int unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
`tenant_id` int NOT NULL DEFAULT '1' COMMENT '租户id',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE,
KEY `tenant_id` (`tenant_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb3 COMMENT '裁判文书司法大数据';
CREATE TABLE credit_judgment_debtor (
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`case_number` VARCHAR(50) COMMENT '案号',
`name` VARCHAR(250) COMMENT '被执行人名称',
`code` VARCHAR(100) COMMENT '证件号/组织机构代码',
`occurrence_time` DATE COMMENT '立案日期',
`amount` DECIMAL(18, 2) COMMENT '执行标的(元)',
`court_name` VARCHAR(255) COMMENT '法院',
`data_status` ENUM('正常', '异常') COMMENT '数据状态',
`comments` varchar(300) NOT NULL DEFAULT '' COMMENT '备注',
`recommend` int NOT NULL DEFAULT '0' COMMENT '是否推荐',
`sort_number` int unsigned NOT NULL DEFAULT '100' COMMENT '排序(数字越小越靠前)',
`status` int unsigned NOT NULL DEFAULT '0' COMMENT '状态, 0正常, 1冻结',
`deleted` int NOT NULL DEFAULT '0' COMMENT '是否删除, 0否, 1是',
`user_id` int unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
`tenant_id` int NOT NULL DEFAULT '1' COMMENT '租户id',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE,
KEY `tenant_id` (`tenant_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb3 COMMENT '被执行人';
CREATE TABLE credit_judgment_debtor (
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`case_number` VARCHAR(50) COMMENT '案号',
`name` VARCHAR(250) COMMENT '被执行人名称',
`code` VARCHAR(100) COMMENT '证件号/组织机构代码',
`occurrence_time` DATE COMMENT '立案日期',
`amount` DECIMAL(18, 2) COMMENT '执行标的(元)',
`court_name` VARCHAR(255) COMMENT '法院',
`data_status` ENUM('正常', '异常') COMMENT '数据状态',
`comments` varchar(300) NOT NULL DEFAULT '' COMMENT '备注',
`recommend` int NOT NULL DEFAULT '0' COMMENT '是否推荐',
`sort_number` int unsigned NOT NULL DEFAULT '100' COMMENT '排序(数字越小越靠前)',
`status` int unsigned NOT NULL DEFAULT '0' COMMENT '状态, 0正常, 1冻结',
`deleted` int NOT NULL DEFAULT '0' COMMENT '是否删除, 0否, 1是',
`user_id` int unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
`tenant_id` int NOT NULL DEFAULT '1' COMMENT '租户id',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE,
KEY `tenant_id` (`tenant_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb3 COMMENT '被执行人';
CREATE TABLE credit_breach_of_trust (
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`data_type` VARCHAR(50) COMMENT '数据类型',
`plaintiff_appellant` VARCHAR(255) COMMENT '原告/上诉人',
`defendant Appellee` VARCHAR(255) COMMENT '被告/被上诉人',
`other_parties_third_party` VARCHAR(255) COMMENT '其他当事人/第三人',
`occurrence_time` DATE COMMENT '发生时间',
`case_number` VARCHAR(50) COMMENT '案号',
`cause_of_action` VARCHAR(255) COMMENT '案由',
`involved_amount` DECIMAL(18, 2) COMMENT '涉案金额',
`court_name` VARCHAR(255) COMMENT '法院',
`data_status` ENUM('正常', '异常') COMMENT '数据状态',
`comments` varchar(300) NOT NULL DEFAULT '' COMMENT '备注',
`recommend` int NOT NULL DEFAULT '0' COMMENT '是否推荐',
`sort_number` int unsigned NOT NULL DEFAULT '100' COMMENT '排序(数字越小越靠前)',
`status` int unsigned NOT NULL DEFAULT '0' COMMENT '状态, 0正常, 1冻结',
`deleted` int NOT NULL DEFAULT '0' COMMENT '是否删除, 0否, 1是',
`user_id` int unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
`tenant_id` int NOT NULL DEFAULT '1' COMMENT '租户id',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE,
KEY `tenant_id` (`tenant_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb3 COMMENT '失信被执行人';
CREATE TABLE credit_final_version (
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`data_type` VARCHAR(50) COMMENT '数据类型',
`plaintiff_appellant` VARCHAR(255) COMMENT '原告/上诉人',
`defendant Appellee` VARCHAR(255) COMMENT '被告/被上诉人',
`other_parties_third_party` VARCHAR(255) COMMENT '其他当事人/第三人',
`occurrence_time` DATE COMMENT '发生时间',
`case_number` VARCHAR(50) COMMENT '案号',
`cause_of_action` VARCHAR(255) COMMENT '案由',
`involved_amount` DECIMAL(18, 2) COMMENT '涉案金额',
`court_name` VARCHAR(255) COMMENT '法院',
`data_status` ENUM('正常', '异常') COMMENT '数据状态',
`comments` varchar(300) NOT NULL DEFAULT '' COMMENT '备注',
`recommend` int NOT NULL DEFAULT '0' COMMENT '是否推荐',
`sort_number` int unsigned NOT NULL DEFAULT '100' COMMENT '排序(数字越小越靠前)',
`status` int unsigned NOT NULL DEFAULT '0' COMMENT '状态, 0正常, 1冻结',
`deleted` int NOT NULL DEFAULT '0' COMMENT '是否删除, 0否, 1是',
`user_id` int unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
`tenant_id` int NOT NULL DEFAULT '1' COMMENT '租户id',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE,
KEY `tenant_id` (`tenant_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb3 COMMENT '终本案件';
CREATE TABLE credit_xgxf (
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`data_type` VARCHAR(50) COMMENT '数据类型',
`plaintiff_appellant` VARCHAR(255) COMMENT '原告/上诉人',
`defendant Appellee` VARCHAR(255) COMMENT '被告/被上诉人',
`other_parties_third_party` VARCHAR(255) COMMENT '其他当事人/第三人',
`occurrence_time` DATE COMMENT '发生时间',
`case_number` VARCHAR(50) COMMENT '案号',
`cause_of_action` VARCHAR(255) COMMENT '案由',
`involved_amount` DECIMAL(18, 2) COMMENT '涉案金额',
`court_name` VARCHAR(255) COMMENT '法院',
`data_status` ENUM('正常', '异常') COMMENT '数据状态',
`comments` varchar(300) NOT NULL DEFAULT '' COMMENT '备注',
`recommend` int NOT NULL DEFAULT '0' COMMENT '是否推荐',
`sort_number` int unsigned NOT NULL DEFAULT '100' COMMENT '排序(数字越小越靠前)',
`status` int unsigned NOT NULL DEFAULT '0' COMMENT '状态, 0正常, 1冻结',
`deleted` int NOT NULL DEFAULT '0' COMMENT '是否删除, 0否, 1是',
`user_id` int unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
`tenant_id` int NOT NULL DEFAULT '1' COMMENT '租户id',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE,
KEY `tenant_id` (`tenant_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb3 COMMENT '限制高消费';
CREATE TABLE credit_gqdj (
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`data_type` VARCHAR(50) COMMENT '数据类型',
`plaintiff_appellant` VARCHAR(255) COMMENT '原告/上诉人',
`defendant Appellee` VARCHAR(255) COMMENT '被告/被上诉人',
`other_parties_third_party` VARCHAR(255) COMMENT '其他当事人/第三人',
`occurrence_time` DATE COMMENT '发生时间',
`case_number` VARCHAR(50) COMMENT '案号',
`cause_of_action` VARCHAR(255) COMMENT '案由',
`involved_amount` DECIMAL(18, 2) COMMENT '涉案金额',
`court_name` VARCHAR(255) COMMENT '法院',
`data_status` ENUM('正常', '异常') COMMENT '数据状态',
`comments` varchar(300) NOT NULL DEFAULT '' COMMENT '备注',
`recommend` int NOT NULL DEFAULT '0' COMMENT '是否推荐',
`sort_number` int unsigned NOT NULL DEFAULT '100' COMMENT '排序(数字越小越靠前)',
`status` int unsigned NOT NULL DEFAULT '0' COMMENT '状态, 0正常, 1冻结',
`deleted` int NOT NULL DEFAULT '0' COMMENT '是否删除, 0否, 1是',
`user_id` int unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
`tenant_id` int NOT NULL DEFAULT '1' COMMENT '租户id',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE,
KEY `tenant_id` (`tenant_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb3 COMMENT '股权冻结';

View File

@@ -37,15 +37,14 @@ public class CreditBreachOfTrust implements Serializable {
private String plaintiffAppellant;
@Schema(description = "被告/被上诉人")
@TableField("defendant Appellee")
@TableField("Appellee")
private String appellee;
@Schema(description = "其他当事人/第三人")
private String otherPartiesThirdParty;
@Schema(description = "发生时间")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate occurrenceTime;
private String occurrenceTime;
@Schema(description = "案号")
private String caseNumber;

View File

@@ -37,15 +37,14 @@ public class CreditCaseFiling implements Serializable {
private String plaintiffAppellant;
@Schema(description = "被告/被上诉人")
@TableField("defendant Appellee")
@TableField("Appellee")
private String appellee;
@Schema(description = "其他当事人/第三人")
private String otherPartiesThirdParty;
@Schema(description = "发生时间")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate occurrenceTime;
private String occurrenceTime;
@Schema(description = "案号")
private String caseNumber;

View File

@@ -36,11 +36,10 @@ public class CreditCompetitor implements Serializable {
private String legalRepresentative;
@Schema(description = "注册资本")
private BigDecimal registeredCapital;
private String registeredCapital;
@Schema(description = "成立日期")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate establishmentDate;
private String establishmentDate;
@Schema(description = "登记状态")
private String registrationStatus;

View File

@@ -37,15 +37,14 @@ public class CreditCourtAnnouncement implements Serializable {
private String plaintiffAppellant;
@Schema(description = "被告/被上诉人")
@TableField("defendant Appellee")
@TableField("Appellee")
private String appellee;
@Schema(description = "其他当事人/第三人")
private String otherPartiesThirdParty;
@Schema(description = "发生时间")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate occurrenceTime;
private String occurrenceTime;
@Schema(description = "案号")
private String caseNumber;

View File

@@ -37,15 +37,14 @@ public class CreditCourtSession implements Serializable {
private String plaintiffAppellant;
@Schema(description = "被告/被上诉人")
@TableField("defendant Appellee")
@TableField("Appellee")
private String appellee;
@Schema(description = "其他当事人/第三人")
private String otherPartiesThirdParty;
@Schema(description = "发生时间")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate occurrenceTime;
private String occurrenceTime;
@Schema(description = "案号")
private String caseNumber;

View File

@@ -0,0 +1,78 @@
package com.gxwebsoft.credit.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
/**
* 客户
*
* @author 科技小王子
* @since 2025-12-21 21:20:58
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "CreditCustomer对象", description = "客户")
public class CreditCustomer implements Serializable {
private static final long serialVersionUID = 1L;
@Schema(description = "ID")
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
@Schema(description = "客户")
private String name;
@Schema(description = "状态")
private String statusTxt;
@Schema(description = "销售金额(万元)")
private BigDecimal price;
@Schema(description = "公开日期")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate publicDate;
@Schema(description = "数据来源")
private String dataSource;
@Schema(description = "备注")
private String comments;
@Schema(description = "是否推荐")
private Integer recommend;
@Schema(description = "排序(数字越小越靠前)")
private Integer sortNumber;
@Schema(description = "状态, 0正常, 1冻结")
private Integer status;
@Schema(description = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@Schema(description = "用户ID")
private Integer userId;
@Schema(description = "租户id")
private Integer tenantId;
@Schema(description = "创建时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime createTime;
@Schema(description = "修改时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime updateTime;
}

View File

@@ -37,15 +37,14 @@ public class CreditDeliveryNotice implements Serializable {
private String plaintiffAppellant;
@Schema(description = "被告/被上诉人")
@TableField("defendant Appellee")
@TableField("Appellee")
private String appellee;
@Schema(description = "其他当事人/第三人")
private String otherPartiesThirdParty;
@Schema(description = "发生时间")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate occurrenceTime;
private String occurrenceTime;
@Schema(description = "案号")
private String caseNumber;

View File

@@ -39,28 +39,25 @@ public class CreditExternal implements Serializable {
private String legalRepresentative;
@Schema(description = "注册资本(金额)")
private BigDecimal registeredCapital;
private String registeredCapital;
@Schema(description = "成立日期")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate establishmentDate;
private String establishmentDate;
@Schema(description = "持股比例")
private BigDecimal shareholdingRatio;
private String shareholdingRatio;
@Schema(description = "认缴出资额")
private BigDecimal subscribedInvestmentAmount;
private String subscribedInvestmentAmount;
@Schema(description = "认缴出资日期")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate subscribedInvestmentDate;
private String subscribedInvestmentDate;
@Schema(description = "间接持股比例")
private BigDecimal indirectShareholdingRatio;
private String indirectShareholdingRatio;
@Schema(description = "投资日期")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate investmentDate;
private String investmentDate;
@Schema(description = "所属地区")
private String region;

View File

@@ -37,15 +37,14 @@ public class CreditFinalVersion implements Serializable {
private String plaintiffAppellant;
@Schema(description = "被告/被上诉人")
@TableField("defendant Appellee")
@TableField("Appellee")
private String appellee;
@Schema(description = "其他当事人/第三人")
private String otherPartiesThirdParty;
@Schema(description = "发生时间")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate occurrenceTime;
private String occurrenceTime;
@Schema(description = "案号")
private String caseNumber;

View File

@@ -37,15 +37,14 @@ public class CreditGqdj implements Serializable {
private String plaintiffAppellant;
@Schema(description = "被告/被上诉人")
@TableField("defendant Appellee")
@TableField("Appellee")
private String appellee;
@Schema(description = "其他当事人/第三人")
private String otherPartiesThirdParty;
@Schema(description = "发生时间")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate occurrenceTime;
private String occurrenceTime;
@Schema(description = "案号")
private String caseNumber;

View File

@@ -38,9 +38,8 @@ public class CreditJudgmentDebtor implements Serializable {
@Schema(description = "证件号/组织机构代码")
private String code;
@Schema(description = "立案日期")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate occurrenceTime;
@Schema(description = "发生时间")
private String occurrenceTime;
@Schema(description = "执行标的(元)")
private BigDecimal amount;

View File

@@ -37,15 +37,14 @@ public class CreditJudicialDocument implements Serializable {
private String plaintiffAppellant;
@Schema(description = "被告/被上诉人")
@TableField("defendant Appellee")
@TableField("Appellee")
private String appellee;
@Schema(description = "其他当事人/第三人")
private String otherPartiesThirdParty;
@Schema(description = "发生时间")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate occurrenceTime;
private String occurrenceTime;
@Schema(description = "案号")
private String caseNumber;

View File

@@ -37,15 +37,14 @@ public class CreditMediation implements Serializable {
private String plaintiffAppellant;
@Schema(description = "被告/被上诉人")
@TableField("defendant Appellee")
@TableField("Appellee")
private String appellee;
@Schema(description = "其他当事人/第三人")
private String otherPartiesThirdParty;
@Schema(description = "发生时间")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate occurrenceTime;
private String occurrenceTime;
@Schema(description = "案号")
private String caseNumber;

View File

@@ -35,7 +35,7 @@ public class CreditRiskRelation implements Serializable {
private String registrationStatus;
@Schema(description = "注册资本")
private BigDecimal registeredCapital;
private String registeredCapital;
@Schema(description = "省份地区")
private String provinceRegion;

View File

@@ -37,15 +37,14 @@ public class CreditXgxf implements Serializable {
private String plaintiffAppellant;
@Schema(description = "被告/被上诉人")
@TableField("defendant Appellee")
@TableField("Appellee")
private String appellee;
@Schema(description = "其他当事人/第三人")
private String otherPartiesThirdParty;
@Schema(description = "发生时间")
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate occurrenceTime;
private String occurrenceTime;
@Schema(description = "案号")
private String caseNumber;

View File

@@ -0,0 +1,37 @@
package com.gxwebsoft.credit.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.credit.entity.CreditCustomer;
import com.gxwebsoft.credit.param.CreditCustomerParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 客户Mapper
*
* @author 科技小王子
* @since 2025-12-21 21:20:58
*/
public interface CreditCustomerMapper extends BaseMapper<CreditCustomer> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<CreditCustomer>
*/
List<CreditCustomer> selectPageRel(@Param("page") IPage<CreditCustomer> page,
@Param("param") CreditCustomerParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<CreditCustomer> selectListRel(@Param("param") CreditCustomerParam param);
}

View File

@@ -16,8 +16,8 @@
<if test="param.plaintiffAppellant != null">
AND a.plaintiff_appellant LIKE CONCAT('%', #{param.plaintiffAppellant}, '%')
</if>
<if test="param.defendant appellee != null">
AND a.defendant Appellee LIKE CONCAT('%', #{param.defendant appellee}, '%')
<if test="param.appellee != null">
AND a.appellee LIKE CONCAT('%', #{param.defendant appellee}, '%')
</if>
<if test="param.otherPartiesThirdParty != null">
AND a.other_parties_third_party LIKE CONCAT('%', #{param.otherPartiesThirdParty}, '%')

View File

@@ -16,8 +16,8 @@
<if test="param.plaintiffAppellant != null">
AND a.plaintiff_appellant LIKE CONCAT('%', #{param.plaintiffAppellant}, '%')
</if>
<if test="param.defendant appellee != null">
AND a.defendant Appellee LIKE CONCAT('%', #{param.defendant appellee}, '%')
<if test="param.appellee != null">
AND a.appellee LIKE CONCAT('%', #{param.defendant appellee}, '%')
</if>
<if test="param.otherPartiesThirdParty != null">
AND a.other_parties_third_party LIKE CONCAT('%', #{param.otherPartiesThirdParty}, '%')

View File

@@ -16,8 +16,8 @@
<if test="param.plaintiffAppellant != null">
AND a.plaintiff_appellant LIKE CONCAT('%', #{param.plaintiffAppellant}, '%')
</if>
<if test="param.defendant appellee != null">
AND a.defendant Appellee LIKE CONCAT('%', #{param.defendant appellee}, '%')
<if test="param.appellee != null">
AND a.appellee LIKE CONCAT('%', #{param.defendant appellee}, '%')
</if>
<if test="param.otherPartiesThirdParty != null">
AND a.other_parties_third_party LIKE CONCAT('%', #{param.otherPartiesThirdParty}, '%')

View File

@@ -16,8 +16,8 @@
<if test="param.plaintiffAppellant != null">
AND a.plaintiff_appellant LIKE CONCAT('%', #{param.plaintiffAppellant}, '%')
</if>
<if test="param.defendant appellee != null">
AND a.defendant Appellee LIKE CONCAT('%', #{param.defendant appellee}, '%')
<if test="param.appellee != null">
AND a.appellee LIKE CONCAT('%', #{param.defendant appellee}, '%')
</if>
<if test="param.otherPartiesThirdParty != null">
AND a.other_parties_third_party LIKE CONCAT('%', #{param.otherPartiesThirdParty}, '%')

View File

@@ -0,0 +1,72 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gxwebsoft.credit.mapper.CreditCustomerMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM credit_customer a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.name != null">
AND a.name LIKE CONCAT('%', #{param.name}, '%')
</if>
<if test="param.statusTxt != null">
AND a.status_txt LIKE CONCAT('%', #{param.statusTxt}, '%')
</if>
<if test="param.price != null">
AND a.price = #{param.price}
</if>
<if test="param.publicDate != null">
AND a.public_date LIKE CONCAT('%', #{param.publicDate}, '%')
</if>
<if test="param.dataSource != null">
AND a.data_source LIKE CONCAT('%', #{param.dataSource}, '%')
</if>
<if test="param.comments != null">
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
</if>
<if test="param.recommend != null">
AND a.recommend = #{param.recommend}
</if>
<if test="param.sortNumber != null">
AND a.sort_number = #{param.sortNumber}
</if>
<if test="param.status != null">
AND a.status = #{param.status}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.credit.entity.CreditCustomer">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.credit.entity.CreditCustomer">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -16,8 +16,8 @@
<if test="param.plaintiffAppellant != null">
AND a.plaintiff_appellant LIKE CONCAT('%', #{param.plaintiffAppellant}, '%')
</if>
<if test="param.defendant appellee != null">
AND a.defendant Appellee LIKE CONCAT('%', #{param.defendant appellee}, '%')
<if test="param.appellee != null">
AND a.appellee LIKE CONCAT('%', #{param.defendant appellee}, '%')
</if>
<if test="param.otherPartiesThirdParty != null">
AND a.other_parties_third_party LIKE CONCAT('%', #{param.otherPartiesThirdParty}, '%')

View File

@@ -16,8 +16,8 @@
<if test="param.plaintiffAppellant != null">
AND a.plaintiff_appellant LIKE CONCAT('%', #{param.plaintiffAppellant}, '%')
</if>
<if test="param.defendant appellee != null">
AND a.defendant Appellee LIKE CONCAT('%', #{param.defendant appellee}, '%')
<if test="param.appellee != null">
AND a.appellee LIKE CONCAT('%', #{param.defendant appellee}, '%')
</if>
<if test="param.otherPartiesThirdParty != null">
AND a.other_parties_third_party LIKE CONCAT('%', #{param.otherPartiesThirdParty}, '%')

View File

@@ -16,8 +16,8 @@
<if test="param.plaintiffAppellant != null">
AND a.plaintiff_appellant LIKE CONCAT('%', #{param.plaintiffAppellant}, '%')
</if>
<if test="param.defendant appellee != null">
AND a.defendant Appellee LIKE CONCAT('%', #{param.defendant appellee}, '%')
<if test="param.appellee != null">
AND a.appellee LIKE CONCAT('%', #{param.defendant appellee}, '%')
</if>
<if test="param.otherPartiesThirdParty != null">
AND a.other_parties_third_party LIKE CONCAT('%', #{param.otherPartiesThirdParty}, '%')

View File

@@ -16,8 +16,8 @@
<if test="param.plaintiffAppellant != null">
AND a.plaintiff_appellant LIKE CONCAT('%', #{param.plaintiffAppellant}, '%')
</if>
<if test="param.defendant appellee != null">
AND a.defendant Appellee LIKE CONCAT('%', #{param.defendant appellee}, '%')
<if test="param.appellee != null">
AND a.appellee LIKE CONCAT('%', #{param.defendant appellee}, '%')
</if>
<if test="param.otherPartiesThirdParty != null">
AND a.other_parties_third_party LIKE CONCAT('%', #{param.otherPartiesThirdParty}, '%')

View File

@@ -16,8 +16,8 @@
<if test="param.plaintiffAppellant != null">
AND a.plaintiff_appellant LIKE CONCAT('%', #{param.plaintiffAppellant}, '%')
</if>
<if test="param.defendant appellee != null">
AND a.defendant Appellee LIKE CONCAT('%', #{param.defendant appellee}, '%')
<if test="param.appellee != null">
AND a.appellee LIKE CONCAT('%', #{param.defendant appellee}, '%')
</if>
<if test="param.otherPartiesThirdParty != null">
AND a.other_parties_third_party LIKE CONCAT('%', #{param.otherPartiesThirdParty}, '%')

View File

@@ -16,8 +16,8 @@
<if test="param.plaintiffAppellant != null">
AND a.plaintiff_appellant LIKE CONCAT('%', #{param.plaintiffAppellant}, '%')
</if>
<if test="param.defendant appellee != null">
AND a.defendant Appellee LIKE CONCAT('%', #{param.defendant appellee}, '%')
<if test="param.appellee != null">
AND a.appellee LIKE CONCAT('%', #{param.defendant appellee}, '%')
</if>
<if test="param.otherPartiesThirdParty != null">
AND a.other_parties_third_party LIKE CONCAT('%', #{param.otherPartiesThirdParty}, '%')

View File

@@ -34,8 +34,7 @@ public class CreditCompetitorParam extends BaseParam {
private String legalRepresentative;
@Schema(description = "注册资本")
@QueryField(type = QueryType.EQ)
private BigDecimal registeredCapital;
private String registeredCapital;
@Schema(description = "成立日期")
private String establishmentDate;

View File

@@ -0,0 +1,69 @@
package com.gxwebsoft.credit.param;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
/**
* 客户查询参数
*
* @author 科技小王子
* @since 2025-12-21 21:20:57
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "CreditCustomerParam对象", description = "客户查询参数")
public class CreditCustomerParam extends BaseParam {
private static final long serialVersionUID = 1L;
@Schema(description = "ID")
@QueryField(type = QueryType.EQ)
private Integer id;
@Schema(description = "客户")
private String name;
@Schema(description = "状态")
private String statusTxt;
@Schema(description = "销售金额(万元)")
@QueryField(type = QueryType.EQ)
private BigDecimal price;
@Schema(description = "公开日期")
private String publicDate;
@Schema(description = "数据来源")
private String dataSource;
@Schema(description = "备注")
private String comments;
@Schema(description = "是否推荐")
@QueryField(type = QueryType.EQ)
private Integer recommend;
@Schema(description = "排序(数字越小越靠前)")
@QueryField(type = QueryType.EQ)
private Integer sortNumber;
@Schema(description = "状态, 0正常, 1冻结")
@QueryField(type = QueryType.EQ)
private Integer status;
@Schema(description = "是否删除, 0否, 1是")
@QueryField(type = QueryType.EQ)
private Integer deleted;
@Schema(description = "用户ID")
@QueryField(type = QueryType.EQ)
private Integer userId;
}

View File

@@ -37,26 +37,22 @@ public class CreditExternalParam extends BaseParam {
private String legalRepresentative;
@Schema(description = "注册资本(金额)")
@QueryField(type = QueryType.EQ)
private BigDecimal registeredCapital;
private String registeredCapital;
@Schema(description = "成立日期")
private String establishmentDate;
@Schema(description = "持股比例")
@QueryField(type = QueryType.EQ)
private BigDecimal shareholdingRatio;
private String shareholdingRatio;
@Schema(description = "认缴出资额")
@QueryField(type = QueryType.EQ)
private BigDecimal subscribedInvestmentAmount;
private String subscribedInvestmentAmount;
@Schema(description = "认缴出资日期")
private String subscribedInvestmentDate;
@Schema(description = "间接持股比例")
@QueryField(type = QueryType.EQ)
private BigDecimal indirectShareholdingRatio;
private String indirectShareholdingRatio;
@Schema(description = "投资日期")
private String investmentDate;

View File

@@ -34,8 +34,7 @@ public class CreditRiskRelationParam extends BaseParam {
private String registrationStatus;
@Schema(description = "注册资本")
@QueryField(type = QueryType.EQ)
private BigDecimal registeredCapital;
private String registeredCapital;
@Schema(description = "省份地区")
private String provinceRegion;

View File

@@ -0,0 +1,42 @@
package com.gxwebsoft.credit.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.credit.entity.CreditCustomer;
import com.gxwebsoft.credit.param.CreditCustomerParam;
import java.util.List;
/**
* 客户Service
*
* @author 科技小王子
* @since 2025-12-21 21:20:58
*/
public interface CreditCustomerService extends IService<CreditCustomer> {
/**
* 分页关联查询
*
* @param param 查询参数
* @return PageResult<CreditCustomer>
*/
PageResult<CreditCustomer> pageRel(CreditCustomerParam param);
/**
* 关联查询全部
*
* @param param 查询参数
* @return List<CreditCustomer>
*/
List<CreditCustomer> listRel(CreditCustomerParam param);
/**
* 根据id查询
*
* @param id ID
* @return CreditCustomer
*/
CreditCustomer getByIdRel(Integer id);
}

View File

@@ -0,0 +1,47 @@
package com.gxwebsoft.credit.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.credit.entity.CreditCustomer;
import com.gxwebsoft.credit.mapper.CreditCustomerMapper;
import com.gxwebsoft.credit.param.CreditCustomerParam;
import com.gxwebsoft.credit.service.CreditCustomerService;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 客户Service实现
*
* @author 科技小王子
* @since 2025-12-21 21:20:58
*/
@Service
public class CreditCustomerServiceImpl extends ServiceImpl<CreditCustomerMapper, CreditCustomer> implements CreditCustomerService {
@Override
public PageResult<CreditCustomer> pageRel(CreditCustomerParam param) {
PageParam<CreditCustomer, CreditCustomerParam> page = new PageParam<>(param);
page.setDefaultOrder("sort_number asc, create_time desc");
List<CreditCustomer> list = baseMapper.selectPageRel(page, param);
return new PageResult<>(list, page.getTotal());
}
@Override
public List<CreditCustomer> listRel(CreditCustomerParam param) {
List<CreditCustomer> list = baseMapper.selectListRel(param);
// 排序
PageParam<CreditCustomer, CreditCustomerParam> page = new PageParam<>();
page.setDefaultOrder("sort_number asc, create_time desc");
return page.sortRecords(list);
}
@Override
public CreditCustomer getByIdRel(Integer id) {
CreditCustomerParam param = new CreditCustomerParam();
param.setId(id);
return param.getOne(baseMapper.selectListRel(param));
}
}