This commit is contained in:
2025-07-01 17:54:58 +08:00
commit 57dcd609e2
5136 changed files with 346184 additions and 0 deletions

View File

@@ -0,0 +1,220 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zhwl.printset.mapper.ZdyPrintLogMapper">
<resultMap type="ZdyPrintLog" id="ZdyPrintLogResult">
<result property="id" column="id"/>
<result property="ticketId" column="ticket_id"/>
<result property="orderId" column="order_id"/>
<result property="orderItemId" column="order_item_id"/>
<result property="orderDetailId" column="order_detail_id"/>
<result property="orderDetailChildId" column="order_detail_child_id"/>
<result property="printType" column="print_type"/>
<result property="printNum" column="print_num"/>
<result property="adminId" column="admin_id"/>
<result property="adminName" column="admin_name"/>
<result property="userId" column="user_id"/>
<result property="userName" column="user_name"/>
<result property="createTime" column="create_time"/>
<result property="printStatus" column="print_status"/>
<result property="failMsg" column="fail_msg"/>
<result property="ticketName" column="ticket_name"/>
</resultMap>
<sql id="selectZdyPrintLogVo">
select id, ticket_id,ticket_name, order_id, order_item_id, order_detail_id, order_detail_child_id, print_type, print_num, admin_id, admin_name, user_id, user_name, create_time, print_status, fail_msg
from zdy_print_log
</sql>
<select id="selectZdyPrintLogList" parameterType="ZdyPrintLog" resultMap="ZdyPrintLogResult">
<include refid="selectZdyPrintLogVo"/>
<where>
<if test="ticketId != null ">
and ticket_id = #{ticketId}
</if>
<if test="orderId != null ">
and order_id = #{orderId}
</if>
<if test="orderItemId != null ">
and order_item_id = #{orderItemId}
</if>
<if test="orderDetailId != null ">
and order_detail_id = #{orderDetailId}
</if>
<if test="orderDetailChildId != null ">
and order_detail_child_id = #{orderDetailChildId}
</if>
<if test="printType != null and printType != ''">
and print_type = #{printType}
</if>
<if test="printNum != null ">
and print_num = #{printNum}
</if>
<if test="adminId != null ">
and admin_id = #{adminId}
</if>
<if test="adminName != null and adminName != ''">
and admin_name like concat('%', #{adminName}, '%')
</if>
<if test="userId != null ">
and user_id = #{userId}
</if>
<if test="userName != null and userName != ''">
and user_name like concat('%', #{userName}, '%')
</if>
<if test="printStatus != null ">
and print_status = #{printStatus}
</if>
<if test="ticketName != null and ticketName != ''">
and ticket_name like concat('%', #{ticketName}, '%')
</if>
</where>
order by create_time desc
</select>
<select id="selectZdyPrintLogById" parameterType="Long"
resultMap="ZdyPrintLogResult">
<include refid="selectZdyPrintLogVo"/>
where id = #{id}
</select>
<insert id="insertZdyPrintLog" parameterType="ZdyPrintLog" useGeneratedKeys="true"
keyProperty="id">
insert into zdy_print_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="ticketId != null">ticket_id,
</if>
<if test="orderId != null">order_id,
</if>
<if test="orderItemId != null">order_item_id,
</if>
<if test="orderDetailId != null">order_detail_id,
</if>
<if test="orderDetailChildId != null">order_detail_child_id,
</if>
<if test="printType != null">print_type,
</if>
<if test="printNum != null">print_num,
</if>
<if test="adminId != null">admin_id,
</if>
<if test="adminName != null">admin_name,
</if>
<if test="userId != null">user_id,
</if>
<if test="userName != null">user_name,
</if>
<if test="createTime != null">create_time,
</if>
<if test="printStatus != null">print_status,
</if>
<if test="failMsg != null">fail_msg,
</if>
<if test="ticketName != null">ticket_name,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="ticketId != null">#{ticketId},
</if>
<if test="orderId != null">#{orderId},
</if>
<if test="orderItemId != null">#{orderItemId},
</if>
<if test="orderDetailId != null">#{orderDetailId},
</if>
<if test="orderDetailChildId != null">#{orderDetailChildId},
</if>
<if test="printType != null">#{printType},
</if>
<if test="printNum != null">#{printNum},
</if>
<if test="adminId != null">#{adminId},
</if>
<if test="adminName != null">#{adminName},
</if>
<if test="userId != null">#{userId},
</if>
<if test="userName != null">#{userName},
</if>
<if test="createTime != null">#{createTime},
</if>
<if test="printStatus != null">#{printStatus},
</if>
<if test="failMsg != null">#{failMsg},
</if>
<if test="ticketName != null">#{ticketName},
</if>
</trim>
</insert>
<update id="updateZdyPrintLog" parameterType="ZdyPrintLog">
update zdy_print_log
<trim prefix="SET" suffixOverrides=",">
<if test="ticketId != null">ticket_id =
#{ticketId},
</if>
<if test="orderId != null">order_id =
#{orderId},
</if>
<if test="orderItemId != null">order_item_id =
#{orderItemId},
</if>
<if test="orderDetailId != null">order_detail_id =
#{orderDetailId},
</if>
<if test="orderDetailChildId != null">order_detail_child_id =
#{orderDetailChildId},
</if>
<if test="printType != null">print_type =
#{printType},
</if>
<if test="printNum != null">print_num =
#{printNum},
</if>
<if test="adminId != null">admin_id =
#{adminId},
</if>
<if test="adminName != null">admin_name =
#{adminName},
</if>
<if test="userId != null">user_id =
#{userId},
</if>
<if test="userName != null">user_name =
#{userName},
</if>
<if test="createTime != null">create_time =
#{createTime},
</if>
<if test="printStatus != null">print_status =
#{printStatus},
</if>
<if test="failMsg != null">fail_msg =
#{failMsg},
</if>
<if test="ticketName != null">ticket_name =
#{ticketName},
</if>
</trim>
where id = #{id}
</update>
<delete id="deleteZdyPrintLogById" parameterType="Long">
delete from zdy_print_log where id = #{id}
</delete>
<delete id="deleteZdyPrintLogByIds" parameterType="String">
delete from zdy_print_log where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<select id="selectPrintNum" resultType="Integer">
select ifnull(sum(print_num),0) as printNum from zdy_print_log
where order_detail_id = #{orderDetailId} and print_type = #{printType}
</select>
</mapper>

View File

@@ -0,0 +1,196 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zhwl.printset.mapper.ZdyPrintModuleMapper">
<resultMap type="ZdyPrintModule" id="ZdyPrintModuleResult">
<result property="id" column="id"/>
<result property="scenicId" column="scenic_id"/>
<result property="name" column="name"/>
<result property="type" column="type"/>
<result property="category" column="category"/>
<result property="table" column="table"/>
<result property="field" column="field"/>
<result property="fieldType" column="field_type"/>
<result property="dictType" column="dict_type"/>
<result property="createTime" column="create_time"/>
<result property="updateTime" column="update_time"/>
<result property="imageUrl" column="image_url"/>
<result property="sort" column="sort"/>
<result property="eateryType" column="eatery_type"/>
<result property="statisticType" column="statistic_type"/>
</resultMap>
<sql id="selectZdyPrintModuleVo">
select zpm.id, scenic_id, zpm.name, zpm.type, category, `table`, field, field_type, dict_type, zpm.create_time,
zpm.update_time, image_url, sort, eatery_type, statistic_type
from zdy_print_module zpm
</sql>
<select id="selectZdyPrintModuleList" parameterType="ZdyPrintModule" resultMap="ZdyPrintModuleResult">
<include refid="selectZdyPrintModuleVo"/>
LEFT JOIN zdy_scenic zs ON zs.id = zpm.scenic_id
LEFT JOIN sys_dept d ON d.dept_id = zs.dept_id
<where>
<if test="scenicId != null ">
and scenic_id = #{scenicId}
</if>
<if test="name != null and name != ''">
and name like concat('%', #{name}, '%')
</if>
<if test="type != null ">
and type = #{type}
</if>
<if test="category != null ">
and category = #{category}
</if>
<if test="table != null and table != ''">
and table = #{table}
</if>
<if test="fieldType != null and fieldType != ''">
and field_type = #{fieldType}
</if>
${params.dataScope}
</where>
order by sort
</select>
<select id="selectZdyPrintModuleById" parameterType="Integer"
resultMap="ZdyPrintModuleResult">
<include refid="selectZdyPrintModuleVo"/>
where id = #{id}
</select>
<select id="selectOrderInfo" resultType="java.lang.Object">
select ${field} from ${table}
where id = #{orderId}
</select>
<select id="selectJsonArray" resultType="com.alibaba.fastjson2.JSONObject">
select ${field} from ${table}
where order_id = #{orderId}
</select>
<insert id="insertZdyPrintModule" parameterType="ZdyPrintModule" useGeneratedKeys="true"
keyProperty="id">
insert into zdy_print_module
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="scenicId != null">scenic_id,
</if>
<if test="name != null and name != ''">name,
</if>
<if test="type != null">type,
</if>
<if test="category != null">category,
</if>
<if test="table != null">table,
</if>
<if test="field != null">field,
</if>
<if test="fieldType != null">field_type,
</if>
<if test="dictType != null">dict_type,
</if>
<if test="createTime != null">create_time,
</if>
<if test="updateTime != null">update_time,
</if>
<if test="imageUrl != null">image_url,
</if>
<if test="sort != null">sort,
</if>
<if test="eateryType != null">eatery_type,
</if>
<if test="statisticType != null">statistic_type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="scenicId != null">#{scenicId},
</if>
<if test="name != null and name != ''">#{name},
</if>
<if test="type != null">#{type},
</if>
<if test="category != null">#{category},
</if>
<if test="table != null">#{table},
</if>
<if test="field != null">#{field},
</if>
<if test="fieldType != null">#{fieldType},
</if>
<if test="dictType != null">#{dictType},
</if>
<if test="createTime != null">#{createTime},
</if>
<if test="updateTime != null">#{updateTime},
</if>
<if test="imageUrl != null">#{imageUrl},
</if>
<if test="sort != null">#{sort},
</if>
<if test="eateryType != null">#{eateryType},
</if>
<if test="statisticType != null">#{statisticType},
</if>
</trim>
</insert>
<update id="updateZdyPrintModule" parameterType="ZdyPrintModule">
update zdy_print_module
<trim prefix="SET" suffixOverrides=",">
<if test="name != null and name != ''">`name` =
#{name},
</if>
<if test="type != null">`type` =
#{type},
</if>
<if test="category != null">category =
#{category},
</if>
<if test="table != null">`table` =
#{table},
</if>
<if test="field != null">`field` =
#{field},
</if>
<if test="createTime != null">create_time =
#{createTime},
</if>
<if test="updateTime != null">update_time =
#{updateTime},
</if>
<if test="imageUrl != null">image_url =
#{imageUrl},
</if>
<if test="fieldType != null">field_type =
#{fieldType},
</if>
<if test="dictType != null">dict_type =
#{dictType},
</if>
<if test="sort != null">sort =
#{sort},
</if>
<if test="eateryType != null">eatery_type =
#{eateryType},
</if>
<if test="statisticType != null">statistic_type =
#{statisticType},
</if>
</trim>
where id = #{id}
</update>
<delete id="deleteZdyPrintModuleById" parameterType="Integer">
delete
from zdy_print_module
where id = #{id}
</delete>
<delete id="deleteZdyPrintModuleByIds" parameterType="String">
delete from zdy_print_module where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,206 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zhwl.printset.mapper.ZdyPrintTemplateMapper">
<resultMap type="ZdyPrintTemplate" id="ZdyPrintTemplateResult">
<result property="id" column="id"/>
<result property="deptId" column="dept_id"/>
<result property="name" column="name"/>
<result property="type" column="type"/>
<result property="width" column="width"/>
<result property="height" column="height"/>
<result property="margins" column="margins"/>
<result property="image" column="image"/>
<result property="createTime" column="create_time"/>
<result property="imageModule" column="image_module"/>
<result property="useFlag" column="use_flag"/>
<result property="printDevice" column="print_device"/>
<result property="category" column="category"/>
</resultMap>
<sql id="selectZdyPrintTemplateVo">
select te.id,
te.dept_id,
te.name,
te.type,
te.width,
te.height,
te.margins,
te.image,
te.create_time,
te.image_module,
te.use_flag,
te.print_device,
te.category
from zdy_print_template te
</sql>
<select id="selectZdyPrintTemplateList" parameterType="ZdyPrintTemplate" resultMap="ZdyPrintTemplateResult">
<include refid="selectZdyPrintTemplateVo"/>
left join sys_dept d on d.dept_id = te.dept_id
<where>
<if test="deptId != null ">
and dept_id = #{deptId}
</if>
<if test="name != null and name != ''">
and name like concat('%', #{name}, '%')
</if>
<if test="type != null ">
and type = #{type}
</if>
<if test="width != null ">
and width = #{width}
</if>
<if test="height != null ">
and height = #{height}
</if>
<if test="margins != null ">
and margins = #{margins}
</if>
<if test="image != null and image != ''">
and image = #{image}
</if>
<if test="useFlag != null and useFlag != ''">
and use_flag = #{useFlag}
</if>
<if test="category != null and category != ''">
and category = #{category}
</if>
${params.dataScope}
</where>
</select>
<select id="selectZdyPrintTemplateById" parameterType="Integer"
resultMap="ZdyPrintTemplateResult">
<include refid="selectZdyPrintTemplateVo"/>
where id = #{id}
</select>
<select id="selectZdyPrintTemplateByType" resultMap="ZdyPrintTemplateResult">
<include refid="selectZdyPrintTemplateVo"/>
<where>
and use_flag = "Y"
<if test="deptId != null">and dept_id = #{deptId}</if>
<if test="type != null">and type= #{type}</if>
</where>
</select>
<insert id="insertZdyPrintTemplate" parameterType="ZdyPrintTemplate" useGeneratedKeys="true"
keyProperty="id">
insert into zdy_print_template
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="deptId != null">dept_id,
</if>
<if test="name != null and name != ''">name,
</if>
<if test="type != null">type,
</if>
<if test="width != null">width,
</if>
<if test="height != null">height,
</if>
<if test="margins != null">margins,
</if>
<if test="image != null">image,
</if>
<if test="createTime != null">create_time,
</if>
<if test="imageModule != null and imageModule != ''">
image_module,
</if>
<if test="useFlag != null and useFlag != ''">
use_flag,
</if>
<if test="printDevice != null and printDevice != ''">
print_device,
</if>
<if test="category != null and category != ''">
category,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="deptId != null">#{deptId},
</if>
<if test="name != null and name != ''">#{name},
</if>
<if test="type != null">#{type},
</if>
<if test="width != null">#{width},
</if>
<if test="height != null">#{height},
</if>
<if test="margins != null">#{margins},
</if>
<if test="image != null">#{image},
</if>
<if test="createTime != null">#{createTime},
</if>
<if test="imageModule != null and imageModule != ''">#{imageModule},
</if>
<if test="useFlag != null and useFlag != ''">#{useFlag},
</if>
<if test="printDevice != null and printDevice != ''">#{printDevice},
</if>
<if test="category != null and category != ''">#{category},
</if>
</trim>
</insert>
<update id="updateZdyPrintTemplate" parameterType="ZdyPrintTemplate">
update zdy_print_template
<trim prefix="SET" suffixOverrides=",">
<if test="deptId != null">dept_id =
#{deptId},
</if>
<if test="name != null and name != ''">name =
#{name},
</if>
<if test="type != null">type =
#{type},
</if>
<if test="width != null">width =
#{width},
</if>
<if test="height != null">height =
#{height},
</if>
<if test="margins != null">margins =
#{margins},
</if>
<if test="image != null">image =
#{image},
</if>
<if test="createTime != null">create_time =
#{createTime},
</if>
<if test="imageModule != null">image_module =
#{imageModule},
</if>
<if test="useFlag != null">use_flag =
#{useFlag},
</if>
<if test="printDevice != null">print_device =
#{printDevice},
</if>
<if test="category != null">category =
#{category},
</if>
</trim>
where id = #{id}
</update>
<delete id="deleteZdyPrintTemplateById" parameterType="Integer">
delete
from zdy_print_template
where id = #{id}
</delete>
<delete id="deleteZdyPrintTemplateByIds" parameterType="String">
delete from zdy_print_template where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,253 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zhwl.printset.mapper.ZdyPrintTemplateModuleMapper">
<resultMap type="ZdyPrintTemplateModule" id="ZdyPrintTemplateModuleResult">
<result property="id" column="id"/>
<result property="templateId" column="template_id"/>
<result property="content" column="content"/>
<result property="textAlign" column="text_align"/>
<result property="fontSize" column="font_size"/>
<result property="fontWeight" column="font_weight"/>
<result property="height" column="height"/>
<result property="fontColor" column="font_color"/>
<result property="backgroudColor" column="backgroud_color"/>
<result property="createTime" column="create_time"/>
<result property="sort" column="sort"/>
<result property="isAuto" column="is_auto"/>
<result property="pageDistance" column="page_distance"/>
<result property="imageDistance" column="image_distance"/>
<result property="imageUrl" column="image_url"/>
<result property="separateType" column="separate_type"/>
<result property="separateStyle" column="separate_style"/>
<result property="title" column="title"/>
<result property="remark" column="remark"/>
<result property="systemModuleId" column="system_module_id"/>
<result property="type" column="type"/>
</resultMap>
<sql id="selectZdyPrintTemplateModuleVo">
select id,
template_id,
content,
text_align,
font_size,
font_weight,
height,
font_color,
backgroud_color,
create_time,
sort,
is_auto,
page_distance,
image_distance,
image_url,
separate_type,
separate_style,
title,
remark,
system_module_id,
type
from zdy_print_template_module ptm
</sql>
<select id="selectZdyPrintTemplateModuleList" parameterType="ZdyPrintTemplateModule"
resultMap="ZdyPrintTemplateModuleResult">
<include refid="selectZdyPrintTemplateModuleVo"/>
<where>
<if test="templateId != null ">
and ptm.template_id = #{templateId}
</if>
</where>
</select>
<select id="selectZdyPrintTemplateModuleById" parameterType="Integer"
resultMap="ZdyPrintTemplateModuleResult">
<include refid="selectZdyPrintTemplateModuleVo"/>
where id = #{id}
</select>
<insert id="insertZdyPrintTemplateModule" parameterType="ZdyPrintTemplateModule" useGeneratedKeys="true"
keyProperty="id">
insert into zdy_print_template_module
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="templateId != null">template_id,
</if>
<if test="content != null and content != ''">content,
</if>
<if test="textAlign != null">text_align,
</if>
<if test="fontSize != null">font_size,
</if>
<if test="fontWeight != null">font_weight,
</if>
<if test="height != null">height,
</if>
<if test="fontColor != null">font_color,
</if>
<if test="backgroudColor != null">backgroud_color,
</if>
<if test="createTime != null">create_time,
</if>
<if test="sort != null">sort,
</if>
<if test="isAuto != null">is_auto,
</if>
<if test="pageDistance != null">page_distance,
</if>
<if test="imageDistance != null">image_distance,
</if>
<if test="imageUrl != null">image_url,
</if>
<if test="separateType != null">separate_type,
</if>
<if test="separateStyle != null">separate_style,
</if>
<if test="title != null and title != ''">title,
</if>
<if test="remark != null and remark != ''">remark,
</if>
<if test="systemModuleId != null">system_module_id,
</if>
<if test="type != null">type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="templateId != null">#{templateId},
</if>
<if test="content != null and content != ''">#{content},
</if>
<if test="textAlign != null">#{textAlign},
</if>
<if test="fontSize != null">#{fontSize},
</if>
<if test="fontWeight != null">#{fontWeight},
</if>
<if test="height != null">#{height},
</if>
<if test="fontColor != null">#{fontColor},
</if>
<if test="backgroudColor != null">#{backgroudColor},
</if>
<if test="createTime != null">#{createTime},
</if>
<if test="sort != null">#{sort},
</if>
<if test="isAuto != null">#{isAuto},
</if>
<if test="pageDistance != null">#{pageDistance},
</if>
<if test="imageDistance != null">#{imageDistance},
</if>
<if test="imageUrl != null">#{imageUrl},
</if>
<if test="separateType != null">#{separateType},
</if>
<if test="separateStyle != null">#{separateStyle},
</if>
<if test="title != null">#{title},
</if>
<if test="remark != null and remark != ''">#{remark},
</if>
<if test="systemModuleId != null">#{systemModuleId},
</if>
<if test="type != null">#{type},
</if>
</trim>
</insert>
<update id="updateZdyPrintTemplateModule" parameterType="ZdyPrintTemplateModule">
update zdy_print_template_module
<trim prefix="SET" suffixOverrides=",">
<if test="templateId != null">template_id =
#{templateId},
</if>
<if test="content != null and content != ''">content =
#{content},
</if>
<if test="textAlign != null">text_align =
#{textAlign},
</if>
<if test="fontSize != null">font_size =
#{fontSize},
</if>
<if test="fontWeight != null">font_weight =
#{fontWeight},
</if>
<if test="height != null">height =
#{height},
</if>
<if test="fontColor != null">font_color =
#{fontColor},
</if>
<if test="backgroudColor != null">backgroud_color =
#{backgroudColor},
</if>
<if test="createTime != null">create_time =
#{createTime},
</if>
<if test="sort != null">sort =
#{sort},
</if>
<if test="isAuto != null">is_auto =
#{isAuto},
</if>
<if test="pageDistance != null">page_distance =
#{pageDistance},
</if>
<if test="imageDistance != null">image_distance =
#{imageDistance},
</if>
<if test="imageUrl != null">image_url =
#{imageUrl},
</if>
<if test="separateType != null">separate_type =
#{separateType},
</if>
<if test="separateStyle != null">separate_style =
#{separateStyle},
</if>
<if test="title != null">title =
#{title},
</if>
<if test="remark != null">remark =
#{remark},
</if>
<if test="systemModuleId != null">system_module_id =
#{systemModuleId},
</if>
<if test="type != null">type =
#{type},
</if>
</trim>
where id = #{id}
</update>
<delete id="deleteZdyPrintTemplateModuleById" parameterType="Integer">
delete
from zdy_print_template_module
where id = #{id}
</delete>
<delete id="deleteZdyPrintTemplateModuleByIds" parameterType="String">
delete from zdy_print_template_module where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<select id="selectZdyPrintTemplateModuleByTempId" parameterType="Integer"
resultMap="ZdyPrintTemplateModuleResult">
<include refid="selectZdyPrintTemplateModuleVo"/>
where template_id = #{template_id}
</select>
<delete id="deleteZdyPrintTemplateModuleByTempId" parameterType="Integer">
delete
from zdy_print_template_module
where template_id = #{template_id}
</delete>
</mapper>