中扬CRM客户关系管理系统
#
LSH
2023-11-24 a57112aee7438f4f550d1dd5a1b93e2a28fb386c
src/main/resources/mapper/PlanUrlMapper.xml
@@ -21,28 +21,32 @@
        select id from man_plan_url
        where 1=1
        and plan_id=#{planId}
    </select>
    <select id="selectPlanUrlIdByPlanId2" resultType="java.lang.Integer">
        select id from man_plan_url
        where 1=1
        and plan_id=#{planId}
        and type = #{type}
        and hide_url = #{hideUrl}
        <if test="type != 0">
            and type=#{type}
        </if>
        <if test="hideUrl != 0">
            and hide_url=#{hideUrl}
        </if>
        <if test="status != 0">
            and status=#{status}
        </if>
        or (plan_id=#{planId} and hide_url=0 )
    </select>
    <select id="selectPlanUrlByPlanId" resultMap="BaseResultMap">
        select * from man_plan_url
        where 1=1
        and plan_id=#{planId}
    </select>
    <select id="selectPlanUrlByPlanId2" resultMap="BaseResultMap">
        select * from man_plan_url
        where 1=1
        and plan_id=#{planId}
        and type = #{type}
        and hide_url = #{hideUrl}
        <if test="type != 0">
            and type=#{type}
        </if>
        <if test="hideUrl != 0">
            and hide_url=#{hideUrl}
        </if>
        <if test="status != 0">
            and status=#{status}
        </if>
        or (plan_id=#{planId} and hide_url=0 )
    </select>
</mapper>