1b9e8898
王富生
提交
|
1
2
3
4
5
6
7
8
9
10
11
12
|
<?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.zteits.oa.report.mapper.smapper.AsraOpSmapper">
<resultMap id="BaseResultMap" type="com.zteits.oa.report.domain.AsraOp">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="login_code" jdbcType="VARCHAR" property="loginCode" />
<result column="login_password" jdbcType="VARCHAR" property="loginPassword" />
<result column="op_name" jdbcType="VARCHAR" property="opName" />
<result column="email" jdbcType="VARCHAR" property="email" />
<result column="role_id" jdbcType="BIGINT" property="roleId" />
<result column="city_id" jdbcType="BIGINT" property="cityId" />
<result column="city_name" jdbcType="VARCHAR" property="cityName" />
|
1b9e8898
王富生
提交
|
13
14
15
16
17
18
19
20
21
|
<result column="is_remind_email" jdbcType="INTEGER" property="isRemindEmail" />
<result column="data_state" jdbcType="INTEGER" property="dataState" />
<result column="create_empid" jdbcType="VARCHAR" property="createEmpid" />
<result column="create_emp_name" jdbcType="VARCHAR" property="createEmpName" />
<result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
<result column="modfiy_empid" jdbcType="VARCHAR" property="modfiyEmpid" />
<result column="modfiy_emp_name" jdbcType="VARCHAR" property="modfiyEmpName" />
<result column="modfiy_date" jdbcType="TIMESTAMP" property="modfiyDate" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
4b2bb18a
xiejianpeng
登录权限处理
|
22
|
<result column="parent_id" jdbcType="BIGINT" property="parentId" />
|
1b9e8898
王富生
提交
|
23
24
|
</resultMap>
<sql id="Base_Column_List">
|
4b2bb18a
xiejianpeng
登录权限处理
|
25
26
27
|
id, login_code, login_password, op_name, email, role_id, city_id, city_name, is_remind_email,
data_state, create_empid, create_emp_name, create_date, modfiy_empid, modfiy_emp_name,
modfiy_date, remark, parent_id
|
1b9e8898
王富生
提交
|
28
29
|
</sql>
|
4b2bb18a
xiejianpeng
登录权限处理
|
30
|
<select id="queryAsraOpForList" parameterType="com.zteits.oa.api.dto.asraop.param.AsraOpQueryReq" resultMap="BaseResultMap">
|
9dc8e4e6
xiejianpeng
员工管理
|
31
|
select
|
4b2bb18a
xiejianpeng
登录权限处理
|
32
33
|
<include refid="Base_Column_List" />
from asra_op
|
e49e5b76
xiejianpeng
工时填报管理
|
34
|
where 1=1
|
9dc8e4e6
xiejianpeng
员工管理
|
35
|
<if test="id != null ">
|
4b2bb18a
xiejianpeng
登录权限处理
|
36
|
id = #{id}
|
9dc8e4e6
xiejianpeng
员工管理
|
37
|
</if>
|
2f6df64b
xiejianpeng
员工管理
|
38
|
<if test="loginCode != null and loginCode !=''">
|
4b2bb18a
xiejianpeng
登录权限处理
|
39
|
and login_code = #{loginCode,jdbcType=VARCHAR}
|
1b9e8898
王富生
提交
|
40
41
|
</if>
<if test="opName != null and opName != ''">
|
4b2bb18a
xiejianpeng
登录权限处理
|
42
|
and op_name like concat('%','${opName}','%')
|
1b9e8898
王富生
提交
|
43
44
|
</if>
<if test="email != null and email != ''">
|
4b2bb18a
xiejianpeng
登录权限处理
|
45
|
and email = #{email,jdbcType=VARCHAR}
|
1b9e8898
王富生
提交
|
46
|
</if>
|
9dc8e4e6
xiejianpeng
员工管理
|
47
|
<if test="opIdLists != null">
|
4b2bb18a
xiejianpeng
登录权限处理
|
48
|
and id in
|
2f6df64b
xiejianpeng
员工管理
|
49
50
51
52
|
<foreach collection="opIdLists" item="opId" open="(" close=")" separator="," >
#{opId}
</foreach>
</if>
|
4b2bb18a
xiejianpeng
登录权限处理
|
53
54
55
56
57
58
|
<if test="opParentIdLists != null">
and parent_id in
<foreach collection="opParentIdLists" item="opId" open="(" close=")" separator="," >
#{opId}
</foreach>
</if>
|
1b9e8898
王富生
提交
|
59
60
61
|
</select>
</mapper>
|