【更新】新增字段

This commit is contained in:
nmy 2023-12-07 10:17:40 +08:00
parent 5a3d7df4e7
commit 86b39ad494
5 changed files with 23 additions and 11 deletions

View File

@ -140,6 +140,12 @@ public class BmCompanyInfo implements Serializable {
@Excel(name = "被授权人身份证国徽面")
private String idNationUrl;
/**
* 被授权人邮箱
*/
@Excel(name = "被授权人邮箱")
private String authEmail;
/**
* 创建时间
*/

View File

@ -11,9 +11,6 @@ public class BmCompanyVo {
//企业信息
private BmCompanyInfo bmCompanyInfo;
@Excel(name = "被授权人邮箱")
private String authEmail;
//企业开户行信息
private BmCoBank bmCoBank;

View File

@ -103,13 +103,10 @@ public class BmCompanyInfoServiceImpl implements BmCompanyInfoService {
//根据id查询企业详情
BmCompanyInfo bmCompanyInfo = bmCompanyInfoMapper.selectByPrimaryKey(id);
//获取被授权人手机号
Integer userId = bmCompanyInfo.getCreator();
//根据手机号查询被授权人邮箱
SysUser sysUser = remoteUserService.selectUserById(userId.longValue()).getData();
BmCompanyVo bmCompanyVo = new BmCompanyVo();
bmCompanyVo.setBmCompanyInfo(bmCompanyInfo);
bmCompanyVo.setAuthEmail(sysUser.getEmail());
bmCompanyVo.setBmCoBank(bmCoBankMapper.selectByCompanyId(bmCompanyInfo.getCompanyId()));
return bmCompanyVo;

View File

@ -24,6 +24,7 @@
<result column="auth_document" jdbcType="VARCHAR" property="authDocument" />
<result column="id_face_url" jdbcType="VARCHAR" property="idFaceUrl" />
<result column="id_nation_url" jdbcType="VARCHAR" property="idNationUrl" />
<result column="auth_email" jdbcType="VARCHAR" property="authEmail" />
<result column="create_time" jdbcType="VARCHAR" property="createTime" />
<result column="creator" jdbcType="INTEGER" property="creator" />
<result column="auditor" jdbcType="INTEGER" property="auditor" />
@ -41,7 +42,7 @@
company_id, company_name, company_type, company_ltd, credit_code, register_address,
operate_address, certificateType, id_number, business_license, legal_person, invitation_code,
invitation_co_name, business_scope, auth_person, auth_id_number, auth_phone, auth_document,
id_face_url, id_nation_url, create_time, creator, auditor, audit_time, audit_remark,
id_face_url, id_nation_url, auth_email,create_time, creator, auditor, audit_time, audit_remark,
`status`, logo_url,update_time,legal_face_url,legal_nation_url
</sql>
@ -65,7 +66,7 @@
legal_person, invitation_code, invitation_co_name,
business_scope, auth_person, auth_id_number,
auth_phone, auth_document, id_face_url,
id_nation_url, create_time, creator,
id_nation_url,auth_email, create_time, creator,
auditor, audit_time, audit_remark,
`status`,logo_url update_time,legal_face_url,legal_nation_url)
values (#{companyName,jdbcType=VARCHAR}, #{companyType,jdbcType=VARCHAR}, #{companyLtd,jdbcType=VARCHAR},
@ -74,7 +75,7 @@
#{legalPerson,jdbcType=VARCHAR}, #{invitationCode,jdbcType=VARCHAR}, #{invitationCoName,jdbcType=VARCHAR},
#{businessScope,jdbcType=VARCHAR}, #{authPerson,jdbcType=VARCHAR}, #{authIdNumber,jdbcType=VARCHAR},
#{authPhone,jdbcType=VARCHAR}, #{authDocument,jdbcType=VARCHAR}, #{idFaceUrl,jdbcType=VARCHAR},
#{idNationUrl,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{creator,jdbcType=INTEGER},
#{idNationUrl,jdbcType=VARCHAR},#{authEmail,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{creator,jdbcType=INTEGER},
#{auditor,jdbcType=INTEGER}, #{auditTime,jdbcType=VARCHAR}, #{auditRemark,jdbcType=VARCHAR},
#{status,jdbcType=VARCHAR},#{logoUrl,jdbcType=VARCHAR}, #{updateTime,jdbcType=VARCHAR},#{legalFaceUrl},#{legalNationUrl})
</insert>
@ -140,6 +141,9 @@
<if test="idNationUrl != null and idNationUrl != ''">
id_nation_url,
</if>
<if test="authEmail != null and authEmail != ''">
auth_email,
</if>
<if test="createTime != null and createTime != ''">
create_time,
</if>
@ -229,6 +233,9 @@
<if test="idNationUrl != null and idNationUrl != ''">
#{idNationUrl,jdbcType=VARCHAR},
</if>
<if test="authEmail != null and authEmail != ''">
#{auth_email,jdbcType=VARCHAR},
</if>
<if test="createTime != null and createTime != ''">
#{createTime,jdbcType=VARCHAR},
</if>
@ -323,6 +330,9 @@
<if test="idNationUrl != null and idNationUrl != ''">
id_nation_url = #{idNationUrl,jdbcType=VARCHAR},
</if>
<if test="authEmail != null and authEmail != ''">
auth_email = #{authEmail,jdbcType=VARCHAR},
</if>
<if test="createTime != null and createTime != ''">
create_time = #{createTime,jdbcType=VARCHAR},
</if>
@ -379,6 +389,7 @@
auth_document = #{authDocument,jdbcType=VARCHAR},
id_face_url = #{idFaceUrl,jdbcType=VARCHAR},
id_nation_url = #{idNationUrl,jdbcType=VARCHAR},
auth_email = #{authEmail,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=VARCHAR},
creator = #{creator,jdbcType=INTEGER},
auditor = #{auditor,jdbcType=INTEGER},

View File

@ -3,6 +3,7 @@ package com.bonus.zlpt.order;
import com.bonus.zlpt.common.security.annotation.EnableCustomConfig;
import com.bonus.zlpt.common.security.annotation.EnableRyFeignClients;
import com.bonus.zlpt.common.swagger.annotation.EnableCustomSwagger2;
import org.springframework.aop.framework.AopContext;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;