Merge branch 'dev' of http://192.168.0.56:3000/bonus/Zlpt-Cloud into dev
This commit is contained in:
commit
f78f8c1a64
|
|
@ -19,7 +19,7 @@ spring:
|
||||||
config:
|
config:
|
||||||
# 配置中心地址
|
# 配置中心地址
|
||||||
server-addr: 192.168.0.14:8848
|
server-addr: 192.168.0.14:8848
|
||||||
namespace: zlpt_cloud_dev
|
namespace: zlp t_cloud_dev
|
||||||
# 配置文件格式
|
# 配置文件格式
|
||||||
file-extension: yml
|
file-extension: yml
|
||||||
# 共享配置
|
# 共享配置
|
||||||
|
|
|
||||||
|
|
@ -150,7 +150,7 @@ public class BmCompanyInfo implements Serializable {
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
@Excel(name = "创建人")
|
@Excel(name = "创建人")
|
||||||
private String creator;
|
private Integer creator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 审核人
|
* 审核人
|
||||||
|
|
@ -182,5 +182,11 @@ public class BmCompanyInfo implements Serializable {
|
||||||
@Excel(name = "修改时间")
|
@Excel(name = "修改时间")
|
||||||
private String updateTime;
|
private String updateTime;
|
||||||
|
|
||||||
|
@Excel(name = "法人身份证头像面")
|
||||||
|
private String legalFaceUrl;
|
||||||
|
|
||||||
|
@Excel(name = "法人身份证国徽面")
|
||||||
|
private String legalNationUrl;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -64,7 +64,7 @@ public class BmCompanyInfoServiceImpl implements BmCompanyInfoService {
|
||||||
public int insertSelective(BmCompanyInfoDto record) {
|
public int insertSelective(BmCompanyInfoDto record) {
|
||||||
|
|
||||||
record.getBmCompanyInfo().setCreateTime(LocalDateTime.now().toString());
|
record.getBmCompanyInfo().setCreateTime(LocalDateTime.now().toString());
|
||||||
record.getBmCompanyInfo().setCreator(SecurityUtils.getUsername());
|
record.getBmCompanyInfo().setCreator(SecurityUtils.getUserId().intValue());
|
||||||
record.getBmCompanyInfo().setStatus("0");
|
record.getBmCompanyInfo().setStatus("0");
|
||||||
bmCompanyInfoMapper.insertSelective(record.getBmCompanyInfo());
|
bmCompanyInfoMapper.insertSelective(record.getBmCompanyInfo());
|
||||||
record.getBmCoBank().setCoId(record.getBmCompanyInfo().getCompanyId());
|
record.getBmCoBank().setCoId(record.getBmCompanyInfo().getCompanyId());
|
||||||
|
|
@ -110,9 +110,9 @@ public class BmCompanyInfoServiceImpl implements BmCompanyInfoService {
|
||||||
//根据id查询企业详情
|
//根据id查询企业详情
|
||||||
BmCompanyInfo bmCompanyInfo = bmCompanyInfoMapper.selectByPrimaryKey(id);
|
BmCompanyInfo bmCompanyInfo = bmCompanyInfoMapper.selectByPrimaryKey(id);
|
||||||
//获取被授权人手机号
|
//获取被授权人手机号
|
||||||
String authPhone = bmCompanyInfo.getAuthPhone();
|
Integer userId = bmCompanyInfo.getCreator();
|
||||||
//根据手机号查询被授权人邮箱
|
//根据手机号查询被授权人邮箱
|
||||||
SysUser sysUser = bmCompanyInfoMapper.selectUserByPhoneNumber(authPhone);
|
SysUser sysUser = sysUserMapper.selectUserById(userId.longValue());
|
||||||
BmCompanyVo bmCompanyVo = new BmCompanyVo();
|
BmCompanyVo bmCompanyVo = new BmCompanyVo();
|
||||||
bmCompanyVo.setBmCompanyInfo(bmCompanyInfo);
|
bmCompanyVo.setBmCompanyInfo(bmCompanyInfo);
|
||||||
bmCompanyVo.setAuthEmail(sysUser.getEmail());
|
bmCompanyVo.setAuthEmail(sysUser.getEmail());
|
||||||
|
|
@ -132,9 +132,9 @@ public class BmCompanyInfoServiceImpl implements BmCompanyInfoService {
|
||||||
|
|
||||||
for (BmCompanyInfo bmCompanyInfo : list) {
|
for (BmCompanyInfo bmCompanyInfo : list) {
|
||||||
|
|
||||||
String authPhone = bmCompanyInfo.getAuthPhone();
|
Integer userId = bmCompanyInfo.getCreator();
|
||||||
//获取当前被授权用户信息
|
//获取当前被授权用户信息
|
||||||
SysUser sysUser = bmCompanyInfoMapper.selectUserByPhoneNumber(authPhone);
|
SysUser sysUser = sysUserMapper.selectUserById(userId.longValue());
|
||||||
int count = selectUserCount(sysUser);
|
int count = selectUserCount(sysUser);
|
||||||
BmCompanyInfoVo bmCompanyInfoVo = new BmCompanyInfoVo();
|
BmCompanyInfoVo bmCompanyInfoVo = new BmCompanyInfoVo();
|
||||||
bmCompanyInfoVo.setUserCount(count);
|
bmCompanyInfoVo.setUserCount(count);
|
||||||
|
|
|
||||||
|
|
@ -25,13 +25,15 @@
|
||||||
<result column="id_face_url" jdbcType="VARCHAR" property="idFaceUrl" />
|
<result column="id_face_url" jdbcType="VARCHAR" property="idFaceUrl" />
|
||||||
<result column="id_nation_url" jdbcType="VARCHAR" property="idNationUrl" />
|
<result column="id_nation_url" jdbcType="VARCHAR" property="idNationUrl" />
|
||||||
<result column="create_time" jdbcType="VARCHAR" property="createTime" />
|
<result column="create_time" jdbcType="VARCHAR" property="createTime" />
|
||||||
<result column="creator" jdbcType="VARCHAR" property="creator" />
|
<result column="creator" jdbcType="INTEGER" property="creator" />
|
||||||
<result column="auditor" jdbcType="INTEGER" property="auditor" />
|
<result column="auditor" jdbcType="INTEGER" property="auditor" />
|
||||||
<result column="audit_time" jdbcType="VARCHAR" property="auditTime" />
|
<result column="audit_time" jdbcType="VARCHAR" property="auditTime" />
|
||||||
<result column="audit_remark" jdbcType="VARCHAR" property="auditRemark" />
|
<result column="audit_remark" jdbcType="VARCHAR" property="auditRemark" />
|
||||||
<result column="status" jdbcType="VARCHAR" property="status" />
|
<result column="status" jdbcType="VARCHAR" property="status" />
|
||||||
<result column="logo_url" jdbcType="VARCHAR" property="logoUrl" />
|
<result column="logo_url" jdbcType="VARCHAR" property="logoUrl" />
|
||||||
<result column="update_time" jdbcType="VARCHAR" property="updateTime" />
|
<result column="update_time" jdbcType="VARCHAR" property="updateTime" />
|
||||||
|
<result column="legal_face_url" jdbcType="VARCHAR" property="legalFaceUrl" />
|
||||||
|
<result column="legal_nation_url" jdbcType="VARCHAR" property="legalNationUrl" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
|
|
@ -40,7 +42,7 @@
|
||||||
operate_address, certificateType, id_number, business_license, legal_person, invitation_code,
|
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,
|
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, create_time, creator, auditor, audit_time, audit_remark,
|
||||||
`status`, logo_url,update_time
|
`status`, logo_url,update_time,legal_face_url,legal_nation_url
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||||
|
|
@ -65,16 +67,16 @@
|
||||||
auth_phone, auth_document, id_face_url,
|
auth_phone, auth_document, id_face_url,
|
||||||
id_nation_url, create_time, creator,
|
id_nation_url, create_time, creator,
|
||||||
auditor, audit_time, audit_remark,
|
auditor, audit_time, audit_remark,
|
||||||
`status`,logo_url update_time)
|
`status`,logo_url update_time,legal_face_url,legal_nation_url)
|
||||||
values (#{companyName,jdbcType=VARCHAR}, #{companyType,jdbcType=VARCHAR}, #{companyLtd,jdbcType=VARCHAR},
|
values (#{companyName,jdbcType=VARCHAR}, #{companyType,jdbcType=VARCHAR}, #{companyLtd,jdbcType=VARCHAR},
|
||||||
#{creditCode,jdbcType=VARCHAR}, #{registerAddress,jdbcType=VARCHAR}, #{operateAddress,jdbcType=VARCHAR},
|
#{creditCode,jdbcType=VARCHAR}, #{registerAddress,jdbcType=VARCHAR}, #{operateAddress,jdbcType=VARCHAR},
|
||||||
#{certificatetype,jdbcType=VARCHAR}, #{idNumber,jdbcType=VARCHAR}, #{businessLicense,jdbcType=VARCHAR},
|
#{certificatetype,jdbcType=VARCHAR}, #{idNumber,jdbcType=VARCHAR}, #{businessLicense,jdbcType=VARCHAR},
|
||||||
#{legalPerson,jdbcType=VARCHAR}, #{invitationCode,jdbcType=VARCHAR}, #{invitationCoName,jdbcType=VARCHAR},
|
#{legalPerson,jdbcType=VARCHAR}, #{invitationCode,jdbcType=VARCHAR}, #{invitationCoName,jdbcType=VARCHAR},
|
||||||
#{businessScope,jdbcType=VARCHAR}, #{authPerson,jdbcType=VARCHAR}, #{authIdNumber,jdbcType=VARCHAR},
|
#{businessScope,jdbcType=VARCHAR}, #{authPerson,jdbcType=VARCHAR}, #{authIdNumber,jdbcType=VARCHAR},
|
||||||
#{authPhone,jdbcType=VARCHAR}, #{authDocument,jdbcType=VARCHAR}, #{idFaceUrl,jdbcType=VARCHAR},
|
#{authPhone,jdbcType=VARCHAR}, #{authDocument,jdbcType=VARCHAR}, #{idFaceUrl,jdbcType=VARCHAR},
|
||||||
#{idNationUrl,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{creator,jdbcType=VARCHAR},
|
#{idNationUrl,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{creator,jdbcType=INTEGER},
|
||||||
#{auditor,jdbcType=INTEGER}, #{auditTime,jdbcType=VARCHAR}, #{auditRemark,jdbcType=VARCHAR},
|
#{auditor,jdbcType=INTEGER}, #{auditTime,jdbcType=VARCHAR}, #{auditRemark,jdbcType=VARCHAR},
|
||||||
#{status,jdbcType=VARCHAR},#{logoUrl,jdbcType=VARCHAR}, #{updateTime,jdbcType=VARCHAR})
|
#{status,jdbcType=VARCHAR},#{logoUrl,jdbcType=VARCHAR}, #{updateTime,jdbcType=VARCHAR},#{legalFaceUrl},#{legalNationUrl})
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<insert id="insertSelective" keyColumn="company_id" keyProperty="companyId" parameterType="com.bonus.zlpt.company.domain.BmCompanyInfo" useGeneratedKeys="true">
|
<insert id="insertSelective" keyColumn="company_id" keyProperty="companyId" parameterType="com.bonus.zlpt.company.domain.BmCompanyInfo" useGeneratedKeys="true">
|
||||||
|
|
@ -162,6 +164,12 @@
|
||||||
<if test="updateTime != null and updateTime != ''">
|
<if test="updateTime != null and updateTime != ''">
|
||||||
update_time,
|
update_time,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="legalFaceUrl != null and legalFaceUrl != ''">
|
||||||
|
legal_face_url,
|
||||||
|
</if>
|
||||||
|
<if test="legalNationUrl != null and legalNationUrl != ''">
|
||||||
|
legal_nation_url,
|
||||||
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="companyName != null and companyName != ''">
|
<if test="companyName != null and companyName != ''">
|
||||||
|
|
@ -225,7 +233,7 @@
|
||||||
#{createTime,jdbcType=VARCHAR},
|
#{createTime,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="creator != null and creator != ''">
|
<if test="creator != null and creator != ''">
|
||||||
#{creator,jdbcType=VARCHAR},
|
#{creator,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="auditor != null">
|
<if test="auditor != null">
|
||||||
#{auditor,jdbcType=INTEGER},
|
#{auditor,jdbcType=INTEGER},
|
||||||
|
|
@ -245,6 +253,12 @@
|
||||||
<if test="updateTime != null and updateTime != ''">
|
<if test="updateTime != null and updateTime != ''">
|
||||||
#{updateTime,jdbcType=VARCHAR},
|
#{updateTime,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="legalFaceUrl != null and legalFaceUrl != ''">
|
||||||
|
#{legalFaceUrl},
|
||||||
|
</if>
|
||||||
|
<if test="legalNationUrl != null and legalNationUrl != ''">
|
||||||
|
#{legalNationUrl},
|
||||||
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
|
|
@ -313,7 +327,7 @@
|
||||||
create_time = #{createTime,jdbcType=VARCHAR},
|
create_time = #{createTime,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="creator != null and creator != ''">
|
<if test="creator != null and creator != ''">
|
||||||
creator = #{creator,jdbcType=VARCHAR},
|
creator = #{creator,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="auditor != null">
|
<if test="auditor != null">
|
||||||
auditor = #{auditor,jdbcType=INTEGER},
|
auditor = #{auditor,jdbcType=INTEGER},
|
||||||
|
|
@ -333,6 +347,12 @@
|
||||||
<if test="updateTime != null and updateTime != ''">
|
<if test="updateTime != null and updateTime != ''">
|
||||||
update_time = #{updateTime,jdbcType=VARCHAR},
|
update_time = #{updateTime,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="legalFaceUrl != null and legalFaceUrl != ''">
|
||||||
|
legal_face_url = #{legalFaceUrl},
|
||||||
|
</if>
|
||||||
|
<if test="legalNationUrl != null and legalNationUrl != ''">
|
||||||
|
legal_nation_url = #{legalNationUrl},
|
||||||
|
</if>
|
||||||
</set>
|
</set>
|
||||||
where company_id = #{companyId,jdbcType=INTEGER}
|
where company_id = #{companyId,jdbcType=INTEGER}
|
||||||
</update>
|
</update>
|
||||||
|
|
@ -360,13 +380,15 @@
|
||||||
id_face_url = #{idFaceUrl,jdbcType=VARCHAR},
|
id_face_url = #{idFaceUrl,jdbcType=VARCHAR},
|
||||||
id_nation_url = #{idNationUrl,jdbcType=VARCHAR},
|
id_nation_url = #{idNationUrl,jdbcType=VARCHAR},
|
||||||
create_time = #{createTime,jdbcType=VARCHAR},
|
create_time = #{createTime,jdbcType=VARCHAR},
|
||||||
creator = #{creator,jdbcType=VARCHAR},
|
creator = #{creator,jdbcType=INTEGER},
|
||||||
auditor = #{auditor,jdbcType=INTEGER},
|
auditor = #{auditor,jdbcType=INTEGER},
|
||||||
audit_time = #{auditTime,jdbcType=VARCHAR},
|
audit_time = #{auditTime,jdbcType=VARCHAR},
|
||||||
audit_remark = #{auditRemark,jdbcType=VARCHAR},
|
audit_remark = #{auditRemark,jdbcType=VARCHAR},
|
||||||
`status` = #{status,jdbcType=VARCHAR},
|
`status` = #{status,jdbcType=VARCHAR},
|
||||||
logo_url = #{logoUrl,jdbcType=VARCHAR},
|
logo_url = #{logoUrl,jdbcType=VARCHAR},
|
||||||
update_time = #{updateTime,jdbcType=VARCHAR}
|
update_time = #{updateTime,jdbcType=VARCHAR},
|
||||||
|
legal_face_url = #{legalFaceUrl},
|
||||||
|
legal_nation_url = #{legalNationUrl}
|
||||||
where company_id = #{companyId,jdbcType=INTEGER}
|
where company_id = #{companyId,jdbcType=INTEGER}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue