trigger放开
This commit is contained in:
+17
-17
@@ -206,23 +206,23 @@ public class SellTriggerServiceImpl implements TriggerService {
|
|||||||
|
|
||||||
newObj.put("floor_range", getFloorRange(object));
|
newObj.put("floor_range", getFloorRange(object));
|
||||||
|
|
||||||
// if (null != district) {
|
if (null != district) {
|
||||||
// if (district.getLat() != null && district.getLng() != null && district.getLat() > 0 && district.getLng() > 0) {
|
if (district.getLat() != null && district.getLng() != null && district.getLat() > 0 && district.getLng() > 0) {
|
||||||
// try {
|
try {
|
||||||
// newObj.put("lat", district.getLat());
|
newObj.put("lat", district.getLat());
|
||||||
// newObj.put("lng", district.getLng());
|
newObj.put("lng", district.getLng());
|
||||||
// double lat = (district.getLat() / 10000000000.0);
|
double lat = (district.getLat() / 10000000000.0);
|
||||||
// double lng = (district.getLng() / 10000000000.0);
|
double lng = (district.getLng() / 10000000000.0);
|
||||||
// if (lat >= -90 && lat <= 90 && lng >= -180 && lng <= 180) {
|
if (lat >= -90 && lat <= 90 && lng >= -180 && lng <= 180) {
|
||||||
// newObj.put("lat_lng", lat + "," + lng);
|
newObj.put("lat_lng", lat + "," + lng);
|
||||||
// }
|
}
|
||||||
// } catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
// if (LOGGER.isErrorEnabled()) {
|
if (LOGGER.isErrorEnabled()) {
|
||||||
// LOGGER.error("error pase lat(" + district.getLat() + ") or lng("+ district.getLng() + "): ", e);
|
LOGGER.error("error pase lat(" + district.getLat() + ") or lng("+ district.getLng() + "): ", e);
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
ReasonStatus status = sellDataFilter.apply(object, inputDate);
|
ReasonStatus status = sellDataFilter.apply(object, inputDate);
|
||||||
if (isVisible(status)) {
|
if (isVisible(status)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user