| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.community.ComMngCarAppletDTO; |
| | | import com.panzhihua.common.model.dtos.community.PageVolunteerDTO; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.*; |
| | | import com.panzhihua.common.model.vos.partybuilding.PartyBuildingActivityVO; |
| | |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "车辆登记",response = ComMngVolunteerMngAppletsVO.class) |
| | | @PostMapping("car/add") |
| | | public R addComMngCarApplet(@RequestBody ComMngCarAppletDTO comMngCarAppletDTO) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | Long communityId = loginUserInfo.getCommunityId(); |
| | | if (null!=communityId && 0!=communityId) { |
| | | comMngCarAppletDTO.setCommunityId(communityId); |
| | | comMngCarAppletDTO.setAreaId(loginUserInfo.getAreaId()); |
| | | comMngCarAppletDTO.setUserName(loginUserInfo.getName()); |
| | | comMngCarAppletDTO.setUserId(loginUserInfo.getUserId()); |
| | | comMngCarAppletDTO.setMobile(loginUserInfo.getPhone()); |
| | | } |
| | | return communityService.addComMngCarApplet(comMngCarAppletDTO); |
| | | } |
| | | |
| | | } |
| | | |