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
提交
c233c3d4
提交
c233c3d4
编写于
11月 01, 2019
作者:
rushui.chen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
20191101 完善客服系统添加医生逻辑
上级
0b8090f7
流水线
#16577
已失败 于阶段
in 0 second
变更
5
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
29 行增加
和
15 行删除
+29
-15
Test.java
...main/java/com/pica/cloud/account/account/server/Test.java
+15
-0
DoctorServiceImpl.java
...ccount/account/server/service/impl/DoctorServiceImpl.java
+11
-3
AESUtil.java
...a/com/pica/cloud/account/account/server/util/AESUtil.java
+1
-1
bootstrap.properties
server/src/main/resources/bootstrap.properties
+1
-1
DoctorMapper.xml
server/src/main/resources/mybatis/DoctorMapper.xml
+1
-10
未找到文件。
server/src/main/java/com/pica/cloud/account/account/server/Test.java
浏览文件 @
c233c3d4
...
...
@@ -81,12 +81,27 @@ public class Test {
System
.
out
.
println
(
"--------------------登录接口-------------"
);
String
publicKey
=
"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCa6j3SJwXr/pLLwb6Pq8pi9StPq+Wvm6vu+LWQB1hNqClWk0jQm5GnF6Kj0ac2gqgsMsutc3hhMaaX2QZvLX+gFQHC/ufGBdBbpPtDeGWsQItsMf/xqqlkLPkc7eVTyfsmrpQM7BG9LVvaPVXPVUcZfJNBaYuR4+Sf6Zi2ayI/hQIDAQAB"
;
BaseRequest
login
=
new
BaseRequest
();
login
.
setMobile
(
"13024112588"
);
login
.
setPassword
(
"d0dcbf0d12a6b1e7fbfa2ce5848f3eff"
);
String
con
=
JSONObject
.
toJSONString
(
login
);
String
contentResult
=
AESUtil
.
aesEncrypt
(
con
,
"YCPQPx4qpQjEjDea"
);
String
keyResult
=
RSAUtil
.
encrypt
(
"YCPQPx4qpQjEjDea"
,
publicKey
);
EncryptEntity
encryptTest
=
new
EncryptEntity
();
encryptTest
.
setContent
(
contentResult
);
encryptTest
.
setKey
(
keyResult
);
...
...
server/src/main/java/com/pica/cloud/account/account/server/service/impl/DoctorServiceImpl.java
浏览文件 @
c233c3d4
...
...
@@ -38,6 +38,7 @@ public class DoctorServiceImpl implements DoctorService {
return
doctorMapper
.
selectByPrimaryKey
(
id
);
}
@Transactional
@Override
public
void
modifyDoctorInfo
(
Doctor
doctor
)
{
Integer
id
=
doctor
.
getId
();
...
...
@@ -55,9 +56,16 @@ public class DoctorServiceImpl implements DoctorService {
doctor
.
setMobilePhone
(
AESUtil
.
encryptV0
(
mobilePhone
));
doctor
.
setModifyTime
(
new
Date
());
doctorMapper
.
updateByPrimaryKeySelective
(
doctor
);
Integer
acctId
=
entity
.
getAcctId
();
AccountInfoEntity
accountInfoEntity
=
new
AccountInfoEntity
();
accountInfoEntity
.
setMobilePhone
(
AESUtil
.
encryptV0
(
mobilePhone
));
accountInfoEntity
.
setId
(
acctId
);
accountInfoEntity
.
setModifiedId
(
1580052
);
accountInfoEntity
.
setModifiedTime
(
new
Date
());
accountInfoDetailMapper
.
updateByPrimaryKeySelective
(
accountInfoEntity
);
}
@Transactional
()
@Transactional
@Override
public
void
deleteDoctorInfo
(
Integer
id
)
{
//p_doctor表修改记录状态
...
...
@@ -96,7 +104,7 @@ public class DoctorServiceImpl implements DoctorService {
entity
.
setPassword
(
password
);
entity
.
setCreatedTime
(
currentTime
);
entity
.
setModifiedTime
(
currentTime
);
entity
.
setModifiedId
(
0
);
entity
.
setModifiedId
(
1580052
);
entity
.
setRegisterProduct
(
1
);
entity
.
setRegTime
(
currentTime
);
entity
.
setRegisterSource
(
3
);
...
...
@@ -110,7 +118,7 @@ public class DoctorServiceImpl implements DoctorService {
accountInfoDetailMapper
.
insertSelective
(
entity
);
doctor
.
setAcctId
(
entity
.
getId
());
doctor
.
setMobilePhone
(
mobileEncrypt
);
doctor
.
setModifyId
(
0
);
doctor
.
setModifyId
(
1580052
);
doctor
.
setCreatId
(
0
);
doctor
.
setCreatTime
(
currentTime
);
doctor
.
setModifyTime
(
new
Date
());
...
...
server/src/main/java/com/pica/cloud/account/account/server/util/AESUtil.java
浏览文件 @
c233c3d4
...
...
@@ -168,7 +168,7 @@ public class AESUtil {
public
static
void
main
(
String
[]
args
)
throws
Exception
{
String
KEY
=
"zJJ$c5md3$yuuhWW"
;
System
.
out
.
println
(
"-------------加密---------"
);
String
content
=
"13024112
588
"
;
String
content
=
"13024112
666
"
;
System
.
out
.
println
(
"加密前:"
+
content
);
System
.
out
.
println
(
"加密密钥和解密密钥:"
+
KEY
);
...
...
server/src/main/resources/bootstrap.properties
浏览文件 @
c233c3d4
spring.profiles.active
=
dev
\ No newline at end of file
spring.profiles.active
=
uat
\ No newline at end of file
server/src/main/resources/mybatis/DoctorMapper.xml
浏览文件 @
c233c3d4
...
...
@@ -760,7 +760,6 @@
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.pica.cloud.account.account.server.entity.Doctor"
>
update p_doctor
<set>
...
...
@@ -830,9 +829,6 @@
<if
test=
"personalSign != null"
>
personal_sign = #{personalSign,jdbcType=VARCHAR},
</if>
<if
test=
"deleteFlag != null"
>
delete_flag = #{deleteFlag,jdbcType=INTEGER},
</if>
<if
test=
"creatId != null"
>
creat_id = #{creatId,jdbcType=INTEGER},
</if>
...
...
@@ -848,9 +844,6 @@
<if
test=
"praiseNum != null"
>
praise_num = #{praiseNum,jdbcType=INTEGER},
</if>
<if
test=
"password != null"
>
password = #{password,jdbcType=VARCHAR},
</if>
<if
test=
"info != null"
>
info = #{info,jdbcType=VARCHAR},
</if>
...
...
@@ -938,9 +931,7 @@
<if
test=
"showFlag != null"
>
show_flag = #{showFlag,jdbcType=INTEGER},
</if>
<if
test=
"acctId != null"
>
acct_id = #{acctId,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录