Parcourir la source

1.虚警抑制,取消部件校验。

Gaokun Wang il y a 6 mois
Parent
commit
c2346baed7

+ 1 - 1
als-modules/agile-assurance/src/main/java/org/eco/als/controller/ModelController.java

@@ -95,7 +95,7 @@ public class ModelController extends BaseController {
     @RepeatSubmit()
     @PostMapping
     public CommonResult<Void> add(@Validated @RequestBody ModelBo modelBo) {
-        if (StrUtil.containsAny(modelBo.getType(), "4", "5", "6")) {
+        if (StrUtil.containsAny(modelBo.getType(), "5", "6")) {
             if (StrUtil.isBlank(modelBo.getPartId())) {
                 return CommonResult.fail("部件不能为空.");
             }