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
fb13ba76
Commit
fb13ba76
authored
Dec 18, 2020
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
来佣比对查询接口加经纪人类型入参
parent
01951ef6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
22 deletions
+22
-22
yd-api/src/main/java/com/yd/api/commission/service/impl/LifeCommissionServiceImpl.java
+1
-4
yd-api/src/main/java/com/yd/api/commission/vo/lifecommission/QueryComeCommissionListRequestVO.java
+1
-0
yd-api/src/main/resources/mapper/lifecommission/LifeCommissionMapper.xml
+20
-18
No files found.
yd-api/src/main/java/com/yd/api/commission/service/impl/LifeCommissionServiceImpl.java
View file @
fb13ba76
...
...
@@ -231,11 +231,8 @@ public class LifeCommissionServiceImpl implements LifeCommissionService {
if
(
orderCommissonCheck
==
null
){
// 获取当前时间
Date
curDate
=
new
Date
();
// 获取代表批次的年月
String
yearmonth
=
CommonUtil
.
dateParseString
(
curDate
,
"yyyy-MM"
);
orderCommissonCheck
=
new
OrderCommissonCheck
();
orderCommissonCheck
.
setCheckYearmonth
(
yearmonth
);
orderCommissonCheck
.
setCheckYearmonth
(
OrderCommissionCheckBatch
);
orderCommissonCheck
.
setCreatedAt
(
curDate
);
orderCommissonCheck
.
setCreatedBy
(
loginId
);
orderCommissonCheck
.
setUpdatedAt
(
curDate
);
...
...
yd-api/src/main/java/com/yd/api/commission/vo/lifecommission/QueryComeCommissionListRequestVO.java
View file @
fb13ba76
...
...
@@ -8,6 +8,7 @@ public class QueryComeCommissionListRequestVO {
private
String
compareDate
;
private
String
historyDate
;
private
Long
insurerId
;
private
Long
practitionerTypeId
;
private
String
commissionCheckStatus
;
private
PageInfo
<
ComeCommissionVO
>
page
;
}
yd-api/src/main/resources/mapper/lifecommission/LifeCommissionMapper.xml
View file @
fb13ba76
...
...
@@ -60,21 +60,22 @@
GROUP BY order_id
) e on e.order_id = o.id
where 1=1
<choose>
<when
test=
"historyDate != null "
>
and c.check_yearmonth = #{historyDate}
</when>
<otherwise>
<if
test=
"compareDate != null"
>
and date_format(o.order_date, '%Y-%m')
<
#{compareDate}
</if>
<if
test=
"insurerId != null"
>
and o.insurer_id = #{insurerId}
</if>
<if
test=
"practitionerTypeId != null"
>
and f.practitioner_type_id = #{practitionerTypeId}
</if>
<if
test=
"commissionCheckStatus != null"
>
and o.commission_check_status = #{commissionCheckStatus}
</if>
</otherwise>
<choose>
<when
test=
"historyDate != null "
>
and c.check_yearmonth = #{historyDate}
</when>
<when
test=
"compareDate != null "
>
and date_format(o.order_date, '%Y-%m')
<
#{compareDate}
</when>
</choose>
</select>
...
...
@@ -130,21 +131,22 @@
) o
left join ag_po_order_commission_check c on o.commission_check_id = c.id
where 1=1
<choose>
<when
test=
"historyDate != null "
>
and c.check_yearmonth = #{historyDate}
</when>
<otherwise>
<if
test=
"compareDate != null"
>
and date_format(o.order_date, '%Y-%m')
<
#{compareDate}
</if>
<if
test=
"insurerId != null"
>
and o.insurer_id = #{insurerId}
</if>
<if
test=
"practitionerTypeId != null"
>
and f.practitioner_type_id = #{practitionerTypeId}
</if>
<if
test=
"commissionCheckStatus != null"
>
and o.commission_check_status = #{commissionCheckStatus}
</if>
</otherwise>
<choose>
<when
test=
"historyDate != null "
>
and c.check_yearmonth = #{historyDate}
</when>
<when
test=
"compareDate != null "
>
and date_format(o.order_date, '%Y-%m')
<
#{compareDate}
</when>
</choose>
</select>
...
...
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