DengBiao pirms 8 mēnešiem
vecāks
revīzija
65aaa1067b
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      app/admin/hdl/hdl_home_page.go

+ 2
- 2
app/admin/hdl/hdl_home_page.go Parādīt failu

@@ -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())


Notiek ielāde…
Atcelt
Saglabāt