Commit b9495268 by yelq

Merge all from rop-merchant dj_v4.41.0_20240708

1 parent 6833523c
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<dependency> <dependency>
<groupId>cn.com.glsx.merchants</groupId> <groupId>cn.com.glsx.merchants</groupId>
<artifactId>platform-merchants-api</artifactId> <artifactId>platform-merchants-api</artifactId>
<version>4.39.0-SNAPSHOT</version> <version>DJ-4.41.0-SNAPSHOT</version>
</dependency> </dependency>
<!--引用GSON,用于打印--> <!--引用GSON,用于打印-->
<dependency> <dependency>
......
...@@ -3,6 +3,8 @@ package cn.com.glsx.merchants.controller; ...@@ -3,6 +3,8 @@ package cn.com.glsx.merchants.controller;
import cn.com.glsx.framework.core.enums.DefaultErrorEnum; import cn.com.glsx.framework.core.enums.DefaultErrorEnum;
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.dto.MerchantBrandDTO;
import cn.com.glsx.merchants.model.request.MerchantRequest;
import cn.com.glsx.merchants.model.response.MerchantStaffResponse; import cn.com.glsx.merchants.model.response.MerchantStaffResponse;
import cn.com.glsx.merchants.model.response.MerchantSubListResponse; import cn.com.glsx.merchants.model.response.MerchantSubListResponse;
import cn.com.glsx.merchants.model.response.merchant.MerchantBasicInfoListResponse; import cn.com.glsx.merchants.model.response.merchant.MerchantBasicInfoListResponse;
...@@ -692,6 +694,17 @@ public class OpenController { ...@@ -692,6 +694,17 @@ public class OpenController {
} }
} }
@ApiOperation("查询商户品牌数据")
@ServiceMethod(method = "merchants.api.open.merchant.brand.info", needInSession = NeedInSessionType.NO)
public RopResponse<List<MerchantBrandDTO>> getCarBrandList(MerchantNoRopRequest request){
try {
return RopResponse.success(openService.getCarBrandList(request));
} catch (Exception e) {
log.info("查询商户品牌数据:{}",e);
return RopResponse.error(e.getMessage());
}
}
} }
...@@ -4,10 +4,15 @@ import com.rop.AbstractRopRequest; ...@@ -4,10 +4,15 @@ import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.util.List;
@Data @Data
public class MerchantNoRopRequest extends AbstractRopRequest { public class MerchantNoRopRequest extends AbstractRopRequest {
@ApiModelProperty(notes = "商户号",required = true) @ApiModelProperty(notes = "商户号")
private Integer merchantNo; private Integer merchantNo;
@ApiModelProperty(notes = "商户号集合")
private List<Integer> merchantNoList;
} }
...@@ -36,7 +36,7 @@ public class SearchStaffPageRopRequest extends DefaultRequest { ...@@ -36,7 +36,7 @@ public class SearchStaffPageRopRequest extends DefaultRequest {
@NotNull @NotNull
private Integer pageNum; private Integer pageNum;
@ApiModelProperty(notes = "员工状态 0:正常 -1:已删除 2:禁用 3:全部状态") @ApiModelProperty(notes = "员工状态 0:正常 -1:已删除 2:禁用 3:全部状态 4:未删除的员工")
private Integer delFlag = 0; private Integer delFlag = 0;
@ApiModelProperty(notes = "员工uuid集合") @ApiModelProperty(notes = "员工uuid集合")
......
...@@ -21,6 +21,12 @@ public class ServiceStaffRopResponse implements Serializable { ...@@ -21,6 +21,12 @@ public class ServiceStaffRopResponse implements Serializable {
@ApiModelProperty(example = "员工名") @ApiModelProperty(example = "员工名")
private String staffName; private String staffName;
@ApiModelProperty(notes = "角色名")
private String roleName;
@ApiModelProperty(notes = "角色id")
private Integer roleId;
@ApiModelProperty(example = "员工手机号") @ApiModelProperty(example = "员工手机号")
private String staffPhone; private String staffPhone;
......
...@@ -6,6 +6,8 @@ import cn.com.glsx.framework.core.exception.RpcServiceException; ...@@ -6,6 +6,8 @@ import cn.com.glsx.framework.core.exception.RpcServiceException;
import cn.com.glsx.merchants.contants.Contants; import cn.com.glsx.merchants.contants.Contants;
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.dto.MerchantBrandDTO;
import cn.com.glsx.merchants.dto.merchant.CarbrandResponse;
import cn.com.glsx.merchants.model.request.*; import cn.com.glsx.merchants.model.request.*;
import cn.com.glsx.merchants.model.request.MerchantBrandRequest; import cn.com.glsx.merchants.model.request.MerchantBrandRequest;
import cn.com.glsx.merchants.model.request.merchant.FindBySupMerchantNoRpcRequest; import cn.com.glsx.merchants.model.request.merchant.FindBySupMerchantNoRpcRequest;
...@@ -536,4 +538,13 @@ public class OpenService { ...@@ -536,4 +538,13 @@ public class OpenService {
} }
throw new RpcServiceException(rpcResponse.getError(),rpcResponse.getException().getErrId(), rpcResponse.getMessage()); throw new RpcServiceException(rpcResponse.getError(),rpcResponse.getException().getErrId(), rpcResponse.getMessage());
} }
public List<MerchantBrandDTO> getCarBrandList(MerchantNoRopRequest request) {
MerchantRequest rpcRequest = ConvertRequest.convertRequest(request, new MerchantRequest());
RpcResponse<List<CarbrandResponse>> rpcResponse = merchantRemote.getCarBrandList(rpcRequest);
if (rpcResponse.isSuccess()) {
return ConvertResponse.convertList(rpcResponse.getResult(), MerchantBrandDTO.class);
}
throw new RpcServiceException(rpcResponse.getError(),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!