|
|
@@ -39,6 +39,7 @@
|
|
|
delete from user_record
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</delete>
|
|
|
+
|
|
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.ruoyi.system.domain.UserRecord" useGeneratedKeys="true">
|
|
|
insert into user_record
|
|
|
( id,dd_user_id,psr_id
|
|
|
@@ -209,4 +210,13 @@
|
|
|
and status = 0
|
|
|
</if>
|
|
|
</update>
|
|
|
+ <update id="userRecordMerge">
|
|
|
+ update user_record a left join project_staff_record b on a.psr_id =b.id
|
|
|
+ set b.check_duration =a.check_duration
|
|
|
+ where a.create_id = #{userId}
|
|
|
+ </update>
|
|
|
+ <delete id="deleteByUserId">
|
|
|
+ delete from user_record
|
|
|
+ where create_id = #{userId}
|
|
|
+ </delete>
|
|
|
</mapper>
|