Commit 2f11e65d by 林冲

接口定义

1 parent 9f1358ac
...@@ -10,9 +10,6 @@ public class SalaryAppealOrderStatRequest extends AbstractRopRequest { ...@@ -10,9 +10,6 @@ public class SalaryAppealOrderStatRequest extends AbstractRopRequest {
@ApiModelProperty(value = "申诉月份(YYYY-MM)", required = true) @ApiModelProperty(value = "申诉月份(YYYY-MM)", required = true)
private String appealMonth; private String appealMonth;
@ApiModelProperty(value = "业务场景", required = true) @ApiModelProperty("员工手机号")
private Integer sceneType; private String staffPhone;
@ApiModelProperty(value = "4S店ID", required = true)
private Integer merchantId;
} }
\ No newline at end of file \ No newline at end of file
...@@ -9,4 +9,7 @@ public class SalaryAppealReplyRecordRequest extends AbstractRopRequest { ...@@ -9,4 +9,7 @@ public class SalaryAppealReplyRecordRequest extends AbstractRopRequest {
@ApiModelProperty(value = "申诉月份(YYYY-MM)", required = true) @ApiModelProperty(value = "申诉月份(YYYY-MM)", required = true)
private String appealMonth; private String appealMonth;
@ApiModelProperty("员工手机号")
private String staffPhone;
} }
\ No newline at end of file \ No newline at end of file
...@@ -69,12 +69,7 @@ public class StaffSalaryAppealApplyRecordService { ...@@ -69,12 +69,7 @@ public class StaffSalaryAppealApplyRecordService {
log.info("replyRecordList start, request:{}", request); log.info("replyRecordList start, request:{}", request);
StaffSalaryAppealApplyRecordDTO dto = new StaffSalaryAppealApplyRecordDTO(); StaffSalaryAppealApplyRecordDTO dto = new StaffSalaryAppealApplyRecordDTO();
dto.setAppealMonth(request.getAppealMonth()); dto.setAppealMonth(request.getAppealMonth());
dto.setStaffPhone(request.getStaffPhone());
// 根据当前登录人的手机号做过滤
LoginUserInfoResponse loginUserInfo = CommonUtil.getLoginUserInfo();
if (loginUserInfo != null) {
dto.setStaffPhone(loginUserInfo.getPhone());
}
RpcResponse<List<StaffSalaryAppealApplyRecordDTO>> rpcResponse = staffSalaryAppealApplyRecordRemote.replyRecordList(dto); RpcResponse<List<StaffSalaryAppealApplyRecordDTO>> rpcResponse = staffSalaryAppealApplyRecordRemote.replyRecordList(dto);
return CommonUtil.convertListRopResponse(rpcResponse, StaffSalaryAppealApplyRecordDTOConvert.INSTANCE::toReplyRecordResponse); return CommonUtil.convertListRopResponse(rpcResponse, StaffSalaryAppealApplyRecordDTOConvert.INSTANCE::toReplyRecordResponse);
...@@ -84,15 +79,8 @@ public class StaffSalaryAppealApplyRecordService { ...@@ -84,15 +79,8 @@ public class StaffSalaryAppealApplyRecordService {
log.info("orderStatistics start, request:{}", request); log.info("orderStatistics start, request:{}", request);
StaffSalaryAppealOrderStatDTO dto = new StaffSalaryAppealOrderStatDTO(); StaffSalaryAppealOrderStatDTO dto = new StaffSalaryAppealOrderStatDTO();
dto.setAppealMonth(request.getAppealMonth()); dto.setAppealMonth(request.getAppealMonth());
dto.setSceneType(request.getSceneType()); dto.setStaffPhone(request.getStaffPhone());
dto.setMerchantId(request.getMerchantId());
// 根据当前登录人的手机号做过滤
LoginUserInfoResponse loginUserInfo = CommonUtil.getLoginUserInfo();
if (loginUserInfo != null) {
dto.setStaffPhone(loginUserInfo.getPhone());
}
RpcResponse<StaffSalaryAppealOrderStatDTO> rpcResponse = staffSalaryAppealApplyRecordRemote.orderStatistics(dto); RpcResponse<StaffSalaryAppealOrderStatDTO> rpcResponse = staffSalaryAppealApplyRecordRemote.orderStatistics(dto);
return CommonUtil.convertRopResponse(rpcResponse, StaffSalaryAppealApplyRecordDTOConvert.INSTANCE::toOrderStatResponse); return CommonUtil.convertRopResponse(rpcResponse, StaffSalaryAppealApplyRecordDTOConvert.INSTANCE::toOrderStatResponse);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!