|
@@ -26,6 +26,7 @@
|
|
|
<result property="partwspeeds" column="partwspeeds" jdbcType="VARCHAR"/>
|
|
|
<result property="waterlevel" column="waterlevel" jdbcType="NUMERIC"/>
|
|
|
<result property="berthingId" column="berthing_id" jdbcType="INTEGER"/>
|
|
|
+ <result property="stopId" column="stop_id" jdbcType="INTEGER"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="com.ruoyi.system.dto.TaskResultSortDTO" id="TaskResultSortDTOMap">
|
|
@@ -38,7 +39,7 @@
|
|
|
<!--查询单个-->
|
|
|
<select id="queryById" resultMap="TaskResultMap">
|
|
|
select
|
|
|
- result_id, id, type, taskid, starttime, endtime, width, planid, acreagesum, flowsum, positions, elevations, acreages, waterlevels, wspeeds, flows, site_id, create_time, status, stopwspeeds, partwspeeds, waterlevel, berthing_id
|
|
|
+ result_id, id, type, taskid, starttime, endtime, width, planid, acreagesum, flowsum, positions, elevations, acreages, waterlevels, wspeeds, flows, site_id, create_time, status, stopwspeeds, partwspeeds, waterlevel, berthing_id, stop_id
|
|
|
from task_result
|
|
|
where result_id = #{resultId}
|
|
|
</select>
|
|
@@ -46,7 +47,7 @@
|
|
|
<!--查询单个-->
|
|
|
<select id="queryByTaskid" resultMap="TaskResultMap">
|
|
|
select
|
|
|
- result_id, id, type, taskid, starttime, endtime, width, planid, acreagesum, flowsum, positions, elevations, acreages, waterlevels, wspeeds, flows, site_id, create_time, status, stopwspeeds, partwspeeds, waterlevel, berthing_id
|
|
|
+ result_id, id, type, taskid, starttime, endtime, width, planid, acreagesum, flowsum, positions, elevations, acreages, waterlevels, wspeeds, flows, site_id, create_time, status, stopwspeeds, partwspeeds, waterlevel, berthing_id, stop_id
|
|
|
from task_result
|
|
|
where taskid = #{taskid}
|
|
|
limit 1
|
|
@@ -55,7 +56,7 @@
|
|
|
<!--查询单个-->
|
|
|
<select id="queryBySiteIdOne" resultMap="TaskResultMap">
|
|
|
select
|
|
|
- result_id, id, type, taskid, starttime, endtime, width, planid, acreagesum, flowsum, positions, elevations, acreages, waterlevels, wspeeds, flows, site_id, create_time, status, stopwspeeds, partwspeeds, waterlevel, berthing_id
|
|
|
+ result_id, id, type, taskid, starttime, endtime, width, planid, acreagesum, flowsum, positions, elevations, acreages, waterlevels, wspeeds, flows, site_id, create_time, status, stopwspeeds, partwspeeds, waterlevel, berthing_id, stop_id
|
|
|
from task_result
|
|
|
where site_id = #{siteId}
|
|
|
order by create_time desc
|
|
@@ -76,7 +77,7 @@
|
|
|
<!--查询指定行数据-->
|
|
|
<select id="queryAllByLimit" resultMap="TaskResultMap">
|
|
|
select
|
|
|
- result_id, id, type, taskid, starttime, endtime, width, planid, acreagesum, flowsum, positions, elevations, acreages, waterlevels, wspeeds, flows, site_id, create_time, status, stopwspeeds, partwspeeds, waterlevel, berthing_id
|
|
|
+ result_id, id, type, taskid, starttime, endtime, width, planid, acreagesum, flowsum, positions, elevations, acreages, waterlevels, wspeeds, flows, site_id, create_time, status, stopwspeeds, partwspeeds, waterlevel, berthing_id, stop_id
|
|
|
from task_result
|
|
|
<where>
|
|
|
<if test="achievementQuery.siteId != null">
|
|
@@ -160,28 +161,31 @@
|
|
|
<if test="berthingId != null">
|
|
|
and berthing_id = #{berthingId}
|
|
|
</if>
|
|
|
+ <if test="stopId != null">
|
|
|
+ and stop_id = #{stopId}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
<!--新增所有列-->
|
|
|
<insert id="insert" keyProperty="resultId" useGeneratedKeys="true">
|
|
|
- insert into task_result(id, type, taskid, starttime, endtime, width, planid, acreagesum, flowsum, positions, elevations, acreages, waterlevels, wspeeds, flows, site_id, create_time, status, stopwspeeds, partwspeeds, waterlevel, berthing_id)
|
|
|
- values (#{id}, #{type}, #{taskid}, #{starttime}, #{endtime}, #{width}, #{planid}, #{acreagesum}, #{flowsum}, #{positions}, #{elevations}, #{acreages}, #{waterlevels}, #{wspeeds}, #{flows}, #{siteId}, #{createTime}, #{status}, #{stopwspeeds}, #{partwspeeds}, #{waterlevel}, #{berthingId})
|
|
|
+ insert into task_result(id, type, taskid, starttime, endtime, width, planid, acreagesum, flowsum, positions, elevations, acreages, waterlevels, wspeeds, flows, site_id, create_time, status, stopwspeeds, partwspeeds, waterlevel, berthing_id, stop_id)
|
|
|
+ values (#{id}, #{type}, #{taskid}, #{starttime}, #{endtime}, #{width}, #{planid}, #{acreagesum}, #{flowsum}, #{positions}, #{elevations}, #{acreages}, #{waterlevels}, #{wspeeds}, #{flows}, #{siteId}, #{createTime}, #{status}, #{stopwspeeds}, #{partwspeeds}, #{waterlevel}, #{berthingId}, #{stopId})
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertBatch" keyProperty="resultId" useGeneratedKeys="true">
|
|
|
- insert into task_result(id, type, taskid, starttime, endtime, width, planid, acreagesum, flowsum, positions, elevations, acreages, waterlevels, wspeeds, flows, site_id, create_time, status, stopwspeeds, partwspeeds, waterlevel, berthing_id)
|
|
|
+ insert into task_result(id, type, taskid, starttime, endtime, width, planid, acreagesum, flowsum, positions, elevations, acreages, waterlevels, wspeeds, flows, site_id, create_time, status, stopwspeeds, partwspeeds, waterlevel, berthing_id, stop_id)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
- (#{entity.id}, #{entity.type}, #{entity.taskid}, #{entity.starttime}, #{entity.endtime}, #{entity.width}, #{entity.planid}, #{entity.acreagesum}, #{entity.flowsum}, #{entity.positions}, #{entity.elevations}, #{entity.acreages}, #{entity.waterlevels}, #{entity.wspeeds}, #{entity.flows}, #{entity.siteId}, #{entity.createTime}, #{entity.status}, #{entity.stopwspeeds}, #{entity.partwspeeds}, #{entity.waterlevel}, #{entity.berthingId})
|
|
|
+ (#{entity.id}, #{entity.type}, #{entity.taskid}, #{entity.starttime}, #{entity.endtime}, #{entity.width}, #{entity.planid}, #{entity.acreagesum}, #{entity.flowsum}, #{entity.positions}, #{entity.elevations}, #{entity.acreages}, #{entity.waterlevels}, #{entity.wspeeds}, #{entity.flows}, #{entity.siteId}, #{entity.createTime}, #{entity.status}, #{entity.stopwspeeds}, #{entity.partwspeeds}, #{entity.waterlevel}, #{entity.berthingId}, #{entity.stopId})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertOrUpdateBatch" keyProperty="resultId" useGeneratedKeys="true">
|
|
|
- insert into task_result(id, type, taskid, starttime, endtime, width, planid, acreagesum, flowsum, positions, elevations, acreages, waterlevels, wspeeds, flows, site_id, create_time, status, stopwspeeds, partwspeeds, waterlevel, berthing_id)
|
|
|
+ insert into task_result(id, type, taskid, starttime, endtime, width, planid, acreagesum, flowsum, positions, elevations, acreages, waterlevels, wspeeds, flows, site_id, create_time, status, stopwspeeds, partwspeeds, waterlevel, berthing_id, stop_id)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
- (#{entity.id}, #{entity.type}, #{entity.taskid}, #{entity.starttime}, #{entity.endtime}, #{entity.width}, #{entity.planid}, #{entity.acreagesum}, #{entity.flowsum}, #{entity.positions}, #{entity.elevations}, #{entity.acreages}, #{entity.waterlevels}, #{entity.wspeeds}, #{entity.flows}, #{entity.siteId}, #{entity.createTime}, #{entity.status}, #{entity.stopwspeeds}, #{entity.partwspeeds}, #{entity.waterlevel}, #{entity.berthingId})
|
|
|
+ (#{entity.id}, #{entity.type}, #{entity.taskid}, #{entity.starttime}, #{entity.endtime}, #{entity.width}, #{entity.planid}, #{entity.acreagesum}, #{entity.flowsum}, #{entity.positions}, #{entity.elevations}, #{entity.acreages}, #{entity.waterlevels}, #{entity.wspeeds}, #{entity.flows}, #{entity.siteId}, #{entity.createTime}, #{entity.status}, #{entity.stopwspeeds}, #{entity.partwspeeds}, #{entity.waterlevel}, #{entity.berthingId}, #{entity.stopId})
|
|
|
</foreach>
|
|
|
on duplicate key update
|
|
|
id = values(id),
|
|
@@ -205,7 +209,8 @@ status = values(status),
|
|
|
stopwspeeds = values(stopwspeeds),
|
|
|
partwspeeds = values(partwspeeds),
|
|
|
waterlevel = values(waterlevel),
|
|
|
-berthing_id = values(berthing_id)
|
|
|
+berthing_id = values(berthing_id),
|
|
|
+stop_id = values(stop_id)
|
|
|
</insert>
|
|
|
|
|
|
<!--通过主键修改数据-->
|
|
@@ -278,6 +283,9 @@ berthing_id = values(berthing_id)
|
|
|
<if test="berthingId != null">
|
|
|
berthing_id = #{berthingId},
|
|
|
</if>
|
|
|
+ <if test="stopId != null">
|
|
|
+ stop_id = #{stopId},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where result_id = #{resultId}
|
|
|
</update>
|