| | |
| | | name |
| | | FROM auxiliary_output_working_hours aowh |
| | | left join user on user.id=aowh.`check` |
| | | WHERE `check` in(#{ids}) |
| | | <!--<if test="ids !=null and ids != ''"> |
| | | WHERE `check` in |
| | | WHERE 1=1 |
| | | <if test="ids !=null and ids != ''"> |
| | | and `check` in |
| | | <foreach collection="ids" index="index" open="(" separator="," close=")" item="val"> |
| | | #{val} |
| | | </foreach> |
| | | </if>--> |
| | | </if> |
| | | ) A |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | |
| | | select aowh.*,name |
| | | FROM auxiliary_output_working_hours aowh |
| | | left join user on user.id=aowh.`check` |
| | | WHERE `check` in(#{ids}) |
| | | <!-- <if test="ids !=null and ids != ''"> |
| | | WHERE `check` in |
| | | WHERE 1=1 |
| | | <if test="ids !=null and ids != ''"> |
| | | and `check` in |
| | | <foreach collection="ids" index="index" open="(" separator="," close=")" item="val"> |
| | | #{val} |
| | | </foreach> |
| | | </if>--> |
| | | </if> |
| | | </select> |
| | | <select id="totalHours" resultType="java.util.Map"> |
| | | select A.name, |
| | |
| | | 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) |
| | | <!--and `check` in (#{ids})--> |
| | | <if test="ids !=null and ids != ''"> |
| | | and `check` in |
| | | <foreach collection="ids" open="(" separator="," close=")" item="val"> |
| | | #{val} |
| | | </foreach> |
| | | </if>--> |
| | | </if> |
| | | group by user.name,date_time |
| | | order by user.name,date_time |
| | | )A |
| | |
| | | <select id="selectListByIds" resultType="com.yuanchu.mom.pojo.AuxiliaryOutputWorkingHours"> |
| | | select * from auxiliary_output_working_hours |
| | | where 1=1 |
| | | 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> |
| | | </select> |
| | | </mapper> |