包头bug修改
This commit is contained in:
parent
5b4034098d
commit
9654d25975
@ -40,18 +40,20 @@
|
||||
join enterprise_info ei on ei.id=wi.enterprise_id
|
||||
where wi.project_sn=#{projectSn}
|
||||
and (ei.id=#{constructionUnit} or ei.id=#{epcContractor})
|
||||
and su.user_id = (select r.user_id from base_role_user r join base_role br on br.role_id=r.role_id where br.role_name='施工经理')
|
||||
and su.user_id in (select r.user_id from base_role_user r join base_role br on br.role_id=r.role_id where
|
||||
br.role_name='施工经理')
|
||||
</select>
|
||||
|
||||
<select id="getUserIdBySceneExposeSpecial2" resultType="java.lang.Long">
|
||||
select
|
||||
distinct su.user_id
|
||||
from system_user su
|
||||
join worker_info wi on wi.id=su.worker_id
|
||||
join enterprise_info ei on ei.id=wi.enterprise_id
|
||||
where wi.project_sn=#{projectSn}
|
||||
and ei.id=#{supervisingUnit}
|
||||
and su.user_id = (select r.user_id from base_role_user r join base_role br on br.role_id=r.role_id where br.role_name='总监')
|
||||
</select>
|
||||
select
|
||||
distinct su.user_id
|
||||
from system_user su
|
||||
join worker_info wi on wi.id=su.worker_id
|
||||
join enterprise_info ei on ei.id=wi.enterprise_id
|
||||
where wi.project_sn=#{projectSn}
|
||||
and ei.id=#{supervisingUnit}
|
||||
and su.user_id in (select r.user_id from base_role_user r join base_role br on br.role_id=r.role_id where
|
||||
br.role_name='总监')
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
@ -269,10 +269,10 @@
|
||||
order by a.enter_date desc
|
||||
</when>
|
||||
<when test="param.orderBy == 'numAsc'.toString()">
|
||||
order by a.num asc
|
||||
ORDER BY CAST(REGEXP_SUBSTR(a.num, '[0-9]+$') AS UNSIGNED) asc
|
||||
</when>
|
||||
<when test="param.orderBy == 'numDesc'.toString()">
|
||||
order by a.num desc
|
||||
order by CAST(REGEXP_SUBSTR(a.num, '[0-9]+$') AS UNSIGNED) desc
|
||||
</when>
|
||||
<when test="param.orderBy == 'enterpriseNameAsc'.toString()">
|
||||
order by en.enterprise_name asc
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user