DengBiao преди 8 месеца
родител
ревизия
65aaa1067b
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +2
    -2
      app/admin/hdl/hdl_home_page.go

+ 2
- 2
app/admin/hdl/hdl_home_page.go Целия файл

@@ -65,8 +65,8 @@ func HomePageIndex(c *gin.Context) {
}

var totalCentralKitchenForSchoolUserIdentityNums, totalCentralKitchenForFactoryUserIdentityNums, totalSelfSupportForSchoolUserIdentityNums, totalSelfSupportForFactoryUserIdentityNums int
sql4 := fmt.Sprintf("select count(*) as total from `user_identity` where kind in (%d, %d) ", enum.UserIdentityForCentralKitchenForStudent, enum.UserIdentityForCentralKitchenForTeacher) //统计"央厨-学校"用户数
sql5 := fmt.Sprintf("select count(*) as total from `user_identity` where kind in (%d, %d, %d) ", enum.UserIdentityForSelfSupportForStudent, enum.UserIdentityForSelfSupportForTeacher, enum.UserIdentityForSelfSupportForWorker) //统计"自营-学校"用户数
sql4 := fmt.Sprintf("select count(*) as total from `user_identity` where identity in (%d, %d) ", enum.UserIdentityForCentralKitchenForStudent, enum.UserIdentityForCentralKitchenForTeacher) //统计"央厨-学校"用户数
sql5 := fmt.Sprintf("select count(*) as total from `user_identity` where identity in (%d, %d, %d) ", enum.UserIdentityForSelfSupportForStudent, enum.UserIdentityForSelfSupportForTeacher, enum.UserIdentityForSelfSupportForWorker) //统计"自营-学校"用户数
mapArr4, err := db.QueryNativeString(db.Db, sql4)
if err != nil {
e.OutErr(c, e.ERR, err.Error())


Зареждане…
Отказ
Запис