|
@@ -84,10 +84,10 @@
|
|
|
limit #{startIndex},100000
|
|
|
</insert>
|
|
|
<select id="countTotal" resultType="java.lang.Integer">
|
|
|
- select count(1)
|
|
|
- from ${originTable}
|
|
|
- where stat_date = #{date}
|
|
|
- and project_id = #{projectId}
|
|
|
- group by signature, ${originTableKey}
|
|
|
+ select count(*) from (select *
|
|
|
+ from ${originTable}
|
|
|
+ where stat_date = #{date}
|
|
|
+ and project_id = #{projectId}
|
|
|
+ group by signature, ${originTableKey})a
|
|
|
</select>
|
|
|
</mapper>
|