wuxw vor 1 Jahr
Ursprung
Commit
d5058888b5

+ 9 - 0
java110-bean/src/main/java/com/java110/dto/workType/WorkTypeDto.java

@@ -22,6 +22,7 @@ public class WorkTypeDto extends PageDto implements Serializable {
     private String remark;
     private String communityId;
     private String storeId;
+    private String deduction;
     private String smsWay;
     private String wtId;
 
@@ -95,4 +96,12 @@ public class WorkTypeDto extends PageDto implements Serializable {
     public void setStatusCd(String statusCd) {
         this.statusCd = statusCd;
     }
+
+    public String getDeduction() {
+        return deduction;
+    }
+
+    public void setDeduction(String deduction) {
+        this.deduction = deduction;
+    }
 }

+ 8 - 0
java110-bean/src/main/java/com/java110/po/workType/WorkTypePo.java

@@ -30,6 +30,8 @@ public class WorkTypePo implements Serializable {
 
     private String typeName;
     private String remark;
+
+    private String deduction;
     private String statusCd = "0";
     private String communityId;
     private String storeId;
@@ -92,5 +94,11 @@ public class WorkTypePo implements Serializable {
         this.wtId = wtId;
     }
 
+    public String getDeduction() {
+        return deduction;
+    }
 
+    public void setDeduction(String deduction) {
+        this.deduction = deduction;
+    }
 }

+ 7 - 3
java110-db/src/main/resources/mapper/oa/WorkTypeV1ServiceDaoImplMapper.xml

@@ -5,14 +5,14 @@
 
     <!-- 保存工作类型信息 add by wuxw 2018-07-03 -->
     <insert id="saveWorkTypeInfo" parameterType="Map">
-        insert into work_type(type_name, remark, community_id, store_id, sms_way, wt_id)
-        values (#{typeName}, #{remark}, #{communityId}, #{storeId}, #{smsWay}, #{wtId})
+        insert into work_type(type_name,deduction, remark, community_id, store_id, sms_way, wt_id)
+        values (#{typeName},#{deduction}, #{remark}, #{communityId}, #{storeId}, #{smsWay}, #{wtId})
     </insert>
 
     <!-- 查询工作类型信息 add by wuxw 2018-07-03 -->
     <select id="getWorkTypeInfo" parameterType="Map" resultType="Map">
         select t.type_name,t.type_name typeName,t.remark,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id
-        communityId,t.store_id,t.store_id storeId,t.sms_way smsWay,t.wt_id,t.wt_id wtId,t.create_time createTime
+        communityId,t.store_id,t.store_id storeId,t.sms_way smsWay,t.wt_id,t.wt_id wtId,t.create_time createTime,t.deduction
         from work_type t
         where 1 =1
         <if test="typeName !=null and typeName != ''">
@@ -57,6 +57,10 @@
         <if test="smsWay !=null and smsWay != ''">
             , t.sms_way= #{smsWay}
         </if>
+        <if test="deduction !=null and deduction != ''">
+            , t.deduction= #{deduction}
+        </if>
+
         where 1=1
         <if test="wtId !=null and wtId != ''">
             and t.wt_id= #{wtId}