Browse Source

修改居民地理坐标信息逻辑

master
HAHA 3 years ago
parent
commit
fcd2a851df
  1. 2
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/LonAndLatFormDTO.java
  2. 2
      epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcVolunteerPolyController.java
  3. 2
      epmet-user/epmet-user-server/src/main/resources/mapper/IcVolunteerPolyDao.xml

2
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/LonAndLatFormDTO.java

@ -24,5 +24,5 @@ public class LonAndLatFormDTO implements Serializable {
/**
* 关联关系
*/
private String icResiUser;
private String userId;
}

2
epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcVolunteerPolyController.java

@ -162,7 +162,7 @@ public class IcVolunteerPolyController {
*/
@PostMapping("LonAndLat")
public Result LonAndLat(@LoginUser TokenDto tokenDto, @RequestBody LonAndLatFormDTO form) {
form.setIcResiUser(tokenDto.getUserId());
form.setUserId(tokenDto.getUserId());
form.setCustomerId(tokenDto.getCustomerId());
icVolunteerPolyService.updateLonAndLat(form);
return new Result();

2
epmet-user/epmet-user-server/src/main/resources/mapper/IcVolunteerPolyDao.xml

@ -26,7 +26,7 @@
SET p.LONGITUDE = #{form.longitude},
p.LATITUDE = #{form.latitude}
WHERE
p.IC_RESI_USER = #{form.icResiUser}
p.USER_ID = #{form.userId}
AND p.customer_id = #{form.customerId}
</update>
<select id="getMapData" resultType="com.epmet.dto.result.VolunteerPolyMapDataResultDTO">

Loading…
Cancel
Save