调试
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user