Commit 03912942 authored by neo's avatar neo

[dev] do not use config type to filter cell template per group

parent 1c0d7ab7
......@@ -10,7 +10,7 @@ import pwc.taxtech.atms.dto.vatdto.CellTemplatePerGroupDto;
import java.util.List;
@Mapper
public interface FormulaAdminMapper extends MyMapper {
public interface FormulaAdminMapper extends MyMapper {
@Select("SELECT " +
" cell_template.ID AS cellTemplateID, " +
......@@ -27,14 +27,11 @@ public interface FormulaAdminMapper extends MyMapper {
" template " +
" JOIN " +
" cell_template ON template.id = cell_template.report_template_id " +
" JOIN " +
" cell_template_config ON cell_template.id = cell_template_config.cell_template_id " +
"WHERE " +
" cell_template_config.data_source_type = 1 " +
" AND template.template_group_id = #{groupId}")
" template.template_group_id = #{groupId}")
List<CellTemplatePerGroupDto> getCellTemplatePerGroupDto(@Param("groupId") Long groupId);
@Select("SELECT " +
" rule.template_group_id as groupId, rule.is_default as isDefault " +
"FROM " +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment