中扬CRM客户关系管理系统
#
LSH
2023-12-02 afa3bc1e2f39f66f59ee9b15d6af16593acdc9a4
src/main/resources/mapper/CompanyTargetMapper.xml
@@ -11,12 +11,21 @@
        <result column="user_id" property="userId" />
        <result column="update_time" property="updateTime" />
        <result column="update_user_id" property="updateUserId" />
        <result column="staff" property="staff" />
        <result column="complete" property="complete" />
    </resultMap>
    <select id="selectByYear" resultMap="BaseResultMap">
        select * from man_company_target
    <select id="selectCompanyByYear" resultMap="BaseResultMap">
        select top 1 * from man_company_target
        where year = #{year}
        and staff is null
    </select>
    <select id="selectPersonByYear" resultMap="BaseResultMap">
        select top 1 * from man_company_target
        where year = #{year}
        and staff = #{staff}
    </select>
</mapper>