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
87c5da5e
Commit
87c5da5e
authored
Aug 16, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化导入,精简字段
parent
34077fc0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
13 deletions
+15
-13
TSalaryAccountItem.java
.../cloud/plus/v1/yifu/salary/entity/TSalaryAccountItem.java
+1
-1
TSalaryAccountItemMapper.java
.../plus/v1/yifu/salary/mapper/TSalaryAccountItemMapper.java
+0
-3
SalaryUploadServiceImpl.java
.../v1/yifu/salary/service/impl/SalaryUploadServiceImpl.java
+7
-3
SalaryAccountUtil.java
...ifu/cloud/plus/v1/yifu/salary/util/SalaryAccountUtil.java
+1
-0
TSalaryAccountItemMapper.xml
...iz/src/main/resources/mapper/TSalaryAccountItemMapper.xml
+6
-6
No files found.
yifu-salary/yifu-salary-api/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/entity/TSalaryAccountItem.java
View file @
87c5da5e
...
...
@@ -97,6 +97,6 @@ public class TSalaryAccountItem extends Model<TSalaryAccountItem> {
* 财务类型0:工资;1:绩效;2:其他;3:劳务费
*/
@TableField
(
exist
=
false
)
private
String
salary
Type
;
private
String
form
Type
;
}
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/TSalaryAccountItemMapper.java
View file @
87c5da5e
...
...
@@ -13,9 +13,6 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Set
;
import
java.util.List
;
/**
* 工资报账表附加-工资明细
*
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/SalaryUploadServiceImpl.java
View file @
87c5da5e
...
...
@@ -86,7 +86,7 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
/**
* @param jsonString 客户原表数据
*
@param
repeatFlag 默认 0:不允许重复导入已存在系统内的数据;1:允许重复导入
* repeatFlag 默认 0:不允许重复导入已存在系统内的数据;1:允许重复导入
* @Description: 普通工资上传
* @Author: hgw
* @Date: 2019/9/4 15:58
...
...
@@ -176,6 +176,7 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
}
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
log
.
error
(
e
.
getMessage
());
return
R
.
failed
(
"数据导入解析失败!"
);
}
...
...
@@ -242,6 +243,9 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
s
.
setDeptId
(
dept
.
getId
());
s
.
setDeptName
(
dept
.
getDepartName
());
s
.
setDeptNo
(
dept
.
getDepartNo
());
s
.
setUnitId
(
dept
.
getCustomerId
());
s
.
setUnitName
(
dept
.
getCustomerName
());
s
.
setUnitNo
(
dept
.
getCustomerCode
());
if
(
dept
.
getProvince
()
!=
null
)
{
s
.
setProvince
(
dept
.
getProvince
());
}
...
...
@@ -902,7 +906,7 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
List
<
TSalaryAccountItem
>
backList
=
new
ArrayList
<>();
if
(
itemList
!=
null
&&
!
itemList
.
isEmpty
())
{
for
(
TSalaryAccountItem
item
:
itemList
)
{
if
(!
"3"
.
equals
(
item
.
get
Salary
Type
())
&&
Integer
.
parseInt
(
item
.
getSettlementMonth
())
>=
maxYearMonth
)
{
if
(!
"3"
.
equals
(
item
.
get
Form
Type
())
&&
Integer
.
parseInt
(
item
.
getSettlementMonth
())
>=
maxYearMonth
)
{
backList
.
add
(
item
);
}
}
...
...
@@ -922,7 +926,7 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
List
<
TSalaryAccountItem
>
backList
=
new
ArrayList
<>();
if
(
itemList
!=
null
&&
!
itemList
.
isEmpty
())
{
for
(
TSalaryAccountItem
item
:
itemList
)
{
if
(
"3"
.
equals
(
item
.
get
Salary
Type
())
&&
settleMonth
.
equals
(
item
.
getSettlementMonth
()))
{
if
(
"3"
.
equals
(
item
.
get
Form
Type
())
&&
settleMonth
.
equals
(
item
.
getSettlementMonth
()))
{
backList
.
add
(
item
);
}
}
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/util/SalaryAccountUtil.java
View file @
87c5da5e
...
...
@@ -136,6 +136,7 @@ public class SalaryAccountUtil implements Serializable {
salaryStyle
=
SalaryConstants
.
SALARY_STYLE_BANK
;
relaySalary
=
null
;
actualSalarySum
=
null
;
entity
.
setSettlementMonth
(
nowMonth
);
entity
.
setAnnualBonusType
(
SalaryConstants
.
ANNUAL_BONUS_TAX_TYPE_VALUE
[
0
]);
for
(
Map
.
Entry
<
String
,
TSalaryConfigStandard
>
entry
:
salaryConfigMap
.
entrySet
())
{
cellValueObj
=
getFieldValueByName
(
entry
.
getKey
(),
temp
);
...
...
yifu-salary/yifu-salary-biz/src/main/resources/mapper/TSalaryAccountItemMapper.xml
View file @
87c5da5e
...
...
@@ -25,7 +25,7 @@
<result
property=
"isTax"
column=
"IS_TAX"
/>
<result
property=
"empIdcard"
column=
"EMP_IDCARD"
/>
<result
property=
"settlementMonth"
column=
"SETTLEMENT_MONTH"
/>
<result
property=
"
salaryType"
column=
"SALARY
_TYPE"
/>
<result
property=
"
formType"
column=
"FORM
_TYPE"
/>
</resultMap>
<!--tSalaryAccountItem简单分页查询-->
...
...
@@ -104,7 +104,7 @@
FROM
t_salary_account_item i left join t_salary_account a on i.SALARY_ACCOUNT_ID = a.ID
<where>
a.DELETE_FLAG = 0 and a.
SALARY
_TYPE != 7
a.DELETE_FLAG = 0 and a.
FORM
_TYPE != 7
<if
test=
"idCard != null and idCard.trim() != ''"
>
AND a.EMP_IDCARD = #{idCard}
</if>
...
...
@@ -320,8 +320,8 @@
<if
test=
"tSalaryAccount.deduProvidentMonth != null and tSalaryAccount.deduProvidentMonth.trim() != ''"
>
AND a.DEDU_PROVIDENT_MONTH = #{tSalaryAccount.deduProvidentMonth}
</if>
<if
test=
"tSalaryAccount.
salaryType != null and tSalaryAccount.salary
Type.trim() != ''"
>
AND a.
SALARY_TYPE = #{tSalaryAccount.salary
Type}
<if
test=
"tSalaryAccount.
formType != null and tSalaryAccount.form
Type.trim() != ''"
>
AND a.
FORM_TYPE = #{tSalaryAccount.form
Type}
</if>
<if
test=
"tSalaryAccount.salaryTaxFlag != null and tSalaryAccount.salaryTaxFlag.trim() != ''"
>
AND a.SALARY_TAX_FLAG = #{tSalaryAccount.salaryTaxFlag}
...
...
@@ -417,7 +417,7 @@
i.IS_TAX,
a.EMP_IDCARD,
a.SETTLEMENT_MONTH,
a.
SALARY
_TYPE
a.
FORM
_TYPE
FROM
t_salary_account_item i left join t_salary_account a on i.SALARY_ACCOUNT_ID = a.ID
<where>
...
...
@@ -431,7 +431,7 @@
<if
test=
"invoiceTitle != null and invoiceTitle.trim() != ''"
>
AND a.INVOICE_TITLE = #{invoiceTitle}
</if>
AND a.DELETE_FLAG = 0 and a.
SALARY
_TYPE != 7
AND a.DELETE_FLAG = 0 and a.
FORM
_TYPE != 7
</where>
</select>
<select
id=
"getSumByAccountId"
resultType=
"java.util.Map"
>
...
...
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