|
|
@ -22,8 +22,10 @@ public class PartnerBillController {
|
|
|
|
private PartnerBillService partnerBillService;
|
|
|
|
private PartnerBillService partnerBillService;
|
|
|
|
|
|
|
|
|
|
|
|
@PartnerMapping(value = "/bills", method = RequestMethod.POST)
|
|
|
|
@PartnerMapping(value = "/bills", method = RequestMethod.POST)
|
|
|
|
public String addBill(@ModelAttribute(CommonConsts.PARTNER_STATUS) JSONObject partner, @RequestBody NewBillQrCodeBean newBillQrCodeBean) {
|
|
|
|
public JSONObject addBill(@ModelAttribute(CommonConsts.PARTNER_STATUS) JSONObject partner, @RequestBody NewBillQrCodeBean newBillQrCodeBean) {
|
|
|
|
return partnerBillService.saveBill(partner, newBillQrCodeBean);
|
|
|
|
JSONObject billCode = new JSONObject();
|
|
|
|
|
|
|
|
billCode.put("code_url", partnerBillService.saveBill(partner, newBillQrCodeBean));
|
|
|
|
|
|
|
|
return billCode;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@PartnerMapping(value = "", method = RequestMethod.GET)
|
|
|
|
@PartnerMapping(value = "", method = RequestMethod.GET)
|
|
|
|