|
|
@ -13,18 +13,18 @@ public class CustomerPaymentInfoController {
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private CustomerPaymentInfoService customerPaymentInfoService;
|
|
|
|
private CustomerPaymentInfoService customerPaymentInfoService;
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/save", method = RequestMethod.POST)
|
|
|
|
@RequestMapping(value = "/update", method = RequestMethod.POST)
|
|
|
|
public void saveTest(@RequestBody JSONObject paymentInfo) {
|
|
|
|
public void savePaymentInfo(@RequestBody JSONObject paymentInfo) {
|
|
|
|
customerPaymentInfoService.saveCustomerPaymentInfo(paymentInfo);
|
|
|
|
customerPaymentInfoService.saveCustomerPaymentInfo(paymentInfo);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/update", method = RequestMethod.PUT)
|
|
|
|
@RequestMapping(value = "/update", method = RequestMethod.PUT)
|
|
|
|
public void updateTest(@RequestBody JSONObject paymentInfo) {
|
|
|
|
public void updatePaymentInfo(@RequestBody JSONObject paymentInfo) {
|
|
|
|
customerPaymentInfoService.updateCustomerPaymentInfo(paymentInfo);
|
|
|
|
customerPaymentInfoService.updateCustomerPaymentInfo(paymentInfo);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/{openid}/check", method = RequestMethod.GET)
|
|
|
|
@RequestMapping(value = "/{openid}/check", method = RequestMethod.GET)
|
|
|
|
public JSONObject selectTest(@PathVariable String openid) {
|
|
|
|
public JSONObject selectPaymentInfo(@PathVariable String openid) {
|
|
|
|
return customerPaymentInfoService.selectPaymentInfoByOpenId(openid);
|
|
|
|
return customerPaymentInfoService.selectPaymentInfoByOpenId(openid);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|