Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
9ca819d6
Commit
9ca819d6
authored
Apr 30, 2020
by
Water Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
0c2bba19
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
yd-api/src/main/java/com/yd/api/practitioner/vo/rank/PractitionerRankRequestVO.java
+1
-1
yd-api/src/main/resources/mapper/practitioner/PractitionerMapper.xml
+9
-0
No files found.
yd-api/src/main/java/com/yd/api/practitioner/vo/rank/PractitionerRankRequestVO.java
View file @
9ca819d6
...
...
@@ -3,7 +3,7 @@ package com.yd.api.practitioner.vo.rank;
public
class
PractitionerRankRequestVO
{
private
String
mobileNo
;
private
Integer
platform
;
//1-online,2-offline
private
Integer
time
;
//1-month,2-year
private
Integer
time
;
//1-month,2-year
,3-quarter
private
Integer
type
;
//1-保费,2-佣金,3-件数
public
String
getMobileNo
()
{
...
...
yd-api/src/main/resources/mapper/practitioner/PractitionerMapper.xml
View file @
9ca819d6
...
...
@@ -72,6 +72,9 @@
<when
test=
"time == 1"
>
and DATE_FORMAT(policy.INS_MST_ACCEPT_DATE, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )
</when>
<when
test=
"time == 3"
>
and QUARTER(policy.INS_MST_ACCEPT_DATE) = QUARTER(NOW()) AND year(policy.INS_MST_ACCEPT_DATE)=year(now())
</when>
<otherwise>
and YEAR(policy.INS_MST_ACCEPT_DATE) = YEAR(now())
</otherwise>
...
...
@@ -100,6 +103,9 @@
<when
test=
"time == 1"
>
and DATE_FORMAT(f.order_date, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )
</when>
<when
test=
"time == 3"
>
and QUARTER(f.order_date) = QUARTER(NOW()) AND year(f.order_date)=year(now())
</when>
<otherwise>
and YEAR(f.order_date) = YEAR(now())
</otherwise>
...
...
@@ -130,6 +136,9 @@
<when
test=
"time == 1"
>
and DATE_FORMAT(f.order_date, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )
</when>
<when
test=
"time == 3"
>
and QUARTER(f.order_date) = QUARTER(NOW()) AND year(f.order_date)=year(now())
</when>
<otherwise>
and YEAR(f.order_date) = YEAR(now())
</otherwise>
...
...
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