123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <?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.warehouseBusiness.mapper.TWarehouseWarehousecheckMapper">
- <resultMap type="TWarehouseWarehousecheck" id="TWarehouseWarehousecheckResult">
- <result property="fId" column="f_id" />
- <result property="fWarehouseid" column="f_warehouseid" />
- <result property="fWarehousename" column="f_warehousename" />
- <result property="plannedDate" column="planned_date" />
- <result property="inspectionDate" column="inspection_date" />
- <result property="inspector" column="inspector" />
- <result property="inspectionRemark" column="inspection_remark" />
- <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="delFlag" column="del_flag" />
- <result property="remark" column="remark" />
- </resultMap>
- <sql id="selectTWarehouseWarehousecheckVo">
- select f_id, f_warehouseid, f_warehousename, planned_date, inspection_date, inspector, inspection_remark, create_by, create_time, update_by, update_time, del_flag, remark from t_warehouse_warehousecheck
- </sql>
- <select id="selectTWarehouseWarehousecheckList" parameterType="TWarehouseWarehousecheck" resultMap="TWarehouseWarehousecheckResult">
- <include refid="selectTWarehouseWarehousecheckVo"/>
- <where>
- <if test="fWarehouseid != null and fWarehouseid != ''"> and f_warehouseid = #{fWarehouseid}</if>
- <if test="fWarehousename != null and fWarehousename != ''"> and f_warehousename like concat('%', #{fWarehousename}, '%')</if>
- <if test="plannedDate != null "> and planned_date = #{plannedDate}</if>
- <if test="inspectionDate != null "> and inspection_date = #{inspectionDate}</if>
- <if test="inspector != null and inspector != ''"> and inspector = #{inspector}</if>
- <if test="inspectionRemark != null and inspectionRemark != ''"> and inspection_remark = #{inspectionRemark}</if>
- </where>
- </select>
- <select id="selectTWarehouseWarehousecheckById" parameterType="Long" resultMap="TWarehouseWarehousecheckResult">
- <include refid="selectTWarehouseWarehousecheckVo"/>
- where f_id = #{fId}
- </select>
- <insert id="insertTWarehouseWarehousecheck" parameterType="TWarehouseWarehousecheck" useGeneratedKeys="true" keyProperty="fId">
- insert into t_warehouse_warehousecheck
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="fWarehouseid != null">f_warehouseid,</if>
- <if test="fWarehousename != null">f_warehousename,</if>
- <if test="plannedDate != null">planned_date,</if>
- <if test="inspectionDate != null">inspection_date,</if>
- <if test="inspector != null">inspector,</if>
- <if test="inspectionRemark != null">inspection_remark,</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="delFlag != null">del_flag,</if>
- <if test="remark != null">remark,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="fWarehouseid != null">#{fWarehouseid},</if>
- <if test="fWarehousename != null">#{fWarehousename},</if>
- <if test="plannedDate != null">#{plannedDate},</if>
- <if test="inspectionDate != null">#{inspectionDate},</if>
- <if test="inspector != null">#{inspector},</if>
- <if test="inspectionRemark != null">#{inspectionRemark},</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="delFlag != null">#{delFlag},</if>
- <if test="remark != null">#{remark},</if>
- </trim>
- </insert>
- <update id="updateTWarehouseWarehousecheck" parameterType="TWarehouseWarehousecheck">
- update t_warehouse_warehousecheck
- <trim prefix="SET" suffixOverrides=",">
- <if test="fWarehouseid != null">f_warehouseid = #{fWarehouseid},</if>
- <if test="fWarehousename != null">f_warehousename = #{fWarehousename},</if>
- <if test="plannedDate != null">planned_date = #{plannedDate},</if>
- <if test="inspectionDate != null">inspection_date = #{inspectionDate},</if>
- <if test="inspector != null">inspector = #{inspector},</if>
- <if test="inspectionRemark != null">inspection_remark = #{inspectionRemark},</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="delFlag != null">del_flag = #{delFlag},</if>
- <if test="remark != null">remark = #{remark},</if>
- </trim>
- where f_id = #{fId}
- </update>
- <delete id="deleteTWarehouseWarehousecheckById" parameterType="Long">
- delete from t_warehouse_warehousecheck where f_id = #{fId}
- </delete>
- <delete id="deleteTWarehouseWarehousecheckByIds" parameterType="String">
- delete from t_warehouse_warehousecheck where f_id in
- <foreach item="fId" collection="array" open="(" separator="," close=")">
- #{fId}
- </foreach>
- </delete>
- </mapper>
|