linwe
2024-05-24 b6d1acb0c319e60fc4c03ed2fdd19be16440e2de
src/main/java/org/springblade/modules/eCallEventTwo/service/impl/EcCallEventTwoServiceImpl.java
@@ -18,6 +18,7 @@
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;
@@ -65,5 +66,16 @@
      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);
   }
}