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
9ed179bd
Commit
9ed179bd
authored
May 30, 2023
by
fangxinjiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/MVP1.5.4' into MVP1.5.4
parents
1f3c8445
9fb3109c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
SalaryAccountUtil.java
...ifu/cloud/plus/v1/yifu/salary/util/SalaryAccountUtil.java
+23
-0
SalaryConstants.java
.../yifu/cloud/plus/v1/yifu/salary/util/SalaryConstants.java
+5
-0
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/util/SalaryAccountUtil.java
View file @
9ed179bd
...
@@ -299,6 +299,23 @@ public class SalaryAccountUtil implements Serializable {
...
@@ -299,6 +299,23 @@ public class SalaryAccountUtil implements Serializable {
errorList
.
add
(
new
ErrorMessage
((
i
+
2
),
"请注意:工资发放时间,只能是【立即发】或【暂停发】!你的内容:【"
+
cellValueStr
+
"】"
));
errorList
.
add
(
new
ErrorMessage
((
i
+
2
),
"请注意:工资发放时间,只能是【立即发】或【暂停发】!你的内容:【"
+
cellValueStr
+
"】"
));
continue
;
continue
;
}
}
if
(
SalaryConstants
.
SALARY_STYLE
.
equals
(
scs
.
getJavaFiedName
())
&&
!
SalaryConstants
.
SALARY_STYLE_YIN
.
equals
(
cellValueStr
)
&&
!
SalaryConstants
.
SALARY_STYLE_XIAN
.
equals
(
cellValueStr
))
{
errorFlag
=
false
;
errorList
.
add
(
new
ErrorMessage
((
i
+
2
),
"请注意:发放方式,只能是【银行】或【现金】!你的内容:【"
+
cellValueStr
+
"】"
));
continue
;
}
if
(
SalaryConstants
.
IS_PERSON_TAX
.
equals
(
scs
.
getJavaFiedName
())
&&
!
SalaryConstants
.
IS_COMPANY
.
equals
(
cellValueStr
)
&&
!
SalaryConstants
.
IS_PERSON_OTHER
.
equals
(
cellValueStr
)
&&
!
SalaryConstants
.
IS_PERSON
.
equals
(
cellValueStr
))
{
errorFlag
=
false
;
errorList
.
add
(
new
ErrorMessage
((
i
+
2
),
"请注意:是否个人承担部分税费,只能是【"
+
SalaryConstants
.
IS_COMPANY
+
"】或【"
+
SalaryConstants
.
IS_PERSON_OTHER
+
"】或【"
+
SalaryConstants
.
IS_PERSON
+
"】!你的内容:【"
+
cellValueStr
+
"】"
));
continue
;
}
setFields
(
field
,
cellValueStr
,
attr
,
fieldType
,
entity
);
setFields
(
field
,
cellValueStr
,
attr
,
fieldType
,
entity
);
error
=
validateUtil
(
cellValueStr
,
attr
,
(
i
+
2
));
error
=
validateUtil
(
cellValueStr
,
attr
,
(
i
+
2
));
if
(
null
!=
error
)
{
if
(
null
!=
error
)
{
...
@@ -481,6 +498,7 @@ public class SalaryAccountUtil implements Serializable {
...
@@ -481,6 +498,7 @@ public class SalaryAccountUtil implements Serializable {
continue
;
continue
;
}
}
newEmps
.
setSalaryGiveTime
(
entity
.
getSalaryGiveTime
());
newEmps
.
setSalaryGiveTime
(
entity
.
getSalaryGiveTime
());
log
.
error
(
newEmps
.
getEmpName
());
saveNewEmpList
.
add
(
newEmps
);
saveNewEmpList
.
add
(
newEmps
);
checkTaxMonthList
.
add
(
newEmps
.
getEmpIdcard
());
checkTaxMonthList
.
add
(
newEmps
.
getEmpIdcard
());
}
else
{
}
else
{
...
@@ -963,9 +981,14 @@ public class SalaryAccountUtil implements Serializable {
...
@@ -963,9 +981,14 @@ public class SalaryAccountUtil implements Serializable {
}
}
areaStr
=
ExcelUtil
.
getRedisAreaValue
(
CacheConstants
.
AREA_VALUE
+
entity
.
getBankCity
().
trim
()
areaStr
=
ExcelUtil
.
getRedisAreaValue
(
CacheConstants
.
AREA_VALUE
+
entity
.
getBankCity
().
trim
()
+
CommonConstants
.
DOWN_LINE_STRING
+
entity
.
getBankProvince
().
trim
());
+
CommonConstants
.
DOWN_LINE_STRING
+
entity
.
getBankProvince
().
trim
());
log
.
error
(
"entity.getBankCity():"
+
entity
.
getBankCity
());
log
.
error
(
"entity.getBankProvince():"
+
entity
.
getBankProvince
());
log
.
error
(
"areaStr:"
+
areaStr
);
if
(
Common
.
isNotNull
(
areaStr
))
{
if
(
Common
.
isNotNull
(
areaStr
))
{
newEmp
.
setBankCity
(
areaStr
);
newEmp
.
setBankCity
(
areaStr
);
log
.
error
(
"1:areaStr:"
+
areaStr
);
}
else
{
}
else
{
log
.
error
(
"2:开户行市错误:"
+
areaStr
);
error
=
"第"
+
(
i
+
2
)
+
"行:"
+
newEmpStr
+
"-开户行市错误:"
+
entity
.
getBankCity
();
error
=
"第"
+
(
i
+
2
)
+
"行:"
+
newEmpStr
+
"-开户行市错误:"
+
entity
.
getBankCity
();
errorList
.
add
(
new
ErrorMessage
((
i
+
2
),
error
));
errorList
.
add
(
new
ErrorMessage
((
i
+
2
),
error
));
return
false
;
return
false
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/util/SalaryConstants.java
View file @
9ed179bd
...
@@ -195,4 +195,9 @@ public class SalaryConstants {
...
@@ -195,4 +195,9 @@ public class SalaryConstants {
public
static
final
String
TAX_MONTH_LENGTH
=
"计税月份错误"
;
public
static
final
String
TAX_MONTH_LENGTH
=
"计税月份错误"
;
// 暂停发java
// 暂停发java
public
static
final
String
SALARY_GIVE_TIME_JAVA
=
"salaryGiveTime"
;
public
static
final
String
SALARY_GIVE_TIME_JAVA
=
"salaryGiveTime"
;
public
static
final
String
SALARY_STYLE
=
"salaryStyle"
;
public
static
final
String
SALARY_STYLE_YIN
=
"银行"
;
public
static
final
String
SALARY_STYLE_XIAN
=
"现金"
;
public
static
final
String
IS_PERSON_TAX
=
"isPersonTax"
;
}
}
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