Browse Source

提交代码

陈少旭 2 weeks ago
parent
commit
826f98dd5b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      service/stock_service.go

+ 2 - 0
service/stock_service.go View File

@@ -279,6 +279,7 @@ func ModifyGoodInfo(goodInfo *models.GoodInfo) (error, *models.GoodInfo) {
279 279
 		"zuobiao_id":                     goodInfo.Bbx01,
280 280
 		"first_letter":                   goodInfo.FirstLetter,
281 281
 		"is_show":                        goodInfo.IsShow,
282
+		"is_zero_flag":                   goodInfo.IsZeroFlag,
282 283
 	}).Error
283 284
 
284 285
 	writeDb.Model(&models.WarehousingInfo{}).Where("good_id = ? AND org_id = ?", goodInfo.ID, goodInfo.OrgId).Updates(map[string]interface{}{"good_type_id": goodInfo.GoodTypeId})
@@ -1180,6 +1181,7 @@ type Drug struct {
1180 1181
 	DoseUnit                    string  `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
1181 1182
 	DrugDay                     string  `gorm:"column:drug_day" json:"drug_day" form:"drug_day"`
1182 1183
 	MinPrice                    float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
1184
+	IsZeroFlag                  int64   `gorm:"column:is_zero_flag" json:"is_zero_flag" form:"is_zero_flag"`
1183 1185
 }
1184 1186
 
1185 1187
 func (Drug) TableName() string {