<?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_fundtax 
 | 
        where del_flag = 0; 
 | 
    </select> 
 | 
  
 | 
</mapper> 
 |