forked from kidgrow-microservices-platform

zhaoxiaohao
2020-11-04 c981d74612bf35c16365aba0db9b55be0ad81dac
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="p!=null and p.size()>0">
            <if test="DetailList!=null and DetailList.size()>0">
                and pro_order_detail_id in
                <foreach item="item" index="index" collection="p" open="(" close=")" separator=",">
                <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>