|
|
@@ -532,6 +532,7 @@ func (this *PaymentInfoController) ReceiveMoneyBillListCopy() {
|
|
|
ivinfo.BankAccount = suppentity.BankAccount
|
|
|
ivinfo.DepositBank = suppentity.DepositBank
|
|
|
ivinfo.Email = suppentity.EMail
|
|
|
+ ivinfo.Remark = billParams.Remark
|
|
|
ivinfo.CreateOn = time.Now()
|
|
|
|
|
|
svc.InsertEntity(&ivinfo)
|
|
|
@@ -728,6 +729,7 @@ func (this *PaymentInfoController) ReceiveMoneyBillList() {
|
|
|
invoiceInfo.BankAccount = suppentity.BankAccount
|
|
|
invoiceInfo.DepositBank = suppentity.DepositBank
|
|
|
invoiceInfo.Email = suppentity.EMail
|
|
|
+ invoiceInfo.Remark = billParams.Remark
|
|
|
invoiceInfo.CreateOn = time.Now()
|
|
|
|
|
|
svc.InsertEntity(&invoiceInfo)
|
|
|
@@ -1060,3 +1062,21 @@ func (this *PaymentInfoController) IsPermission() {
|
|
|
this.Data["json"] = &errinfo
|
|
|
this.ServeJSON()
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+// @Title 查询发票
|
|
|
+// @Description
|
|
|
+// @Success 200 {object} controllers.Request
|
|
|
+// @router /selectInvoice [post]
|
|
|
+func (this *PaymentInfoController) SelectInvoice() {
|
|
|
+ var info paymentinfo.OilPaymentInfo
|
|
|
+ var jsonBlob = this.Ctx.Input.RequestBody
|
|
|
+ json.Unmarshal(jsonBlob, &info)
|
|
|
+ svc := invoiceinfo.GetInvoiceService(utils.DBE)
|
|
|
+ var invoice invoiceinfo.OilInvoiceInfo
|
|
|
+
|
|
|
+ svc.GetEntityByWhere("OilInvoiceInfo", strconv.Itoa(info.Id) + " in (SrcIds)", &invoice)
|
|
|
+
|
|
|
+ this.Data["json"] = &invoice
|
|
|
+ this.ServeJSON()
|
|
|
+}
|