This commit is contained in:
hoteas
2021-12-16 13:24:31 +08:00
parent d1d4d04415
commit 6fe5d0ba55
30 changed files with 497 additions and 6 deletions
+4 -1
View File
@@ -55,6 +55,7 @@ var produce_productCtr = Ctr{
sn := that.Req.FormValue("sn")
product_id := ObjToInt(that.Req.FormValue("product_id"))
produce_id := ObjToInt(that.Req.FormValue("produce_id"))
product_line_id := ObjToInt(that.Req.FormValue("product_line_id"))
state := ObjToInt(that.Req.FormValue("state"))
rule_check := that.Req.FormValue("rule_check")
description := that.Req.FormValue("description")
@@ -73,7 +74,9 @@ var produce_productCtr = Ctr{
"modify_time": time.Now().Unix(),
}
id := that.Db.Insert("produce_product", data)
data1 := ObjToMap(data.ToJsonString())
data1["product_line_id"] = product_line_id
id := that.Db.Insert("produce_product", data1)
if id == 0 {
that.Display(4, "添加新成品失败,请重新添加")
return