|
|
@@ -21,7 +21,13 @@
|
|
|
storeId,t.scs_id,t.scs_id scsId,t.schedule_id,t.schedule_id scheduleId,t.staff_id,t.staff_id staffId,
|
|
|
t.create_time createTime
|
|
|
from schedule_classes_staff t
|
|
|
+ <if test="orgId !=null and orgId != ''">
|
|
|
+ left join u_org_staff_rel osr on t.staff_id = osr.staff_id and osr.status_cd = '0'
|
|
|
+ </if>
|
|
|
where 1 =1
|
|
|
+ <if test="orgId !=null and orgId != ''">
|
|
|
+ and osr.org_id = #{orgId}
|
|
|
+ </if>
|
|
|
<if test="staffName !=null and staffName != ''">
|
|
|
and t.staff_name= #{staffName}
|
|
|
</if>
|
|
|
@@ -80,7 +86,13 @@
|
|
|
<select id="queryScheduleClassesStaffsCount" parameterType="Map" resultType="Map">
|
|
|
select count(1) count
|
|
|
from schedule_classes_staff t
|
|
|
+ <if test="orgId !=null and orgId != ''">
|
|
|
+ left join u_org_staff_rel osr on t.staff_id = osr.staff_id and osr.status_cd = '0'
|
|
|
+ </if>
|
|
|
where 1 =1
|
|
|
+ <if test="orgId !=null and orgId != ''">
|
|
|
+ and osr.org_id = #{orgId}
|
|
|
+ </if>
|
|
|
<if test="staffName !=null and staffName != ''">
|
|
|
and t.staff_name= #{staffName}
|
|
|
</if>
|