Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-cloud-account
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.account
pica-cloud-account
提交
dd3619a4
提交
dd3619a4
编写于
6月 18, 2021
作者:
Peijun.zhao
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev-0618' into 'release'
Dev 0618 See merge request
!72
上级
8dd03379
b5b8ce74
流水线
#36500
已取消 于阶段
变更
9
流水线
2
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
323 行增加
和
44 行删除
+323
-44
DiyAcctInit.java
.../cloud/account/account/common/req/circle/DiyAcctInit.java
+22
-2
DiyAcctInitReq.java
...oud/account/account/common/req/circle/DiyAcctInitReq.java
+10
-0
CircleUserController.java
...count/account/server/controller/CircleUserController.java
+6
-0
Account.java
...com/pica/cloud/account/account/server/entity/Account.java
+30
-0
AccountMapper.java
...ca/cloud/account/account/server/mapper/AccountMapper.java
+2
-0
CircleAccountService.java
.../account/account/server/service/CircleAccountService.java
+3
-0
CircleAccountServiceImpl.java
...account/server/service/impl/CircleAccountServiceImpl.java
+225
-41
AESUtil.java
...a/com/pica/cloud/account/account/server/util/AESUtil.java
+2
-0
AccountMapper.xml
server/src/main/resources/mybatis/AccountMapper.xml
+23
-1
未找到文件。
common/src/main/java/com/pica/cloud/account/account/common/req/circle/DiyAcctInit.java
浏览文件 @
dd3619a4
...
@@ -2,9 +2,13 @@ package com.pica.cloud.account.account.common.req.circle;
...
@@ -2,9 +2,13 @@ package com.pica.cloud.account.account.common.req.circle;
public
class
DiyAcctInit
{
public
class
DiyAcctInit
{
private
String
userName
;
private
String
userName
;
//真实姓名
private
String
decryMobile
;
private
String
decryMobile
;
//明文手机
private
String
card
;
//明文 身份证
private
String
nativePlace
;
//身份证地址 可以为空
public
String
getUserName
()
{
public
String
getUserName
()
{
return
userName
;
return
userName
;
...
@@ -21,4 +25,20 @@ public class DiyAcctInit {
...
@@ -21,4 +25,20 @@ public class DiyAcctInit {
public
void
setDecryMobile
(
String
decryMobile
)
{
public
void
setDecryMobile
(
String
decryMobile
)
{
this
.
decryMobile
=
decryMobile
;
this
.
decryMobile
=
decryMobile
;
}
}
public
String
getCard
()
{
return
card
;
}
public
void
setCard
(
String
card
)
{
this
.
card
=
card
;
}
public
String
getNativePlace
()
{
return
nativePlace
;
}
public
void
setNativePlace
(
String
nativePlace
)
{
this
.
nativePlace
=
nativePlace
;
}
}
}
common/src/main/java/com/pica/cloud/account/account/common/req/circle/DiyAcctInitReq.java
浏览文件 @
dd3619a4
...
@@ -4,6 +4,8 @@ import java.util.List;
...
@@ -4,6 +4,8 @@ import java.util.List;
public
class
DiyAcctInitReq
{
public
class
DiyAcctInitReq
{
private
String
code
;
private
List
<
String
>
decryMobileList
;
private
List
<
String
>
decryMobileList
;
private
List
<
DiyAcctInit
>
diyAcctInitList
;
private
List
<
DiyAcctInit
>
diyAcctInitList
;
...
@@ -23,4 +25,12 @@ public class DiyAcctInitReq {
...
@@ -23,4 +25,12 @@ public class DiyAcctInitReq {
public
void
setDecryMobileList
(
List
<
String
>
decryMobileList
)
{
public
void
setDecryMobileList
(
List
<
String
>
decryMobileList
)
{
this
.
decryMobileList
=
decryMobileList
;
this
.
decryMobileList
=
decryMobileList
;
}
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
}
}
server/src/main/java/com/pica/cloud/account/account/server/controller/CircleUserController.java
浏览文件 @
dd3619a4
...
@@ -42,4 +42,10 @@ public class CircleUserController {
...
@@ -42,4 +42,10 @@ public class CircleUserController {
return
PicaResponse
.
toResponse
(
circleAccountService
.
createDiyAccount
(
diyAcctInitReq
));
return
PicaResponse
.
toResponse
(
circleAccountService
.
createDiyAccount
(
diyAcctInitReq
));
}
}
@PostMapping
(
"/acct/registerAndCertify"
)
@EnabledLoginValidate
public
PicaResponse
<
List
<
Integer
>>
registerAndCertify
(
@RequestBody
DiyAcctInitReq
diyAcctInitReq
)
{
return
PicaResponse
.
toResponse
(
circleAccountService
.
registerAndCertify
(
diyAcctInitReq
));
}
}
}
server/src/main/java/com/pica/cloud/account/account/server/entity/Account.java
浏览文件 @
dd3619a4
...
@@ -24,6 +24,12 @@ public class Account {
...
@@ -24,6 +24,12 @@ public class Account {
@ApiModelProperty
(
"认证状态 1未认证,2认证中,3认证通过,4认证不通过,5验证码认证,6 重新认证中,7 重新认证失败"
)
@ApiModelProperty
(
"认证状态 1未认证,2认证中,3认证通过,4认证不通过,5验证码认证,6 重新认证中,7 重新认证失败"
)
private
Integer
status
;
private
Integer
status
;
private
Integer
certifyStatus
;
private
String
nation
;
private
String
nativePlace
;
private
String
avatarImageUrl
;
private
String
avatarImageUrl
;
private
String
email
;
private
String
email
;
...
@@ -69,6 +75,30 @@ public class Account {
...
@@ -69,6 +75,30 @@ public class Account {
private
Date
birthday
;
private
Date
birthday
;
public
String
getNativePlace
()
{
return
nativePlace
;
}
public
void
setNativePlace
(
String
nativePlace
)
{
this
.
nativePlace
=
nativePlace
;
}
public
String
getNation
()
{
return
nation
;
}
public
void
setNation
(
String
nation
)
{
this
.
nation
=
nation
;
}
public
Integer
getCertifyStatus
()
{
return
certifyStatus
;
}
public
void
setCertifyStatus
(
Integer
certifyStatus
)
{
this
.
certifyStatus
=
certifyStatus
;
}
public
Long
getId
()
{
public
Long
getId
()
{
return
id
;
return
id
;
}
}
...
...
server/src/main/java/com/pica/cloud/account/account/server/mapper/AccountMapper.java
浏览文件 @
dd3619a4
...
@@ -27,6 +27,8 @@ public interface AccountMapper {
...
@@ -27,6 +27,8 @@ public interface AccountMapper {
//根据手机号获取账号
//根据手机号获取账号
Account
getByMobilePhone
(
@Param
(
"mobilePhone"
)
String
mobilePhone
);
Account
getByMobilePhone
(
@Param
(
"mobilePhone"
)
String
mobilePhone
);
Account
getByCard
(
@Param
(
"card"
)
String
card
);
//根据微信unionid获取账号
//根据微信unionid获取账号
Account
getByUnionid
(
@Param
(
"unionid"
)
String
unionid
);
Account
getByUnionid
(
@Param
(
"unionid"
)
String
unionid
);
...
...
server/src/main/java/com/pica/cloud/account/account/server/service/CircleAccountService.java
浏览文件 @
dd3619a4
...
@@ -24,4 +24,7 @@ public interface CircleAccountService {
...
@@ -24,4 +24,7 @@ public interface CircleAccountService {
Map
<
String
,
Integer
>
createShopAccount
(
ShopAcctInitReq
shopAcctInitReq
);
Map
<
String
,
Integer
>
createShopAccount
(
ShopAcctInitReq
shopAcctInitReq
);
// 注册 并且 实名认证用户,临时接口 todo
List
<
Integer
>
registerAndCertify
(
DiyAcctInitReq
diyAcctInitReq
);
}
}
server/src/main/java/com/pica/cloud/account/account/server/service/impl/CircleAccountServiceImpl.java
浏览文件 @
dd3619a4
此差异已折叠。
点击以展开。
server/src/main/java/com/pica/cloud/account/account/server/util/AESUtil.java
浏览文件 @
dd3619a4
...
@@ -188,6 +188,8 @@ public class AESUtil {
...
@@ -188,6 +188,8 @@ public class AESUtil {
public
static
void
main
(
String
[]
args
)
throws
Exception
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
// String content = AESUtil.aesDecrypt(encryptEntity.getContent(),decryptKey);
String
KEY
=
"111"
;
String
KEY
=
"111"
;
System
.
out
.
println
(
"-------------加密---------"
);
System
.
out
.
println
(
"-------------加密---------"
);
...
...
server/src/main/resources/mybatis/AccountMapper.xml
浏览文件 @
dd3619a4
...
@@ -9,6 +9,8 @@
...
@@ -9,6 +9,8 @@
<result
column=
"mobile_phone"
jdbcType=
"VARCHAR"
property=
"mobilePhone"
/>
<result
column=
"mobile_phone"
jdbcType=
"VARCHAR"
property=
"mobilePhone"
/>
<result
column=
"acct_id"
jdbcType=
"INTEGER"
property=
"acctId"
/>
<result
column=
"acct_id"
jdbcType=
"INTEGER"
property=
"acctId"
/>
<result
column=
"status"
jdbcType=
"INTEGER"
property=
"status"
/>
<result
column=
"status"
jdbcType=
"INTEGER"
property=
"status"
/>
<result
column=
"certify_status"
jdbcType=
"INTEGER"
property=
"certifyStatus"
/>
<result
column=
"nation"
jdbcType=
"VARCHAR"
property=
"nation"
/>
<result
column=
"avatar_image_url"
jdbcType=
"VARCHAR"
property=
"avatarImageUrl"
/>
<result
column=
"avatar_image_url"
jdbcType=
"VARCHAR"
property=
"avatarImageUrl"
/>
<result
column=
"email"
jdbcType=
"VARCHAR"
property=
"email"
/>
<result
column=
"email"
jdbcType=
"VARCHAR"
property=
"email"
/>
<result
column=
"qrcode"
jdbcType=
"VARCHAR"
property=
"qrcode"
/>
<result
column=
"qrcode"
jdbcType=
"VARCHAR"
property=
"qrcode"
/>
...
@@ -34,7 +36,7 @@
...
@@ -34,7 +36,7 @@
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, sex, name, mobile_phone, status, avatar_image_url, email, qrcode, nickname, personal_sign, delete_flag,
id, sex, name, mobile_phone, status,
certify_status, nation,
avatar_image_url, email, qrcode, nickname, personal_sign, delete_flag,
creat_id, creat_time, modify_id, modify_time, password, info, entire_flag, reg_time, last_login_time,
creat_id, creat_time, modify_id, modify_time, password, info, entire_flag, reg_time, last_login_time,
unionid, register_source, comment, register_type, first_login_time, card, birthday
unionid, register_source, comment, register_type, first_login_time, card, birthday
</sql>
</sql>
...
@@ -213,6 +215,18 @@
...
@@ -213,6 +215,18 @@
<update
id=
"updateByIdSelective"
parameterType=
"com.pica.cloud.account.account.server.entity.Account"
>
<update
id=
"updateByIdSelective"
parameterType=
"com.pica.cloud.account.account.server.entity.Account"
>
update p_doctor
update p_doctor
<set>
<set>
<if
test=
"status != null"
>
status = #{status,jdbcType=INTEGER},
</if>
<if
test=
"certifyStatus != null"
>
certify_status = #{certifyStatus,jdbcType=INTEGER},
</if>
<if
test=
"nation != null"
>
nation = #{nation,jdbcType=VARCHAR},
</if>
<if
test=
"nativePlace != null"
>
native_place = #{nativePlace,jdbcType=VARCHAR},
</if>
<if
test=
"sex != null"
>
<if
test=
"sex != null"
>
sex = #{sex,jdbcType=INTEGER},
sex = #{sex,jdbcType=INTEGER},
</if>
</if>
...
@@ -307,6 +321,14 @@
...
@@ -307,6 +321,14 @@
limit 1
limit 1
</select>
</select>
<select
id=
"getByCard"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from p_doctor
where card = #{card} and delete_flag = 1
limit 1
</select>
<select
id=
"getHospitalInfoByPage"
resultType=
"map"
>
<select
id=
"getHospitalInfoByPage"
resultType=
"map"
>
select id, hospital_id, hospital,mobile_phone,name,
select id, hospital_id, hospital,mobile_phone,name,
status, avatar_image_url, email,
status, avatar_image_url, email,
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录