| | |
| | | </select> |
| | | <select id="selectListByIds" resultType="com.yuanchu.mom.pojo.AuxiliaryWorkingHoursDay"> |
| | | select * from auxiliary_working_hours_day |
| | | where 1=1 |
| | | |
| | | where state='已审核' |
| | | <if test="ids !=null and ids != ''"> |
| | | and name_user in |
| | | <foreach collection="ids" index="index" open="(" separator="," close=")" item="val"> |
| | |
| | | <select id="totalHours" resultType="java.util.Map"> |
| | | select A.name, |
| | | A.month, |
| | | FORMAT(SUM(manHour), 2)as manHours |
| | | FORMAT(SUM(manHour), 4)as manHours |
| | | from( |
| | | select user.name, |
| | | case when reviewer_nonproductive_time is null then nonproductive_time |
| | |
| | | group by A.name,A.month |
| | | order by A.name,A.month |
| | | </select> |
| | | |
| | | <select id="selectLists" resultMap="BaseResultMap"> |
| | | select * from(select * from auxiliary_working_hours_day |
| | | WHERE 1=1 |
| | | <if test="ids !=null and ids != ''"> |
| | | and name_user in |
| | | <foreach collection="ids" index="index" open="(" separator="," close=")" item="val"> |
| | | #{val} |
| | | </foreach> |
| | | </if> |
| | | ) A |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | </mapper> |