LongitudeLatitudeServiceImpl.java 763 B

12345678910111213141516171819202122232425
  1. package com.hz.employmentsite.services.impl;
  2. import com.hz.employmentsite.mapper.PcLongitudeLatitudeMapper;
  3. import com.hz.employmentsite.model.PcLongitudeLatitude;
  4. import com.hz.employmentsite.services.service.LongitudeLatitudeService;
  5. import org.springframework.stereotype.Service;
  6. import javax.annotation.Resource;
  7. import java.util.UUID;
  8. @Service
  9. public class LongitudeLatitudeServiceImpl implements LongitudeLatitudeService {
  10. @Resource
  11. private PcLongitudeLatitudeMapper pcLongitudeLatitudeMapper;
  12. @Override
  13. public Integer save(PcLongitudeLatitude data) {
  14. Integer result = 0;
  15. data.setLongitudeLatitudeId(UUID.randomUUID().toString());
  16. result = pcLongitudeLatitudeMapper.insert(data);
  17. return result;
  18. }
  19. }