|
15 | 15 | <result column="is_able_login" property="isAbleLogin" jdbcType="INTEGER" /> |
16 | 16 | <result column="leader_id" property="leaderId" jdbcType="VARCHAR" /> |
17 | 17 | </resultMap> |
18 | | - <resultMap id="LeaderMap" type="com.management.model.entity.LeaderInfo"> |
19 | | - <id column="user_id" property="userId" jdbcType="VARCHAR" /> |
20 | | - <result column="user_name" property="userName" jdbcType="VARCHAR" /> |
21 | | - <result column="department" property="department" jdbcType="VARCHAR" /> |
22 | | - </resultMap> |
| 18 | + <resultMap id="LeaderMap" type="com.management.model.entity.LeaderInfo"> |
| 19 | + <id column="user_id" property="userId" jdbcType="VARCHAR" /> |
| 20 | + <result column="user_name" property="userName" jdbcType="VARCHAR" /> |
| 21 | + <result column="department" property="department" jdbcType="VARCHAR" /> |
| 22 | + </resultMap> |
23 | 23 | <resultMap id="UserInfoMap" type="com.management.model.entity.UserBaseInfo" > |
24 | 24 | <result column="user_id" property="userId" jdbcType="VARCHAR" /> |
25 | 25 | <result column="user_name" property="userName" jdbcType="VARCHAR" /> |
|
111 | 111 | <sql id="User_Info_List"> |
112 | 112 | user_id, user_name, sex, department, phone, mail, position, major,is_able_login,identity,leader_id |
113 | 113 | </sql> |
114 | | - <sql id="Leader_Info_List"> |
115 | | - user_id,user_name,department |
116 | | - </sql> |
| 114 | + <sql id="Leader_Info_List"> |
| 115 | + user_id,user_name,department |
| 116 | + </sql> |
117 | 117 | <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.management.model.entity.UserExample" > |
118 | 118 | select |
119 | 119 | <if test="distinct" > |
|
361 | 361 | <select id="selectExpertInfoList" resultMap="BaseResultMap" parameterType="java.lang.String"> |
362 | 362 | select <include refid="Base_Column_List"/> |
363 | 363 | from tbl_User |
364 | | - where instr('3',rtrim(identity)) > 0 and is_able_login = 1 |
| 364 | + where identity like "%3%" and is_able_login = 1 |
| 365 | + </select> |
| 366 | + <select id="selectLeaderInfoList" resultMap="LeaderMap" parameterType="java.lang.String"> |
| 367 | + select <include refid="Leader_Info_List"/> |
| 368 | + from tbl_User |
| 369 | + where identity like "%4%" and is_able_login = 1 |
365 | 370 | </select> |
366 | | - <select id="selectLeaderInfoList" resultMap="LeaderMap" parameterType="java.lang.String"> |
367 | | - select <include refid="Leader_Info_List"/> |
368 | | - from tbl_User |
369 | | - where instr('4',rtrim(identity)) > 0 and is_able_login = 1 |
370 | | - </select> |
371 | 371 | <select id="selectUserInfoByUserId" resultMap="UserInfoMap" parameterType="java.lang.String"> |
372 | 372 | select |
373 | 373 | <include refid="User_Info_List"/> |
|
0 commit comments