184 lines
12 KiB
XML
184 lines
12 KiB
XML
<?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.search.ViewFlatWarehouseInFlow.mapper.ViewFlatWarehouseInFlowMapper">
|
|
|
|
<resultMap type="ViewFlatWarehouseInFlow" id="ViewFlatWarehouseInFlowResult">
|
|
<result property="id" column="id" />
|
|
<result property="inOrOut" column="in_or_out" />
|
|
<result property="inOrOutSotckId" column="in_or_out_sotck_id" />
|
|
<result property="inOrOutSotckDetailId" column="in_or_out_sotck_detail_id" />
|
|
<result property="productGuid" column="product_guid" />
|
|
<result property="productId" column="product_id" />
|
|
<result property="quantity" column="quantity" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createMan" column="create_man" />
|
|
<result property="warehouseId" column="warehouse_id" />
|
|
<result property="warehouseName" column="warehouse_name" />
|
|
<result property="address" column="address" />
|
|
<result property="cDesc" column="c_desc" />
|
|
<result property="warehouseKind" column="warehouse_kind" />
|
|
<result property="warehouseType" column="warehouse_type" />
|
|
<result property="isCurrent" column="is_current" />
|
|
<result property="productName" column="product_name" />
|
|
<result property="spec" column="spec" />
|
|
<result property="unit" column="unit" />
|
|
<result property="price" column="price" />
|
|
<result property="spare1" column="spare1" />
|
|
<result property="spare2" column="spare2" />
|
|
<result property="spare5" column="spare5" />
|
|
<result property="spare6" column="spare6" />
|
|
<result property="spare7" column="spare7" />
|
|
<result property="spare8" column="spare8" />
|
|
<result property="remark" column="remark" />
|
|
</resultMap>
|
|
|
|
<sql id="selectViewFlatWarehouseInFlowVo">
|
|
select id, in_or_out, in_or_out_sotck_id, in_or_out_sotck_detail_id, product_guid, product_id, quantity, create_time, create_man, warehouse_id, warehouse_name, address, c_desc, warehouse_kind, warehouse_type, is_current, product_name, spec, unit, price, remark,spare1,spare2,spare5,spare6,spare7,spare8 from view_flat_warehouse_in_flow
|
|
</sql>
|
|
|
|
<select id="selectViewFlatWarehouseInFlowList" parameterType="ViewFlatWarehouseInFlow" resultMap="ViewFlatWarehouseInFlowResult">
|
|
<include refid="selectViewFlatWarehouseInFlowVo"/>
|
|
<where>
|
|
<if test="inOrOut != null and inOrOut != ''"> and in_or_out like concat('%', #{inOrOut}, '%')</if>
|
|
<if test="inOrOutSotckId != null and inOrOutSotckId != ''"> and in_or_out_sotck_id like concat('%', #{inOrOutSotckId}, '%')</if>
|
|
<if test="inOrOutSotckDetailId != null and inOrOutSotckDetailId != ''"> and in_or_out_sotck_detail_id like concat('%', #{inOrOutSotckDetailId}, '%')</if>
|
|
<if test="productGuid != null and productGuid != ''"> and product_guid like concat('%', #{productGuid}, '%')</if>
|
|
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</if>
|
|
<if test="quantity != null and quantity != ''"> and quantity like concat('%', #{quantity}, '%')</if>
|
|
<if test="createMan != null and createMan != ''"> and create_man like concat('%', #{createMan}, '%')</if>
|
|
<if test="warehouseId != null and warehouseId != ''"> and warehouse_id like concat('%', #{warehouseId}, '%')</if>
|
|
<if test="warehouseName != null and warehouseName != ''"> and warehouse_name like concat('%', #{warehouseName}, '%')</if>
|
|
<if test="address != null and address != ''"> and address like concat('%', #{address}, '%')</if>
|
|
<if test="cDesc != null and cDesc != ''"> and c_desc like concat('%', #{cDesc}, '%')</if>
|
|
<if test="warehouseKind != null and warehouseKind != ''"> and warehouse_kind like concat('%', #{warehouseKind}, '%')</if>
|
|
<if test="warehouseType != null and warehouseType != ''"> and warehouse_type like concat('%', #{warehouseType}, '%')</if>
|
|
<if test="isCurrent != null and isCurrent != ''"> and is_current like concat('%', #{isCurrent}, '%')</if>
|
|
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
|
<if test="spec != null and spec != ''"> and spec like concat('%', #{spec}, '%')</if>
|
|
<if test="unit != null and unit != ''"> and unit like concat('%', #{unit}, '%')</if>
|
|
<if test="price != null and price != ''"> and price like concat('%', #{price}, '%')</if>
|
|
<if test="spare1 != null and spare1 != ''"> and spare1 like concat('%', #{spare1}, '%')</if>
|
|
<if test="spare2 != null and spare2 != ''"> and spare2 like concat('%', #{spare2}, '%')</if>
|
|
<if test="spare5 != null and spare5 != ''"> and spare5 like concat('%', #{spare5}, '%')</if>
|
|
<if test="spare6 != null and spare6 != ''"> and spare6 like concat('%', #{spare6}, '%')</if>
|
|
<if test="spare7 != null and spare7 != ''"> and spare7 like concat('%', #{spare7}, '%')</if>
|
|
<if test="spare8 != null and spare8 != ''"> and spare8 like concat('%', #{spare8}, '%')</if>
|
|
<if test="params.warehouseDataScope != null and params.warehouseDataScope !=''">
|
|
${params.warehouseDataScope}
|
|
</if>
|
|
</where>
|
|
</select>
|
|
|
|
<select id="selectViewFlatWarehouseInFlowById" parameterType="Long" resultMap="ViewFlatWarehouseInFlowResult">
|
|
<include refid="selectViewFlatWarehouseInFlowVo"/>
|
|
where id = #{id}
|
|
</select>
|
|
|
|
<insert id="insertViewFlatWarehouseInFlow" parameterType="ViewFlatWarehouseInFlow">
|
|
insert into view_flat_warehouse_in_flow
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">id,</if>
|
|
<if test="inOrOut != null">in_or_out,</if>
|
|
<if test="inOrOutSotckId != null">in_or_out_sotck_id,</if>
|
|
<if test="inOrOutSotckDetailId != null">in_or_out_sotck_detail_id,</if>
|
|
<if test="productGuid != null">product_guid,</if>
|
|
<if test="productId != null">product_id,</if>
|
|
<if test="quantity != null">quantity,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="createMan != null">create_man,</if>
|
|
<if test="warehouseId != null">warehouse_id,</if>
|
|
<if test="warehouseName != null">warehouse_name,</if>
|
|
<if test="address != null">address,</if>
|
|
<if test="cDesc != null">c_desc,</if>
|
|
<if test="warehouseKind != null">warehouse_kind,</if>
|
|
<if test="warehouseType != null">warehouse_type,</if>
|
|
<if test="isCurrent != null">is_current,</if>
|
|
<if test="productName != null">product_name,</if>
|
|
<if test="spec != null">spec,</if>
|
|
<if test="unit != null">unit,</if>
|
|
<if test="price != null">price,</if>
|
|
<if test="remark != null">remark,</if>
|
|
<if test="spare1 != null">spare1,</if>
|
|
<if test="spare2 != null">spare2,</if>
|
|
<if test="spare5 != null">spare5,</if>
|
|
<if test="spare6 != null">spare6,</if>
|
|
<if test="spare7 != null">spare7,</if>
|
|
<if test="spare8 != null">spare8,</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">#{id},</if>
|
|
<if test="inOrOut != null">#{inOrOut},</if>
|
|
<if test="inOrOutSotckId != null">#{inOrOutSotckId},</if>
|
|
<if test="inOrOutSotckDetailId != null">#{inOrOutSotckDetailId},</if>
|
|
<if test="productGuid != null">#{productGuid},</if>
|
|
<if test="productId != null">#{productId},</if>
|
|
<if test="quantity != null">#{quantity},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="createMan != null">#{createMan},</if>
|
|
<if test="warehouseId != null">#{warehouseId},</if>
|
|
<if test="warehouseName != null">#{warehouseName},</if>
|
|
<if test="address != null">#{address},</if>
|
|
<if test="cDesc != null">#{cDesc},</if>
|
|
<if test="warehouseKind != null">#{warehouseKind},</if>
|
|
<if test="warehouseType != null">#{warehouseType},</if>
|
|
<if test="isCurrent != null">#{isCurrent},</if>
|
|
<if test="productName != null">#{productName},</if>
|
|
<if test="spec != null">#{spec},</if>
|
|
<if test="unit != null">#{unit},</if>
|
|
<if test="price != null">#{price},</if>
|
|
<if test="remark != null">#{remark},</if>
|
|
<if test="spare1 != null">#{spare1},</if>
|
|
<if test="spare2 != null">#{spare2},</if>
|
|
<if test="spare5 != null">#{spare5},</if>
|
|
<if test="spare6 != null">#{spare6},</if>
|
|
<if test="spare7 != null">#{spare7},</if>
|
|
<if test="spare8 != null">#{spare8},</if>
|
|
</trim>
|
|
</insert>
|
|
|
|
<update id="updateViewFlatWarehouseInFlow" parameterType="ViewFlatWarehouseInFlow">
|
|
update view_flat_warehouse_in_flow
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="inOrOut != null">in_or_out = #{inOrOut},</if>
|
|
<if test="inOrOutSotckId != null">in_or_out_sotck_id = #{inOrOutSotckId},</if>
|
|
<if test="inOrOutSotckDetailId != null">in_or_out_sotck_detail_id = #{inOrOutSotckDetailId},</if>
|
|
<if test="productGuid != null">product_guid = #{productGuid},</if>
|
|
<if test="productId != null">product_id = #{productId},</if>
|
|
<if test="quantity != null">quantity = #{quantity},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="createMan != null">create_man = #{createMan},</if>
|
|
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
|
<if test="warehouseName != null">warehouse_name = #{warehouseName},</if>
|
|
<if test="address != null">address = #{address},</if>
|
|
<if test="cDesc != null">c_desc = #{cDesc},</if>
|
|
<if test="warehouseKind != null">warehouse_kind = #{warehouseKind},</if>
|
|
<if test="warehouseType != null">warehouse_type = #{warehouseType},</if>
|
|
<if test="isCurrent != null">is_current = #{isCurrent},</if>
|
|
<if test="productName != null">product_name = #{productName},</if>
|
|
<if test="spec != null">spec = #{spec},</if>
|
|
<if test="unit != null">unit = #{unit},</if>
|
|
<if test="price != null">price = #{price},</if>
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
<if test="spare1 != null">spare1 = #{spare1},</if>
|
|
<if test="spare2 != null">spare2 = #{spare2},</if>
|
|
<if test="spare5 != null">spare5 = #{spare5},</if>
|
|
<if test="spare6 != null">spare6 = #{spare6},</if>
|
|
<if test="spare7 != null">spare7 = #{spare7},</if>
|
|
<if test="spare8 != null">spare8 = #{spare8},</if>
|
|
</trim>
|
|
where id = #{id}
|
|
</update>
|
|
|
|
<delete id="deleteViewFlatWarehouseInFlowById" parameterType="Long">
|
|
delete from view_flat_warehouse_in_flow where id = #{id}
|
|
</delete>
|
|
|
|
<delete id="deleteViewFlatWarehouseInFlowByIds" parameterType="String">
|
|
delete from view_flat_warehouse_in_flow where id in
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
#{id}
|
|
</foreach>
|
|
</delete>
|
|
</mapper> |