| | |
| | | long codeCountDisable = count(Lambda.eq(StockOutType::getCode, code) |
| | | .eq(StockOutType::getStatus, CommonConstant.ENABLE) |
| | | .ne(Func.isNotEmpty(id), StockOutType::getId, id)); |
| | | /* |
| | | long codeCountDisable = count(((ExtraLambdaQueryWrapper) Lambda.eq((v0) -> { |
| | | return v0.getCode(); |
| | | }, code).eq((v0) -> { |
| | | return v0.getStatus(); |
| | | }, CommonConstant.ENABLE)).ne(Func.isNotEmpty(id), (v0) -> { |
| | | return v0.getId(); |
| | | }, id));*/ |
| | | |
| | | ThrowFun.isTrue(codeCountDisable > 0).throwMessage(MessageUtils.message("cps.stock.out.type.code.unable.already.exists", new Object[0])); |
| | | long nameCount = count(Lambda.eq(StockOutType::getName, name) |
| | | .ne(Func.isNotEmpty(id), StockOutType::getId, id)); |