|
|
@@ -32,6 +32,7 @@
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</select>
|
|
|
|
|
|
+
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
|
delete from user_record
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
@@ -128,4 +129,27 @@
|
|
|
create_id = #{createId,jdbcType=BIGINT}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
+
|
|
|
+ <resultMap id="OutMap" type="com.ruoyi.system.domain.UserRecordOut">
|
|
|
+ <id property="id" column="id" jdbcType="BIGINT"/>
|
|
|
+ <result property="psrId" column="psr_id" jdbcType="BIGINT"/>
|
|
|
+ <result property="name" column="name" jdbcType="VARCHAR"/>
|
|
|
+ <result property="status" column="status" jdbcType="INTEGER"/>
|
|
|
+ <result property="content" column="content" jdbcType="VARCHAR"/>
|
|
|
+ <result property="recordTime" column="record_time" jdbcType="TIMESTAMP"/>
|
|
|
+ <result property="startTime" column="start_time" jdbcType="TIMESTAMP"/>
|
|
|
+ <result property="endTime" column="end_time" jdbcType="TIMESTAMP"/>
|
|
|
+ <result property="sumDuration" column="sum_duration" jdbcType="DOUBLE"/>
|
|
|
+ <result property="checkDuration" column="check_duration" jdbcType="DOUBLE"/>
|
|
|
+ <result property="duration" column="duration" jdbcType="DOUBLE"/>
|
|
|
+ <result property="createId" column="create_id" jdbcType="BIGINT"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <select id="selectUserClock" resultMap="OutMap">
|
|
|
+ select
|
|
|
+ a.id, a.psr_id, a.name, a.status, a.content, a.record_time, a.start_time, a.end_time, a.sum_duration, a.check_duration, a.create_id,
|
|
|
+ b.duration
|
|
|
+ from user_record a left join project_staff_record b on a.psr_id=b.id
|
|
|
+ where a.create_id= #{userId,jdbcType=BIGINT}
|
|
|
+ </select>
|
|
|
</mapper>
|