소스 검색

优化首页企业数

LuChongMei 1 개월 전
부모
커밋
0e1e0616e4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      jp-console/jeeplus-module/ly/src/main/java/com/jeeplus/lyservice/mapper/xml/LyServiceMapper.xml

+ 2 - 2
jp-console/jeeplus-module/ly/src/main/java/com/jeeplus/lyservice/mapper/xml/LyServiceMapper.xml

@@ -95,13 +95,13 @@
 	</select>
 
 	<select id="getAreaInfo" resultType="Map">
-		SELECT des1 FROM ly_enterprise_info WHERE del_flag = 0 AND des13 IS NOT NULL GROUP BY des1;
+		SELECT des1 FROM ly_enterprise_info WHERE del_flag = 0 AND (des13 IS NOT NULL OR des13 != '') GROUP BY des1;
 	</select>
 
 	<select id="getPersonInfo" resultType="Map">
 		SELECT COUNT(DISTINCT b.id) sum,des13,des14 as bz5,des1 FROM ly_enterprise_info a
 		LEFT JOIN
-		(SELECT * FROM ly_service WHERE del_flag = 0 AND (des13 IS NOT NULL OR des13 != '')
+		(SELECT * FROM ly_service WHERE del_flag = 0
 		<if test="beginTime != ''">
 		AND DATE_FORMAT(create_date, '%Y-%m-%d') >= #{beginTime} AND DATE_FORMAT(create_date, '%Y-%m-%d') &lt;= #{endTime}
 		</if>