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; ...@@ -10,7 +10,7 @@ import pwc.taxtech.atms.dto.vatdto.CellTemplatePerGroupDto;
import java.util.List; import java.util.List;
@Mapper @Mapper
public interface FormulaAdminMapper extends MyMapper { public interface FormulaAdminMapper extends MyMapper {
@Select("SELECT " + @Select("SELECT " +
" cell_template.ID AS cellTemplateID, " + " cell_template.ID AS cellTemplateID, " +
...@@ -27,14 +27,11 @@ public interface FormulaAdminMapper extends MyMapper { ...@@ -27,14 +27,11 @@ public interface FormulaAdminMapper extends MyMapper {
" template " + " template " +
" JOIN " + " JOIN " +
" cell_template ON template.id = cell_template.report_template_id " + " 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 " + "WHERE " +
" cell_template_config.data_source_type = 1 " + " template.template_group_id = #{groupId}")
" AND template.template_group_id = #{groupId}")
List<CellTemplatePerGroupDto> getCellTemplatePerGroupDto(@Param("groupId") Long groupId); List<CellTemplatePerGroupDto> getCellTemplatePerGroupDto(@Param("groupId") Long groupId);
@Select("SELECT " + @Select("SELECT " +
" rule.template_group_id as groupId, rule.is_default as isDefault " + " rule.template_group_id as groupId, rule.is_default as isDefault " +
"FROM " + "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