| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceReimbursementVo"> |
| | | select ID, del_flag, create_by, create_time, update_by, update_time, UserNo, UserName, IDCardType, IDCardNo, Phone, DepositBank, BankCardNo, BranchBankName, AnnexBankCard, AnnexFiles, AmountRequested, PrepaidAmount, InvoiceCount, AttachCount, ManagerNo, ManagerName, DeptmentNo, DeptmentName, OPOchecker, FinVicePresident, BusVicePresident, OfficeDirector, FinanceDirector, FinanceChecher, InfoID, DonorNo, remark, RecordStatus, uploadflag, uploadtime, Travelers, DonorName, Reason, FlowLevel, costtype, costtypename,fileurl,donorbank,donorbankcard,donorremark, donoramount,donorrelatives from service_reimbursement |
| | | select ID, |
| | | del_flag, |
| | | create_by, |
| | | create_time, |
| | | update_by, |
| | | update_time, |
| | | UserNo, |
| | | UserName, |
| | | IDCardType, |
| | | IDCardNo, |
| | | Phone, |
| | | DepositBank, |
| | | BankCardNo, |
| | | BranchBankName, |
| | | AnnexBankCard, |
| | | AnnexFiles, |
| | | AmountRequested, |
| | | PrepaidAmount, |
| | | InvoiceCount, |
| | | AttachCount, |
| | | ManagerNo, |
| | | ManagerName, |
| | | DeptmentNo, |
| | | DeptmentName, |
| | | OPOchecker, |
| | | FinVicePresident, |
| | | BusVicePresident, |
| | | OfficeDirector, |
| | | FinanceDirector, |
| | | FinanceChecher, |
| | | InfoID, |
| | | DonorNo, |
| | | remark, |
| | | RecordStatus, |
| | | uploadflag, |
| | | uploadtime, |
| | | Travelers, |
| | | DonorName, |
| | | Reason, |
| | | FlowLevel, |
| | | costtype, |
| | | costtypename, |
| | | fileurl, |
| | | donorbank, |
| | | donorbankcard, |
| | | donorremark, |
| | | donoramount, |
| | | donorrelatives |
| | | from service_reimbursement |
| | | </sql> |
| | | |
| | | <select id="selectServiceReimbursementList" parameterType="ServiceReimbursement" resultMap="ServiceReimbursementResult"> |
| | | <select id="selectServiceReimbursementList" parameterType="ServiceReimbursement" |
| | | resultMap="ServiceReimbursementResult"> |
| | | <include refid="selectServiceReimbursementVo"/> |
| | | <where> |
| | | <if test="createBy != null and createBy != ''"> and create_by = #{createBy}</if> |
| | | <if test="createTime != null "> and create_time = #{createTime}</if> |
| | | <if test="username != null and username != ''"> and UserName like concat('%', #{username}, '%')</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="donorno != null and donorno != ''"> and DonorNo = #{donorno}</if> |
| | | <if test="recordstatus != null and recordstatus != ''"> and RecordStatus = #{recordstatus}</if> |
| | | <if test="uploadflag != null and uploadflag != ''"> and uploadflag = #{uploadflag}</if> |
| | |
| | | </where> |
| | | </select> |
| | | <select id="getMaxId" resultType="java.lang.Long"> |
| | | select max(ID) from service_reimbursement |
| | | select max(ID) |
| | | from service_reimbursement |
| | | </select> |
| | | <select id="selectSearchList" resultMap="ServiceReimbursementResult"> |
| | | <include refid="selectServiceReimbursementVo"/> |
| | | <where> |
| | | |
| | | <if test="createTime != null and createTime != ''" > and create_time >= #{searchstarttime} and create_time <= #{searchendtime} </if> |
| | | <if test="createTime != null and createTime != ''">and create_time >= #{searchstarttime} and create_time |
| | | <= #{searchendtime} |
| | | </if> |
| | | <if test="travelers != null and travelers != ''"> and Travelers = #{travelers}</if> |
| | | |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | <select id="getListBypower" statementType="CALLABLE" resultType="com.ruoyi.project.domain.vo.SpFinancialExpensesReimbursementOut"> |
| | | <select id="getListBypower" statementType="CALLABLE" |
| | | resultType="com.ruoyi.project.domain.vo.SpFinancialExpensesReimbursementOut"> |
| | | call SP_FINANCIAL_EXPENSES(#{PAUSERNO,mode=IN,jdbcType=VARCHAR},#{PAFUNDTYPE,mode=IN,jdbcType=INTEGER},#{PAAPPLICANT,mode=IN,jdbcType=VARCHAR},#{PAAPPLICATIONBEGTIME,mode=IN,jdbcType=VARCHAR},#{PAAPPLICATIONENDTIME,mode=IN,jdbcType=VARCHAR},#{PADEPARTMENT,mode=IN,jdbcType=VARCHAR},#{CHECKFLAG,mode=IN,jdbcType=INTEGER},#{APPLYTYPE,mode=IN,jdbcType=INTEGER}) |
| | | </select> |
| | | <select id="getInfoByInfoId" resultType="com.ruoyi.project.domain.ServiceReimbursement"> |
| | |
| | | where infoid = #{infoid} and del_flag = '0' and costtype = "4" |
| | | </select> |
| | | |
| | | <select id="getRDInfoByItem" resultType="com.ruoyi.project.domain.ServiceReimbursementEo"> |
| | | SELECT a.id as id,a.UserNo as userno,a.FlowLevel as recordstatus,b.persontype as persontype,a.create_time as |
| | | createTime, |
| | | a.UserName as username,b.personname as travelers,a.AmountRequested as amountrequested,a.Reason as reason,a.Phone |
| | | as phone,a.DepositBank as depositbank,a.BankCardNo as bankcardno,a.DonorName as donorname,b.trafficexpense as |
| | | trafficexpense,b.hotelexpense as hotelexpense,b.FoodExpenses as foodexpenses, b.foodallowance as foodallowance, |
| | | b.otherexpense as otherexpense,b.otherfeeamount as otherfeeamount FROM service_reimbursement a LEFT JOIN |
| | | service_reimbursementdetail b on a.id=b.RBID where a.del_flag != 1 and b.del_flag!=1 |
| | | <if test="id != null"> |
| | | and a.id = #{id} |
| | | </if> |
| | | <if test='travelers != null and travelers != ""'> |
| | | and b.personname=#{travelers} |
| | | </if> |
| | | <if test='username != null and username != ""'> |
| | | and a.UserName=#{username} |
| | | </if> |
| | | <if test='recordstatus != null and recordstatus != ""'> |
| | | and a.FlowLevel=#{recordstatus} |
| | | </if> |
| | | <if test='travelers != null and travelers != ""'> |
| | | and b.personname=#{travelers} |
| | | </if> |
| | | <if test='starttime != null and endtime != ""'> |
| | | and a.create_time BETWEEN #{starttime} AND #{endtime} |
| | | </if> |
| | | |
| | | ORDER BY a.id desc |
| | | </select> |
| | | |
| | | </mapper> |