| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="platform.modules.carrier.dao.InvestmentFloorDao">
- <!-- 批量插入-->
- <insert id="insertBatch" parameterType="java.util.List">
- INSERT INTO ic_investment_floor (
- id, investment_id, floor_id, floor_height,
- area, capacity, refer_price, rental_month,
- checkin_time, rental_method, status,
- remark, created_time, created_by,
- updated_by, updated_time, del_flag,
- created_name, updated_name
- )
- VALUES
- <foreach collection="list" item="item" open="" separator="," close="">
- (
- #{item.id}, #{item.investment_id}, #{item.floor_id},#{item.floor_height},
- #{item.area}, #{item.capacity}, #{item.refer_price}, #{item.rental_month},
- #{item.checkin_time},#{item.rental_method}, #{item.status},
- #{item.remark}, #{item.created_time}, #{item.created_by}
- #{item.updated_by}, #{item.updated_time}, #{item.del_flag},
- #{item.created_name}, #{item.updated_name}
- )
- </foreach>
- </insert>
- <delete id="deleteByInvestmentId">
- DELETE FROM ic_investment_floor WHERE investment_id = #{id}
- </delete>
- <select id="findByInvestmentId" resultType="platform.modules.carrier.entity.InvestmentFloor">
- SELECT iif.* ,yf.floor
- FROM ic_investment_floor iif
- LEFT JOIN y_floor yf on yf.id = iif.floor_id
- WHERE iif.investment_id = #{id}
- </select>
- </mapper>
|