Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
afanti-open-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
java-ms
afanti-open-api
Commits
fd96124d
You need to sign in or sign up before continuing.
Commit
fd96124d
authored
Dec 12, 2024
by
许润龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-20241205' into 'master'
add:红旗项目门店月度预值接口 See merge request
!69
parents
2def5f2f
a8fb8e7e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
FawOpenController.java
...afanticar/afantiopenapi/controller/FawOpenController.java
+4
-2
FawOpenService.java
...a/com/afanticar/afantiopenapi/service/FawOpenService.java
+4
-1
No files found.
src/main/java/com/afanticar/afantiopenapi/controller/FawOpenController.java
View file @
fd96124d
...
...
@@ -92,6 +92,7 @@ public class FawOpenController extends BaseController {
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"store_code"
,
value
=
"门店编码"
,
paramType
=
"path"
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"expected_month"
,
value
=
"预值月份"
,
paramType
=
"path"
,
dataType
=
"Integer"
),
@ApiImplicitParam
(
name
=
"upload_month"
,
value
=
"上传月份"
,
paramType
=
"path"
,
dataType
=
"Integer"
),
@ApiImplicitParam
(
name
=
"current_page"
,
value
=
"页码"
,
paramType
=
"path"
,
dataType
=
"Integer"
),
@ApiImplicitParam
(
name
=
"page_size"
,
value
=
"页数"
,
paramType
=
"path"
,
dataType
=
"Integer"
),
})
...
...
@@ -99,8 +100,9 @@ public class FawOpenController extends BaseController {
public
BaseResponse
<
BasePageVO
<
HongqiProjectStoreExpectedValueInfo
>>
getStatisticsInfo
(
@Max
(
value
=
500
,
message
=
"单页数据page_size过大"
)
@RequestParam
(
name
=
"page_size"
,
defaultValue
=
"100"
,
required
=
false
)
Integer
pageSize
,
@RequestParam
(
name
=
"current_page"
,
defaultValue
=
"1"
,
required
=
false
)
Integer
pageNum
,
@RequestParam
(
name
=
"store_code"
,
required
=
false
)
String
storeCode
,
@RequestParam
(
name
=
"expected_month"
,
required
=
false
)
Integer
expectedMonth
)
{
return
success
(
fawOpenService
.
getStatisticsInfo
(
storeCode
,
expectedMonth
,
pageNum
,
pageSize
));
@RequestParam
(
name
=
"expected_month"
,
required
=
false
)
Integer
expectedMonth
,
@RequestParam
(
name
=
"upload_month"
,
required
=
false
)
Integer
uploadMonth
)
{
return
success
(
fawOpenService
.
getStatisticsInfo
(
storeCode
,
expectedMonth
,
uploadMonth
,
pageNum
,
pageSize
));
}
@ApiOperation
(
value
=
"视频数据信息"
,
notes
=
"视频数据"
,
produces
=
"application/json"
)
...
...
src/main/java/com/afanticar/afantiopenapi/service/FawOpenService.java
View file @
fd96124d
...
...
@@ -50,7 +50,7 @@ public class FawOpenService {
static
String
quarter
=
"quarter"
;
public
BasePageVO
<
HongqiProjectStoreExpectedValueInfo
>
getStatisticsInfo
(
String
storeCode
,
Integer
expectedMonth
,
Integer
pageNum
,
Integer
pageSize
)
{
public
BasePageVO
<
HongqiProjectStoreExpectedValueInfo
>
getStatisticsInfo
(
String
storeCode
,
Integer
expectedMonth
,
Integer
uploadMonth
,
Integer
pageNum
,
Integer
pageSize
)
{
PageHelper
.
orderBy
(
" expected_month desc "
);
IPage
<
HongqiProjectStoreExpectedValueInfo
>
page
=
new
Page
<>(
pageNum
,
pageSize
);
QueryWrapper
<
HongqiProjectStoreExpectedValueInfo
>
queryWrapper
=
new
QueryWrapper
<>();
...
...
@@ -60,6 +60,9 @@ public class FawOpenService {
if
(
expectedMonth
!=
null
)
{
queryWrapper
.
eq
(
"expected_month"
,
expectedMonth
);
}
if
(
uploadMonth
!=
null
)
{
queryWrapper
.
eq
(
"upload_month"
,
uploadMonth
);
}
IPage
<
HongqiProjectStoreExpectedValueInfo
>
awemePage
=
hongqiProjectStoreExpectedValueInfoMapper
.
selectPage
(
page
,
queryWrapper
);
return
BasePageVO
.
restPage
(
pageNum
,
(
int
)
awemePage
.
getSize
(),
(
int
)
awemePage
.
getTotal
(),
(
int
)
awemePage
.
getPages
(),
awemePage
.
getRecords
());
}
...
...
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