Commit 2f11e65d by 林冲

接口定义

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