|
@@ -277,7 +277,7 @@ public class MiddleMeterApplyServiceImpl extends BaseServiceImpl<MiddleMeterAppl
|
|
|
throw new ServiceException("单价和计量数量不能为空");
|
|
|
}
|
|
|
//校验比例是否在范围之内
|
|
|
- if (l.getUpPayRatio() != null){
|
|
|
+ if (l.getUpPayRatio() != null && l.getUpPayRatio().compareTo(BigDecimal.ZERO) != 0){
|
|
|
if (l.getPayRatio() == null) {
|
|
|
throw new ServiceException("新增失败,支付比例不能为空");
|
|
|
}
|