chengf
2025-08-19 c7255cb752c12bf5c0c5e2b8bac0ad82d4cdf71b
java110-db/src/main/resources/mapper/fee/FeePrintPageTemplateV1ServiceDaoImplMapper.xml
@@ -6,16 +6,16 @@
    <!-- 保存收据模板信息 add by wuxw 2018-07-03 -->
    <insert id="saveFeePrintPageTemplateInfo" parameterType="Map">
        insert into fee_print_page_template(
        name,template_id,url
        name,template_id,url,is_default
        ) values (
        #{name},#{templateId},#{url}
        #{name},#{templateId},#{url},#{isDefault}
        )
    </insert>
    <!-- 查询收据模板信息 add by wuxw 2018-07-03 -->
    <select id="getFeePrintPageTemplateInfo" parameterType="Map" resultType="Map">
        select t.name,t.status_cd,t.status_cd statusCd,t.template_id,t.template_id templateId,t.url
        select t.name,t.status_cd,t.status_cd statusCd,t.template_id,t.template_id templateId,t.url,t.is_default isDefault
        from fee_print_page_template t
        where 1 =1
        <if test="name !=null and name != ''">
@@ -29,6 +29,9 @@
        </if>
        <if test="url !=null and url != ''">
            and t.url= #{url}
        </if>
        <if test="isDefault !=null and isDefault != ''">
            and t.is_default= #{isDefault}
        </if>
        order by t.create_time desc
        <if test="page != -1 and page != null ">
@@ -50,6 +53,9 @@
        <if test="url !=null and url != ''">
            , t.url= #{url}
        </if>
        <if test="isDefault !=null and isDefault != ''">
            , t.is_default= #{isDefault}
        </if>
        where 1=1
        <if test="templateId !=null and templateId != ''">
            and t.template_id= #{templateId}
@@ -71,6 +77,9 @@
        <if test="templateId !=null and templateId != ''">
            and t.template_id= #{templateId}
        </if>
        <if test="isDefault !=null and isDefault != ''">
            and t.is_default= #{isDefault}
        </if>
        <if test="url !=null and url != ''">
            and t.url= #{url}
        </if>