| | |
| | | |
| | | <!--比对两点间的距离是否在1km 范围内 (和采集的位置对比)--> |
| | | <select id="comparisonPositionNotHouseCode" resultType="java.lang.Boolean"> |
| | | select ( |
| | | select IFNULL(( |
| | | ACOS( |
| | | SIN( |
| | | ( #{place.y} * 3.1415 )/ 180 ) * SIN(( #{place.lat} * 3.1415 )/ 180 ) |
| | | + COS(( #{place.y} * 3.1415 )/ 180 ) * COS(( #{place.lat} * 3.1415 )/ 180 ) * COS(( #{place.x} * 3.1415 )/ 180 |
| | | - ( #{place.lng} * 3.1415 )/ 180 ))* 6370.996 |
| | | ) <= 1 |
| | | ),2) <= 1 |
| | | </select> |
| | | |
| | | |
| | |
| | | */ |
| | | @ApiModelProperty(value = "临时用 1:已查看 2:未查看") |
| | | private Integer viewType; |
| | | |
| | | /** |
| | | * 1:房屋 2:场所 |
| | | */ |
| | | @ApiModelProperty(value = "1:房屋 2:场所") |
| | | private Integer houseFlag; |
| | | } |
| | |
| | | <result property="lat" column="lat"/> |
| | | <result property="address" column="address"/> |
| | | <result property="viewType" column="view_type"/> |
| | | <result property="houseFlag" column="house_flag"/> |
| | | |
| | | |
| | | <collection property="taskRepairStepList" column="id" select="selectTaskRepairStepList" |
| | |
| | | lng, |
| | | lat, |
| | | address, |
| | | view_type |
| | | view_type, |
| | | house_flag |
| | | from jczz_task_report_for_repairs |
| | | </sql> |
| | | |
| | |
| | | jtrfr.lat, |
| | | jtrfr.address, |
| | | jtrfr.view_type, |
| | | jtrfr.house_flag, |
| | | br.town_name streetName, |
| | | jg.grid_name, |
| | | jda.aoi_name, |
| | |
| | | <if test="houseCode != null and houseCode != ''"> |
| | | and jtrfr.address_code = #{houseCode} |
| | | </if> |
| | | <if test="isAdministrator==2"> |
| | | <choose> |
| | | <when test="regionChildCodesList !=null and regionChildCodesList.size()>0"> |
| | | and jda.nei_code in |
| | | <foreach collection="regionChildCodesList" item="code" open="(" close=")" separator=","> |
| | | #{code} |
| | | </foreach> |
| | | </when> |
| | | <otherwise> |
| | | and jda.nei_code in ('') |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | |
| | | </select> |
| | | |
| | | |
| | |
| | | taskReportForRepairs.setConfirmUserId(AuthUtil.getUserId()); |
| | | List<String> addressCodeList = new ArrayList<>(); |
| | | if (null != taskReportForRepairs.getRoleName() && !taskReportForRepairs.getRoleName().equals("")) { |
| | | if (taskReportForRepairs.getRoleName().equals("居民")) { |
| | | if (taskReportForRepairs.getRoleName().equals("inhabitant")) { |
| | | taskReportForRepairs.setCreateUser(AuthUtil.getUserId()); |
| | | taskReportForRepairs.setConfirmUserId(null); |
| | | // |