Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
44daaf65
Commit
44daaf65
authored
Feb 20, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改部分一键部署功能
parent
255cd917
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
base-manager/src/main/java/com/mortals/xhx/module/workman/service/impl/WorkmanServiceImpl.java
...s/xhx/module/workman/service/impl/WorkmanServiceImpl.java
+4
-2
base-manager/src/main/java/com/mortals/xhx/module/workman/web/WorkmanController.java
...com/mortals/xhx/module/workman/web/WorkmanController.java
+5
-5
No files found.
base-manager/src/main/java/com/mortals/xhx/module/workman/service/impl/WorkmanServiceImpl.java
View file @
44daaf65
...
@@ -158,6 +158,7 @@ public class WorkmanServiceImpl extends AbstractCRUDCacheServiceImpl<WorkmanDao,
...
@@ -158,6 +158,7 @@ public class WorkmanServiceImpl extends AbstractCRUDCacheServiceImpl<WorkmanDao,
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
throw
new
AppException
(
"密码转换异常!"
,
e
);
throw
new
AppException
(
"密码转换异常!"
,
e
);
}
}
sysUser
.
setUpdateTime
(
new
Date
());
dao
.
update
(
sysUser
);
dao
.
update
(
sysUser
);
this
.
putCache
(
loginName
,
sysUser
);
this
.
putCache
(
loginName
,
sysUser
);
...
@@ -218,7 +219,8 @@ public class WorkmanServiceImpl extends AbstractCRUDCacheServiceImpl<WorkmanDao,
...
@@ -218,7 +219,8 @@ public class WorkmanServiceImpl extends AbstractCRUDCacheServiceImpl<WorkmanDao,
boolean
bool
=
com
.
mortals
.
framework
.
util
.
FileUtil
.
write
(
filePath
,
FileUtil
.
readBytes
(
file
),
true
,
true
);
boolean
bool
=
com
.
mortals
.
framework
.
util
.
FileUtil
.
write
(
filePath
,
FileUtil
.
readBytes
(
file
),
true
,
true
);
if
(
bool
)
{
if
(
bool
)
{
workmanEntity
.
setPhotoPath
(
newName
);
workmanEntity
.
setPhotoPath
(
newName
);
workmanService
.
update
(
workmanEntity
);
workmanEntity
.
setUpdateTime
(
new
Date
());
workmanService
.
getDao
().
update
(
workmanEntity
);
}
}
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
log
.
error
(
"写入证照异常"
,
e
);
log
.
error
(
"写入证照异常"
,
e
);
...
@@ -254,7 +256,7 @@ public class WorkmanServiceImpl extends AbstractCRUDCacheServiceImpl<WorkmanDao,
...
@@ -254,7 +256,7 @@ public class WorkmanServiceImpl extends AbstractCRUDCacheServiceImpl<WorkmanDao,
entity
.
setId
(
workmanEntity
.
getId
());
entity
.
setId
(
workmanEntity
.
getId
());
entity
.
setDeleted
(
YesNoEnum
.
NO
.
getValue
());
entity
.
setDeleted
(
YesNoEnum
.
NO
.
getValue
());
entity
.
setUpdateUserId
(
this
.
getContextUserId
(
context
));
entity
.
setUpdateUserId
(
this
.
getContextUserId
(
context
));
entity
.
set
Cre
ateTime
(
new
Date
());
entity
.
set
Upd
ateTime
(
new
Date
());
WorkmanEntity
update
=
this
.
update
(
entity
,
context
);
WorkmanEntity
update
=
this
.
update
(
entity
,
context
);
if
(
update
!=
null
)
{
if
(
update
!=
null
)
{
successNum
++;
successNum
++;
...
...
base-manager/src/main/java/com/mortals/xhx/module/workman/web/WorkmanController.java
View file @
44daaf65
...
@@ -111,10 +111,10 @@ public class WorkmanController extends BaseCRUDJsonBodyMappingController<Workman
...
@@ -111,10 +111,10 @@ public class WorkmanController extends BaseCRUDJsonBodyMappingController<Workman
WorkmanEntity
workmanEntity
=
this
.
service
.
doLogin
(
query
.
getLoginName
(),
query
.
getLoginPwd
(),
ip
);
WorkmanEntity
workmanEntity
=
this
.
service
.
doLogin
(
query
.
getLoginName
(),
query
.
getLoginPwd
(),
ip
);
workmanEntity
.
setLastLoginAddress
(
ip
);
workmanEntity
.
setLastLoginAddress
(
ip
);
workmanEntity
.
setLastLoginTime
(
new
Date
());
workmanEntity
.
setLastLoginTime
(
new
Date
());
if
(
query
.
getWindowId
()!=
null
)
{
if
(
query
.
getWindowId
()
!=
null
)
{
workmanEntity
.
setWindowId
(
query
.
getWindowId
());
workmanEntity
.
setWindowId
(
query
.
getWindowId
());
WindowEntity
windowEntity
=
windowService
.
get
(
query
.
getWindowId
());
WindowEntity
windowEntity
=
windowService
.
get
(
query
.
getWindowId
());
if
(
windowEntity
!=
null
)
{
if
(
windowEntity
!=
null
)
{
workmanEntity
.
setWindowName
(
windowEntity
.
getName
());
workmanEntity
.
setWindowName
(
windowEntity
.
getName
());
}
}
}
}
...
@@ -141,7 +141,7 @@ public class WorkmanController extends BaseCRUDJsonBodyMappingController<Workman
...
@@ -141,7 +141,7 @@ public class WorkmanController extends BaseCRUDJsonBodyMappingController<Workman
JSONObject
ret
=
new
JSONObject
();
JSONObject
ret
=
new
JSONObject
();
try
{
try
{
log
.
info
(
"filePath:"
+
query
.
getFilePath
());
log
.
info
(
"filePath:"
+
query
.
getFilePath
());
Rest
<
Void
>
rest
=
this
.
service
.
doImportPic
(
query
.
getFilePath
());
this
.
service
.
doImportPic
(
query
.
getFilePath
());
ret
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_SUCCESS
);
ret
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_SUCCESS
);
recordSysLog
(
request
,
getCurUser
(),
"解析工作人员图片成功!"
);
recordSysLog
(
request
,
getCurUser
(),
"解析工作人员图片成功!"
);
return
ret
.
toJSONString
();
return
ret
.
toJSONString
();
...
@@ -170,7 +170,7 @@ public class WorkmanController extends BaseCRUDJsonBodyMappingController<Workman
...
@@ -170,7 +170,7 @@ public class WorkmanController extends BaseCRUDJsonBodyMappingController<Workman
}
else
{
}
else
{
throw
new
AppException
(
"账户密码修改失败!"
);
throw
new
AppException
(
"账户密码修改失败!"
);
}
}
recordSysLog
(
request
,
getCurUser
(),
"工作人员更新密码成功! workman:"
+
query
.
getLoginName
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
ret
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_FAILURE
);
ret
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_FAILURE
);
ret
.
put
(
KEY_RESULT_MSG
,
super
.
convertException
(
e
));
ret
.
put
(
KEY_RESULT_MSG
,
super
.
convertException
(
e
));
...
@@ -245,7 +245,7 @@ public class WorkmanController extends BaseCRUDJsonBodyMappingController<Workman
...
@@ -245,7 +245,7 @@ public class WorkmanController extends BaseCRUDJsonBodyMappingController<Workman
}
}
if
(!
ObjectUtils
.
isEmpty
(
workmanEntity
.
getDeptName
()))
{
if
(!
ObjectUtils
.
isEmpty
(
workmanEntity
.
getDeptName
()))
{
DeptEntity
dept
=
deptService
.
selectOne
(
new
DeptQuery
().
name
(
workmanEntity
.
getDeptName
()).
siteId
(
siteEntity
.
getId
()));
DeptEntity
dept
=
deptService
.
selectOne
(
new
DeptQuery
().
name
(
workmanEntity
.
getDeptName
()).
siteId
(
siteEntity
.
getId
()));
if
(!
ObjectUtils
.
isEmpty
(
dept
))
{
if
(!
ObjectUtils
.
isEmpty
(
dept
))
{
workmanEntity
.
setDeptId
(
dept
.
getId
());
workmanEntity
.
setDeptId
(
dept
.
getId
());
workmanEntity
.
setDeptName
(
dept
.
getName
());
workmanEntity
.
setDeptName
(
dept
.
getName
());
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment