md
This commit is contained in:
parent
5c04ff9100
commit
375d95283e
@ -7,7 +7,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<resultMap type="EmisSpecialCalcWeight" id="EmisSpecialCalcWeightResult" extends="com.xdadan.erp.emis.mapper.EmisBaseMapper.EmisBaseResult">
|
<resultMap type="EmisSpecialCalcWeight" id="EmisSpecialCalcWeightResult" extends="com.xdadan.erp.emis.mapper.EmisBaseMapper.EmisBaseResult">
|
||||||
<result property="id" column="id" />
|
<result property="id" column="id" />
|
||||||
<result property="prodCode" column="prod_code" />
|
<result property="prodCode" column="prod_code" />
|
||||||
|
|
||||||
<result property="status" column="status" />
|
<result property="status" column="status" />
|
||||||
<result property="carryType" column="carry_type" />
|
<result property="carryType" column="carry_type" />
|
||||||
<result property="beginWeight" column="begin_weight" />
|
<result property="beginWeight" column="begin_weight" />
|
||||||
@ -25,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
|
|
||||||
<sql id="selectEmisSpecialCalcWeightVo">
|
<sql id="selectEmisSpecialCalcWeightVo">
|
||||||
select id, prod_code, prod_name, status, carry_type, begin_weight, end_weight, begin_date, end_date, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_special_calc_weight
|
select id, prod_code, prod_name, status, carry_type, begin_weight, end_weight, begin_date, end_date, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_special_calc_weight
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectEmisSpecialCalcWeightList" parameterType="EmisSpecialCalcWeight" resultMap="EmisSpecialCalcWeightResult">
|
<select id="selectEmisSpecialCalcWeightList" parameterType="EmisSpecialCalcWeight" resultMap="EmisSpecialCalcWeightResult">
|
||||||
@ -52,12 +51,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectEmisSpecialCalcWeightById" parameterType="Long" resultMap="EmisSpecialCalcWeightResult">
|
<select id="selectEmisSpecialCalcWeightById" parameterType="Long" resultMap="EmisSpecialCalcWeightResult">
|
||||||
select id, prod_code, prod_name, status, carry_type, begin_weight, end_weight, begin_date, end_date, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time
|
select id, prod_code, prod_name, status, carry_type, begin_weight, end_weight, begin_date, end_date, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||||
from emis_special_calc_weight a
|
from emis_special_calc_weight a
|
||||||
where a.id = #{id}
|
where a.id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertEmisSpecialCalcWeight" parameterType="EmisSpecialCalcWeight">
|
<insert id="insertEmisSpecialCalcWeight" parameterType="EmisSpecialCalcWeight" useGeneratedKeys="true" keyProperty="id">
|
||||||
insert into emis_special_calc_weight
|
insert into emis_special_calc_weight
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">id,</if>
|
<if test="id != null">id,</if>
|
||||||
@ -76,7 +75,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="createTime != null">create_time,</if>
|
<if test="createTime != null">create_time,</if>
|
||||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||||
<if test="updateTime != null">update_time,</if>
|
<if test="updateTime != null">update_time,</if>
|
||||||
</trim>
|
<if test="createSite != null and createSite != ''">create_site,</if>
|
||||||
|
<if test="updateSite != null and updateSite != ''">update_site,</if>
|
||||||
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">#{id},</if>
|
<if test="id != null">#{id},</if>
|
||||||
<if test="prodCode != null and prodCode != ''">#{prodCode},</if>
|
<if test="prodCode != null and prodCode != ''">#{prodCode},</if>
|
||||||
@ -94,7 +95,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="createTime != null">#{createTime},</if>
|
<if test="createTime != null">#{createTime},</if>
|
||||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||||
<if test="updateTime != null">#{updateTime},</if>
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
</trim>
|
<if test="createSite != null and createSite != ''">#{createSite},</if>
|
||||||
|
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
|
||||||
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateEmisSpecialCalcWeight" parameterType="EmisSpecialCalcWeight">
|
<update id="updateEmisSpecialCalcWeight" parameterType="EmisSpecialCalcWeight">
|
||||||
@ -115,10 +118,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="createTime != null">create_time = #{createTime},</if>
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
|
||||||
|
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
|
||||||
</trim>
|
</trim>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
|
||||||
<delete id="deleteEmisSpecialCalcWeightById" parameterType="Long">
|
<delete id="deleteEmisSpecialCalcWeightById" parameterType="Long">
|
||||||
delete from emis_special_calc_weight where id = #{id}
|
delete from emis_special_calc_weight where id = #{id}
|
||||||
</delete>
|
</delete>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user