Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
peizhen-java
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
PeiZhen-Java
peizhen-java
Commits
12669a4a
Commit
12669a4a
authored
Dec 06, 2023
by
sdif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改对账单
parent
61ffdc38
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
24 deletions
+36
-24
pz-admin/src/main/java/com/pz/web/controller/system/DataViewController.java
+2
-0
pz-admin/src/main/java/com/pz/web/controller/system/EmployeesDivideController.java
+2
-0
pz-system/src/main/java/com/pz/system/domain/vo/DataOrderVo.java
+9
-3
pz-system/src/main/resources/mapper/merchant/EmployeesDivideMapper.xml
+23
-21
No files found.
pz-admin/src/main/java/com/pz/web/controller/system/DataViewController.java
View file @
12669a4a
...
...
@@ -119,9 +119,11 @@ public class DataViewController extends BaseController {
}
return
R
.
ok
(
iTotalOrderService
.
platformRevenue
(
dataViewBo
));
}
/**
* 平台收益/机构收益
*/
@SaIgnore
@GetMapping
(
"/platformRevenueDiv"
)
public
R
<
DataOrderVo
>
platformRevenueDiv
(
DataViewBo
dataViewBo
)
{
Long
roleId
=
getLoginUser
().
getRoleId
();
...
...
pz-admin/src/main/java/com/pz/web/controller/system/EmployeesDivideController.java
View file @
12669a4a
...
...
@@ -3,6 +3,7 @@ package com.pz.web.controller.system;
import
java.util.List
;
import
java.util.Arrays
;
import
cn.dev33.satoken.annotation.SaIgnore
;
import
lombok.RequiredArgsConstructor
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.validation.constraints.*
;
...
...
@@ -40,6 +41,7 @@ public class EmployeesDivideController extends BaseController {
/**
* 查询订单分成记录列表
*/
@SaIgnore
@SaCheckPermission
(
"merchant:divide:list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
<
EmployeesDivideVo
>
list
(
EmployeesDivideBo
bo
,
PageQuery
pageQuery
)
{
...
...
pz-system/src/main/java/com/pz/system/domain/vo/DataOrderVo.java
View file @
12669a4a
...
...
@@ -10,10 +10,16 @@ public class DataOrderVo implements Serializable {
* 总数量
*/
private
double
dataSum
;
/**
* 订单金额
*/
private
double
orderPrice
;
/**
* 机构分成
*/
private
double
dividePrice
;
/**
* 平台分成
*/
private
double
dividePriceAdmin
;
}
pz-system/src/main/resources/mapper/merchant/EmployeesDivideMapper.xml
View file @
12669a4a
...
...
@@ -36,27 +36,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
left JOIN sys_user s ON s.user_id = t.uid
left JOIN city ci on ci.id = t.city_id
left join services se on se.id = t.service_id
<if
test=
"bo.orderSn != null and bo.orderSn != ''"
>
and t.order_sn LIKE CONCAT('%', #{bo.orderSn}, '%')
</if>
<if
test=
"bo.phone != null and bo.phone != ''"
>
and s.phonenumber LIKE CONCAT('%', #{bo.phone}, '%')
</if>
<if
test=
"bo.city != null and bo.city != ''"
>
and ci.`name` LIKE CONCAT('%', #{bo.city}, '%')
</if>
<if
test=
"bo.companyName != null and bo.companyName != ''"
>
and c.`name` LIKE CONCAT('%', #{bo.companyName}, '%')
</if>
<if
test=
"bo.serviceType != null and bo.serviceType != ''"
>
and se.`name` LIKE CONCAT('%', #{bo.serviceType}, '%')
</if>
<if
test=
"bo.startTime != null and bo.startTime != ''"
>
and ed.create_time
>
#{bo.startTime}
</if>
<if
test=
"bo.companyId != null "
>
and ed.company_id = #{bo.companyId}
</if>
<where>
<if
test=
"bo.orderSn != null and bo.orderSn != ''"
>
and t.order_sn LIKE CONCAT('%', #{bo.orderSn}, '%')
</if>
<if
test=
"bo.phone != null and bo.phone != ''"
>
and s.phonenumber LIKE CONCAT('%', #{bo.phone}, '%')
</if>
<if
test=
"bo.city != null and bo.city != ''"
>
and ci.`name` LIKE CONCAT('%', #{bo.city}, '%')
</if>
<if
test=
"bo.companyName != null and bo.companyName != ''"
>
and c.`name` LIKE CONCAT('%', #{bo.companyName}, '%')
</if>
<if
test=
"bo.serviceType != null and bo.serviceType != ''"
>
and se.`name` LIKE CONCAT('%', #{bo.serviceType}, '%')
</if>
<if
test=
"bo.startTime != null and bo.startTime != ''"
>
and ed.create_time
>
#{bo.startTime}
</if>
<if
test=
"bo.companyId != null "
>
and ed.company_id = #{bo.companyId}
</if>
</where>
</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