企业端动火作业删除全部删除的bug,消防点位维护是否标点显示错误的bug

liujun-2024-05-23-接口漏洞修复
limingyu 2024-05-09 14:44:23 +08:00
parent b91fe23733
commit 29f4e7df5e
2 changed files with 3 additions and 2 deletions

View File

@ -145,7 +145,7 @@
d.`NAME` AS DEPARTMENT_NAME,
u.`NAME` AS USERNAME,
r.FIRE_REGION_NAME,
if(p.LATITUDE is null or p.LONGITUDE is null, '1', '0') AS ISPUNCTUATION
if(p.LATITUDE is null or p.LONGITUDE is null or p.LATITUDE = '' or p.LONGITUDE = '', '1', '0') AS ISPUNCTUATION
FROM
bus_fire_point AS p
LEFT JOIN bus_fire_qualified_photos fqp ON p.QUALIFIED_PHOTOS_ID = fqp.QUALIFIED_PHOTOS_ID
@ -170,7 +170,7 @@
AND p.FIRE_REGION_ID = #{pd.FIRE_REGION_ID}
</if>
<if test="pd.IS_PUNCTUATION != null and pd.IS_PUNCTUATION != ''">
AND if(p.LATITUDE is null or p.LONGITUDE is null, '1', '0') = #{pd.IS_PUNCTUATION}
AND if(p.LATITUDE is null or p.LONGITUDE is null or p.LATITUDE = '' or p.LONGITUDE = '', '1', '0') = #{pd.IS_PUNCTUATION}
</if>
group by p.FIRE_POINT_ID
ORDER BY

View File

@ -132,6 +132,7 @@
<select id="listAll" parameterType="pd" resultType="pd">
select * from bus_hotwork_cfd_examine f
where f.IS_DELETE = '0' and f.HOTWORK_ID = #{HOTWORK_ID}
</select>
<select id="findByCondition" resultType="com.zcloud.entity.PageData">
select * from bus_hotwork_cfd_examine f where f.IS_DELETE = '0'