| | |
| | | WHERE |
| | | jda.nei_code = #{code} |
| | | AND jh.is_deleted = 0 |
| | | <if test="buildingCode != null and buildingCode != ''"> |
| | | and jda.building_code=#{buildingCode} |
| | | </if> |
| | | |
| | | <if test="uniCode != null and uniCode != ''"> |
| | | and jda.unit_code=#{uniCode} |
| | | </if> |
| | | |
| | | <if test="aoiCode != null and aoiCode != ''"> |
| | | and jda.aoi_code=#{aoiCode}} |
| | | </if> |
| | | <if test="userId != null"> |
| | | AND jda.address_code IN ( |
| | | SELECT DISTINCT |
| | |
| | | WHERE |
| | | jda.nei_code = #{code} |
| | | AND jh.is_deleted = 0 |
| | | <if test="buildingCode != null and buildingCode != ''"> |
| | | and jda.building_code=#{buildingCode} |
| | | </if> |
| | | |
| | | <if test="uniCode != null and uniCode != ''"> |
| | | and jda.unit_code=#{uniCode} |
| | | </if> |
| | | |
| | | <if test="aoiCode != null and aoiCode != ''"> |
| | | and jda.aoi_code=#{aoiCode}} |
| | | </if> |
| | | <if test="userId != null"> |
| | | AND jda.address_code IN ( |
| | | SELECT DISTINCT |
| | |
| | | WHERE |
| | | jda.nei_code = #{code} |
| | | AND jhh.is_deleted = 0 |
| | | <if test="buildingCode != null and buildingCode != ''"> |
| | | and jda.building_code=#{buildingCode} |
| | | </if> |
| | | |
| | | <if test="uniCode != null and uniCode != ''"> |
| | | and jda.unit_code=#{uniCode} |
| | | </if> |
| | | |
| | | <if test="aoiCode != null and aoiCode != ''"> |
| | | and jda.aoi_code=#{aoiCode}} |
| | | </if> |
| | | <if test="userId != null"> |
| | | AND jda.address_code IN ( |
| | | SELECT |
| | |
| | | WHERE |
| | | jda.nei_code = #{code} |
| | | AND jh.is_deleted = 0 |
| | | <if test="buildingCode != null and buildingCode != ''"> |
| | | and jda.building_code=#{buildingCode} |
| | | </if> |
| | | |
| | | <if test="uniCode != null and uniCode != ''"> |
| | | and jda.unit_code=#{uniCode} |
| | | </if> |
| | | |
| | | <if test="aoiCode != null and aoiCode != ''"> |
| | | and jda.aoi_code=#{aoiCode}} |
| | | </if> |
| | | <if test="userId != null"> |
| | | AND jda.address_code IN ( |
| | | SELECT DISTINCT |