Commit d2d35830 authored by chenzhao's avatar chenzhao

我接受统计接口 sql优化

parent 360d7dd5
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yeejoin.amos.boot.module.common.api.mapper.FailureDetailsMapper"> <mapper namespace="com.yeejoin.amos.boot.module.common.api.mapper.FailureDetailsMapper">
<select id="selectAllPage" resultType="com.yeejoin.amos.boot.module.common.api.entity.FailureDetails"> <select id="selectAllPage" resultType="com.yeejoin.amos.boot.module.common.api.entity.FailureDetails">
SELECT SELECT
sequence_nbr, sequence_nbr,
...@@ -28,7 +29,7 @@ ...@@ -28,7 +29,7 @@
and submission_pid = #{submissionPid} and submission_pid = #{submissionPid}
</if> </if>
</where> </where>
order by submission_time DESC limit #{current},#{size} order by submission_time DESC limit #{current},#{size};
</select> </select>
<select id="selectWebPage" resultType="com.yeejoin.amos.boot.module.common.api.dto.FailureDetailsDto"> <select id="selectWebPage" resultType="com.yeejoin.amos.boot.module.common.api.dto.FailureDetailsDto">
...@@ -359,7 +360,6 @@ ...@@ -359,7 +360,6 @@
AS currentStatusCount AS currentStatusCount
FROM FROM
cb_failure_details d cb_failure_details d
WHERE
<where> <where>
d.sequence_nbr in d.sequence_nbr in
(SELECT (SELECT
......
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