Compare commits
No commits in common. "36bc4041fa2a9d41659400aa81c2590ec5135bea" and "c2caa62360d1debafef0b852ce97c8f7651b7c71" have entirely different histories.
36bc4041fa
...
c2caa62360
|
|
@ -1,8 +0,0 @@
|
||||||
<?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.zcloud.basic.info.persistence.mapper.ImgFilesMapper">
|
|
||||||
|
|
||||||
</mapper>
|
|
||||||
|
|
||||||
|
|
@ -1,85 +0,0 @@
|
||||||
<?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.zcloud.basic.info.persistence.mapper.UserMapper">
|
|
||||||
<select id="selectListAll" resultType="com.zcloud.basic.info.persistence.dataobject.UserDO">
|
|
||||||
select
|
|
||||||
u.id,
|
|
||||||
u.user_id,
|
|
||||||
u.username,
|
|
||||||
u.name,
|
|
||||||
u.corpinfo_id,
|
|
||||||
c.corp_name,
|
|
||||||
u.user_type,
|
|
||||||
u.department_id,
|
|
||||||
d.name as department_name,
|
|
||||||
u.post_id,
|
|
||||||
p.post_name,
|
|
||||||
u.role_id,
|
|
||||||
u.email,
|
|
||||||
u.phone,
|
|
||||||
u.personnel_type,
|
|
||||||
u.personnel_type_name,
|
|
||||||
u.nation,
|
|
||||||
u.nation_name,
|
|
||||||
u.user_id_card,
|
|
||||||
u.create_id,
|
|
||||||
u.create_name,
|
|
||||||
u.create_time,
|
|
||||||
u.tenant_id,
|
|
||||||
u.org_id
|
|
||||||
from user u
|
|
||||||
left join corp_info c on c.id = u.corpinfo_id
|
|
||||||
left join department d on d.id = u.department_id
|
|
||||||
left join post p on p.id = u.post_id
|
|
||||||
<where>
|
|
||||||
u.delete_enum = 'FALSE'
|
|
||||||
<if test="params.corpinfoId != null">
|
|
||||||
and u.corpinfo_id = #{params.corpinfoId}
|
|
||||||
</if>
|
|
||||||
<if test="params.departmentId != null">
|
|
||||||
and u.department_id = #{params.departmentId}
|
|
||||||
</if>
|
|
||||||
<if test="params.postId != null">
|
|
||||||
and u.post_id = #{params.postId}
|
|
||||||
</if>
|
|
||||||
</where>
|
|
||||||
order by
|
|
||||||
u.create_time desc
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="selectUserPage" resultType="com.zcloud.basic.info.persistence.dataobject.UserDO">
|
|
||||||
select
|
|
||||||
u.id,
|
|
||||||
u.user_id,
|
|
||||||
u.username,
|
|
||||||
u.name,
|
|
||||||
u.corpinfo_id,
|
|
||||||
c.corp_name,
|
|
||||||
u.user_type,
|
|
||||||
u.department_id,
|
|
||||||
d.name as department_name,
|
|
||||||
u.post_id,
|
|
||||||
p.post_name,
|
|
||||||
u.role_id,
|
|
||||||
u.email,
|
|
||||||
u.phone,
|
|
||||||
u.personnel_type,
|
|
||||||
u.personnel_type_name,
|
|
||||||
u.nation,
|
|
||||||
u.nation_name,
|
|
||||||
u.user_id_card,
|
|
||||||
u.create_id,
|
|
||||||
u.create_name,
|
|
||||||
u.create_time,
|
|
||||||
u.tenant_id,
|
|
||||||
u.org_id
|
|
||||||
from user u
|
|
||||||
left join corp_info c on c.id = u.corpinfo_id
|
|
||||||
left join department d on d.id = u.department_id
|
|
||||||
left join post p on p.id = u.post_id
|
|
||||||
${ew.customSqlSegment}
|
|
||||||
</select>
|
|
||||||
</mapper>
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue