优化系统

This commit is contained in:
hoteas
2021-12-27 18:21:41 +08:00
parent 9ce4f1c603
commit a47473f245
8 changed files with 39 additions and 3575 deletions
+13 -13
View File
@@ -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)
},
}