From 742b6bbac1b4609386817a6e6fb489ec098a5490 Mon Sep 17 00:00:00 2001
From: zhubaomin <zhubaomin>
Date: 星期二, 21 一月 2025 18:29:44 +0800
Subject: [PATCH] 重构获取分水房详情接口
---
pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaDistrictMapper.xml | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaDistrictMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaDistrictMapper.xml
index c011351..abf4bc4 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaDistrictMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/BaDistrictMapper.xml
@@ -7,7 +7,7 @@
<id column="id" jdbcType="BIGINT" property="id" />
<id column="supperId" jdbcType="BIGINT" property="supperId" />
<result column="name" jdbcType="VARCHAR" property="name" />
- <result column="num" jdbcType="TINYINT" property="num" />
+ <result column="num" jdbcType="VARCHAR" property="num" />
<result property="level" column="level" typeHandler="com.dy.common.mybatis.envm.EnumCodeTypeHandler" javaType="com.dy.pipIrrGlobal.util.DistrictLevel"/>
<result property="deleted" column="deleted" typeHandler="com.dy.common.mybatis.envm.EnumCodeTypeHandler" javaType="com.dy.common.mybatis.envm.Deleted"/>
</resultMap>
@@ -47,7 +47,7 @@
values (#{id,jdbcType=BIGINT},
#{supperId,jdbcType=BIGINT},
#{name,jdbcType=VARCHAR},
- #{num,jdbcType=TINYINT},
+ #{num,jdbcType=VARCHAR},
#{level,typeHandler=com.dy.common.mybatis.envm.EnumCodeTypeHandler, jdbcType=TINYINT},
#{deleted,typeHandler=com.dy.common.mybatis.envm.EnumCodeTypeHandler, jdbcType=TINYINT}
)
@@ -87,7 +87,7 @@
#{name,jdbcType=VARCHAR},
</if>
<if test="num != null">
- #{num,jdbcType=TINYINT},
+ #{num,jdbcType=VARCHAR},
</if>
<if test="level != null">
#{level,typeHandler=com.dy.common.mybatis.envm.EnumCodeTypeHandler, jdbcType=TINYINT},
@@ -105,7 +105,7 @@
`name` = #{name,jdbcType=VARCHAR},
</if>
<if test="num != null">
- num = #{num,jdbcType=TINYINT},
+ num = #{num,jdbcType=VARCHAR},
</if>
<if test="supperId != null">
supperId = #{supperId,jdbcType=BIGINT},
@@ -124,7 +124,7 @@
update ba_district
set supperId = #{supperId,jdbcType=BIGINT},
`name` = #{name,jdbcType=VARCHAR},
- num = #{num,jdbcType=TINYINT},
+ num = #{num,jdbcType=VARCHAR},
`level` = #{level,typeHandler=com.dy.common.mybatis.envm.EnumCodeTypeHandler, jdbcType=TINYINT},
deleted = #{deleted,typeHandler=com.dy.common.mybatis.envm.EnumCodeTypeHandler, jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}
@@ -163,7 +163,7 @@
INNER JOIN ba_district con ON tow.supperId = con.id
INNER JOIN ba_district cit ON con.supperId = cit.id
INNER JOIN ba_district pro ON cit.supperId = pro.id
- WHERE vil.id = ${villageId}
+ WHERE vil.id = #{villageId}
</select>
<!--鏍规嵁绾у埆鑾峰彇琛屾斂鍖哄垝鍒楄〃-->
@@ -171,7 +171,7 @@
SELECT
CAST(id AS char) AS id,
name
- FROM ba_district WHERE `level` = ${level}
+ FROM ba_district WHERE `level` = #{level}
</select>
<!--鏍规嵁鐖禝D鑾峰彇琛屾斂鍖哄垝鍒楄〃-->
@@ -179,6 +179,6 @@
SELECT
CAST(id AS char) AS id,
name
- FROM ba_district WHERE supperId = ${supperId}
+ FROM ba_district WHERE supperId = #{supperId}
</select>
</mapper>
\ No newline at end of file
--
Gitblit v1.8.0