yanghb
2025-04-25 39854ed874e1f38ce3f192ca8e0362a826cfdd55
cz-bussiness/src/main/java/com/ruoyi/bussiness/service/impl/PlacementApplyServiceImpl.java
@@ -26,7 +26,6 @@
import com.ruoyi.system.service.ISysNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.security.core.parameters.P;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@@ -202,14 +201,11 @@
            }
            //赔偿金额(判断新购房还是二手房,这两个只能存在一个)
            if (record.getCompensationNewAmount().compareTo(BigDecimal.ZERO) == 0 &&
                    record.getCompensationOldAmount().compareTo(BigDecimal.ZERO) == 0) {
            if (ObjUtil.isEmpty(record.getCompensationNewAmount()) &&
                    ObjUtil.isEmpty(record.getCompensationOldAmount())) {
                record.setCompensationAmountWarn(1);
            }else{
                record.setCompensationAmountWarn(0);
            }
            if (record.getCompensationNewAmount().compareTo(BigDecimal.ZERO) > 0 &&
                    record.getCompensationOldAmount().compareTo(BigDecimal.ZERO) > 0) {
            } else if (ObjUtil.isNotEmpty(record.getCompensationNewAmount()) &&
                    ObjUtil.isNotEmpty(record.getCompensationOldAmount())) {
                record.setCompensationAmountWarn(1);
            }else{
                record.setCompensationAmountWarn(0);