condolence jug
This commit is contained in:
@@ -36,6 +36,7 @@ public class loginController {
|
||||
u.loginname,
|
||||
u.sex,
|
||||
u.mobile,
|
||||
u.retirePhone,
|
||||
u.birthday,
|
||||
unit.`name` unitname,
|
||||
u.unitid,
|
||||
@@ -55,7 +56,7 @@ public class loginController {
|
||||
sql.setVar("schoolCode", Globals.schoolCode);
|
||||
Cnd cnd = Cnd.NEW();
|
||||
// cnd.and("LOWER(u.loginname)", "=", loginname.trim().toLowerCase());
|
||||
cnd.and(Cnd.exps("LOWER(u.loginname)", "=", loginname.trim().toLowerCase()).or("LOWER(u.mobile)", "=", loginname.trim().toLowerCase()));
|
||||
cnd.and(Cnd.exps("LOWER(u.loginname)", "=", loginname.trim().toLowerCase()).or("LOWER(u.retirePhone)", "=", loginname.trim().toLowerCase()));
|
||||
cnd.and("LOWER(u.username)", "=", username.trim().toLowerCase());
|
||||
sql.setCondition(cnd);
|
||||
sql.setCallback(Sqls.callback.map());
|
||||
|
||||
@@ -380,6 +380,7 @@ public class RetiredUserListController {
|
||||
List<ActivityUserScope> userScopeList = new ArrayList<>();
|
||||
Sql sql = Sqls.create("SELECT MAX(DISTINCT groupId) AS groupId FROM activity_user_scope");
|
||||
NutMap query = (NutMap) Daos.query(dao, sql.toString(), Sqls.callback.map());
|
||||
Integer groupId = query.getInt("groupId") + 1;
|
||||
|
||||
String groupName = DateUtil.thisYear() + "年" + (DateUtil.thisMonth() + 1) + "月离退休教职工";
|
||||
|
||||
@@ -422,7 +423,7 @@ public class RetiredUserListController {
|
||||
|
||||
ActivityUserScope userScope = new ActivityUserScope();
|
||||
userScope.setGroupName(groupName);
|
||||
userScope.setGroupId(Integer.parseInt(query.getString("groupId")));
|
||||
userScope.setGroupId(groupId);
|
||||
if (Lang.isNotEmpty(sysUser)) {
|
||||
user.setId(sysUser.getId());
|
||||
userScope.setUserId(sysUser.getId());
|
||||
|
||||
Reference in New Issue
Block a user