|
@@ -106,7 +106,7 @@
|
|
AND DATE_FORMAT(create_date, '%Y-%m-%d') >= #{beginTime} AND DATE_FORMAT(create_date, '%Y-%m-%d') <= #{endTime}
|
|
AND DATE_FORMAT(create_date, '%Y-%m-%d') >= #{beginTime} AND DATE_FORMAT(create_date, '%Y-%m-%d') <= #{endTime}
|
|
</if>
|
|
</if>
|
|
) b ON a.id = b.qy_id
|
|
) b ON a.id = b.qy_id
|
|
- WHERE a.del_flag = 0 AND des13 IS NOT NULL
|
|
|
|
|
|
+ WHERE a.del_flag = 0 AND (des13 IS NOT NULL OR des13 != '')
|
|
<if test="des1 != ''">
|
|
<if test="des1 != ''">
|
|
AND des1 = #{des1}
|
|
AND des1 = #{des1}
|
|
</if>
|
|
</if>
|
|
@@ -126,12 +126,12 @@
|
|
<select id="getCompanyInfo" resultType="Map">
|
|
<select id="getCompanyInfo" resultType="Map">
|
|
SELECT b.id AS sum,des13,des14,des1,name FROM ly_enterprise_info a
|
|
SELECT b.id AS sum,des13,des14,des1,name FROM ly_enterprise_info a
|
|
LEFT JOIN
|
|
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 != ''">
|
|
<if test="beginTime != ''">
|
|
AND DATE_FORMAT(create_date, '%Y-%m-%d') >= #{beginTime} AND DATE_FORMAT(create_date, '%Y-%m-%d') <= #{endTime}
|
|
AND DATE_FORMAT(create_date, '%Y-%m-%d') >= #{beginTime} AND DATE_FORMAT(create_date, '%Y-%m-%d') <= #{endTime}
|
|
</if>
|
|
</if>
|
|
) b ON a.id = b.qy_id
|
|
) b ON a.id = b.qy_id
|
|
- WHERE a.del_flag = 0 AND des13 IS NOT NULL
|
|
|
|
|
|
+ WHERE a.del_flag = 0 AND (des13 IS NOT NULL OR des13 != '')
|
|
<if test="des1 != ''">
|
|
<if test="des1 != ''">
|
|
AND des1 = #{des1}
|
|
AND des1 = #{des1}
|
|
</if>
|
|
</if>
|