|
|
@@ -26,6 +26,7 @@ import org.springframework.http.ResponseEntity;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
@@ -200,8 +201,9 @@ public class SysPartnerController extends BaseController {
|
|
|
String proportionNum = sysProportionConfig.getOneProportion()+sysProportionConfig.getTwoProportion()
|
|
|
+sysProportionConfig.getThreeProportion()+sysProportionConfig.getFourProportion()
|
|
|
+sysProportionConfig.getFiveProportion();
|
|
|
-
|
|
|
- if (proportion.equals(proportionNum)) {
|
|
|
+ BigDecimal bigDecimal = new BigDecimal(proportion);
|
|
|
+ BigDecimal bigDecimal1 = new BigDecimal(proportionNum);
|
|
|
+ if (bigDecimal.compareTo(bigDecimal1) == 0 ) {
|
|
|
throw new SystemException("总比例必须等于每级合伙人比例和");
|
|
|
}
|
|
|
Long id = sysProportionConfig.getId();
|