Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bill-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
bill-platform
Commits
9f83fecf
Commit
9f83fecf
authored
Jul 18, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加首页统计模块 统计近一周
parent
e8b22b9e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
bill-manager/src/main/java/com/mortals/xhx/module/access/model/vo/AccessVo.java
...java/com/mortals/xhx/module/access/model/vo/AccessVo.java
+14
-0
bill-manager/src/main/java/com/mortals/xhx/module/access/web/AccessController.java
...a/com/mortals/xhx/module/access/web/AccessController.java
+7
-0
bill-manager/src/test/java/com/mortals/httpclient/access/AccessController.http
.../java/com/mortals/httpclient/access/AccessController.http
+1
-1
No files found.
bill-manager/src/main/java/com/mortals/xhx/module/access/model/vo/AccessVo.java
View file @
9f83fecf
package
com.mortals.xhx.module.access.model.vo
;
import
com.alibaba.fastjson.JSON
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.framework.model.OrderCol
;
import
com.mortals.xhx.module.access.model.AccessEntity
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
import
lombok.Data
;
import
com.mortals.framework.annotation.Excel
;
...
...
@@ -20,4 +23,15 @@ public class AccessVo extends BaseEntityLong {
private
List
<
Long
>
idList
;
public
static
void
main
(
String
[]
args
)
{
AccessEntity
accessEntity
=
new
AccessEntity
();
accessEntity
.
initAttrValue
();
accessEntity
.
setOrderColList
(
Arrays
.
asList
(
new
OrderCol
(
"sort"
,
"desc"
)));
System
.
out
.
println
(
JSON
.
toJSONString
(
accessEntity
));
}
}
\ No newline at end of file
bill-manager/src/main/java/com/mortals/xhx/module/access/web/AccessController.java
View file @
9f83fecf
package
com.mortals.xhx.module.access.web
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.OrderCol
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -47,5 +49,10 @@ public class AccessController extends BaseCRUDJsonBodyMappingController<AccessSe
super
.
init
(
model
,
context
);
}
@Override
protected
void
doListBefore
(
AccessEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
query
.
setOrderColList
(
Arrays
.
asList
(
new
OrderCol
(
"sort"
,
"desc"
)));
super
.
doListBefore
(
query
,
model
,
context
);
}
}
\ No newline at end of file
bill-manager/src/test/java/com/mortals/httpclient/access/AccessController.http
View file @
9f83fecf
...
...
@@ -18,7 +18,7 @@ POST {{baseUrl}}/access/interlist
Content-Type: application/json
{
"orderList": [{"": ""}]
,
"orderCols": {"sort": "desc"}
,
"page":1,
"size":10
}
...
...
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