animeic 2 年之前
父节点
当前提交
d66692d78f
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      boxcost/api/plan.go

+ 3 - 3
boxcost/api/plan.go

@@ -297,15 +297,15 @@ func GetProductPlan(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 					if len(stage.BillId) > 0 {
 						collectName := ""
 						// 材料
-						if stage.Type == 1 {
+						if stage.BillType == 1 {
 							collectName = repo.CollectionBillPurchase
 						}
 						// 工艺
-						if stage.Type == 2 {
+						if stage.BillType == 2 {
 							collectName = repo.CollectionBillProduce
 						}
 						// 成品
-						if stage.Type == 3 {
+						if stage.BillType == 3 {
 							collectName = repo.CollectionBillProduct
 						}