From 4ed2dd8ef299ce534505456813f15ee5c5c95616 Mon Sep 17 00:00:00 2001
From: suerwei <18810552194@163.com>
Date: 星期二, 18 六月 2024 14:20:38 +0800
Subject: [PATCH] 添加字段
---
javaweb-plus/javaweb-cms/src/main/resources/mapper/geo/ProjectMapper.xml | 6 +++++-
javaweb-plus/javaweb-cms/src/main/java/com/javaweb/geo/domain/Project.java | 10 ++++++++++
2 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/javaweb-plus/javaweb-cms/src/main/java/com/javaweb/geo/domain/Project.java b/javaweb-plus/javaweb-cms/src/main/java/com/javaweb/geo/domain/Project.java
index 23a6750..4eb2270 100644
--- a/javaweb-plus/javaweb-cms/src/main/java/com/javaweb/geo/domain/Project.java
+++ b/javaweb-plus/javaweb-cms/src/main/java/com/javaweb/geo/domain/Project.java
@@ -153,6 +153,16 @@
/** 鏁版嵁鏉ユ簮 */
private String dataSource;
+ /** 鍥剧墖璺緞 */
+ private String url;
+
+ public String getUrl() {
+ return url;
+ }
+
+ public void settianUrl(String url) {
+ this.url = url;
+ }
public Integer getHoleNum() {
return holeNum;
diff --git a/javaweb-plus/javaweb-cms/src/main/resources/mapper/geo/ProjectMapper.xml b/javaweb-plus/javaweb-cms/src/main/resources/mapper/geo/ProjectMapper.xml
index 7f15c0d..55c1cc2 100644
--- a/javaweb-plus/javaweb-cms/src/main/resources/mapper/geo/ProjectMapper.xml
+++ b/javaweb-plus/javaweb-cms/src/main/resources/mapper/geo/ProjectMapper.xml
@@ -32,10 +32,11 @@
<result property="lat" column="lat" />
<result property="rate" column="rate" />
<result property="createTime" column="create_time" />
+ <result property="url" column="url" />
</resultMap>
<sql id="selectProjectVo">
- select ids, address, city, code, company_id,start_time,end_time, district, full_name, labor_unit, leader, owner, province, serial_number, 'describe', status, is_deleted, status_change_user, status_change_reason, data_source,lng,lat,rate,create_time from js_project
+ select ids, address, city, code, company_id,start_time,end_time, district, full_name, labor_unit, leader, owner, province, serial_number, 'describe', status, is_deleted, status_change_user, status_change_reason, data_source,lng,lat,rate,create_time,url from js_project
</sql>
<select id="selectProjectList" parameterType="Project" resultMap="ProjectResult">
@@ -92,6 +93,7 @@
<if test="lat != null">lat,</if>
<if test="rate != null and rate != ''">rate,</if>
<if test="createTime != null ">create_time,</if>
+ <if test="url != null and url != ''">url,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="ids != null and ids != ''">#{ids},</if>
@@ -119,6 +121,7 @@
<if test="lat != null">#{lat},</if>
<if test="rate != null and rate != ''">#{rate},</if>
<if test="createTime != null ">#{createTime},</if>
+ <if test="url != null and url != ''">#{url},</if>
</trim>
</insert>
@@ -148,6 +151,7 @@
<if test="lat != null">lat = #{lat},</if>
<if test="rate != null and rate != ''">rate = #{rate},</if>
<if test="createTime != null ">create_time = #{createTime},</if>
+ <if test="url != null ">url = #{url},</if>
</trim>
where ids = #{ids}
</update>
--
Gitblit v1.9.1