Quellcode durchsuchen

update

consumeLimit
DengBiao vor 1 Jahr
Ursprung
Commit
25b61dcca9
2 geänderte Dateien mit 6 neuen und 2 gelöschten Zeilen
  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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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+"%")
}


Laden…
Abbrechen
Speichern