| | |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="pym" column="PYM"/> |
| | | <result property="wbm" column="WBM"/> |
| | | <result property="unitTaxNo" column="UnitTaxNo"/> |
| | | <result property="unitTaxNo" column="unit_tax_no"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceExternalpersonVo"> |
| | | select ID, |
| | | UserNo, |
| | | UnitTaxNo, |
| | | UserName, |
| | | UserStatus, |
| | | IDCardNo, |
| | | UserType, |
| | | PersonnelUnitNo, |
| | | Sex, |
| | | Telephone, |
| | | Address, |
| | | UnitNo, |
| | | UnitName, |
| | | Title, |
| | | DepositBank, |
| | | BranchBankName, |
| | | BankCardNo, |
| | | del_flag, |
| | | create_by, |
| | | create_time, |
| | | update_by, |
| | | update_time, |
| | | PYM, |
| | | WBM |
| | | select * |
| | | from service_externalperson |
| | | </sql> |
| | | |
| | |
| | | resultMap="ServiceExternalpersonResult"> |
| | | <include refid="selectServiceExternalpersonVo"/> |
| | | <where> |
| | | service_externalperson.del_flag = 0 |
| | | <if test="userno != null and userno != ''">and UserNo = #{userno}</if> |
| | | <if test="username != null and username != ''">and UserName like concat('%', #{username}, '%')</if> |
| | | <if test="usertype != null and usertype != ''">and UserType = #{usertype}</if> |
| | |
| | | <if test="depositbank != null and depositbank != ''">and DepositBank = #{depositbank}</if> |
| | | <if test="branchbankname != null and branchbankname != ''">and BranchBankName = #{branchbankname}</if> |
| | | <if test="bankcardno != null and bankcardno != ''">and BankCardNo = #{bankcardno}</if> |
| | | <if test="unitTaxNo != null and unitTaxNo != ''">and UnitTaxNo = #{unitTaxNo}</if> |
| | | |
| | | <if test="unitTaxNo != null and unitTaxNo != ''">and unit_tax_no = #{unitTaxNo}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="getAllpeople" resultType="com.ruoyi.project.domain.ServiceExternalperson"> |
| | | <include refid="selectServiceExternalpersonVo"/> |
| | | where UserType = #{usertype} |
| | | where service_externalperson.del_flag = 0 and UserType = #{usertype} |
| | | </select> |
| | | <select id="getInfoByUserNo" resultType="com.ruoyi.project.domain.ServiceExternalperson"> |
| | | <include refid="selectServiceExternalpersonVo"/> |
| | | where UserNo = #{userno} |
| | | where del_flag = 0 and UserNo = #{userno} |
| | | </select> |
| | | |
| | | |
| | | <select id="getInfoByIDCardNo" resultType="com.ruoyi.project.domain.ServiceExternalperson"> |
| | | <include refid="selectServiceExternalpersonVo"/> |
| | | where del_flag = 0 and idcardno = #{idcardno} |
| | | </select> |
| | | </mapper> |