Commit 9ca819d6 by Water Wang

test

parent 0c2bba19
...@@ -3,7 +3,7 @@ package com.yd.api.practitioner.vo.rank; ...@@ -3,7 +3,7 @@ package com.yd.api.practitioner.vo.rank;
public class PractitionerRankRequestVO { public class PractitionerRankRequestVO {
private String mobileNo; private String mobileNo;
private Integer platform;//1-online,2-offline 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-件数 private Integer type;//1-保费,2-佣金,3-件数
public String getMobileNo() { public String getMobileNo() {
......
...@@ -72,6 +72,9 @@ ...@@ -72,6 +72,9 @@
<when test="time == 1"> <when test="time == 1">
and DATE_FORMAT(policy.INS_MST_ACCEPT_DATE, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' ) and DATE_FORMAT(policy.INS_MST_ACCEPT_DATE, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )
</when> </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> <otherwise>
and YEAR(policy.INS_MST_ACCEPT_DATE) = YEAR(now()) and YEAR(policy.INS_MST_ACCEPT_DATE) = YEAR(now())
</otherwise> </otherwise>
...@@ -100,6 +103,9 @@ ...@@ -100,6 +103,9 @@
<when test="time == 1"> <when test="time == 1">
and DATE_FORMAT(f.order_date, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' ) and DATE_FORMAT(f.order_date, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )
</when> </when>
<when test="time == 3">
and QUARTER(f.order_date) = QUARTER(NOW()) AND year(f.order_date)=year(now())
</when>
<otherwise> <otherwise>
and YEAR(f.order_date) = YEAR(now()) and YEAR(f.order_date) = YEAR(now())
</otherwise> </otherwise>
...@@ -130,6 +136,9 @@ ...@@ -130,6 +136,9 @@
<when test="time == 1"> <when test="time == 1">
and DATE_FORMAT(f.order_date, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' ) and DATE_FORMAT(f.order_date, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )
</when> </when>
<when test="time == 3">
and QUARTER(f.order_date) = QUARTER(NOW()) AND year(f.order_date)=year(now())
</when>
<otherwise> <otherwise>
and YEAR(f.order_date) = YEAR(now()) and YEAR(f.order_date) = YEAR(now())
</otherwise> </otherwise>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment