|
|
|
@ -393,13 +393,15 @@ public class TestController implements ApplicationEventPublisherAware {
|
|
|
|
|
return PageListUtils.buildPageListResult(commonSubMerchantIdMapper.list(is_valid,sub_merchant_id,new PageBounds(page,limit)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/common_sub_merchant_id", method = RequestMethod.POST)
|
|
|
|
|
public void addCommonSubMerchantId(@RequestBody JSONObject sub_merchant_id) {
|
|
|
|
|
commonSubMerchantIdService.save(sub_merchant_id.getJSONObject("params"));
|
|
|
|
|
@RequestMapping(value = "/common_sub_merchant_id/{sub_merchant_id}", method = RequestMethod.POST)
|
|
|
|
|
public void addCommonSubMerchantId(@PathVariable String sub_merchant_id) {
|
|
|
|
|
JSONObject record = new JSONObject();
|
|
|
|
|
record.put("sub_merchant_id",sub_merchant_id);
|
|
|
|
|
commonSubMerchantIdService.save(record);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/common_sub_merchant_id/{sub_merchant_id}", method = RequestMethod.PUT)
|
|
|
|
|
public void addCommonSubMerchantId(@PathVariable String sub_merchant_id) {
|
|
|
|
|
public void disableCommonSubMerchantId(@PathVariable String sub_merchant_id) {
|
|
|
|
|
commonSubMerchantIdService.disable(sub_merchant_id);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|