Commit 2e3616fb authored by tangwei's avatar tangwei

修改bug

parent 64f5eaa3
......@@ -89,7 +89,7 @@ public class KeySiteServiceImpl extends BaseService<KeySiteDto, KeySite, KeySite
public IPage<KeySiteDto> getPageList(Page<KeySiteDto> page, String name, Long buildingId, String fireEnduranceRate,
String useNature, String fireFacilitiesInfo, String bizOrgCode) {
List<Long> ids = null;
if (buildingId != null && buildingId.intValue() != 0) {
if (buildingId != null&& buildingId!=-1 && buildingId.intValue() != 0) {
ids = getNodeAllnodeIds(buildingId);
}
return keySiteMapper.getPageList(page, name, ids, fireEnduranceRate, useNature, fireFacilitiesInfo, bizOrgCode);
......
......@@ -945,7 +945,7 @@
month),'%y-%m') <!--上月-->
</if>
<if test='dto.startDate != null and dto.endDate != null '>
<if test='dto.startDate != null and dto.startDate != "" and dto.endDate != null and dto.endDate != ""'>
AND DATE_FORMAT(wlesa.create_date, '%Y-%m-%d' ) <![CDATA[>=]]> DATE_FORMAT(#{dto.startDate}, '%Y-%m-%d' )
AND DATE_FORMAT(wlesa.create_date, '%Y-%m-%d' ) <![CDATA[<=]]> DATE_FORMAT(#{dto.endDate}, '%Y-%m-%d' )
</if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment