| | |
| | | import com.dji.sample.patches.model.entity.LotInfo; |
| | | import com.dji.sample.territory.dao.ITbFjMapper; |
| | | import com.dji.sample.territory.model.entity.TbFjEntity; |
| | | import com.dji.sample.territory.pojo.TerritoryConfigPojo; |
| | | import com.dji.sample.territory.service.ITbFJService; |
| | | import com.dji.sample.territory.utils.*; |
| | | import com.dji.sample.territory.utils.jym.SM2SignVO; |
| | |
| | | private ITbFjMapper tbFjMapper; |
| | | @Autowired |
| | | private PatchesConfigPojo patchesConfigPojo; |
| | | @Autowired |
| | | private TerritoryConfigPojo territoryConfigPojo; |
| | | |
| | | /** |
| | | * 按照地块编号所对应的信息和音视频文件存入sqlite数据库 |
| | |
| | | FJ = fileToByteArray(file1); |
| | | } |
| | | StringBuffer buffer=SM3.addStringBuffer(fjhxz,pssj,truncateToSevenDecimalPlaces(lng),truncateToSevenDecimalPlaces(lat),(int)pitch,(int)psjd,pshgj,psry,zsdm); |
| | | String jyms= addJym(buffer); |
| | | String jyms= SM3.addJym(buffer); |
| | | TbFjEntity.TbFjEntityBuilder builder = TbFjEntity.builder(); |
| | | if (lotInfo != null) { |
| | | builder.bsm(bsm) |
| | |
| | | } |
| | | |
| | | public static Double truncateToTwoDecimalPlaces(Double value) { |
| | | //小数点只保留两位 |
| | | if (value == null) { |
| | | return null; // 处理null值情况 |
| | | } |
| | |
| | | } |
| | | |
| | | public static Double truncateToSevenDecimalPlaces(Double value) { |
| | | //小数点只保留七位 |
| | | if (value == null) { |
| | | return null; // 处理null值情况 |
| | | } |