提交 d6c90c65 编写于 作者: rushui.chen's avatar rushui.chen

Merge branch 'release' of 192.168.110.53:com.pica.cloud.account/pica-cloud-account into release

流水线 #16483 已失败 于阶段
in 0 second
...@@ -184,6 +184,7 @@ public class RegisterServiceImpl implements RegisterService { ...@@ -184,6 +184,7 @@ public class RegisterServiceImpl implements RegisterService {
@Override @Override
public void ocinRegister(OCINRequest request) { public void ocinRegister(OCINRequest request) {
String mobile = request.getMobile(); String mobile = request.getMobile();
String name = request.getName();
AccountInfoEntity accountInfoEntity = accountInfoDetailMapper.selectByMobile(mobile); AccountInfoEntity accountInfoEntity = accountInfoDetailMapper.selectByMobile(mobile);
if (accountInfoEntity == null) { if (accountInfoEntity == null) {
Date currentTime = new Date(); Date currentTime = new Date();
...@@ -199,6 +200,7 @@ public class RegisterServiceImpl implements RegisterService { ...@@ -199,6 +200,7 @@ public class RegisterServiceImpl implements RegisterService {
accountInfo.setRegTime(currentTime); accountInfo.setRegTime(currentTime);
accountInfo.setDeleteFlag(1); accountInfo.setDeleteFlag(1);
accountInfo.setSex(0); accountInfo.setSex(0);
accountInfo.setName(name);
accountInfo.setRegisterProduct(productType); accountInfo.setRegisterProduct(productType);
accountInfo.setRegisterSource(sourceType); accountInfo.setRegisterSource(sourceType);
accountInfoDetailMapper.insertSelective(accountInfo); accountInfoDetailMapper.insertSelective(accountInfo);
...@@ -216,6 +218,7 @@ public class RegisterServiceImpl implements RegisterService { ...@@ -216,6 +218,7 @@ public class RegisterServiceImpl implements RegisterService {
account.setFirstLoginTime(currentTime); account.setFirstLoginTime(currentTime);
account.setLastLoginTime(currentTime); account.setLastLoginTime(currentTime);
account.setPassword(""); account.setPassword("");
account.setName(name);
accountMapper.insertSelective(account); accountMapper.insertSelective(account);
Long userId = accountUtils.getUserIdByAcctId(productType, acctId); Long userId = accountUtils.getUserIdByAcctId(productType, acctId);
processAgreement(userId); processAgreement(userId);
......
...@@ -123,7 +123,7 @@ public class RSAUtil { ...@@ -123,7 +123,7 @@ public class RSAUtil {
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
//生成公钥和私钥 //生成公钥和私钥
//genKeyPair(); // genKeyPair();
// keyMap.put(0, publicKey); // keyMap.put(0, publicKey);
// keyMap.put(1, privateKey); // keyMap.put(1, privateKey);
// //加密字符串 // //加密字符串
......
...@@ -46,4 +46,8 @@ spring.rabbitmq.host=192.168.110.206 ...@@ -46,4 +46,8 @@ spring.rabbitmq.host=192.168.110.206
spring.rabbitmq.port=5672 spring.rabbitmq.port=5672
spring.rabbitmq.username=appuser spring.rabbitmq.username=appuser
spring.rabbitmq.password=AqLfvyWOvLQEUzdI spring.rabbitmq.password=AqLfvyWOvLQEUzdI
spring.rabbitmq.virtual-host=account-register-vhost spring.rabbitmq.virtual-host=account-register-vhost
\ No newline at end of file
management.security.enabled=false
management.endpoint.health.show-details=always
...@@ -45,3 +45,6 @@ weChatURL=https://api.weixin.qq.com/sns/userinfo? ...@@ -45,3 +45,6 @@ weChatURL=https://api.weixin.qq.com/sns/userinfo?
#是否开启双写模式,是否需要向p_doctor表写数据 #是否开启双写模式,是否需要向p_doctor表写数据
doubleWritingMode=true doubleWritingMode=true
management.security.enabled=false
management.endpoint.health.show-details=always
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<result column="modified_time" property="modifiedTime" jdbcType="TIMESTAMP"/> <result column="modified_time" property="modifiedTime" jdbcType="TIMESTAMP"/>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, mobile_phone, password, register_product, register_source, name, age, birthday, id, mobile_phone, password, register_product, register_source, name, age, birthday,
sex, id_card, reg_time, delete_flag, created_id, created_time, modified_id, modified_time sex, id_card, reg_time, delete_flag, created_id, created_time, modified_id, modified_time
</sql> </sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer"> <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
...@@ -72,16 +72,16 @@ ...@@ -72,16 +72,16 @@
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</delete> </delete>
<insert id="insert" parameterType="com.pica.cloud.account.account.server.entity.AccountInfoEntity"> <insert id="insert" parameterType="com.pica.cloud.account.account.server.entity.AccountInfoEntity">
insert into account_info (id, mobile_phone, password, insert into account_info (id, mobile_phone, password,
register_product, register_source, name, register_product, register_source, name,
age, birthday, sex, id_card, age, birthday, sex, id_card,
reg_time, delete_flag, created_id, reg_time, delete_flag, created_id,
created_time, modified_id, modified_time created_time, modified_id, modified_time
) )
values (#{id,jdbcType=INTEGER}, #{mobilePhone,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, values (#{id,jdbcType=INTEGER}, #{mobilePhone,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
#{registerProduct,jdbcType=INTEGER}, #{registerSource,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{registerProduct,jdbcType=INTEGER}, #{registerSource,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR},
#{age,jdbcType=TINYINT}, #{birthday,jdbcType=DATE}, #{sex,jdbcType=TINYINT}, #{idCard,jdbcType=VARCHAR}, #{age,jdbcType=TINYINT}, #{birthday,jdbcType=DATE}, #{sex,jdbcType=TINYINT}, #{idCard,jdbcType=VARCHAR},
#{regTime,jdbcType=TIMESTAMP}, #{deleteFlag,jdbcType=INTEGER}, #{createdId,jdbcType=INTEGER}, #{regTime,jdbcType=TIMESTAMP}, #{deleteFlag,jdbcType=INTEGER}, #{createdId,jdbcType=INTEGER},
#{createdTime,jdbcType=TIMESTAMP}, #{modifiedId,jdbcType=INTEGER}, #{modifiedTime,jdbcType=TIMESTAMP} #{createdTime,jdbcType=TIMESTAMP}, #{modifiedId,jdbcType=INTEGER}, #{modifiedTime,jdbcType=TIMESTAMP}
) )
</insert> </insert>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册