|
@@ -91,8 +91,7 @@ order by a.shift_date desc
|
|
|
and d.id= #{dept}
|
|
|
</if>
|
|
|
<if test="date!=null and ''!=date">
|
|
|
- and ((b.employment_status='30' and date_format(b.term_Date,'%Y-%m')>=date_format(#{date},'%Y-%m')) or (date_format(#{date},'%Y-%m')>=date_format(b.entry_Date,'%Y-%m') and b.employment_status='10'))
|
|
|
-
|
|
|
+ and ((b.employment_status='30' and date_format(b.term_Date,'%Y-%m')>=date_format(#{date},'%Y-%m') and date_format(#{date},'%Y-%m')>=date_format(b.entry_Date,'%Y-%m')) or (date_format(#{date},'%Y-%m')>=date_format(b.entry_Date,'%Y-%m') and b.employment_status='10'))
|
|
|
</if>
|
|
|
) a
|
|
|
</select>
|
|
@@ -195,6 +194,9 @@ order by a.shift_date desc
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+ <if test="date!=null and ''!=date">
|
|
|
+ and ((employment_status='30' and date_format(term_Date,'%Y-%m')>=date_format(#{date},'%Y-%m') and date_format(#{date},'%Y-%m')>=date_format(entry_Date,'%Y-%m')) or (date_format(#{date},'%Y-%m')>=date_format(entry_Date,'%Y-%m') and employment_status='10'))
|
|
|
+ </if>
|
|
|
</select>
|
|
|
<select id="listByShiftId" resultType="org.jeecg.modules.geke.userShift.entity.UserShift">
|
|
|
select a.*from geke_user_shift a
|