forked from kidgrow-microservices-platform

luliqiang
2020-12-08 ea9f73babda708e281f08f82aa099a0a128a24d5
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>