|
@@ -409,4 +409,30 @@
|
|
|
geo = #{geo,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
+
|
|
|
+ <select id="selectAppTodo" resultMap="BaseResultMap">
|
|
|
+ select id,task_no,send_time,address,order_type_id
|
|
|
+ from sc_work_order_manage
|
|
|
+ where find_in_set(#{userId},current_users) and tenant_id = #{tenantId}
|
|
|
+ union
|
|
|
+ select id,plan_id,plan_start_date,task_area_name,task_type
|
|
|
+ from sc_plan_manage
|
|
|
+ where find_in_set(#{userId},current_users) and tenant_id = #{tenantId}
|
|
|
+ order by send_time
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectAppAll" resultMap="BaseResultMap">
|
|
|
+ select id,task_no,send_time,address,order_type_id,current_task_name
|
|
|
+ from sc_work_order_manage
|
|
|
+ where (find_in_set(#{userId},current_users)
|
|
|
+ or id in(select flow_id from sc_work_flow_log where flow_type=2 and find_in_set(#{userId},handle_user_id)))
|
|
|
+ and tenant_id = #{tenantId}
|
|
|
+ union
|
|
|
+ select id,plan_id,plan_start_date,task_area_name,task_type,current_task_name
|
|
|
+ from sc_plan_manage
|
|
|
+ where (find_in_set(#{userId},current_users)
|
|
|
+ or id in(select flow_id from sc_work_flow_log where flow_type=1 and find_in_set(#{userId},handle_user_id)))
|
|
|
+ and tenant_id = #{tenantId}
|
|
|
+ order by send_time
|
|
|
+ </select>
|
|
|
</mapper>
|