chengf
2025-12-10 ee89a5cfa50980f1f2f2fa84bb69741b161670b5
service-community/src/main/java/com/java110/community/cmd/community/UpdateCommunityCmd.java
@@ -112,7 +112,7 @@
        Assert.hasKeyAndValue(reqJson, "communityId", "小区ID不能为空");
        Assert.hasKeyAndValue(reqJson, "name", "必填,请填写小区名称");
        Assert.hasKeyAndValue(reqJson, "address", "必填,请填写小区地址");
//        Assert.hasKeyAndValue(reqJson, "address", "必填,请填写小区地址");
        Assert.hasKeyAndValue(reqJson, "nearbyLandmarks", "必填,请填写小区附近地标");
        Assert.judgeAttrValue(reqJson);
@@ -192,6 +192,10 @@
     * @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表示未退管)