wuxw
2024-10-30 d5058888b57ccc493d6db86c10e2359f60f1e1b9
支持扣款
3个文件已修改
27 ■■■■ 已修改文件
java110-bean/src/main/java/com/java110/dto/workType/WorkTypeDto.java 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-bean/src/main/java/com/java110/po/workType/WorkTypePo.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-db/src/main/resources/mapper/oa/WorkTypeV1ServiceDaoImplMapper.xml 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-bean/src/main/java/com/java110/dto/workType/WorkTypeDto.java
@@ -22,6 +22,7 @@
    private String remark;
    private String communityId;
    private String storeId;
    private String deduction;
    private String smsWay;
    private String wtId;
@@ -95,4 +96,12 @@
    public void setStatusCd(String statusCd) {
        this.statusCd = statusCd;
    }
    public String getDeduction() {
        return deduction;
    }
    public void setDeduction(String deduction) {
        this.deduction = deduction;
    }
}
java110-bean/src/main/java/com/java110/po/workType/WorkTypePo.java
@@ -30,6 +30,8 @@
    private String typeName;
    private String remark;
    private String deduction;
    private String statusCd = "0";
    private String communityId;
    private String storeId;
@@ -92,5 +94,11 @@
        this.wtId = wtId;
    }
    public String getDeduction() {
        return deduction;
    }
    public void setDeduction(String deduction) {
        this.deduction = deduction;
    }
}
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}