| | |
| | | <if test="itemto.flag"> |
| | | </if> |
| | | <if test="!itemto.flag"> |
| | | or ( HOS.is_del = 0 and HOS.enabled=1) |
| | | or ( hospitals.hosisdel = 0 and hospitals.hosenabled=1) |
| | | </if> |
| | | </when> |
| | | <when test="inx==2"> |
| | |
| | | index=""> |
| | | create_user_org_code = #{itemtoto.orgCode} |
| | | </foreach> |
| | | and HOS.is_del = 0 and HOS.enabled=1 |
| | | and hospitals.hosisdel = 0 and hospitals.hosenabled=1 |
| | | ) |
| | | </if> |
| | | </when> |
| | |
| | | create_user_org_code = #{itemto.object} |
| | | </if> |
| | | <if test="!itemto.flag"> |
| | | or (create_user_org_code = #{itemto.object} and HOS.is_del = 0 and HOS.enabled=1) |
| | | or (create_user_org_code = #{itemto.object} and hospitals.hosisdel = 0 and hospitals.hosenabled=1) |
| | | </if> |
| | | </when> |
| | | <when test="inx == 4"> |
| | |
| | | create_user_org_code like '${itemto.object}%' |
| | | </if> |
| | | <if test="!itemto.flag"> |
| | | or (create_user_org_code like '${itemto.object}%' and HOS.is_del = 0 and |
| | | HOS.enabled=1) |
| | | or (create_user_org_code like '${itemto.object}%' and hospitals.hosisdel = 0 and |
| | | hospitals.hosenabled=1) |
| | | </if> |
| | | </when> |
| | | <when test="inx == 5"> |
| | |
| | | hospitals.create_user_id = #{itemto.object} |
| | | </if> |
| | | <if test="!itemto.flag"> |
| | | or (hospitals.create_user_id = #{itemto.object} and HOS.is_del = 0 and HOS.enabled=1) |
| | | or (hospitals.create_user_id = #{itemto.object} and hospitals.hosisdel = 0 and hospitals.hosenabled=1) |
| | | </if> |
| | | </when> |
| | | <otherwise> |