通过id查询工资单详情

This commit is contained in:
钱涛 2023-02-09 17:05:07 +08:00
parent 57753bfb4a
commit b6429eb41c
5 changed files with 9 additions and 0 deletions

View File

@ -38,6 +38,8 @@ public class SalarySendDetailListQueryParam extends BaseQueryParam {
// @ApiModelProperty("姓名")
private String username;
private Long userId;
// @ApiModelProperty("个税扣缴义务人的主键id")
private Long taxAgent;

View File

@ -39,6 +39,8 @@ public class SalarySendDetailQueryParam extends BaseQueryParam {
// @ApiModelProperty("姓名")
private String username;
private Long userId;
// @ApiModelProperty("个税扣缴义务人的主键id")
private Long taxAgentId;

View File

@ -39,6 +39,7 @@ public class SalarySendInfoQueryParam extends BaseQueryParam {
// @ApiModelProperty("姓名")
private String username;
private Long userId;
// @ApiModelProperty("个税扣缴义务人的主键id")
private Long taxAgentId;

View File

@ -170,6 +170,9 @@
<if test="param.username != null and param.username != ''">
AND e.lastname like CONCAT('%',#{param.username},'%')
</if>
<if test="param.userId != null">
AND e.id = #{param.userId}
</if>
<!-- 个税扣缴义务人id -->
<if test="param.taxAgentId != null">
AND t2.id = #{param.taxAgentId}

View File

@ -408,6 +408,7 @@ public class SalaryBillController {
User user = HrmUserVarify.getUser(request, response);
// 处理入参复用方法
SalarySendDetailQueryParam detailQueryParam = SalarySendDetailQueryParam.builder()
.userId(queryParam.getUserId())
.departmentIds(SalaryEntityUtil.isNullOrEmpty(queryParam.getDepartment()) ? null : Collections.singletonList(queryParam.getDepartment()))
.salarySendId(queryParam.getSalarySendId())
.mergeCountTax(queryParam.getMergeCountTax())