|
@@ -110,7 +110,7 @@ public class ConsumerDaoImpl extends GenericDaoHibernate<Consumer, Long> impleme
|
|
|
sql.append(" ,u.email,dl.name deptStr,dl.name dept,u.userMobile mobile,u.address addressId ");
|
|
|
sql.append(" ,ifnull(doi.itemname,di.itemname) address,u.roleType,u.integral,u.organizationId ");
|
|
|
sql.append(" ,date_format(u.createTime,'%Y-%m-%d %T') createTime,u.isEnabled,tg.passType,ifnull(tvpc.name,'暂未设置') permName ");
|
|
|
- sql.append(" ,ifnull(s.status,1) pushState ");
|
|
|
+ sql.append(" ,ifnull(u.isPushState,1) pushState ");
|
|
|
sql.append(" from tb_user u ");
|
|
|
sql.append(" left join tb_department dl on dl.id=u.departmentId ");
|
|
|
sql.append(" left join tb_dictionary_item di on di.id=u.address ");
|
|
@@ -118,7 +118,6 @@ public class ConsumerDaoImpl extends GenericDaoHibernate<Consumer, Long> impleme
|
|
|
sql.append(" left join tb_organization tg on tg.id=u.organizationId ");
|
|
|
sql.append(" left join tb_virtualarchitecture tv on tv.id=u.virtualArchId ");
|
|
|
sql.append(" left join tb_vir_perm_config tvpc on tvpc.id=u.virPermId ");
|
|
|
- sql.append(" left join tb_order_dinner_set s on s.userId=u.id ");
|
|
|
sql.append(" where 1=1 and (userType <> '-1' OR userType IS NULL) and (u.`STATUS` IS NULL OR u.`STATUS` <> '5') and u.userMobile is not null ");
|
|
|
if (StringUtils.isNotEmpty(paramets.get("orgId") == null ? "" : paramets.get("orgId").toString())) {
|
|
|
sql.append(" and u.organizationId in (" + paramets.get("orgId") + ") ");
|