服务器未知运行时异常: 
### 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 'bor.sample_id=csi.id
        ORDER BY create_time DESC) TOTAL' at line 21
### The error may exist in file [D:\cz\203\徐州计量\code\casic-metering\casic-metering-dao\target\classes\mapper\business\BusinessInterchangeMapper.xml]
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: SELECT COUNT(*) FROM (SELECT orderId,smapleId,sampleName,sampleModel,manufacturingNo,appendixDescn,measureContent,remark,sampleSatus,customerName,measurePeriod,         validDeadline,certificationStatus,measureLastTime         FROM (             SELECT sample_name AS "sampleName",sample_model AS "sampleModel",manufacturing_no AS             "manufacturingNo",appendix_descn AS "appendixDescn",remark,customer_name AS "customerNam",measure_period AS "measurePeriod",             valid_deadline AS validDeadline,measure_last_time AS "measureLastTime"             FROM customer_sample_info             WHERE customer_id=?                                     )csi         JOIN (             SELECT sample_status AS "sampleSatus",sample_id as "sampleId"             FROM business_order_sample_relation bosr             JOIN (                     SELECT id                     FROM business_order                     WHERE customer_id=?             )bo ON bo.id=bosr.order_id             WHERE  sample_status='1' AND interchange_id is null         )bor bor.sample_id=csi.id         ORDER BY create_time DESC) TOTAL
### 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 'bor.sample_id=csi.id
        ORDER BY create_time DESC) TOTAL' at line 21
; 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 'bor.sample_id=csi.id
        ORDER BY create_time DESC) TOTAL' at line 21