|
@@ -40,8 +40,8 @@ public class ExchangeCodeController {
|
|
|
/**
|
|
/**
|
|
|
* 生成兑换码 并导出
|
|
* 生成兑换码 并导出
|
|
|
*/
|
|
*/
|
|
|
- @PostMapping("/createAndExport")
|
|
|
|
|
- private void createAndExportCode(@RequestBody ExchangeCodeReq exchangeCodeReq, HttpServletResponse response) {
|
|
|
|
|
|
|
+ @GetMapping("/createAndExport")
|
|
|
|
|
+ private void createAndExportCode(ExchangeCodeReq exchangeCodeReq, HttpServletResponse response) {
|
|
|
if (ObjectUtil.hasEmpty(exchangeCodeReq.getGoodsId(), exchangeCodeReq.getSkuId(), exchangeCodeReq.getNumber())) {
|
|
if (ObjectUtil.hasEmpty(exchangeCodeReq.getGoodsId(), exchangeCodeReq.getSkuId(), exchangeCodeReq.getNumber())) {
|
|
|
throw BusinessRuntimeException.getInstance("必填项为空");
|
|
throw BusinessRuntimeException.getInstance("必填项为空");
|
|
|
}
|
|
}
|