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
f871bd3c
Commit
f871bd3c
authored
Apr 02, 2026
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.7.21-0申报去重,用目标表
parent
a2b0b8d9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
TSalaryZeroMapper.java
...u/cloud/plus/v1/yifu/salary/mapper/TSalaryZeroMapper.java
+2
-2
TSalaryZeroServiceImpl.java
...s/v1/yifu/salary/service/impl/TSalaryZeroServiceImpl.java
+2
-2
TSalaryZeroMapper.xml
...alary-biz/src/main/resources/mapper/TSalaryZeroMapper.xml
+2
-1
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/TSalaryZeroMapper.java
View file @
f871bd3c
...
...
@@ -80,8 +80,8 @@ public interface TSalaryZeroMapper extends BaseMapper<TSalaryZero> {
// 1:自动创建临时表(1月创建含去年12月的计税月份)(2月更新成当年的上月的计税月份)
void
createTempZeroDayView
(
@Param
(
"viewDayName"
)
String
viewDayName
);
void
createTempZeroDay
(
@Param
(
"viewDayName"
)
String
viewDayName
);
// 2.1:将已存在
月度
表的数据清理掉
void
deleteCurTempZeroDay
();
// 2.1:将已存在
0申报
表的数据清理掉
void
deleteCurTempZeroDay
(
@Param
(
"tableName"
)
String
tableName
);
// 2.2:将已存在报账的数据更新掉
void
updateTempZeroDayDelete
();
// 2.3:更新减除费用与计税月
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TSalaryZeroServiceImpl.java
View file @
f871bd3c
...
...
@@ -634,8 +634,8 @@ public class TSalaryZeroServiceImpl extends ServiceImpl<TSalaryZeroMapper, TSala
// 1:核心逻辑:自动创建临时表(1月创建含去年12月的计税月份)(其他月更新成当年的上月的计税月份)
baseMapper
.
createTempZeroDayView
(
viewDayName
);
baseMapper
.
createTempZeroDay
(
viewDayName
);
// 2.1:将已存在的数据清理掉
baseMapper
.
deleteCurTempZeroDay
();
// 2.1:将已存在
0申报表
的数据清理掉
baseMapper
.
deleteCurTempZeroDay
(
tableName
);
// 2.2:将已存在报账的数据更新掉
baseMapper
.
updateTempZeroDayDelete
();
// 2.3:更新减除费用与计税月
...
...
yifu-salary/yifu-salary-biz/src/main/resources/mapper/TSalaryZeroMapper.xml
View file @
f871bd3c
...
...
@@ -249,9 +249,10 @@
<update
id=
"deleteCurTempZeroDay"
statementType=
"STATEMENT"
>
DELETE d
FROM t_salary_zero_day_tmp d
INNER JOIN
t_salary_zero_tmp
t
INNER JOIN
${tableName}
t
ON t.EMP_IDCARD = d.EMP_IDCARD
AND t.INVOICE_TITLE = d.INVOICE_TITLE
AND t.SETTLE_MONTH = d.SETTLE_MONTH
</update>
<!-- 自动创建临时表(1月创建含去年12月的计税月份)(2月更新成当年的上月的计税月份) (不含减除费用与)-->
<update
id=
"createTempZeroYearView"
statementType=
"STATEMENT"
>
...
...
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