forked from liweijie/education
50 lines
2.2 KiB
XML
50 lines
2.2 KiB
XML
<?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.roomroot.jwgl.mapper.JYSXMapper">
|
|
|
|
<resultMap id="BaseResultMap" type="com.roomroot.jwgl.entity.JYSX">
|
|
<result column="教员编号" property="jybh" />
|
|
<result column="主任" property="zr" />
|
|
<result column="职务" property="zw" />
|
|
<result column="职务时间" property="zwsj" />
|
|
<result column="技术职务" property="jszw" />
|
|
<result column="技术职务时间" property="jszwsj" />
|
|
<result column="技术等级" property="jsdj" />
|
|
<result column="技术等级时间" property="jsdjsj" />
|
|
<result column="军衔文职" property="jxwz" />
|
|
<result column="军衔文职时间" property="jxwzsj" />
|
|
<result column="出生时间" property="cssj" />
|
|
<result column="学历" property="xl" />
|
|
<result column="学位" property="xw" />
|
|
<result column="入伍工作时间" property="rwgzsj" />
|
|
<result column="任代职经历" property="rdzjl" />
|
|
<result column="发表论文" property="fblw" />
|
|
<result column="教龄" property="jl" />
|
|
<result column="教龄计算日期" property="jljsrq" />
|
|
</resultMap>
|
|
|
|
<sql id="Base_Column_List">
|
|
教员编号, 主任, 职务, 职务时间, 技术职务, 技术职务时间, 技术等级, 技术等级时间,
|
|
军衔文职, 军衔文职时间, 出生时间, 学历, 学位, 入伍工作时间, 任代职经历,
|
|
发表论文, 教龄, 教龄计算日期
|
|
</sql>
|
|
|
|
<!-- 分页查询教员属性列表 -->
|
|
<select id="selectPageList" resultMap="BaseResultMap">
|
|
SELECT
|
|
<include refid="Base_Column_List" />
|
|
FROM "教员属性"
|
|
WHERE 1=1
|
|
<if test="jysx.jybh != null and jysx.jybh != ''">
|
|
AND 教员编号 = #{jysx.jybh}
|
|
</if>
|
|
<if test="jysx.xl != null and jysx.xl != ''">
|
|
AND 学历 LIKE CONCAT('%', #{jysx.xl}, '%')
|
|
</if>
|
|
<if test="jysx.xw != null and jysx.xw != ''">
|
|
AND 学位 LIKE CONCAT('%', #{jysx.xw}, '%')
|
|
</if>
|
|
</select>
|
|
|
|
</mapper>
|