forked from kidgrow-microservices-platform

houruijun
2020-11-04 1e228c1191996a8e704cf36dc8042b1c6ca81ef1
kidgrow-business/kidgrow-opration-center/kidgrow-opration-center-biz/src/main/resources/mapper/ConsumptionRecordMapper.xml
@@ -65,15 +65,12 @@
        SELECT * FROM `consumption_record`
        where record_type=1
        and update_time is null
        <where>
            <if test="DetailList!=null and DetailList.size()>0">
                and pro_order_detail_id in
                <foreach item="item" index="index" collection="DetailList" open="(" close=")" separator=",">
                    #{item}
                </foreach>
            </if>
        </where>
        and pro_order_detail_id in (1,1)
        order by id desc
    </select>
</mapper>