|
|
@@ -5,28 +5,28 @@
|
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
|
<result column="prid" jdbcType="INTEGER" property="prid" />
|
|
|
<result column="aid" jdbcType="VARCHAR" property="aid" />
|
|
|
- <result column="aname" jdbcType="VARCHAR" property="aname" />
|
|
|
<result column="status" jdbcType="INTEGER" property="status" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, prid, aid, aname, `status`, create_time
|
|
|
+ id, prid, aid, `status`, create_time
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
- select
|
|
|
+ select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from public_examine
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
+
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
delete from public_examine
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.PublicExamine" useGeneratedKeys="true">
|
|
|
- insert into public_examine (prid, aid, aname,
|
|
|
- `status`, create_time)
|
|
|
- values (#{prid,jdbcType=INTEGER}, #{aid,jdbcType=VARCHAR}, #{aname,jdbcType=VARCHAR},
|
|
|
- #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP})
|
|
|
+ insert into public_examine (prid, aid, `status`,
|
|
|
+ create_time)
|
|
|
+ values (#{prid,jdbcType=INTEGER}, #{aid,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
|
|
|
+ #{createTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.PublicExamine" useGeneratedKeys="true">
|
|
|
insert into public_examine
|
|
|
@@ -37,9 +37,6 @@
|
|
|
<if test="aid != null">
|
|
|
aid,
|
|
|
</if>
|
|
|
- <if test="aname != null">
|
|
|
- aname,
|
|
|
- </if>
|
|
|
<if test="status != null">
|
|
|
`status`,
|
|
|
</if>
|
|
|
@@ -54,9 +51,6 @@
|
|
|
<if test="aid != null">
|
|
|
#{aid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="aname != null">
|
|
|
- #{aname,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="status != null">
|
|
|
#{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -74,9 +68,6 @@
|
|
|
<if test="aid != null">
|
|
|
aid = #{aid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="aname != null">
|
|
|
- aname = #{aname,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="status != null">
|
|
|
`status` = #{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -90,9 +81,16 @@
|
|
|
update public_examine
|
|
|
set prid = #{prid,jdbcType=INTEGER},
|
|
|
aid = #{aid,jdbcType=VARCHAR},
|
|
|
- aname = #{aname,jdbcType=VARCHAR},
|
|
|
`status` = #{status,jdbcType=INTEGER},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
-</mapper>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="selectByPrid" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from public_examine
|
|
|
+ where prid = #{id,jdbcType=INTEGER}
|
|
|
+ </select>
|
|
|
+</mapper>
|