init
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?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.ruoyi.cms.mapper.JobTitleMapper">
|
||||
|
||||
<resultMap type="JobTitle" id="JobTitleResult">
|
||||
<result property="jobId" column="job_id" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="jobName" column="job_name" />
|
||||
<result property="orderNum" column="order_num" />
|
||||
<result property="status" column="status" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectJobTitleVo">
|
||||
select job_id, parent_id, job_name, order_num, status, del_flag, create_by, create_time, update_by, update_time from job_title
|
||||
</sql>
|
||||
|
||||
<select id="selectJobTitleList" parameterType="JobTitle" resultMap="JobTitleResult">
|
||||
<include refid="selectJobTitleVo"/>
|
||||
<where> del_flag = '0'
|
||||
<if test="parentId != null "> and parent_id = #{parentId}</if>
|
||||
<if test="jobName != null and jobName != ''"> and job_name like concat('%', cast(#{jobName, jdbcType=VARCHAR} as varchar), '%')</if>
|
||||
<if test="orderNum != null "> and order_num = #{orderNum}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user