package com.hz.his.dto.report; import lombok.Data; import java.util.List; /** * @Author 门店业绩报表实体 */ @Data public class ShopCashReportDto { /**门店标识*/ private String shopId; /** 业绩类型 */ private String type; /**开始时间*/ private String startTime; /**结束时间*/ private String endTime; /**门店列表标识*/ private List shopIdList; /**业绩类型-门店日现金业绩*/ public static final String TYPE_DAY_CASH= "day_cash"; /**业绩类型-门店日执行业绩*/ public static final String TYPE_DAY_IMPLEMENT= "day_implement"; /**业绩类型-门店周现金业绩*/ public static final String TYPE_WEEK_CASH= "week_cash"; /**业绩类型-门店周执行业绩*/ public static final String TYPE_WEEK_IMPLEMENT= "week_implement"; /**业绩类型-门店月现金业绩*/ public static final String TYPE_MONTH_CASH= "month_cash"; /**业绩类型-门店月执行业绩*/ public static final String TYPE_MONTH_IMPLEMENT= "month_implement"; /** 获取查询门店insql */ public String getSelectShopInSql(){ if(shopIdList == null || shopIdList.size() < 1){ return null; } StringBuffer sql = new StringBuffer(); sql.append("("); for(String shopId : shopIdList){ sql.append("'").append(shopId).append("',"); } sql.delete(sql.length()-1, sql.length()); sql.append(")"); return sql.toString(); } }