| | |
| | | import com.qianwen.smartman.modules.cps.vo.StockOutTypeVO; |
| | | |
| | | @Service |
| | | /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/service/impl/StockOutTypeServiceImpl.class */ |
| | | public class StockOutTypeServiceImpl extends BladeServiceImpl<StockOutTypeMapper, StockOutType> implements IStockOutTypeService { |
| | | |
| | | |
| | |
| | | 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)); |