| | |
| | | <if test="areaCode != null"> |
| | | AND mp.area_code = #{areaCode} |
| | | </if> |
| | | <if test="townCode != null"> |
| | | AND mp.town_code = #{townCode} |
| | | </if> |
| | | <if test="villageCode != null"> |
| | | AND mp.village_code = #{villageCode} |
| | | </if> |
| | | ) |
| | | <if test="professionId != null"> |
| | | AND d.profession_id = #{professionId} |
| | |
| | | <if test="monitorPointId != null"> |
| | | AND mp.id = #{monitorPointId} |
| | | </if> |
| | | <if test="townCode != null"> |
| | | AND mp.town_code = #{townCode} |
| | | </if> |
| | | <if test="villageCode != null"> |
| | | AND mp.village_code = #{villageCode} |
| | | </if> |
| | | ) |
| | | <if test="professionId != null"> |
| | | AND d.profession_id = #{professionId} |