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
e365c017
Commit
e365c017
authored
11 months ago
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改统计报表
parent
ade7cf56
master
first
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
bill-manager/src/main/java/com/mortals/xhx/module/ph/web/PhQueueStatController.java
.../com/mortals/xhx/module/ph/web/PhQueueStatController.java
+11
-0
bill-manager/src/main/java/com/mortals/xhx/module/pj/web/PjEvaluateStatController.java
...m/mortals/xhx/module/pj/web/PjEvaluateStatController.java
+11
-1
No files found.
bill-manager/src/main/java/com/mortals/xhx/module/ph/web/PhQueueStatController.java
View file @
e365c017
...
@@ -5,6 +5,7 @@ import cn.hutool.core.date.DateUnit;
...
@@ -5,6 +5,7 @@ import cn.hutool.core.date.DateUnit;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.date.DateUtil
;
import
com.mortals.framework.annotation.UnAuth
;
import
com.mortals.framework.annotation.UnAuth
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.common.pdu.RespData
;
import
com.mortals.xhx.common.pdu.RespData
;
...
@@ -16,6 +17,7 @@ import com.mortals.xhx.module.pj.model.PjEvaluateQuery;
...
@@ -16,6 +17,7 @@ import com.mortals.xhx.module.pj.model.PjEvaluateQuery;
import
com.mortals.xhx.module.pj.model.PjEvaluateStatEntity
;
import
com.mortals.xhx.module.pj.model.PjEvaluateStatEntity
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.StopWatch
;
import
org.springframework.util.StopWatch
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -73,6 +75,15 @@ public class PhQueueStatController extends BaseCRUDJsonBodyMappingController<PhQ
...
@@ -73,6 +75,15 @@ public class PhQueueStatController extends BaseCRUDJsonBodyMappingController<PhQ
super
.
init
(
model
,
context
);
super
.
init
(
model
,
context
);
}
}
@Override
protected
void
doListBefore
(
PhQueueStatEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
if
(
ObjectUtils
.
isEmpty
(
query
.
getHallName
()))
query
.
setHallName
(
""
);
if
(
ObjectUtils
.
isEmpty
(
query
.
getSectionName
()))
query
.
setSectionName
(
""
);
if
(
ObjectUtils
.
isEmpty
(
query
.
getBusiness
()))
query
.
setBusiness
(
""
);
if
(
ObjectUtils
.
isEmpty
(
query
.
getWindowFromnum
()))
query
.
setWindowFromnum
(
""
);
}
@PostMapping
(
value
=
"/stat"
)
@PostMapping
(
value
=
"/stat"
)
@UnAuth
@UnAuth
public
Rest
<
String
>
addAttendanceRecordCustom
(
@RequestBody
PhQueueQuery
phQueueQuery
)
{
public
Rest
<
String
>
addAttendanceRecordCustom
(
@RequestBody
PhQueueQuery
phQueueQuery
)
{
...
...
This diff is collapsed.
Click to expand it.
bill-manager/src/main/java/com/mortals/xhx/module/pj/web/PjEvaluateStatController.java
View file @
e365c017
...
@@ -5,6 +5,7 @@ import cn.hutool.core.date.DateUnit;
...
@@ -5,6 +5,7 @@ import cn.hutool.core.date.DateUnit;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.date.DateUtil
;
import
com.mortals.framework.annotation.UnAuth
;
import
com.mortals.framework.annotation.UnAuth
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.common.pdu.RespData
;
import
com.mortals.xhx.common.pdu.RespData
;
import
com.mortals.xhx.common.pdu.site.SitePdu
;
import
com.mortals.xhx.common.pdu.site.SitePdu
;
...
@@ -12,6 +13,7 @@ import com.mortals.xhx.feign.site.ISiteFeign;
...
@@ -12,6 +13,7 @@ import com.mortals.xhx.feign.site.ISiteFeign;
import
com.mortals.xhx.module.pj.model.PjEvaluateQuery
;
import
com.mortals.xhx.module.pj.model.PjEvaluateQuery
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.StopWatch
;
import
org.springframework.util.StopWatch
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -52,6 +54,14 @@ public class PjEvaluateStatController extends BaseCRUDJsonBodyMappingController<
...
@@ -52,6 +54,14 @@ public class PjEvaluateStatController extends BaseCRUDJsonBodyMappingController<
}
}
@Override
protected
void
doListBefore
(
PjEvaluateStatEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
if
(
ObjectUtils
.
isEmpty
(
query
.
getHallName
()))
query
.
setHallName
(
""
);
if
(
ObjectUtils
.
isEmpty
(
query
.
getSectionName
()))
query
.
setSectionName
(
""
);
if
(
ObjectUtils
.
isEmpty
(
query
.
getPjOption
()))
query
.
setPjOption
(
""
);
if
(
ObjectUtils
.
isEmpty
(
query
.
getWindowFromnum
()))
query
.
setWindowFromnum
(
""
);
}
@PostMapping
(
value
=
"/stat"
)
@PostMapping
(
value
=
"/stat"
)
@UnAuth
@UnAuth
public
Rest
<
String
>
pjStat
(
@RequestBody
PjEvaluateQuery
pjEvaluateQuery
)
{
public
Rest
<
String
>
pjStat
(
@RequestBody
PjEvaluateQuery
pjEvaluateQuery
)
{
...
@@ -84,7 +94,7 @@ public class PjEvaluateStatController extends BaseCRUDJsonBodyMappingController<
...
@@ -84,7 +94,7 @@ public class PjEvaluateStatController extends BaseCRUDJsonBodyMappingController<
sitestatEntity
.
setSiteCode
(
site
.
getSiteCode
());
sitestatEntity
.
setSiteCode
(
site
.
getSiteCode
());
sitestatEntity
.
setYear
(
curDate
.
year
());
sitestatEntity
.
setYear
(
curDate
.
year
());
sitestatEntity
.
setMonth
(
curDate
.
month
()
+
1
);
sitestatEntity
.
setMonth
(
curDate
.
month
()
+
1
);
sitestatEntity
.
setDay
(
curDate
.
dayOfMonth
());
sitestatEntity
.
setDay
(
curDate
.
dayOfMonth
());
//设置年月日
//设置年月日
this
.
service
.
updateSitePjStat
(
sitestatEntity
,
context
);
this
.
service
.
updateSitePjStat
(
sitestatEntity
,
context
);
...
...
This diff is collapsed.
Click to expand it.
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