Selaa lähdekoodia

处理计算过程的内容问题

CodeLife Leno 3 viikkoa sitten
vanhempi
commit
86c8dbfe6c

+ 6 - 4
Procedure/backend/project/src/main/java/com/sundata/product/rwa/calc/controllers/CalcRunningController.java

@@ -9,13 +9,15 @@ import com.sundata.product.rwa.calc.service.implement.units.GeneralLedgerGetterU
 import com.sundata.product.rwa.calc.service.implement.units.GeneralLedgerUnit;
 import com.sundata.product.rwa.calc.service.implement.units.ReportInitUnit;
 import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
 
 import java.util.HashMap;
 import java.util.Map;
 
-@Controller
+@RestController
 @RequestMapping("calc/start")
 public class CalcRunningController extends BaseAction {
 
@@ -36,7 +38,7 @@ public class CalcRunningController extends BaseAction {
             verifyLogin = false,
             verifyURL = false
     )
-    @RequestMapping("GeneralLedgerGetter")
+    @PostMapping("GeneralLedgerGetter")
     public CalcTaskResult startGeneralLedgerGetter(@RequestBody CalcInterfaceParam calcInterfaceParam) {
         Map<String, Object> context = new HashMap<>();
         context.put("dataDate", calcInterfaceParam.getDataDate());
@@ -54,7 +56,7 @@ public class CalcRunningController extends BaseAction {
             verifyLogin = false,
             verifyURL = false
     )
-    @RequestMapping("GeneralLedger")
+    @PostMapping("GeneralLedger")
     public CalcTaskResult startGeneralLedger(@RequestBody CalcInterfaceParam calcInterfaceParam) {
         Map<String, Object> context = new HashMap<>();
         context.put("dataDate", calcInterfaceParam.getDataDate());
@@ -72,7 +74,7 @@ public class CalcRunningController extends BaseAction {
             verifyLogin = false,
             verifyURL = false
     )
-    @RequestMapping("reportInit")
+    @PostMapping("reportInit")
     public CalcTaskResult startReportInit(@RequestBody CalcInterfaceParam calcInterfaceParam) {
         Map<String, Object> context = new HashMap<>();
         context.put("dataDate", calcInterfaceParam.getDataDate());