✨ 支持应收账单选择模板并导出产品汇总与运费明细
This commit is contained in:
+22
-2
@@ -20,7 +20,7 @@
|
||||
<result property="remark" column="remark"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="selectDefaultEnabled" resultMap="ArExportTemplateResult">
|
||||
<sql id="templateColumns">
|
||||
select template_id,
|
||||
template_code,
|
||||
template_name,
|
||||
@@ -35,11 +35,31 @@
|
||||
effective_end,
|
||||
remark
|
||||
from ar_export_template
|
||||
</sql>
|
||||
|
||||
<sql id="enabledFilter">
|
||||
where business_type = #{businessType}
|
||||
and status = 'ENABLED'
|
||||
and is_default = '1'
|
||||
and (effective_start is null or effective_start <= #{effectiveDate})
|
||||
and (effective_end is null or effective_end >= #{effectiveDate})
|
||||
</sql>
|
||||
|
||||
<select id="selectEnabledList" resultMap="ArExportTemplateResult">
|
||||
<include refid="templateColumns"/>
|
||||
<include refid="enabledFilter"/>
|
||||
order by is_default desc, effective_start desc, template_id desc
|
||||
</select>
|
||||
|
||||
<select id="selectEnabledById" resultMap="ArExportTemplateResult">
|
||||
<include refid="templateColumns"/>
|
||||
<include refid="enabledFilter"/>
|
||||
and template_id = #{templateId}
|
||||
</select>
|
||||
|
||||
<select id="selectDefaultEnabled" resultMap="ArExportTemplateResult">
|
||||
<include refid="templateColumns"/>
|
||||
<include refid="enabledFilter"/>
|
||||
and is_default = '1'
|
||||
order by effective_start desc, template_id desc limit 1
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user