| | |
| | | <= (select cast(sc.config_value as decimal) from sys_config sc where sc.config_key = 'appAlarmPointsDistance') |
| | | order by f_compute_distance(cast(#{longitude} as decimal),cast(#{latitude} as decimal),aaw.longitude,aaw.latitude) desc limit 1 offset 0 |
| | | </select> |
| | | |
| | | <select id="getWellById" resultMap="ArdAlarmpointsWellOnlyResult"> |
| | | select aaw.* from ard_alarmpoints_well aaw where aaw.id = #{id} |
| | | </select> |
| | | |
| | | |
| | | <select id="conditionList" resultType="com.ruoyi.alarmpoints.well.domain.ArdAlarmpointsWell"> |
| | | Select * from ard_alarmpoints_well well |
| | | where WHERE well.well_id = #{wellId} |
| | | and well.dept_id in |
| | | <foreach item="deptList" collection="deptList" open="(" separator="," close=")"> |
| | | #{deptList} |
| | | </foreach> |
| | | </select> |
| | | </mapper> |