Commit d6a2d68c by 章家宝

fix:优化代码,添加排序

1 parent fbf7fd0a
package cn.com.glsx.dj.staff.controller.performance; package cn.com.glsx.dj.staff.controller.performance;
import cn.com.glsx.dj.smartcarlife.dto.ServiceMerchantPageWithBrandDTO; import cn.com.glsx.dj.smartcarlife.dto.ServiceMerchantPageWithBrandDTO;
import cn.com.glsx.dj.smartcarlife.remote.ServiceMerchantRemote; import cn.com.glsx.dj.smartcarlife.remote.SceneMerchantRefRemote;
import cn.com.glsx.dj.staff.request.performance.MerchantBrandSelectRequest; import cn.com.glsx.dj.staff.request.performance.MerchantBrandSelectRequest;
import cn.com.glsx.dj.staff.util.CommonUtil; import cn.com.glsx.dj.staff.util.CommonUtil;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination; import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
...@@ -21,7 +21,7 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -21,7 +21,7 @@ import org.springframework.web.bind.annotation.RestController;
@RestController @RestController
public class MerchantBrandController { public class MerchantBrandController {
@Autowired @Autowired
private ServiceMerchantRemote serviceMerchantRemote; private SceneMerchantRefRemote sceneMerchantRefRemote;
@ApiOperation("门店品牌(d+系统中的全部门店+园区店商户品牌)列表查询") @ApiOperation("门店品牌(d+系统中的全部门店+园区店商户品牌)列表查询")
@ServiceMethod(method = "dj.staff.api.service.merchant.page.with.brand", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.staff.api.service.merchant.page.with.brand", needInSession = NeedInSessionType.YES)
...@@ -30,7 +30,7 @@ public class MerchantBrandController { ...@@ -30,7 +30,7 @@ public class MerchantBrandController {
RpcPagination<ServiceMerchantPageWithBrandDTO> pagination = CommonUtil.getRpcPagination(ServiceMerchantPageWithBrandDTO.class); RpcPagination<ServiceMerchantPageWithBrandDTO> pagination = CommonUtil.getRpcPagination(ServiceMerchantPageWithBrandDTO.class);
ServiceMerchantPageWithBrandDTO condition = CommonUtil.convertRequest(ServiceMerchantPageWithBrandDTO.class); ServiceMerchantPageWithBrandDTO condition = CommonUtil.convertRequest(ServiceMerchantPageWithBrandDTO.class);
pagination.setCondition(condition); pagination.setCondition(condition);
RpcResponse<RpcPagination<ServiceMerchantPageWithBrandDTO>> page = serviceMerchantRemote.pageListMerchantWithBrand(pagination); RpcResponse<RpcPagination<ServiceMerchantPageWithBrandDTO>> page = sceneMerchantRefRemote.pageListMerchantWithBrand(pagination);
return CommonUtil.convertRopResponse(page); return CommonUtil.convertRopResponse(page);
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!