Commit eefd960f by 陶光胜

门店导出修改

parent e5f515c7
......@@ -922,7 +922,7 @@ public class StoreApiServiceImpl implements StoreApiService {
esDTO.setBusinessTimeList(dto.getBusinessTimeList());
esDTO.setPhotoList(dto.getPhotoList());
esDTO.setAddress(dto.getAddress());
Double[] location = {Double.valueOf(dto.getLongitude()),Double.valueOf(dto.getLatitude())};
Double[] location = {Double.valueOf(StringUtils.isBlank(dto.getLongitude())? "0" : dto.getLongitude()),Double.valueOf(StringUtils.isBlank(dto.getLatitude())? "0":dto.getLatitude())};
JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(esDTO));
jsonObject.put("location", location);
List<StoreExtendDTO> storeExtendDTOList = dto.getStoreExtendList();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment