Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
041c640b
提交
041c640b
authored
11月 16, 2021
作者:
zjm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(单位模块): 添加用户修改后 加入档案
添加用户修改后 加入档案
上级
7fe91103
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
169 行增加
和
67 行删除
+169
-67
billSignature.html
dev-union/src/main/resources/htmlTemplate/billSignature.html
+128
-58
UserController.java
...kj/dev/device/user/subject/controller/UserController.java
+5
-0
UserServiceImpl.java
...dev/device/user/subject/service/impl/UserServiceImpl.java
+36
-9
没有找到文件。
dev-union/src/main/resources/htmlTemplate/billSignature.html
浏览文件 @
041c640b
...
...
@@ -5,7 +5,11 @@
<meta
charset=
"UTF-8"
/>
<title>
Document
</title>
<style>
body
,
span
,
p
,
tr
,
td
{
body
,
span
,
p
,
tr
,
td
{
font-size
:
15px
;
font-family
:
FangSong_GB2312
;
margin
:
0
;
...
...
@@ -16,13 +20,15 @@
@page
{
size
:
297mm
210mm
;
}
.erwei
{
.erwei
{
width
:
43px
;
height
:
43px
;
position
:
fixed
;
left
:
150px
;
top
:
0px
;
}
.bottomTxt
{
text-align
:
center
;
font-size
:
15px
;
...
...
@@ -164,7 +170,7 @@
.returnTablePrint
.tableList
{
height
:
375px
;
overflow
:
hidden
;
overflow
:
hidden
;
}
.returnTablePrint
.line2
>>>
.el-table
tbody
tr
:nth-child
(
odd
)
{
...
...
@@ -200,7 +206,7 @@
border-right
:
1px
solid
#7f7f7f
;
padding
:
5px
10px
0
;
height
:
97%
;
height
:
97%
;
}
.returnTablePrint
.line3
.left
>
span
,
...
...
@@ -261,11 +267,13 @@
color
:
#000
;
font-size
:
15px
;
}
.returnTablePrint
.main-title
span
{
.returnTablePrint
.main-title
span
{
font-size
:
22px
;
color
:
#333
;
font-weight
:
bold
;
}
.returnTablePrint
.main-title
{
font-size
:
22px
;
color
:
#333
;
...
...
@@ -299,58 +307,71 @@
table
.altrowstable2
th
{
height
:
25px
;
line-height
:
25px
;
line-height
:
25px
;
font-size
:
15px
;
background-color
:
#fff
;
border
:
1px
solid
#bebebe
;
border
:
1px
solid
#bebebe
;
padding-top
:
0
;
}
table
.altrowstable2
td
{
height
:
25px
;
line-height
:
25px
;
line-height
:
25px
;
font-size
:
15px
;
word-break
:
break-all
;
word-wrap
:
break-word
;
border
:
1px
solid
#bebebe
;
border
:
1px
solid
#bebebe
;
width
:
100%
;
}
.td2
{
.td2
{
height
:
50px
!important
;
}
.td3
{
.td3
{
height
:
75px
!important
;
}
.td4
{
.td4
{
height
:
100px
!important
;
}
.td5
{
.td5
{
height
:
125px
!important
;
}
.td6
{
.td6
{
height
:
150px
!important
;
}
.td7
{
.td7
{
height
:
175px
!important
;
}
.td8
{
.td8
{
height
:
200px
!important
;
}
.td9
{
.td9
{
height
:
225px
!important
;
}
.td10
{
.td10
{
height
:
250px
!important
;
}
.td11
{
.td11
{
height
:
275px
!important
;
}
.td12
{
.td12
{
height
:
300px
!important
;
}
.td13
{
.td13
{
height
:
325px
!important
;
}
table
.altrowstable
{
width
:
100%
;
font-size
:
16px
;
...
...
@@ -365,22 +386,22 @@
table
.altrowstable
th
{
height
:
24px
;
line-height
:
24px
;
line-height
:
24px
;
font-size
:
15px
;
background-color
:
#ebebeb
;
marign-top
:
none
;
border
:
1px
solid
#bebebe
;
marign-top
:
none
;
border
:
1px
solid
#bebebe
;
padding-top
:
0
;
padding-bottom
:
0
;
}
table
.altrowstable
td
{
height
:
24px
;
line-height
:
24px
;
line-height
:
24px
;
font-size
:
15px
;
word-break
:
normal
;
word-wrap
:
normal
;
border
:
1px
solid
#bebebe
;
border
:
1px
solid
#bebebe
;
width
:
100%
;
}
...
...
@@ -401,7 +422,7 @@
position
:
absolute
;
bottom
:
0px
;
right
:
150px
;
}
.oddrowcolor
{
background-color
:
#fff
;
...
...
@@ -414,6 +435,27 @@
/*tr:nth-child(odd) {*/
/* background: #fafafa;*/
/*}*/
.signNameGroup
{
position
:
absolute
;
top
:
5px
;
width
:
150px
;
height
:
125px
;
display
:
flex
;
flex-direction
:
column
;
}
#signNameGroupLeft
{
left
:
200px
;
}
#signNameGroupRight
{
right
:
0px
;
}
.signNamePic
{
width
:
100%
;
height
:
50%
;
}
</style>
</head>
...
...
@@ -421,7 +463,6 @@
<div
class=
"returnTablePrint"
>
<img
class=
"erwei"
src=
${QRCode}
/>
<div
class=
"content"
>
<div>
<div
class=
"listWrapper"
>
...
...
@@ -476,50 +517,65 @@
<td>
${dev.code!}
</td>
<td>
${dev.model!}
</td><td>
${dev.parts!}
</td><td>
${dev.securityClassification!}
</td><td>
${dev.applicationField!}
</td>
<td>
${dev.model!}
</td>
<td>
${dev.parts!}
</td>
<td>
${dev.securityClassification!}
</td>
<td>
${dev.applicationField!}
</td>
<td>
${dev.count!}
</td>
<!--<td>${dev.deviceSerialNumber!}</td>-->
<
#
if
dev
.
oneCount
=
=
1
>
<
#
if
dev
.
oneCount
=
=
1
>
<td>
${dev.deviceSerialNumber!}
</td>
<
#
elseif
dev
.
oneCount =
=
2
>
<
#
elseif
dev
.
oneCount=
=
2
>
<td
class=
"td2"
>
${dev.deviceSerialNumber!}
</td>
<
#
elseif
dev
.
oneCount =
=
3
>
<
#
elseif
dev
.
oneCount=
=
3
>
<td
class=
"td3"
>
${dev.deviceSerialNumber!}
</td>
<
#
elseif
dev
.
oneCount =
=
4
>
<
#
elseif
dev
.
oneCount=
=
4
>
<td
class=
"td4"
>
${dev.deviceSerialNumber!}
</td>
<
#
elseif
dev
.
oneCount =
=
5
>
<
#
elseif
dev
.
oneCount=
=
5
>
<td
class=
"td5"
>
${dev.deviceSerialNumber!}
</td>
<
#
elseif
dev
.
oneCount =
=
6
>
<
#
elseif
dev
.
oneCount=
=
6
>
<td
class=
"td6"
>
${dev.deviceSerialNumber!}
</td>
<
#
elseif
dev
.
oneCount =
=
7
>
<
#
elseif
dev
.
oneCount=
=
7
>
<td
class=
"td7"
>
${dev.deviceSerialNumber!}
</td>
<
#
elseif
dev
.
oneCount =
=
8
>
<td
class=
"td8"
>
${dev.deviceSerialNumber!}
</td>
<
#
elseif
dev
.
oneCount=
=8
>
<td
class=
"td8"
>
${dev.deviceSerialNumber!}
</td>
<
#
elseif
dev
.
oneCount =
=
9
>
<td
class=
"td9"
>
${dev.deviceSerialNumber!}
</td>
<
#
elseif
dev
.
oneCount=
=9
>
<td
class=
"td9"
>
${dev.deviceSerialNumber!}
</td>
<
#
elseif
dev
.
oneCount =
=
10
>
<td
class=
"td10"
>
${dev.deviceSerialNumber!}
</td>
<
#
elseif
dev
.
oneCount=
=10
>
<td
class=
"td10"
>
${dev.deviceSerialNumber!}
</td>
<
#
elseif
dev
.
oneCount =
=
11
>
<td
class=
"td11"
>
${dev.deviceSerialNumber!}
</td>
<
#
elseif
dev
.
oneCount=
=11
>
<td
class=
"td11"
>
${dev.deviceSerialNumber!}
</td>
<
#
elseif
dev
.
oneCount =
=
12
>
<td
class=
"td12"
>
${dev.deviceSerialNumber!}
</td>
<
#
elseif
dev
.
oneCount=
=12
>
<td
class=
"td12"
>
${dev.deviceSerialNumber!}
</td>
<
#
elseif
dev
.
oneCount =
=
13
>
<td
class=
"td13"
>
${dev.deviceSerialNumber!}
</td>
<
#
elseif
dev
.
oneCount =
=
14
>
<td
class=
"td14"
>
${dev.deviceSerialNumber!}
</td>
<
#
elseif
dev
.
oneCount=
=13
>
<td
class=
"td13"
>
${dev.deviceSerialNumber!}
</td>
<
#
elseif
dev
.
oneCount=
=14
>
<td
class=
"td14"
>
${dev.deviceSerialNumber!}
</td>
</
#
if>
<td>
${dev.remark!}
</td>
...
...
@@ -694,6 +750,12 @@
<span
class=
"label"
><span
style=
"letter-spacing: 7px;"
>
经办
</span>
人:
</span>
<span
class=
"value"
>
${nameA!}
</span>
</span>
<span
class=
"signNameGroup"
id=
"signNameGroupLeft"
>
<img
class=
"signNamePic"
src=
"https://ss0.baidu.com/94o3dSag_xI4khGko9WTAnF6hhy/zhidao/wh%3D450%2C600/sign=d79eccd8d300baa1ba794fbf72209524/00e93901213fb80e334f60e334d12f2eb9389463.jpg"
/>
<img
class=
"signNamePic"
src=
"https://ss0.baidu.com/94o3dSag_xI4khGko9WTAnF6hhy/zhidao/wh%3D450%2C600/sign=d79eccd8d300baa1ba794fbf72209524/00e93901213fb80e334f60e334d12f2eb9389463.jpg"
/>
</span>
<i>
<span
style=
"color: #000"
>
<span
style=
"margin-bottom: 5px;"
>
(公章)
</span>
...
...
@@ -722,9 +784,19 @@
<span
class=
"label"
><span
style=
"letter-spacing: 7px;"
>
经办
</span>
人:
</span>
<span
class=
"value"
>
${nameB1!}
</span>
</span>
<span
class=
"signNameGroup"
id=
"signNameGroupRight"
>
<!--<img class="signNamePic"-->
<!--src="https://ss0.baidu.com/94o3dSag_xI4khGko9WTAnF6hhy/zhidao/pic/item/0eb30f2442a7d93360b9ee89af4bd11373f00132.jpg" />-->
<!--<img class="signNamePic"-->
<!--src="https://ss0.baidu.com/94o3dSag_xI4khGko9WTAnF6hhy/zhidao/pic/item/0eb30f2442a7d93360b9ee89af4bd11373f00132.jpg" />-->
<img
class=
"signNamePic"
src=
"https://ss0.baidu.com/94o3dSag_xI4khGko9WTAnF6hhy/zhidao/wh%3D450%2C600/sign=d79eccd8d300baa1ba794fbf72209524/00e93901213fb80e334f60e334d12f2eb9389463.jpg"
/>
<img
class=
"signNamePic"
src=
"https://ss0.baidu.com/94o3dSag_xI4khGko9WTAnF6hhy/zhidao/wh%3D450%2C600/sign=d79eccd8d300baa1ba794fbf72209524/00e93901213fb80e334f60e334d12f2eb9389463.jpg"
/>
</span>
</div>
<div
style=
"left: 250px;top: 38px;"
>
<!--<div style="position: relative;left: 250px;top: 38px;">-->
<!--<div style="position: relative;left: 250px;top: 38px;">-->
<
#
if
srcB=
='"1"'
>
<i
style=
"position: absolute;bottom: 10px;right: -150px;"
>
<
#
else
>
...
...
@@ -732,7 +804,7 @@
</
#
if>
<!--<i style="bottom: 30px;right: 90px;"> -->
<!--<i style="bottom: 30px;right: 90px;"> -->
<span
style=
"color: #000"
>
<span
style=
"margin-bottom: 5px;"
>
(公章)
</span>
<span><span
style=
"color: #fff;"
>
1234
</span>
年
<span
...
...
@@ -740,7 +812,9 @@
style=
"color: #fff;"
>
0232
</span>
日
</span>
<!--<div class="rightImg">-->
<!--<div id="pos1">-->
<img
id=
"imgB"
style=
"position: fixed;bottom: 95px;right: 164px;width:80px;height:80px"
src=
${srcB}
/>
<img
id=
"imgB"
style=
"position: fixed;bottom: 95px;right: 164px;width:80px;height:80px"
src=
${srcB}
/>
<!--</div>-->
<!--</div>-->
...
...
@@ -762,8 +836,3 @@
</body>
</html>
\ No newline at end of file
dev-user/src/main/java/com/tykj/dev/device/user/subject/controller/UserController.java
浏览文件 @
041c640b
...
...
@@ -3,6 +3,7 @@ package com.tykj.dev.device.user.subject.controller;
import
com.tykj.dev.config.swagger.AutoDocument
;
import
com.tykj.dev.device.user.base.req.*
;
import
com.tykj.dev.device.user.base.ret.UserUpdatePw
;
import
com.tykj.dev.device.user.cache.UserCache
;
import
com.tykj.dev.device.user.config.MyFilter
;
import
com.tykj.dev.device.user.config.MyUserDetailsServiceImpl
;
import
com.tykj.dev.device.user.subject.entity.SecurityUser
;
...
...
@@ -59,6 +60,9 @@ public class UserController {
@Autowired
LogoutUtil
logout
;
@Autowired
UserCache
userCache
;
@Autowired
MyWebSocket
myWebSocket
;
// @PostMapping(value = "/login")
...
...
@@ -112,6 +116,7 @@ public class UserController {
@PostMapping
(
value
=
"/update"
)
@ApiOperation
(
value
=
"用户更新接口"
,
notes
=
"更新成功返回用户对象"
)
public
ResponseEntity
updateUser
(
@RequestBody
User
user
)
{
return
ResponseEntity
.
ok
(
userService
.
update
(
user
));
}
...
...
dev-user/src/main/java/com/tykj/dev/device/user/subject/service/impl/UserServiceImpl.java
浏览文件 @
041c640b
...
...
@@ -17,6 +17,7 @@ import com.tykj.dev.device.user.subject.dao.UserDao;
import
com.tykj.dev.device.user.subject.dao.UserRoleDao
;
import
com.tykj.dev.device.user.subject.entity.*
;
import
com.tykj.dev.device.user.subject.service.*
;
import
com.tykj.dev.device.user.util.UserUtils
;
import
com.tykj.dev.misc.exception.ApiException
;
import
com.tykj.dev.misc.utils.SpringUtils
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -163,18 +164,44 @@ public class UserServiceImpl implements UserService {
return
userDao
.
findAll
();
}
@Autowired
UserUtils
userUtils
;
@Override
public
User
update
(
User
user
)
{
Optional
<
User
>
userOptional
=
userDao
.
findById
(
user
.
getUserId
());
if
(
userOptional
.
isPresent
()){
User
user1
=
userOptional
.
get
();
user
.
setNoPassword
(
user1
.
getNoPassword
());
user
.
setShowOrder
(
user1
.
getShowOrder
());
user
.
setTrainStatus
(
user1
.
getTrainStatus
());
user
.
setIsDel
(
user1
.
getIsDel
());
}
else
{
throw
new
ApiException
(
ResponseEntity
.
status
(
500
).
body
(
"没找到对应的用户id"
));
User
oldUser
=
userCache
.
findById
(
user
.
getUserId
());
if
(!
oldUser
.
getName
().
equals
(
user
.
getName
())){
userLogService
.
save
(
new
UserLog
(
userUtils
.
getCurrentUserId
(),
new
Date
(),
"修改信息 名称:"
+
oldUser
.
getName
()+
"->"
+
user
.
getName
()));
}
if
(!
oldUser
.
getMobile
().
equals
(
user
.
getMobile
())){
userLogService
.
save
(
new
UserLog
(
userUtils
.
getCurrentUserId
(),
new
Date
(),
"修改信息 手机号码:"
+
oldUser
.
getMobile
()+
"->"
+
user
.
getMobile
()));
}
if
(!
oldUser
.
getSex
().
equals
(
user
.
getSex
())){
userLogService
.
save
(
new
UserLog
(
userUtils
.
getCurrentUserId
(),
new
Date
(),
"修改信息 性别:"
+(
oldUser
.
getSex
()==
0
?
"男"
:
"女"
)+
"->"
+(
user
.
getSex
()==
0
?
"男"
:
"女"
)));
}
if
(!
oldUser
.
getPosition
().
equals
(
user
.
getPosition
())){
userLogService
.
save
(
new
UserLog
(
userUtils
.
getCurrentUserId
(),
new
Date
(),
"修改信息 职位:"
+
(
oldUser
.
getPosition
()==
0
?
"领导"
:
"职员"
)+
"->"
+(
user
.
getPosition
()==
0
?
"领导"
:
"职员"
)));
}
if
(!
oldUser
.
getEmail
().
equals
(
user
.
getEmail
())){
userLogService
.
save
(
new
UserLog
(
userUtils
.
getCurrentUserId
(),
new
Date
(),
"修改信息 邮箱:"
+
oldUser
.
getEmail
()+
"->"
+
user
.
getEmail
()));
}
if
(!
oldUser
.
getIdCard
().
equals
(
user
.
getIdCard
())){
userLogService
.
save
(
new
UserLog
(
userUtils
.
getCurrentUserId
(),
new
Date
(),
"修改信息 身份证:"
+
oldUser
.
getIdCard
()+
"->"
+
user
.
getIdCard
()));
}
if
(!
oldUser
.
getTelphone
().
equals
(
user
.
getTelphone
())){
userLogService
.
save
(
new
UserLog
(
userUtils
.
getCurrentUserId
(),
new
Date
(),
"修改信息 固定电话:"
+
oldUser
.
getTelphone
()+
"->"
+
user
.
getTelphone
()));
}
user
.
setNoPassword
(
oldUser
.
getNoPassword
());
user
.
setShowOrder
(
oldUser
.
getShowOrder
());
user
.
setTrainStatus
(
oldUser
.
getTrainStatus
());
user
.
setIsDel
(
oldUser
.
getIsDel
());
User
user1
=
userDao
.
save
(
user
);
userCache
.
refresh
(
userDao
.
findAll
());
return
user1
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论