<?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="doumeemes.dao.ext.CompanyPositionExtMapper">
|
|
<!-- 管理页面查询 -->
|
<resultMap id="CompanyPositionExtListVO" type="doumeemes.dao.ext.vo.CompanyPositionExtListVO" autoMapping="true">
|
<id column="ID" jdbcType="INTEGER" property="id"/>
|
</resultMap>
|
<select id="selectList" parameterType="doumeemes.dao.ext.dto.QueryCompanyPositionExtDTO" resultMap="CompanyPositionExtListVO">
|
SELECT
|
`a`.`ID`,
|
`a`.`DELETED`,
|
`a`.`CREATE_USER`,
|
`a`.`CREATE_TIME`,
|
`a`.`UPDATE_USER`,
|
`a`.`UPDATE_TIME`,
|
`a`.`CODE`,
|
`a`.`NAME`,
|
`a`.`STATUS`,
|
`a`.`REMARK`,
|
`a`.`COMPANY_ID`
|
FROM `company_position` `a`
|
<where>
|
<if test="id != null">
|
AND `a`.`ID` = #{id}
|
</if>
|
<if test="deleted != null">
|
AND `a`.`DELETED` = #{deleted}
|
</if>
|
<if test="createUser != null">
|
AND `a`.`CREATE_USER` = #{createUser}
|
</if>
|
<if test="createTime != null">
|
AND `a`.`CREATE_TIME` = #{createTime}
|
</if>
|
<if test="updateUser != null">
|
AND `a`.`UPDATE_USER` = #{updateUser}
|
</if>
|
<if test="updateTime != null">
|
AND `a`.`UPDATE_TIME` = #{updateTime}
|
</if>
|
<if test="code != null and code != ''">
|
AND `a`.`CODE` = #{code}
|
</if>
|
<if test="name != null and name != ''">
|
AND `a`.`NAME` like concat('%',#{name},'%')
|
</if>
|
<if test="status != null">
|
AND `a`.`STATUS` = #{status}
|
</if>
|
<if test="remark != null and remark != ''">
|
AND `a`.`REMARK` = #{remark}
|
</if>
|
<if test="companyId != null">
|
AND `a`.`COMPANY_ID` = #{companyId}
|
</if>
|
</where>
|
|
order by `a`.`CREATE_TIME` desc
|
</select>
|
</mapper>
|