From f9d8ff7173608dd073c15dd362267245d3bd063e Mon Sep 17 00:00:00 2001
From: suerwei <18810552194@163.com>
Date: 星期二, 21 五月 2024 14:48:19 +0800
Subject: [PATCH] 绑定holeCode
---
javaweb-plus/javaweb-cms/src/main/resources/mapper/geo/ProjectDataMapper.xml | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/javaweb-plus/javaweb-cms/src/main/resources/mapper/geo/ProjectDataMapper.xml b/javaweb-plus/javaweb-cms/src/main/resources/mapper/geo/ProjectDataMapper.xml
index 2648c83..9d10598 100644
--- a/javaweb-plus/javaweb-cms/src/main/resources/mapper/geo/ProjectDataMapper.xml
+++ b/javaweb-plus/javaweb-cms/src/main/resources/mapper/geo/ProjectDataMapper.xml
@@ -7,7 +7,7 @@
<resultMap type="ProjectData" id="ProjectDataResult">
<result property="id" column="id" />
<result property="projectId" column="project_id" />
- <result property="holeId" column="hole_id" />
+ <result property="holeCode" column="hole_code" />
<result property="name" column="name" />
<result property="dataType" column="data_type" />
<result property="dataUrl" column="data_url" />
@@ -21,14 +21,14 @@
</resultMap>
<sql id="selectProjectDataVo">
- select id, project_id, hole_id, name, data_type, data_url, file_type, labels, create_by, create_time, update_by, update_time, remark from js_project_data
+ select id, project_id, hole_code, name, data_type, data_url, file_type, labels, create_by, create_time, update_by, update_time, remark from js_project_data
</sql>
<select id="selectProjectDataList" parameterType="ProjectData" resultMap="ProjectDataResult">
<include refid="selectProjectDataVo"/>
<where>
<if test="projectId != null and projectId != ''"> and project_id = #{projectId}</if>
- <if test="holeId != null and holeId != ''"> and hole_id = #{holeId}</if>
+ <if test="holeCode != null and holeCode != ''"> and hole_code = #{holeCode}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="dataType != null and dataType != ''"> and data_type = #{dataType}</if>
<if test="fileType != null and fileType != ''"> and file_type = #{fileType}</if>
@@ -46,7 +46,7 @@
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">id,</if>
<if test="projectId != null and projectId != ''">project_id,</if>
- <if test="holeId != null and holeId != ''">hole_id,</if>
+ <if test="holeCode != null and holeCode != ''">hole_code,</if>
<if test="name != null and name != ''">name,</if>
<if test="dataType != null and dataType != ''">data_type,</if>
<if test="dataUrl != null and dataUrl != ''">data_url,</if>
@@ -61,7 +61,7 @@
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">#{id},</if>
<if test="projectId != null and projectId != ''">#{projectId},</if>
- <if test="holeId != null and holeId != ''">#{holeId},</if>
+ <if test="holeCode != null and holeCode != ''">#{holeCode},</if>
<if test="name != null and name != ''">#{name},</if>
<if test="dataType != null and dataType != ''">#{dataType},</if>
<if test="dataUrl != null and dataUrl != ''">#{dataUrl},</if>
@@ -79,7 +79,7 @@
update js_project_data
<trim prefix="SET" suffixOverrides=",">
<if test="projectId != null and projectId != ''">project_id = #{projectId},</if>
- <if test="holeId != null and holeId != ''">hole_id = #{holeId},</if>
+ <if test="holeCode != null and holeCode != ''">hole_code = #{holeCode},</if>
<if test="name != null and name != ''">name = #{name},</if>
<if test="dataType != null and dataType != ''">data_type = #{dataType},</if>
<if test="dataUrl != null and dataUrl != ''">data_url = #{dataUrl},</if>
--
Gitblit v1.9.1