Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
6566dc61
Commit
6566dc61
authored
Oct 22, 2020
by
mobh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量发送工资条
parent
1becbe75
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
46 deletions
+42
-46
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
+8
-46
src/main/java/cn/timer/api/dao/xcgl/XcglAssoGztztMapper.java
+7
-0
src/main/java/cn/timer/api/dto/xcgl/SendpayslipBatchDto.java
+16
-0
src/main/resources/mapping/xcgl/XcglAssoGztztMapper.xml
+11
-0
No files found.
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
View file @
6566dc61
...
...
@@ -15,6 +15,7 @@ import javax.script.ScriptEngine;
import
javax.script.ScriptEngineManager
;
import
javax.script.ScriptException
;
import
cn.timer.api.dto.xcgl.*
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.validation.annotation.Validated
;
...
...
@@ -95,52 +96,6 @@ import cn.timer.api.dao.xcgl.XcglSalaryItemMapper;
import
cn.timer.api.dao.yggl.YgglMainEmpMapper
;
import
cn.timer.api.dto.kqmk.CalculatingCompensationDto
;
import
cn.timer.api.dto.sbgjj.InspersonnelDto
;
import
cn.timer.api.dto.xcgl.APPPayslipPeriodDto
;
import
cn.timer.api.dto.xcgl.AdditionalDeductionDto
;
import
cn.timer.api.dto.xcgl.AppPaysSalaryOneDto
;
import
cn.timer.api.dto.xcgl.AppPaysSalaryTwoDto
;
import
cn.timer.api.dto.xcgl.AppPayslipDetailsDto
;
import
cn.timer.api.dto.xcgl.BuildPayGroupDto
;
import
cn.timer.api.dto.xcgl.CalculatedFieldDto
;
import
cn.timer.api.dto.xcgl.CalculationDto
;
import
cn.timer.api.dto.xcgl.CalculationOptionsDto
;
import
cn.timer.api.dto.xcgl.ChangeSalaryDto
;
import
cn.timer.api.dto.xcgl.CheckSalaryStaffDto
;
import
cn.timer.api.dto.xcgl.CjPayrollGroupDto
;
import
cn.timer.api.dto.xcgl.CustomDto
;
import
cn.timer.api.dto.xcgl.FixedSalaryStaffDto
;
import
cn.timer.api.dto.xcgl.FixedsalaryDto
;
import
cn.timer.api.dto.xcgl.FloatingDataDto
;
import
cn.timer.api.dto.xcgl.HolidayInquiryDto
;
import
cn.timer.api.dto.xcgl.ImportDescriptionDto
;
import
cn.timer.api.dto.xcgl.ImportSalaryDto
;
import
cn.timer.api.dto.xcgl.ImportSalarySetDto
;
import
cn.timer.api.dto.xcgl.IndividualTaxDetailsDto
;
import
cn.timer.api.dto.xcgl.ModifyPayslipDto
;
import
cn.timer.api.dto.xcgl.ModifysalaryruleDto
;
import
cn.timer.api.dto.xcgl.PayCustomDto
;
import
cn.timer.api.dto.xcgl.PayCustomZDYDto
;
import
cn.timer.api.dto.xcgl.PayGroupedDataDto
;
import
cn.timer.api.dto.xcgl.PayTermDto
;
import
cn.timer.api.dto.xcgl.PayrollExceptionDto
;
import
cn.timer.api.dto.xcgl.PayrollGroupDto
;
import
cn.timer.api.dto.xcgl.PayslipDetailsDto
;
import
cn.timer.api.dto.xcgl.PayslipListDto
;
import
cn.timer.api.dto.xcgl.PayslipSearchDto
;
import
cn.timer.api.dto.xcgl.PushPayslipDto
;
import
cn.timer.api.dto.xcgl.SalaryCustomizationDto
;
import
cn.timer.api.dto.xcgl.SalaryFieldDto
;
import
cn.timer.api.dto.xcgl.SalaryGroupGroupingDto
;
import
cn.timer.api.dto.xcgl.SalaryItemRulesDto
;
import
cn.timer.api.dto.xcgl.SalaryRulesDto
;
import
cn.timer.api.dto.xcgl.SalaryoptionsDto
;
import
cn.timer.api.dto.xcgl.SearchSalariedPeopleDto
;
import
cn.timer.api.dto.xcgl.SpecialDeductionDto
;
import
cn.timer.api.dto.xcgl.TjSalaryItemDot
;
import
cn.timer.api.dto.xcgl.UserPersonnelDto
;
import
cn.timer.api.dto.xcgl.XcglAssoGsjsmxDto
;
import
cn.timer.api.dto.xcgl.XcglAssoOptionDto
;
import
cn.timer.api.dto.xcgl.YdMobilePacketDto
;
import
cn.timer.api.utils.DateUtil
;
import
cn.timer.api.utils.ResponseResult
;
import
cn.timer.api.utils.Result
;
...
...
@@ -3358,6 +3313,13 @@ public class SalaryManagementController {
xcglassogztztmapper
.
payslipSend
(
id
,
fsType
);
return
new
ResponseResult
().
success
(
"成功"
);
}
@PostMapping
(
value
=
"/sendpayslipBatch"
)
@ApiOperation
(
value
=
"发送工资条--一键发送"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
ResponseResult
sendpayslipBatch
(
@CurrentUser
UserBean
userBean
,
@RequestBody
SendpayslipBatchDto
dto
)
{
xcglassogztztmapper
.
payslipSendBatch
(
dto
);
return
new
ResponseResult
().
success
(
"成功"
);
}
/***************************APP*************************************************/
...
...
src/main/java/cn/timer/api/dao/xcgl/XcglAssoGztztMapper.java
View file @
6566dc61
...
...
@@ -2,6 +2,7 @@ package cn.timer.api.dao.xcgl;
import
java.util.List
;
import
cn.timer.api.dto.xcgl.PayslipSearchDto
;
import
cn.timer.api.dto.xcgl.SendpayslipBatchDto
;
import
org.springframework.stereotype.Repository
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
...
...
@@ -30,4 +31,10 @@ public interface XcglAssoGztztMapper extends BaseMapper<XcglAssoGztzt> {
* @param fsType
*/
void
payslipSend
(
Integer
id
,
Integer
fsType
);
/**
* 批量发送
* @param dto
*/
void
payslipSendBatch
(
SendpayslipBatchDto
dto
);
}
src/main/java/cn/timer/api/dto/xcgl/SendpayslipBatchDto.java
0 → 100644
View file @
6566dc61
package
cn
.
timer
.
api
.
dto
.
xcgl
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.List
;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public
class
SendpayslipBatchDto
{
private
List
<
Integer
>
ids
;
}
src/main/resources/mapping/xcgl/XcglAssoGztztMapper.xml
View file @
6566dc61
...
...
@@ -145,4 +145,14 @@
UPDATE xcgl_asso_gztzt SET fs_type = #{fsType}
WHERE id = #{id}
</update>
<!-- 发送工资条 批量发送 -->
<update
id=
"payslipSendBatch"
>
UPDATE xcgl_asso_gztzt SET fs_type = 1
WHERE fs_type in (0, 2)
AND id in
<foreach
collection=
"ids"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</update>
</mapper>
\ 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