MessageUtil

 1 public abstract class MessageUtil {
 2 
 3     public static String changeMsg(CustomerReportQueryObject qo){
 4         String msg = null;
 5         switch (qo.getGroupType()){
 6             case "DATE_FORMAT(c.input_time, '%Y')":
 7                 msg = "年份";
 8                 break;
 9             case "DATE_FORMAT(c.input_time, '%Y-%m')":
10                 msg = "月份";
11                 break;
12             case "DATE_FORMAT(c.input_time, '%Y-%m-%d')":
13                 msg = "日期";
14                 break;
15             default:
16                 msg = "员工";
17                 break;
18         }
19         return msg;
20     }
21 }

 

posted @ 2020-12-05 15:08  y海涛  阅读(238)  评论(0编辑  收藏  举报