|
@@ -31,9 +31,13 @@ public class MathController extends BaseController {
|
|
|
|
|
|
@PostMapping("aaa")
|
|
|
public void aaa(Integer add, Integer sub) throws IOException {
|
|
|
+ if(Objects.isNull(add)){
|
|
|
+ add = 0;
|
|
|
+ }
|
|
|
+ if(Objects.isNull(sub)){
|
|
|
+ sub = 0;
|
|
|
+ }
|
|
|
|
|
|
- int add = params.getIntValue("+");
|
|
|
- int sub = params.getIntValue("-");
|
|
|
LinkedHashSet<String> pool = new LinkedHashSet<>();
|
|
|
LinkedList<String> addPool = aaa("+", add);
|
|
|
LinkedList<String> subPool = aaa("-", sub);
|