| package com.matrix.system.hive.dto; | 
|   | 
| import com.google.common.base.CaseFormat; | 
| import com.matrix.core.pojo.BasePageQueryDto; | 
| import com.matrix.core.tools.StringUtils; | 
| import lombok.Data; | 
|   | 
| @Data | 
| public class AchieveNewStatisticsDto extends BasePageQueryDto { | 
|   | 
|     //规则名称 | 
|     String achieveRuleId; | 
|   | 
|   | 
|     //业绩归属人id | 
|     String staffName; | 
|   | 
|   | 
|     //门店名称 | 
|     Long shopId; | 
|   | 
|     //公司id | 
|     Long companyId; | 
|   | 
|     //订单类型 | 
|     String orderType; | 
|   | 
|     @Override | 
|     public void setSort(String sort) { | 
|         if(StringUtils.isNotBlank(sort)){ | 
|             if ("ruleName".equals(sort)) { | 
|                 super.setSort("u.name"); | 
|             } else { | 
|                 super.setSort(CaseFormat.LOWER_CAMEL.to | 
|                         (CaseFormat.LOWER_UNDERSCORE, sort)); | 
|             } | 
|         }else{ | 
|             super.setSort(sort); | 
|         } | 
|     } | 
| } |