|
|
@ -68,7 +68,7 @@ public class HighMerchantController { |
|
|
|
log.error("HighMerchantController -> updateMerchant() error!","该主角色没有权限"); |
|
|
|
log.error("HighMerchantController -> updateMerchant() error!","该主角色没有权限"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.MENU_TREE_HAS_NOT_ERROR, ""); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.MENU_TREE_HAS_NOT_ERROR, ""); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isBlank(highMerchant.getMerchantKey()) |
|
|
|
if (StringUtils.isBlank(highMerchant.getMerchantKey()) |
|
|
|
|| StringUtils.isBlank(highMerchant.getMerchantName()) |
|
|
|
|| StringUtils.isBlank(highMerchant.getMerchantName()) |
|
|
|
|| StringUtils.isBlank(highMerchant.getTelephone()) |
|
|
|
|| StringUtils.isBlank(highMerchant.getTelephone()) |
|
|
@ -183,6 +183,38 @@ public class HighMerchantController { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/disableMerchant",method = RequestMethod.GET) |
|
|
|
|
|
|
|
@ResponseBody |
|
|
|
|
|
|
|
@ApiOperation(value = "禁用商户") |
|
|
|
|
|
|
|
public ResponseData disableMerchant(@RequestParam(name = "id", required = true) Long id) { |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
highMerchantService.updateStatus(id, 0); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ResponseMsgUtil.success("操作成功"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
log.error("HighMerchantController -> disableMerchant() error!",e); |
|
|
|
|
|
|
|
return ResponseMsgUtil.exception(e); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/enableMerchant",method = RequestMethod.GET) |
|
|
|
|
|
|
|
@ResponseBody |
|
|
|
|
|
|
|
@ApiOperation(value = "启用商户") |
|
|
|
|
|
|
|
public ResponseData enableMerchant(@RequestParam(name = "id", required = true) Long id) { |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
highMerchantService.updateStatus(id, 1); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ResponseMsgUtil.success("操作成功"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
log.error("HighMerchantController -> enableMerchant() error!",e); |
|
|
|
|
|
|
|
return ResponseMsgUtil.exception(e); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/getMerchantList",method = RequestMethod.GET) |
|
|
|
@RequestMapping(value="/getMerchantList",method = RequestMethod.GET) |
|
|
|
@ResponseBody |
|
|
|
@ResponseBody |
|
|
|
@ApiOperation(value = "查询商户列表") |
|
|
|
@ApiOperation(value = "查询商户列表") |
|
|
|