Commit c85dd63a by 谢海旭

策略中心:详情、删除、查询区域运营列表 接口部分实现

1 parent e2fcb110
......@@ -10,6 +10,8 @@ import cn.com.glsx.dj.smartcarlife.remote.StaffInfoRemote;
import cn.com.glsx.dj.strategy.dto.BatchInsertStrategyInfo;
import cn.com.glsx.dj.strategy.dto.MerchantBusinessInfo;
import cn.com.glsx.dj.strategy.dto.MerchantBusinessOverview;
import cn.com.glsx.dj.strategy.dto.ShopMerchantOperatorReqDTO;
import cn.com.glsx.dj.strategy.dto.ShopMerchantOperatorRespDTO;
import cn.com.glsx.dj.strategy.model.StrategyInfo;
import cn.com.glsx.dj.strategy.remote.StrategyInfoRemote;
import cn.com.glsx.dj.strategy.request.*;
......@@ -27,6 +29,8 @@ import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
@Slf4j
@ServiceMethodBean(version = "1.0.0", needInSession = NeedInSessionType.YES)
@Api("策略中心-策略信息")
......@@ -177,7 +181,7 @@ public class StrategyInfoController {
}
@ApiOperation("查询策略详情(学习和课程类)")
@ApiOperation("查询策略详情(学习、课程、带教申请)")
@ServiceMethod(method = "dj.api.strategy.info.queryStrategyInfoById",needInSession = NeedInSessionType.YES)
public RopResponse<StrategyInfo> queryStrategyInfoById(StrategyInfoQueryRequest request) {
try {
......@@ -266,4 +270,24 @@ public class StrategyInfoController {
return RopResponse.error(e.getMessage());
}
}
@ApiOperation("查询当前门店+业务下的全部区域运营")
@ServiceMethod(method = "dj.api.strategy.shop.merchant.operators", needInSession = NeedInSessionType.NO, ignoreSign = IgnoreSignType.YES)
public RopResponse<List<ShopMerchantOperatorRespDTO>> listShopMerchantOperators(ShopMerchantOperatorRequest request) {
try {
ShopMerchantOperatorReqDTO reqDTO = CommonUtil.convertRequest(ShopMerchantOperatorReqDTO.class);
RpcResponse<List<ShopMerchantOperatorRespDTO>> response = strategyInfoRemote.listShopMerchantOperators(reqDTO);
if (response.hasError()) {
log.error(response.getMessage());
return RopResponse.error(response.getError(), response.getMessage());
}
return RopResponse.success(response.getResult());
} catch (RpcServiceException e) {
log.error("=====dj.api.strategy.shop.merchant.operators rpcServiceException:{}", e.getMessage());
return RopResponse.error(e);
} catch (Exception e) {
log.error("=====dj.api.strategy.shop.merchant.operators exception:{}", e.getMessage(), e);
return RopResponse.error(e.getMessage());
}
}
}
package cn.com.glsx.dj.strategy.request;
import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
/**
* 查询门店区域运营列表请求
*/
@Data
public class ShopMerchantOperatorRequest extends AbstractRopRequest {
@ApiModelProperty(notes = "门店商户号", required = true)
@NotNull(message = "门店商户号不能为空")
private Integer merchantId;
@ApiModelProperty(notes = "业务类型:1-延保,2-轻改,3-权益", required = true)
@NotNull(message = "业务类型不能为空")
private Integer businessType;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!