|
|
@@ -344,9 +344,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
AND (a.dept_id = #{companyId} OR a.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{companyId}, ancestors) ))
|
|
|
</if>
|
|
|
</select>
|
|
|
+ <select id="selectParticipateProjectSum" parameterType="java.lang.Long" resultType="java.lang.Integer">
|
|
|
+ select count(*)
|
|
|
+ from sys_user a left join project_task b on a.user_id =b.aid
|
|
|
+ left join project_staff c on a.user_id =c.aid
|
|
|
+ where a.user_id = #{userId}
|
|
|
+ </select>
|
|
|
|
|
|
|
|
|
- <update id="userAddDuration">
|
|
|
+ <update id="userAddDuration">
|
|
|
update sys_user set duration = format(duration+#{duration},2)
|
|
|
where user_id = #{userId}
|
|
|
</update>
|