
11 changed files with 1840 additions and 0 deletions
@ -0,0 +1,269 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.reportcenter.api.asdailyreport; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.yxt.common.core.domain.Entity; |
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: report(售后报表) <br/> |
||||
|
* File: AsDailyReport.java <br/> |
||||
|
* Class: com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReport <br/> |
||||
|
* Description: 售后日报表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-11-01 10:15:47 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "售后日报表", description = "售后日报表") |
||||
|
@TableName("as_daily_report") |
||||
|
public class AsDailyReport extends Entity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("id") |
||||
|
private Long id; //
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("createTime") |
||||
|
private Date createTime; //
|
||||
|
@ApiModelProperty("事业部sid") |
||||
|
private String busOrgSid; // 事业部sid
|
||||
|
@ApiModelProperty("事业部名称") |
||||
|
private String busOrgName; // 事业部名称
|
||||
|
@ApiModelProperty("分公司sid") |
||||
|
private String createOrgSid; // 分公司sid
|
||||
|
@ApiModelProperty("分公司名称") |
||||
|
private String createOrgName; // 分公司名称
|
||||
|
@ApiModelProperty("部门(服务站)sid") |
||||
|
private String useOrgSid; // 部门(服务站)sid
|
||||
|
@ApiModelProperty("部门(服务站)") |
||||
|
private String useOrgName; // 部门(服务站)
|
||||
|
@ApiModelProperty("维修开单-本日") |
||||
|
private Integer busrepairOrder_day; // 维修开单-本日
|
||||
|
@ApiModelProperty("维修开单-本日保内") |
||||
|
private Integer busrepairOrder_day_inside; // 维修开单-本日保内
|
||||
|
@ApiModelProperty("维修开单-本日保外") |
||||
|
private Integer busrepairOrder_day_out; // 维修开单-本日保外
|
||||
|
@ApiModelProperty("维修开单-本月") |
||||
|
private Integer busrepairOrder_month; // 维修开单-本月
|
||||
|
@ApiModelProperty("维修开单-本月保内") |
||||
|
private Integer busrepairOrder_month_inside; // 维修开单-本月保内
|
||||
|
@ApiModelProperty("维修开单-本月保外") |
||||
|
private Integer busrepairOrder_month_out; // 维修开单-本月保外
|
||||
|
@ApiModelProperty("维修开单-本年") |
||||
|
private Integer busrepairOrder_year; // 维修开单-本年
|
||||
|
@ApiModelProperty("维修开单-本年保内") |
||||
|
private Integer busrepairOrder_year_inside; // 维修开单-本年保内
|
||||
|
@ApiModelProperty("维修开单-本年保外") |
||||
|
private Integer busrepairOrder_year_out; // 维修开单-本年保外
|
||||
|
@ApiModelProperty("在修车辆") |
||||
|
private Integer repair_veh; // 在修车辆
|
||||
|
@ApiModelProperty("在修车辆-保内") |
||||
|
private Integer repair_veh_inside; // 在修车辆-保内
|
||||
|
@ApiModelProperty("在修车辆-保外") |
||||
|
private Integer repair_veh_out; // 在修车辆-保外
|
||||
|
@ApiModelProperty("索赔单-已竣工未提报数量") |
||||
|
private Integer claim_form_noReporting_num; // 索赔单-已竣工未提报数量
|
||||
|
@ApiModelProperty("索赔单-已竣工未提报金额") |
||||
|
private BigDecimal claim_form_noReporting_amount; // 索赔单-已竣工未提报金额
|
||||
|
@ApiModelProperty("索赔单-已提报未生效数量") |
||||
|
private Integer claim_form_reporting_num; // 索赔单-已提报未生效数量
|
||||
|
@ApiModelProperty("索赔单-已提报未生效金额") |
||||
|
private BigDecimal claim_form_reporting_amount; // 索赔单-已提报未生效金额
|
||||
|
@ApiModelProperty("维修业务-本日结算台数") |
||||
|
private Integer repair_bus_veh_day; // 维修业务-本日结算台数
|
||||
|
@ApiModelProperty("维修业务-本日结算金额") |
||||
|
private BigDecimal repair_bus_veh_amount_day; // 维修业务-本日结算金额
|
||||
|
@ApiModelProperty("维修业务-本日保内结算台数") |
||||
|
private Integer repair_bus_veh_inside_day; // 维修业务-本日保内结算台数
|
||||
|
@ApiModelProperty("维修业务-本日保内结算金额") |
||||
|
private BigDecimal repair_bus_veh_inside_amount_day; // 维修业务-本日保内结算金额
|
||||
|
@ApiModelProperty("维修业务-本日保外结算台数") |
||||
|
private Integer repair_bus_veh_out_day; // 维修业务-本日保外结算台数
|
||||
|
@ApiModelProperty("维修业务-本日保外结算金额") |
||||
|
private BigDecimal repair_bus_veh_out_amount_day; // 维修业务-本日保外结算金额
|
||||
|
@ApiModelProperty("配件销售业务-本日结算数量") |
||||
|
private Integer sales_bus_veh_day; // 配件销售业务-本日结算数量
|
||||
|
@ApiModelProperty("配件销售业务-本日结算金额") |
||||
|
private BigDecimal sales_bus_veh_amount_day; // 配件销售业务-本日结算金额
|
||||
|
@ApiModelProperty("维修业务-本月结算台数") |
||||
|
private Integer repair_bus_veh_month; // 维修业务-本月结算台数
|
||||
|
@ApiModelProperty("维修业务-本月结算金额") |
||||
|
private BigDecimal repair_bus_veh_amount_month; // 维修业务-本月结算金额
|
||||
|
@ApiModelProperty("维修业务-本月保内结算台数") |
||||
|
private Integer repair_bus_veh_inside_month; // 维修业务-本月保内结算台数
|
||||
|
@ApiModelProperty("维修业务-本月保内结算金额") |
||||
|
private BigDecimal repair_bus_veh_inside_amount_month; // 维修业务-本月保内结算金额
|
||||
|
@ApiModelProperty("维修业务-本月保外结算台数") |
||||
|
private Integer repair_bus_veh_out_month; // 维修业务-本月保外结算台数
|
||||
|
@ApiModelProperty("维修业务-本月保外结算金额") |
||||
|
private BigDecimal repair_bus_veh_out_amount_month; // 维修业务-本月保外结算金额
|
||||
|
@ApiModelProperty("配件销售业务-本月结算数量") |
||||
|
private Integer sales_bus_veh_month; // 配件销售业务-本月结算数量
|
||||
|
@ApiModelProperty("配件销售业务-本月结算金额") |
||||
|
private BigDecimal sales_bus_veh_amount_month; // 配件销售业务-本月结算金额
|
||||
|
@ApiModelProperty("维修业务-本年结算台数") |
||||
|
private Integer repair_bus_veh_year; // 维修业务-本年结算台数
|
||||
|
@ApiModelProperty("维修业务-本年结算金额") |
||||
|
private BigDecimal repair_bus_veh_amount_year; // 维修业务-本年结算金额
|
||||
|
@ApiModelProperty("维修业务-本年保内结算台数") |
||||
|
private Integer repair_bus_veh_inside_year; // 维修业务-本年保内结算台数
|
||||
|
@ApiModelProperty("维修业务-本年保内结算金额") |
||||
|
private BigDecimal repair_bus_veh_inside_amount_year; // 维修业务-本年保内结算金额
|
||||
|
@ApiModelProperty("维修业务-本年保外结算台数") |
||||
|
private Integer repair_bus_veh_out_year; // 维修业务-本年保外结算台数
|
||||
|
@ApiModelProperty("维修业务-本年保外结算金额") |
||||
|
private BigDecimal repair_bus_veh_out_amount_year; // 维修业务-本年保外结算金额
|
||||
|
@ApiModelProperty("配件销售业务-本年结算数量") |
||||
|
private Integer sales_bus_veh_year; // 配件销售业务-本年结算数量
|
||||
|
@ApiModelProperty("配件销售业务-本年结算金额") |
||||
|
private BigDecimal sales_bus_veh_amount_year; // 配件销售业务-本年结算金额
|
||||
|
@ApiModelProperty("采购订单-本日结算数量") |
||||
|
private Integer purchase_order_day; // 采购订单-本日结算数量
|
||||
|
@ApiModelProperty("采购订单-本日结算金额") |
||||
|
private BigDecimal purchase_order_amount_day; // 采购订单-本日结算金额
|
||||
|
@ApiModelProperty("采购订单-本月结算数量") |
||||
|
private Integer purchase_order_month; // 采购订单-本月结算数量
|
||||
|
@ApiModelProperty("采购订单-本月结算金额") |
||||
|
private BigDecimal purchase_order_amount_month; // 采购订单-本月结算金额
|
||||
|
@ApiModelProperty("采购订单-本年结算数量") |
||||
|
private Integer purchase_order_year; // 采购订单-本年结算数量
|
||||
|
@ApiModelProperty("采购订单-本年结算金额") |
||||
|
private BigDecimal purchase_order_amount_year; // 采购订单-本年结算金额
|
||||
|
@ApiModelProperty("配件库存-总数量") |
||||
|
private Integer fittings_counts; // 配件库存-总数量
|
||||
|
@ApiModelProperty("配件库存-总金额") |
||||
|
private BigDecimal fittings_amount; // 配件库存-总金额
|
||||
|
@ApiModelProperty("配件库存-正常(1-90天)数量") |
||||
|
private Integer fittings_normal; // 配件库存-正常(1-90天)数量
|
||||
|
@ApiModelProperty("配件库存-正常(1-90天)金额") |
||||
|
private BigDecimal fittings_normal_amount; // 配件库存-正常(1-90天)金额
|
||||
|
@ApiModelProperty("配件库存-滞销件(91-180天)数量") |
||||
|
private Integer fittings_unsalable; // 配件库存-滞销件(91-180天)数量
|
||||
|
@ApiModelProperty("配件库存-滞销件(91-180天)金额") |
||||
|
private BigDecimal fittings_unsalable_amount; // 配件库存-滞销件(91-180天)金额
|
||||
|
@ApiModelProperty("配件库存-积压件(181-270天)数量") |
||||
|
private Integer fittings_backlog_one; // 配件库存-积压件(181-270天)数量
|
||||
|
@ApiModelProperty("配件库存-积压件(181-270天)金额") |
||||
|
private BigDecimal fittings_backlog_one_amount; // 配件库存-积压件(181-270天)金额
|
||||
|
@ApiModelProperty("配件库存-积压件(271-360天)数量") |
||||
|
private Integer fittings_backlog_two; // 配件库存-积压件(271-360天)数量
|
||||
|
@ApiModelProperty("配件库存-积压件(271-360天)金额") |
||||
|
private BigDecimal fittings_backlog_two_amount; // 配件库存-积压件(271-360天)金额
|
||||
|
@ApiModelProperty("配件库存-积压件(361-720天)数量") |
||||
|
private Integer fittings_backlog_three; // 配件库存-积压件(361-720天)数量
|
||||
|
@ApiModelProperty("配件库存-积压件(361-720天)金额") |
||||
|
private BigDecimal fittings_backlog_three_amount; // 配件库存-积压件(361-720天)金额
|
||||
|
@ApiModelProperty("配件库存-积压件(720天以上)数量") |
||||
|
private Integer fittings_backlog_four; // 配件库存-积压件(720天以上)数量
|
||||
|
@ApiModelProperty("配件库存-积压件(720天以上)金额") |
||||
|
private BigDecimal fittings_backlog_four_amount; // 配件库存-积压件(720天以上)金额
|
||||
|
@ApiModelProperty("配件流转-本日入库数量") |
||||
|
private Integer fittings_in_counts_day; // 配件流转-本日入库数量
|
||||
|
@ApiModelProperty("配件流转-本日入库金额") |
||||
|
private BigDecimal fittings_in_amount_day; // 配件流转-本日入库金额
|
||||
|
@ApiModelProperty("配件流转-本月入库数量") |
||||
|
private Integer fittings_in_counts_month; // 配件流转-本月入库数量
|
||||
|
@ApiModelProperty("配件流转-本月入库金额") |
||||
|
private BigDecimal fittings_in_amount_month; // 配件流转-本月入库金额
|
||||
|
@ApiModelProperty("配件流转-本年入库数量") |
||||
|
private Integer fittings_in_counts_year; // 配件流转-本年入库数量
|
||||
|
@ApiModelProperty("配件流转-本年入库金额") |
||||
|
private BigDecimal fittings_in_amount_year; // 配件流转-本年入库金额
|
||||
|
@ApiModelProperty("配件流转-本日出库数量") |
||||
|
private Integer fittings_out_counts_day; // 配件流转-本日出库数量
|
||||
|
@ApiModelProperty("配件流转-本日出库金额") |
||||
|
private BigDecimal fittings_out_amount_day; // 配件流转-本日出库金额
|
||||
|
@ApiModelProperty("配件流转-本月出库数量") |
||||
|
private Integer fittings_out_counts_month; // 配件流转-本月出库数量
|
||||
|
@ApiModelProperty("配件流转-本月出库金额") |
||||
|
private BigDecimal fittings_out_amount_month; // 配件流转-本月出库金额
|
||||
|
@ApiModelProperty("配件流转-本年出库数量") |
||||
|
private Integer fittings_out_counts_year; // 配件流转-本年出库数量
|
||||
|
@ApiModelProperty("配件流转-本年出库金额") |
||||
|
private BigDecimal fittings_out_amount_year; // 配件流转-本年出库金额
|
||||
|
@ApiModelProperty("旧件库存-总数量") |
||||
|
private Integer old_fittings_all_counts; // 旧件库存-总数量
|
||||
|
@ApiModelProperty("旧件库存-保内数量") |
||||
|
private Integer old_fittings_in_counts; // 旧件库存-保内数量
|
||||
|
@ApiModelProperty("旧件库存-保外数量") |
||||
|
private Integer old_fittings_out_counts; // 旧件库存-保外数量
|
||||
|
@ApiModelProperty("旧件流转-本日入库数量") |
||||
|
private Integer old_fittings_in_day; // 旧件流转-本日入库数量
|
||||
|
@ApiModelProperty("旧件流转-本月入库数量") |
||||
|
private Integer old_fittings_in_month; // 旧件流转-本月入库数量
|
||||
|
@ApiModelProperty("旧件流转-本年入库数量") |
||||
|
private Integer old_fittings_in_year; // 旧件流转-本年入库数量
|
||||
|
@ApiModelProperty("旧件流转-本日出库数量") |
||||
|
private Integer old_fittings_out_day; // 旧件流转-本日出库数量
|
||||
|
@ApiModelProperty("旧件流转-本月出库数量") |
||||
|
private Integer old_fittings_out_month; // 旧件流转-本月出库数量
|
||||
|
@ApiModelProperty("旧件流转-本年出库数量") |
||||
|
private Integer old_fittings_out_year; // 旧件流转-本年出库数量
|
||||
|
@ApiModelProperty("旧件流转-本日出库数量其中返件") |
||||
|
private Integer old_fittings_out_day_return; // 旧件流转-本日出库数量其中返件
|
||||
|
@ApiModelProperty("旧件流转-本月出库数量其中返件") |
||||
|
private Integer old_fittings_out_month_return; // 旧件流转-本月出库数量其中返件
|
||||
|
@ApiModelProperty("旧件流转-本年出库数量其中返件") |
||||
|
private Integer old_fittings_out_year_return; // 旧件流转-本年出库数量其中返件
|
||||
|
@ApiModelProperty("保外未回款-台数") |
||||
|
private Integer insurance_out_Payment_counts; // 保外未回款-台数
|
||||
|
@ApiModelProperty("保外未回款-金额") |
||||
|
private BigDecimal insurance_out_Payment_amount; // 保外未回款-金额
|
||||
|
@ApiModelProperty("保外未回款-客户欠款台数") |
||||
|
private Integer out_Payment_customer_counts; // 保外未回款-客户欠款台数
|
||||
|
@ApiModelProperty("保外未回款-客户欠款金额") |
||||
|
private BigDecimal out_Payment_customer_debt; // 保外未回款-客户欠款金额
|
||||
|
@ApiModelProperty("保外未回款-保险欠款台数") |
||||
|
private Integer out_Payment_insurance_counts; // 保外未回款-保险欠款台数
|
||||
|
@ApiModelProperty("保外未回款-保险欠款金额") |
||||
|
private BigDecimal out_Payment_insurance_debt; // 保外未回款-保险欠款金额
|
||||
|
@ApiModelProperty("保内未回款-台数") |
||||
|
private Integer insurance_in_Payment_counts; // 保内未回款-台数
|
||||
|
@ApiModelProperty("保内未回款-金额") |
||||
|
private BigDecimal insurance_in_Payment_amount; // 保内未回款-金额
|
||||
|
@ApiModelProperty("保内未回款-已开票台数") |
||||
|
private Integer in_Payment_invoice_counts; // 保内未回款-已开票台数
|
||||
|
@ApiModelProperty("保内未回款-已开票金额") |
||||
|
private BigDecimal in_Payment_invoice_amount; // 保内未回款-已开票金额
|
||||
|
@ApiModelProperty("保内未回款-未开票台数") |
||||
|
private Integer in_Payment_no_invoice_counts; // 保内未回款-未开票台数
|
||||
|
@ApiModelProperty("保内未回款-未开票金额") |
||||
|
private BigDecimal in_Payment_no_invoice_amount; // 保内未回款-未开票金额
|
||||
|
@ApiModelProperty("代理库账户余额") |
||||
|
private BigDecimal proxy_library_balance; // 代理库账户余额
|
||||
|
|
||||
|
} |
@ -0,0 +1,451 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.reportcenter.api.asdailyreport; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: report(售后报表) <br/> |
||||
|
* File: AsDailyReportVo.java <br/> |
||||
|
* Class: com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReportVo <br/> |
||||
|
* Description: 售后日报表 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-11-01 10:15:47 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "售后日报表 视图数据详情", description = "售后日报表 视图数据详情") |
||||
|
public class AsDailyReportDetailsVo implements Vo { |
||||
|
|
||||
|
/** |
||||
|
* 代理库账户余额 |
||||
|
*/ |
||||
|
private String accountBalance; |
||||
|
/** |
||||
|
* 累计已提报未生效数量 |
||||
|
*/ |
||||
|
private String claimFormNotEffect; |
||||
|
/** |
||||
|
* 累计已提报未生效金额 |
||||
|
*/ |
||||
|
private String claimFormNotEffectMoney; |
||||
|
/** |
||||
|
* 累计已竣工未提报数量 |
||||
|
*/ |
||||
|
private String claimFormNotReported; |
||||
|
/** |
||||
|
* 累计已竣工未提报金额 |
||||
|
*/ |
||||
|
private String claimFormNotReportedMoney; |
||||
|
/** |
||||
|
* 客户欠款 |
||||
|
*/ |
||||
|
private String customerDebt; |
||||
|
/** |
||||
|
* 客户欠款金额 |
||||
|
*/ |
||||
|
private String customerDebtMoney; |
||||
|
/** |
||||
|
* 保险欠款 |
||||
|
*/ |
||||
|
private String insuranceDebt; |
||||
|
/** |
||||
|
* 保险欠款金额 |
||||
|
*/ |
||||
|
private String insuranceDebtMoney; |
||||
|
/** |
||||
|
* 旧件库存 |
||||
|
*/ |
||||
|
private String oldPartsStock; |
||||
|
/** |
||||
|
* 旧件库存保内 |
||||
|
*/ |
||||
|
private String oldPartsStockIn; |
||||
|
/** |
||||
|
* 旧件库存保外 |
||||
|
*/ |
||||
|
private String oldPartsStockOut; |
||||
|
/** |
||||
|
* 旧件流转本月入库 |
||||
|
*/ |
||||
|
private String oldPartsTransferInMonth; |
||||
|
/** |
||||
|
* 旧件流转本日入库 |
||||
|
*/ |
||||
|
private String oldPartsTransferInToday; |
||||
|
/** |
||||
|
* 旧件流转本年入库 |
||||
|
*/ |
||||
|
private String oldPartsTransferInYear; |
||||
|
|
||||
|
/** |
||||
|
* 旧件流转本日出库 |
||||
|
*/ |
||||
|
private String oldPartsTransferOutToday; |
||||
|
/** |
||||
|
* 旧件流转本月出库 |
||||
|
*/ |
||||
|
private String oldPartsTransferOutMonth; |
||||
|
/** |
||||
|
* 旧件流转本年出库 |
||||
|
*/ |
||||
|
private String oldPartsTransferOutYear; |
||||
|
|
||||
|
/** |
||||
|
* 旧件流转本日出库返件 |
||||
|
*/ |
||||
|
private String oldPartsTransferOutReturnToday; |
||||
|
/** |
||||
|
* 旧件流转本月出库返件 |
||||
|
*/ |
||||
|
private String oldPartsTransferOutReturnMonth; |
||||
|
|
||||
|
/** |
||||
|
* 旧件流转本年出库返件 |
||||
|
*/ |
||||
|
private String oldPartsTransferOutReturnYear; |
||||
|
|
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 配件本月数量 |
||||
|
*/ |
||||
|
private String partsMonth; |
||||
|
/** |
||||
|
* 配件本月销售额 |
||||
|
*/ |
||||
|
private String partsMonthMoney; |
||||
|
/** |
||||
|
* 配件库存 |
||||
|
*/ |
||||
|
private String partsStock; |
||||
|
/** |
||||
|
* 配件库存正常 |
||||
|
*/ |
||||
|
private String partsStock1; |
||||
|
/** |
||||
|
* 配件库存滞销 |
||||
|
*/ |
||||
|
private String partsStock2; |
||||
|
/** |
||||
|
* 配件库存积压180天起 |
||||
|
*/ |
||||
|
private String partsStock3; |
||||
|
/** |
||||
|
* 配件库存积压271天起 |
||||
|
*/ |
||||
|
private String partsStock4; |
||||
|
/** |
||||
|
* 配件库存积压361天起 |
||||
|
*/ |
||||
|
private String partsStock5; |
||||
|
/** |
||||
|
* 配件库存积压720天起 |
||||
|
*/ |
||||
|
private String partsStock6; |
||||
|
/** |
||||
|
* 配件库存金额 |
||||
|
*/ |
||||
|
private String partsStockMoney; |
||||
|
/** |
||||
|
* 配件库存金额正常 |
||||
|
*/ |
||||
|
private String partsStockMoney1; |
||||
|
/** |
||||
|
* 配件库存金额滞销 |
||||
|
*/ |
||||
|
private String partsStockMoney2; |
||||
|
/** |
||||
|
* 配件库存金额积压180天起 |
||||
|
*/ |
||||
|
private String partsStockMoney3; |
||||
|
/** |
||||
|
* 配件库存金额积压271天起 |
||||
|
*/ |
||||
|
private String partsStockMoney4; |
||||
|
/** |
||||
|
* 配件库存金额积压361天起 |
||||
|
*/ |
||||
|
private String partsStockMoney5; |
||||
|
/** |
||||
|
* 配件库存金额积压720天起 |
||||
|
*/ |
||||
|
private String partsStockMoney6; |
||||
|
/** |
||||
|
* 配件本日数量 |
||||
|
*/ |
||||
|
private String partsToday; |
||||
|
/** |
||||
|
* 配件本日销售额 |
||||
|
*/ |
||||
|
private String partsTodayMoney; |
||||
|
/** |
||||
|
* 配件流转本月入库 |
||||
|
*/ |
||||
|
private String partsTransferInMonth; |
||||
|
/** |
||||
|
* 配件流转本月入库金额 |
||||
|
*/ |
||||
|
private String partsTransferInMonthMoney; |
||||
|
/** |
||||
|
* 配件流转本日入库 |
||||
|
*/ |
||||
|
private String partsTransferInToday; |
||||
|
/** |
||||
|
* 配件流转本日入库金额 |
||||
|
*/ |
||||
|
private String partsTransferInTodayMoney; |
||||
|
/** |
||||
|
* 配件流转本年入库 |
||||
|
*/ |
||||
|
private String partsTransferInYear; |
||||
|
/** |
||||
|
* 配件流转本年入库金额 |
||||
|
*/ |
||||
|
private String partsTransferInYearMoney; |
||||
|
/** |
||||
|
* 配件流转本月出库 |
||||
|
*/ |
||||
|
private String partsTransferOutMonth; |
||||
|
/** |
||||
|
* 配件流转本月出库金额 |
||||
|
*/ |
||||
|
private String partsTransferOutMonthMoney; |
||||
|
/** |
||||
|
* 配件流转本日出库 |
||||
|
*/ |
||||
|
private String partsTransferOutToday; |
||||
|
/** |
||||
|
* 配件流转本日出库金额 |
||||
|
*/ |
||||
|
private String partsTransferOutTodayMoney; |
||||
|
/** |
||||
|
* 配件流转本年出库 |
||||
|
*/ |
||||
|
private String partsTransferOutYear; |
||||
|
/** |
||||
|
* 配件流转本年出库金额 |
||||
|
*/ |
||||
|
private String partsTransferOutYearMoney; |
||||
|
/** |
||||
|
* 配件本年数量 |
||||
|
*/ |
||||
|
private String partsYear; |
||||
|
/** |
||||
|
* 配件本年销售额 |
||||
|
*/ |
||||
|
private String partsYearMoney; |
||||
|
/** |
||||
|
* 采购本月 |
||||
|
*/ |
||||
|
private String procuredMonth; |
||||
|
/** |
||||
|
* 采购本月金额 |
||||
|
*/ |
||||
|
private String procuredMonthMoney; |
||||
|
/** |
||||
|
* 采购本日 |
||||
|
*/ |
||||
|
private String procuredToday; |
||||
|
/** |
||||
|
* 采购本日金额 |
||||
|
*/ |
||||
|
private String procuredTodayMoney; |
||||
|
/** |
||||
|
* 采购本年 |
||||
|
*/ |
||||
|
private String procuredYear; |
||||
|
/** |
||||
|
* 采购本年金额 |
||||
|
*/ |
||||
|
private String procuredYearMoney; |
||||
|
/** |
||||
|
* 维修业务本月 |
||||
|
*/ |
||||
|
private String repairMonth; |
||||
|
/** |
||||
|
* 维修业务本月保内数量 |
||||
|
*/ |
||||
|
private String repairMonthIn; |
||||
|
/** |
||||
|
* 维修业务本月保内金额 |
||||
|
*/ |
||||
|
private String repairMonthInMoney; |
||||
|
/** |
||||
|
* 维修业务本月金额 |
||||
|
*/ |
||||
|
private String repairMonthMoney; |
||||
|
/** |
||||
|
* 维修业务本月保外数量 |
||||
|
*/ |
||||
|
private String repairMonthOut; |
||||
|
/** |
||||
|
* 维修业务本月保外金额 |
||||
|
*/ |
||||
|
private String repairMonthOutMoney; |
||||
|
/** |
||||
|
* 本月开单 |
||||
|
*/ |
||||
|
private String repairOrderMonth; |
||||
|
/** |
||||
|
* 本月开单保内 |
||||
|
*/ |
||||
|
private String repairOrderMonthIn; |
||||
|
/** |
||||
|
* 本月开单保外 |
||||
|
*/ |
||||
|
private String repairOrderMonthOut; |
||||
|
/** |
||||
|
* 本日开单 |
||||
|
*/ |
||||
|
private String repairOrderToday; |
||||
|
/** |
||||
|
* 本日开单保内 |
||||
|
*/ |
||||
|
private String repairOrderTodayIn; |
||||
|
/** |
||||
|
* 本日开单保外 |
||||
|
*/ |
||||
|
private String repairOrderTodayOut; |
||||
|
/** |
||||
|
* 全年开单 |
||||
|
*/ |
||||
|
private String repairOrderYear; |
||||
|
/** |
||||
|
* 全年开单保内 |
||||
|
*/ |
||||
|
private String repairOrderYearIn; |
||||
|
/** |
||||
|
* 全年开单保外 |
||||
|
*/ |
||||
|
private String repairOrderYearOut; |
||||
|
/** |
||||
|
* 维修业务本日 |
||||
|
*/ |
||||
|
private String repairToday; |
||||
|
/** |
||||
|
* 维修业务本日保内数量 |
||||
|
*/ |
||||
|
private String repairTodayIn; |
||||
|
/** |
||||
|
* 维修业务本日保内金额 |
||||
|
*/ |
||||
|
private String repairTodayInMoney; |
||||
|
/** |
||||
|
* 维修业务本日金额 |
||||
|
*/ |
||||
|
private String repairTodayMoney; |
||||
|
/** |
||||
|
* 维修业务本日保外数量 |
||||
|
*/ |
||||
|
private String repairTodayOut; |
||||
|
/** |
||||
|
* 维修业务本日保外金额 |
||||
|
*/ |
||||
|
private String repairTodayOutMoney; |
||||
|
/** |
||||
|
* 维修业务本年 |
||||
|
*/ |
||||
|
private String repairYear; |
||||
|
/** |
||||
|
* 维修业务本年保内数量 |
||||
|
*/ |
||||
|
private String repairYearIn; |
||||
|
/** |
||||
|
* 维修业务本年保内金额 |
||||
|
*/ |
||||
|
private String repairYearInMoney; |
||||
|
/** |
||||
|
* 维修业务本年金额 |
||||
|
*/ |
||||
|
private String repairYearMoney; |
||||
|
/** |
||||
|
* 维修业务本年保外数量 |
||||
|
*/ |
||||
|
private String repairYearOut; |
||||
|
/** |
||||
|
* 维修业务本年保外金额 |
||||
|
*/ |
||||
|
private String repairYearOutMoney; |
||||
|
/** |
||||
|
* 在修数量 |
||||
|
*/ |
||||
|
private String repairing; |
||||
|
/** |
||||
|
* 在修保内 |
||||
|
*/ |
||||
|
private String repairingIn; |
||||
|
/** |
||||
|
* 在修保外 |
||||
|
*/ |
||||
|
private String repairingOut; |
||||
|
/** |
||||
|
* 保内已开票 |
||||
|
*/ |
||||
|
private String threeGuaranteeInvoice; |
||||
|
/** |
||||
|
* 保内已开票金额 |
||||
|
*/ |
||||
|
private String threeGuaranteeInvoiceMoney; |
||||
|
/** |
||||
|
* 保内未开票 |
||||
|
*/ |
||||
|
private String threeGuaranteeNoInvoice; |
||||
|
/** |
||||
|
* 保内未开票金额 |
||||
|
*/ |
||||
|
private String threeGuaranteeNoInvoiceMoney; |
||||
|
/** |
||||
|
* 保内未回款 |
||||
|
*/ |
||||
|
private String threeGuaranteeUnpaid; |
||||
|
/** |
||||
|
* 保外未回款 |
||||
|
*/ |
||||
|
private String threeGuaranteeUnpaid2; |
||||
|
/** |
||||
|
* 保内未回款金额 |
||||
|
*/ |
||||
|
private String threeGuaranteeUnpaidMoney; |
||||
|
/** |
||||
|
* 保外未回款金额 |
||||
|
*/ |
||||
|
private String threeGuaranteeUnpaidMoney2; |
||||
|
|
||||
|
} |
@ -0,0 +1,271 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.reportcenter.api.asdailyreport; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: report(售后报表) <br/> |
||||
|
* File: AsDailyReportDto.java <br/> |
||||
|
* Class: com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReportDto <br/> |
||||
|
* Description: 售后日报表 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-11-01 10:15:47 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "售后日报表 数据传输对象", description = "售后日报表 数据传输对象") |
||||
|
public class AsDailyReportDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("id") |
||||
|
private Long id; //
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("createTime") |
||||
|
private Date createTimeStart; //
|
||||
|
private Date createTimeEnd; //
|
||||
|
@ApiModelProperty("事业部sid") |
||||
|
private String busOrgSid; // 事业部sid
|
||||
|
@ApiModelProperty("事业部名称") |
||||
|
private String busOrgName; // 事业部名称
|
||||
|
@ApiModelProperty("分公司sid") |
||||
|
private String createOrgSid; // 分公司sid
|
||||
|
@ApiModelProperty("分公司名称") |
||||
|
private String createOrgName; // 分公司名称
|
||||
|
@ApiModelProperty("部门(服务站)sid") |
||||
|
private String useOrgSid; // 部门(服务站)sid
|
||||
|
@ApiModelProperty("部门(服务站)") |
||||
|
private String useOrgName; // 部门(服务站)
|
||||
|
@ApiModelProperty("维修开单-本日") |
||||
|
private Integer busrepairOrder_day; // 维修开单-本日
|
||||
|
@ApiModelProperty("维修开单-本日保内") |
||||
|
private Integer busrepairOrder_day_inside; // 维修开单-本日保内
|
||||
|
@ApiModelProperty("维修开单-本日保外") |
||||
|
private Integer busrepairOrder_day_out; // 维修开单-本日保外
|
||||
|
@ApiModelProperty("维修开单-本月") |
||||
|
private Integer busrepairOrder_month; // 维修开单-本月
|
||||
|
@ApiModelProperty("维修开单-本月保内") |
||||
|
private Integer busrepairOrder_month_inside; // 维修开单-本月保内
|
||||
|
@ApiModelProperty("维修开单-本月保外") |
||||
|
private Integer busrepairOrder_month_out; // 维修开单-本月保外
|
||||
|
@ApiModelProperty("维修开单-本年") |
||||
|
private Integer busrepairOrder_year; // 维修开单-本年
|
||||
|
@ApiModelProperty("维修开单-本年保内") |
||||
|
private Integer busrepairOrder_year_inside; // 维修开单-本年保内
|
||||
|
@ApiModelProperty("维修开单-本年保外") |
||||
|
private Integer busrepairOrder_year_out; // 维修开单-本年保外
|
||||
|
@ApiModelProperty("在修车辆") |
||||
|
private Integer repair_veh; // 在修车辆
|
||||
|
@ApiModelProperty("在修车辆-保内") |
||||
|
private Integer repair_veh_inside; // 在修车辆-保内
|
||||
|
@ApiModelProperty("在修车辆-保外") |
||||
|
private Integer repair_veh_out; // 在修车辆-保外
|
||||
|
@ApiModelProperty("索赔单-已竣工未提报数量") |
||||
|
private Integer claim_form_noReporting_num; // 索赔单-已竣工未提报数量
|
||||
|
@ApiModelProperty("索赔单-已竣工未提报金额") |
||||
|
private BigDecimal claim_form_noReporting_amount; // 索赔单-已竣工未提报金额
|
||||
|
@ApiModelProperty("索赔单-已提报未生效数量") |
||||
|
private Integer claim_form_reporting_num; // 索赔单-已提报未生效数量
|
||||
|
@ApiModelProperty("索赔单-已提报未生效金额") |
||||
|
private BigDecimal claim_form_reporting_amount; // 索赔单-已提报未生效金额
|
||||
|
@ApiModelProperty("维修业务-本日结算台数") |
||||
|
private Integer repair_bus_veh_day; // 维修业务-本日结算台数
|
||||
|
@ApiModelProperty("维修业务-本日结算金额") |
||||
|
private BigDecimal repair_bus_veh_amount_day; // 维修业务-本日结算金额
|
||||
|
@ApiModelProperty("维修业务-本日保内结算台数") |
||||
|
private Integer repair_bus_veh_inside_day; // 维修业务-本日保内结算台数
|
||||
|
@ApiModelProperty("维修业务-本日保内结算金额") |
||||
|
private BigDecimal repair_bus_veh_inside_amount_day; // 维修业务-本日保内结算金额
|
||||
|
@ApiModelProperty("维修业务-本日保外结算台数") |
||||
|
private Integer repair_bus_veh_out_day; // 维修业务-本日保外结算台数
|
||||
|
@ApiModelProperty("维修业务-本日保外结算金额") |
||||
|
private BigDecimal repair_bus_veh_out_amount_day; // 维修业务-本日保外结算金额
|
||||
|
@ApiModelProperty("配件销售业务-本日结算数量") |
||||
|
private Integer sales_bus_veh_day; // 配件销售业务-本日结算数量
|
||||
|
@ApiModelProperty("配件销售业务-本日结算金额") |
||||
|
private BigDecimal sales_bus_veh_amount_day; // 配件销售业务-本日结算金额
|
||||
|
@ApiModelProperty("维修业务-本月结算台数") |
||||
|
private Integer repair_bus_veh_month; // 维修业务-本月结算台数
|
||||
|
@ApiModelProperty("维修业务-本月结算金额") |
||||
|
private BigDecimal repair_bus_veh_amount_month; // 维修业务-本月结算金额
|
||||
|
@ApiModelProperty("维修业务-本月保内结算台数") |
||||
|
private Integer repair_bus_veh_inside_month; // 维修业务-本月保内结算台数
|
||||
|
@ApiModelProperty("维修业务-本月保内结算金额") |
||||
|
private BigDecimal repair_bus_veh_inside_amount_month; // 维修业务-本月保内结算金额
|
||||
|
@ApiModelProperty("维修业务-本月保外结算台数") |
||||
|
private Integer repair_bus_veh_out_month; // 维修业务-本月保外结算台数
|
||||
|
@ApiModelProperty("维修业务-本月保外结算金额") |
||||
|
private BigDecimal repair_bus_veh_out_amount_month; // 维修业务-本月保外结算金额
|
||||
|
@ApiModelProperty("配件销售业务-本月结算数量") |
||||
|
private Integer sales_bus_veh_month; // 配件销售业务-本月结算数量
|
||||
|
@ApiModelProperty("配件销售业务-本月结算金额") |
||||
|
private BigDecimal sales_bus_veh_amount_month; // 配件销售业务-本月结算金额
|
||||
|
@ApiModelProperty("维修业务-本年结算台数") |
||||
|
private Integer repair_bus_veh_year; // 维修业务-本年结算台数
|
||||
|
@ApiModelProperty("维修业务-本年结算金额") |
||||
|
private BigDecimal repair_bus_veh_amount_year; // 维修业务-本年结算金额
|
||||
|
@ApiModelProperty("维修业务-本年保内结算台数") |
||||
|
private Integer repair_bus_veh_inside_year; // 维修业务-本年保内结算台数
|
||||
|
@ApiModelProperty("维修业务-本年保内结算金额") |
||||
|
private BigDecimal repair_bus_veh_inside_amount_year; // 维修业务-本年保内结算金额
|
||||
|
@ApiModelProperty("维修业务-本年保外结算台数") |
||||
|
private Integer repair_bus_veh_out_year; // 维修业务-本年保外结算台数
|
||||
|
@ApiModelProperty("维修业务-本年保外结算金额") |
||||
|
private BigDecimal repair_bus_veh_out_amount_year; // 维修业务-本年保外结算金额
|
||||
|
@ApiModelProperty("配件销售业务-本年结算数量") |
||||
|
private Integer sales_bus_veh_year; // 配件销售业务-本年结算数量
|
||||
|
@ApiModelProperty("配件销售业务-本年结算金额") |
||||
|
private BigDecimal sales_bus_veh_amount_year; // 配件销售业务-本年结算金额
|
||||
|
@ApiModelProperty("采购订单-本日结算数量") |
||||
|
private Integer purchase_order_day; // 采购订单-本日结算数量
|
||||
|
@ApiModelProperty("采购订单-本日结算金额") |
||||
|
private BigDecimal purchase_order_amount_day; // 采购订单-本日结算金额
|
||||
|
@ApiModelProperty("采购订单-本月结算数量") |
||||
|
private Integer purchase_order_month; // 采购订单-本月结算数量
|
||||
|
@ApiModelProperty("采购订单-本月结算金额") |
||||
|
private BigDecimal purchase_order_amount_month; // 采购订单-本月结算金额
|
||||
|
@ApiModelProperty("采购订单-本年结算数量") |
||||
|
private Integer purchase_order_year; // 采购订单-本年结算数量
|
||||
|
@ApiModelProperty("采购订单-本年结算金额") |
||||
|
private BigDecimal purchase_order_amount_year; // 采购订单-本年结算金额
|
||||
|
@ApiModelProperty("配件库存-总数量") |
||||
|
private Integer fittings_counts; // 配件库存-总数量
|
||||
|
@ApiModelProperty("配件库存-总金额") |
||||
|
private BigDecimal fittings_amount; // 配件库存-总金额
|
||||
|
@ApiModelProperty("配件库存-正常(1-90天)数量") |
||||
|
private Integer fittings_normal; // 配件库存-正常(1-90天)数量
|
||||
|
@ApiModelProperty("配件库存-正常(1-90天)金额") |
||||
|
private BigDecimal fittings_normal_amount; // 配件库存-正常(1-90天)金额
|
||||
|
@ApiModelProperty("配件库存-滞销件(91-180天)数量") |
||||
|
private Integer fittings_unsalable; // 配件库存-滞销件(91-180天)数量
|
||||
|
@ApiModelProperty("配件库存-滞销件(91-180天)金额") |
||||
|
private BigDecimal fittings_unsalable_amount; // 配件库存-滞销件(91-180天)金额
|
||||
|
@ApiModelProperty("配件库存-积压件(181-270天)数量") |
||||
|
private Integer fittings_backlog_one; // 配件库存-积压件(181-270天)数量
|
||||
|
@ApiModelProperty("配件库存-积压件(181-270天)金额") |
||||
|
private BigDecimal fittings_backlog_one_amount; // 配件库存-积压件(181-270天)金额
|
||||
|
@ApiModelProperty("配件库存-积压件(271-360天)数量") |
||||
|
private Integer fittings_backlog_two; // 配件库存-积压件(271-360天)数量
|
||||
|
@ApiModelProperty("配件库存-积压件(271-360天)金额") |
||||
|
private BigDecimal fittings_backlog_two_amount; // 配件库存-积压件(271-360天)金额
|
||||
|
@ApiModelProperty("配件库存-积压件(361-720天)数量") |
||||
|
private Integer fittings_backlog_three; // 配件库存-积压件(361-720天)数量
|
||||
|
@ApiModelProperty("配件库存-积压件(361-720天)金额") |
||||
|
private BigDecimal fittings_backlog_three_amount; // 配件库存-积压件(361-720天)金额
|
||||
|
@ApiModelProperty("配件库存-积压件(720天以上)数量") |
||||
|
private Integer fittings_backlog_four; // 配件库存-积压件(720天以上)数量
|
||||
|
@ApiModelProperty("配件库存-积压件(720天以上)金额") |
||||
|
private BigDecimal fittings_backlog_four_amount; // 配件库存-积压件(720天以上)金额
|
||||
|
@ApiModelProperty("配件流转-本日入库数量") |
||||
|
private Integer fittings_in_counts_day; // 配件流转-本日入库数量
|
||||
|
@ApiModelProperty("配件流转-本日入库金额") |
||||
|
private BigDecimal fittings_in_amount_day; // 配件流转-本日入库金额
|
||||
|
@ApiModelProperty("配件流转-本月入库数量") |
||||
|
private Integer fittings_in_counts_month; // 配件流转-本月入库数量
|
||||
|
@ApiModelProperty("配件流转-本月入库金额") |
||||
|
private BigDecimal fittings_in_amount_month; // 配件流转-本月入库金额
|
||||
|
@ApiModelProperty("配件流转-本年入库数量") |
||||
|
private Integer fittings_in_counts_year; // 配件流转-本年入库数量
|
||||
|
@ApiModelProperty("配件流转-本年入库金额") |
||||
|
private BigDecimal fittings_in_amount_year; // 配件流转-本年入库金额
|
||||
|
@ApiModelProperty("配件流转-本日出库数量") |
||||
|
private Integer fittings_out_counts_day; // 配件流转-本日出库数量
|
||||
|
@ApiModelProperty("配件流转-本日出库金额") |
||||
|
private BigDecimal fittings_out_amount_day; // 配件流转-本日出库金额
|
||||
|
@ApiModelProperty("配件流转-本月出库数量") |
||||
|
private Integer fittings_out_counts_month; // 配件流转-本月出库数量
|
||||
|
@ApiModelProperty("配件流转-本月出库金额") |
||||
|
private BigDecimal fittings_out_amount_month; // 配件流转-本月出库金额
|
||||
|
@ApiModelProperty("配件流转-本年出库数量") |
||||
|
private Integer fittings_out_counts_year; // 配件流转-本年出库数量
|
||||
|
@ApiModelProperty("配件流转-本年出库金额") |
||||
|
private BigDecimal fittings_out_amount_year; // 配件流转-本年出库金额
|
||||
|
@ApiModelProperty("旧件库存-总数量") |
||||
|
private Integer old_fittings_all_counts; // 旧件库存-总数量
|
||||
|
@ApiModelProperty("旧件库存-保内数量") |
||||
|
private Integer old_fittings_in_counts; // 旧件库存-保内数量
|
||||
|
@ApiModelProperty("旧件库存-保外数量") |
||||
|
private Integer old_fittings_out_counts; // 旧件库存-保外数量
|
||||
|
@ApiModelProperty("旧件流转-本日入库数量") |
||||
|
private Integer old_fittings_in_day; // 旧件流转-本日入库数量
|
||||
|
@ApiModelProperty("旧件流转-本月入库数量") |
||||
|
private Integer old_fittings_in_month; // 旧件流转-本月入库数量
|
||||
|
@ApiModelProperty("旧件流转-本年入库数量") |
||||
|
private Integer old_fittings_in_year; // 旧件流转-本年入库数量
|
||||
|
@ApiModelProperty("旧件流转-本日出库数量") |
||||
|
private Integer old_fittings_out_day; // 旧件流转-本日出库数量
|
||||
|
@ApiModelProperty("旧件流转-本月出库数量") |
||||
|
private Integer old_fittings_out_month; // 旧件流转-本月出库数量
|
||||
|
@ApiModelProperty("旧件流转-本年出库数量") |
||||
|
private Integer old_fittings_out_year; // 旧件流转-本年出库数量
|
||||
|
@ApiModelProperty("旧件流转-本日出库数量其中返件") |
||||
|
private Integer old_fittings_out_day_return; // 旧件流转-本日出库数量其中返件
|
||||
|
@ApiModelProperty("旧件流转-本月出库数量其中返件") |
||||
|
private Integer old_fittings_out_month_return; // 旧件流转-本月出库数量其中返件
|
||||
|
@ApiModelProperty("旧件流转-本年出库数量其中返件") |
||||
|
private Integer old_fittings_out_year_return; // 旧件流转-本年出库数量其中返件
|
||||
|
@ApiModelProperty("保外未回款-台数") |
||||
|
private Integer insurance_out_Payment_counts; // 保外未回款-台数
|
||||
|
@ApiModelProperty("保外未回款-金额") |
||||
|
private BigDecimal insurance_out_Payment_amount; // 保外未回款-金额
|
||||
|
@ApiModelProperty("保外未回款-客户欠款台数") |
||||
|
private Integer out_Payment_customer_counts; // 保外未回款-客户欠款台数
|
||||
|
@ApiModelProperty("保外未回款-客户欠款金额") |
||||
|
private BigDecimal out_Payment_customer_debt; // 保外未回款-客户欠款金额
|
||||
|
@ApiModelProperty("保外未回款-保险欠款台数") |
||||
|
private Integer out_Payment_insurance_counts; // 保外未回款-保险欠款台数
|
||||
|
@ApiModelProperty("保外未回款-保险欠款金额") |
||||
|
private BigDecimal out_Payment_insurance_debt; // 保外未回款-保险欠款金额
|
||||
|
@ApiModelProperty("保内未回款-台数") |
||||
|
private Integer insurance_in_Payment_counts; // 保内未回款-台数
|
||||
|
@ApiModelProperty("保内未回款-金额") |
||||
|
private BigDecimal insurance_in_Payment_amount; // 保内未回款-金额
|
||||
|
@ApiModelProperty("保内未回款-已开票台数") |
||||
|
private Integer in_Payment_invoice_counts; // 保内未回款-已开票台数
|
||||
|
@ApiModelProperty("保内未回款-已开票金额") |
||||
|
private BigDecimal in_Payment_invoice_amount; // 保内未回款-已开票金额
|
||||
|
@ApiModelProperty("保内未回款-未开票台数") |
||||
|
private Integer in_Payment_no_invoice_counts; // 保内未回款-未开票台数
|
||||
|
@ApiModelProperty("保内未回款-未开票金额") |
||||
|
private BigDecimal in_Payment_no_invoice_amount; // 保内未回款-未开票金额
|
||||
|
@ApiModelProperty("代理库账户余额") |
||||
|
private BigDecimal proxy_library_balance; // 代理库账户余额
|
||||
|
|
||||
|
} |
@ -0,0 +1,82 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.reportcenter.api.asdailyreport; |
||||
|
|
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: report(售后报表) <br/> |
||||
|
* File: AsDailyReportFeign.java <br/> |
||||
|
* Class: com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReportFeign <br/> |
||||
|
* Description: 售后日报表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-11-01 10:15:47 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "售后日报表") |
||||
|
@FeignClient( |
||||
|
contextId = "report-AsDailyReport", |
||||
|
name = "anrui-reportcenter", |
||||
|
path = "v1/ASDailyReport", |
||||
|
fallback = AsDailyReportFeignFallback.class) |
||||
|
public interface AsDailyReportFeign { |
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/pageList1") |
||||
|
@ResponseBody |
||||
|
public ResultBean<PagerVo<AsDailyReportVo>> listPage(@RequestBody PagerQuery<AsDailyReportQuery> pq); |
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
@ResponseBody |
||||
|
public ResultBean save(@RequestBody AsDailyReportDto dto); |
||||
|
|
||||
|
@ApiOperation("根据sid删除记录") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
@ResponseBody |
||||
|
public ResultBean delBySids(@RequestBody String[] sids); |
||||
|
|
||||
|
@ApiOperation("售后日期初始化") |
||||
|
@GetMapping("/getReport") |
||||
|
public ResultBean<AsDailyReportDetailsVo> fetchDetailsBySid(@RequestParam("date") String date, |
||||
|
@RequestParam("userSid") String userSid, |
||||
|
@RequestParam("menuSid") String menuSid, |
||||
|
@RequestParam("orgPath") String orgPath |
||||
|
); |
||||
|
|
||||
|
} |
@ -0,0 +1,72 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.reportcenter.api.asdailyreport; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: report(售后报表) <br/> |
||||
|
* File: AsDailyReportFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReportFeignFallback <br/> |
||||
|
* Description: 售后日报表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-11-01 10:15:47 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class AsDailyReportFeignFallback implements AsDailyReportFeign { |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<PagerVo<AsDailyReportVo>> listPage(PagerQuery<AsDailyReportQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口report/asdailyreport/listPage无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean save(AsDailyReportDto dto){ |
||||
|
return ResultBean.fireFail().setMsg("接口report/asdailyreport/save无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean delBySids( String[] sids){ |
||||
|
return ResultBean.fireFail().setMsg("接口report/asdailyreport/delBySids无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<AsDailyReportDetailsVo> fetchDetailsBySid(String sid, String userSid, String menuSid, String orgPath) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,60 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.reportcenter.api.asdailyreport; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: report(售后报表) <br/> |
||||
|
* File: AsDailyReportQuery.java <br/> |
||||
|
* Class: com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReportQuery <br/> |
||||
|
* Description: 售后日报表 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-11-01 10:15:47 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "售后日报表 查询条件", description = "售后日报表 查询条件") |
||||
|
public class AsDailyReportQuery implements Query { |
||||
|
|
||||
|
private String userSid; |
||||
|
private String orgPath; |
||||
|
private String menuSid; |
||||
|
|
||||
|
} |
@ -0,0 +1,125 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.reportcenter.api.asdailyreport; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: report(售后报表) <br/> |
||||
|
* File: AsDailyReportVo.java <br/> |
||||
|
* Class: com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReportVo <br/> |
||||
|
* Description: 售后日报表 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-11-01 10:15:47 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "售后日报表 视图数据对象", description = "售后日报表 视图数据对象") |
||||
|
public class AsDailyReportVo implements Vo { |
||||
|
|
||||
|
/** |
||||
|
* 日期 |
||||
|
*/ |
||||
|
private String date; |
||||
|
/** |
||||
|
* 本日开单 |
||||
|
*/ |
||||
|
private String todayOrder; |
||||
|
/** |
||||
|
* 在修车辆 |
||||
|
*/ |
||||
|
private String repairingCar; |
||||
|
/** |
||||
|
* 索赔未生效数量 |
||||
|
*/ |
||||
|
private String claimNotEffective; |
||||
|
/** |
||||
|
* 今日销售 |
||||
|
*/ |
||||
|
private String todaySale; |
||||
|
/** |
||||
|
* 本日结算 |
||||
|
*/ |
||||
|
private String todayPay; |
||||
|
/** |
||||
|
* 本日采购 |
||||
|
*/ |
||||
|
private String todayBuy; |
||||
|
/** |
||||
|
* 配件库存数量 |
||||
|
*/ |
||||
|
private String partsStock; |
||||
|
/** |
||||
|
* 配件本日入库数量 |
||||
|
*/ |
||||
|
private String partsTodayIn; |
||||
|
/** |
||||
|
* 配件本日出库数量 |
||||
|
*/ |
||||
|
private String partsTodayOut; |
||||
|
/** |
||||
|
* 旧件本日入库数量 |
||||
|
*/ |
||||
|
private String oldPartsTodayIn; |
||||
|
|
||||
|
/** |
||||
|
* 旧件本日出库数量 |
||||
|
*/ |
||||
|
private String oldPartsTodayOut; |
||||
|
/** |
||||
|
* 旧件库存数量 |
||||
|
*/ |
||||
|
private String oldPartsStock; |
||||
|
/** |
||||
|
* 客户欠款 |
||||
|
*/ |
||||
|
private String customerArrears; |
||||
|
|
||||
|
/** |
||||
|
* 保险欠款 |
||||
|
*/ |
||||
|
private String insuranceArrears; |
||||
|
/** |
||||
|
* 三包未回款 |
||||
|
*/ |
||||
|
private String threeGuaranteesUnpaid; |
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,71 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.reportcenter.biz.asdailyreport; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.baomidou.mybatisplus.core.toolkit.Constants; |
||||
|
import com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReportDetailsVo; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.apache.ibatis.annotations.Select; |
||||
|
import com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReport; |
||||
|
import com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReportVo; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: report(售后报表) <br/> |
||||
|
* File: AsDailyReportMapper.java <br/> |
||||
|
* Class: com.yxt.anrui.reportcenter.biz.asdailyreport.AsDailyReportMapper <br/> |
||||
|
* Description: 售后日报表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-11-01 10:15:47 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface AsDailyReportMapper extends BaseMapper<AsDailyReport> { |
||||
|
|
||||
|
//@Update("update as_daily_report set name=#{msg} where id=#{id}")
|
||||
|
//IPage<AsDailyReportVo> voPage(IPage<AsDailyReport> page, @Param(Constants.WRAPPER) QueryWrapper<AsDailyReport> qw);
|
||||
|
|
||||
|
IPage<AsDailyReportVo> selectPageVo(IPage<AsDailyReport> page, @Param(Constants.WRAPPER) Wrapper<AsDailyReport> qw); |
||||
|
|
||||
|
List<AsDailyReportVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<AsDailyReport> qw); |
||||
|
|
||||
|
@Select("select * from as_daily_report") |
||||
|
List<AsDailyReportVo> selectListVo(); |
||||
|
|
||||
|
IPage<AsDailyReportVo> listPage(IPage<AsDailyReport> page, @Param(Constants.WRAPPER)QueryWrapper<AsDailyReport> qw); |
||||
|
|
||||
|
AsDailyReportDetailsVo fetchDetailsVoBySid(@Param(Constants.WRAPPER) QueryWrapper<AsDailyReport> qw, @Param("date") String date); |
||||
|
} |
@ -0,0 +1,158 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.yxt.anrui.reportcenter.biz.asdailyreport.AsDailyReportMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReportVo"> |
||||
|
SELECT * FROM as_daily_report <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReportVo"> |
||||
|
SELECT * FROM as_daily_report <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
<select id="listPage" resultType="com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReportVo"> |
||||
|
SELECT |
||||
|
DATE_FORMAT( createTime, '%Y-%m-%d' ) `date`, |
||||
|
SUM( busrepairOrder_day ) todayOrder, |
||||
|
SUM( repair_veh ) repairingCar, |
||||
|
SUM( claim_form_reporting_num ) claimNotEffective, |
||||
|
0 + CAST( SUM( sales_bus_veh_amount_month )/ 10000 AS CHAR ) todaySale, |
||||
|
0 + CAST( SUM( repair_bus_veh_amount_day )/ 10000 AS CHAR ) todayPay, |
||||
|
0 + CAST( SUM( purchase_order_amount_day )/ 10000 AS CHAR ) todayBuy, |
||||
|
SUM( fittings_counts ) partsStock, |
||||
|
SUM( fittings_in_counts_day ) partsTodayIn, |
||||
|
SUM( fittings_out_counts_day ) partsTodayOut, |
||||
|
SUM( old_fittings_in_day ) oldPartsTodayIn, |
||||
|
SUM( old_fittings_out_day ) oldPartsTodayOut, |
||||
|
SUM( old_fittings_all_counts ) oldPartsStock, |
||||
|
0 + CAST( SUM( out_Payment_customer_debt )/ 10000 AS CHAR ) customerArrears, |
||||
|
0 + CAST( SUM( out_Payment_insurance_debt )/ 10000 AS CHAR ) insuranceArrears, |
||||
|
0 + CAST( SUM( proxy_library_balance )/ 10000 AS CHAR ) threeGuaranteesUnpaid |
||||
|
FROM |
||||
|
as_daily_report |
||||
|
<where> |
||||
|
${ew.sqlSegment} |
||||
|
</where> |
||||
|
GROUP BY |
||||
|
DATE_FORMAT( |
||||
|
createTime, |
||||
|
'%Y-%m-%d' |
||||
|
) |
||||
|
</select> |
||||
|
<select id="fetchDetailsVoBySid" |
||||
|
resultType="com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReportDetailsVo"> |
||||
|
SELECT |
||||
|
* |
||||
|
FROM |
||||
|
( |
||||
|
SELECT |
||||
|
0 + CAST( SUM( proxy_library_balance )/ 10000 AS CHAR ) accountBalance, |
||||
|
SUM( claim_form_reporting_num ) claimFormNotEffect, |
||||
|
0 + CAST( SUM( claim_form_reporting_amount )/ 10000 AS CHAR ) claimFormNotEffectMoney, |
||||
|
SUM( claim_form_noReporting_num ) claimFormNotReported, |
||||
|
0 + CAST( SUM( claim_form_noReporting_amount )/ 10000 AS CHAR ) claimFormNotReportedMoney, |
||||
|
SUM( out_Payment_customer_counts ) customerDebt, |
||||
|
0 + CAST( SUM( out_Payment_customer_debt )/ 10000 AS CHAR ) customerDebtMoney, |
||||
|
SUM( out_Payment_insurance_counts ) insuranceDebt, |
||||
|
0 + CAST( SUM( out_Payment_insurance_debt )/ 10000 AS CHAR ) insuranceDebtMoney, |
||||
|
SUM( old_fittings_all_counts ) oldPartsStock, |
||||
|
SUM( old_fittings_in_counts ) oldPartsStockIn, |
||||
|
SUM( old_fittings_out_counts ) oldPartsStockOut, |
||||
|
SUM( old_fittings_in_day ) oldPartsTransferInMonth, |
||||
|
SUM( old_fittings_in_month ) oldPartsTransferInToday, |
||||
|
SUM( old_fittings_in_year ) oldPartsTransferInYear, |
||||
|
SUM( old_fittings_out_day ) oldPartsTransferOutToday, |
||||
|
SUM( old_fittings_out_month ) oldPartsTransferOutMonth, |
||||
|
SUM( old_fittings_out_year ) oldPartsTransferOutYear, |
||||
|
SUM( old_fittings_out_day_return ) oldPartsTransferOutReturnToday, |
||||
|
SUM( old_fittings_out_month_return ) oldPartsTransferOutReturnMonth, |
||||
|
SUM( old_fittings_out_year_return ) oldPartsTransferOutReturnYear, |
||||
|
SUM( sales_bus_veh_month ) partsMonth, |
||||
|
0 + CAST( SUM( sales_bus_veh_amount_month )/ 10000 AS CHAR ) partsMonthMoney, |
||||
|
SUM( fittings_counts ) partsStock, |
||||
|
SUM( fittings_normal ) partsStock1, |
||||
|
SUM( fittings_unsalable ) partsStock2, |
||||
|
SUM( fittings_backlog_one ) partsStock3, |
||||
|
SUM( fittings_backlog_two ) partsStock4, |
||||
|
SUM( fittings_backlog_three ) partsStock5, |
||||
|
SUM( fittings_backlog_four ) partsStock6, |
||||
|
0 + CAST( SUM( fittings_amount )/ 10000 AS CHAR ) partsStockMoney, |
||||
|
0 + CAST( SUM( fittings_normal_amount )/ 10000 AS CHAR ) partsStockMoney1, |
||||
|
0 + CAST( SUM( fittings_unsalable_amount )/ 10000 AS CHAR ) partsStockMoney2, |
||||
|
0 + CAST( SUM( fittings_backlog_one_amount )/ 10000 AS CHAR ) partsStockMoney3, |
||||
|
0 + CAST( SUM( fittings_backlog_two_amount )/ 10000 AS CHAR ) partsStockMoney4, |
||||
|
0 + CAST( SUM( fittings_backlog_three_amount )/ 10000 AS CHAR ) partsStockMoney5, |
||||
|
0 + CAST( SUM( fittings_backlog_four_amount )/ 10000 AS CHAR ) partsStockMoney6, |
||||
|
SUM( sales_bus_veh_day ) partsToday, |
||||
|
0 + CAST( SUM( sales_bus_veh_amount_day )/ 10000 AS CHAR ) partsTodayMoney, |
||||
|
SUM( fittings_in_counts_month ) partsTransferInMonth, |
||||
|
0 + CAST( SUM( fittings_in_amount_month )/ 10000 AS CHAR ) partsTransferInMonthMoney, |
||||
|
SUM( fittings_in_counts_day ) partsTransferInToday, |
||||
|
0 + CAST( SUM( fittings_in_amount_day )/ 10000 AS CHAR ) partsTransferInTodayMoney, |
||||
|
SUM( fittings_in_counts_year ) partsTransferInYear, |
||||
|
0 + CAST( SUM( fittings_in_amount_year )/ 10000 AS CHAR ) partsTransferInYearMoney, |
||||
|
SUM( fittings_out_counts_month ) partsTransferOutMonth, |
||||
|
0 + CAST( SUM( fittings_out_amount_month )/ 10000 AS CHAR ) partsTransferOutMonthMoney, |
||||
|
SUM( fittings_out_counts_day ) partsTransferOutToday, |
||||
|
0 + CAST( SUM( fittings_out_amount_day )/ 10000 AS CHAR ) partsTransferOutTodayMoney, |
||||
|
SUM( fittings_out_counts_year ) partsTransferOutYear, |
||||
|
0 + CAST( SUM( fittings_out_amount_year )/ 10000 AS CHAR ) partsTransferOutYearMoney, |
||||
|
SUM( sales_bus_veh_year ) partsYear, |
||||
|
0 + CAST( SUM( sales_bus_veh_amount_year )/ 10000 AS CHAR ) partsYearMoney, |
||||
|
SUM( purchase_order_month ) procuredMonth, |
||||
|
0 + CAST( SUM( purchase_order_amount_month )/ 10000 AS CHAR ) procuredMonthMoney, |
||||
|
SUM( purchase_order_day ) procuredToday, |
||||
|
0 + CAST( SUM( purchase_order_amount_day )/ 10000 AS CHAR ) procuredTodayMoney, |
||||
|
SUM( purchase_order_year ) procuredYear, |
||||
|
0 + CAST( SUM( purchase_order_amount_year )/ 10000 AS CHAR ) procuredYearMoney, |
||||
|
SUM( repair_bus_veh_month ) repairMonth, |
||||
|
SUM( repair_bus_veh_inside_month ) repairMonthIn, |
||||
|
0 + CAST( SUM( repair_bus_veh_inside_amount_month )/ 10000 AS CHAR ) repairMonthInMoney, |
||||
|
0 + CAST( SUM( repair_bus_veh_amount_month )/ 10000 AS CHAR ) repairMonthMoney, |
||||
|
SUM( repair_bus_veh_out_month ) repairMonthOut, |
||||
|
0 + CAST( SUM( repair_bus_veh_out_amount_month )/ 10000 AS CHAR ) repairMonthOutMoney, |
||||
|
SUM( busrepairOrder_month ) repairOrderMonth, |
||||
|
SUM( busrepairOrder_month_inside ) repairOrderMonthIn, |
||||
|
SUM( busrepairOrder_month_out ) repairOrderMonthOut, |
||||
|
SUM( busrepairOrder_day ) repairOrderToday, |
||||
|
SUM( busrepairOrder_day_inside ) repairOrderTodayIn, |
||||
|
SUM( busrepairOrder_day_out ) repairOrderTodayOut, |
||||
|
SUM( busrepairOrder_year ) repairOrderYear, |
||||
|
SUM( busrepairOrder_year_inside ) repairOrderYearIn, |
||||
|
SUM( busrepairOrder_year_out ) repairOrderYearOut, |
||||
|
SUM( repair_bus_veh_day ) repairToday, |
||||
|
SUM( repair_bus_veh_inside_day ) repairTodayIn, |
||||
|
0 + CAST( SUM( repair_bus_veh_inside_amount_day )/ 10000 AS CHAR ) repairTodayInMoney, |
||||
|
0 + CAST( SUM( repair_bus_veh_amount_day )/ 10000 AS CHAR ) repairTodayMoney, |
||||
|
SUM( repair_bus_veh_out_day ) repairTodayOut, |
||||
|
0 + CAST( SUM( repair_bus_veh_out_amount_day )/ 10000 AS CHAR ) repairTodayOutMoney, |
||||
|
SUM( repair_bus_veh_year ) repairYear, |
||||
|
SUM( repair_bus_veh_inside_year ) repairYearIn, |
||||
|
0 + CAST( SUM( repair_bus_veh_inside_amount_year )/ 10000 AS CHAR ) repairYearInMoney, |
||||
|
0 + CAST( SUM( repair_bus_veh_amount_year )/ 10000 AS CHAR ) repairYearMoney, |
||||
|
SUM( repair_bus_veh_out_year ) repairYearOut, |
||||
|
0 + CAST( SUM( repair_bus_veh_out_amount_year )/ 10000 AS CHAR ) repairYearOutMoney, |
||||
|
SUM( repair_veh ) repairing, |
||||
|
SUM( repair_veh_inside ) repairingIn, |
||||
|
SUM( repair_veh_out ) repairingOut, |
||||
|
SUM( in_Payment_invoice_counts ) threeGuaranteeInvoice, |
||||
|
0 + CAST( SUM( in_Payment_invoice_amount )/ 10000 AS CHAR ) threeGuaranteeInvoiceMoney, |
||||
|
SUM( in_Payment_no_invoice_counts ) threeGuaranteeNoInvoice, |
||||
|
0 + CAST( SUM( in_Payment_no_invoice_amount )/ 10000 AS CHAR ) threeGuaranteeNoInvoiceMoney, |
||||
|
SUM( insurance_in_Payment_counts ) threeGuaranteeUnpaid, |
||||
|
SUM( insurance_out_Payment_counts ) threeGuaranteeUnpaid2, |
||||
|
0 + CAST( SUM( insurance_in_Payment_amount )/ 10000 AS CHAR ) threeGuaranteeUnpaidMoney, |
||||
|
0 + CAST( SUM( insurance_out_Payment_amount )/ 10000 AS CHAR ) threeGuaranteeUnpaidMoney2, |
||||
|
DATE_FORMAT( createTime, '%Y-%m-%d' ) `date` |
||||
|
FROM |
||||
|
as_daily_report |
||||
|
<where> |
||||
|
${ew.sqlSegment} |
||||
|
</where> |
||||
|
GROUP BY |
||||
|
DATE_FORMAT( createTime, '%Y-%m-%d' ) |
||||
|
) a |
||||
|
WHERE |
||||
|
a.`date` = #{date} |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,96 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.reportcenter.biz.asdailyreport; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReport; |
||||
|
import com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReportQuery; |
||||
|
import com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReportVo; |
||||
|
import com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReportDetailsVo; |
||||
|
import com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReportDto; |
||||
|
import com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReportFeign; |
||||
|
|
||||
|
/** |
||||
|
* Project: report(售后报表) <br/> |
||||
|
* File: AsDailyReportFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.reportcenter.biz.asdailyreport.AsDailyReportRest <br/> |
||||
|
* Description: 售后日报表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-11-01 10:15:47 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "售后日报表") |
||||
|
@RestController("com.yxt.anrui.reportcenter.biz.asdailyreport.AsDailyReportRest") |
||||
|
@RequestMapping("v1/ASDailyReport") |
||||
|
public class AsDailyReportRest implements AsDailyReportFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private AsDailyReportService asDailyReportService; |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<PagerVo<AsDailyReportVo>> listPage(@RequestBody PagerQuery<AsDailyReportQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<AsDailyReportVo> pv = asDailyReportService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody AsDailyReportDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
asDailyReportService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
asDailyReportService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<AsDailyReportDetailsVo> fetchDetailsBySid(String date, String userSid, String menuSid, String orgPath) { |
||||
|
return asDailyReportService.fetchDetailsVoBySid(date,userSid,menuSid,orgPath); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,185 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.reportcenter.biz.asdailyreport; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.extension.api.R; |
||||
|
import com.yxt.anrui.portal.api.sysuser.PrivilegeQuery; |
||||
|
import com.yxt.anrui.portal.api.sysuser.SysUserFeign; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import com.yxt.common.base.service.MybatisBaseService; |
||||
|
import com.yxt.common.base.utils.PagerUtil; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReport; |
||||
|
import com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReportQuery; |
||||
|
import com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReportVo; |
||||
|
import com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReportDetailsVo; |
||||
|
import com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReportDto; |
||||
|
import com.yxt.anrui.reportcenter.api.asdailyreport.AsDailyReportFeign; |
||||
|
|
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: report(售后报表) <br/> |
||||
|
* File: AsDailyReportService.java <br/> |
||||
|
* Class: com.yxt.anrui.reportcenter.biz.asdailyreport.AsDailyReportService <br/> |
||||
|
* Description: 售后日报表 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-11-01 10:15:47 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class AsDailyReportService extends MybatisBaseService<AsDailyReportMapper, AsDailyReport> { |
||||
|
|
||||
|
@Autowired |
||||
|
private SysUserFeign sysUserFeign; |
||||
|
|
||||
|
private QueryWrapper<AsDailyReport> createQueryWrapper(AsDailyReportQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<AsDailyReport> qw = new QueryWrapper<>(); |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<AsDailyReportVo> listPageVo(PagerQuery<AsDailyReportQuery> pq) { |
||||
|
IPage<AsDailyReport> page = PagerUtil.queryToPage(pq); |
||||
|
AsDailyReportQuery pagerQuery = pq.getParams(); |
||||
|
QueryWrapper<AsDailyReport> qw = new QueryWrapper<>(); |
||||
|
//=======================
|
||||
|
PrivilegeQuery privilegeQuery = new PrivilegeQuery(); |
||||
|
privilegeQuery.setOrgPath(pagerQuery.getOrgPath()); |
||||
|
privilegeQuery.setMenuSid(pagerQuery.getMenuSid()); |
||||
|
privilegeQuery.setUserSid(pagerQuery.getUserSid()); |
||||
|
ResultBean<String> defaultIdReltBean = sysUserFeign.selectPrivilegeLevel(privilegeQuery); |
||||
|
if (StringUtils.isNotBlank(defaultIdReltBean.getData())) { |
||||
|
String orgSidPath = pagerQuery.getOrgPath(); |
||||
|
orgSidPath = orgSidPath + "/"; |
||||
|
int i1 = orgSidPath.indexOf("/"); |
||||
|
int i2 = orgSidPath.indexOf("/", i1 + 1); |
||||
|
int i3 = orgSidPath.indexOf("/", i2 + 1); |
||||
|
int i4 = orgSidPath.indexOf("/", i3 + 1); |
||||
|
//数据权限ID(1集团、2事业部、3分公司、4部门、5个人)
|
||||
|
String orgLevelKey = defaultIdReltBean.getData(); |
||||
|
if ("1".equals(orgLevelKey)) { |
||||
|
//1集团
|
||||
|
} else if ("2".equals(orgLevelKey)) { |
||||
|
orgSidPath = orgSidPath.substring(0, i2); |
||||
|
qw.eq("busOrgSid", orgSidPath); |
||||
|
} else if ("3".equals(orgLevelKey)) { |
||||
|
orgSidPath = orgSidPath.substring(0, i3); |
||||
|
qw.eq("createOrgSid", orgSidPath); |
||||
|
} else if ("4".equals(orgLevelKey)) { |
||||
|
orgSidPath = orgSidPath.substring(0, i4); |
||||
|
qw.eq("useOrgSid", orgSidPath); |
||||
|
//4部门
|
||||
|
} else if ("5".equals(orgLevelKey)) { |
||||
|
PagerVo<AsDailyReportVo> p = new PagerVo<>(); |
||||
|
return p; |
||||
|
} else { |
||||
|
PagerVo<AsDailyReportVo> p = new PagerVo<>(); |
||||
|
return p; |
||||
|
} |
||||
|
} else { |
||||
|
PagerVo<AsDailyReportVo> p = new PagerVo<>(); |
||||
|
return p; |
||||
|
} |
||||
|
IPage<AsDailyReportVo> pagging = baseMapper.listPage(page, qw); |
||||
|
PagerVo<AsDailyReportVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(AsDailyReportDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(AsDailyReportDto dto){ |
||||
|
AsDailyReport entity = new AsDailyReport(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(AsDailyReportDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
AsDailyReport entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public ResultBean<AsDailyReportDetailsVo> fetchDetailsVoBySid(String date, String userSid, String menuSid, String orgPath){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
AsDailyReportDetailsVo vo = new AsDailyReportDetailsVo(); |
||||
|
PrivilegeQuery privilegeQuery = new PrivilegeQuery(); |
||||
|
privilegeQuery.setOrgPath(orgPath); |
||||
|
privilegeQuery.setMenuSid(menuSid); |
||||
|
privilegeQuery.setUserSid(userSid); |
||||
|
ResultBean<String> defaultIdReltBean = sysUserFeign.selectPrivilegeLevel(privilegeQuery); |
||||
|
QueryWrapper<AsDailyReport> qw = new QueryWrapper<>(); |
||||
|
if (StringUtils.isNotBlank(defaultIdReltBean.getData())) { |
||||
|
//数据权限ID(1集团、2事业部、3分公司、4部门、5个人)
|
||||
|
String orgLevelKey = defaultIdReltBean.getData(); |
||||
|
String orgSidPath = orgPath; |
||||
|
orgSidPath = orgSidPath + "/"; |
||||
|
int i1 = orgSidPath.indexOf("/"); |
||||
|
int i2 = orgSidPath.indexOf("/", i1 + 1); |
||||
|
int i3 = orgSidPath.indexOf("/", i2 + 1); |
||||
|
int i4 = orgSidPath.indexOf("/", i3 + 1); |
||||
|
if ("1".equals(orgLevelKey)) { |
||||
|
//1集团
|
||||
|
} else if ("2".equals(orgLevelKey)) { |
||||
|
orgSidPath = orgSidPath.substring(0, i2); |
||||
|
qw.eq("busOrgSid", orgSidPath); |
||||
|
} else if ("3".equals(orgLevelKey)) { |
||||
|
orgSidPath = orgSidPath.substring(0, i3); |
||||
|
qw.eq("createOrgSid", orgSidPath); |
||||
|
} else if ("4".equals(orgLevelKey)) { |
||||
|
orgSidPath = orgSidPath.substring(0, i4); |
||||
|
qw.eq("useOrgSid", orgSidPath); |
||||
|
//4部门
|
||||
|
} |
||||
|
vo = baseMapper.fetchDetailsVoBySid(qw,date); |
||||
|
} |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue