|
|
@@ -24,17 +24,13 @@
|
|
|
from public_release_date_clock
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
- <select id="selectByPrid" resultMap="BaseResultMap">
|
|
|
- select
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- from public_release_date_clock
|
|
|
- where prid = #{id,jdbcType=INTEGER}
|
|
|
- </select>
|
|
|
+
|
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
|
delete from public_release_date_clock
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
+
|
|
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.PublicReleaseDateClock" useGeneratedKeys="true">
|
|
|
insert into public_release_date_clock
|
|
|
( id,prid,prdid
|
|
|
@@ -63,14 +59,7 @@
|
|
|
<if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
- <insert id="insertBatch">
|
|
|
- insert into public_release_date_clock
|
|
|
- (prid,prdid,status,clock_in_time)
|
|
|
- values
|
|
|
- <foreach collection="list" item="item" index="index" separator=",">
|
|
|
- (#{item.prid,jdbcType=INTEGER},#{item.prdid,jdbcType=INTEGER},#{item.status,jdbcType=INTEGER},#{item.clockInTime,jdbcType=TIMESTAMP})
|
|
|
- </foreach>
|
|
|
- </insert>
|
|
|
+
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.PublicReleaseDateClock">
|
|
|
update public_release_date_clock
|
|
|
<set>
|
|
|
@@ -102,4 +91,25 @@
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
+
|
|
|
+ <delete id="deleteByPrid">
|
|
|
+ delete from public_release_date_clock
|
|
|
+ where prid = #{id,jdbcType=INTEGER}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <insert id="insertBatch">
|
|
|
+ insert into public_release_date_clock
|
|
|
+ (prid,prdid,status,clock_in_time)
|
|
|
+ values
|
|
|
+ <foreach collection="list" item="item" index="index" separator=",">
|
|
|
+ (#{item.prid,jdbcType=INTEGER},#{item.prdid,jdbcType=INTEGER},#{item.status,jdbcType=INTEGER},#{item.clockInTime,jdbcType=TIMESTAMP})
|
|
|
+ </foreach>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <select id="selectByPrid" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from public_release_date_clock
|
|
|
+ where prid = #{id,jdbcType=INTEGER}
|
|
|
+ </select>
|
|
|
</mapper>
|