Commit 3ff0a872 by wanghao

Merge all from merchant_1.0.3_0309

1 parent c3a4bcc5
......@@ -79,4 +79,8 @@ public class MerchantSearchResquest extends DefaultRequest {
*/
@ApiModelProperty(notes = "父商户号")
private Integer parentMerchantNo;
public Integer getSuperMerchantNo(){
return super.getMerchantNo();
}
}
......@@ -9,12 +9,14 @@ import cn.com.glsx.merchants.enums.BusinessExceptionEnum;
import cn.com.glsx.merchants.model.request.*;
import cn.com.glsx.merchants.model.response.*;
import cn.com.glsx.merchants.remote.MerchantRemote;
import cn.com.glsx.merchants.request.DefaultRequest;
import cn.com.glsx.merchants.request.accounttype.AccountTypeSearchRequest;
import cn.com.glsx.merchants.request.file.FileSaveRequest;
import cn.com.glsx.merchants.request.merchant.*;
import cn.com.glsx.merchants.request.role.RoleSearchRequest;
import cn.com.glsx.merchants.response.*;
import cn.com.glsx.merchants.util.Pagination;
import cn.hutool.log.Log;
import com.alibaba.fastjson.JSONObject;
import com.glsx.plat.common.annotation.SysLog;
import com.glsx.plat.common.enums.OperateType;
......@@ -25,6 +27,7 @@ import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;
......@@ -198,7 +201,11 @@ public class MerchantService {
* @return
*/
public Pagination<MerchantRopResponse> findMerchantByPage(MerchantSearchResquest merchantSearchResquest) {
RpcResponse<RpcPagination<MerchantResponse>> merProductByPageRemote = merchantRemote.findMerchantByPageRemote(ConvertRequest.convertPage(merchantSearchResquest, new MerchantRequest()));
RpcPagination<MerchantRequest> merchantRequestRpcPagination = ConvertRequest.convertPage(merchantSearchResquest, new MerchantRequest());
MerchantRequest condition = merchantRequestRpcPagination.getCondition();
Integer superMerchantNo = merchantSearchResquest.getSuperMerchantNo();
condition.setSuperMerchantNo(superMerchantNo);
RpcResponse<RpcPagination<MerchantResponse>> merProductByPageRemote = merchantRemote.findMerchantByPageRemote(merchantRequestRpcPagination);
if (merProductByPageRemote.isSuccess()) {
return ConvertResponse.convertPage(merProductByPageRemote.getResult(), MerchantRopResponse.class);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!