| | |
| | | </foreach> |
| | | </if> |
| | | <if test=" visitDeptCodes != null and visitDeptCodes.size()>0"> |
| | | and visit_dept_name IN |
| | | and visit_dept_code IN |
| | | <foreach collection="visitDeptCodes" item="visitDeptCode" open="(" separator="," |
| | | close="))"> |
| | | #{visitDeptCode} |
| | |
| | | </foreach> |
| | | </if> |
| | | <if test=" visitDeptCodes != null and visitDeptCodes.size()>0"> |
| | | OR visit_dept_name IN |
| | | OR visit_dept_code IN |
| | | <foreach collection="visitDeptCodes" item="visitDeptCode" open="(" separator="," |
| | | close="))"> |
| | | #{visitDeptCode} |
| | |
| | | FROM service_subtask |
| | | WHERE DATE_FORMAT(finishtime, '%Y-%m-%d') >= #{startDate} |
| | | AND DATE_FORMAT(finishtime, '%Y-%m-%d') <= #{endDate} |
| | | <if test="orgid != null"> |
| | | AND orgid = #{orgid} |
| | | </if> |
| | | GROUP BY deptname |
| | | </select> |
| | | |