优化系统
This commit is contained in:
@@ -56,10 +56,10 @@ var produce_productCtr = Ctr{
|
||||
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")
|
||||
if sn == "" || rule_check == "" {
|
||||
//state := ObjToInt(that.Req.FormValue("state"))
|
||||
//rule_check := that.Req.FormValue("rule_check")
|
||||
//description := that.Req.FormValue("description")
|
||||
if sn == "" {
|
||||
that.Display(3, "参数不足,请补充参数")
|
||||
return
|
||||
}
|
||||
@@ -82,15 +82,15 @@ var produce_productCtr = Ctr{
|
||||
}
|
||||
|
||||
//data["id"] = id
|
||||
data["rule"] = rule_check
|
||||
data["produce_product_id"] = id
|
||||
data["state"] = state
|
||||
data["description"] = description
|
||||
id = that.Db.Insert("product_check", data)
|
||||
if id == 0 {
|
||||
that.Display(4, "添加质检失败,请重新添加")
|
||||
return
|
||||
}
|
||||
//data["rule"] = rule_check
|
||||
//data["produce_product_id"] = id
|
||||
//data["state"] = state
|
||||
//data["description"] = description
|
||||
//id = that.Db.Insert("product_check", data)
|
||||
//if id == 0 {
|
||||
// that.Display(4, "添加质检失败,请重新添加")
|
||||
// return
|
||||
//}
|
||||
that.Display(0, data)
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user