Browse Source

更新flyaway,删除经纬度逻辑

dev
HAHA 3 years ago
parent
commit
d6b5fb9766
  1. 10
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcVolunteerPolyServiceImpl.java
  2. 3
      epmet-user/epmet-user-server/src/main/resources/db/migration/V0.0.51__ic_volunteer_poly_category.sql

10
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcVolunteerPolyServiceImpl.java

@ -256,8 +256,6 @@ public class IcVolunteerPolyServiceImpl extends BaseServiceImpl<IcVolunteerPolyD
IcVolunteerPolyCategoryEntity category = new IcVolunteerPolyCategoryEntity(); IcVolunteerPolyCategoryEntity category = new IcVolunteerPolyCategoryEntity();
category.setCustomerId(item.getCustomerId()); category.setCustomerId(item.getCustomerId());
category.setIdCard(item.getIdCard()); category.setIdCard(item.getIdCard());
category.setLatitude(item.getLatitude());
category.setLongitude(item.getLongitude());
category.setVolunteerCategory(o); category.setVolunteerCategory(o);
return category; return category;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
@ -346,10 +344,6 @@ public class IcVolunteerPolyServiceImpl extends BaseServiceImpl<IcVolunteerPolyD
IcVolunteerPolyCategoryEntity category = new IcVolunteerPolyCategoryEntity(); IcVolunteerPolyCategoryEntity category = new IcVolunteerPolyCategoryEntity();
category.setCustomerId(entity.getCustomerId()); category.setCustomerId(entity.getCustomerId());
category.setIdCard(entity.getIdCard()); category.setIdCard(entity.getIdCard());
if (null != volunteer) {
category.setLatitude(volunteer.getLatitude());
category.setLongitude(volunteer.getLongitude());
}
category.setVolunteerCategory(o); category.setVolunteerCategory(o);
return category; return category;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
@ -387,10 +381,6 @@ public class IcVolunteerPolyServiceImpl extends BaseServiceImpl<IcVolunteerPolyD
IcVolunteerPolyCategoryEntity category = new IcVolunteerPolyCategoryEntity(); IcVolunteerPolyCategoryEntity category = new IcVolunteerPolyCategoryEntity();
category.setCustomerId(entity.getCustomerId()); category.setCustomerId(entity.getCustomerId());
category.setIdCard(entity.getIdCard()); category.setIdCard(entity.getIdCard());
if (null != volunteer) {
category.setLatitude(volunteer.getLatitude());
category.setLongitude(volunteer.getLongitude());
}
category.setVolunteerCategory("dangyuanzhongxinhu"); category.setVolunteerCategory("dangyuanzhongxinhu");
icVolunteerPolyCategoryDao.delete(categoryWrapper); icVolunteerPolyCategoryDao.delete(categoryWrapper);
icVolunteerPolyCategoryService.insert(category); icVolunteerPolyCategoryService.insert(category);

3
epmet-user/epmet-user-server/src/main/resources/db/migration/V0.0.51__ic_volunteer_poly_category.sql

@ -0,0 +1,3 @@
ALTER TABLE `epmet_user`.`ic_volunteer_poly_category`
DROP COLUMN `LONGITUDE`,
DROP COLUMN `LATITUDE`;
Loading…
Cancel
Save