Procházet zdrojové kódy

update

consumeLimit
DengBiao před 1 rokem
rodič
revize
25b61dcca9
2 změnil soubory, kde provedl 6 přidání a 2 odebrání
  1. +3
    -1
      app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go
  2. +3
    -1
      app/admin/svc/enterprise_manage/svc_self_support_for_school.go

+ 3
- 1
app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go Zobrazit soubor

@@ -371,7 +371,9 @@ func CentralKitchenForSchoolStudentList(req md.CentralKitchenForSchoolStudentLis
classWithUserIdentityIdsTwo = append(classWithUserIdentityIdsTwo, v.UserIdentityId)
}
}
sess := db.Db.Where("user_identity.enterprise_id =?", req.EnterpriseId).And("identity =?", enum2.UserIdentityForCentralKitchenForStudent)
sess := db.Db.Where("user_identity.enterprise_id =?", req.EnterpriseId).
And("identity =?", enum2.UserIdentityForCentralKitchenForStudent).
And("state =?", enum2.UserIdentityStateForNormal)
if req.Name != "" {
sess.And("user_identity.name like ?", "%"+req.Name+"%")
}


+ 3
- 1
app/admin/svc/enterprise_manage/svc_self_support_for_school.go Zobrazit soubor

@@ -272,7 +272,9 @@ func SelfSupportForSchoolStudentList(req md.SelfSupportForSchoolStudentListReq)
classWithUserIdentityIdsTwo = append(classWithUserIdentityIdsTwo, v.UserIdentityId)
}
}
sess := db.Db.Where("user_identity.enterprise_id =?", req.EnterpriseId).And("identity =?", enum2.UserIdentityForSelfSupportForStudent)
sess := db.Db.Where("user_identity.enterprise_id =?", req.EnterpriseId).
And("identity =?", enum2.UserIdentityForSelfSupportForStudent).
And("state =?", enum2.UserIdentityStateForNormal)
if req.Name != "" {
sess.And("user_identity.name like ?", "%"+req.Name+"%")
}


Načítá se…
Zrušit
Uložit