中扬CRM客户关系管理系统
#
Junjie
2023-09-06 883fa144574c77883be0f405a36a9c3cfb6c35d4
src/main/resources/mapper/PlanMapper.xml
@@ -34,6 +34,7 @@
        <result column="update_by" property="updateBy" />
        <result column="update_time" property="updateTime" />
        <result column="memo" property="memo" />
        <result column="user_xml_sel_phone" property="userXmlSelPhone" />
    </resultMap>
@@ -107,4 +108,34 @@
        ORDER BY mp.create_time DESC
    </select>
    <select id="selectPlanUrlPlanIdUrl" resultType="java.lang.String">
        select url from man_plan_url
        where 1=1
        and id=#{id}
    </select>
    <select id="selectPlanUrlPlanIdName" resultType="java.lang.String">
        select name from man_plan_url
        where 1=1
        and id=#{id}
    </select>
    <select id="selectPlanUrlPlanIdSize" resultType="java.lang.Long">
        select file_size from man_plan_url
        where 1=1
        and id=#{id}
    </select>
    <select id="selectPlanUrlId" resultType="java.lang.Integer">
        select id from man_plan_url
        where 1=1
        and plan_id=#{planId}
    </select>
    <insert id="increasePlanUrl">
        insert into man_plan_url(plan_id,url,name,file_size)
        values(#{planId},#{url},#{name},#{size})
    </insert>
</mapper>