| | |
| | | #{leavehospitaldistrictcode} |
| | | </foreach> |
| | | </if> |
| | | |
| | | <if test="hospitaldistrictcodeList != null and hospitaldistrictcodeList.size()>0"> |
| | | AND b.hospitaldistrictcode IN |
| | | <foreach collection="hospitaldistrictcodeList" item="hospitaldistrictcode" open="(" separator="," |
| | | close=")"> |
| | | #{hospitaldistrictcode} |
| | | </foreach> |
| | | </if> |
| | | <if test="leaveldeptcodes != null and leaveldeptcodes.size()>0"> |
| | | AND b.leaveldeptcode IN |
| | | <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator="," |
| | |
| | | #{leaveldeptcode} |
| | | </foreach> |
| | | </if> |
| | | <if test="deptcodeList != null and deptcodeList.size()>0"> |
| | | AND b.deptcode IN |
| | | <foreach collection="deptcodeList" item="deptcode" open="(" separator="," |
| | | close=")"> |
| | | #{deptcode} |
| | | </foreach> |
| | | </if> |
| | | GROUP BY |
| | | b.inhospid, |
| | | a.age, |