Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cyyy
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangfeng
cyyy
Commits
0a5df736
Commit
0a5df736
authored
May 20, 2021
by
zhangfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改问题
parent
04b621ca
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
84 additions
and
1 deletions
+84
-1
BudgetDeclaratioController.java
.../com/corp/cyyy/dubget/web/BudgetDeclaratioController.java
+60
-0
BudgetDeclaratioTJQuery.java
...m/corp/cyyy/dubget/web/query/BudgetDeclaratioTJQuery.java
+1
-0
index.js
src/main/resources/static/js/dubget/budget/index.js
+9
-0
index.js
...main/resources/static/js/dubget/budgetDeclaratio/index.js
+13
-0
index.html
...in/resources/templates/dubget/budgetDeclaratio/index.html
+1
-1
No files found.
src/main/java/com/corp/cyyy/dubget/web/BudgetDeclaratioController.java
View file @
0a5df736
...
@@ -308,6 +308,66 @@ public class BudgetDeclaratioController{
...
@@ -308,6 +308,66 @@ public class BudgetDeclaratioController{
budgetDeclaratioService
.
queryByCondition
(
page
);
budgetDeclaratioService
.
queryByCondition
(
page
);
return
JsonResult
.
success
(
page
);
return
JsonResult
.
success
(
page
);
}
}
@PostMapping
(
MODEL
+
"/zxhjlist.json"
)
@Function
(
"budgetDeclaratio.query"
)
@ResponseBody
public
JsonResult
<
Map
<
String
,
Object
>>
zxhjlist
(
BudgetDeclaratioQuery
condtion
)
{
CoreUser
user
=
paltformService
.
getCurrentUser
();
if
(
condtion
.
getType
()!=
null
&&
condtion
.
getType
().
equals
(
"xg,"
))
{
condtion
.
setType
(
"xg"
);
}
if
(
condtion
.
getType
()==
null
||!
condtion
.
getType
().
equals
(
"xg"
))
{
CoreOrg
org
=
recordService
.
getOrg
(
user
.
getOrgId
());
condtion
.
setOrgId
(
org
.
getId
().
toString
());
}
if
(
StringUtils
.
isNotEmpty
(
condtion
.
getExamine
()))
{
if
(
condtion
.
getExamine
().
equals
(
"yld"
))
{
PageQuery
query
=
new
PageQuery
<>();
query
.
setPara
(
"userId"
,
user
.
getId
());
reService
.
queryByConditionORG
(
query
);
List
<
ReOrg
>
list
=
query
.
getList
();
ArrayList
orgid
=
new
ArrayList
<>();
for
(
ReOrg
coreOrg
:
list
)
{
orgid
.
add
(
coreOrg
.
getOrgId
());
}
/* String str="";
if (StringUtils.isNotEmpty(orgid)) {
str= orgid.substring(0, orgid.length()-1);
}*/
//condtion.setTypeState("'1','2','3'");
PageQuery
page
=
condtion
.
getPageQuery
();
page
.
setPara
(
"str"
,
orgid
);
page
.
setPageSize
(
Long
.
MAX_VALUE
);
List
<
BudgetDeclaratio
>
lists
=
budgetDeclaratioService
.
queryByConditionYLD
(
page
).
getList
();
BigDecimal
bu
=
new
BigDecimal
(
"0"
);
for
(
BudgetDeclaratio
budgetDeclaratio
:
lists
)
{
bu
=
bu
.
add
(
budgetDeclaratio
.
getBudget
());
}
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"bu"
,
bu
);
return
JsonResult
.
success
(
map
);
}
else
if
(
condtion
.
getExamine
().
equals
(
"cwc"
))
{
condtion
.
setOrgId
(
null
);
condtion
.
setTypeState
(
"'2','3'"
);
}
}
/*else {
condtion.setTypeState("'-1','0','1','3'");
}*/
PageQuery
page
=
condtion
.
getPageQuery
();
page
.
setPageSize
(
Long
.
MAX_VALUE
);
List
<
BudgetDeclaratio
>
list
=
budgetDeclaratioService
.
queryByCondition
(
page
).
getList
();
BigDecimal
bu
=
new
BigDecimal
(
"0"
);
for
(
BudgetDeclaratio
budgetDeclaratio
:
list
)
{
bu
=
bu
.
add
(
budgetDeclaratio
.
getBudget
());
}
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"bu"
,
bu
);
return
JsonResult
.
success
(
map
);
}
@PostMapping
(
MODEL
+
"/hj.json"
)
@PostMapping
(
MODEL
+
"/hj.json"
)
@Function
(
"budgetDeclaratio.query"
)
@Function
(
"budgetDeclaratio.query"
)
@ResponseBody
@ResponseBody
...
...
src/main/java/com/corp/cyyy/dubget/web/query/BudgetDeclaratioTJQuery.java
View file @
0a5df736
...
@@ -18,6 +18,7 @@ public class BudgetDeclaratioTJQuery extends PageParam {
...
@@ -18,6 +18,7 @@ public class BudgetDeclaratioTJQuery extends PageParam {
private
String
user
;
private
String
user
;
private
String
tjtype
;
private
String
tjtype
;
@Query
(
name
=
"年度"
,
display
=
true
)
private
String
year
;
private
String
year
;
private
String
examine
;
private
String
examine
;
private
String
typeState
;
private
String
typeState
;
...
...
src/main/resources/static/js/dubget/budget/index.js
View file @
0a5df736
...
@@ -65,7 +65,16 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
...
@@ -65,7 +65,16 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
return
(
d
.
budget
-
d
.
replyQuota
).
toLocaleString
();
return
(
d
.
budget
-
d
.
replyQuota
).
toLocaleString
();
}
}
},
},
{
field
:
''
,
title
:
'进度'
,
templet
:
function
(
d
)
{
//consonle.log(parseFloat(budget));
return
GetPercent
((
parseFloat
(
d
.
budget
)
-
parseFloat
(
d
.
replyQuota
)),
d
.
budget
)
}
},
{
{
field
:
'number'
,
field
:
'number'
,
...
...
src/main/resources/static/js/dubget/budgetDeclaratio/index.js
View file @
0a5df736
...
@@ -116,6 +116,19 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
...
@@ -116,6 +116,19 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
}
}
});
});
var
far
=
$
(
"#searchForm"
);
var
data
=
far
.
serializeJson
();
$
.
ajax
({
url
:
Common
.
ctxPath
+
'/dubget/budgetDeclaratio/zxhjlist.json?dtype=1'
,
type
:
"post"
,
data
:
data
,
success
:
function
(
result
){
$
(
"#bu"
).
text
(
parseInt
(
result
.
data
.
bu
).
toLocaleString
())
// $("#re").text(parseInt(result.data.re).toLocaleString())
}
})
}
}
});
});
...
...
src/main/resources/templates/dubget/budgetDeclaratio/index.html
View file @
0a5df736
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<layui:accessButton function="budgetDeclaratio.exportDocument" action="exportDocument">导出</layui:accessButton>-->
<layui:accessButton function="budgetDeclaratio.exportDocument" action="exportDocument">导出</layui:accessButton>-->
<layui:accessButton
function=
"budgetDeclaratio.importDocument"
action=
"importDocument"
>
导入
</layui:accessButton>
<layui:accessButton
function=
"budgetDeclaratio.importDocument"
action=
"importDocument"
>
导入
</layui:accessButton>
</div>
</div>
<h1>
预算总额
<i
id=
"bu"
style=
"color: red;"
>
0
</i></h1>
<table
id=
"budgetDeclaratioTable"
lay-filter=
"budgetDeclaratioTable"
></table>
<table
id=
"budgetDeclaratioTable"
lay-filter=
"budgetDeclaratioTable"
></table>
<!--#} -->
<!--#} -->
<script>
<script>
...
...
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