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
7d52d095
Commit
7d52d095
authored
Feb 01, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改工作人员导入
parent
457933be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
base-manager/src/main/java/com/mortals/xhx/common/code/UploadFileType.java
...main/java/com/mortals/xhx/common/code/UploadFileType.java
+2
-2
base-manager/src/main/java/com/mortals/xhx/module/workman/web/WorkmanController.java
...com/mortals/xhx/module/workman/web/WorkmanController.java
+19
-0
No files found.
base-manager/src/main/java/com/mortals/xhx/common/code/UploadFileType.java
View file @
7d52d095
...
...
@@ -14,11 +14,11 @@ public enum UploadFileType implements IBaseEnum {
/** 图片 */
IMG
(
2
,
"图片"
,
1024
*
1024
*
10
),
/** 压缩文件 */
ZIP
(
3
,
"压缩文件"
,
1024
*
1024
*
1
00
),
ZIP
(
3
,
"压缩文件"
,
1024
*
1024
*
5
00
),
/** PDF */
PDF
(
4
,
"PDF"
,
1024
*
1024
*
100
),
/** 其他 */
OTHER
(
99
,
"其他"
,
1024
*
1024
*
1
00
);
OTHER
(
99
,
"其他"
,
1024
*
1024
*
5
00
);
private
int
value
;
private
String
desc
;
...
...
base-manager/src/main/java/com/mortals/xhx/module/workman/web/WorkmanController.java
View file @
7d52d095
package
com.mortals.xhx.module.workman.web
;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.extra.pinyin.PinyinUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.mortals.framework.annotation.UnAuth
;
...
...
@@ -180,6 +182,16 @@ public class WorkmanController extends BaseCRUDJsonBodyMappingController<Workman
workmanEntity
.
setSiteId
(
siteEntity
.
getId
());
workmanEntity
.
setSiteName
(
siteEntity
.
getSiteName
());
}
if
(
ObjectUtils
.
isEmpty
(
workmanEntity
.
getLoginName
())){
String
loginName
=
PinyinUtil
.
getPinyin
(
workmanEntity
.
getName
(),
""
);
workmanEntity
.
setLoginName
(
loginName
);
}
if
(
ObjectUtils
.
isEmpty
(
workmanEntity
.
getLoginPwd
())){
workmanEntity
.
setLoginPwd
(
"123"
);
}
if
(!
ObjectUtils
.
isEmpty
(
deptEntity
))
{
workmanEntity
.
setDeptId
(
deptEntity
.
getId
());
workmanEntity
.
setDeptName
(
deptEntity
.
getName
());
...
...
@@ -208,4 +220,11 @@ public class WorkmanController extends BaseCRUDJsonBodyMappingController<Workman
super
.
doImportDataBefore
(
list
,
updateSupport
,
context
);
}
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
StrUtil
.
removeAllLineBreaks
(
PinyinUtil
.
getPinyin
(
"张三"
,
""
)));
}
}
\ No newline at end of file
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