rx
2023-09-20 0559035e70ea4cc36011ae37db18ca2805028689
提交 | 用户 | age
bb3b55 1 package com.hz.his.dto.report;
F 2
3 import lombok.Data;
4
5 import java.util.List;
6
7 /**
8  * @Author  门店业绩报表实体
9  */
10 @Data
11 public class ShopCashReportDto {
12     /**门店标识*/
13     private String shopId;
14     /** 业绩类型   */
15     private String type;
16     /**开始时间*/
17     private String startTime;
18     /**结束时间*/
19     private String endTime;
20     /**门店列表标识*/
21     private List<String> shopIdList;
22
23     /**业绩类型-门店日现金业绩*/
24     public static final String  TYPE_DAY_CASH= "day_cash";
25     /**业绩类型-门店日执行业绩*/
26     public static final String  TYPE_DAY_IMPLEMENT= "day_implement";
27     /**业绩类型-门店周现金业绩*/
28     public static final String  TYPE_WEEK_CASH= "week_cash";
29     /**业绩类型-门店周执行业绩*/
30     public static final String  TYPE_WEEK_IMPLEMENT= "week_implement";
31     /**业绩类型-门店月现金业绩*/
32     public static final String  TYPE_MONTH_CASH= "month_cash";
33     /**业绩类型-门店月执行业绩*/
34     public static final String  TYPE_MONTH_IMPLEMENT= "month_implement";
35
36
37     /** 获取查询门店insql */
38     public String getSelectShopInSql(){
39         if(shopIdList == null || shopIdList.size() < 1){
40             return null;
41         }
42
43         StringBuffer sql = new StringBuffer();
44         sql.append("(");
45         for(String shopId : shopIdList){
46             sql.append("'").append(shopId).append("',");
47         }
48         sql.delete(sql.length()-1, sql.length());
49         sql.append(")");
50         return sql.toString();
51     }
52 }