|
|
@@ -26,6 +26,7 @@ import com.ejlchina.searcher.util.MapBuilder;
|
|
|
import com.ejlchina.searcher.util.MapUtils;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
@@ -62,7 +63,7 @@ public class ExchangeCodeController {
|
|
|
@GetMapping("/createAndExport")
|
|
|
@SaCheckPermission("exchangeCode:add")
|
|
|
@Log(module = "兑换码/生成兑换码", businessType = BusinessType.POST, isSaveRequestData = true)
|
|
|
- public void createAndExportCode(ExchangeCodeReq exchangeCodeReq, HttpServletResponse response) throws Exception {
|
|
|
+ public void createAndExportCode(@RequestBody ExchangeCodeReq exchangeCodeReq, HttpServletResponse response) throws Exception {
|
|
|
if (ObjectUtil.hasEmpty(exchangeCodeReq.getSkuIds(), exchangeCodeReq.getNumber())) {
|
|
|
throw BusinessRuntimeException.getInstance("必填项为空");
|
|
|
}
|