| | |
| | | <!-- 保存收据模板信息 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 != ''"> |
| | |
| | | </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 "> |
| | |
| | | <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} |
| | |
| | | <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> |