Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
9d7238b2
Commit
9d7238b2
authored
Aug 08, 2024
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hyc-档案所在地必填调整
parent
db06197a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
69 deletions
+10
-69
EmployeeInsertVO.java
...yifu/cloud/plus/v1/yifu/archives/vo/EmployeeInsertVO.java
+6
-15
TEmployeeInfoServiceImpl.java
.../yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
+0
-50
ExcelUtil.java
...m/yifu/cloud/plus/v1/yifu/common/core/util/ExcelUtil.java
+1
-1
TDispatchImportVo.java
.../yifu/cloud/plus/v1/yifu/social/vo/TDispatchImportVo.java
+3
-3
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/EmployeeInsertVO.java
View file @
9d7238b2
...
@@ -151,25 +151,16 @@ public class EmployeeInsertVO extends RowIndex implements Serializable {
...
@@ -151,25 +151,16 @@ public class EmployeeInsertVO extends RowIndex implements Serializable {
@ExcelProperty
(
value
=
"户口性质"
)
@ExcelProperty
(
value
=
"户口性质"
)
private
String
empRegisType
;
private
String
empRegisType
;
/**
@ExcelAttribute
(
name
=
"档案所在省"
,
isArea
=
true
,
isNotEmpty
=
true
,
errorInfo
=
"档案所在省不能为空"
)
* 档案-省
@ExcelProperty
(
"档案所在省"
)
*/
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
value
=
"档案所在省"
)
private
String
fileProvince
;
private
String
fileProvince
;
/**
@ExcelAttribute
(
name
=
"档案所在市"
,
isArea
=
true
,
parentField
=
"fileProvince"
,
isNotEmpty
=
true
,
errorInfo
=
"档案所在市不能为空"
)
* 档案-市
@ExcelProperty
(
"档案所在市"
)
*/
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
value
=
"档案所在市"
)
private
String
fileCity
;
private
String
fileCity
;
/**
@ExcelAttribute
(
name
=
"档案所在县"
,
isArea
=
true
,
parentField
=
"fileCity"
,
isNotEmpty
=
true
,
errorInfo
=
"档案所在县不能为空"
)
* 档案-县
@ExcelProperty
(
"档案所在县"
)
*/
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
value
=
"档案所在县"
)
private
String
fileTown
;
private
String
fileTown
;
/**
/**
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
View file @
9d7238b2
...
@@ -1263,31 +1263,6 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
...
@@ -1263,31 +1263,6 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
saveEmp
.
setIdTown
(
Integer
.
parseInt
(
areaStr
));
saveEmp
.
setIdTown
(
Integer
.
parseInt
(
areaStr
));
}
}
}
}
// 档案所在地
if
(
Common
.
isNotNull
(
excel
.
getFileProvince
()))
{
areaStr
=
ExcelUtil
.
getRedisAreaValue
(
CacheConstants
.
AREA_VALUE
+
excel
.
getFileProvince
().
trim
());
if
(
Common
.
isEmpty
(
areaStr
))
{
errorMsg
.
add
(
MsgUtils
.
getMessage
(
ErrorCodes
.
ARCHIVES_IMPORT_EMP_FILE_AREA_ERROR
,
excel
.
getEmpIdcard
()));
}
else
{
saveEmp
.
setFileProvince
(
Integer
.
parseInt
(
areaStr
));
}
}
if
(
Common
.
isNotNull
(
excel
.
getFileCity
()))
{
areaStr
=
ExcelUtil
.
getRedisAreaValue
(
CacheConstants
.
AREA_VALUE
+
excel
.
getFileCity
().
trim
()
+
CommonConstants
.
DOWN_LINE_STRING
+
excel
.
getFileProvince
().
trim
());
if
(
Common
.
isEmpty
(
areaStr
))
{
errorMsg
.
add
(
MsgUtils
.
getMessage
(
ErrorCodes
.
ARCHIVES_IMPORT_EMP_FILE_AREA_ERROR
,
excel
.
getEmpIdcard
()));
}
else
{
saveEmp
.
setFileCity
(
Integer
.
parseInt
(
areaStr
));
}
}
if
(
Common
.
isNotNull
(
excel
.
getFileTown
()))
{
areaStr
=
ExcelUtil
.
getRedisAreaValue
(
CacheConstants
.
AREA_VALUE
+
excel
.
getFileTown
().
trim
()
+
CommonConstants
.
DOWN_LINE_STRING
+
excel
.
getFileCity
().
trim
());
if
(
Common
.
isEmpty
(
areaStr
))
{
errorMsg
.
add
(
MsgUtils
.
getMessage
(
ErrorCodes
.
ARCHIVES_IMPORT_EMP_FILE_AREA_ERROR
,
excel
.
getEmpIdcard
()));
}
else
{
saveEmp
.
setFileTown
(
Integer
.
parseInt
(
areaStr
));
}
}
if
(
Common
.
isNotNull
(
excel
.
getIsCollege
()))
{
if
(
Common
.
isNotNull
(
excel
.
getIsCollege
()))
{
if
(
CommonConstants
.
IS_TRUE
.
equals
(
excel
.
getIsCollege
()))
{
if
(
CommonConstants
.
IS_TRUE
.
equals
(
excel
.
getIsCollege
()))
{
saveEmp
.
setIsCollege
(
CommonConstants
.
ONE_INT
);
saveEmp
.
setIsCollege
(
CommonConstants
.
ONE_INT
);
...
@@ -1780,31 +1755,6 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
...
@@ -1780,31 +1755,6 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
saveEmp
.
setIdTown
(
Integer
.
parseInt
(
areaStr
));
saveEmp
.
setIdTown
(
Integer
.
parseInt
(
areaStr
));
}
}
}
}
// 档案所在地
if
(
Common
.
isNotNull
(
excel
.
getFileProvince
()))
{
areaStr
=
ExcelUtil
.
getRedisAreaValue
(
CacheConstants
.
AREA_VALUE
+
excel
.
getFileProvince
().
trim
());
if
(
Common
.
isEmpty
(
areaStr
))
{
errorMsg
.
add
(
MsgUtils
.
getMessage
(
ErrorCodes
.
ARCHIVES_IMPORT_EMP_FILE_AREA_ERROR
,
excel
.
getEmpIdcard
()));
}
else
{
saveEmp
.
setFileProvince
(
Integer
.
parseInt
(
areaStr
));
}
}
if
(
Common
.
isNotNull
(
excel
.
getFileCity
()))
{
areaStr
=
ExcelUtil
.
getRedisAreaValue
(
CacheConstants
.
AREA_VALUE
+
excel
.
getFileCity
().
trim
()
+
CommonConstants
.
DOWN_LINE_STRING
+
excel
.
getFileProvince
().
trim
());
if
(
Common
.
isEmpty
(
areaStr
))
{
errorMsg
.
add
(
MsgUtils
.
getMessage
(
ErrorCodes
.
ARCHIVES_IMPORT_EMP_FILE_AREA_ERROR
,
excel
.
getEmpIdcard
()));
}
else
{
saveEmp
.
setFileCity
(
Integer
.
parseInt
(
areaStr
));
}
}
if
(
Common
.
isNotNull
(
excel
.
getFileTown
()))
{
areaStr
=
ExcelUtil
.
getRedisAreaValue
(
CacheConstants
.
AREA_VALUE
+
excel
.
getFileTown
().
trim
()
+
CommonConstants
.
DOWN_LINE_STRING
+
excel
.
getFileCity
().
trim
());
if
(
Common
.
isEmpty
(
areaStr
))
{
errorMsg
.
add
(
MsgUtils
.
getMessage
(
ErrorCodes
.
ARCHIVES_IMPORT_EMP_FILE_AREA_ERROR
,
excel
.
getEmpIdcard
()));
}
else
{
saveEmp
.
setFileTown
(
Integer
.
parseInt
(
areaStr
));
}
}
if
(
Common
.
isNotNull
(
excel
.
getIsCollege
()))
{
if
(
Common
.
isNotNull
(
excel
.
getIsCollege
()))
{
if
(
CommonConstants
.
IS_TRUE
.
equals
(
excel
.
getIsCollege
()))
{
if
(
CommonConstants
.
IS_TRUE
.
equals
(
excel
.
getIsCollege
()))
{
saveEmp
.
setIsCollege
(
CommonConstants
.
ONE_INT
);
saveEmp
.
setIsCollege
(
CommonConstants
.
ONE_INT
);
...
...
yifu-common/yifu-common-core/src/main/java/com/yifu/cloud/plus/v1/yifu/common/core/util/ExcelUtil.java
View file @
9d7238b2
...
@@ -482,7 +482,7 @@ public class ExcelUtil <T> implements Serializable {
...
@@ -482,7 +482,7 @@ public class ExcelUtil <T> implements Serializable {
private
String
getAreaValue
(
String
c
,
String
tempStr
,
ExcelAttribute
attr
,
Integer
rowNum
,
ErrorMessage
errorTemp
)
{
private
String
getAreaValue
(
String
c
,
String
tempStr
,
ExcelAttribute
attr
,
Integer
rowNum
,
ErrorMessage
errorTemp
)
{
tempStr
=
String
.
valueOf
(
RedisUtil
.
redis
.
opsForValue
().
get
(
CacheConstants
.
AREA_VALUE
+
c
));
tempStr
=
String
.
valueOf
(
RedisUtil
.
redis
.
opsForValue
().
get
(
CacheConstants
.
AREA_VALUE
+
c
));
if
(
Common
.
isEmpty
(
tempStr
)){
if
(
Common
.
isEmpty
(
tempStr
)){
errorMessageHashMap
=
initErrorMessage
(
errorMessageHashMap
,
new
ErrorMessage
(
rowNum
,
attr
.
name
()
+
":"
+
c
.
trim
()
+
"校验异常
,请联系管理人员
"
),
errorTemp
);
errorMessageHashMap
=
initErrorMessage
(
errorMessageHashMap
,
new
ErrorMessage
(
rowNum
,
attr
.
name
()
+
":"
+
c
.
trim
()
+
"校验异常"
),
errorTemp
);
return
CommonConstants
.
EMPTY_STRING
;
return
CommonConstants
.
EMPTY_STRING
;
}
}
return
tempStr
;
return
tempStr
;
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TDispatchImportVo.java
View file @
9d7238b2
...
@@ -124,7 +124,7 @@ public class TDispatchImportVo extends RowIndex implements Serializable {
...
@@ -124,7 +124,7 @@ public class TDispatchImportVo extends RowIndex implements Serializable {
/**
/**
* 档案-省
* 档案-省
*/
*/
@ExcelAttribute
(
name
=
"档案-省"
,
isArea
=
true
)
@ExcelAttribute
(
name
=
"档案-省"
,
isArea
=
true
,
isNotEmpty
=
true
,
errorInfo
=
"档案-省不能为空"
)
@Schema
(
description
=
"档案-省"
)
@Schema
(
description
=
"档案-省"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"档案-省"
)
@ExcelProperty
(
"档案-省"
)
...
@@ -132,7 +132,7 @@ public class TDispatchImportVo extends RowIndex implements Serializable {
...
@@ -132,7 +132,7 @@ public class TDispatchImportVo extends RowIndex implements Serializable {
/**
/**
* 档案-市
* 档案-市
*/
*/
@ExcelAttribute
(
name
=
"档案-市"
,
isArea
=
true
,
parentField
=
"fileProvince"
)
@ExcelAttribute
(
name
=
"档案-市"
,
isArea
=
true
,
parentField
=
"fileProvince"
,
isNotEmpty
=
true
,
errorInfo
=
"档案-市不能为空"
)
@Schema
(
description
=
"档案-市"
)
@Schema
(
description
=
"档案-市"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"档案-市"
)
@ExcelProperty
(
"档案-市"
)
...
@@ -140,7 +140,7 @@ public class TDispatchImportVo extends RowIndex implements Serializable {
...
@@ -140,7 +140,7 @@ public class TDispatchImportVo extends RowIndex implements Serializable {
/**
/**
* 档案-县
* 档案-县
*/
*/
@ExcelAttribute
(
name
=
"档案-县"
,
isArea
=
true
,
parentField
=
"fileCity"
)
@ExcelAttribute
(
name
=
"档案-县"
,
isArea
=
true
,
parentField
=
"fileCity"
,
isNotEmpty
=
true
,
errorInfo
=
"档案-县不能为空"
)
@Schema
(
description
=
"档案-县"
)
@Schema
(
description
=
"档案-县"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"档案-县"
)
@ExcelProperty
(
"档案-县"
)
...
...
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