| | |
| | | </resultMap> |
| | | |
| | | <select id="searchGroupTestCap" resultType="com.whyc.dto.result.GroupTestCapRes"> |
| | | SELECT stationId,testStartTime,stationName1,stationName2,stationName3,stationName5,IFNULL(count(*),0) as |
| | | countNum,IFNULL(truncate(sum(test_cap),3),0) as sumNum,GROUP_CONCAT(test_cap) as testCaps |
| | | SELECT stationId,stationName1,stationName2,stationName3,stationName5,IFNULL(count(*),0) as |
| | | countNum,IFNULL(truncate(sum(test_cap),3),0) as sumNum,WM_CONCAT(test_cap) as testCaps |
| | | from (SELECT DISTINCT |
| | | stationId,test_starttime as |
| | | testStartTime,stationName1,stationName2,stationName3,stationName5,ifnull(truncate(abs(test_cap),3),0) as test_cap |
| | |
| | | </if> |
| | | </where> |
| | | ) as a |
| | | group by stationId |
| | | group by stationId,stationName1,stationName2,stationName3,stationName5 |
| | | </select> |
| | | <select id="selectMonth" resultType="com.whyc.pojo.BatttestdataInf"> |
| | | SELECT test_type, test_starttype, test_stoptype, test_timelong, test_datatype |