实例如下:
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Date date = new Date();
String nowDate = sdf.format(date);
Calendar c = Calendar.getInstance();
c.add(Calendar.MONTH, 0);
c.set(Calendar.DAY_OF_MONTH,1);//设置为1号,当前日期既为本月第一天
String firstDate = sdf.format(c.getTime());
if("".equals(form.getBeginDate())||form.getBeginDate()==null){
System.out.println("月初"+firstDate);
form.setBeginDate(firstDate);
}
if("".equals(form.getEndDate())||form.getEndDate()==null){
System.out.println("今天"+nowDate);
form.setEndDate(nowDate);
}
String sql = " select count(id) from getDealerAccount("+form.getBeginDate()+","+form.getEnd()+") ";
System.out.println("报表Count"+sql);
return this.jdbcTemplate.queryForObject(sql, Long.class);
猪笼城寨手游
猪笼城寨游戏是非常好玩的一款模拟经营类型的手游,在这里玩家们
商道高手vivo版本
商道高手vivo版是一款商战题材的模拟经营手游,游戏画面精美
我在大清当皇帝手游
我在大清当皇帝手游是一款以清代为历史的模拟类手游,相信玩家们
解忧小村落最新版2024
解忧小村落游戏是非常好玩的一款休闲放置经营类型的手游,在这里
洋果子店rose2中文版
洋果子店rose2中文版是一款非常好玩的模拟经营手游,精美的