|
@@ -10,7 +10,7 @@
|
|
|
t1.id as userId,
|
|
t1.id as userId,
|
|
|
t1.name as userName,
|
|
t1.name as userName,
|
|
|
t1.user_name as jobNumber,
|
|
t1.user_name as jobNumber,
|
|
|
- REPLACE(REPLACE(t1.gender,1,'男'),2,'女') AS gender,
|
|
|
|
|
|
|
+ REPLACE(REPLACE(t1.gender,'SB10001','男'),'SB10002','女') AS gender,
|
|
|
t1.mobile as mobile,
|
|
t1.mobile as mobile,
|
|
|
t5.name as deptName,
|
|
t5.name as deptName,
|
|
|
t4.name as postName
|
|
t4.name as postName
|
|
@@ -24,7 +24,7 @@
|
|
|
<if test="dto.keyword != null and dto.keyword != ''">
|
|
<if test="dto.keyword != null and dto.keyword != ''">
|
|
|
and (
|
|
and (
|
|
|
t1.name LIKE CONCAT('%',#{dto.keyword},'%')
|
|
t1.name LIKE CONCAT('%',#{dto.keyword},'%')
|
|
|
- OR t1.gender LIKE CONCAT('%',REPLACE(REPLACE(#{dto.keyword},'男',1),'女',2),'%')
|
|
|
|
|
|
|
+ OR t1.gender LIKE CONCAT('%',REPLACE(REPLACE(#{dto.keyword},'男','SB10001'),'女','SB10002'),'%')
|
|
|
OR t1.mobile LIKE CONCAT('%',#{dto.keyword},'%')
|
|
OR t1.mobile LIKE CONCAT('%',#{dto.keyword},'%')
|
|
|
OR t1.user_name LIKE CONCAT('%',#{dto.keyword},'%')
|
|
OR t1.user_name LIKE CONCAT('%',#{dto.keyword},'%')
|
|
|
OR t4.name LIKE CONCAT('%',#{dto.keyword},'%')
|
|
OR t4.name LIKE CONCAT('%',#{dto.keyword},'%')
|
|
@@ -39,7 +39,7 @@
|
|
|
select
|
|
select
|
|
|
t.id as userId,
|
|
t.id as userId,
|
|
|
t.name as userName,
|
|
t.name as userName,
|
|
|
- REPLACE(REPLACE(t.gender,1,'男'),2,'女') AS gender,
|
|
|
|
|
|
|
+ REPLACE(REPLACE(t.gender,'SB10001','男'),'SB10002','女') AS gender,
|
|
|
t.mobile as mobile,
|
|
t.mobile as mobile,
|
|
|
t.user_name as jobNumber,
|
|
t.user_name as jobNumber,
|
|
|
t3.name as deptName,
|
|
t3.name as deptName,
|
|
@@ -63,7 +63,7 @@
|
|
|
<if test="dto.keyword != null and dto.keyword != ''">
|
|
<if test="dto.keyword != null and dto.keyword != ''">
|
|
|
and (
|
|
and (
|
|
|
t.name LIKE CONCAT('%',#{dto.keyword},'%')
|
|
t.name LIKE CONCAT('%',#{dto.keyword},'%')
|
|
|
- OR t.gender LIKE CONCAT('%',REPLACE(REPLACE(#{dto.keyword},'男',1),'女',2),'%')
|
|
|
|
|
|
|
+ OR t.gender LIKE CONCAT('%',REPLACE(REPLACE(#{dto.keyword},'男','SB10001'),'女','SB10002'),'%')
|
|
|
OR t.mobile LIKE CONCAT('%',#{dto.keyword},'%')
|
|
OR t.mobile LIKE CONCAT('%',#{dto.keyword},'%')
|
|
|
OR t.user_name LIKE CONCAT('%',#{dto.keyword},'%')
|
|
OR t.user_name LIKE CONCAT('%',#{dto.keyword},'%')
|
|
|
OR t3.name LIKE CONCAT('%',#{dto.keyword},'%')
|
|
OR t3.name LIKE CONCAT('%',#{dto.keyword},'%')
|