Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
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
youjj
cloud-platform
Commits
e4e01e01
Commit
e4e01e01
authored
Jul 27, 2019
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
6aff8702
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
19 deletions
+20
-19
BaseOrderBiz.java
...c/main/java/com/xxfc/platform/order/biz/BaseOrderBiz.java
+5
-4
BaseOrderMapper.xml
...rder-server/src/main/resources/mapper/BaseOrderMapper.xml
+15
-15
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/BaseOrderBiz.java
View file @
e4e01e01
...
@@ -37,6 +37,7 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -37,6 +37,7 @@ import lombok.extern.slf4j.Slf4j;
import
org.apache.commons.jexl2.MapContext
;
import
org.apache.commons.jexl2.MapContext
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -623,10 +624,10 @@ public class BaseOrderBiz extends BaseBiz<BaseOrderMapper,BaseOrder> {
...
@@ -623,10 +624,10 @@ public class BaseOrderBiz extends BaseBiz<BaseOrderMapper,BaseOrder> {
log
.
error
(
e
.
getMessage
(),
e
);
log
.
error
(
e
.
getMessage
(),
e
);
}
}
}
}
@Scheduled
(
cron
=
"0 0 2 * * ? "
)
private
void
countDailyOrdersRegularly
(){
DailyOrderStatistics
dailyOrderStatistics
=
mapper
.
getTotalOrder
();
}
// @Scheduled(cron = "0 0 2 * * ? ")
// private void countDailyOrdersRegularly(){
// DailyOrderStatistics dailyOrderStatistics= mapper.getTotalOrder();
// }
}
}
\ No newline at end of file
xx-order/xx-order-server/src/main/resources/mapper/BaseOrderMapper.xml
View file @
e4e01e01
...
@@ -215,23 +215,23 @@
...
@@ -215,23 +215,23 @@
base_order
base_order
where
where
date(pay_time)=date(now())-1
date(pay_time)=date(now())-1
group by
date_format(pay_time,'%d')
date_format(pay_time,'%d')
</select>
group by
</select>
<select
id=
"getTotalOrder"
resultType=
"com.xxfc.platform.order.entity.DailyOrderStatistics"
>
select
<!-- <select id="getTotalOrder" resultType="com.xxfc.platform.order.entity.DailyOrderStatistics">-->
date_format(refund_time,'%Y-%c-%d') as oneDay,
sum(1) as totalOrders,
<!-- select-->
sum(refund_time)as actualTotalIncome
<!-- date_format(refund_time,'%Y-%c-%d') as oneDay,-->
from
<!-- sum(1) as totalOrders,-->
base_order
<!-- sum(refund_time)as actualTotalIncome-->
where
<!-- from-->
date(refund_time)=date(now())-1
<!-- base_order-->
group by
<!-- where-->
date_format(refund_time,'%d')
<!-- date(refund_time)=date(now())-1-->
</select>
<!-- group by-->
<!-- date_format(refund_time,'%d')-->
<!-- </select>-->
</mapper>
</mapper>
\ No newline at end of file
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