<?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.ServiceDistributedetailMapper">
|
|
<resultMap type="com.ruoyi.project.domain.ServiceDistributedetail" id="ServiceDistributedetailResult">
|
<result property="id" column="ID" />
|
<result property="dsid" column="DSID" />
|
<result property="beneficiaryname" column="BeneficiaryName" />
|
<result property="beneficiaryno" column="BeneficiaryNo" />
|
<result property="unitname" column="UnitName" />
|
<result property="unitno" column="UnitNo" />
|
<result property="unituserno" column="UnitUserNo" />
|
<result property="title" column="Title" />
|
<result property="idcardtype" column="IDCardType" />
|
<result property="idcardno" column="IDCardNo" />
|
<result property="sex" column="Sex" />
|
<result property="familyrelations" column="FamilyRelations" />
|
<result property="phone" column="Phone" />
|
<result property="depositbank" column="DepositBank" />
|
<result property="bankcardno" column="BankCardNo" />
|
<result property="branchbankname" column="BranchBankName" />
|
<result property="annexbankcard" column="AnnexBankCard" />
|
<result property="annexregistform" column="AnnexRegistForm" />
|
<result property="applytype" column="ApplyType" />
|
<result property="itemid" column="ItemID" />
|
<result property="itemname" column="ItemName" />
|
<result property="itemtype" column="ItemType" />
|
<result property="quantity" column="Quantity" />
|
<result property="price" column="Price" />
|
<result property="amount" column="Amount" />
|
<result property="taxamount" column="TaxAmount" />
|
<result property="taxedamount" column="TaxedAmount" />
|
<result property="prepaidamount" column="PrepaidAmount" />
|
<result property="remark" column="Remark" />
|
<result property="recordstatus" column="RecordStatus" />
|
<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" />
|
</resultMap>
|
|
<sql id="selectServiceDistributedetailVo">
|
select ID, DSID, BeneficiaryName, BeneficiaryNo, UnitName, UnitNo, UnitUserNo, Title, IDCardType, IDCardNo, Sex, FamilyRelations, Phone, DepositBank, BankCardNo, BranchBankName, AnnexBankCard, AnnexRegistForm, ApplyType, ItemID, ItemName, ItemType, Quantity, Price, Amount, TaxAmount, TaxedAmount, PrepaidAmount, Remark, RecordStatus, del_flag, create_by, create_time, update_by, update_time, uploadflag, uploadtime from service_distributedetail
|
</sql>
|
|
<select id="selectServiceDistributedetailList" parameterType="com.ruoyi.project.domain.ServiceDistributedetail" resultMap="ServiceDistributedetailResult">
|
<include refid="selectServiceDistributedetailVo"/>
|
<where>
|
<if test="beneficiaryname != null and beneficiaryname != ''"> and BeneficiaryName like concat('%', #{beneficiaryname}, '%')</if>
|
<if test="beneficiaryno != null and beneficiaryno != ''"> and BeneficiaryNo = #{beneficiaryno}</if>
|
<if test="unitname != null and unitname != ''"> and UnitName like concat('%', #{unitname}, '%')</if>
|
<if test="unitno != null and unitno != ''"> and UnitNo = #{unitno}</if>
|
<if test="unituserno != null and unituserno != ''"> and UnitUserNo = #{unituserno}</if>
|
<if test="applytype != null and applytype != ''"> and ApplyType = #{applytype}</if>
|
<if test="itemid != null "> and ItemID = #{itemid}</if>
|
<if test="itemname != null and itemname != ''"> and ItemName like concat('%', #{itemname}, '%')</if>
|
<if test="itemtype != null and itemtype != ''"> and ItemType = #{itemtype}</if>
|
<if test="recordstatus != null and recordstatus != ''"> and RecordStatus = #{recordstatus}</if>
|
<if test="delFlag != null "> and del_flag = #{delFlag}</if>
|
<if test="createTime != null "> and create_time = #{createTime}</if>
|
<if test="uploadflag != null and uploadflag != ''"> and uploadflag = #{uploadflag}</if>
|
</where>
|
</select>
|
|
</mapper>
|