| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.vos.grid.GridMemberPositionDTO; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | commonEventAddDTO.setUserId(loginUserInfoVO.getUserId()); |
| | | commonEventAddDTO.setUserName(loginUserInfoVO.getNickName()); |
| | | commonEventAddDTO.setPhone(loginUserInfoVO.getPhone()); |
| | | return gridService.addCommon(commonEventAddDTO); |
| | | R r = gridService.addCommon(commonEventAddDTO); |
| | | if(R.isOk(r)){ |
| | | GridMemberPositionDTO memberPositionDTO = new GridMemberPositionDTO(); |
| | | memberPositionDTO.setGridMemberId(loginUserInfoVO.getUserId()); |
| | | memberPositionDTO.setPositionAddress(commonEventAddDTO.getHappenAddress()); |
| | | String []lngLatString = commonEventAddDTO.getHappentLatLng().split(","); |
| | | memberPositionDTO.setLngLat(lngLatString[1] + "," + lngLatString[0]); |
| | | gridService.gridReportPosition(memberPositionDTO); |
| | | } |
| | | return r; |
| | | } |
| | | |
| | | /** |