123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- <?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.ruoyi.shipping.mapper.TCntrnoMapper">
- <resultMap type="TCntrno" id="TCntrnoResult">
- <result property="fId" column="f_id"/>
- <result property="fNo" column="f_no"/>
- <result property="fTypeid" column="f_typeid"/>
- <result property="fOwner" column="f_owner"/>
- <result property="fSource" column="f_source"/>
- <result property="fRent" column="f_rent"/>
- <result property="fUpdatetime" column="f_updatetime"/>
- <result property="fUpdateaddress" column="f_updateaddress"/>
- <result property="fUpdateef" column="f_updateEF"/>
- <result property="fCntrstatus" column="f_cntrstatus"/>
- <result property="fStatus" column="f_status"/>
- <result property="createBy" column="create_by"/>
- <result property="createTime" column="create_time"/>
- <result property="updateBy" column="update_by"/>
- <result property="updateTime" column="update_time"/>
- <result property="remark" column="remark"/>
- </resultMap>
- <sql id="selectTCntrnoVo">
- select f_id, f_no, f_typeid, f_owner, f_source, f_rent, f_updatetime, f_updateaddress, f_updateEF, f_cntrstatus, f_status, create_by, create_time, update_by, update_time, remark from t_cntrno
- </sql>
- <select id="selectTCntrnoList" parameterType="TCntrno" resultMap="TCntrnoResult">
- <include refid="selectTCntrnoVo"/>
- <where>
- <if test="fNo != null and fNo != ''">and f_no = #{fNo}</if>
- <if test="fTypeid != null ">and f_typeid = #{fTypeid}</if>
- <if test="fOwner != null and fOwner != ''">and f_owner = #{fOwner}</if>
- <if test="fSource != null and fSource != ''">and f_source = #{fSource}</if>
- <if test="fRent != null and fRent != ''">and f_rent = #{fRent}</if>
- <if test="fUpdatetime != null ">and f_updatetime = #{fUpdatetime}</if>
- <if test="fUpdateaddress != null and fUpdateaddress != ''">and f_updateaddress = #{fUpdateaddress}</if>
- <if test="fUpdateef != null and fUpdateef != ''">and f_updateEF = #{fUpdateef}</if>
- <if test="fCntrstatus != null and fCntrstatus != ''">and f_cntrstatus = #{fCntrstatus}</if>
- <if test="fStatus != null and fStatus != ''">and f_status = #{fStatus}</if>
- </where>
- </select>
- <select id="selectTCntrnoById" parameterType="Long" resultMap="TCntrnoResult">
- <include refid="selectTCntrnoVo"/>
- where f_id = #{fId}
- </select>
- <insert id="insertTCntrno" parameterType="TCntrno">
- insert into t_cntrno
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="fId != null">f_id,</if>
- <if test="fNo != null and fNo != ''">f_no,</if>
- <if test="fTypeid != null">f_typeid,</if>
- <if test="fOwner != null and fOwner != ''">f_owner,</if>
- <if test="fSource != null">f_source,</if>
- <if test="fRent != null">f_rent,</if>
- <if test="fUpdatetime != null">f_updatetime,</if>
- <if test="fUpdateaddress != null and fUpdateaddress != ''">f_updateaddress,</if>
- <if test="fUpdateef != null and fUpdateef != ''">f_updateEF,</if>
- <if test="fCntrstatus != null and fCntrstatus != ''">f_cntrstatus,</if>
- <if test="fStatus != null">f_status,</if>
- <if test="createBy != null">create_by,</if>
- <if test="createTime != null">create_time,</if>
- <if test="updateBy != null">update_by,</if>
- <if test="updateTime != null">update_time,</if>
- <if test="remark != null">remark,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="fId != null">#{fId},</if>
- <if test="fNo != null and fNo != ''">#{fNo},</if>
- <if test="fTypeid != null">#{fTypeid},</if>
- <if test="fOwner != null and fOwner != ''">#{fOwner},</if>
- <if test="fSource != null">#{fSource},</if>
- <if test="fRent != null">#{fRent},</if>
- <if test="fUpdatetime != null">#{fUpdatetime},</if>
- <if test="fUpdateaddress != null and fUpdateaddress != ''">#{fUpdateaddress},</if>
- <if test="fUpdateef != null and fUpdateef != ''">#{fUpdateef},</if>
- <if test="fCntrstatus != null and fCntrstatus != ''">#{fCntrstatus},</if>
- <if test="fStatus != null">#{fStatus},</if>
- <if test="createBy != null">#{createBy},</if>
- <if test="createTime != null">#{createTime},</if>
- <if test="updateBy != null">#{updateBy},</if>
- <if test="updateTime != null">#{updateTime},</if>
- <if test="remark != null">#{remark},</if>
- </trim>
- </insert>
- <update id="updateTCntrno" parameterType="TCntrno">
- update t_cntrno
- <trim prefix="SET" suffixOverrides=",">
- <if test="fNo != null and fNo != ''">f_no = #{fNo},</if>
- <if test="fTypeid != null">f_typeid = #{fTypeid},</if>
- <if test="fOwner != null and fOwner != ''">f_owner = #{fOwner},</if>
- <if test="fSource != null">f_source = #{fSource},</if>
- <if test="fRent != null">f_rent = #{fRent},</if>
- <if test="fUpdatetime != null">f_updatetime = #{fUpdatetime},</if>
- <if test="fUpdateaddress != null and fUpdateaddress != ''">f_updateaddress = #{fUpdateaddress},</if>
- <if test="fUpdateef != null and fUpdateef != ''">f_updateEF = #{fUpdateef},</if>
- <if test="fCntrstatus != null and fCntrstatus != ''">f_cntrstatus = #{fCntrstatus},</if>
- <if test="fStatus != null">f_status = #{fStatus},</if>
- <if test="createBy != null">create_by = #{createBy},</if>
- <if test="createTime != null">create_time = #{createTime},</if>
- <if test="updateBy != null">update_by = #{updateBy},</if>
- <if test="updateTime != null">update_time = #{updateTime},</if>
- <if test="remark != null">remark = #{remark},</if>
- </trim>
- where f_id = #{fId}
- </update>
- <delete id="deleteTCntrnoById" parameterType="Long">
- delete from t_cntrno where f_id = #{fId}
- </delete>
- <delete id="deleteTCntrnoByIds" parameterType="String">
- delete from t_cntrno where f_id in
- <foreach item="fId" collection="array" open="(" separator="," close=")">
- #{fId}
- </foreach>
- </delete>
- <!--批量更新数据状态-->
- <update id="updateTcntrnoStatus" parameterType="string">
- update t_cntrno
- set f_status = F
- where f_id in
- <foreach item="fId" collection="array" open="(" separator="," close=")">
- #{fId}
- </foreach>
- </update>
- </mapper>
|