| | |
| | | proTarEntity.setCategory(Integer.parseInt(proTarExcel.getCategory())); |
| | | } |
| | | // 经纬度处理 |
| | | if (!Strings.isBlank(proTarExcel.getLng())){ |
| | | proTarEntity.setLng(PositionUtil.tranformPos(proTarExcel.getLng()).toString()); |
| | | } |
| | | if (!Strings.isBlank(proTarExcel.getLat())){ |
| | | proTarEntity.setLat(PositionUtil.tranformPos(proTarExcel.getLat()).toString()); |
| | | } |
| | | if (!Strings.isBlank(proTarExcel.getEndLng())){ |
| | | proTarEntity.setEndLng(PositionUtil.tranformPos(proTarExcel.getEndLng()).toString()); |
| | | } |
| | | if (!Strings.isBlank(proTarExcel.getEndLat())){ |
| | | proTarEntity.setEndLat(PositionUtil.tranformPos(proTarExcel.getEndLat()).toString()); |
| | | } |
| | | // if (!Strings.isBlank(proTarExcel.getLng())){ |
| | | // proTarEntity.setLng(PositionUtil.tranformPos(proTarExcel.getLng()).toString()); |
| | | // } |
| | | // if (!Strings.isBlank(proTarExcel.getLat())){ |
| | | // proTarEntity.setLat(PositionUtil.tranformPos(proTarExcel.getLat()).toString()); |
| | | // } |
| | | // if (!Strings.isBlank(proTarExcel.getEndLng())){ |
| | | // proTarEntity.setEndLng(PositionUtil.tranformPos(proTarExcel.getEndLng()).toString()); |
| | | // } |
| | | // if (!Strings.isBlank(proTarExcel.getEndLat())){ |
| | | // proTarEntity.setEndLat(PositionUtil.tranformPos(proTarExcel.getEndLat()).toString()); |
| | | // } |
| | | // 判断是否已经入库 |
| | | Long id = isSave(proTarExcel); |
| | | if (null!=id){ |