|
|
@@ -2,29 +2,6 @@ |
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
|
|
<mapper namespace="com.taauav.front.mapper.UserWaterSpectrumMapper"> |
|
|
|
|
|
|
|
<!-- 获取多光谱数据列表 --> |
|
|
|
<select id="getWaterSpectrumList" parameterType="com.taauav.front.query.UserWaterSpectrumQuery" resultType="com.taauav.front.vo.userwaterspectrum.UserWaterSpectrumListVo"> |
|
|
|
SELECT s.* FROM tauv_water_spectrum s |
|
|
|
INNER JOIN tauv_inspect_driver AS d ON s.inspect_driver_id = d.id |
|
|
|
INNER JOIN tauv_inspect AS i ON i.id = d.inspect_id |
|
|
|
WHERE s.`status`=1 AND s.mark=1 AND d.mark=1 AND i.mark=1 |
|
|
|
<if test="query.inspectNo != null"> |
|
|
|
and d.inspect_no like concat('%', #{query.inspectNo}, '%') |
|
|
|
</if> |
|
|
|
<if test="query.driverName != null"> |
|
|
|
and d.driver_name like concat('%', #{query.driverName}, '%') |
|
|
|
</if> |
|
|
|
<if test="query.inspectTime != null and query.inspectTime !=''"> |
|
|
|
and i.inspect_time between #{query.inspectStartTime} and #{query.inspectEndTime} |
|
|
|
</if> |
|
|
|
<if test="query.driverAreaList != null"> and d.driver_area in |
|
|
|
<foreach collection="query.driverAreaList" item="area" open="(" close=")" separator=","> |
|
|
|
#{area} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
ORDER BY s.id DESC |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectLastSpectrumByDriver" resultType="com.taauav.admin.entity.TauvWaterSpectrum"> |
|
|
|
SELECT * FROM `tauv_water_spectrum` WHERE mark = 1 AND driver_id = #{driverId} |
|
|
|
AND (cod_pic != '' OR nh3n_pic != '' OR tp_pic != '' OR tn_pic != '' OR do_pic != '' OR tub_pic != '') |