压缩包上传修改
This commit is contained in:
@@ -12,15 +12,20 @@
|
||||
<result column="column" property="column" />
|
||||
<result column="column_name" property="columnName" />
|
||||
<result column="is_default" property="isDefault" />
|
||||
<result column="start_content_repeat_order" property="startContentRepeatOrder" />
|
||||
<result column="end_content_repeat_order" property="endContentRepeatOrder" />
|
||||
<result column="fatch_order" property="fatchOrder" />
|
||||
</resultMap>
|
||||
<select id="listByTemplateId" resultMap="BaseResultMap">
|
||||
select fr.* from fatch_rule fr join template_fatch_rule tfr on fr.id=tfr.fatch_rule_id
|
||||
where template_id=#{templateId}
|
||||
select f.id ,f.file_name ,f.start_content ,f.end_content ,
|
||||
f.`column` , ifnull(f.is_default,0) is_default ,f.`column_name`,ifnull(f.start_content_repeat_order,1) start_content_repeat_order,ifnull(f.end_content_repeat_order,1) end_content_repeat_order,ifnull(f.fatch_order,0) fatch_order
|
||||
from fatch_rule f join template_fatch_rule tfr on f.id=tfr.fatch_rule_id
|
||||
where tfr.template_id=#{templateId}
|
||||
</select>
|
||||
|
||||
<select id="selectFatchRuleList" parameterType="FatchRule" resultMap="BaseResultMap">
|
||||
SELECT f.id ,f.file_name ,f.start_content ,f.end_content ,
|
||||
f.`column` ,f.is_default ,f.`column_name`
|
||||
f.`column` ,f.is_default ,f.`column_name`,f.start_content_repeat_order,f.end_content_repeat_order,f.fatch_order
|
||||
FROM template_fatch_rule tf
|
||||
left join template_manage t on tf.template_id = t.id
|
||||
LEFT JOIN fatch_rule f on tf.fatch_rule_id = f.id
|
||||
@@ -89,14 +94,16 @@
|
||||
<if test="endContent != null and endContent != ''">end_content,</if>
|
||||
<if test="column != null and column != ''">`column`,</if>
|
||||
<if test="columnName != null and columnName != ''">`column_name`,</if>
|
||||
<if test="isDefault != null">is_default</if>
|
||||
<if test="isDefault != null">is_default,</if>
|
||||
start_content_repeat_order,end_content_repeat_order,fatch_order
|
||||
)values(
|
||||
<if test="fileName != null and fileName != ''">#{fileName},</if>
|
||||
<if test="startContent != null and startContent != ''">#{startContent},</if>
|
||||
<if test="endContent != null and endContent != ''">#{endContent},</if>
|
||||
<if test="column != null and column != ''">#{column},</if>
|
||||
<if test="columnName != null and columnName != ''">#{columnName},</if>
|
||||
<if test="isDefault != null">#{isDefault}</if>
|
||||
<if test="isDefault != null">#{isDefault},</if>
|
||||
#{startContentRepeatOrder},#{endContentRepeatOrder},#{fatchOrder}
|
||||
)
|
||||
</insert>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user