zss
2023-08-15 56f89b4a45a561ff017ffd1e611e542130d046a0
inspect-server/src/main/resources/mapper/RawInspectMapper.xml
@@ -39,4 +39,28 @@
        order by id desc
        limit #{pageSize},#{countSize}
    </select>
    <select id="selCountRaw" resultType="java.lang.Integer">
        select count(id)
        from mom_ocean.raw_inspect
        where state=1
        and ins_state=1
        and judge_state=#{judgeState}
        <if test="begin != null and begin!=''">
            and raw_inspect.create_time &gt;= #{begin}
        </if>
        <if test="end != null and end!=''">
            and raw_inspect.create_time &lt;= #{end}
        </if>
    </select>
    <select id="seAllCount" resultType="java.lang.Long">
        select count(id)
        from mom_ocean.raw_inspect
        where state=1
        <if test="begin != null and begin!=''">
            and raw_inspect.create_time &gt;= #{begin}
        </if>
        <if test="end != null and end!=''">
            and raw_inspect.create_time &lt;= #{end}
        </if>
    </select>
</mapper>