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
7533a921
Commit
7533a921
authored
Jan 31, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.scsmile.cn/zxf/smart_gov_platform
parents
09eb6ce6
6362755c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
11 deletions
+5
-11
base-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/DemoStartedService.java
...als/xhx/daemon/applicationservice/DemoStartedService.java
+2
-11
base-manager/src/main/java/com/mortals/xhx/module/workman/model/vo/WorkmanVo.java
...va/com/mortals/xhx/module/workman/model/vo/WorkmanVo.java
+2
-0
base-manager/src/main/java/com/mortals/xhx/module/workman/web/WorkmanController.java
...com/mortals/xhx/module/workman/web/WorkmanController.java
+1
-0
No files found.
base-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/DemoStartedService.java
View file @
7533a921
...
@@ -26,14 +26,6 @@ import com.mortals.framework.springcloud.service.IApplicationStartedService;
...
@@ -26,14 +26,6 @@ import com.mortals.framework.springcloud.service.IApplicationStartedService;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
java.util.List
;
import
java.util.List
;
/**
* 应用级服务,在应用启动后、停止过程中调用
* 应用已经完成启动完成,才调用该服务
* 应用场景:
* 1、应用任务,应用启动后定时或间隔执行的任务
* 2、Socket服务端
*/
@Component
@Component
@Slf4j
@Slf4j
public
class
DemoStartedService
implements
IApplicationStartedService
{
public
class
DemoStartedService
implements
IApplicationStartedService
{
...
@@ -56,12 +48,11 @@ public class DemoStartedService implements IApplicationStartedService {
...
@@ -56,12 +48,11 @@ public class DemoStartedService implements IApplicationStartedService {
ThreadPool
.
getInstance
().
execute
(
syncTreeSiteThread
);
ThreadPool
.
getInstance
().
execute
(
syncTreeSiteThread
);
userService
.
find
(
new
UserQuery
()).
forEach
(
user
->{
/*
userService.find(new UserQuery()).forEach(user->{
Context context = new Context();
Context context = new Context();
context.setUser(user);
context.setUser(user);
ThreadPool.getInstance().execute(new SyncTreeSiteThread(context));
ThreadPool.getInstance().execute(new SyncTreeSiteThread(context));
});
});*/
/* if(ObjectUtils.isEmpty(userFeign)){
/* if(ObjectUtils.isEmpty(userFeign)){
logger.info("userFeign未加载,加载本地用户");
logger.info("userFeign未加载,加载本地用户");
...
...
base-manager/src/main/java/com/mortals/xhx/module/workman/model/vo/WorkmanVo.java
View file @
7533a921
package
com.mortals.xhx.module.workman.model.vo
;
package
com.mortals.xhx.module.workman.model.vo
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.mortals.framework.annotation.Excel
;
import
com.mortals.framework.annotation.Excel
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.framework.model.BaseEntityLong
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -21,5 +22,6 @@ public class WorkmanVo extends BaseEntityLong {
...
@@ -21,5 +22,6 @@ public class WorkmanVo extends BaseEntityLong {
* 证件图片附件
* 证件图片附件
*/
*/
@Excel
(
name
=
"证件图片"
,
type
=
Excel
.
Type
.
IMPORT
,
cellType
=
Excel
.
ColumnType
.
IMAGE
)
@Excel
(
name
=
"证件图片"
,
type
=
Excel
.
Type
.
IMPORT
,
cellType
=
Excel
.
ColumnType
.
IMAGE
)
@JSONField
(
serialize
=
false
)
private
PictureData
picObj
;
private
PictureData
picObj
;
}
}
\ No newline at end of file
base-manager/src/main/java/com/mortals/xhx/module/workman/web/WorkmanController.java
View file @
7533a921
...
@@ -177,6 +177,7 @@ public class WorkmanController extends BaseCRUDJsonBodyMappingController<Workman
...
@@ -177,6 +177,7 @@ public class WorkmanController extends BaseCRUDJsonBodyMappingController<Workman
boolean
bool
=
FileUtil
.
write
(
filePath
,
workmanEntity
.
getPicObj
().
getData
(),
true
,
true
);
boolean
bool
=
FileUtil
.
write
(
filePath
,
workmanEntity
.
getPicObj
().
getData
(),
true
,
true
);
if
(
bool
)
{
if
(
bool
)
{
workmanEntity
.
setPhotoPath
(
newName
);
workmanEntity
.
setPhotoPath
(
newName
);
workmanEntity
.
setPicObj
(
null
);
}
}
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
log
.
error
(
"写入证照异常"
,
e
);
log
.
error
(
"写入证照异常"
,
e
);
...
...
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