123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- <?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="com.supervision.barracksManagement.mapper.BdglSingleCadreDormMapper">
-
- <resultMap type="BdglSingleCadreDorm" id="BdglSingleCadreDormResult">
- <result property="id" column="id" />
- <result property="number" column="number" />
- <result property="number1" column="number1" />
- <result property="name" column="name" />
- <result property="behoof" column="behoof" />
- <result property="statusQuo" column="status_quo" />
- <result property="period" column="period" />
- <result property="area" column="area" />
- <result property="remark" column="remark" />
- <result property="createtime" column="createtime" />
- <result property="updatetime" column="updatetime" />
- <result property="tier" column="tier" />
- <result property="roomNumber" column="room_number" />
- <result property="element" column="element" />
- <result property="xingMing" column="xing_ming" />
- <result property="usageArea" column="usage_area" />
- <result property="propertyFeeStandard" column="property_fee_standard" />
- <result property="rentStandard" column="rent_standard" />
- <result property="waterBil" column="water_bil" />
- <result property="monthlyRent" column="monthly_rent" />
- <result property="monthlyPropertyFee" column="monthly_property_fee" />
- <result property="totalAmount" column="total_amount" />
- </resultMap>
- <sql id="selectBdglSingleCadreDormVo">
- select id, number, number1, name, behoof, status_quo, period, area, remark, createtime, updatetime, tier, room_number, element, xing_ming, usage_area, property_fee_standard, rent_standard, water_bil, monthly_rent, monthly_property_fee, total_amount from bdgl_single_cadre_dorm
- </sql>
- <select id="selectBdglSingleCadreDormList" parameterType="BdglSingleCadreDorm" resultMap="BdglSingleCadreDormResult">
- <include refid="selectBdglSingleCadreDormVo"/>
- <where>
- <if test="number != null and number != ''"> and number = #{number}</if>
- <if test="number1 != null and number1 != ''"> and number1 = #{number1}</if>
- <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
- <if test="behoof != null and behoof != ''"> and behoof = #{behoof}</if>
- <if test="statusQuo != null and statusQuo != ''"> and status_quo = #{statusQuo}</if>
- <if test="period != null and period != ''"> and period = #{period}</if>
- <if test="area != null and area != ''"> and area = #{area}</if>
- <if test="createtime != null and createtime != ''"> and createtime = #{createtime}</if>
- <if test="updatetime != null and updatetime != ''"> and updatetime = #{updatetime}</if>
- <if test="tier != null and tier != ''"> and tier = #{tier}</if>
- <if test="roomNumber != null and roomNumber != ''"> and room_number = #{roomNumber}</if>
- <if test="element != null and element != ''"> and element = #{element}</if>
- <if test="xingMing != null and xingMing != ''"> and xing_ming = #{xingMing}</if>
- <if test="usageArea != null and usageArea != ''"> and usage_area = #{usageArea}</if>
- <if test="propertyFeeStandard != null and propertyFeeStandard != ''"> and property_fee_standard = #{propertyFeeStandard}</if>
- <if test="rentStandard != null and rentStandard != ''"> and rent_standard = #{rentStandard}</if>
- <if test="waterBil != null and waterBil != ''"> and water_bil = #{waterBil}</if>
- <if test="monthlyRent != null and monthlyRent != ''"> and monthly_rent = #{monthlyRent}</if>
- <if test="monthlyPropertyFee != null and monthlyPropertyFee != ''"> and monthly_property_fee = #{monthlyPropertyFee}</if>
- <if test="totalAmount != null and totalAmount != ''"> and total_amount = #{totalAmount}</if>
- </where>
- order by id desc
- </select>
-
- <select id="selectBdglSingleCadreDormById" parameterType="Integer" resultMap="BdglSingleCadreDormResult">
- <include refid="selectBdglSingleCadreDormVo"/>
- where id = #{id}
- </select>
-
- <insert id="insertBdglSingleCadreDorm" parameterType="BdglSingleCadreDorm" useGeneratedKeys="true" keyProperty="id">
- insert into bdgl_single_cadre_dorm
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="number != null">number,</if>
- <if test="number1 != null">number1,</if>
- <if test="name != null">name,</if>
- <if test="behoof != null">behoof,</if>
- <if test="statusQuo != null">status_quo,</if>
- <if test="period != null">period,</if>
- <if test="area != null">area,</if>
- <if test="remark != null">remark,</if>
- <if test="createtime != null">createtime,</if>
- <if test="updatetime != null">updatetime,</if>
- <if test="tier != null">tier,</if>
- <if test="roomNumber != null">room_number,</if>
- <if test="element != null">element,</if>
- <if test="xingMing != null">xing_ming,</if>
- <if test="usageArea != null">usage_area,</if>
- <if test="propertyFeeStandard != null">property_fee_standard,</if>
- <if test="rentStandard != null">rent_standard,</if>
- <if test="waterBil != null">water_bil,</if>
- <if test="monthlyRent != null">monthly_rent,</if>
- <if test="monthlyPropertyFee != null">monthly_property_fee,</if>
- <if test="totalAmount != null">total_amount,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="number != null">#{number},</if>
- <if test="number1 != null">#{number1},</if>
- <if test="name != null">#{name},</if>
- <if test="behoof != null">#{behoof},</if>
- <if test="statusQuo != null">#{statusQuo},</if>
- <if test="period != null">#{period},</if>
- <if test="area != null">#{area},</if>
- <if test="remark != null">#{remark},</if>
- <if test="createtime != null">#{createtime},</if>
- <if test="updatetime != null">#{updatetime},</if>
- <if test="tier != null">#{tier},</if>
- <if test="roomNumber != null">#{roomNumber},</if>
- <if test="element != null">#{element},</if>
- <if test="xingMing != null">#{xingMing},</if>
- <if test="usageArea != null">#{usageArea},</if>
- <if test="propertyFeeStandard != null">#{propertyFeeStandard},</if>
- <if test="rentStandard != null">#{rentStandard},</if>
- <if test="waterBil != null">#{waterBil},</if>
- <if test="monthlyRent != null">#{monthlyRent},</if>
- <if test="monthlyPropertyFee != null">#{monthlyPropertyFee},</if>
- <if test="totalAmount != null">#{totalAmount},</if>
- </trim>
- </insert>
- <update id="updateBdglSingleCadreDorm" parameterType="BdglSingleCadreDorm">
- update bdgl_single_cadre_dorm
- <trim prefix="SET" suffixOverrides=",">
- <if test="number != null">number = #{number},</if>
- <if test="number1 != null">number1 = #{number1},</if>
- <if test="name != null">name = #{name},</if>
- <if test="behoof != null">behoof = #{behoof},</if>
- <if test="statusQuo != null">status_quo = #{statusQuo},</if>
- <if test="period != null">period = #{period},</if>
- <if test="area != null">area = #{area},</if>
- <if test="remark != null">remark = #{remark},</if>
- <if test="createtime != null">createtime = #{createtime},</if>
- <if test="updatetime != null">updatetime = #{updatetime},</if>
- <if test="tier != null">tier = #{tier},</if>
- <if test="roomNumber != null">room_number = #{roomNumber},</if>
- <if test="element != null">element = #{element},</if>
- <if test="xingMing != null">xing_ming = #{xingMing},</if>
- <if test="usageArea != null">usage_area = #{usageArea},</if>
- <if test="propertyFeeStandard != null">property_fee_standard = #{propertyFeeStandard},</if>
- <if test="rentStandard != null">rent_standard = #{rentStandard},</if>
- <if test="waterBil != null">water_bil = #{waterBil},</if>
- <if test="monthlyRent != null">monthly_rent = #{monthlyRent},</if>
- <if test="monthlyPropertyFee != null">monthly_property_fee = #{monthlyPropertyFee},</if>
- <if test="totalAmount != null">total_amount = #{totalAmount},</if>
- </trim>
- where id = #{id}
- </update>
- <delete id="deleteBdglSingleCadreDormById" parameterType="Integer">
- delete from bdgl_single_cadre_dorm where id = #{id}
- </delete>
- <delete id="deleteBdglSingleCadreDormByIds" parameterType="String">
- delete from bdgl_single_cadre_dorm where id in
- <foreach item="id" collection="array" open="(" separator="," close=")">
- #{id}
- </foreach>
- </delete>
- </mapper>
|