| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Date; |
| | | |
| | | @Service("userLoginService") |
| | | public class UserLoginServiceImpl extends ServiceImpl<UserLoginMapper, UserLogin> implements UserLoginService { |
| | | |
| | |
| | | public int selectCountByCurrentWeek() { |
| | | return userLoginMapper.selectCountByCurrentWeek(); |
| | | } |
| | | |
| | | @Override |
| | | public boolean save(UserLogin entity) { |
| | | if (entity != null && entity.getId() == null && entity.getCreateTime() == null) { |
| | | entity.setCreateTime(new Date()); |
| | | } |
| | | return super.save(entity); |
| | | } |
| | | } |