| | |
| | | import com.panzhihua.common.utlis.ParamRegularUtil; |
| | | import com.panzhihua.service_community.dao.ComMngCarDAO; |
| | | import com.panzhihua.service_community.dao.ComMngStructAreaDAO; |
| | | import com.panzhihua.service_community.dao.ComMngVillageDAO; |
| | | import com.panzhihua.service_community.model.dos.ComCvtServeDO; |
| | | import com.panzhihua.service_community.model.dos.ComMngCarDO; |
| | | import com.panzhihua.service_community.model.dos.ComMngStructAreaDO; |
| | | import com.panzhihua.service_community.model.dos.ComMngVillageDO; |
| | | import com.panzhihua.service_community.service.ComMngCarService; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | |
| | | private ComMngCarDAO comMngCarDAO; |
| | | @Resource |
| | | private ComMngStructAreaDAO comMngStructAreaDAO; |
| | | @Resource |
| | | private ComMngVillageDAO comMngVillageDAO; |
| | | @Resource |
| | | private UserService userService; |
| | | @Value("${domain.aesKey:}") |
| | |
| | | return R.ok("车辆已存在"); |
| | | } |
| | | } |
| | | ComMngStructAreaDO comMngStructAreaDO = comMngStructAreaDAO.selectById(comMngCarSaveDTO.getAreaId()); |
| | | if (ObjectUtils.isEmpty(comMngStructAreaDO)) { |
| | | ComMngVillageDO comMngVillageDO = comMngVillageDAO.selectById(comMngCarSaveDTO.getAreaId()); |
| | | if (ObjectUtils.isEmpty(comMngVillageDO)) { |
| | | return R.fail("小区不存在"); |
| | | } |
| | | if (ObjectUtils.isEmpty(comMngCarSaveDTO.getMobile())) { |
| | |
| | | } |
| | | ComMngCarDO comMngCarDO = new ComMngCarDO(); |
| | | BeanUtils.copyProperties(comMngCarSaveDTO, comMngCarDO); |
| | | comMngCarDO.setAreaName(comMngStructAreaDO.getAreaName()); |
| | | comMngCarDO.setCommunityId(comMngStructAreaDO.getCommunityId()); |
| | | comMngCarDO.setAreaName(comMngVillageDO.getGroupAt()); |
| | | comMngCarDO.setCommunityId(comMngVillageDO.getCommunityId()); |
| | | try { |
| | | comMngCarDO.setCardNo(AESUtil.encrypt128(comMngCarSaveDTO.getCardNo(),aesKey)); |
| | | }catch (Exception e){ |