Przeglądaj źródła

电子放行条消息推送给审核人的问题

longmeizhen@avic-s.com 1 rok temu
rodzic
commit
0063e137c7

+ 5 - 2
src/main/java/com/palmnest/dao/estateserve/impl/ScWxuserDaoImpl.java

@@ -82,8 +82,11 @@ public class ScWxuserDaoImpl extends GenericDaoHibernate<WxUser, Integer> implem
 
 	@Override
 	public List<WxUser> getWxUserByPermId(Integer permId, Integer virId,String ranks) {
-		String sql = " SELECT DISTINCT t1.* FROM tb_wxuser t1"
-				+ " LEFT JOIN tb_user t2 ON t1.ID = t2.wxUserId "
+		String sql = " SELECT DISTINCT t1.`ID`, t1.`developId`, t1.`openId`, t1.`nickName`," +
+				" t1.`city`, t1.`country`, t1.`province`, t1.`language`, t1.`headimgUrl`," +
+				" t1.`subscribeTime`, t1.`unSubscribeTime`, t1.`isSubscribe`, t1.`isBinding`, " +
+				"t1.`accountType`, t1.`organizationId`, t2.id userId FROM tb_wxuser t1"
+				+ " LEFT JOIN tb_user t2 ON (t1.openId = IFNULL(t2.bind_openid, t2.openId)) "
 				+ " LEFT JOIN tb_department dp on dp.id =  t2.departmentId "
 				+ " LEFT JOIN tb_vir_perm_config cf ON cf.id = t2.virPermId "
 				+ " WHERE t2.virPermId =" + permId + " AND t2.virtualArchId = " + virId;