animeic 2 년 전
부모
커밋
fd0e1b032f
3개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  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
 	}