Commit 205ffb8c by xiongzs

Merged from rop-merchant

账户中心rop-1205分支 [from revision 6,464]
[+]新增接口参数修改 [from revision 6,465]
[+]收益列表 核销相关字段 [from revision 6,466]
[+]收益列表 批量核销积分 [from revision 6,468]
[+]收益列表 核销人 [from revision 6,477]
[+]收益列表 核销人 [from revision 6,478]
[+]收益列表 搜索时间格式化 [from revision 6,481]
Merge all from rop-merchant 1207 [from revision 6,491]
1 parent f9cda3d2
...@@ -6,7 +6,9 @@ import cn.com.glsx.merchants.request.mission.*; ...@@ -6,7 +6,9 @@ import cn.com.glsx.merchants.request.mission.*;
import cn.com.glsx.merchants.service.MerchantMissionService; import cn.com.glsx.merchants.service.MerchantMissionService;
import cn.com.glsx.merchants.util.Pagination; import cn.com.glsx.merchants.util.Pagination;
import cn.com.glsx.stoassistant.model.response.mission.PlatformMerchantMissionInfoResponse; import cn.com.glsx.stoassistant.model.response.mission.PlatformMerchantMissionInfoResponse;
import cn.com.glsx.stoassistant.model.response.mission.PlatformMerchantMissionListResponse;
import cn.com.glsx.stoassistant.model.response.mission.PlatformMerchantStaffMissionDetailResponse; import cn.com.glsx.stoassistant.model.response.mission.PlatformMerchantStaffMissionDetailResponse;
import com.rop.AbstractRopRequest;
import com.rop.annotation.NeedInSessionType; import com.rop.annotation.NeedInSessionType;
import com.rop.annotation.ServiceMethod; import com.rop.annotation.ServiceMethod;
import com.rop.annotation.ServiceMethodBean; import com.rop.annotation.ServiceMethodBean;
...@@ -161,4 +163,20 @@ public class MerchantMissionController { ...@@ -161,4 +163,20 @@ public class MerchantMissionController {
} }
} }
/**
* 查询任务总数
*
* @param abstractRopRequest 入参
* @return
*/
@ServiceMethod(method = "merchants.api.mission.staticMission", needInSession = NeedInSessionType.NO)
@ApiOperation("查询任务总数")
public RopResponse<PlatformMerchantMissionListResponse> staticMission(AbstractRopRequest abstractRopRequest) {
try {
return RopResponse.success(merchantMissionService.staticMission(abstractRopRequest));
} catch (RpcServiceException e) {
log.info("=======MerchantMissionController__invoke__staticMission__exception:{}", e.getMessage());
return RopResponse.error(e.getErrId(), e.getMessage());
}
}
} }
...@@ -2,6 +2,7 @@ package cn.com.glsx.merchants.controller; ...@@ -2,6 +2,7 @@ package cn.com.glsx.merchants.controller;
import cn.com.glsx.framework.core.exception.RpcServiceException; import cn.com.glsx.framework.core.exception.RpcServiceException;
import cn.com.glsx.framework.rop.response.RopResponse; import cn.com.glsx.framework.rop.response.RopResponse;
import cn.com.glsx.merchants.request.score.MerchantScoreUpdateRopRequest;
import cn.com.glsx.merchants.request.score.MerchantStaffScoreSearchRopRequest; import cn.com.glsx.merchants.request.score.MerchantStaffScoreSearchRopRequest;
import cn.com.glsx.merchants.response.score.MerchantStaffScoreListRopResponse; import cn.com.glsx.merchants.response.score.MerchantStaffScoreListRopResponse;
import cn.com.glsx.merchants.service.MerchantStaffScoreService; import cn.com.glsx.merchants.service.MerchantStaffScoreService;
...@@ -64,4 +65,22 @@ public class MerchantStaffScoreController { ...@@ -64,4 +65,22 @@ public class MerchantStaffScoreController {
} }
} }
/**
* 批量核销积分
*
* @param request 入参
* @return
*/
@ServiceMethod(method = "merchants.api.staff.score.exchange", needInSession = NeedInSessionType.NO)
@ApiOperation("批量核销积分")
public RopResponse<Boolean> scoreExchange(MerchantScoreUpdateRopRequest request) {
try {
merchantStaffScoreService.scoreExchange(request);
return RopResponse.success(true);
} catch (RpcServiceException e) {
log.info("=======MerchantStaffScoreController__invoke__scoreExchange__exception:{}", e.getMessage());
return RopResponse.error(e.getErrId(), e.getMessage());
}
}
} }
...@@ -73,6 +73,12 @@ public class CreatedMissionRopRequest extends DefaultRequest implements Serializ ...@@ -73,6 +73,12 @@ public class CreatedMissionRopRequest extends DefaultRequest implements Serializ
private String activityImage; private String activityImage;
/** /**
* 1.员工发起提现 2.运营从后台核销
*/
@ApiModelProperty(notes = "1.员工发起提现 2.运营从后台核销")
private Integer withdrawalFlag;
/**
* 子任务列表 * 子任务列表
*/ */
private List<PlatformMerchantMissionDateRequest> missionDateList; private List<PlatformMerchantMissionDateRequest> missionDateList;
......
...@@ -74,6 +74,12 @@ public class UpdateMissionRopRequest extends DefaultRequest implements Serializa ...@@ -74,6 +74,12 @@ public class UpdateMissionRopRequest extends DefaultRequest implements Serializa
private String activityImage; private String activityImage;
/** /**
* 1.员工发起提现 2.运营从后台核销
*/
@ApiModelProperty(notes = "1.员工发起提现 2.运营从后台核销")
private Integer withdrawalFlag;
/**
* 子任务列表 * 子任务列表
*/ */
private List<PlatformMerchantMissionDateRequest> missionDateList; private List<PlatformMerchantMissionDateRequest> missionDateList;
......
package cn.com.glsx.merchants.request.score;
import cn.com.glsx.merchants.request.DefaultRequest;
import lombok.Data;
import java.util.List;
/**
* @ClassName MerchantScoreUpdateRopRequest
* @Description
* @Author lichongyuan
* @Date 2022/11/24
*/
@Data
public class MerchantScoreUpdateRopRequest extends DefaultRequest {
private List<Integer> idList;
}
...@@ -88,4 +88,18 @@ public class MerchantStaffScoreSearchRopRequest extends DefaultRequest { ...@@ -88,4 +88,18 @@ public class MerchantStaffScoreSearchRopRequest extends DefaultRequest {
@ApiModelProperty(notes = "当前页", name = "pageNum",required = true) @ApiModelProperty(notes = "当前页", name = "pageNum",required = true)
private Integer pageNum; private Integer pageNum;
@ApiModelProperty("是否支持提现 1.员工发起提现 2.运营从后台核销")
private Integer isWithdrawal;
@ApiModelProperty("是否核销 1核销 2 未核销")
private Integer exchangeStatus;
@ApiModelProperty("核销开始时间")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date exchangeBeginTime;
@ApiModelProperty("核销结束时间")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date exchangeEndTime;
} }
...@@ -84,4 +84,17 @@ public class MerchantStaffScoreListRopResponse implements Serializable { ...@@ -84,4 +84,17 @@ public class MerchantStaffScoreListRopResponse implements Serializable {
@ApiModelProperty(example = "明细名称") @ApiModelProperty(example = "明细名称")
private String infoName; private String infoName;
@ApiModelProperty(example = "是否支持提现 1.是 2.否")
private Integer isWithdrawal;
@ApiModelProperty(example = "是否核销 1 已核销 2 未核销")
private Integer exchangeStatus;
@ApiModelProperty(example = "核销开始时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date exchangeTime;
@ApiModelProperty(example = "核销人")
private String exchangeStaff;
} }
...@@ -11,9 +11,11 @@ import cn.com.glsx.stoassistant.model.request.mission.PlatformMerchantMissionInf ...@@ -11,9 +11,11 @@ import cn.com.glsx.stoassistant.model.request.mission.PlatformMerchantMissionInf
import cn.com.glsx.stoassistant.model.request.mission.PlatformMerchantMissionListRequest; import cn.com.glsx.stoassistant.model.request.mission.PlatformMerchantMissionListRequest;
import cn.com.glsx.stoassistant.model.request.mission.PlatformMerchantStaffMissionRequest; import cn.com.glsx.stoassistant.model.request.mission.PlatformMerchantStaffMissionRequest;
import cn.com.glsx.stoassistant.model.response.mission.PlatformMerchantMissionInfoResponse; import cn.com.glsx.stoassistant.model.response.mission.PlatformMerchantMissionInfoResponse;
import cn.com.glsx.stoassistant.model.response.mission.PlatformMerchantMissionListResponse;
import cn.com.glsx.stoassistant.model.response.mission.PlatformMerchantStaffMissionDetailResponse; import cn.com.glsx.stoassistant.model.response.mission.PlatformMerchantStaffMissionDetailResponse;
import cn.com.glsx.stoassistant.remote.PlatformMerchantMissionRemote; import cn.com.glsx.stoassistant.remote.PlatformMerchantMissionRemote;
import cn.com.glsx.stoassistant.remote.PlatformMerchantStaffMissionRemote; import cn.com.glsx.stoassistant.remote.PlatformMerchantStaffMissionRemote;
import com.rop.AbstractRopRequest;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -89,4 +91,12 @@ public class MerchantMissionService { ...@@ -89,4 +91,12 @@ public class MerchantMissionService {
} }
throw new RpcServiceException(rpcResponse.getException().getErrId(), rpcResponse.getMessage()); throw new RpcServiceException(rpcResponse.getException().getErrId(), rpcResponse.getMessage());
} }
public PlatformMerchantMissionListResponse staticMission(AbstractRopRequest abstractRopRequest) {
RpcResponse<PlatformMerchantMissionListResponse> rpcResponse = platformMerchantMissionRemote.staticMission();
if (rpcResponse.isSuccess()) {
return rpcResponse.getResult();
}
throw new RpcServiceException(rpcResponse.getException().getErrId(), rpcResponse.getMessage());
}
} }
...@@ -5,9 +5,11 @@ import cn.com.glsx.framework.core.beans.rpc.RpcResponse; ...@@ -5,9 +5,11 @@ import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.framework.core.exception.RpcServiceException; import cn.com.glsx.framework.core.exception.RpcServiceException;
import cn.com.glsx.merchants.convert.ConvertRequest; import cn.com.glsx.merchants.convert.ConvertRequest;
import cn.com.glsx.merchants.convert.ConvertResponse; import cn.com.glsx.merchants.convert.ConvertResponse;
import cn.com.glsx.merchants.request.score.MerchantScoreUpdateRopRequest;
import cn.com.glsx.merchants.request.score.MerchantStaffScoreSearchRopRequest; import cn.com.glsx.merchants.request.score.MerchantStaffScoreSearchRopRequest;
import cn.com.glsx.merchants.response.score.MerchantStaffScoreListRopResponse; import cn.com.glsx.merchants.response.score.MerchantStaffScoreListRopResponse;
import cn.com.glsx.merchants.util.ScorePagination; import cn.com.glsx.merchants.util.ScorePagination;
import cn.com.glsx.stoassistant.model.request.score.MerchantScoreUpdateRpcRequest;
import cn.com.glsx.stoassistant.model.request.score.MerchantStaffScoreSearchRpcRequest; import cn.com.glsx.stoassistant.model.request.score.MerchantStaffScoreSearchRpcRequest;
import cn.com.glsx.stoassistant.model.response.score.MerchantStaffScoreListRpcResponse; import cn.com.glsx.stoassistant.model.response.score.MerchantStaffScoreListRpcResponse;
import cn.com.glsx.stoassistant.model.response.score.MerchantStaffScorePageRpcResponse; import cn.com.glsx.stoassistant.model.response.score.MerchantStaffScorePageRpcResponse;
...@@ -78,4 +80,17 @@ public class MerchantStaffScoreService { ...@@ -78,4 +80,17 @@ public class MerchantStaffScoreService {
} }
throw new RpcServiceException(rpcResponse.getException().getErrId(), rpcResponse.getMessage()); throw new RpcServiceException(rpcResponse.getException().getErrId(), rpcResponse.getMessage());
} }
/**
* 批量核销积分
* @param request
*/
public void scoreExchange(MerchantScoreUpdateRopRequest request) {
MerchantScoreUpdateRpcRequest rpcRequest = ConvertRequest.convertRequest(request, new MerchantScoreUpdateRpcRequest());
rpcRequest.setIdList(request.getIdList());
RpcResponse<Boolean> rpcResponse = merchantStaffScoreRemote.scoreExchange(rpcRequest);
if (rpcResponse.isFailed()) {
throw new RpcServiceException(rpcResponse.getException().getErrId(), rpcResponse.getMessage());
}
}
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!