优化系统

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
+3
View File
@@ -331,6 +331,9 @@ func Process(conn net.Conn, appIns *hotime.Application) {
fmt.Println(client, sn, "添加新成品失败,请重新添加") // 读到了n个数据
continue
}
appIns.Db.Update("product", common.Map{"count[#]": "`count`+1"}, common.Map{"id": produce.GetCeilInt("product_id")})
appIns.Db.Update("produce", common.Map{"now[#]": "`now`+1"}, common.Map{"id": produce.GetCeilInt("id")})
}
}