|
|
@@ -516,7 +516,7 @@ public class DistributeServiceImpl implements DistributeService {
|
|
|
if (ep.compareTo(zero) <= 0 || apTv.compareTo(zero) <= 0 || combo.compareTo(zero) <= 0 || combo.compareTo(BigDecimal.valueOf(100)) >= 0) {
|
|
|
throw BusinessRuntimeException.getInstance("请输入正确的设备分销设置");
|
|
|
}
|
|
|
- if (epRate.getId() != null) {
|
|
|
+ if (epRate.getId() == null) {
|
|
|
try {
|
|
|
userDistributeEquipmentMapper.insert(epRate);
|
|
|
} catch (DuplicateKeyException e) {
|