Commit 341fa6c3 by xiongzs

Merge all from rop-merchant V3.7.1三月底版本紧急需求

1 parent 238b332c
......@@ -15,7 +15,7 @@
<dependency>
<groupId>cn.com.glsx.merchants</groupId>
<artifactId>platform-merchants-api</artifactId>
<version>1.0-SNAPSHOT</version>
<version>3.7.1-SNAPSHOT</version>
</dependency>
<!--引用GSON,用于打印-->
<dependency>
......
......@@ -8,8 +8,10 @@ import cn.com.glsx.merchants.request.accounttype.MerchantListByConditionRopReque
import cn.com.glsx.merchants.request.merchant.*;
import cn.com.glsx.merchants.request.open.*;
import cn.com.glsx.merchants.request.staff.MerchantNoListByStaffPhone;
import cn.com.glsx.merchants.request.staff.StaffListRequest;
import cn.com.glsx.merchants.response.*;
import cn.com.glsx.merchants.service.OpenService;
import cn.com.glsx.merchants.service.StaffService;
import cn.com.glsx.merchants.util.Pagination;
import com.rop.AbstractRopRequest;
import com.rop.annotation.NeedInSessionType;
......@@ -37,6 +39,9 @@ public class OpenController {
@Autowired
private OpenService openService;
@Autowired
private StaffService staffService;
@ServiceMethod(method = "merchants.api.open.findMerchantDetailByMerchantNo", needInSession = NeedInSessionType.NO)
@ApiOperation("根据商户号查询商户详情")
public RopResponse<MerchantRopResponse> findMerchantDetailByMerchantNo(OpenMerchantDetailRequest openMerchantRequest) {
......@@ -514,4 +519,22 @@ public class OpenController {
return RopResponse.error(e.getErrId(), e.getMessage());
}
}
/**
* 查询员工列表
*
* @param staffListRequest 入参
* @return
*/
@ServiceMethod(method = "merchants.api.open.findMerchantStaffList", needInSession = NeedInSessionType.NO)
@ApiOperation("查询员工列表")
public RopResponse<List<StaffResponse>> findMerchantStaffList(StaffListRequest staffListRequest) {
try {
List<StaffResponse> staffResponse = staffService.findMerchantStaffList(staffListRequest);
return RopResponse.success(staffResponse);
} catch (RpcServiceException e) {
log.info("=======StaffController__invoke__findMerchantStaffList__exception:{}", e.getMessage());
return RopResponse.error(e.getErrId(), e.getMessage());
}
}
}
\ No newline at end of file
......@@ -25,4 +25,14 @@ public class StaffListRequest extends DefaultRequest {
*/
@ApiModelProperty(notes = "关键字")
private String keyword;
@ApiModelProperty(value = "商户号")
private Integer merchantNo;
@ApiModelProperty(notes = "员工标签:0-「1.0新车权益销售」,1-「1.1次新车精品升级」,2-「1.2次新车线上转化」,3-「1.3存量用户众筹」")
private String staffLabel;
}
......@@ -163,6 +163,12 @@ public class StaffResponse implements Serializable {
private String uuid;
/**
* 商户号
*/
@ApiModelProperty(example = "商户号")
private Integer merchantNo;
/**
* 微信
*/
//微信小程序openId
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!