| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springblade.common.param.GridSet; |
| | | import org.springblade.modules.eCallEventTwo.dto.ECallEventTwoDTO; |
| | | import org.springblade.modules.eCallEventTwo.entity.ECallEventTwoEntity; |
| | | import org.springblade.modules.eCallEventTwo.mapper.EcCallEventTwoMapper; |
| | |
| | | return this.baseMapper.selectECallEventTwoList(eCallEventTwoDTO); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public boolean saveTwo(ECallEventTwoVO eCallEventTwo) { |
| | | eCallEventTwo.setLat(eCallEventTwo.getSceneGeoLat().toString()); |
| | | eCallEventTwo.setLng(eCallEventTwo.getSceneGeoLng().toString()); |
| | | // 计算网格 |
| | | if (eCallEventTwo.getLng() != null && eCallEventTwo.getLat() != null) { |
| | | // 点落面计算警格,网格,警格 |
| | | GridSet invoke = new GridSet().invoke(ECallEventTwoVO.class, eCallEventTwo, |
| | | "lng", "lat", "applicantGrid", "jwGridCode"); |
| | | } |
| | | return save(eCallEventTwo); |
| | | } |
| | | } |