Commit 32349547 by 林冲

申诉单管理

1 parent b6f7b191
......@@ -35,6 +35,11 @@ public class StaffSalaryAppealApplyRecordController {
}
/**
* 经理查询底下驻店人员的,超管查询所有驻店人员的
* @param request 查询参数
* @return 分页结果
*/
@ApiOperation("员工工资申诉记录分页查询")
@ServiceMethod(method = "dj.api.staff.miniprogram.salaryapply.page", needInSession = NeedInSessionType.YES)
@PostMapping("/dj.api.staff.miniprogram.salaryapply.page/1.0.0")
......
......@@ -6,6 +6,9 @@ import lombok.Data;
@Data
public class SalaryAppealApplyPageRequest extends CommonPageRequest {
@ApiModelProperty(value = "申诉类型(1:考勤,2:平板)", dataType = "Integer", required = true, example = "1")
private Integer appealType;
@ApiModelProperty(value = "员工姓名", dataType = "String", required = false, example = "张三")
private String staffName;
......
......@@ -32,6 +32,7 @@ public class StaffSalaryAppealApplyRecordService {
// 设置查询条件
pagination.getCondition().setStaffName(request.getStaffName());
pagination.getCondition().setAppealType(request.getAppealType());
pagination.getCondition().setApplyStartTime(request.getApplyStartTime());
pagination.getCondition().setApplyEndTime(request.getApplyEndTime());
......@@ -97,6 +98,9 @@ public class StaffSalaryAppealApplyRecordService {
RpcResponse<StaffSalaryAppealApplyRecordDTO> rpcResponse = staffSalaryAppealApplyRecordRemote.queryLatest(dto);
return CommonUtil.convertRopResponse(rpcResponse, result -> {
if (result == null) {
return null;
}
SalaryAppealApplyDetailResponse response = StaffSalaryAppealApplyRecordDTOConvert.INSTANCE.toDetailResponse(result);
// 转换附件列表
if (CollectionUtils.isNotEmpty(result.getAttachmentList())) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!