|
|
@@ -1,5 +1,6 @@
|
|
|
package com.sckw.payment.controller;
|
|
|
|
|
|
+import com.sckw.core.annotation.RepeatSubmit;
|
|
|
import com.sckw.core.model.vo.TableTop;
|
|
|
import com.sckw.core.web.response.HttpResult;
|
|
|
import com.sckw.excel.utils.ExcelUtil;
|
|
|
@@ -40,6 +41,7 @@ public class KwpLedgerLogisticsController {
|
|
|
* @param logisticsReq 保存物流对账单参数
|
|
|
* @return
|
|
|
*/
|
|
|
+ @RepeatSubmit(interval = 3000,message ="两次请求间隔未超过3秒")
|
|
|
@PostMapping("sendDraft")
|
|
|
public HttpResult sendDraft(@RequestBody @Valid LogisticsSendReq logisticsReq) {
|
|
|
return HttpResult.ok(kwpLedgerLogisticsService.sendLedgerDraft(logisticsReq));
|
|
|
@@ -52,6 +54,7 @@ public class KwpLedgerLogisticsController {
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping("send")
|
|
|
+ @RepeatSubmit(interval = 3000,message ="两次请求间隔未超过3秒")
|
|
|
public HttpResult send(@RequestBody @Valid LogisticsSendReq logisticsReq) {
|
|
|
return HttpResult.ok(kwpLedgerLogisticsService.sendLedger(logisticsReq));
|
|
|
}
|