fix bill code string

master
luoyang 5 years ago
parent e192096d71
commit e74825e720

@ -10,7 +10,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId>
<version>1.2.6</version>
<version>1.2.7</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

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

@ -43,7 +43,7 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS
}
$http.post('/partner/qrcode/bills',params).then(function (resp) {
commonDialog.alert({title: 'Success', content: 'Success', type: 'success'});
$scope.code_url = resp.data;
$scope.code_url = resp.data.code_url;
$scope.loadBills(1);
},function (resp) {
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'});

Loading…
Cancel
Save