服务器未知运行时异常: 
### Error querying database.  Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 31
### The error may exist in file [D:\workspace\casic-metering-xc\casic-metering-eqpt-xichang\casic-metering-dao\target\classes\mapper\equipment\EquipmentInfoMapper.xml]
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: WITH latest_relation AS (             SELECT *             FROM biz_business_order_sample_relation a             WHERE id = (                 SELECT max( id )                 FROM biz_business_order_sample_relation b                 WHERE a.sample_id = b.sample_id )         )          SELECT             e.id AS equipmentId,             e.dept_id AS deptId,             d.FULL_NAME AS deptname,             e.usage_status AS usageStatus,             e.certificate_valid AS certificateValid,             r.sample_status AS latestSampleStatus,             IF(EXISTS (SELECT id FROM biz_business_order_sample_relation tmp                         WHERE tmp.sample_id = e.id                         AND YEAR ( tmp.update_time ) = YEAR (NOW())                   AND tmp.sample_status IN ( 5,6 )),                     1,                     0             ) AS yearChecked         FROM eqpt_equipment_info e         LEFT JOIN latest_relation r ON e.id = r.sample_id         LEFT JOIN sys_dept d ON e.dept_id = d.id         WHERE         e.is_del = '0'                       AND e.equipment_type = ?          =
### Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 31
; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 31