|
|
@@ -41,7 +41,7 @@ public class WxProfitSharingReceiverController extends BaseController { |
|
|
|
|
|
|
|
|
@ApiOperation("新增接口") |
|
|
@ApiOperation("新增接口") |
|
|
@PostMapping("add") |
|
|
@PostMapping("add") |
|
|
public ResultData add(@RequestBody WxProfitSharingReceiver receiver) { |
|
|
|
|
|
|
|
|
public ResultData add(@ModelAttribute WxProfitSharingReceiver receiver) { |
|
|
|
|
|
|
|
|
if (receiver == null) |
|
|
if (receiver == null) |
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL); |
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL); |
|
|
@@ -53,6 +53,8 @@ public class WxProfitSharingReceiverController extends BaseController { |
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); |
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); |
|
|
if (receiver.getReceiverAccount() == null) |
|
|
if (receiver.getReceiverAccount() == null) |
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); |
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); |
|
|
|
|
|
if (receiver.getTrueName() == null) |
|
|
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); |
|
|
|
|
|
|
|
|
WxMerchant merchant = wxMerchantService.getById(receiver.getMerchantId()); |
|
|
WxMerchant merchant = wxMerchantService.getById(receiver.getMerchantId()); |
|
|
if (merchant == null) |
|
|
if (merchant == null) |
|
|
@@ -64,7 +66,7 @@ public class WxProfitSharingReceiverController extends BaseController { |
|
|
|
|
|
|
|
|
@ApiOperation("根据id删除接口") |
|
|
@ApiOperation("根据id删除接口") |
|
|
@GetMapping("del") |
|
|
@GetMapping("del") |
|
|
public ResultData delete(@RequestBody WxProfitSharingReceiver receiver) { |
|
|
|
|
|
|
|
|
public ResultData delete(@ModelAttribute WxProfitSharingReceiver receiver) { |
|
|
if (receiver == null) |
|
|
if (receiver == null) |
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL); |
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL); |
|
|
if (receiver.getMerchantId() == null) |
|
|
if (receiver.getMerchantId() == null) |
|
|
|