Commit f6e5cfc8 authored by suhuiguang's avatar suhuiguang

1.脚本维护

parent bec721c7
......@@ -33,6 +33,9 @@ public class RegUnitInfoDto extends BaseDto {
@ApiModelProperty(value = "证件类型")
private String unitCodeType;
@ApiModelProperty(value = "证件类型名称")
private String unitCodeTypeName;
@ApiModelProperty(value = "单位类型")
private String unitType;
......
......@@ -40,6 +40,11 @@ public class RegUnitInfo extends BaseEntity {
private String unitCodeType;
/**
* 证件类型名称
*/
private String unitCodeTypeName;
/**
* 单位类型
*/
@TableField("unit_type")
......
......@@ -88,6 +88,7 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
tzsAuthServiceImpl.setRequestContext();
// 注册用统一信用码注册,默认证件类型为营业执照,数据来源:cb_data_dictionary code = 1060
model.setUnitCodeType("1060");
model.setUnitCodeTypeName("营业执照");
Bean.copyExistPropertis(model, regUnitInfo);
// 1.插入单位注册许可信息表:tz_base_unit_licence
List<BaseUnitLicenceDto> unitLicenceDtos = model.getUnitLicences();
......@@ -143,6 +144,7 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
public void createBaseEnterpriseInfo(RegUnitInfoDto regUnitInfo) {
TzBaseEnterpriseInfo baseEnterpriseInfo = new TzBaseEnterpriseInfo();
baseEnterpriseInfo.setUseUnitCertificate(regUnitInfo.getUnitCodeTypeName());
baseEnterpriseInfo.setUnitType(regUnitInfo.getUnitType());
baseEnterpriseInfo.setUseCode(regUnitInfo.getUnitCode());
baseEnterpriseInfo.setUseUnit(regUnitInfo.getName());
......
......@@ -346,5 +346,27 @@
ALTER TABLE `tz_base_enterprise_info` add column `is_delete` bit(1) DEFAULT b'0' COMMENT '是否删除(0:未删除,1:已删除)';
</sql>
</changeSet>
<changeSet author="suhuiguang" id="1660201816131-07">
<preConditions onFail="MARK_RAN">
<not>
<columnExists tableName="tz_base_enterprise_info" columnName="rec_user_name"/>
</not>
</preConditions>
<comment>tz_base_enterprise_info 增加公共字段 rec_user_name</comment>
<sql>
ALTER TABLE `tz_base_enterprise_info` add column `rec_user_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '更新人名称';
</sql>
</changeSet>
<changeSet author="suhuiguang" id="1660201816131-09">
<preConditions onFail="MARK_RAN">
<not>
<columnExists tableName="tz_flc_reg_unit_info" columnName="unit_code_type_name"/>
</not>
</preConditions>
<comment>tz_flc_reg_unit_info 增加字段 unit_code_type_name 证件类型名称</comment>
<sql>
ALTER TABLE `tz_flc_reg_unit_info` add column `unit_code_type_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '证件类型名称';
</sql>
</changeSet>
</databaseChangeLog>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment