| | |
| | | from |
| | | salary_param sp |
| | | LEFT JOIN procedures p on p.ID = sp.PROCEDURE_ID |
| | | LEFT JOIN material m on m.ID = sp.MATERIAL_ID |
| | | LEFT JOIN material_distribute md on md.ID = sp.MATERIAL_ID |
| | | LEFT JOIN material m on m.ID = md.MATERIAL_ID |
| | | LEFT JOIN `system_user` su on su.ID = sp.CREATE_USER |
| | | where |
| | | sp.DELETED = 0 |
| | | <if test="model.keyWord != null and model.keyWord != ''"> |
| | | and ( p`NAME` like concat('%',#{model.keyWord},'%') |
| | | or p.`CODE` = #{model.keyWord})</if> |
| | | and ( m.`NAME` like concat('%',#{model.keyWord},'%') |
| | | or m.`CODE` = #{model.keyWord})</if> |
| | | <if test="model.procedureName != null and model.procedureName != ''"> and p.`NAME` like concat('%',#{model.procedureName},'%')</if> |
| | | <if test="model.type != null"> and sp.`TYPE` = #{model.type}</if> |
| | | order by sp.CREATE_TIME desc |
| | | </select> |
| | | </mapper> |