forked from kidgrow-microservices-platform

houruijun
2020-08-08 76616400ee139c495f53ef727b26df27478c5c99
kidgrow-business/kidgrow-opration-center/kidgrow-opration-center-biz/src/main/resources/mapper/ConsumptionRecordMapper.xml
@@ -12,8 +12,8 @@
        <where>
            <!--查询条件自行添加-->
            1=1
            <if test="p.recordId != null and p.recordId !=''">
                and record_id = #{p.recordId}
            <if test="p.id != null and p.id !=''">
                and id = #{p.id}
            </if>
            <if test="p.lastRecordId != null and p.lastRecordId !=''">
                and last_record_id = #{p.lastRecordId}
@@ -48,7 +48,7 @@
        <include refid="Column_List"/>
        from consumption_record
        <include refid="where"/>
        order by record_id desc
        order by id desc
        limit 1
    </select>
@@ -58,6 +58,6 @@
        <include refid="Column_List"/>
        from consumption_record
        <include refid="where"/>
        order by record_id desc
        order by id desc
    </select>
</mapper>