|
@@ -4,10 +4,7 @@ import com.ruoyi.ccb.domain.*;
|
|
|
import com.ruoyi.ccb.domain.basic.Page;
|
|
|
import com.ruoyi.ccb.service.CcbHttpService;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
-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;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
|
* CCB接口
|
|
@@ -27,7 +24,7 @@ public class CcbController {
|
|
|
* @param voucher 报文
|
|
|
* @return 结果
|
|
|
*/
|
|
|
- @GetMapping("/takeVoucherIsExist")
|
|
|
+ @PostMapping("/takeVoucherIsExist")
|
|
|
public VoucherR takeVoucherIsExist(@RequestBody Voucher voucher) {
|
|
|
return ccbHttpService.takeVoucherIsExist(voucher);
|
|
|
}
|
|
@@ -38,7 +35,7 @@ public class CcbController {
|
|
|
* @param voucher 报文
|
|
|
* @return 结果
|
|
|
*/
|
|
|
- @GetMapping("/takeVoucherDetail")
|
|
|
+ @PostMapping("/takeVoucherDetail")
|
|
|
public VoucherDetailR takeVoucherDetail(@RequestBody Voucher voucher) {
|
|
|
return ccbHttpService.takeVoucherDetail(voucher);
|
|
|
}
|
|
@@ -49,7 +46,7 @@ public class CcbController {
|
|
|
* @param pledge 报文
|
|
|
* @return 结果
|
|
|
*/
|
|
|
- @GetMapping("/cargoPledge")
|
|
|
+ @PostMapping("/cargoPledge")
|
|
|
public PledgeR cargoPledge(@RequestBody Pledge pledge) {
|
|
|
return ccbHttpService.cargoPledge(pledge);
|
|
|
}
|
|
@@ -60,7 +57,7 @@ public class CcbController {
|
|
|
* @param pledge 报文
|
|
|
* @return 结果
|
|
|
*/
|
|
|
- @GetMapping("/cargoPledgeOut")
|
|
|
+ @PostMapping("/cargoPledgeOut")
|
|
|
public PledgeR cargoPledgeOut(@RequestBody Pledge pledge) {
|
|
|
return ccbHttpService.cargoPledgeOut(pledge);
|
|
|
}
|
|
@@ -71,7 +68,7 @@ public class CcbController {
|
|
|
* @param inOutCargo 报文
|
|
|
* @return 结果
|
|
|
*/
|
|
|
- @GetMapping("/inCargoReq")
|
|
|
+ @PostMapping("/inCargoReq")
|
|
|
public InOutCargoR inCargoReq(@RequestBody InOutCargo inOutCargo) {
|
|
|
return ccbHttpService.inCargoReq(inOutCargo);
|
|
|
}
|
|
@@ -82,7 +79,7 @@ public class CcbController {
|
|
|
* @param inOutCargo 报文
|
|
|
* @return 结果
|
|
|
*/
|
|
|
- @GetMapping("/outCargoReq")
|
|
|
+ @PostMapping("/outCargoReq")
|
|
|
public InOutCargoR outCargoReq(@RequestBody InOutCargo inOutCargo) {
|
|
|
return ccbHttpService.outCargoReq(inOutCargo);
|
|
|
}
|
|
@@ -93,7 +90,7 @@ public class CcbController {
|
|
|
* @param syncOrg 报文
|
|
|
* @return 结果
|
|
|
*/
|
|
|
- @GetMapping("/syncOrg")
|
|
|
+ @PostMapping("/syncOrg")
|
|
|
public Page syncOrg(@RequestBody SyncOrg syncOrg) {
|
|
|
return ccbHttpService.syncOrg(syncOrg);
|
|
|
}
|
|
@@ -104,7 +101,7 @@ public class CcbController {
|
|
|
* @param pledge 报文
|
|
|
* @return 结果
|
|
|
*/
|
|
|
- @GetMapping("/generateWrNumber")
|
|
|
+ @PostMapping("/generateWrNumber")
|
|
|
public PledgeR generateWrNumber(@RequestBody Pledge pledge) {
|
|
|
return ccbHttpService.generateWrNumber(pledge);
|
|
|
}
|
|
@@ -115,7 +112,7 @@ public class CcbController {
|
|
|
* @param pledge 报文
|
|
|
* @return 结果
|
|
|
*/
|
|
|
- @GetMapping("/cancelWrNumber")
|
|
|
+ @PostMapping("/cancelWrNumber")
|
|
|
public PledgeR cancelWrNumber(@RequestBody Pledge pledge) {
|
|
|
return ccbHttpService.cancelWrNumber(pledge);
|
|
|
}
|