Commit 12669a4a by sdif

修改对账单

parent 61ffdc38
......@@ -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();
......
......@@ -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) {
......
......@@ -10,10 +10,16 @@ public class DataOrderVo implements Serializable {
* 总数量
*/
private double dataSum;
/**
* 订单金额
*/
private double orderPrice;
/**
* 机构分成
*/
private double dividePrice;
/**
* 平台分成
*/
private double dividePriceAdmin;
}
......@@ -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 &gt; #{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 &gt; #{bo.startTime}
</if>
<if test="bo.companyId != null ">
and ed.company_id = #{bo.companyId}
</if>
</where>
</select>
......
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