Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
2f40640c
Commit
2f40640c
authored
Aug 13, 2017
by
季圣华
Browse files
新增4张统计报表(bug修复)
parent
61d615d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/dao/materials/DepotHeadDAO.java
View file @
2f40640c
...
@@ -80,7 +80,7 @@ public class DepotHeadDAO extends BaseDAO<DepotHead> implements DepotHeadIDAO
...
@@ -80,7 +80,7 @@ public class DepotHeadDAO extends BaseDAO<DepotHead> implements DepotHeadIDAO
queryString
.
append
(
"select di.MaterialId, m.mName,m.Model,m.categoryName, "
+
queryString
.
append
(
"select di.MaterialId, m.mName,m.Model,m.categoryName, "
+
" (select sum(jsh_depotitem.AllPrice) priceSum from jsh_depothead INNER JOIN jsh_depotitem "
+
" (select sum(jsh_depotitem.AllPrice) priceSum from jsh_depothead INNER JOIN jsh_depotitem "
+
"on jsh_depothead.id=jsh_depotitem.HeaderId where jsh_depotitem.MaterialId=di.MaterialId "
+
"on jsh_depothead.id=jsh_depotitem.HeaderId where jsh_depotitem.MaterialId=di.MaterialId "
+
"
and jsh_depothead.ProjectId=1
and jsh_depothead.type='"
+
type
+
"' and dh.OperTime >='"
+
beginTime
+
"' and dh.OperTime <='"
+
endTime
+
"'"
);
" and jsh_depothead.type='"
+
type
+
"' and dh.OperTime >='"
+
beginTime
+
"' and dh.OperTime <='"
+
endTime
+
"'"
);
if
(
pid
!=
null
){
if
(
pid
!=
null
){
queryString
.
append
(
" and dh.ProjectId="
+
pid
);
queryString
.
append
(
" and dh.ProjectId="
+
pid
);
}
}
...
...
Write
Preview
Supports
Markdown
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