|
|
|
@ -6,9 +6,12 @@ import au.com.royalpay.payment.manage.merchantid.core.MerchantIdManageService;
|
|
|
|
|
import au.com.royalpay.payment.manage.permission.manager.RequireManager;
|
|
|
|
|
import au.com.royalpay.payment.tools.CommonConsts;
|
|
|
|
|
import au.com.royalpay.payment.tools.permission.enums.ManagerRole;
|
|
|
|
|
import au.com.royalpay.payment.tools.utils.PageListUtils;
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.github.miemiedev.mybatis.paginator.domain.Order;
|
|
|
|
|
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
|
|
|
|
|
import com.github.miemiedev.mybatis.paginator.domain.PageList;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
@ -54,8 +57,10 @@ public class MerchantIdManageController {
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/common_sub_merchant_id", method = RequestMethod.GET)
|
|
|
|
|
@RequireManager(role = {ManagerRole.OPERATOR})
|
|
|
|
|
public List<JSONObject> listCommonSubMerchantId(@RequestParam(required = false) String sub_merchant_id, @RequestParam(defaultValue = "true") boolean is_valid) {
|
|
|
|
|
return commonSubMerchantIdMapper.list(is_valid,sub_merchant_id,new PageBounds(Order.formString("create_time.desc")));
|
|
|
|
|
public JSONObject listCommonSubMerchantId(@RequestParam(required = false) String sub_merchant_id,
|
|
|
|
|
@RequestParam int page, @RequestParam(defaultValue = "true") boolean is_valid) {
|
|
|
|
|
PageList<JSONObject> list = commonSubMerchantIdMapper.list(is_valid,sub_merchant_id,new PageBounds(page, 20, Order.formString("create_time.desc")));
|
|
|
|
|
return PageListUtils.buildPageListResult(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/common_sub_merchant_id/{sub_merchant_id}", method = RequestMethod.POST)
|
|
|
|
|