|
|
@@ -10,6 +10,8 @@ import org.springframework.cache.annotation.CacheEvict;
|
|
|
import org.springframework.cache.annotation.Cacheable;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
/**
|
|
|
* @author yingp
|
|
|
* @date 2019/4/17
|
|
|
@@ -27,6 +29,7 @@ public class DeviceInfoServiceImpl implements DeviceInfoApi {
|
|
|
public DeviceInfoDTO save(DeviceInfoDTO deviceInfoDTO) {
|
|
|
removeByAccountId(deviceInfoDTO.getAccountId());
|
|
|
DeviceInfo deviceInfo = BeanMapper.map(deviceInfoDTO, DeviceInfo.class);
|
|
|
+ deviceInfo.setLoginTime(new Date());
|
|
|
deviceInfoMapper.insertSelective(deviceInfo);
|
|
|
return deviceInfoDTO;
|
|
|
}
|