liusheng
2024-03-19 ded03f0315e02c13f17b8bf7777c89a5cc73130e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.project.mapper.ServiceFundtaxMapper">
 
    <resultMap type="com.ruoyi.project.domain.ServiceFundtax" id="ServiceFundtaxResult">
        <result property="id" column="ID"/>
        <result property="applyno" column="ApplyNo"/>
        <result property="taxedtime" column="taxedtime"/>
        <result property="userno" column="UserNo"/>
        <result property="username" column="UserName"/>
        <result property="deptmentno" column="DeptmentNo"/>
        <result property="deptmentname" column="DeptmentName"/>
        <result property="managerno" column="ManagerNo"/>
        <result property="managername" column="ManagerName"/>
        <result property="pretaxamount" column="Pretaxamount"/>
        <result property="taxedamount" column="TaxedAmount"/>
        <result property="taxamount" column="TaxAmount"/>
        <result property="medicalcost" column="MedicalCost"/>
        <result property="bodymaintaincost" column="BodyMaintainCost"/>
        <result property="organgaincost" column="OrganGainCost"/>
        <result property="organmaintaincost" column="OrganMaintainCost"/>
        <result property="remark" column="Remark"/>
        <result property="recordstatus" column="RecordStatus"/>
        <result property="checkstatus" column="checkstatus"/>
        <result property="flowlevel" column="FlowLevel"/>
        <result property="backflowlevel" column="backFlowLevel"/>
        <result property="isdistribute" column="Isdistribute"/>
        <result property="riqi" column="riqi"/>
        <result property="opochecker" column="OPOchecker"/>
        <result property="finvicepresident" column="FinVicePresident"/>
        <result property="busvicepresident" column="BusVicePresident"/>
        <result property="president" column="president"/>
        <result property="officedirector" column="OfficeDirector"/>
        <result property="financedirector" column="FinanceDirector"/>
        <result property="financechecher" column="FinanceChecher"/>
        <result property="del_flag" column="del_flag"/>
        <result property="createBy" column="create_by"/>
        <result property="createTime" column="create_time"/>
        <result property="updateBy" column="update_by"/>
        <result property="updateTime" column="update_time"/>
        <result property="uploadflag" column="uploadflag"/>
        <result property="uploadtime" column="uploadtime"/>
        <result property="updownremark" column="updownremark"/>
        <result property="istax" column="istax"/>
        <result property="taxMoney" column="tax_money"/>
    </resultMap>
 
    <sql id="selectServiceFundtaxVo">
        select ID,
               ApplyNo,
               taxedtime,
               UserNo,
               UserName,
               DeptmentNo,
               DeptmentName,
               ManagerNo,
               ManagerName,
               Pretaxamount,
               TaxedAmount,
               TaxAmount,
               MedicalCost,
               BodyMaintainCost,
               OrganGainCost,
               OrganMaintainCost,
               Remark,
               RecordStatus,
               checkstatus,
               FlowLevel,
               backFlowLevel,
               Isdistribute,
               riqi,
               OPOchecker,
               FinVicePresident,
               BusVicePresident,
               president,
               OfficeDirector,
               FinanceDirector,
               FinanceChecher,
               del_flag,
               create_by,
               create_time,
               update_by,
               update_time,
               uploadflag,
               uploadtime,
               tax_money,
               istax,
               updownremark
        from service_fundtax
    </sql>
 
    <select id="selectServiceFundtaxList" parameterType="com.ruoyi.project.domain.ServiceFundtax"
            resultMap="ServiceFundtaxResult">
        <include refid="selectServiceFundtaxVo"/>
        <where>
            <if test="applyno != null  and applyno != ''">and ApplyNo = #{applyno}</if>
            <if test="taxedtime != null ">and taxedtime = #{taxedtime}</if>
            <if test="userno != null  and userno != ''">and UserNo = #{userno}</if>
            <if test="username != null  and username != ''">and UserName like concat('%', #{username}, '%')</if>
            <if test="deptmentno != null  and deptmentno != ''">and DeptmentNo = #{deptmentno}</if>
            <if test="deptmentname != null  and deptmentname != ''">and DeptmentName like concat('%', #{deptmentname},
                '%')
            </if>
            <if test="managerno != null  and managerno != ''">and ManagerNo = #{managerno}</if>
            <if test="managername != null  and managername != ''">and ManagerName like concat('%', #{managername},
                '%')
            </if>
            <if test="pretaxamount != null ">and Pretaxamount = #{pretaxamount}</if>
            <if test="istax != null ">and istax = #{istax}</if>
            <if test="taxedamount != null ">and TaxedAmount = #{taxedamount}</if>
            <if test="taxamount != null ">and TaxAmount = #{taxamount}</if>
            <if test="medicalcost != null ">and MedicalCost = #{medicalcost}</if>
            <if test="bodymaintaincost != null ">and BodyMaintainCost = #{bodymaintaincost}</if>
            <if test="organgaincost != null ">and OrganGainCost = #{organgaincost}</if>
            <if test="organmaintaincost != null ">and OrganMaintainCost = #{organmaintaincost}</if>
            <if test="remark != null  and remark != ''">and Remark = #{remark}</if>
            <if test="recordstatus != null ">and RecordStatus = #{recordstatus}</if>
            <if test="checkstatus != null ">and checkstatus = #{checkstatus}</if>
            <if test="flowlevel != null ">and FlowLevel = #{flowlevel}</if>
            <if test="backflowlevel != null ">and backFlowLevel = #{backflowlevel}</if>
            <if test="isdistribute != null  and isdistribute != ''">and Isdistribute = #{isdistribute}</if>
            <if test="riqi != null  and riqi != ''">and riqi = #{riqi}</if>
            <if test="opochecker != null  and opochecker != ''">and OPOchecker = #{opochecker}</if>
            <if test="finvicepresident != null  and finvicepresident != ''">and FinVicePresident = #{finvicepresident}
            </if>
            <if test="busvicepresident != null  and busvicepresident != ''">and BusVicePresident = #{busvicepresident}
            </if>
            <if test="president != null  and president != ''">and president = #{president}</if>
            <if test="officedirector != null  and officedirector != ''">and OfficeDirector = #{officedirector}</if>
            <if test="financedirector != null  and financedirector != ''">and FinanceDirector = #{financedirector}</if>
            <if test="financechecher != null  and financechecher != ''">and FinanceChecher = #{financechecher}</if>
            <if test="uploadflag != null  and uploadflag != ''">and uploadflag = #{uploadflag}</if>
            <if test="uploadtime != null ">and uploadtime = #{uploadtime}</if>
            <if test="updownremark != null  and updownremark != ''">and updownremark = #{updownremark}</if>
        </where>
    </select>
 
    <select id="getMaxFundTaxId" resultType="integer">
        select max(id) maxid
        from service_fund
        where del_flag = 0;
    </select>
 
</mapper>