liusheng
5 小时以前 34a716e48e49743083953113bfc2e8011d52444f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?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="com.ruoyi.project.domain.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="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="pym" column="PYM"/>
        <result property="wbm" column="WBM"/>
        <result property="unitTaxNo" column="UnitTaxNo"/>
    </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
        from service_externalperson
    </sql>
 
    <select id="selectServiceExternalpersonList" parameterType="com.ruoyi.project.domain.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>
            <if test="unitTaxNo != null  and unitTaxNo != ''">and UnitTaxNo = #{unitTaxNo}</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>