| | |
| | | <if test="text != null">text = #{text},</if> |
| | | <if test="voice != null">voice = #{voice},</if> |
| | | <if test="viewTime != null">view_time = #{viewTime},</if> |
| | | <if test="viewFlag != null">view_flag = #{viewFlag},</if> |
| | | <if test="viewPosition != null">view_position = #{viewPosition},</if> |
| | | <if test="clockInTime != null">clock_in_time = #{clockInTime},</if> |
| | | <if test="taskId != null">task_id = #{taskId},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | <update id="updateArdAppTaskDetailByTaskId" parameterType="ArdAppTaskDetail"> |
| | | update ard_app_task_detail |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="viewFlag != null">view_flag = #{viewFlag},</if> |
| | | </trim> |
| | | where task_id = #{taskId} |
| | | </update> |
| | | <update id="updateArdAppTaskDetailView" parameterType="ArdAppTaskDetail"> |
| | | update ard_app_task_detail |
| | |
| | | where c.user_id = #{userId} AND c.view_flag is null |
| | | order by create_time desc limit 1 |
| | | </select> |
| | | <select id="selectUnreadArdAppTaskCount" resultType="Integer"> |
| | | SELECT COUNT( A.ID ) |
| | | FROM ard_app_task |
| | | A LEFT JOIN ard_app_task_detail C ON C.task_id = A.ID |
| | | WHERE |
| | | C.view_time IS NULL |
| | | AND C.view_flag = '1' |
| | | AND C.user_id = #{userId} |
| | | </select> |
| | | </mapper> |