|
@@ -4,7 +4,7 @@
|
|
|
|
|
|
<select id="getAllOutUser" resultType="com.bofeng.entity.OutUser">
|
|
<select id="getAllOutUser" resultType="com.bofeng.entity.OutUser">
|
|
select u.tu_id,ur.user_id as userId,su.uptown_name as uptownName,uu.ridgepole,uu.unit,u.name,u.phone,suh.doorplate,
|
|
select u.tu_id,ur.user_id as userId,su.uptown_name as uptownName,uu.ridgepole,uu.unit,u.name,u.phone,suh.doorplate,
|
|
- DATE_FORMAT(u.start_date,'%Y-%m-%d') as startDateStr,DATE_FORMAT(u.end_date,'%Y-%m-%d') as endDateStr,sur.staff_name as staffName
|
|
|
|
|
|
+ DATE_FORMAT(u.start_date,'%Y-%m-%d') as startDateStr,DATE_FORMAT(u.end_date,'%Y-%m-%d') as endDateStr,sur.staff_name as createName,sur1.staff_name as updateName
|
|
from out_user u
|
|
from out_user u
|
|
left join sys_uptown_home uh on uh.phone = u.phone and uh.linkman = u.name
|
|
left join sys_uptown_home uh on uh.phone = u.phone and uh.linkman = u.name
|
|
left join sys_user_role ur on ur.property_id = uh.house_id and ur.role_id = 1
|
|
left join sys_user_role ur on ur.property_id = uh.house_id and ur.role_id = 1
|
|
@@ -12,6 +12,7 @@
|
|
left join sys_uptown_unit uu on uu.unit_id = suh.unit_id
|
|
left join sys_uptown_unit uu on uu.unit_id = suh.unit_id
|
|
left join sys_uptown su on su.uptown_id = uu.uptown_id
|
|
left join sys_uptown su on su.uptown_id = uu.uptown_id
|
|
left join sys_user sur on sur.user_id = u.user_update
|
|
left join sys_user sur on sur.user_id = u.user_update
|
|
|
|
+ left join sys_user sur1 on sur1.user_id = u.user_create
|
|
<where>
|
|
<where>
|
|
<if test="queryProperties != null and queryProperties != ''">
|
|
<if test="queryProperties != null and queryProperties != ''">
|
|
(
|
|
(
|
|
@@ -34,7 +35,7 @@
|
|
|
|
|
|
<select id="getAllOutUserLY" resultType="com.bofeng.entity.OutUser">
|
|
<select id="getAllOutUserLY" resultType="com.bofeng.entity.OutUser">
|
|
select u.tu_id,ur.user_id as userId,su.uptown_name as uptownName,CONCAT(uu.ridgepole,uu.unit) as unit,u.name,u.phone,suh.doorplate,
|
|
select u.tu_id,ur.user_id as userId,su.uptown_name as uptownName,CONCAT(uu.ridgepole,uu.unit) as unit,u.name,u.phone,suh.doorplate,
|
|
- DATE_FORMAT(u.start_date,'%Y-%m-%d') as startDateStr,DATE_FORMAT(u.end_date,'%Y-%m-%d') as endDateStr,sur.staff_name as staffName
|
|
|
|
|
|
+ DATE_FORMAT(u.start_date,'%Y-%m-%d') as startDateStr,DATE_FORMAT(u.end_date,'%Y-%m-%d') as endDateStr,sur.staff_name as createName,sur1.staff_name as updateName
|
|
from out_user u
|
|
from out_user u
|
|
left join sys_uptown_home uh on uh.phone = u.phone and uh.linkman = u.name
|
|
left join sys_uptown_home uh on uh.phone = u.phone and uh.linkman = u.name
|
|
left join sys_user_role ur on ur.property_id = uh.house_id and ur.role_id = 1
|
|
left join sys_user_role ur on ur.property_id = uh.house_id and ur.role_id = 1
|
|
@@ -42,6 +43,7 @@
|
|
left join sys_uptown_unit uu on uu.unit_id = suh.unit_id
|
|
left join sys_uptown_unit uu on uu.unit_id = suh.unit_id
|
|
left join sys_uptown su on su.uptown_id = uu.uptown_id
|
|
left join sys_uptown su on su.uptown_id = uu.uptown_id
|
|
left join sys_user sur on sur.user_id = u.user_update
|
|
left join sys_user sur on sur.user_id = u.user_update
|
|
|
|
+ left join sys_user sur1 on sur1.user_id = u.user_create
|
|
<where>
|
|
<where>
|
|
<if test="queryProperties != null and queryProperties != ''">
|
|
<if test="queryProperties != null and queryProperties != ''">
|
|
(
|
|
(
|