| | |
| | | record.setCountDay(new Date(TimeUtil.convertDateToTemp(gernalTime)));
|
| | | SimpleDateFormat formatMonth = new SimpleDateFormat("yyyy-MM");
|
| | | record.setYearMonth(formatMonth.format(record.getCountDay()));
|
| | | |
| | | // 初始化数据
|
| | | initData(record);
|
| | | |
| | | teamDailyRecordDao.save(record);
|
| | | }
|
| | | }
|
| | |
|
| | | private void initData(TeamDailyRecord record) {
|
| | | if (record.getFirstNum() != null) |
| | | record.setFirstDaRen(0);
|
| | | if (record.getSecondNum() != null) |
| | | record.setSecondNum(0);
|
| | | if (record.getBeyondNum() != null) |
| | | record.setBeyondNum(0);
|
| | | |
| | | if (record.getFirstDaRen() != null) |
| | | record.setFirstDaRen(0);
|
| | | if (record.getSecondDaRen() != null)
|
| | | record.setSecondDaRen(0); |
| | | if (record.getBeyondDaRen() != null)
|
| | | record.setBeyondDaRen(0);
|
| | | |
| | | if (record.getFirstHighVIP() != null)
|
| | | record.setFirstHighVIP(0);
|
| | | if (record.getSecondHighVIP() != null)
|
| | | record.setSecondHighVIP(0);
|
| | | if (record.getBeyondHighVIP() != null)
|
| | | record.setBeyondHighVIP(0);
|
| | | |
| | | if (record.getFirstSuperVIP() != null)
|
| | | record.setFirstSuperVIP(0);
|
| | | if (record.getSecondSuperVIP() != null)
|
| | | record.setSecondSuperVIP(0);
|
| | | if (record.getBeyondSuperVIP() != null)
|
| | | record.setBeyondSuperVIP(0);
|
| | | }
|
| | | |
| | | |
| | | @Override
|
| | | public String createId(Long uid, Date date) {
|
| | | String gernalTime = TimeUtil.getGernalTime(date.getTime());
|