<?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.business.SalaryParamMapper">
|
|
|
<select id="selectPage" resultType="doumeemes.dao.business.model.SalaryParam">
|
SELECT
|
sp.*,
|
m.`NAME` as materialName,
|
p.`NAME` as proceduresName
|
from
|
salary_param sp
|
LEFT JOIN procedures p on p.ID = sp.PROCEDURE_ID
|
LEFT JOIN material m on m.ID = bom.MATERIAL_ID
|
<where>
|
<if test="keyWord != null and keyWord != ''">
|
p`NAME` like concat('%',#{keyWord},'%')
|
or p.`CODE` = #{keyWord}</if>
|
<if test="procedureName != null and procedureName = ''"> and p.`NAME` like concat('%',#{procedureName},'%')</if>
|
<if test="type != null"> and sp.`TYPE` = #{type}</if>
|
</where>
|
</select>
|
</mapper>
|