149 lines
8.5 KiB
XML
149 lines
8.5 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.in.ErpInStockin.mapper.ErpInStockinMapper">
|
|
|
|
<resultMap type="ErpInStockin" id="ErpInStockinResult">
|
|
<result property="title" column="title" />
|
|
<result property="kuin" column="kuin" />
|
|
<result property="complete1" column="complete1" />
|
|
<result property="cateid" column="cateid" />
|
|
<result property="date3" column="date3" />
|
|
<result property="date5" column="date5" />
|
|
<result property="catein" column="catein" />
|
|
<result property="intro2" column="intro2" />
|
|
<result property="intro" column="intro" />
|
|
<result property="caigou" column="caigou" />
|
|
<result property="date7" column="date7" />
|
|
<result property="kg" column="kg" />
|
|
<result property="sort1" column="sort1" />
|
|
<result property="rkbh" column="rkbh" />
|
|
<result property="status" column="status" />
|
|
<result property="kuinList" column="kuinList" />
|
|
<result property="sysIcusIInheritIdIidI413" column="sysIcusIInheritIdIidI413" />
|
|
<result property="sysIcusIInheritIdIidI414" column="sysIcusIInheritIdIidI414" />
|
|
<result property="sysIcusIInheritIdIidI415" column="sysIcusIInheritIdIidI415" />
|
|
<result property="stockinGuid" column="stockin_guid" />
|
|
</resultMap>
|
|
|
|
<sql id="selectErpInStockinVo">
|
|
select title, kuin, complete1, cateid, date3, date5, catein, intro2, intro, caigou, date7, kg, sort1, rkbh, status, kuinList, sysIcusIInheritIdIidI413, sysIcusIInheritIdIidI414, sysIcusIInheritIdIidI415, stockin_guid from erp_in_stockin
|
|
</sql>
|
|
|
|
<select id="selectErpInStockinList" parameterType="ErpInStockin" resultMap="ErpInStockinResult">
|
|
<include refid="selectErpInStockinVo"/>
|
|
<where>
|
|
<if test="title != null and title != ''"> and title = #{title}</if>
|
|
<if test="kuin != null and kuin != ''"> and kuin = #{kuin}</if>
|
|
<if test="complete1 != null and complete1 != ''"> and complete1 = #{complete1}</if>
|
|
<if test="cateid != null and cateid != ''"> and cateid = #{cateid}</if>
|
|
<if test="date3 != null and date3 != ''"> and date3 = #{date3}</if>
|
|
<if test="date5 != null and date5 != ''"> and date5 = #{date5}</if>
|
|
<if test="catein != null and catein != ''"> and catein = #{catein}</if>
|
|
<if test="intro2 != null and intro2 != ''"> and intro2 = #{intro2}</if>
|
|
<if test="intro != null and intro != ''"> and intro = #{intro}</if>
|
|
<if test="caigou != null and caigou != ''"> and caigou = #{caigou}</if>
|
|
<if test="date7 != null and date7 != ''"> and date7 = #{date7}</if>
|
|
<if test="kg != null and kg != ''"> and kg = #{kg}</if>
|
|
<if test="sort1 != null and sort1 != ''"> and sort1 = #{sort1}</if>
|
|
<if test="rkbh != null and rkbh != ''"> and rkbh = #{rkbh}</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="kuinList != null and kuinList != ''"> and kuinList = #{kuinList}</if>
|
|
<if test="sysIcusIInheritIdIidI413 != null and sysIcusIInheritIdIidI413 != ''"> and sysIcusIInheritIdIidI413 = #{sysIcusIInheritIdIidI413}</if>
|
|
<if test="sysIcusIInheritIdIidI414 != null and sysIcusIInheritIdIidI414 != ''"> and sysIcusIInheritIdIidI414 = #{sysIcusIInheritIdIidI414}</if>
|
|
<if test="sysIcusIInheritIdIidI415 != null and sysIcusIInheritIdIidI415 != ''"> and sysIcusIInheritIdIidI415 = #{sysIcusIInheritIdIidI415}</if>
|
|
<if test="stockinGuid != null and stockinGuid != ''"> and stockin_guid = #{stockinGuid}</if>
|
|
</where>
|
|
</select>
|
|
|
|
<select id="selectErpInStockinByTitle" parameterType="String" resultMap="ErpInStockinResult">
|
|
<include refid="selectErpInStockinVo"/>
|
|
where title = #{title}
|
|
</select>
|
|
|
|
<insert id="insertErpInStockin" parameterType="ErpInStockin">
|
|
insert into erp_in_stockin
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="title != null">title,</if>
|
|
<if test="kuin != null">kuin,</if>
|
|
<if test="complete1 != null">complete1,</if>
|
|
<if test="cateid != null">cateid,</if>
|
|
<if test="date3 != null">date3,</if>
|
|
<if test="date5 != null">date5,</if>
|
|
<if test="catein != null">catein,</if>
|
|
<if test="intro2 != null">intro2,</if>
|
|
<if test="intro != null">intro,</if>
|
|
<if test="caigou != null">caigou,</if>
|
|
<if test="date7 != null">date7,</if>
|
|
<if test="kg != null">kg,</if>
|
|
<if test="sort1 != null">sort1,</if>
|
|
<if test="rkbh != null and rkbh != ''">rkbh,</if>
|
|
<if test="status != null">status,</if>
|
|
<if test="kuinList != null">kuinList,</if>
|
|
<if test="sysIcusIInheritIdIidI413 != null">sysIcusIInheritIdIidI413,</if>
|
|
<if test="sysIcusIInheritIdIidI414 != null">sysIcusIInheritIdIidI414,</if>
|
|
<if test="sysIcusIInheritIdIidI415 != null">sysIcusIInheritIdIidI415,</if>
|
|
<if test="stockinGuid != null">stockin_guid,</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="title != null">#{title},</if>
|
|
<if test="kuin != null">#{kuin},</if>
|
|
<if test="complete1 != null">#{complete1},</if>
|
|
<if test="cateid != null">#{cateid},</if>
|
|
<if test="date3 != null">#{date3},</if>
|
|
<if test="date5 != null">#{date5},</if>
|
|
<if test="catein != null">#{catein},</if>
|
|
<if test="intro2 != null">#{intro2},</if>
|
|
<if test="intro != null">#{intro},</if>
|
|
<if test="caigou != null">#{caigou},</if>
|
|
<if test="date7 != null">#{date7},</if>
|
|
<if test="kg != null">#{kg},</if>
|
|
<if test="sort1 != null">#{sort1},</if>
|
|
<if test="rkbh != null and rkbh != ''">#{rkbh},</if>
|
|
<if test="status != null">#{status},</if>
|
|
<if test="kuinList != null">#{kuinList},</if>
|
|
<if test="sysIcusIInheritIdIidI413 != null">#{sysIcusIInheritIdIidI413},</if>
|
|
<if test="sysIcusIInheritIdIidI414 != null">#{sysIcusIInheritIdIidI414},</if>
|
|
<if test="sysIcusIInheritIdIidI415 != null">#{sysIcusIInheritIdIidI415},</if>
|
|
<if test="stockinGuid != null">#{stockinGuid},</if>
|
|
</trim>
|
|
</insert>
|
|
|
|
<update id="updateErpInStockin" parameterType="ErpInStockin">
|
|
update erp_in_stockin
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="kuin != null">kuin = #{kuin},</if>
|
|
<if test="complete1 != null">complete1 = #{complete1},</if>
|
|
<if test="cateid != null">cateid = #{cateid},</if>
|
|
<if test="date3 != null">date3 = #{date3},</if>
|
|
<if test="date5 != null">date5 = #{date5},</if>
|
|
<if test="catein != null">catein = #{catein},</if>
|
|
<if test="intro2 != null">intro2 = #{intro2},</if>
|
|
<if test="intro != null">intro = #{intro},</if>
|
|
<if test="caigou != null">caigou = #{caigou},</if>
|
|
<if test="date7 != null">date7 = #{date7},</if>
|
|
<if test="kg != null">kg = #{kg},</if>
|
|
<if test="sort1 != null">sort1 = #{sort1},</if>
|
|
<if test="rkbh != null and rkbh != ''">rkbh = #{rkbh},</if>
|
|
<if test="status != null">status = #{status},</if>
|
|
<if test="kuinList != null">kuinList = #{kuinList},</if>
|
|
<if test="sysIcusIInheritIdIidI413 != null">sysIcusIInheritIdIidI413 = #{sysIcusIInheritIdIidI413},</if>
|
|
<if test="sysIcusIInheritIdIidI414 != null">sysIcusIInheritIdIidI414 = #{sysIcusIInheritIdIidI414},</if>
|
|
<if test="sysIcusIInheritIdIidI415 != null">sysIcusIInheritIdIidI415 = #{sysIcusIInheritIdIidI415},</if>
|
|
<if test="stockinGuid != null">stockin_guid = #{stockinGuid},</if>
|
|
</trim>
|
|
where title = #{title}
|
|
</update>
|
|
|
|
<delete id="deleteErpInStockinByTitle" parameterType="String">
|
|
delete from erp_in_stockin where title = #{title}
|
|
</delete>
|
|
|
|
<delete id="deleteErpInStockinByTitles" parameterType="String">
|
|
delete from erp_in_stockin where title in
|
|
<foreach item="title" collection="array" open="(" separator="," close=")">
|
|
#{title}
|
|
</foreach>
|
|
</delete>
|
|
</mapper> |