| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | } |
| | | ComMngCarDO comMngCarDO = new ComMngCarDO(); |
| | | BeanUtils.copyProperties(comMngCarSaveDTO, comMngCarDO); |
| | | comMngCarDO.setAreaName(comMngVillageDO.getGroupAt()); |
| | | //如果小区没有名字,则将街路巷和地区号拼接起来 |
| | | if(comMngVillageDO.getName() != null && StringUtils.isNotEmpty(comMngVillageDO.getName())){ |
| | | comMngCarDO.setAreaName(comMngVillageDO.getName()); |
| | | }else{ |
| | | StringBuilder sb = new StringBuilder(); |
| | | sb.append(comMngVillageDO.getAlley()); |
| | | if(!comMngVillageDO.getHouseNum().contains("号")){ |
| | | sb.append(comMngVillageDO.getHouseNum() + "号"); |
| | | } |
| | | comMngCarDO.setAreaName(sb.toString()); |
| | | } |
| | | // if(comMngVillageDO.getGroupAt() == null){ |
| | | // comMngCarDO.setAreaName(comMngVillageDO.getGroupAt()); |
| | | // } |
| | | comMngCarDO.setCommunityId(comMngVillageDO.getCommunityId()); |
| | | try { |
| | | comMngCarDO.setCardNo(AESUtil.encrypt128(comMngCarSaveDTO.getCardNo(), aesKey)); |