|
@@ -25,6 +25,7 @@
|
|
|
<result property="stopwspeeds" column="stopwspeeds" jdbcType="VARCHAR"/>
|
|
|
<result property="partwspeeds" column="partwspeeds" jdbcType="VARCHAR"/>
|
|
|
<result property="waterlevel" column="waterlevel" jdbcType="NUMERIC"/>
|
|
|
+ <result property="berthingId" column="berthing_id" jdbcType="INTEGER"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="com.ruoyi.system.dto.TaskResultSortDTO" id="TaskResultSortDTOMap">
|
|
@@ -37,7 +38,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
|
|
|
+ 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
|
|
|
from task_result
|
|
|
where result_id = #{resultId}
|
|
|
</select>
|
|
@@ -45,7 +46,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
|
|
|
+ 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
|
|
|
from task_result
|
|
|
where taskid = #{taskid}
|
|
|
limit 1
|
|
@@ -54,7 +55,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
|
|
|
+ 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
|
|
|
from task_result
|
|
|
where site_id = #{siteId}
|
|
|
order by create_time desc
|
|
@@ -75,7 +76,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
|
|
|
+ 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
|
|
|
from task_result
|
|
|
<where>
|
|
|
<if test="achievementQuery.siteId != null">
|
|
@@ -156,28 +157,31 @@
|
|
|
<if test="waterlevel != null">
|
|
|
and waterlevel = #{waterlevel}
|
|
|
</if>
|
|
|
+ <if test="berthingId != null">
|
|
|
+ and berthing_id = #{berthingId}
|
|
|
+ </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)
|
|
|
- values (#{id}, #{type}, #{taskid}, #{starttime}, #{endtime}, #{width}, #{planid}, #{acreagesum}, #{flowsum}, #{positions}, #{elevations}, #{acreages}, #{waterlevels}, #{wspeeds}, #{flows}, #{siteId}, #{createTime}, #{status}, #{stopwspeeds}, #{partwspeeds}, #{waterlevel})
|
|
|
+ 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>
|
|
|
|
|
|
<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)
|
|
|
+ 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
|
|
|
<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.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})
|
|
|
</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)
|
|
|
+ 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
|
|
|
<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.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})
|
|
|
</foreach>
|
|
|
on duplicate key update
|
|
|
id = values(id),
|
|
@@ -200,7 +204,8 @@ create_time = values(create_time),
|
|
|
status = values(status),
|
|
|
stopwspeeds = values(stopwspeeds),
|
|
|
partwspeeds = values(partwspeeds),
|
|
|
-waterlevel = values(waterlevel)
|
|
|
+waterlevel = values(waterlevel),
|
|
|
+berthing_id = values(berthing_id)
|
|
|
</insert>
|
|
|
|
|
|
<!--通过主键修改数据-->
|
|
@@ -270,6 +275,9 @@ waterlevel = values(waterlevel)
|
|
|
<if test="waterlevel != null">
|
|
|
waterlevel = #{waterlevel},
|
|
|
</if>
|
|
|
+ <if test="berthingId != null">
|
|
|
+ berthing_id = #{berthingId},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where result_id = #{resultId}
|
|
|
</update>
|