中扬CRM客户关系管理系统
#
Junjie
2023-09-08 336b1ee18a1d1ff4230e8edb7faa43e3b5ef1ffc
src/main/resources/mapper/CstmrTypeMapper.xml
@@ -18,4 +18,14 @@
    </resultMap>
    <select id="selectByName" resultMap="BaseResultMap">
        select top 1 *
        from man_cstmr_type
        where 1=1
        and name = #{name}
        <if test="hostId != null">
            and host_id = #{hostId}
        </if>
    </select>
</mapper>