<?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.staff.mapper.StaffOnJobMapper">
|
<select id="staffOnJobListPage" resultType="com.ruoyi.staff.pojo.StaffOnJob">
|
SELECT
|
*
|
FROM staff_on_job
|
where 1=1
|
<if test="staffOnJob.staffState != null and staffOnJob.staffState != '' ">
|
AND staff_state = #{staffOnJob.staffState}
|
</if>
|
<if test="staffOnJob.staffName != null and staffOnJob.staffName != '' ">
|
AND staff_name LIKE CONCAT('%',#{staffOnJob.staffName},'%')
|
</if>
|
</select>
|
<select id="staffOnJobList" resultType="com.ruoyi.staff.pojo.StaffOnJob">
|
SELECT
|
*
|
FROM staff_on_job
|
where 1=1
|
<if test="staffOnJob.staffState != null and staffOnJob.staffState != '' ">
|
AND staff_state = #{staffOnJob.staffState}
|
</if>
|
<if test="staffOnJob.staffName != null and staffOnJob.staffName != '' ">
|
AND staff_name LIKE CONCAT('%',#{staffOnJob.staffName},'%')
|
</if>
|
</select>
|
</mapper>
|