fix bill code string

master
luoyang 5 years ago
parent 665623698a
commit 9dffb9722d

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

@ -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)

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

Loading…
Cancel
Save