|
@@ -13,19 +13,20 @@
|
|
|
id, task_sopt_id, `status`, reason, create_by, create_time
|
|
id, task_sopt_id, `status`, reason, create_by, create_time
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
- select
|
|
|
|
|
|
|
+ select
|
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
|
from task_sopt_log
|
|
from task_sopt_log
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</select>
|
|
</select>
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
|
delete from task_sopt_log
|
|
delete from task_sopt_log
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</delete>
|
|
</delete>
|
|
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TaskSoptLog" useGeneratedKeys="true">
|
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TaskSoptLog" useGeneratedKeys="true">
|
|
|
- insert into task_sopt_log (task_sopt_id, `status`, reason,
|
|
|
|
|
|
|
+ insert into task_sopt_log (task_sopt_id, `status`, reason,
|
|
|
create_by, create_time)
|
|
create_by, create_time)
|
|
|
- values (#{taskSoptId,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{reason,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ values (#{taskSoptId,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{reason,jdbcType=VARCHAR},
|
|
|
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP})
|
|
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TaskSoptLog" useGeneratedKeys="true">
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TaskSoptLog" useGeneratedKeys="true">
|
|
@@ -95,4 +96,11 @@
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
</update>
|
|
|
-</mapper>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <select id="selectListBySoptId" resultType="com.goafanti.order.bo.TaskSoptLogBo">
|
|
|
|
|
+ select a.id ,a.task_sopt_id taskSoptId,a.status ,a.reason ,a.create_by createBy ,a.create_time createTime,
|
|
|
|
|
+ b.name createName,DATE_FORMAT(a.create_time,'%Y-%m-%d %H:%i:%S') createTimes
|
|
|
|
|
+ from task_sopt_log a left join admin b on a.create_by =b.id
|
|
|
|
|
+ where a.task_sopt_id = #{taskSoptId}
|
|
|
|
|
+ </select>
|
|
|
|
|
+</mapper>
|