zss
2024-06-21 d7abd9ebd3adf6bd7adac595fd1c070568432acb
performance-server/src/main/resources/mapper/EvaluateCompetentMapper.xml
@@ -18,6 +18,25 @@
        <result column="solidarity" property="solidarity" />
        <result column="proposal" property="proposal" />
        <result column="total" property="total" />
        <result column="name" property="name" />
        <result column="depart_lims" property="departLims" />
    </resultMap>
    <select id="getEvaluateCompetent" resultType="com.yuanchu.mom.pojo.EvaluateCompetent">
        select ec.*,u.name,
        dl.name depart_lims
        from evaluate_competent ec
        left join evaluate e on ec.evaluate_id = e.id
        left join user u on e.user_id = u.id
        left join department_lims dl on depart_lims_id like  dl.id
        where 1=1
        <if test="month!=null and month!=''">
            and e.month=#{month}
        </if>
        <if test="departLims!=null and departLims!=''">
            and dl.name like concat ('%',#{departLims},'%')
        </if>
        <if test="name!=null and name!=''">
            and u.name like concat ('%',#{name},'%')
        </if>
    </select>
</mapper>