| | |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "小区ID不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "name", "必填,请填写小区名称"); |
| | | Assert.hasKeyAndValue(reqJson, "address", "必填,请填写小区地址"); |
| | | // Assert.hasKeyAndValue(reqJson, "address", "必填,请填写小区地址"); |
| | | Assert.hasKeyAndValue(reqJson, "nearbyLandmarks", "必填,请填写小区附近地标"); |
| | | |
| | | Assert.judgeAttrValue(reqJson); |
| | |
| | | * @param newState 新状态(1400-退管,其他-在管) |
| | | */ |
| | | private void handleCommunityStateChange(String communityId, String newState , CommunityDto communityDto) { |
| | | if (communityDto.getTakeTime() == null) { |
| | | return; |
| | | } |
| | | |
| | | // 1. 退管状态(state=1400):为该小区的有效在管记录添加退管时间 |
| | | if ("1400".equals(newState)) { |
| | | // 查询小区当前有效的在管记录(status=0表示有效,management_end_date为null表示未退管) |