| | |
| | | return Result.OK(suYuanService.selectSuYuan700ById(id, date)); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据经纬度查询地名", notes = "根据经纬度查询地名") |
| | | @ApiOperation(value = "根据ID和日期查询溯源46表", notes = "根据ID和日期查询溯源46表") |
| | | @ApiOperationSupport(order = 15) |
| | | @GetMapping("/selectSuYuan46ById") |
| | | public Result selectSuYuan46ById(@RequestParam(value = "id", required = true) String id, @RequestParam(value = "date", required = true) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date date) { |
| | | return Result.OK(suYuanService.selectSuYuan46ById(id, date)); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据经纬度查询地名", notes = "根据经纬度查询地名") |
| | | @ApiOperationSupport(order = 16) |
| | | @GetMapping("/selectAddrByXY") |
| | | public Result selectAddrByXY(@RequestParam(value = "x", required = true) double x, @RequestParam(value = "y", required = true) double y) { |
| | | return Result.OK(suYuanService.selectAddrByXY(x, y)); |
| | |
| | | int updateVocsName(String table, String id, String vocsName); |
| | | |
| | | SuYuan700 selectSuYuan700ById(@Param("id") String id, @Param("time") String time); |
| | | |
| | | SuYuan700 selectSuYuan46ById(@Param("id") String id, @Param("time") String time); |
| | | } |
| | |
| | | import com.yssh.scheduled.ReadCsvTask; |
| | | import com.yssh.service.impl.WarningAnalyseServiceImpl; |
| | | import com.yssh.utils.CacheUtils; |
| | | import org.apache.commons.logging.Log; |
| | | import org.apache.commons.logging.LogFactory; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | public SuYuan700 selectSuYuan700ById(String id, Date date); |
| | | |
| | | public SuYuan700 selectSuYuan46ById(String id, Date date); |
| | | |
| | | public String selectAddrByXY(double x, double y); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public SuYuan700 selectSuYuan46ById(String id, Date date) { |
| | | id = id.substring(0, id.lastIndexOf("_") + 1) + "0"; |
| | | String time = DateUtils.getYyyyMmDdHhMmSs(date).substring(0, 13) + ":00:00"; |
| | | |
| | | return suYuanMapper.selectSuYuan46ById(id, time); |
| | | } |
| | | |
| | | @Override |
| | | public String selectAddrByXY(double x, double y) { |
| | | List<Location> locations = locationMapper.selectByXY(x, y); |
| | | if (null != locations && locations.size() > 0) { |
| | |
| | | where su_yuan_id = #{id} and create_time = #{time} |
| | | limit 1; |
| | | </select> |
| | | |
| | | <select id="selectSuYuan46ById" resultType="com.yssh.entity.SuYuan700"> |
| | | select * from suyuan_46 |
| | | where su_yuan_id = #{id} and create_time = #{time} |
| | | limit 1; |
| | | </select> |
| | | |
| | | <select id="getTemporary" resultMap="TemporaryResult"> |
| | | SELECT x, y, z, u, v, w, format(c, 2) "c" |