animeic 2 years ago
parent
commit
fd0e1b032f
3 changed files with 3 additions and 2 deletions
  1. 1 1
      boxcost/api/bill-produce.go
  2. 1 1
      boxcost/api/bill-product.go
  3. 1 0
      boxcost/api/plan.go

+ 1 - 1
boxcost/api/bill-produce.go

@@ -202,7 +202,7 @@ func UpdateProduceBill(c *gin.Context, apictx *ApiSession) (interface{}, error)
 
 	// 如果更改类型
 	if len(bill.Type) > 0 {
-		billType, err := searchBillTypeById(apictx, repo.CollectionBillPurchase, bill.Id)
+		billType, err := searchBillTypeById(apictx, repo.CollectionBillProduce, bill.Id)
 		if err != nil {
 			return nil, err
 		}

+ 1 - 1
boxcost/api/bill-product.go

@@ -202,7 +202,7 @@ func UpdateProductBill(c *gin.Context, apictx *ApiSession) (interface{}, error)
 
 	// 如果更改类型
 	if len(bill.Type) > 0 {
-		billType, err := searchBillTypeById(apictx, repo.CollectionBillPurchase, bill.Id)
+		billType, err := searchBillTypeById(apictx, repo.CollectionBillProduct, bill.Id)
 		if err != nil {
 			return nil, err
 		}

+ 1 - 0
boxcost/api/plan.go

@@ -227,6 +227,7 @@ func DownLoadCompBills(c *gin.Context, apictx *ApiSession) (interface{}, error)
 		}
 		billExcel.SetRow(row)
 		billExcel.Draws()
+		fmt.Println(billExcel.GetRow())
 		row = billExcel.GetRow() + 3
 	}