Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
1fd33481
Commit
1fd33481
authored
Feb 20, 2019
by
chase
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增查询模板方法
parent
8bdc79b3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
FormulaAdminMapper.java
...rc/main/java/pwc/taxtech/atms/dao/FormulaAdminMapper.java
+42
-0
No files found.
atms-dao/src/main/java/pwc/taxtech/atms/dao/FormulaAdminMapper.java
View file @
1fd33481
...
...
@@ -86,4 +86,46 @@ public interface FormulaAdminMapper extends MyMapper {
" AND p.organization_id = t.organization_id AND p.year = #{year}"
+
""
)
Project
getFixedProject
(
@Param
(
"projectId"
)
String
projectId
,
@Param
(
"year"
)
Integer
year
);
@Select
(
"select "
+
" detail.*, "
+
" source_cell.cell_template_id AS cellTemplateID,"
+
" source_cell.column_index AS columnIndex,"
+
" source_cell.column_name AS columnName,"
+
" source_cell.row_name AS rowName,"
+
" source_cell.data_type AS resultType "
+
"from ("
+
" select "
+
" template.template_id AS reportTemplateID,"
+
" template.template_group_id AS reportTemplateGroupID,"
+
" template.code AS reportCode,"
+
" cell_template.row_index AS rowIndex "
+
" from period_template as template "
+
" inner join period_cell_template as cell_template"
+
" on template.template_id = cell_template.report_template_id"
+
" where template.template_group_id = #{templateGroupId}"
+
" and template.is_active_association = 1"
+
" and template.code = #{code}"
+
" and template.project_id = #{projectId}"
+
" and template.period = #{period}"
+
" and cell_template.project_id = #{projectId}"
+
" and cell_template.period = #{period}"
+
" and cell_template.column_index = #{rowColumnIndex}"
+
" and cell_template.row_name = #{rowName}) as detail,"
+
" period_cell_template as source_cell"
+
" where source_cell.project_id = #{projectId}"
+
" and source_cell.period = #{period}"
+
" and detail.reportTemplateID = source_cell.report_template_id"
+
" and detail.rowIndex = source_cell.row_index"
+
" and source_cell.column_index = #{columnIndex}"
)
List
<
CellTemplatePerGroupDto
>
getCellTemplateByNameAndIndex
(
@Param
(
"templateGroupId"
)
Long
templateGroupId
,
@Param
(
"code"
)
String
code
,
@Param
(
"rowColumnIndex"
)
Integer
rowColumnIndex
,
@Param
(
"rowName"
)
String
rowName
,
@Param
(
"columnIndex"
)
Integer
columnIndex
,
@Param
(
"projectId"
)
String
projectId
,
@Param
(
"period"
)
Integer
period
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment