|
@@ -1,7 +1,7 @@
|
|
|
<?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.iamberry.rst.service.cm.mapper.ClosedFittingMapper" >
|
|
|
- <resultMap id="BaseResultMap" type="com.iamberry.rst.core.cm.ClosedFitting" >
|
|
|
+ <resultMap id="BaseResultMap" type="ClosedFitting" >
|
|
|
<id column="closed_fitting_id" property="closedFittingId" jdbcType="INTEGER" />
|
|
|
<result column="relation_id" property="relationId" jdbcType="INTEGER" />
|
|
|
<result column="product_id" property="productId" jdbcType="INTEGER" />
|
|
@@ -21,13 +21,13 @@
|
|
|
delete from tb_rst_closed_fitting
|
|
|
where closed_fitting_id = #{closedFittingId,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
- <insert id="insert" parameterType="rml.model.ClosedFitting" >
|
|
|
+ <insert id="insert" parameterType="ClosedFitting" >
|
|
|
insert into tb_rst_closed_fitting (closed_fitting_id, relation_id, product_id,
|
|
|
fittings_id, closed_fitting_number)
|
|
|
values (#{closedFittingId,jdbcType=INTEGER}, #{relationId,jdbcType=INTEGER}, #{productId,jdbcType=INTEGER},
|
|
|
#{fittingsId,jdbcType=INTEGER}, #{closedFittingNumber,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
- <insert id="insertSelective" parameterType="rml.model.ClosedFitting" >
|
|
|
+ <insert id="insertSelective" parameterType="ClosedFitting" >
|
|
|
insert into tb_rst_closed_fitting
|
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
<if test="closedFittingId != null" >
|
|
@@ -64,7 +64,7 @@
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="rml.model.ClosedFitting" >
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="ClosedFitting" >
|
|
|
update tb_rst_closed_fitting
|
|
|
<set >
|
|
|
<if test="relationId != null" >
|
|
@@ -82,7 +82,7 @@
|
|
|
</set>
|
|
|
where closed_fitting_id = #{closedFittingId,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
- <update id="updateByPrimaryKey" parameterType="rml.model.ClosedFitting" >
|
|
|
+ <update id="updateByPrimaryKey" parameterType="ClosedFitting" >
|
|
|
update tb_rst_closed_fitting
|
|
|
set relation_id = #{relationId,jdbcType=INTEGER},
|
|
|
product_id = #{productId,jdbcType=INTEGER},
|