From 627f3930f06a41db3d9b59a7ed06689a6d939b30 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期四, 10 九月 2020 23:44:15 +0800
Subject: [PATCH] 优化代码
---
java110-db/src/main/resources/mapper/fee/FeeFormulaServiceDaoImplMapper.xml | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/fee/FeeFormulaServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/fee/FeeFormulaServiceDaoImplMapper.xml
index fd2bc12..0c0cbbe 100644
--- a/java110-db/src/main/resources/mapper/fee/FeeFormulaServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/fee/FeeFormulaServiceDaoImplMapper.xml
@@ -8,9 +8,9 @@
<!-- 淇濆瓨璐圭敤鍏紡淇℃伅 add by wuxw 2018-07-03 -->
<insert id="saveFeeFormulaInfo" parameterType="Map">
insert into fee_formula(
- formula_id,formula_type,formula_value,formula_desc,community_id
+ formula_id,formula_type,formula_value,formula_desc,community_id,price
) values (
- #{formulaId},#{formulaType},#{formulaValue},#{formulaDesc},#{communityId}
+ #{formulaId},#{formulaType},#{formulaValue},#{formulaDesc},#{communityId},#{price}
)
</insert>
@@ -19,7 +19,8 @@
<select id="getFeeFormulaInfo" parameterType="Map" resultType="Map">
select t.formula_id,t.formula_id formulaId,t.formula_type,t.formula_type
formulaType,t.formula_value,t.formula_value formulaValue,t.status_cd,t.status_cd
- statusCd,t.formula_desc,t.formula_desc formulaDesc,t.community_id,t.community_id communityId
+ statusCd,t.formula_desc,t.formula_desc formulaDesc,t.community_id,t.community_id communityId,
+ t.price
from fee_formula t
where 1 =1
<if test="formulaId !=null and formulaId != ''">
@@ -66,6 +67,10 @@
<if test="communityId !=null and communityId != ''">
, t.community_id= #{communityId}
</if>
+ <if test="price !=null and price != ''">
+ , t.price= #{price}
+ </if>
+
where 1=1
<if test="formulaId !=null and formulaId != ''">
and t.formula_id= #{formulaId}
--
Gitblit v1.8.0