From 6a4f68b8f99dca3a00c297cbcff82c065575212c Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期六, 16 八月 2025 11:25:20 +0800
Subject: [PATCH] 1、完善代码;2、作物去除lat属性,采用关联气象站的lat;3、project模块增加查询全部气象站的方法。

---
 pipIrr-platform/pipIrr-global/src/main/resources/mapper/MdCropsMapper.xml |   19 ++++---------------
 1 files changed, 4 insertions(+), 15 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/MdCropsMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/MdCropsMapper.xml
index 6ba2ad2..29a6e2d 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/MdCropsMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/MdCropsMapper.xml
@@ -18,7 +18,6 @@
     <result column="life3_end" jdbcType="INTEGER" property="life3End" />
     <result column="life4_start" jdbcType="INTEGER" property="life4Start" />
     <result column="life4_end" jdbcType="INTEGER" property="life4End" />
-    <result column="lat" jdbcType="DOUBLE" property="lat" />
     <result column="stopped" jdbcType="TINYINT" property="stopped" />
     <result column="remarks" jdbcType="VARCHAR" property="remarks" />
     <result column="create_dt" jdbcType="TIMESTAMP" property="createDt" />
@@ -31,7 +30,7 @@
     life2_start, life2_end, life2_factor,
     life3_start, life3_end, life3_factor,
     life4_start, life4_end, life4_factor,
-    lat, stopped, remarks, create_dt, deleted
+    stopped, remarks, create_dt, deleted
   </sql>
   <sql id="Part_Column_List">
     id, weather_id, `name`, start_dt, end_dt,
@@ -39,7 +38,7 @@
     life2_start, life2_end, life2_factor,
     life3_start, life3_end, life3_factor,
     life4_start, life4_end, life4_factor,
-    lat, stopped, remarks, create_dt
+    stopped, remarks, create_dt
   </sql>
   <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
     <!--@mbg.generated-->
@@ -60,7 +59,7 @@
     life2_start, life2_end, life2_factor,
     life3_start, life3_end, life3_factor,
     life4_start, life4_end, life4_factor,
-    lat, stopped, remarks, create_dt, deleted
+    stopped, remarks, create_dt, deleted
     )
     values (#{id,jdbcType=BIGINT}, #{weatherId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR},
     #{startDt,jdbcType=VARCHAR}, #{endDt,jdbcType=VARCHAR},
@@ -68,7 +67,7 @@
     #{life2Start,jdbcType=INTEGER}, #{life2End,jdbcType=INTEGER}, #{life2Factor,jdbcType=DOUBLE},
     #{life3Start,jdbcType=INTEGER}, #{life3End,jdbcType=INTEGER}, #{life3Factor,jdbcType=DOUBLE},
     #{life4Start,jdbcType=INTEGER}, #{life4End,jdbcType=INTEGER}, #{life4Factor,jdbcType=DOUBLE},
-    #{lat,jdbcType=DOUBLE}, #{stopped,jdbcType=TINYINT},
+    #{stopped,jdbcType=TINYINT},
     #{remarks,jdbcType=VARCHAR}, #{createDt,jdbcType=TIMESTAMP}, #{deleted,jdbcType=TINYINT}
     )
   </insert>
@@ -126,9 +125,6 @@
       </if>
       <if test="life4Factor != null">
         life4_factor,
-      </if>
-      <if test="lat != null">
-        lat,
       </if>
       <if test="stopped != null">
         stopped,
@@ -194,9 +190,6 @@
       </if>
       <if test="life4Factor != null">
         #{life4Factor,jdbcType=DOUBLE},
-      </if>
-      <if test="lat != null">
-        #{lat,jdbcType=DOUBLE},
       </if>
       <if test="stopped != null">
         #{stopped,jdbcType=TINYINT},
@@ -264,9 +257,6 @@
       <if test="life4Factor != null">
         life4_factor = #{life4Factor,jdbcType=DOUBLE},
       </if>
-      <if test="lat != null">
-        lat = #{lat,jdbcType=DOUBLE},
-      </if>
       <if test="stopped != null">
         stopped = #{stopped,jdbcType=TINYINT},
       </if>
@@ -301,7 +291,6 @@
     life4_start = #{life4Start,jdbcType=INTEGER},
     life4_end = #{life4End,jdbcType=INTEGER},
     life4_factor = #{life4Factor,jdbcType=DOUBLE},
-    lat = #{lat,jdbcType=DOUBLE},
     stopped = #{stopped,jdbcType=TINYINT},
     remarks = #{remarks,jdbcType=VARCHAR},
     create_dt = #{createDt,jdbcType=TIMESTAMP},

--
Gitblit v1.8.0