| | |
| | | .eq(Objects.nonNull(model.getStocktakingId()),YwStocktakingRecord::getStocktakingId,model.getStocktakingId()) |
| | | .and(StringUtils.isNotBlank(model.getMaterialCode()),i->i.like(YwMaterial::getCode,model.getMaterialCode()).or().like(YwMaterial::getName,model.getMaterialCode())) |
| | | .eq(Objects.nonNull(model.getType()),YwStocktakingRecord::getType,model.getType()) |
| | | .eq(Objects.nonNull(model.getStatus()),YwStocktakingRecord::getStatus,model.getStatus()); |
| | | .eq(Objects.nonNull(model.getStatus()),YwStocktakingRecord::getStatus,model.getStatus()) |
| | | .eq(Objects.nonNull(model.getMaterialQrcode()),YwMaterial::getQrcode,model.getMaterialQrcode()); |
| | | IPage iPage = ywStocktakingRecordMapper.selectJoinPage(page, YwStocktakingRecord.class,queryWrapper); |
| | | return PageData.from(iPage); |
| | | } |
| | |
| | | } |
| | | LoginUserInfo loginUserInfo = ywStocktakingRecord.getLoginUserInfo(); |
| | | YwStocktakingRecord model = ywStocktakingRecordMapper.selectById(ywStocktakingRecord.getId()); |
| | | if(Objects.nonNull(model)){ |
| | | if(Objects.isNull(model)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | | YwStocktaking ywStocktaking = ywStocktakingMapper.selectById(ywStocktakingRecord.getStocktakingId()); |