| | |
| | | left join department_lims dl on depart_lims_id = dl.id |
| | | where date_time LIKE CONCAT('%', #{month}, '%') |
| | | and awhd.state='已批准' |
| | | and name_user in(#{ids}) |
| | | <!-- <if test="ids !=null and ids != ''"> |
| | | <!--and name_user in(#{ids})--> |
| | | <if test="ids !=null and ids != ''"> |
| | | and name_user in |
| | | <foreach collection="ids" index="index" open="(" separator="," close=")" item="val"> |
| | | #{val} |
| | | </foreach> |
| | | </if>--> |
| | | </if> |
| | | order by month |
| | | ) A |
| | | group by A.name, A.month) C |
| | |
| | | left join user on user.id = aowh.`check` |
| | | left join department_lims dl on depart_lims_id = dl.id |
| | | where date_time LIKE CONCAT('%', #{month}, '%') |
| | | and `check` in(#{ids}) |
| | | <!--<if test="ids !=null and ids != ''"> |
| | | <!--and `check` in(#{ids})--> |
| | | <if test="ids !=null and ids != ''"> |
| | | and `check` in |
| | | <foreach collection="ids" index="index" open="(" separator="," close=")" item="val"> |
| | | #{val} |
| | | </foreach> |
| | | </if>--> |
| | | </if> |
| | | group by user.name, month |
| | | order by user.name, month |
| | | ) B |