|
@@ -8,14 +8,15 @@ import com.sundata.product.rwa.calc.service.CalcRunningService;
|
|
import com.sundata.product.rwa.calc.service.implement.units.GeneralLedgerGetterUnit;
|
|
import com.sundata.product.rwa.calc.service.implement.units.GeneralLedgerGetterUnit;
|
|
import com.sundata.product.rwa.calc.service.implement.units.GeneralLedgerUnit;
|
|
import com.sundata.product.rwa.calc.service.implement.units.GeneralLedgerUnit;
|
|
import com.sundata.product.rwa.calc.service.implement.units.ReportInitUnit;
|
|
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.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
-@Controller
|
|
|
|
|
|
+@RestController
|
|
@RequestMapping("calc/start")
|
|
@RequestMapping("calc/start")
|
|
public class CalcRunningController extends BaseAction {
|
|
public class CalcRunningController extends BaseAction {
|
|
|
|
|
|
@@ -28,7 +29,7 @@ public class CalcRunningController extends BaseAction {
|
|
/**
|
|
/**
|
|
* 启动总账取数
|
|
* 启动总账取数
|
|
*
|
|
*
|
|
- * @param calcInterfaceParam 报文参数结构 { "calculateInstanceNumber": "xxx" , "calcCode":"xxx" ,"dataDate":"2025-03-07" }
|
|
|
|
|
|
+ * @param calcInterfaceParam 报文参数结构 { "calculateInstanceNumber": "xxx" , "calcCode":"xxx" ,"dataDate":"20250307" }
|
|
* dataDate; 内容为必须
|
|
* dataDate; 内容为必须
|
|
* @return 运行结果
|
|
* @return 运行结果
|
|
*/
|
|
*/
|
|
@@ -36,7 +37,7 @@ public class CalcRunningController extends BaseAction {
|
|
verifyLogin = false,
|
|
verifyLogin = false,
|
|
verifyURL = false
|
|
verifyURL = false
|
|
)
|
|
)
|
|
- @RequestMapping("GeneralLedgerGetter")
|
|
|
|
|
|
+ @PostMapping("GeneralLedgerGetter")
|
|
public CalcTaskResult startGeneralLedgerGetter(@RequestBody CalcInterfaceParam calcInterfaceParam) {
|
|
public CalcTaskResult startGeneralLedgerGetter(@RequestBody CalcInterfaceParam calcInterfaceParam) {
|
|
Map<String, Object> context = new HashMap<>();
|
|
Map<String, Object> context = new HashMap<>();
|
|
context.put("dataDate", calcInterfaceParam.getDataDate());
|
|
context.put("dataDate", calcInterfaceParam.getDataDate());
|
|
@@ -46,7 +47,7 @@ public class CalcRunningController extends BaseAction {
|
|
/**
|
|
/**
|
|
* 启动总账勾稽
|
|
* 启动总账勾稽
|
|
*
|
|
*
|
|
- * @param calcInterfaceParam 报文参数结构 { "calculateInstanceNumber": "xxx" , "calcCode":"xxx" ,"dataDate":"2025-03-07" }
|
|
|
|
|
|
+ * @param calcInterfaceParam 报文参数结构 { "calculateInstanceNumber": "xxx" , "calcCode":"xxx" ,"dataDate":"20250307" }
|
|
* dataDate; 内容为必须
|
|
* dataDate; 内容为必须
|
|
* @return 运行结果
|
|
* @return 运行结果
|
|
*/
|
|
*/
|
|
@@ -54,7 +55,7 @@ public class CalcRunningController extends BaseAction {
|
|
verifyLogin = false,
|
|
verifyLogin = false,
|
|
verifyURL = false
|
|
verifyURL = false
|
|
)
|
|
)
|
|
- @RequestMapping("GeneralLedger")
|
|
|
|
|
|
+ @PostMapping("GeneralLedger")
|
|
public CalcTaskResult startGeneralLedger(@RequestBody CalcInterfaceParam calcInterfaceParam) {
|
|
public CalcTaskResult startGeneralLedger(@RequestBody CalcInterfaceParam calcInterfaceParam) {
|
|
Map<String, Object> context = new HashMap<>();
|
|
Map<String, Object> context = new HashMap<>();
|
|
context.put("dataDate", calcInterfaceParam.getDataDate());
|
|
context.put("dataDate", calcInterfaceParam.getDataDate());
|
|
@@ -64,7 +65,7 @@ public class CalcRunningController extends BaseAction {
|
|
/**
|
|
/**
|
|
* 启动报表计算
|
|
* 启动报表计算
|
|
*
|
|
*
|
|
- * @param calcInterfaceParam 报文参数结构 { "calculateInstanceNumber": "xxx" , "calcCode":"xxx" ,"dataDate":"2025-03-07" }
|
|
|
|
|
|
+ * @param calcInterfaceParam 报文参数结构 { "calculateInstanceNumber": "xxx" , "calcCode":"xxx" ,"dataDate":"20250307" }
|
|
* dataDate; 内容为必须
|
|
* dataDate; 内容为必须
|
|
* @return 运行结果
|
|
* @return 运行结果
|
|
*/
|
|
*/
|
|
@@ -72,7 +73,7 @@ public class CalcRunningController extends BaseAction {
|
|
verifyLogin = false,
|
|
verifyLogin = false,
|
|
verifyURL = false
|
|
verifyURL = false
|
|
)
|
|
)
|
|
- @RequestMapping("reportInit")
|
|
|
|
|
|
+ @PostMapping("reportInit")
|
|
public CalcTaskResult startReportInit(@RequestBody CalcInterfaceParam calcInterfaceParam) {
|
|
public CalcTaskResult startReportInit(@RequestBody CalcInterfaceParam calcInterfaceParam) {
|
|
Map<String, Object> context = new HashMap<>();
|
|
Map<String, Object> context = new HashMap<>();
|
|
context.put("dataDate", calcInterfaceParam.getDataDate());
|
|
context.put("dataDate", calcInterfaceParam.getDataDate());
|