<?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.ServiceExternalpersonMapper">
|
|
<resultMap type="ServiceExternalperson" id="ServiceExternalpersonResult">
|
<result property="id" column="ID" />
|
<result property="userno" column="UserNo" />
|
<result property="username" column="UserName" />
|
<result property="userstatus" column="UserStatus" />
|
<result property="usertype" column="UserType" />
|
<result property="idcardno" column="IDCardNo" />
|
<result property="personnelunitno" column="PersonnelUnitNo" />
|
<result property="sex" column="Sex" />
|
<result property="telephone" column="Telephone" />
|
<result property="address" column="Address" />
|
<result property="unitno" column="UnitNo" />
|
<result property="unitname" column="UnitName" />
|
<result property="title" column="Title" />
|
<result property="depositbank" column="DepositBank" />
|
<result property="branchbankname" column="BranchBankName" />
|
<result property="bankcardno" column="BankCardNo" />
|
<result property="delFlag" 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="pym" column="PYM" />
|
<result property="wbm" column="WBM" />
|
</resultMap>
|
|
<sql id="selectServiceExternalpersonVo">
|
select ID, UserNo, 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 from service_externalperson
|
</sql>
|
|
<select id="selectServiceExternalpersonList" parameterType="ServiceExternalperson" resultMap="ServiceExternalpersonResult">
|
<include refid="selectServiceExternalpersonVo"/>
|
<where>
|
<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="sex != null and sex != ''"> and Sex = #{sex}</if>
|
<if test="telephone != null and telephone != ''"> and Telephone = #{telephone}</if>
|
<if test="address != null and address != ''"> and Address = #{address}</if>
|
<if test="unitno != null and unitno != ''"> and UnitNo = #{unitno}</if>
|
<if test="unitname != null and unitname != ''"> and UnitName = #{unitname}</if>
|
<if test="title != null and title != ''"> and Title = #{title}</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>
|
|
</where>
|
</select>
|
|
<select id="getAllpeople" resultType="com.ruoyi.project.domain.ServiceExternalperson">
|
<include refid="selectServiceExternalpersonVo"/>
|
where UserType = #{usertype}
|
</select>
|
<select id="getInfoByUserNo" resultType="com.ruoyi.project.domain.ServiceExternalperson">
|
<include refid="selectServiceExternalpersonVo"/>
|
where UserNo = #{userno}
|
</select>
|
|
|
</mapper>
|