| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.project.mapper.ServiceReimbursementSharedMapper"> |
| | | |
| | | <resultMap type="ServiceReimbursementShared" id="ServiceReimbursementSharedResult"> |
| | | <resultMap type="com.ruoyi.project.domain.ServiceReimbursementShared" id="ServiceReimbursementSharedResult"> |
| | | <result property="id" column="ID" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="createBy" column="create_by" /> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceReimbursementSharedVo"> |
| | | select ID, del_flag, create_by, create_time, update_by, update_time, UserNo, UserName, Travelers, IDCardType, IDCardNo, Phone, DepositBank, BankCardNo, BranchBankName, AnnexBankCard, AnnexFiles, AmountRequested, PrepaidAmount, InvoiceCount, AttachCount, ManagerNo, ManagerName, DeptmentNo, DeptmentName, OPOchecker, FinVicePresident, BusVicePresident, OfficeDirector, FinanceDirector, FinanceChecher, InfoID, DonorNo, DonorName, Reason, remark, RecordStatus, uploadflag, uploadtime, totalAmount, bigStrMoney, FlowLevel, costtype, costtypename, oaid, oabdzt, filename, fileid,reimid ,donorbank,donorbankcard,donorremark, donoramount,donorrelatives from service_reimbursement_shared |
| | | select ID, |
| | | del_flag, |
| | | create_by, |
| | | create_time, |
| | | update_by, |
| | | update_time, |
| | | UserNo, |
| | | UserName, |
| | | Travelers, |
| | | IDCardType, |
| | | IDCardNo, |
| | | Phone, |
| | | DepositBank, |
| | | BankCardNo, |
| | | BranchBankName, |
| | | AnnexBankCard, |
| | | AnnexFiles, |
| | | AmountRequested, |
| | | PrepaidAmount, |
| | | InvoiceCount, |
| | | AttachCount, |
| | | ManagerNo, |
| | | ManagerName, |
| | | DeptmentNo, |
| | | DeptmentName, |
| | | OPOchecker, |
| | | FinVicePresident, |
| | | BusVicePresident, |
| | | OfficeDirector, |
| | | FinanceDirector, |
| | | FinanceChecher, |
| | | InfoID, |
| | | DonorNo, |
| | | DonorName, |
| | | Reason, |
| | | remark, |
| | | RecordStatus, |
| | | uploadflag, |
| | | uploadtime, |
| | | totalAmount, |
| | | bigStrMoney, |
| | | FlowLevel, |
| | | costtype, |
| | | costtypename, |
| | | oaid, |
| | | oabdzt, |
| | | filename, |
| | | fileid, |
| | | reimid, |
| | | donorbank, |
| | | donorbankcard, |
| | | donorremark, |
| | | donoramount, |
| | | donorrelatives |
| | | from service_reimbursement_shared |
| | | </sql> |
| | | |
| | | <select id="getRemShareInfoByRemId" resultType="com.ruoyi.project.domain.ServiceReimbursementShared" resultMap="ServiceReimbursementSharedResult"> |
| | | <select id="getRemShareInfoByRemId" resultType="com.ruoyi.project.domain.ServiceReimbursementShared" |
| | | resultMap="ServiceReimbursementSharedResult"> |
| | | <include refid="selectServiceReimbursementSharedVo"/> |
| | | where reimid = #{RemId} |
| | | where reimid = #{RemId} and del_flag!=1 |
| | | </select> |
| | | |
| | | <select id="selectServiceReimbursementSharedList" parameterType="ServiceReimbursementShared" resultMap="ServiceReimbursementSharedResult"> |
| | | <select id="selectServiceReimbursementSharedList" parameterType="com.ruoyi.project.domain.ServiceReimbursementShared" |
| | | resultMap="ServiceReimbursementSharedResult"> |
| | | <include refid="selectServiceReimbursementSharedVo"/> |
| | | <where> |
| | | <if test="userno != null and userno != ''"> and UserNo = #{userno}</if> |
| | |
| | | <if test="phone != null and phone != ''"> and Phone = #{phone}</if> |
| | | <if test="depositbank != null and depositbank != ''"> and DepositBank = #{depositbank}</if> |
| | | <if test="bankcardno != null and bankcardno != ''"> and BankCardNo = #{bankcardno}</if> |
| | | <if test="branchbankname != null and branchbankname != ''"> and BranchBankName like concat('%', #{branchbankname}, '%')</if> |
| | | <if test="branchbankname != null and branchbankname != ''">and BranchBankName like concat('%', |
| | | #{branchbankname}, '%') |
| | | </if> |
| | | <if test="annexbankcard != null and annexbankcard != ''"> and AnnexBankCard = #{annexbankcard}</if> |
| | | <if test="annexfiles != null and annexfiles != ''"> and AnnexFiles = #{annexfiles}</if> |
| | | <if test="amountrequested != null "> and AmountRequested = #{amountrequested}</if> |
| | |
| | | <if test="invoicecount != null "> and InvoiceCount = #{invoicecount}</if> |
| | | <if test="attachcount != null "> and AttachCount = #{attachcount}</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="managername != null and managername != ''">and ManagerName like concat('%', #{managername}, |
| | | '%') |
| | | </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="deptmentname != null and deptmentname != ''">and DeptmentName like concat('%', #{deptmentname}, |
| | | '%') |
| | | </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="finvicepresident != null and finvicepresident != ''">and FinVicePresident = #{finvicepresident} |
| | | </if> |
| | | <if test="busvicepresident != null and busvicepresident != ''">and BusVicePresident = #{busvicepresident} |
| | | </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="bigstrmoney != null and bigstrmoney != ''"> and bigStrMoney = #{bigstrmoney}</if> |
| | | <if test="flowlevel != null "> and FlowLevel = #{flowlevel}</if> |
| | | <if test="costtype != null and costtype != ''"> and costtype = #{costtype}</if> |
| | | <if test="costtypename != null and costtypename != ''"> and costtypename like concat('%', #{costtypename}, '%')</if> |
| | | <if test="costtypename != null and costtypename != ''">and costtypename like concat('%', #{costtypename}, |
| | | '%') |
| | | </if> |
| | | <if test="oaid != null and oaid != ''"> and oaid = #{oaid}</if> |
| | | <if test="oabdzt != null and oabdzt != ''"> and oabdzt = #{oabdzt}</if> |
| | | <if test="filename != null and filename != ''"> and filename like concat('%', #{filename}, '%')</if> |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | <update id="delResharedInfoById"> |
| | | UPDATE service_reimbursement_shared |
| | | SET del_flag = 1 |
| | | WHERE id = #{id} |
| | | and del_flag != 1 |
| | | </update> |
| | | |
| | | </mapper> |