Browse Source

费用套餐加入 备注字段

wuxw 3 years ago
parent
commit
11be22d757

+ 11 - 0
java110-bean/src/main/java/com/java110/dto/feeCombo/FeeComboDto.java

@@ -23,6 +23,9 @@ private String communityId;
 
     private String statusCd = "0";
 
+    private String remark;
+
+
 
     public String getComboName() {
         return comboName;
@@ -59,4 +62,12 @@ public void setCommunityId(String communityId) {
     public void setStatusCd(String statusCd) {
         this.statusCd = statusCd;
     }
+
+    public String getRemark() {
+        return remark;
+    }
+
+    public void setRemark(String remark) {
+        this.remark = remark;
+    }
 }

+ 7 - 1
java110-bean/src/main/java/com/java110/po/feeCombo/FeeComboPo.java

@@ -31,6 +31,7 @@ public class FeeComboPo implements Serializable {
 private String comboId;
 private String statusCd = "0";
 private String communityId;
+private String remark;
 public String getComboName() {
         return comboName;
     }
@@ -56,6 +57,11 @@ public void setCommunityId(String communityId) {
         this.communityId = communityId;
     }
 
+    public String getRemark() {
+        return remark;
+    }
 
-
+    public void setRemark(String remark) {
+        this.remark = remark;
+    }
 }

+ 8 - 5
java110-db/src/main/resources/mapper/fee/FeeComboV1ServiceDaoImplMapper.xml

@@ -8,9 +8,9 @@
     <!-- 保存费用套餐信息 add by wuxw 2018-07-03 -->
     <insert id="saveFeeComboInfo" parameterType="Map">
         insert into fee_combo(
-        combo_name,combo_id,community_id
+        combo_name,combo_id,community_id,remark
         ) values (
-        #{comboName},#{comboId},#{communityId}
+        #{comboName},#{comboId},#{communityId},#{remark}
         )
     </insert>
 
@@ -18,7 +18,7 @@
     <!-- 查询费用套餐信息 add by wuxw 2018-07-03 -->
     <select id="getFeeComboInfo" parameterType="Map" resultType="Map">
         select t.combo_name,t.combo_name comboName,t.combo_id,t.combo_id comboId,t.status_cd,t.status_cd
-        statusCd,t.community_id,t.community_id communityId
+        statusCd,t.community_id,t.community_id communityId,t.remark,t.create_time createTime
         from fee_combo t
         where 1 =1
         <if test="comboName !=null and comboName != ''">
@@ -50,13 +50,16 @@
         <if test="comboName !=null and comboName != ''">
             , t.combo_name= #{comboName}
         </if>
-        <if test="communityId !=null and communityId != ''">
-            , t.community_id= #{communityId}
+        <if test="remark !=null and remark != ''">
+            , t.remark= #{remark}
         </if>
         where 1=1
         <if test="comboId !=null and comboId != ''">
             and t.combo_id= #{comboId}
         </if>
+        <if test="communityId !=null and communityId != ''">
+            and t.community_id= #{communityId}
+        </if>
 
     </update>