质量管理模块代码提交

master
Yangwl 2 months ago
parent 2dafc80207
commit a4abe53526

@ -0,0 +1,2 @@
/mvnw text eol=lf
*.cmd text eol=crlf

@ -0,0 +1,33 @@
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
### VS Code ###
.vscode/

@ -0,0 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
wrapperVersion=3.3.2
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip

@ -0,0 +1,259 @@
#!/bin/sh
# ----------------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# Apache Maven Wrapper startup batch script, version 3.3.2
#
# Optional ENV vars
# -----------------
# JAVA_HOME - location of a JDK home dir, required when download maven via java source
# MVNW_REPOURL - repo url base for downloading maven distribution
# MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
# MVNW_VERBOSE - true: enable verbose log; debug: trace the mvnw script; others: silence the output
# ----------------------------------------------------------------------------
set -euf
[ "${MVNW_VERBOSE-}" != debug ] || set -x
# OS specific support.
native_path() { printf %s\\n "$1"; }
case "$(uname)" in
CYGWIN* | MINGW*)
[ -z "${JAVA_HOME-}" ] || JAVA_HOME="$(cygpath --unix "$JAVA_HOME")"
native_path() { cygpath --path --windows "$1"; }
;;
esac
# set JAVACMD and JAVACCMD
set_java_home() {
# For Cygwin and MinGW, ensure paths are in Unix format before anything is touched
if [ -n "${JAVA_HOME-}" ]; then
if [ -x "$JAVA_HOME/jre/sh/java" ]; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
JAVACCMD="$JAVA_HOME/jre/sh/javac"
else
JAVACMD="$JAVA_HOME/bin/java"
JAVACCMD="$JAVA_HOME/bin/javac"
if [ ! -x "$JAVACMD" ] || [ ! -x "$JAVACCMD" ]; then
echo "The JAVA_HOME environment variable is not defined correctly, so mvnw cannot run." >&2
echo "JAVA_HOME is set to \"$JAVA_HOME\", but \"\$JAVA_HOME/bin/java\" or \"\$JAVA_HOME/bin/javac\" does not exist." >&2
return 1
fi
fi
else
JAVACMD="$(
'set' +e
'unset' -f command 2>/dev/null
'command' -v java
)" || :
JAVACCMD="$(
'set' +e
'unset' -f command 2>/dev/null
'command' -v javac
)" || :
if [ ! -x "${JAVACMD-}" ] || [ ! -x "${JAVACCMD-}" ]; then
echo "The java/javac command does not exist in PATH nor is JAVA_HOME set, so mvnw cannot run." >&2
return 1
fi
fi
}
# hash string like Java String::hashCode
hash_string() {
str="${1:-}" h=0
while [ -n "$str" ]; do
char="${str%"${str#?}"}"
h=$(((h * 31 + $(LC_CTYPE=C printf %d "'$char")) % 4294967296))
str="${str#?}"
done
printf %x\\n $h
}
verbose() { :; }
[ "${MVNW_VERBOSE-}" != true ] || verbose() { printf %s\\n "${1-}"; }
die() {
printf %s\\n "$1" >&2
exit 1
}
trim() {
# MWRAPPER-139:
# Trims trailing and leading whitespace, carriage returns, tabs, and linefeeds.
# Needed for removing poorly interpreted newline sequences when running in more
# exotic environments such as mingw bash on Windows.
printf "%s" "${1}" | tr -d '[:space:]'
}
# parse distributionUrl and optional distributionSha256Sum, requires .mvn/wrapper/maven-wrapper.properties
while IFS="=" read -r key value; do
case "${key-}" in
distributionUrl) distributionUrl=$(trim "${value-}") ;;
distributionSha256Sum) distributionSha256Sum=$(trim "${value-}") ;;
esac
done <"${0%/*}/.mvn/wrapper/maven-wrapper.properties"
[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in ${0%/*}/.mvn/wrapper/maven-wrapper.properties"
case "${distributionUrl##*/}" in
maven-mvnd-*bin.*)
MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/
case "${PROCESSOR_ARCHITECTURE-}${PROCESSOR_ARCHITEW6432-}:$(uname -a)" in
*AMD64:CYGWIN* | *AMD64:MINGW*) distributionPlatform=windows-amd64 ;;
:Darwin*x86_64) distributionPlatform=darwin-amd64 ;;
:Darwin*arm64) distributionPlatform=darwin-aarch64 ;;
:Linux*x86_64*) distributionPlatform=linux-amd64 ;;
*)
echo "Cannot detect native platform for mvnd on $(uname)-$(uname -m), use pure java version" >&2
distributionPlatform=linux-amd64
;;
esac
distributionUrl="${distributionUrl%-bin.*}-$distributionPlatform.zip"
;;
maven-mvnd-*) MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ ;;
*) MVN_CMD="mvn${0##*/mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;;
esac
# apply MVNW_REPOURL and calculate MAVEN_HOME
# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-<version>,maven-mvnd-<version>-<platform>}/<hash>
[ -z "${MVNW_REPOURL-}" ] || distributionUrl="$MVNW_REPOURL$_MVNW_REPO_PATTERN${distributionUrl#*"$_MVNW_REPO_PATTERN"}"
distributionUrlName="${distributionUrl##*/}"
distributionUrlNameMain="${distributionUrlName%.*}"
distributionUrlNameMain="${distributionUrlNameMain%-bin}"
MAVEN_USER_HOME="${MAVEN_USER_HOME:-${HOME}/.m2}"
MAVEN_HOME="${MAVEN_USER_HOME}/wrapper/dists/${distributionUrlNameMain-}/$(hash_string "$distributionUrl")"
exec_maven() {
unset MVNW_VERBOSE MVNW_USERNAME MVNW_PASSWORD MVNW_REPOURL || :
exec "$MAVEN_HOME/bin/$MVN_CMD" "$@" || die "cannot exec $MAVEN_HOME/bin/$MVN_CMD"
}
if [ -d "$MAVEN_HOME" ]; then
verbose "found existing MAVEN_HOME at $MAVEN_HOME"
exec_maven "$@"
fi
case "${distributionUrl-}" in
*?-bin.zip | *?maven-mvnd-?*-?*.zip) ;;
*) die "distributionUrl is not valid, must match *-bin.zip or maven-mvnd-*.zip, but found '${distributionUrl-}'" ;;
esac
# prepare tmp dir
if TMP_DOWNLOAD_DIR="$(mktemp -d)" && [ -d "$TMP_DOWNLOAD_DIR" ]; then
clean() { rm -rf -- "$TMP_DOWNLOAD_DIR"; }
trap clean HUP INT TERM EXIT
else
die "cannot create temp dir"
fi
mkdir -p -- "${MAVEN_HOME%/*}"
# Download and Install Apache Maven
verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
verbose "Downloading from: $distributionUrl"
verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
# select .zip or .tar.gz
if ! command -v unzip >/dev/null; then
distributionUrl="${distributionUrl%.zip}.tar.gz"
distributionUrlName="${distributionUrl##*/}"
fi
# verbose opt
__MVNW_QUIET_WGET=--quiet __MVNW_QUIET_CURL=--silent __MVNW_QUIET_UNZIP=-q __MVNW_QUIET_TAR=''
[ "${MVNW_VERBOSE-}" != true ] || __MVNW_QUIET_WGET='' __MVNW_QUIET_CURL='' __MVNW_QUIET_UNZIP='' __MVNW_QUIET_TAR=v
# normalize http auth
case "${MVNW_PASSWORD:+has-password}" in
'') MVNW_USERNAME='' MVNW_PASSWORD='' ;;
has-password) [ -n "${MVNW_USERNAME-}" ] || MVNW_USERNAME='' MVNW_PASSWORD='' ;;
esac
if [ -z "${MVNW_USERNAME-}" ] && command -v wget >/dev/null; then
verbose "Found wget ... using wget"
wget ${__MVNW_QUIET_WGET:+"$__MVNW_QUIET_WGET"} "$distributionUrl" -O "$TMP_DOWNLOAD_DIR/$distributionUrlName" || die "wget: Failed to fetch $distributionUrl"
elif [ -z "${MVNW_USERNAME-}" ] && command -v curl >/dev/null; then
verbose "Found curl ... using curl"
curl ${__MVNW_QUIET_CURL:+"$__MVNW_QUIET_CURL"} -f -L -o "$TMP_DOWNLOAD_DIR/$distributionUrlName" "$distributionUrl" || die "curl: Failed to fetch $distributionUrl"
elif set_java_home; then
verbose "Falling back to use Java to download"
javaSource="$TMP_DOWNLOAD_DIR/Downloader.java"
targetZip="$TMP_DOWNLOAD_DIR/$distributionUrlName"
cat >"$javaSource" <<-END
public class Downloader extends java.net.Authenticator
{
protected java.net.PasswordAuthentication getPasswordAuthentication()
{
return new java.net.PasswordAuthentication( System.getenv( "MVNW_USERNAME" ), System.getenv( "MVNW_PASSWORD" ).toCharArray() );
}
public static void main( String[] args ) throws Exception
{
setDefault( new Downloader() );
java.nio.file.Files.copy( java.net.URI.create( args[0] ).toURL().openStream(), java.nio.file.Paths.get( args[1] ).toAbsolutePath().normalize() );
}
}
END
# For Cygwin/MinGW, switch paths to Windows format before running javac and java
verbose " - Compiling Downloader.java ..."
"$(native_path "$JAVACCMD")" "$(native_path "$javaSource")" || die "Failed to compile Downloader.java"
verbose " - Running Downloader.java ..."
"$(native_path "$JAVACMD")" -cp "$(native_path "$TMP_DOWNLOAD_DIR")" Downloader "$distributionUrl" "$(native_path "$targetZip")"
fi
# If specified, validate the SHA-256 sum of the Maven distribution zip file
if [ -n "${distributionSha256Sum-}" ]; then
distributionSha256Result=false
if [ "$MVN_CMD" = mvnd.sh ]; then
echo "Checksum validation is not supported for maven-mvnd." >&2
echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
exit 1
elif command -v sha256sum >/dev/null; then
if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c >/dev/null 2>&1; then
distributionSha256Result=true
fi
elif command -v shasum >/dev/null; then
if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | shasum -a 256 -c >/dev/null 2>&1; then
distributionSha256Result=true
fi
else
echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2
echo "Please install either command, or disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
exit 1
fi
if [ $distributionSha256Result = false ]; then
echo "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised." >&2
echo "If you updated your Maven version, you need to update the specified distributionSha256Sum property." >&2
exit 1
fi
fi
# unzip and move
if command -v unzip >/dev/null; then
unzip ${__MVNW_QUIET_UNZIP:+"$__MVNW_QUIET_UNZIP"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -d "$TMP_DOWNLOAD_DIR" || die "failed to unzip"
else
tar xzf${__MVNW_QUIET_TAR:+"$__MVNW_QUIET_TAR"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -C "$TMP_DOWNLOAD_DIR" || die "failed to untar"
fi
printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/mvnw.url"
mv -- "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME"
clean || :
exec_maven "$@"

@ -0,0 +1,149 @@
<# : batch portion
@REM ----------------------------------------------------------------------------
@REM Licensed to the Apache Software Foundation (ASF) under one
@REM or more contributor license agreements. See the NOTICE file
@REM distributed with this work for additional information
@REM regarding copyright ownership. The ASF licenses this file
@REM to you under the Apache License, Version 2.0 (the
@REM "License"); you may not use this file except in compliance
@REM with the License. You may obtain a copy of the License at
@REM
@REM http://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing,
@REM software distributed under the License is distributed on an
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@REM KIND, either express or implied. See the License for the
@REM specific language governing permissions and limitations
@REM under the License.
@REM ----------------------------------------------------------------------------
@REM ----------------------------------------------------------------------------
@REM Apache Maven Wrapper startup batch script, version 3.3.2
@REM
@REM Optional ENV vars
@REM MVNW_REPOURL - repo url base for downloading maven distribution
@REM MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
@REM MVNW_VERBOSE - true: enable verbose log; others: silence the output
@REM ----------------------------------------------------------------------------
@IF "%__MVNW_ARG0_NAME__%"=="" (SET __MVNW_ARG0_NAME__=%~nx0)
@SET __MVNW_CMD__=
@SET __MVNW_ERROR__=
@SET __MVNW_PSMODULEP_SAVE=%PSModulePath%
@SET PSModulePath=
@FOR /F "usebackq tokens=1* delims==" %%A IN (`powershell -noprofile "& {$scriptDir='%~dp0'; $script='%__MVNW_ARG0_NAME__%'; icm -ScriptBlock ([Scriptblock]::Create((Get-Content -Raw '%~f0'))) -NoNewScope}"`) DO @(
IF "%%A"=="MVN_CMD" (set __MVNW_CMD__=%%B) ELSE IF "%%B"=="" (echo %%A) ELSE (echo %%A=%%B)
)
@SET PSModulePath=%__MVNW_PSMODULEP_SAVE%
@SET __MVNW_PSMODULEP_SAVE=
@SET __MVNW_ARG0_NAME__=
@SET MVNW_USERNAME=
@SET MVNW_PASSWORD=
@IF NOT "%__MVNW_CMD__%"=="" (%__MVNW_CMD__% %*)
@echo Cannot start maven from wrapper >&2 && exit /b 1
@GOTO :EOF
: end batch / begin powershell #>
$ErrorActionPreference = "Stop"
if ($env:MVNW_VERBOSE -eq "true") {
$VerbosePreference = "Continue"
}
# calculate distributionUrl, requires .mvn/wrapper/maven-wrapper.properties
$distributionUrl = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionUrl
if (!$distributionUrl) {
Write-Error "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
}
switch -wildcard -casesensitive ( $($distributionUrl -replace '^.*/','') ) {
"maven-mvnd-*" {
$USE_MVND = $true
$distributionUrl = $distributionUrl -replace '-bin\.[^.]*$',"-windows-amd64.zip"
$MVN_CMD = "mvnd.cmd"
break
}
default {
$USE_MVND = $false
$MVN_CMD = $script -replace '^mvnw','mvn'
break
}
}
# apply MVNW_REPOURL and calculate MAVEN_HOME
# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-<version>,maven-mvnd-<version>-<platform>}/<hash>
if ($env:MVNW_REPOURL) {
$MVNW_REPO_PATTERN = if ($USE_MVND) { "/org/apache/maven/" } else { "/maven/mvnd/" }
$distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace '^.*'+$MVNW_REPO_PATTERN,'')"
}
$distributionUrlName = $distributionUrl -replace '^.*/',''
$distributionUrlNameMain = $distributionUrlName -replace '\.[^.]*$','' -replace '-bin$',''
$MAVEN_HOME_PARENT = "$HOME/.m2/wrapper/dists/$distributionUrlNameMain"
if ($env:MAVEN_USER_HOME) {
$MAVEN_HOME_PARENT = "$env:MAVEN_USER_HOME/wrapper/dists/$distributionUrlNameMain"
}
$MAVEN_HOME_NAME = ([System.Security.Cryptography.MD5]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join ''
$MAVEN_HOME = "$MAVEN_HOME_PARENT/$MAVEN_HOME_NAME"
if (Test-Path -Path "$MAVEN_HOME" -PathType Container) {
Write-Verbose "found existing MAVEN_HOME at $MAVEN_HOME"
Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
exit $?
}
if (! $distributionUrlNameMain -or ($distributionUrlName -eq $distributionUrlNameMain)) {
Write-Error "distributionUrl is not valid, must end with *-bin.zip, but found $distributionUrl"
}
# prepare tmp dir
$TMP_DOWNLOAD_DIR_HOLDER = New-TemporaryFile
$TMP_DOWNLOAD_DIR = New-Item -Itemtype Directory -Path "$TMP_DOWNLOAD_DIR_HOLDER.dir"
$TMP_DOWNLOAD_DIR_HOLDER.Delete() | Out-Null
trap {
if ($TMP_DOWNLOAD_DIR.Exists) {
try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
}
}
New-Item -Itemtype Directory -Path "$MAVEN_HOME_PARENT" -Force | Out-Null
# Download and Install Apache Maven
Write-Verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
Write-Verbose "Downloading from: $distributionUrl"
Write-Verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
$webclient = New-Object System.Net.WebClient
if ($env:MVNW_USERNAME -and $env:MVNW_PASSWORD) {
$webclient.Credentials = New-Object System.Net.NetworkCredential($env:MVNW_USERNAME, $env:MVNW_PASSWORD)
}
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$webclient.DownloadFile($distributionUrl, "$TMP_DOWNLOAD_DIR/$distributionUrlName") | Out-Null
# If specified, validate the SHA-256 sum of the Maven distribution zip file
$distributionSha256Sum = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionSha256Sum
if ($distributionSha256Sum) {
if ($USE_MVND) {
Write-Error "Checksum validation is not supported for maven-mvnd. `nPlease disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties."
}
Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash
if ((Get-FileHash "$TMP_DOWNLOAD_DIR/$distributionUrlName" -Algorithm SHA256).Hash.ToLower() -ne $distributionSha256Sum) {
Write-Error "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised. If you updated your Maven version, you need to update the specified distributionSha256Sum property."
}
}
# unzip and move
Expand-Archive "$TMP_DOWNLOAD_DIR/$distributionUrlName" -DestinationPath "$TMP_DOWNLOAD_DIR" | Out-Null
Rename-Item -Path "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" -NewName $MAVEN_HOME_NAME | Out-Null
try {
Move-Item -Path "$TMP_DOWNLOAD_DIR/$MAVEN_HOME_NAME" -Destination $MAVEN_HOME_PARENT | Out-Null
} catch {
if (! (Test-Path -Path "$MAVEN_HOME" -PathType Container)) {
Write-Error "fail to move MAVEN_HOME"
}
} finally {
try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
}
Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"

@ -0,0 +1,154 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-modules</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>hwmom-qms</artifactId>
<description>
hwmom-qms质量模块
</description>
<dependencies>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-nacos</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-sentinel</artifactId>
</dependency>
<!-- RuoYi Common Log -->
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-log</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-dict</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-doc</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-web</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-mybatis</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-dubbo</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-seata</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-idempotent</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-tenant</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-security</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-translation</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-sensitive</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-encrypt</artifactId>
</dependency>
<!-- RuoYi Api System -->
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-api-system</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-api-resource</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.mysql</groupId>-->
<!-- <artifactId>mysql-connector-j</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.microsoft.sqlserver</groupId>-->
<!-- <artifactId>mssql-jdbc</artifactId>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>com.github.jsqlparser</groupId>-->
<!-- <artifactId>jsqlparser</artifactId>-->
<!-- <version>1.4</version>-->
<!-- </dependency>-->
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version> <!-- 确保使用兼容的插件版本 -->
<configuration>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

@ -0,0 +1,13 @@
package org.dromara.qms;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class HwmomQmsApplication {
public static void main(String[] args) {
SpringApplication.run(HwmomQmsApplication.class, args);
}
}

@ -0,0 +1,117 @@
package org.dromara.qms.controller;
import java.util.List;
import lombok.RequiredArgsConstructor;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.constraints.*;
import cn.dev33.satoken.annotation.SaCheckPermission;
import org.springframework.web.bind.annotation.*;
import org.springframework.validation.annotation.Validated;
import org.dromara.common.idempotent.annotation.RepeatSubmit;
import org.dromara.common.log.annotation.Log;
import org.dromara.common.web.core.BaseController;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.core.domain.R;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.log.enums.BusinessType;
import org.dromara.common.excel.utils.ExcelUtil;
import org.dromara.qms.domain.vo.QcDefectDetailVo;
import org.dromara.qms.domain.bo.QcDefectDetailBo;
import org.dromara.qms.service.IQcDefectDetailService;
import org.dromara.common.mybatis.core.page.TableDataInfo;
/**
*
* 访:/qms/defectDetail
*
* @author LionLi
* @date 2025-01-10
*/
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/defectDetail")
public class QcDefectDetailController extends BaseController {
private final IQcDefectDetailService qcDefectDetailService;
/**
*
*/
@SaCheckPermission("qms:defectDetail:list")
@GetMapping("/list")
public TableDataInfo<QcDefectDetailVo> list(QcDefectDetailBo bo, PageQuery pageQuery) {
return qcDefectDetailService.queryPageList(bo, pageQuery);
}
/**
*
*/
@SaCheckPermission("qms:defectDetail:export")
@Log(title = "病疵详细", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(QcDefectDetailBo bo, HttpServletResponse response) {
List<QcDefectDetailVo> list = qcDefectDetailService.queryList(bo);
ExcelUtil.exportExcel(list, "病疵详细", QcDefectDetailVo.class, response);
}
/**
*
*
* @param defectDetailId
*/
@SaCheckPermission("qms:defectDetail:query")
@GetMapping("/{defectDetailId}")
public R<QcDefectDetailVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable String defectDetailId) {
return R.ok(qcDefectDetailService.queryById(defectDetailId));
}
/**
*
*/
@SaCheckPermission("qms:defectDetail:add")
@Log(title = "病疵详细", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
public R<Void> add(@Validated(AddGroup.class) @RequestBody QcDefectDetailBo bo) {
return toAjax(qcDefectDetailService.insertByBo(bo));
}
/**
*
*/
@SaCheckPermission("qms:defectDetail:edit")
@Log(title = "病疵详细", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
public R<Void> edit(@Validated(EditGroup.class) @RequestBody QcDefectDetailBo bo) {
return toAjax(qcDefectDetailService.updateByBo(bo));
}
/**
*
*
* @param defectDetailIds
*/
@SaCheckPermission("qms:defectDetail:remove")
@Log(title = "病疵详细", businessType = BusinessType.DELETE)
@DeleteMapping("/{defectDetailIds}")
public R<Void> remove(@NotEmpty(message = "主键不能为空")
@PathVariable String[] defectDetailIds) {
return toAjax(qcDefectDetailService.deleteWithValidByIds(List.of(defectDetailIds), true));
}
/**
*
*/
@GetMapping("getQcDefectDetailList")
public R<List<QcDefectDetailVo>> getQcDefectDetaillist(QcDefectDetailBo bo) {
List<QcDefectDetailVo> list = qcDefectDetailService.queryList(bo);
return R.ok(list);
}
}

@ -0,0 +1,117 @@
package org.dromara.qms.controller;
import java.util.List;
import lombok.RequiredArgsConstructor;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.constraints.*;
import cn.dev33.satoken.annotation.SaCheckPermission;
import org.springframework.web.bind.annotation.*;
import org.springframework.validation.annotation.Validated;
import org.dromara.common.idempotent.annotation.RepeatSubmit;
import org.dromara.common.log.annotation.Log;
import org.dromara.common.web.core.BaseController;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.core.domain.R;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.log.enums.BusinessType;
import org.dromara.common.excel.utils.ExcelUtil;
import org.dromara.qms.domain.vo.QcDefectInfoVo;
import org.dromara.qms.domain.bo.QcDefectInfoBo;
import org.dromara.qms.service.IQcDefectInfoService;
/**
*
* 访:/qms/defectInfo
*
* @author LionLi
* @date 2025-01-10
*/
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/defectInfo")
public class QcDefectInfoController extends BaseController {
private final IQcDefectInfoService qcDefectInfoService;
/**
*
*/
@SaCheckPermission("qms:defectInfo:list")
@GetMapping("/list")
public R<List<QcDefectInfoVo>> list(QcDefectInfoBo bo) {
List<QcDefectInfoVo> list = qcDefectInfoService.queryList(bo);
return R.ok(list);
}
/**
*
*/
@SaCheckPermission("qms:defectInfo:export")
@Log(title = "病疵信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(QcDefectInfoBo bo, HttpServletResponse response) {
List<QcDefectInfoVo> list = qcDefectInfoService.queryList(bo);
ExcelUtil.exportExcel(list, "病疵信息", QcDefectInfoVo.class, response);
}
/**
*
*
* @param defectId
*/
@SaCheckPermission("qms:defectInfo:query")
@GetMapping("/{defectId}")
public R<QcDefectInfoVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable String defectId) {
return R.ok(qcDefectInfoService.queryById(defectId));
}
/**
*
*/
@SaCheckPermission("qms:defectInfo:add")
@Log(title = "病疵信息", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
public R<Void> add(@Validated(AddGroup.class) @RequestBody QcDefectInfoBo bo) {
return toAjax(qcDefectInfoService.insertByBo(bo));
}
/**
*
*/
@SaCheckPermission("qms:defectInfo:edit")
@Log(title = "病疵信息", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
public R<Void> edit(@Validated(EditGroup.class) @RequestBody QcDefectInfoBo bo) {
return toAjax(qcDefectInfoService.updateByBo(bo));
}
/**
*
*
* @param defectIds
*/
@SaCheckPermission("qms:defectInfo:remove")
@Log(title = "病疵信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{defectIds}")
public R<Void> remove(@NotEmpty(message = "主键不能为空")
@PathVariable String[] defectIds) {
return toAjax(qcDefectInfoService.deleteWithValidByIds(List.of(defectIds), true));
}
/**
*
*/
@GetMapping("getQcDefectInfoList")
public R<List<QcDefectInfoVo>> getQcDefectInfolist(QcDefectInfoBo bo) {
List<QcDefectInfoVo> list = qcDefectInfoService.queryList(bo);
return R.ok(list);
}
}

@ -0,0 +1,117 @@
package org.dromara.qms.controller;
import java.util.List;
import lombok.RequiredArgsConstructor;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.constraints.*;
import cn.dev33.satoken.annotation.SaCheckPermission;
import org.springframework.web.bind.annotation.*;
import org.springframework.validation.annotation.Validated;
import org.dromara.common.idempotent.annotation.RepeatSubmit;
import org.dromara.common.log.annotation.Log;
import org.dromara.common.web.core.BaseController;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.core.domain.R;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.log.enums.BusinessType;
import org.dromara.common.excel.utils.ExcelUtil;
import org.dromara.qms.domain.vo.QcDynamicStandardVo;
import org.dromara.qms.domain.bo.QcDynamicStandardBo;
import org.dromara.qms.service.IQcDynamicStandardService;
import org.dromara.common.mybatis.core.page.TableDataInfo;
/**
*
* 访:/qms/dynamicStandard
*
* @author WanLi Yang
* @date 2025-02-05
*/
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/dynamicStandard")
public class QcDynamicStandardController extends BaseController {
private final IQcDynamicStandardService qcDynamicStandardService;
/**
*
*/
@SaCheckPermission("qms:dynamicStandard:list")
@GetMapping("/list")
public TableDataInfo<QcDynamicStandardVo> list(QcDynamicStandardBo bo, PageQuery pageQuery) {
return qcDynamicStandardService.queryPageList(bo, pageQuery);
}
/**
*
*/
@SaCheckPermission("qms:dynamicStandard:export")
@Log(title = "动均质检标准维护", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(QcDynamicStandardBo bo, HttpServletResponse response) {
List<QcDynamicStandardVo> list = qcDynamicStandardService.queryList(bo);
ExcelUtil.exportExcel(list, "动均质检标准维护", QcDynamicStandardVo.class, response);
}
/**
*
*
* @param standardId
*/
@SaCheckPermission("qms:dynamicStandard:query")
@GetMapping("/{standardId}")
public R<QcDynamicStandardVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long standardId) {
return R.ok(qcDynamicStandardService.queryById(standardId));
}
/**
*
*/
@SaCheckPermission("qms:dynamicStandard:add")
@Log(title = "动均质检标准维护", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
public R<Void> add(@Validated(AddGroup.class) @RequestBody QcDynamicStandardBo bo) {
return toAjax(qcDynamicStandardService.insertByBo(bo));
}
/**
*
*/
@SaCheckPermission("qms:dynamicStandard:edit")
@Log(title = "动均质检标准维护", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
public R<Void> edit(@Validated(EditGroup.class) @RequestBody QcDynamicStandardBo bo) {
return toAjax(qcDynamicStandardService.updateByBo(bo));
}
/**
*
*
* @param standardIds
*/
@SaCheckPermission("qms:dynamicStandard:remove")
@Log(title = "动均质检标准维护", businessType = BusinessType.DELETE)
@DeleteMapping("/{standardIds}")
public R<Void> remove(@NotEmpty(message = "主键不能为空")
@PathVariable Long[] standardIds) {
return toAjax(qcDynamicStandardService.deleteWithValidByIds(List.of(standardIds), true));
}
/**
*
*/
@GetMapping("getQcDynamicStandardList")
public R<List<QcDynamicStandardVo>> getQcDynamicStandardlist(QcDynamicStandardBo bo) {
List<QcDynamicStandardVo> list = qcDynamicStandardService.queryList(bo);
return R.ok(list);
}
}

@ -0,0 +1,117 @@
package org.dromara.qms.controller;
import java.util.List;
import lombok.RequiredArgsConstructor;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.constraints.*;
import cn.dev33.satoken.annotation.SaCheckPermission;
import org.springframework.web.bind.annotation.*;
import org.springframework.validation.annotation.Validated;
import org.dromara.common.idempotent.annotation.RepeatSubmit;
import org.dromara.common.log.annotation.Log;
import org.dromara.common.web.core.BaseController;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.core.domain.R;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.log.enums.BusinessType;
import org.dromara.common.excel.utils.ExcelUtil;
import org.dromara.qms.domain.vo.QcGradeInfoVo;
import org.dromara.qms.domain.bo.QcGradeInfoBo;
import org.dromara.qms.service.IQcGradeInfoService;
import org.dromara.common.mybatis.core.page.TableDataInfo;
/**
*
* 访:/qms/gradeInfo
*
* @author WanLi Yang
* @date 2025-02-11
*/
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/gradeInfo")
public class QcGradeInfoController extends BaseController {
private final IQcGradeInfoService qcGradeInfoService;
/**
*
*/
@SaCheckPermission("qms:gradeInfo:list")
@GetMapping("/list")
public TableDataInfo<QcGradeInfoVo> list(QcGradeInfoBo bo, PageQuery pageQuery) {
return qcGradeInfoService.queryPageList(bo, pageQuery);
}
/**
*
*/
@SaCheckPermission("qms:gradeInfo:export")
@Log(title = "品级信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(QcGradeInfoBo bo, HttpServletResponse response) {
List<QcGradeInfoVo> list = qcGradeInfoService.queryList(bo);
ExcelUtil.exportExcel(list, "品级信息", QcGradeInfoVo.class, response);
}
/**
*
*
* @param gradeId
*/
@SaCheckPermission("qms:gradeInfo:query")
@GetMapping("/{gradeId}")
public R<QcGradeInfoVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long gradeId) {
return R.ok(qcGradeInfoService.queryById(gradeId));
}
/**
*
*/
@SaCheckPermission("qms:gradeInfo:add")
@Log(title = "品级信息", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
public R<Void> add(@Validated(AddGroup.class) @RequestBody QcGradeInfoBo bo) {
return toAjax(qcGradeInfoService.insertByBo(bo));
}
/**
*
*/
@SaCheckPermission("qms:gradeInfo:edit")
@Log(title = "品级信息", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
public R<Void> edit(@Validated(EditGroup.class) @RequestBody QcGradeInfoBo bo) {
return toAjax(qcGradeInfoService.updateByBo(bo));
}
/**
*
*
* @param gradeIds
*/
@SaCheckPermission("qms:gradeInfo:remove")
@Log(title = "品级信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{gradeIds}")
public R<Void> remove(@NotEmpty(message = "主键不能为空")
@PathVariable Long[] gradeIds) {
return toAjax(qcGradeInfoService.deleteWithValidByIds(List.of(gradeIds), true));
}
/**
*
*/
@GetMapping("getQcGradeInfoList")
public R<List<QcGradeInfoVo>> getQcGradeInfolist(QcGradeInfoBo bo) {
List<QcGradeInfoVo> list = qcGradeInfoService.queryList(bo);
return R.ok(list);
}
}

@ -0,0 +1,117 @@
package org.dromara.qms.controller;
import java.util.List;
import lombok.RequiredArgsConstructor;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.constraints.*;
import cn.dev33.satoken.annotation.SaCheckPermission;
import org.springframework.web.bind.annotation.*;
import org.springframework.validation.annotation.Validated;
import org.dromara.common.idempotent.annotation.RepeatSubmit;
import org.dromara.common.log.annotation.Log;
import org.dromara.common.web.core.BaseController;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.core.domain.R;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.log.enums.BusinessType;
import org.dromara.common.excel.utils.ExcelUtil;
import org.dromara.qms.domain.vo.QcInspectionItemsVo;
import org.dromara.qms.domain.bo.QcInspectionItemsBo;
import org.dromara.qms.service.IQcInspectionItemsService;
import org.dromara.common.mybatis.core.page.TableDataInfo;
/**
*
* 访:/qms/inspectionItems
*
* @author WanLi Yang
* @date 2025-02-13
*/
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/inspectionItems")
public class QcInspectionItemsController extends BaseController {
private final IQcInspectionItemsService qcInspectionItemsService;
/**
*
*/
@SaCheckPermission("qms:inspectionItems:list")
@GetMapping("/list")
public TableDataInfo<QcInspectionItemsVo> list(QcInspectionItemsBo bo, PageQuery pageQuery) {
return qcInspectionItemsService.queryPageList(bo, pageQuery);
}
/**
*
*/
@SaCheckPermission("qms:inspectionItems:export")
@Log(title = "检验项目", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(QcInspectionItemsBo bo, HttpServletResponse response) {
List<QcInspectionItemsVo> list = qcInspectionItemsService.queryList(bo);
ExcelUtil.exportExcel(list, "检验项目", QcInspectionItemsVo.class, response);
}
/**
*
*
* @param inspectionItemId
*/
@SaCheckPermission("qms:inspectionItems:query")
@GetMapping("/{inspectionItemId}")
public R<QcInspectionItemsVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable String inspectionItemId) {
return R.ok(qcInspectionItemsService.queryById(inspectionItemId));
}
/**
*
*/
@SaCheckPermission("qms:inspectionItems:add")
@Log(title = "检验项目", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
public R<Void> add(@Validated(AddGroup.class) @RequestBody QcInspectionItemsBo bo) {
return toAjax(qcInspectionItemsService.insertByBo(bo));
}
/**
*
*/
@SaCheckPermission("qms:inspectionItems:edit")
@Log(title = "检验项目", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
public R<Void> edit(@Validated(EditGroup.class) @RequestBody QcInspectionItemsBo bo) {
return toAjax(qcInspectionItemsService.updateByBo(bo));
}
/**
*
*
* @param inspectionItemIds
*/
@SaCheckPermission("qms:inspectionItems:remove")
@Log(title = "检验项目", businessType = BusinessType.DELETE)
@DeleteMapping("/{inspectionItemIds}")
public R<Void> remove(@NotEmpty(message = "主键不能为空")
@PathVariable String[] inspectionItemIds) {
return toAjax(qcInspectionItemsService.deleteWithValidByIds(List.of(inspectionItemIds), true));
}
/**
*
*/
@GetMapping("getQcInspectionItemsList")
public R<List<QcInspectionItemsVo>> getQcInspectionItemslist(QcInspectionItemsBo bo) {
List<QcInspectionItemsVo> list = qcInspectionItemsService.queryList(bo);
return R.ok(list);
}
}

@ -0,0 +1,117 @@
package org.dromara.qms.controller;
import java.util.List;
import lombok.RequiredArgsConstructor;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.constraints.*;
import cn.dev33.satoken.annotation.SaCheckPermission;
import org.springframework.web.bind.annotation.*;
import org.springframework.validation.annotation.Validated;
import org.dromara.common.idempotent.annotation.RepeatSubmit;
import org.dromara.common.log.annotation.Log;
import org.dromara.common.web.core.BaseController;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.core.domain.R;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.log.enums.BusinessType;
import org.dromara.common.excel.utils.ExcelUtil;
import org.dromara.qms.domain.vo.QcInspectionRulesVo;
import org.dromara.qms.domain.bo.QcInspectionRulesBo;
import org.dromara.qms.service.IQcInspectionRulesService;
import org.dromara.common.mybatis.core.page.TableDataInfo;
/**
*
* 访:/qms/inspectionRules
*
* @author WanLi Yang
* @date 2025-02-14
*/
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/inspectionRules")
public class QcInspectionRulesController extends BaseController {
private final IQcInspectionRulesService qcInspectionRulesService;
/**
*
*/
@SaCheckPermission("qms:inspectionRules:list")
@GetMapping("/list")
public TableDataInfo<QcInspectionRulesVo> list(QcInspectionRulesBo bo, PageQuery pageQuery) {
return qcInspectionRulesService.queryPageList(bo, pageQuery);
}
/**
*
*/
@SaCheckPermission("qms:inspectionRules:export")
@Log(title = "检验规则", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(QcInspectionRulesBo bo, HttpServletResponse response) {
List<QcInspectionRulesVo> list = qcInspectionRulesService.queryList(bo);
ExcelUtil.exportExcel(list, "检验规则", QcInspectionRulesVo.class, response);
}
/**
*
*
* @param ruleId
*/
@SaCheckPermission("qms:inspectionRules:query")
@GetMapping("/{ruleId}")
public R<QcInspectionRulesVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long ruleId) {
return R.ok(qcInspectionRulesService.queryById(ruleId));
}
/**
*
*/
@SaCheckPermission("qms:inspectionRules:add")
@Log(title = "检验规则", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
public R<Void> add(@Validated(AddGroup.class) @RequestBody QcInspectionRulesBo bo) {
return toAjax(qcInspectionRulesService.insertByBo(bo));
}
/**
*
*/
@SaCheckPermission("qms:inspectionRules:edit")
@Log(title = "检验规则", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
public R<Void> edit(@Validated(EditGroup.class) @RequestBody QcInspectionRulesBo bo) {
return toAjax(qcInspectionRulesService.updateByBo(bo));
}
/**
*
*
* @param ruleIds
*/
@SaCheckPermission("qms:inspectionRules:remove")
@Log(title = "检验规则", businessType = BusinessType.DELETE)
@DeleteMapping("/{ruleIds}")
public R<Void> remove(@NotEmpty(message = "主键不能为空")
@PathVariable Long[] ruleIds) {
return toAjax(qcInspectionRulesService.deleteWithValidByIds(List.of(ruleIds), true));
}
/**
*
*/
@GetMapping("getQcInspectionRulesList")
public R<List<QcInspectionRulesVo>> getQcInspectionRuleslist(QcInspectionRulesBo bo) {
List<QcInspectionRulesVo> list = qcInspectionRulesService.queryList(bo);
return R.ok(list);
}
}

@ -0,0 +1,117 @@
package org.dromara.qms.controller;
import java.util.List;
import lombok.RequiredArgsConstructor;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.constraints.*;
import cn.dev33.satoken.annotation.SaCheckPermission;
import org.springframework.web.bind.annotation.*;
import org.springframework.validation.annotation.Validated;
import org.dromara.common.idempotent.annotation.RepeatSubmit;
import org.dromara.common.log.annotation.Log;
import org.dromara.common.web.core.BaseController;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.core.domain.R;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.log.enums.BusinessType;
import org.dromara.common.excel.utils.ExcelUtil;
import org.dromara.qms.domain.vo.QcLevelInfoVo;
import org.dromara.qms.domain.bo.QcLevelInfoBo;
import org.dromara.qms.service.IQcLevelInfoService;
import org.dromara.common.mybatis.core.page.TableDataInfo;
/**
*
* 访:/qms/levelInfo
*
* @author WanLi Yang
* @date 2025-02-11
*/
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/levelInfo")
public class QcLevelInfoController extends BaseController {
private final IQcLevelInfoService qcLevelInfoService;
/**
*
*/
@SaCheckPermission("qms:levelInfo:list")
@GetMapping("/list")
public TableDataInfo<QcLevelInfoVo> list(QcLevelInfoBo bo, PageQuery pageQuery) {
return qcLevelInfoService.queryPageList(bo, pageQuery);
}
/**
*
*/
@SaCheckPermission("qms:levelInfo:export")
@Log(title = "层级信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(QcLevelInfoBo bo, HttpServletResponse response) {
List<QcLevelInfoVo> list = qcLevelInfoService.queryList(bo);
ExcelUtil.exportExcel(list, "层级信息", QcLevelInfoVo.class, response);
}
/**
*
*
* @param levelId
*/
@SaCheckPermission("qms:levelInfo:query")
@GetMapping("/{levelId}")
public R<QcLevelInfoVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long levelId) {
return R.ok(qcLevelInfoService.queryById(levelId));
}
/**
*
*/
@SaCheckPermission("qms:levelInfo:add")
@Log(title = "层级信息", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
public R<Void> add(@Validated(AddGroup.class) @RequestBody QcLevelInfoBo bo) {
return toAjax(qcLevelInfoService.insertByBo(bo));
}
/**
*
*/
@SaCheckPermission("qms:levelInfo:edit")
@Log(title = "层级信息", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
public R<Void> edit(@Validated(EditGroup.class) @RequestBody QcLevelInfoBo bo) {
return toAjax(qcLevelInfoService.updateByBo(bo));
}
/**
*
*
* @param levelIds
*/
@SaCheckPermission("qms:levelInfo:remove")
@Log(title = "层级信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{levelIds}")
public R<Void> remove(@NotEmpty(message = "主键不能为空")
@PathVariable Long[] levelIds) {
return toAjax(qcLevelInfoService.deleteWithValidByIds(List.of(levelIds), true));
}
/**
*
*/
@GetMapping("getQcLevelInfoList")
public R<List<QcLevelInfoVo>> getQcLevelInfolist(QcLevelInfoBo bo) {
List<QcLevelInfoVo> list = qcLevelInfoService.queryList(bo);
return R.ok(list);
}
}

@ -0,0 +1,117 @@
package org.dromara.qms.controller;
import java.util.List;
import lombok.RequiredArgsConstructor;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.constraints.*;
import cn.dev33.satoken.annotation.SaCheckPermission;
import org.springframework.web.bind.annotation.*;
import org.springframework.validation.annotation.Validated;
import org.dromara.common.idempotent.annotation.RepeatSubmit;
import org.dromara.common.log.annotation.Log;
import org.dromara.common.web.core.BaseController;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.core.domain.R;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.log.enums.BusinessType;
import org.dromara.common.excel.utils.ExcelUtil;
import org.dromara.qms.domain.vo.QcRevisionInfoVo;
import org.dromara.qms.domain.bo.QcRevisionInfoBo;
import org.dromara.qms.service.IQcRevisionInfoService;
import org.dromara.common.mybatis.core.page.TableDataInfo;
/**
*
* 访:/qms/revisionInfo
*
* @author WanLi Yang
* @date 2025-02-05
*/
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/revisionInfo")
public class QcRevisionInfoController extends BaseController {
private final IQcRevisionInfoService qcRevisionInfoService;
/**
*
*/
@SaCheckPermission("qms:revisionInfo:list")
@GetMapping("/list")
public TableDataInfo<QcRevisionInfoVo> list(QcRevisionInfoBo bo, PageQuery pageQuery) {
return qcRevisionInfoService.queryPageList(bo, pageQuery);
}
/**
*
*/
@SaCheckPermission("qms:revisionInfo:export")
@Log(title = "改判原因信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(QcRevisionInfoBo bo, HttpServletResponse response) {
List<QcRevisionInfoVo> list = qcRevisionInfoService.queryList(bo);
ExcelUtil.exportExcel(list, "改判原因信息", QcRevisionInfoVo.class, response);
}
/**
*
*
* @param revisionId
*/
@SaCheckPermission("qms:revisionInfo:query")
@GetMapping("/{revisionId}")
public R<QcRevisionInfoVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long revisionId) {
return R.ok(qcRevisionInfoService.queryById(revisionId));
}
/**
*
*/
@SaCheckPermission("qms:revisionInfo:add")
@Log(title = "改判原因信息", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
public R<Void> add(@Validated(AddGroup.class) @RequestBody QcRevisionInfoBo bo) {
return toAjax(qcRevisionInfoService.insertByBo(bo));
}
/**
*
*/
@SaCheckPermission("qms:revisionInfo:edit")
@Log(title = "改判原因信息", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
public R<Void> edit(@Validated(EditGroup.class) @RequestBody QcRevisionInfoBo bo) {
return toAjax(qcRevisionInfoService.updateByBo(bo));
}
/**
*
*
* @param revisionIds
*/
@SaCheckPermission("qms:revisionInfo:remove")
@Log(title = "改判原因信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{revisionIds}")
public R<Void> remove(@NotEmpty(message = "主键不能为空")
@PathVariable Long[] revisionIds) {
return toAjax(qcRevisionInfoService.deleteWithValidByIds(List.of(revisionIds), true));
}
/**
*
*/
@GetMapping("getQcRevisionInfoList")
public R<List<QcRevisionInfoVo>> getQcRevisionInfolist(QcRevisionInfoBo bo) {
List<QcRevisionInfoVo> list = qcRevisionInfoService.queryList(bo);
return R.ok(list);
}
}

@ -0,0 +1,117 @@
package org.dromara.qms.controller;
import java.util.List;
import lombok.RequiredArgsConstructor;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.constraints.*;
import cn.dev33.satoken.annotation.SaCheckPermission;
import org.springframework.web.bind.annotation.*;
import org.springframework.validation.annotation.Validated;
import org.dromara.common.idempotent.annotation.RepeatSubmit;
import org.dromara.common.log.annotation.Log;
import org.dromara.common.web.core.BaseController;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.core.domain.R;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.log.enums.BusinessType;
import org.dromara.common.excel.utils.ExcelUtil;
import org.dromara.qms.domain.vo.QcRimInfoVo;
import org.dromara.qms.domain.bo.QcRimInfoBo;
import org.dromara.qms.service.IQcRimInfoService;
import org.dromara.common.mybatis.core.page.TableDataInfo;
/**
*
* 访:/qms/rimInfo
*
* @author WanLi Yang
* @date 2025-02-11
*/
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/rimInfo")
public class QcRimInfoController extends BaseController {
private final IQcRimInfoService qcRimInfoService;
/**
*
*/
@SaCheckPermission("qms:rimInfo:list")
@GetMapping("/list")
public TableDataInfo<QcRimInfoVo> list(QcRimInfoBo bo, PageQuery pageQuery) {
return qcRimInfoService.queryPageList(bo, pageQuery);
}
/**
*
*/
@SaCheckPermission("qms:rimInfo:export")
@Log(title = "轮辋信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(QcRimInfoBo bo, HttpServletResponse response) {
List<QcRimInfoVo> list = qcRimInfoService.queryList(bo);
ExcelUtil.exportExcel(list, "轮辋信息", QcRimInfoVo.class, response);
}
/**
*
*
* @param rimId
*/
@SaCheckPermission("qms:rimInfo:query")
@GetMapping("/{rimId}")
public R<QcRimInfoVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long rimId) {
return R.ok(qcRimInfoService.queryById(rimId));
}
/**
*
*/
@SaCheckPermission("qms:rimInfo:add")
@Log(title = "轮辋信息", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
public R<Void> add(@Validated(AddGroup.class) @RequestBody QcRimInfoBo bo) {
return toAjax(qcRimInfoService.insertByBo(bo));
}
/**
*
*/
@SaCheckPermission("qms:rimInfo:edit")
@Log(title = "轮辋信息", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
public R<Void> edit(@Validated(EditGroup.class) @RequestBody QcRimInfoBo bo) {
return toAjax(qcRimInfoService.updateByBo(bo));
}
/**
*
*
* @param rimIds
*/
@SaCheckPermission("qms:rimInfo:remove")
@Log(title = "轮辋信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{rimIds}")
public R<Void> remove(@NotEmpty(message = "主键不能为空")
@PathVariable Long[] rimIds) {
return toAjax(qcRimInfoService.deleteWithValidByIds(List.of(rimIds), true));
}
/**
*
*/
@GetMapping("getQcRimInfoList")
public R<List<QcRimInfoVo>> getQcRimInfolist(QcRimInfoBo bo) {
List<QcRimInfoVo> list = qcRimInfoService.queryList(bo);
return R.ok(list);
}
}

@ -0,0 +1,95 @@
package org.dromara.qms.domain;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serial;
/**
* qc_defect_detail
*
* @author LionLi
* @date 2025-01-10
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("qc_defect_detail")
public class QcDefectDetail extends BaseEntity {
@Serial
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(value = "defect_detail_id")
private String defectDetailId;
/**
*
*/
private Long defectCode;
/**
*
*/
private String defectDesc;
/**
*
*/
private String defectType;
/**
*
*/
private String sort;
/**
*
*/
private String operation;
/**
*
*/
private String defectLevel;
/**
* 0 1
*/
private String status;
/**
* 1 0
*/
private String isFlag;
/**
*
*/
private String attr1;
/**
*
*/
private String attr2;
/**
*
*/
private String attr3;
/**
*
*/
private String attr4;
/**
*
*/
private String remark;
}

@ -0,0 +1,78 @@
package org.dromara.qms.domain;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serial;
/**
* qc_defect_info
*
* @author LionLi
* @date 2025-01-10
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("qc_defect_info")
public class QcDefectInfo extends BaseEntity {
@Serial
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(value = "defect_id")
private Long defectId;
/**
*
*/
private String defectName;
/**
*
*/
private String defectType;
/**
* 0 1
*/
private String status;
/**
*
*/
private String operation;
/**
* 1 0
*/
private String isFlag;
/**
*
*/
private String attr1;
/**
*
*/
private String attr2;
/**
*
*/
private String attr3;
/**
*
*/
private String attr4;
}

@ -0,0 +1,76 @@
package org.dromara.qms.domain;
import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serial;
/**
* qc_dynamic_standard
*
* @author WanLi Yang
* @date 2025-02-05
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("qc_dynamic_standard")
public class QcDynamicStandard extends TenantEntity {
@Serial
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(value = "standard_id")
private Long standardId;
/**
*
*/
private String speCode;
/**
*
*/
private String speName;
/**
*
*/
private String dynamicStandard;
/**
* X
*/
private String xrayStandard;
/**
*
*/
private String uniformityStandard;
/**
*
*/
private String attr1;
/**
*
*/
private String attr2;
/**
*
*/
private String attr3;
/**
*
*/
private String attr4;
}

@ -0,0 +1,81 @@
package org.dromara.qms.domain;
import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serial;
/**
* qc_grade_info
*
* @author WanLi Yang
* @date 2025-02-11
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("qc_grade_info")
public class QcGradeInfo extends TenantEntity {
@Serial
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(value = "grade_id")
private Long gradeId;
/**
*
*/
private String gradeCode;
/**
*
*/
private String gradeName;
/**
*
*/
private String operationCode;
/**
*
*/
private String operationName;
/**
* /
*/
private String workshop;
/**
*
*/
private Long sort;
/**
*
*/
private String status;
/**
*
*/
private String attr1;
/**
*
*/
private String attr2;
/**
*
*/
private String attr3;
}

@ -0,0 +1,92 @@
package org.dromara.qms.domain;
import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serial;
import java.math.BigDecimal;
/**
* qc_inspection_items
*
* @author WanLi Yang
* @date 2025-02-13
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("qc_inspection_items")
public class QcInspectionItems extends TenantEntity {
@Serial
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(value = "inspection_item_id")
private Long inspectionItemId;
/**
*
*/
private String itemDesc;
/**
* 0/1
*/
private String propertyCode;
/**
*
*/
private String inspectionMode;
/**
* /
*/
private String inspectionTool;
/**
*
*/
private BigDecimal upperLimit;
/**
*
*/
private BigDecimal lowerLimit;
/**
*
*/
private String status;
/**
* 1 0
*/
private String isFlag;
/**
*
*/
private BigDecimal attr1;
/**
*
*/
private String attr2;
/**
*
*/
private String attr3;
/**
*
*/
private String attr4;
}

@ -0,0 +1,76 @@
package org.dromara.qms.domain;
import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serial;
/**
* qc_inspection_rules
*
* @author WanLi Yang
* @date 2025-02-14
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("qc_inspection_rules")
public class QcInspectionRules extends TenantEntity {
@Serial
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(value = "rule_id")
private Long ruleId;
/**
*
*/
private String ruleName;
/**
*
*/
private String ruleType;
/**
*
*/
private String ruleMode;
/**
*
*/
private String status;
/**
*
*/
private String remark;
/**
*
*/
private String attr1;
/**
*
*/
private String attr2;
/**
*
*/
private String attr3;
/**
*
*/
private String attr4;
}

@ -0,0 +1,81 @@
package org.dromara.qms.domain;
import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serial;
/**
* qc_level_info
*
* @author WanLi Yang
* @date 2025-02-11
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("qc_level_info")
public class QcLevelInfo extends TenantEntity {
@Serial
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(value = "level_id")
private Long levelId;
/**
*
*/
private String levelCode;
/**
*
*/
private String levelName;
/**
*
*/
private String operationCode;
/**
*
*/
private String operationName;
/**
*
*/
private String workshop;
/**
*
*/
private String attr1;
/**
*
*/
private String attr2;
/**
*
*/
private String attr3;
/**
*
*/
private String status;
/**
*
*/
private String remark;
}

@ -0,0 +1,61 @@
package org.dromara.qms.domain;
import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serial;
/**
* qc_revision_info
*
* @author WanLi Yang
* @date 2025-02-05
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("qc_revision_info")
public class QcRevisionInfo extends TenantEntity {
@Serial
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(value = "revision_id")
private Long revisionId;
/**
*
*/
private String revisionCode;
/**
*
*/
private String revisionDesc;
/**
*
*/
private String attr1;
/**
*
*/
private String attr2;
/**
*
*/
private String attr3;
/**
*
*/
private String attr4;
}

@ -0,0 +1,67 @@
package org.dromara.qms.domain;
import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serial;
import java.math.BigDecimal;
/**
* qc_rim_info
*
* @author WanLi Yang
* @date 2025-02-11
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("qc_rim_info")
public class QcRimInfo extends TenantEntity {
@Serial
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(value = "rim_id")
private Long rimId;
/**
*
*/
private String rimCode;
/**
*
*/
private String rimName;
/**
*
*/
private BigDecimal rimDiameter;
/**
*
*/
private String remark;
/**
*
*/
private String attr1;
/**
*
*/
private String attr2;
/**
*
*/
private String attr3;
}

@ -0,0 +1,103 @@
package org.dromara.qms.domain.bo;
import org.dromara.qms.domain.QcDefectDetail;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
/**
* qc_defect_detail
*
* @author LionLi
* @date 2025-01-10
*/
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = QcDefectDetail.class, reverseConvertGenerate = false)
public class QcDefectDetailBo extends BaseEntity {
/**
*
*/
private String defectDetailId;
/**
*
*/
@NotNull(message = "病疵编码不能为空", groups = { AddGroup.class, EditGroup.class })
private Long defectCode;
/**
*
*/
@NotBlank(message = "病疵描述不能为空", groups = { AddGroup.class, EditGroup.class })
private String defectDesc;
/**
*
*/
@NotBlank(message = "病疵类型不能为空", groups = { AddGroup.class, EditGroup.class })
private String defectType;
/**
*
*/
private String sort;
/**
*
*/
private String operation;
/**
*
*/
private String defectLevel;
/**
* 0 1
*/
private String status;
/**
* 1 0
*/
private String isFlag;
/**
*
*/
private String attr1;
/**
*
*/
private String attr2;
/**
*
*/
private String attr3;
/**
*
*/
private String attr4;
/**
*
*/
private String remark;
}

@ -0,0 +1,57 @@
package org.dromara.qms.domain.bo;
import lombok.NoArgsConstructor;
import org.dromara.qms.domain.QcDefectInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.qms.domain.QcInspectionItems;
/**
* qc_defect_info
*
* @author LionLi
* @date 2025-01-10
*/
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = QcDefectInfo.class, reverseConvertGenerate = false)
public class QcDefectInfoBo extends BaseEntity {
private Long defectId;
/**
*
*/
@NotBlank(message = "病疵名称不能为空", groups = { AddGroup.class, EditGroup.class })
private String defectName;
/**
*
*/
@NotNull(message = "病疵类型不能为空", groups = { AddGroup.class, EditGroup.class })
private String defectType;
/**
* 0 1
*/
@NotNull(message = "状态0正常 1停用不能为空", groups = { AddGroup.class, EditGroup.class })
private String status;
/**
*
*/
@NotBlank(message = "工序不能为空", groups = { AddGroup.class, EditGroup.class })
private String operation;
public QcDefectInfoBo(Long defectId) {
this.defectId = defectId;
}
}

@ -0,0 +1,76 @@
package org.dromara.qms.domain.bo;
import org.dromara.qms.domain.QcDynamicStandard;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
/**
* qc_dynamic_standard
*
* @author WanLi Yang
* @date 2025-02-05
*/
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = QcDynamicStandard.class, reverseConvertGenerate = false)
public class QcDynamicStandardBo extends BaseEntity {
/**
*
*/
private Long standardId;
/**
*
*/
@NotBlank(message = "规格编码不能为空", groups = { AddGroup.class, EditGroup.class })
private String speCode;
/**
*
*/
@NotBlank(message = "规格名称不能为空", groups = { AddGroup.class, EditGroup.class })
private String speName;
/**
*
*/
private String dynamicStandard;
/**
* X
*/
private String xrayStandard;
/**
*
*/
private String uniformityStandard;
/**
*
*/
private String attr1;
/**
*
*/
private String attr2;
/**
*
*/
private String attr3;
/**
*
*/
private String attr4;
}

@ -0,0 +1,70 @@
package org.dromara.qms.domain.bo;
import org.dromara.qms.domain.QcGradeInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
/**
* qc_grade_info
*
* @author WanLi Yang
* @date 2025-02-11
*/
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = QcGradeInfo.class, reverseConvertGenerate = false)
public class QcGradeInfoBo extends BaseEntity {
/**
*
*/
private Long gradeId;
/**
*
*/
@NotBlank(message = "品级编码不能为空", groups = { AddGroup.class, EditGroup.class })
private String gradeCode;
/**
*
*/
@NotBlank(message = "品级名称不能为空", groups = { AddGroup.class, EditGroup.class })
private String gradeName;
/**
*
*/
private String operationCode;
/**
*
*/
private String operationName;
/**
* /
*/
@NotBlank(message = "车间/工程不能为空", groups = { AddGroup.class, EditGroup.class })
private String workshop;
/**
*
*/
@NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
private Long sort;
/**
*
*/
@NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
private String status;
}

@ -0,0 +1,72 @@
package org.dromara.qms.domain.bo;
import org.dromara.qms.domain.QcInspectionItems;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
/**
* qc_inspection_items
*
* @author WanLi Yang
* @date 2025-02-13
*/
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = QcInspectionItems.class, reverseConvertGenerate = false)
public class QcInspectionItemsBo extends BaseEntity {
/**
*
*/
private Long inspectionItemId;
/**
*
*/
@NotBlank(message = "项目名称不能为空", groups = { AddGroup.class, EditGroup.class })
private String itemDesc;
/**
* 0/1
*/
@NotNull(message = "检验规则属性编码定性0/定量1不能为空", groups = { AddGroup.class, EditGroup.class })
private String propertyCode;
/**
*
*/
private String inspectionMode;
/**
*
*/
private BigDecimal attr1;
/**
* /
*/
private String inspectionTool;
/**
*
*/
private BigDecimal upperLimit;
/**
*
*/
private BigDecimal lowerLimit;
/**
*
*/
@NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
private String status;
}

@ -0,0 +1,58 @@
package org.dromara.qms.domain.bo;
import org.dromara.qms.domain.QcInspectionRules;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
/**
* qc_inspection_rules
*
* @author WanLi Yang
* @date 2025-02-14
*/
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = QcInspectionRules.class, reverseConvertGenerate = false)
public class QcInspectionRulesBo extends BaseEntity {
/**
*
*/
private Long ruleId;
/**
*
*/
@NotBlank(message = "规则名称不能为空", groups = { AddGroup.class, EditGroup.class })
private String ruleName;
/**
*
*/
@NotBlank(message = "规则类型不能为空", groups = { AddGroup.class, EditGroup.class })
private String ruleType;
/**
*
*/
@NotBlank(message = "检验方式不能为空", groups = { AddGroup.class, EditGroup.class })
private String ruleMode;
/**
*
*/
@NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
private String status;
/**
*
*/
private String remark;
}

@ -0,0 +1,69 @@
package org.dromara.qms.domain.bo;
import org.dromara.qms.domain.QcLevelInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
/**
* qc_level_info
*
* @author WanLi Yang
* @date 2025-02-11
*/
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = QcLevelInfo.class, reverseConvertGenerate = false)
public class QcLevelInfoBo extends BaseEntity {
/**
*
*/
private Long levelId;
/**
*
*/
@NotBlank(message = "等级编码不能为空", groups = { AddGroup.class, EditGroup.class })
private String levelCode;
/**
*
*/
@NotBlank(message = "等级名称不能为空", groups = { AddGroup.class, EditGroup.class })
private String levelName;
/**
*
*/
private String operationCode;
/**
*
*/
private String operationName;
/**
*
*/
@NotBlank(message = "车间不能为空", groups = { AddGroup.class, EditGroup.class })
private String workshop;
/**
*
*/
@NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
private String status;
/**
*
*/
private String remark;
}

@ -0,0 +1,37 @@
package org.dromara.qms.domain.bo;
import org.dromara.qms.domain.QcRevisionInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
/**
* qc_revision_info
*
* @author WanLi Yang
* @date 2025-02-05
*/
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = QcRevisionInfo.class, reverseConvertGenerate = false)
public class QcRevisionInfoBo extends BaseEntity {
private Long revisionId;
/**
*
*/
@NotBlank(message = "原因编码不能为空", groups = { AddGroup.class, EditGroup.class })
private String revisionCode;
/**
*
*/
@NotBlank(message = "原因描述不能为空", groups = { AddGroup.class, EditGroup.class })
private String revisionDesc;
}

@ -0,0 +1,55 @@
package org.dromara.qms.domain.bo;
import org.dromara.qms.domain.QcRimInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
/**
* qc_rim_info
*
* @author WanLi Yang
* @date 2025-02-11
*/
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = QcRimInfo.class, reverseConvertGenerate = false)
public class QcRimInfoBo extends BaseEntity {
/**
*
*/
private Long rimId;
/**
*
*/
@NotBlank(message = "轮辋编码不能为空", groups = { AddGroup.class, EditGroup.class })
private String rimCode;
/**
*
*/
@NotBlank(message = "轮辋名称不能为空", groups = { AddGroup.class, EditGroup.class })
private String rimName;
/**
*
*/
@NotNull(message = "轮辋直径不能为空", groups = { AddGroup.class, EditGroup.class })
private BigDecimal rimDiameter;
/**
*
*/
private String remark;
}

@ -0,0 +1,116 @@
package org.dromara.qms.domain.vo;
import org.dromara.qms.domain.QcDefectDetail;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
/**
* qc_defect_detail
*
* @author LionLi
* @date 2025-01-10
*/
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = QcDefectDetail.class)
public class QcDefectDetailVo implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
*
*/
@ExcelProperty(value = "主键标识")
private String defectDetailId;
/**
*
*/
@ExcelProperty(value = "病疵编码")
private Long defectCode;
/**
*
*/
@ExcelProperty(value = "病疵描述")
private String defectDesc;
/**
*
*/
@ExcelProperty(value = "病疵类型")
private String defectType;
/**
*
*/
@ExcelProperty(value = "排序")
private String sort;
/**
*
*/
@ExcelProperty(value = "工序")
private String operation;
/**
*
*/
@ExcelProperty(value = "层级")
private String defectLevel;
/**
* 0 1
*/
@ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
@ExcelDictFormat(readConverterExp = "0=正常,1=停用")
private String status;
/**
* 1 0
*/
@ExcelProperty(value = "是否删除", converter = ExcelDictConvert.class)
@ExcelDictFormat(readConverterExp = "1=是,0=否")
private String isFlag;
/**
*
*/
@ExcelProperty(value = "预留字段")
private String attr1;
/**
*
*/
@ExcelProperty(value = "预留字段")
private String attr2;
/**
*
*/
@ExcelProperty(value = "预留字段")
private String attr3;
/**
*
*/
@ExcelProperty(value = "预留字段")
private String attr4;
/**
*
*/
private String remark;
}

@ -0,0 +1,60 @@
package org.dromara.qms.domain.vo;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.qms.domain.QcDefectInfo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
/**
* qc_defect_info
*
* @author LionLi
* @date 2025-01-10
*/
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = QcDefectInfo.class)
public class QcDefectInfoVo implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
private Long defectId;
/**
*
*/
@ExcelProperty(value = "病疵名称")
private String defectName;
/**
*
*/
@ExcelProperty(value = "病疵类型")
private String defectType;
/**
* 0 1
*/
@ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
@ExcelDictFormat(readConverterExp = "0=正常,1=停用")
private String status;
/**
*
*/
@ExcelProperty(value = "工序")
private String operation;
}

@ -0,0 +1,63 @@
package org.dromara.qms.domain.vo;
import org.dromara.qms.domain.QcDynamicStandard;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
/**
* qc_dynamic_standard
*
* @author WanLi Yang
* @date 2025-02-05
*/
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = QcDynamicStandard.class)
public class QcDynamicStandardVo implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
private Long standardId;
/**
*
*/
@ExcelProperty(value = "规格编码")
private String speCode;
/**
*
*/
@ExcelProperty(value = "规格名称")
private String speName;
/**
*
*/
@ExcelProperty(value = "动平衡质检标准")
private String dynamicStandard;
/**
* X
*/
@ExcelProperty(value = "X光质检标准")
private String xrayStandard;
/**
*
*/
@ExcelProperty(value = "均匀性质检标准")
private String uniformityStandard;
}

@ -0,0 +1,76 @@
package org.dromara.qms.domain.vo;
import org.dromara.qms.domain.QcGradeInfo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
/**
* qc_grade_info
*
* @author WanLi Yang
* @date 2025-02-11
*/
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = QcGradeInfo.class)
public class QcGradeInfoVo implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
private Long gradeId;
/**
*
*/
@ExcelProperty(value = "品级编码")
private String gradeCode;
/**
*
*/
@ExcelProperty(value = "品级名称")
private String gradeName;
/**
*
*/
@ExcelProperty(value = "工序编码")
private String operationCode;
/**
*
*/
@ExcelProperty(value = "工序名称")
private String operationName;
/**
* /
*/
@ExcelProperty(value = "车间/工程")
private String workshop;
/**
*
*/
@ExcelProperty(value = "排序")
private Long sort;
/**
*
*/
@ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
@ExcelDictFormat(dictType = "enable_status")
private String status;
}

@ -0,0 +1,80 @@
package org.dromara.qms.domain.vo;
import org.dromara.qms.domain.QcInspectionItems;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* qc_inspection_items
*
* @author WanLi Yang
* @date 2025-02-13
*/
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = QcInspectionItems.class)
public class QcInspectionItemsVo implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
private Long inspectionItemId;
/**
*
*/
@ExcelProperty(value = "项目名称")
private String itemDesc;
/**
* 0/1
*/
@ExcelProperty(value = "检验规则属性编码", converter = ExcelDictConvert.class)
@ExcelDictFormat(readConverterExp = "定=性0/定量1")
private String propertyCode;
/**
*
*/
@ExcelProperty(value = "检验方式")
private String inspectionMode;
/**
* /
*/
@ExcelProperty(value = "检验工具/设备")
private String inspectionTool;
@ExcelProperty(value = "标准值")
private BigDecimal attr1;
/**
*
*/
@ExcelProperty(value = "上限值")
private BigDecimal upperLimit;
/**
*
*/
@ExcelProperty(value = "下限值")
private BigDecimal lowerLimit;
/**
*
*/
@ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
@ExcelDictFormat(dictType = "enable_status")
private String status;
}

@ -0,0 +1,65 @@
package org.dromara.qms.domain.vo;
import org.dromara.qms.domain.QcInspectionRules;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
/**
* qc_inspection_rules
*
* @author WanLi Yang
* @date 2025-02-14
*/
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = QcInspectionRules.class)
public class QcInspectionRulesVo implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
*
*/
@ExcelProperty(value = "规则名称")
private String ruleName;
/**
*
*/
@ExcelProperty(value = "规则类型", converter = ExcelDictConvert.class)
@ExcelDictFormat(dictType = "rule_type")
private String ruleType;
/**
*
*/
@ExcelProperty(value = "检验方式", converter = ExcelDictConvert.class)
@ExcelDictFormat(dictType = "rule_mode")
private String ruleMode;
/**
*
*/
@ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
@ExcelDictFormat(dictType = "enable_status")
private String status;
/**
*
*/
@ExcelProperty(value = "备注")
private String remark;
}

@ -0,0 +1,81 @@
package org.dromara.qms.domain.vo;
import org.dromara.qms.domain.QcLevelInfo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
/**
* qc_level_info
*
* @author WanLi Yang
* @date 2025-02-11
*/
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = QcLevelInfo.class)
public class QcLevelInfoVo implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
*
*/
@ExcelProperty(value = "等级主键")
private Long levelId;
/**
*
*/
@ExcelProperty(value = "等级编码")
private String levelCode;
/**
*
*/
@ExcelProperty(value = "等级名称")
private String levelName;
/**
*
*/
@ExcelProperty(value = "工序编码")
private String operationCode;
/**
*
*/
@ExcelProperty(value = "工序名称")
private String operationName;
/**
*
*/
@ExcelProperty(value = "车间")
private String workshop;
/**
*
*/
@ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
@ExcelDictFormat(dictType = "enable_status")
private String status;
/**
*
*/
@ExcelProperty(value = "备注")
private String remark;
}

@ -0,0 +1,46 @@
package org.dromara.qms.domain.vo;
import org.dromara.qms.domain.QcRevisionInfo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
/**
* qc_revision_info
*
* @author WanLi Yang
* @date 2025-02-05
*/
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = QcRevisionInfo.class)
public class QcRevisionInfoVo implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
private Long revisionId;
/**
*
*/
@ExcelProperty(value = "原因编码")
private String revisionCode;
/**
*
*/
@ExcelProperty(value = "原因描述")
private String revisionDesc;
}

@ -0,0 +1,57 @@
package org.dromara.qms.domain.vo;
import org.dromara.qms.domain.QcRimInfo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* qc_rim_info
*
* @author WanLi Yang
* @date 2025-02-11
*/
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = QcRimInfo.class)
public class QcRimInfoVo implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
*
*/
private String rimCode;
/**
*
*/
@ExcelProperty(value = "轮辋名称")
private String rimName;
/**
*
*/
@ExcelProperty(value = "轮辋直径")
private BigDecimal rimDiameter;
/**
*
*/
@ExcelProperty(value = "备注")
private String remark;
}

@ -0,0 +1,15 @@
package org.dromara.qms.mapper;
import org.dromara.qms.domain.QcDefectDetail;
import org.dromara.qms.domain.vo.QcDefectDetailVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
/**
* Mapper
*
* @author LionLi
* @date 2025-01-10
*/
public interface QcDefectDetailMapper extends BaseMapperPlus<QcDefectDetail, QcDefectDetailVo> {
}

@ -0,0 +1,15 @@
package org.dromara.qms.mapper;
import org.dromara.qms.domain.QcDefectInfo;
import org.dromara.qms.domain.vo.QcDefectInfoVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
/**
* Mapper
*
* @author LionLi
* @date 2025-01-10
*/
public interface QcDefectInfoMapper extends BaseMapperPlus<QcDefectInfo, QcDefectInfoVo> {
}

@ -0,0 +1,15 @@
package org.dromara.qms.mapper;
import org.dromara.qms.domain.QcDynamicStandard;
import org.dromara.qms.domain.vo.QcDynamicStandardVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
/**
* Mapper
*
* @author WanLi Yang
* @date 2025-02-05
*/
public interface QcDynamicStandardMapper extends BaseMapperPlus<QcDynamicStandard, QcDynamicStandardVo> {
}

@ -0,0 +1,15 @@
package org.dromara.qms.mapper;
import org.dromara.qms.domain.QcGradeInfo;
import org.dromara.qms.domain.vo.QcGradeInfoVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
/**
* Mapper
*
* @author WanLi Yang
* @date 2025-02-11
*/
public interface QcGradeInfoMapper extends BaseMapperPlus<QcGradeInfo, QcGradeInfoVo> {
}

@ -0,0 +1,15 @@
package org.dromara.qms.mapper;
import org.dromara.qms.domain.QcInspectionItems;
import org.dromara.qms.domain.vo.QcInspectionItemsVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
/**
* Mapper
*
* @author WanLi Yang
* @date 2025-02-13
*/
public interface QcInspectionItemsMapper extends BaseMapperPlus<QcInspectionItems, QcInspectionItemsVo> {
}

@ -0,0 +1,15 @@
package org.dromara.qms.mapper;
import org.dromara.qms.domain.QcInspectionRules;
import org.dromara.qms.domain.vo.QcInspectionRulesVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
/**
* Mapper
*
* @author WanLi Yang
* @date 2025-02-14
*/
public interface QcInspectionRulesMapper extends BaseMapperPlus<QcInspectionRules, QcInspectionRulesVo> {
}

@ -0,0 +1,15 @@
package org.dromara.qms.mapper;
import org.dromara.qms.domain.QcLevelInfo;
import org.dromara.qms.domain.vo.QcLevelInfoVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
/**
* Mapper
*
* @author WanLi Yang
* @date 2025-02-11
*/
public interface QcLevelInfoMapper extends BaseMapperPlus<QcLevelInfo, QcLevelInfoVo> {
}

@ -0,0 +1,15 @@
package org.dromara.qms.mapper;
import org.dromara.qms.domain.QcRevisionInfo;
import org.dromara.qms.domain.vo.QcRevisionInfoVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
/**
* Mapper
*
* @author WanLi Yang
* @date 2025-02-05
*/
public interface QcRevisionInfoMapper extends BaseMapperPlus<QcRevisionInfo, QcRevisionInfoVo> {
}

@ -0,0 +1,15 @@
package org.dromara.qms.mapper;
import org.dromara.qms.domain.QcRimInfo;
import org.dromara.qms.domain.vo.QcRimInfoVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
/**
* Mapper
*
* @author WanLi Yang
* @date 2025-02-11
*/
public interface QcRimInfoMapper extends BaseMapperPlus<QcRimInfo, QcRimInfoVo> {
}

@ -0,0 +1,69 @@
package org.dromara.qms.service;
import org.dromara.qms.domain.QcDefectDetail;
import org.dromara.qms.domain.vo.QcDefectDetailVo;
import org.dromara.qms.domain.bo.QcDefectDetailBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import java.util.Collection;
import java.util.List;
/**
* Service
*
* @author LionLi
* @date 2025-01-10
*/
public interface IQcDefectDetailService {
/**
*
*
* @param defectDetailId
* @return
*/
QcDefectDetailVo queryById(String defectDetailId);
/**
*
*
* @param bo
* @param pageQuery
* @return
*/
TableDataInfo<QcDefectDetailVo> queryPageList(QcDefectDetailBo bo, PageQuery pageQuery);
/**
*
*
* @param bo
* @return
*/
List<QcDefectDetailVo> queryList(QcDefectDetailBo bo);
/**
*
*
* @param bo
* @return
*/
Boolean insertByBo(QcDefectDetailBo bo);
/**
*
*
* @param bo
* @return
*/
Boolean updateByBo(QcDefectDetailBo bo);
/**
*
*
* @param ids
* @param isValid
* @return
*/
Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);
}

@ -0,0 +1,69 @@
package org.dromara.qms.service;
import org.dromara.qms.domain.QcDefectInfo;
import org.dromara.qms.domain.vo.QcDefectInfoVo;
import org.dromara.qms.domain.bo.QcDefectInfoBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import java.util.Collection;
import java.util.List;
/**
* Service
*
* @author LionLi
* @date 2025-01-10
*/
public interface IQcDefectInfoService {
/**
*
*
* @param defectId
* @return
*/
QcDefectInfoVo queryById(String defectId);
/**
*
*
* @param bo
* @param pageQuery
* @return
*/
TableDataInfo<QcDefectInfoVo> queryPageList(QcDefectInfoBo bo, PageQuery pageQuery);
/**
*
*
* @param bo
* @return
*/
List<QcDefectInfoVo> queryList(QcDefectInfoBo bo);
/**
*
*
* @param bo
* @return
*/
Boolean insertByBo(QcDefectInfoBo bo);
/**
*
*
* @param bo
* @return
*/
Boolean updateByBo(QcDefectInfoBo bo);
/**
*
*
* @param ids
* @param isValid
* @return
*/
Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);
}

@ -0,0 +1,69 @@
package org.dromara.qms.service;
import org.dromara.qms.domain.QcDynamicStandard;
import org.dromara.qms.domain.vo.QcDynamicStandardVo;
import org.dromara.qms.domain.bo.QcDynamicStandardBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import java.util.Collection;
import java.util.List;
/**
* Service
*
* @author WanLi Yang
* @date 2025-02-05
*/
public interface IQcDynamicStandardService {
/**
*
*
* @param standardId
* @return
*/
QcDynamicStandardVo queryById(Long standardId);
/**
*
*
* @param bo
* @param pageQuery
* @return
*/
TableDataInfo<QcDynamicStandardVo> queryPageList(QcDynamicStandardBo bo, PageQuery pageQuery);
/**
*
*
* @param bo
* @return
*/
List<QcDynamicStandardVo> queryList(QcDynamicStandardBo bo);
/**
*
*
* @param bo
* @return
*/
Boolean insertByBo(QcDynamicStandardBo bo);
/**
*
*
* @param bo
* @return
*/
Boolean updateByBo(QcDynamicStandardBo bo);
/**
*
*
* @param ids
* @param isValid
* @return
*/
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}

@ -0,0 +1,69 @@
package org.dromara.qms.service;
import org.dromara.qms.domain.QcGradeInfo;
import org.dromara.qms.domain.vo.QcGradeInfoVo;
import org.dromara.qms.domain.bo.QcGradeInfoBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import java.util.Collection;
import java.util.List;
/**
* Service
*
* @author WanLi Yang
* @date 2025-02-11
*/
public interface IQcGradeInfoService {
/**
*
*
* @param gradeId
* @return
*/
QcGradeInfoVo queryById(Long gradeId);
/**
*
*
* @param bo
* @param pageQuery
* @return
*/
TableDataInfo<QcGradeInfoVo> queryPageList(QcGradeInfoBo bo, PageQuery pageQuery);
/**
*
*
* @param bo
* @return
*/
List<QcGradeInfoVo> queryList(QcGradeInfoBo bo);
/**
*
*
* @param bo
* @return
*/
Boolean insertByBo(QcGradeInfoBo bo);
/**
*
*
* @param bo
* @return
*/
Boolean updateByBo(QcGradeInfoBo bo);
/**
*
*
* @param ids
* @param isValid
* @return
*/
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}

@ -0,0 +1,69 @@
package org.dromara.qms.service;
import org.dromara.qms.domain.QcInspectionItems;
import org.dromara.qms.domain.vo.QcInspectionItemsVo;
import org.dromara.qms.domain.bo.QcInspectionItemsBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import java.util.Collection;
import java.util.List;
/**
* Service
*
* @author WanLi Yang
* @date 2025-02-13
*/
public interface IQcInspectionItemsService {
/**
*
*
* @param inspectionItemId
* @return
*/
QcInspectionItemsVo queryById(String inspectionItemId);
/**
*
*
* @param bo
* @param pageQuery
* @return
*/
TableDataInfo<QcInspectionItemsVo> queryPageList(QcInspectionItemsBo bo, PageQuery pageQuery);
/**
*
*
* @param bo
* @return
*/
List<QcInspectionItemsVo> queryList(QcInspectionItemsBo bo);
/**
*
*
* @param bo
* @return
*/
Boolean insertByBo(QcInspectionItemsBo bo);
/**
*
*
* @param bo
* @return
*/
Boolean updateByBo(QcInspectionItemsBo bo);
/**
*
*
* @param ids
* @param isValid
* @return
*/
Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);
}

@ -0,0 +1,69 @@
package org.dromara.qms.service;
import org.dromara.qms.domain.QcInspectionRules;
import org.dromara.qms.domain.vo.QcInspectionRulesVo;
import org.dromara.qms.domain.bo.QcInspectionRulesBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import java.util.Collection;
import java.util.List;
/**
* Service
*
* @author WanLi Yang
* @date 2025-02-14
*/
public interface IQcInspectionRulesService {
/**
*
*
* @param ruleId
* @return
*/
QcInspectionRulesVo queryById(Long ruleId);
/**
*
*
* @param bo
* @param pageQuery
* @return
*/
TableDataInfo<QcInspectionRulesVo> queryPageList(QcInspectionRulesBo bo, PageQuery pageQuery);
/**
*
*
* @param bo
* @return
*/
List<QcInspectionRulesVo> queryList(QcInspectionRulesBo bo);
/**
*
*
* @param bo
* @return
*/
Boolean insertByBo(QcInspectionRulesBo bo);
/**
*
*
* @param bo
* @return
*/
Boolean updateByBo(QcInspectionRulesBo bo);
/**
*
*
* @param ids
* @param isValid
* @return
*/
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}

@ -0,0 +1,69 @@
package org.dromara.qms.service;
import org.dromara.qms.domain.QcLevelInfo;
import org.dromara.qms.domain.vo.QcLevelInfoVo;
import org.dromara.qms.domain.bo.QcLevelInfoBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import java.util.Collection;
import java.util.List;
/**
* Service
*
* @author WanLi Yang
* @date 2025-02-11
*/
public interface IQcLevelInfoService {
/**
*
*
* @param levelId
* @return
*/
QcLevelInfoVo queryById(Long levelId);
/**
*
*
* @param bo
* @param pageQuery
* @return
*/
TableDataInfo<QcLevelInfoVo> queryPageList(QcLevelInfoBo bo, PageQuery pageQuery);
/**
*
*
* @param bo
* @return
*/
List<QcLevelInfoVo> queryList(QcLevelInfoBo bo);
/**
*
*
* @param bo
* @return
*/
Boolean insertByBo(QcLevelInfoBo bo);
/**
*
*
* @param bo
* @return
*/
Boolean updateByBo(QcLevelInfoBo bo);
/**
*
*
* @param ids
* @param isValid
* @return
*/
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}

@ -0,0 +1,69 @@
package org.dromara.qms.service;
import org.dromara.qms.domain.QcRevisionInfo;
import org.dromara.qms.domain.vo.QcRevisionInfoVo;
import org.dromara.qms.domain.bo.QcRevisionInfoBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import java.util.Collection;
import java.util.List;
/**
* Service
*
* @author WanLi Yang
* @date 2025-02-05
*/
public interface IQcRevisionInfoService {
/**
*
*
* @param revisionId
* @return
*/
QcRevisionInfoVo queryById(Long revisionId);
/**
*
*
* @param bo
* @param pageQuery
* @return
*/
TableDataInfo<QcRevisionInfoVo> queryPageList(QcRevisionInfoBo bo, PageQuery pageQuery);
/**
*
*
* @param bo
* @return
*/
List<QcRevisionInfoVo> queryList(QcRevisionInfoBo bo);
/**
*
*
* @param bo
* @return
*/
Boolean insertByBo(QcRevisionInfoBo bo);
/**
*
*
* @param bo
* @return
*/
Boolean updateByBo(QcRevisionInfoBo bo);
/**
*
*
* @param ids
* @param isValid
* @return
*/
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}

@ -0,0 +1,69 @@
package org.dromara.qms.service;
import org.dromara.qms.domain.QcRimInfo;
import org.dromara.qms.domain.vo.QcRimInfoVo;
import org.dromara.qms.domain.bo.QcRimInfoBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import java.util.Collection;
import java.util.List;
/**
* Service
*
* @author WanLi Yang
* @date 2025-02-11
*/
public interface IQcRimInfoService {
/**
*
*
* @param rimId
* @return
*/
QcRimInfoVo queryById(Long rimId);
/**
*
*
* @param bo
* @param pageQuery
* @return
*/
TableDataInfo<QcRimInfoVo> queryPageList(QcRimInfoBo bo, PageQuery pageQuery);
/**
*
*
* @param bo
* @return
*/
List<QcRimInfoVo> queryList(QcRimInfoBo bo);
/**
*
*
* @param bo
* @return
*/
Boolean insertByBo(QcRimInfoBo bo);
/**
*
*
* @param bo
* @return
*/
Boolean updateByBo(QcRimInfoBo bo);
/**
*
*
* @param ids
* @param isValid
* @return
*/
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}

@ -0,0 +1,143 @@
package org.dromara.qms.service.impl;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.toolkit.JoinWrappers;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.dromara.qms.domain.bo.QcDefectDetailBo;
import org.dromara.qms.domain.vo.QcDefectDetailVo;
import org.dromara.qms.domain.QcDefectDetail;
import org.dromara.qms.mapper.QcDefectDetailMapper;
import org.dromara.qms.service.IQcDefectDetailService;
import java.util.List;
import java.util.Map;
import java.util.Collection;
/**
* Service
*
* @author LionLi
* @date 2025-01-10
*/
@RequiredArgsConstructor
@Service
public class QcDefectDetailServiceImpl implements IQcDefectDetailService {
private final QcDefectDetailMapper baseMapper;
/**
*
*
* @param defectDetailId
* @return
*/
@Override
public QcDefectDetailVo queryById(String defectDetailId){
return baseMapper.selectVoById(defectDetailId);
}
/**
*
*
* @param bo
* @param pageQuery
* @return
*/
@Override
public TableDataInfo<QcDefectDetailVo> queryPageList(QcDefectDetailBo bo, PageQuery pageQuery) {
MPJLambdaWrapper<QcDefectDetail> lqw = buildQueryWrapper(bo);
Page<QcDefectDetailVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
return TableDataInfo.build(result);
}
/**
*
*
* @param bo
* @return
*/
@Override
public List<QcDefectDetailVo> queryList(QcDefectDetailBo bo) {
MPJLambdaWrapper<QcDefectDetail> lqw = buildQueryWrapper(bo);
return baseMapper.selectVoList(lqw);
}
private MPJLambdaWrapper<QcDefectDetail> buildQueryWrapper(QcDefectDetailBo bo) {
Map<String, Object> params = bo.getParams();
MPJLambdaWrapper<QcDefectDetail> lqw = JoinWrappers.lambda(QcDefectDetail.class)
.selectAll(QcDefectDetail.class)
.eq(StringUtils.isNotBlank(bo.getDefectDetailId()), QcDefectDetail::getDefectDetailId, bo.getDefectDetailId())
.eq(bo.getDefectCode() != null, QcDefectDetail::getDefectCode, bo.getDefectCode())
.eq(StringUtils.isNotBlank(bo.getDefectDesc()), QcDefectDetail::getDefectDesc, bo.getDefectDesc())
.eq(StringUtils.isNotBlank(bo.getDefectType()), QcDefectDetail::getDefectType, bo.getDefectType())
.eq(StringUtils.isNotBlank(bo.getSort()), QcDefectDetail::getSort, bo.getSort())
.eq(StringUtils.isNotBlank(bo.getOperation()), QcDefectDetail::getOperation, bo.getOperation())
.eq(StringUtils.isNotBlank(bo.getDefectLevel()), QcDefectDetail::getDefectLevel, bo.getDefectLevel())
.eq(StringUtils.isNotBlank(bo.getStatus()), QcDefectDetail::getStatus, bo.getStatus())
.eq(StringUtils.isNotBlank(bo.getIsFlag()), QcDefectDetail::getIsFlag, bo.getIsFlag())
.eq(StringUtils.isNotBlank(bo.getAttr1()), QcDefectDetail::getAttr1, bo.getAttr1())
.eq(StringUtils.isNotBlank(bo.getAttr2()), QcDefectDetail::getAttr2, bo.getAttr2())
.eq(StringUtils.isNotBlank(bo.getAttr3()), QcDefectDetail::getAttr3, bo.getAttr3())
.eq(StringUtils.isNotBlank(bo.getAttr4()), QcDefectDetail::getAttr4, bo.getAttr4())
.orderByDesc(QcDefectDetail::getCreateTime);
return lqw;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean insertByBo(QcDefectDetailBo bo) {
QcDefectDetail add = MapstructUtils.convert(bo, QcDefectDetail.class);
validEntityBeforeSave(add);
add.setStatus("0");
add.setIsFlag("0");
boolean flag = baseMapper.insert(add) > 0;
return flag;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean updateByBo(QcDefectDetailBo bo) {
QcDefectDetail update = MapstructUtils.convert(bo, QcDefectDetail.class);
validEntityBeforeSave(update);
return baseMapper.updateById(update) > 0;
}
/**
*
*/
private void validEntityBeforeSave(QcDefectDetail entity){
//TODO 做一些数据校验,如唯一约束
}
/**
*
*
* @param ids
* @param isValid
* @return
*/
@Override
public Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid) {
if(isValid){
//TODO 做一些业务上的校验,判断是否需要校验
}
return baseMapper.deleteByIds(ids) > 0;
}
}

@ -0,0 +1,136 @@
package org.dromara.qms.service.impl;
import org.dromara.common.core.utils.DateUtils;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.toolkit.JoinWrappers;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.RequiredArgsConstructor;
import org.springframework.cloud.commons.util.IdUtils;
import org.springframework.stereotype.Service;
import org.dromara.qms.domain.bo.QcDefectInfoBo;
import org.dromara.qms.domain.vo.QcDefectInfoVo;
import org.dromara.qms.domain.QcDefectInfo;
import org.dromara.qms.mapper.QcDefectInfoMapper;
import org.dromara.qms.service.IQcDefectInfoService;
import java.util.List;
import java.util.Map;
import java.util.Collection;
import java.util.UUID;
/**
* Service
*
* @author LionLi
* @date 2025-01-10
*/
@RequiredArgsConstructor
@Service
public class QcDefectInfoServiceImpl implements IQcDefectInfoService {
private final QcDefectInfoMapper baseMapper;
/**
*
*
* @param defectId
* @return
*/
@Override
public QcDefectInfoVo queryById(String defectId){
return baseMapper.selectVoById(defectId);
}
/**
*
*
* @param bo
* @param pageQuery
* @return
*/
@Override
public TableDataInfo<QcDefectInfoVo> queryPageList(QcDefectInfoBo bo, PageQuery pageQuery) {
MPJLambdaWrapper<QcDefectInfo> lqw = buildQueryWrapper(bo);
Page<QcDefectInfoVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
return TableDataInfo.build(result);
}
/**
*
*
* @param bo
* @return
*/
@Override
public List<QcDefectInfoVo> queryList(QcDefectInfoBo bo) {
MPJLambdaWrapper<QcDefectInfo> lqw = buildQueryWrapper(bo);
return baseMapper.selectVoList(lqw);
}
private MPJLambdaWrapper<QcDefectInfo> buildQueryWrapper(QcDefectInfoBo bo) {
Map<String, Object> params = bo.getParams();
MPJLambdaWrapper<QcDefectInfo> lqw = JoinWrappers.lambda(QcDefectInfo.class)
.selectAll(QcDefectInfo.class)
.like(StringUtils.isNotBlank(bo.getDefectName()), QcDefectInfo::getDefectName, bo.getDefectName())
.eq(bo.getDefectType() != null, QcDefectInfo::getDefectType, bo.getDefectType())
.eq(bo.getStatus() != null, QcDefectInfo::getStatus, bo.getStatus())
.eq(StringUtils.isNotBlank(bo.getOperation()), QcDefectInfo::getOperation, bo.getOperation())
.orderByDesc(QcDefectInfo::getCreateTime);
return lqw;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean insertByBo(QcDefectInfoBo bo) {
QcDefectInfo qcDefectInfo = MapstructUtils.convert(bo, QcDefectInfo.class);
qcDefectInfo.setIsFlag("0");
// 新增病疵信息
boolean flag = baseMapper.insert(qcDefectInfo) > 0;
return flag;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean updateByBo(QcDefectInfoBo bo) {
QcDefectInfo update = MapstructUtils.convert(bo, QcDefectInfo.class);
validEntityBeforeSave(update);
return baseMapper.updateById(update) > 0;
}
/**
*
*/
private void validEntityBeforeSave(QcDefectInfo entity){
//TODO 做一些数据校验,如唯一约束
}
/**
*
*
* @param ids
* @param isValid
* @return
*/
@Override
public Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid) {
if(isValid){
//TODO 做一些业务上的校验,判断是否需要校验
}
return baseMapper.deleteByIds(ids) > 0;
}
}

@ -0,0 +1,136 @@
package org.dromara.qms.service.impl;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.toolkit.JoinWrappers;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.dromara.qms.domain.bo.QcDynamicStandardBo;
import org.dromara.qms.domain.vo.QcDynamicStandardVo;
import org.dromara.qms.domain.QcDynamicStandard;
import org.dromara.qms.mapper.QcDynamicStandardMapper;
import org.dromara.qms.service.IQcDynamicStandardService;
import java.util.List;
import java.util.Map;
import java.util.Collection;
/**
* Service
*
* @author WanLi Yang
* @date 2025-02-05
*/
@RequiredArgsConstructor
@Service
public class QcDynamicStandardServiceImpl implements IQcDynamicStandardService {
private final QcDynamicStandardMapper baseMapper;
/**
*
*
* @param standardId
* @return
*/
@Override
public QcDynamicStandardVo queryById(Long standardId){
return baseMapper.selectVoById(standardId);
}
/**
*
*
* @param bo
* @param pageQuery
* @return
*/
@Override
public TableDataInfo<QcDynamicStandardVo> queryPageList(QcDynamicStandardBo bo, PageQuery pageQuery) {
MPJLambdaWrapper<QcDynamicStandard> lqw = buildQueryWrapper(bo);
Page<QcDynamicStandardVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
return TableDataInfo.build(result);
}
/**
*
*
* @param bo
* @return
*/
@Override
public List<QcDynamicStandardVo> queryList(QcDynamicStandardBo bo) {
MPJLambdaWrapper<QcDynamicStandard> lqw = buildQueryWrapper(bo);
return baseMapper.selectVoList(lqw);
}
private MPJLambdaWrapper<QcDynamicStandard> buildQueryWrapper(QcDynamicStandardBo bo) {
Map<String, Object> params = bo.getParams();
MPJLambdaWrapper<QcDynamicStandard> lqw = JoinWrappers.lambda(QcDynamicStandard.class)
.selectAll(QcDynamicStandard.class)
.eq(StringUtils.isNotBlank(bo.getSpeCode()), QcDynamicStandard::getSpeCode, bo.getSpeCode())
.like(StringUtils.isNotBlank(bo.getSpeName()), QcDynamicStandard::getSpeName, bo.getSpeName())
.eq(StringUtils.isNotBlank(bo.getDynamicStandard()), QcDynamicStandard::getDynamicStandard, bo.getDynamicStandard())
.eq(StringUtils.isNotBlank(bo.getXrayStandard()), QcDynamicStandard::getXrayStandard, bo.getXrayStandard())
.eq(StringUtils.isNotBlank(bo.getUniformityStandard()), QcDynamicStandard::getUniformityStandard, bo.getUniformityStandard())
.orderByDesc(QcDynamicStandard::getCreateTime);
return lqw;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean insertByBo(QcDynamicStandardBo bo) {
QcDynamicStandard add = MapstructUtils.convert(bo, QcDynamicStandard.class);
validEntityBeforeSave(add);
boolean flag = baseMapper.insert(add) > 0;
if (flag) {
bo.setStandardId(add.getStandardId());
}
return flag;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean updateByBo(QcDynamicStandardBo bo) {
QcDynamicStandard update = MapstructUtils.convert(bo, QcDynamicStandard.class);
validEntityBeforeSave(update);
return baseMapper.updateById(update) > 0;
}
/**
*
*/
private void validEntityBeforeSave(QcDynamicStandard entity){
//TODO 做一些数据校验,如唯一约束
}
/**
*
*
* @param ids
* @param isValid
* @return
*/
@Override
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
if(isValid){
//TODO 做一些业务上的校验,判断是否需要校验
}
return baseMapper.deleteByIds(ids) > 0;
}
}

@ -0,0 +1,141 @@
package org.dromara.qms.service.impl;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.toolkit.JoinWrappers;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.dromara.qms.domain.bo.QcGradeInfoBo;
import org.dromara.qms.domain.vo.QcGradeInfoVo;
import org.dromara.qms.domain.QcGradeInfo;
import org.dromara.qms.mapper.QcGradeInfoMapper;
import org.dromara.qms.service.IQcGradeInfoService;
import java.util.List;
import java.util.Map;
import java.util.Collection;
/**
* Service
*
* @author WanLi Yang
* @date 2025-02-11
*/
@RequiredArgsConstructor
@Service
public class QcGradeInfoServiceImpl implements IQcGradeInfoService {
private final QcGradeInfoMapper baseMapper;
/**
*
*
* @param gradeId
* @return
*/
@Override
public QcGradeInfoVo queryById(Long gradeId){
return baseMapper.selectVoById(gradeId);
}
/**
*
*
* @param bo
* @param pageQuery
* @return
*/
@Override
public TableDataInfo<QcGradeInfoVo> queryPageList(QcGradeInfoBo bo, PageQuery pageQuery) {
MPJLambdaWrapper<QcGradeInfo> lqw = buildQueryWrapper(bo);
lqw.orderByAsc(QcGradeInfo::getSort); // 这里你需要根据实际的字段名来调整
Page<QcGradeInfoVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
return TableDataInfo.build(result);
}
/**
*
*
* @param bo
* @return
*/
@Override
public List<QcGradeInfoVo> queryList(QcGradeInfoBo bo) {
MPJLambdaWrapper<QcGradeInfo> lqw = buildQueryWrapper(bo);
return baseMapper.selectVoList(lqw);
}
private MPJLambdaWrapper<QcGradeInfo> buildQueryWrapper(QcGradeInfoBo bo) {
Map<String, Object> params = bo.getParams();
MPJLambdaWrapper<QcGradeInfo> lqw = JoinWrappers.lambda(QcGradeInfo.class)
.selectAll(QcGradeInfo.class)
.eq(StringUtils.isNotBlank(bo.getGradeCode()), QcGradeInfo::getGradeCode, bo.getGradeCode())
.like(StringUtils.isNotBlank(bo.getGradeName()), QcGradeInfo::getGradeName, bo.getGradeName())
.eq(StringUtils.isNotBlank(bo.getOperationCode()), QcGradeInfo::getOperationCode, bo.getOperationCode())
.like(StringUtils.isNotBlank(bo.getOperationName()), QcGradeInfo::getOperationName, bo.getOperationName())
.eq(StringUtils.isNotBlank(bo.getWorkshop()), QcGradeInfo::getWorkshop, bo.getWorkshop())
.eq(bo.getSort() != null, QcGradeInfo::getSort, bo.getSort())
.eq(StringUtils.isNotBlank(bo.getStatus()), QcGradeInfo::getStatus, bo.getStatus())
.orderByDesc(QcGradeInfo::getCreateTime);
return lqw;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean insertByBo(QcGradeInfoBo bo) {
QcGradeInfo add = MapstructUtils.convert(bo, QcGradeInfo.class);
validEntityBeforeSave(add);
boolean flag = baseMapper.insert(add) > 0;
if (flag) {
bo.setGradeId(add.getGradeId());
}
return flag;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean updateByBo(QcGradeInfoBo bo) {
QcGradeInfo update = MapstructUtils.convert(bo, QcGradeInfo.class);
validEntityBeforeSave(update);
return baseMapper.updateById(update) > 0;
}
/**
*
*/
private void validEntityBeforeSave(QcGradeInfo entity){
//TODO 做一些数据校验,如唯一约束
}
/**
*
*
* @param ids
* @param isValid
* @return
*/
@Override
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
if(isValid){
//TODO 做一些业务上的校验,判断是否需要校验
}
return baseMapper.deleteByIds(ids) > 0;
}
}

@ -0,0 +1,138 @@
package org.dromara.qms.service.impl;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.toolkit.JoinWrappers;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.dromara.qms.domain.bo.QcInspectionItemsBo;
import org.dromara.qms.domain.vo.QcInspectionItemsVo;
import org.dromara.qms.domain.QcInspectionItems;
import org.dromara.qms.mapper.QcInspectionItemsMapper;
import org.dromara.qms.service.IQcInspectionItemsService;
import java.util.List;
import java.util.Map;
import java.util.Collection;
/**
* Service
*
* @author WanLi Yang
* @date 2025-02-13
*/
@RequiredArgsConstructor
@Service
public class QcInspectionItemsServiceImpl implements IQcInspectionItemsService {
private final QcInspectionItemsMapper baseMapper;
/**
*
*
* @param inspectionItemId
* @return
*/
@Override
public QcInspectionItemsVo queryById(String inspectionItemId){
return baseMapper.selectVoById(inspectionItemId);
}
/**
*
*
* @param bo
* @param pageQuery
* @return
*/
@Override
public TableDataInfo<QcInspectionItemsVo> queryPageList(QcInspectionItemsBo bo, PageQuery pageQuery) {
MPJLambdaWrapper<QcInspectionItems> lqw = buildQueryWrapper(bo);
Page<QcInspectionItemsVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
return TableDataInfo.build(result);
}
/**
*
*
* @param bo
* @return
*/
@Override
public List<QcInspectionItemsVo> queryList(QcInspectionItemsBo bo) {
MPJLambdaWrapper<QcInspectionItems> lqw = buildQueryWrapper(bo);
return baseMapper.selectVoList(lqw);
}
private MPJLambdaWrapper<QcInspectionItems> buildQueryWrapper(QcInspectionItemsBo bo) {
Map<String, Object> params = bo.getParams();
MPJLambdaWrapper<QcInspectionItems> lqw = JoinWrappers.lambda(QcInspectionItems.class)
.selectAll(QcInspectionItems.class)
.like(StringUtils.isNotBlank(bo.getItemDesc()), QcInspectionItems::getItemDesc, bo.getItemDesc())
.eq(bo.getPropertyCode() != null, QcInspectionItems::getPropertyCode, bo.getPropertyCode())
.eq(StringUtils.isNotBlank(bo.getInspectionMode()), QcInspectionItems::getInspectionMode, bo.getInspectionMode())
.eq(StringUtils.isNotBlank(bo.getInspectionTool()), QcInspectionItems::getInspectionTool, bo.getInspectionTool())
.eq(bo.getUpperLimit() != null, QcInspectionItems::getUpperLimit, bo.getUpperLimit())
.eq(bo.getLowerLimit() != null, QcInspectionItems::getLowerLimit, bo.getLowerLimit())
.eq(StringUtils.isNotBlank(bo.getStatus()), QcInspectionItems::getStatus, bo.getStatus())
.orderByDesc(QcInspectionItems::getCreateTime);
return lqw;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean insertByBo(QcInspectionItemsBo bo) {
QcInspectionItems add = MapstructUtils.convert(bo, QcInspectionItems.class);
validEntityBeforeSave(add);
boolean flag = baseMapper.insert(add) > 0;
if (flag) {
bo.setInspectionItemId(add.getInspectionItemId());
}
return flag;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean updateByBo(QcInspectionItemsBo bo) {
QcInspectionItems update = MapstructUtils.convert(bo, QcInspectionItems.class);
validEntityBeforeSave(update);
return baseMapper.updateById(update) > 0;
}
/**
*
*/
private void validEntityBeforeSave(QcInspectionItems entity){
//TODO 做一些数据校验,如唯一约束
}
/**
*
*
* @param ids
* @param isValid
* @return
*/
@Override
public Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid) {
if(isValid){
//TODO 做一些业务上的校验,判断是否需要校验
}
return baseMapper.deleteByIds(ids) > 0;
}
}

@ -0,0 +1,135 @@
package org.dromara.qms.service.impl;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.toolkit.JoinWrappers;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.dromara.qms.domain.bo.QcInspectionRulesBo;
import org.dromara.qms.domain.vo.QcInspectionRulesVo;
import org.dromara.qms.domain.QcInspectionRules;
import org.dromara.qms.mapper.QcInspectionRulesMapper;
import org.dromara.qms.service.IQcInspectionRulesService;
import java.util.List;
import java.util.Map;
import java.util.Collection;
/**
* Service
*
* @author WanLi Yang
* @date 2025-02-14
*/
@RequiredArgsConstructor
@Service
public class QcInspectionRulesServiceImpl implements IQcInspectionRulesService {
private final QcInspectionRulesMapper baseMapper;
/**
*
*
* @param ruleId
* @return
*/
@Override
public QcInspectionRulesVo queryById(Long ruleId){
return baseMapper.selectVoById(ruleId);
}
/**
*
*
* @param bo
* @param pageQuery
* @return
*/
@Override
public TableDataInfo<QcInspectionRulesVo> queryPageList(QcInspectionRulesBo bo, PageQuery pageQuery) {
MPJLambdaWrapper<QcInspectionRules> lqw = buildQueryWrapper(bo);
Page<QcInspectionRulesVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
return TableDataInfo.build(result);
}
/**
*
*
* @param bo
* @return
*/
@Override
public List<QcInspectionRulesVo> queryList(QcInspectionRulesBo bo) {
MPJLambdaWrapper<QcInspectionRules> lqw = buildQueryWrapper(bo);
return baseMapper.selectVoList(lqw);
}
private MPJLambdaWrapper<QcInspectionRules> buildQueryWrapper(QcInspectionRulesBo bo) {
Map<String, Object> params = bo.getParams();
MPJLambdaWrapper<QcInspectionRules> lqw = JoinWrappers.lambda(QcInspectionRules.class)
.selectAll(QcInspectionRules.class)
.like(StringUtils.isNotBlank(bo.getRuleName()), QcInspectionRules::getRuleName, bo.getRuleName())
.eq(StringUtils.isNotBlank(bo.getRuleType()), QcInspectionRules::getRuleType, bo.getRuleType())
.eq(StringUtils.isNotBlank(bo.getRuleMode()), QcInspectionRules::getRuleMode, bo.getRuleMode())
.eq(StringUtils.isNotBlank(bo.getStatus()), QcInspectionRules::getStatus, bo.getStatus())
.orderByDesc(QcInspectionRules::getCreateTime);
return lqw;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean insertByBo(QcInspectionRulesBo bo) {
QcInspectionRules add = MapstructUtils.convert(bo, QcInspectionRules.class);
validEntityBeforeSave(add);
boolean flag = baseMapper.insert(add) > 0;
if (flag) {
bo.setRuleId(add.getRuleId());
}
return flag;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean updateByBo(QcInspectionRulesBo bo) {
QcInspectionRules update = MapstructUtils.convert(bo, QcInspectionRules.class);
validEntityBeforeSave(update);
return baseMapper.updateById(update) > 0;
}
/**
*
*/
private void validEntityBeforeSave(QcInspectionRules entity){
//TODO 做一些数据校验,如唯一约束
}
/**
*
*
* @param ids
* @param isValid
* @return
*/
@Override
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
if(isValid){
//TODO 做一些业务上的校验,判断是否需要校验
}
return baseMapper.deleteByIds(ids) > 0;
}
}

@ -0,0 +1,138 @@
package org.dromara.qms.service.impl;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.toolkit.JoinWrappers;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.dromara.qms.domain.bo.QcLevelInfoBo;
import org.dromara.qms.domain.vo.QcLevelInfoVo;
import org.dromara.qms.domain.QcLevelInfo;
import org.dromara.qms.mapper.QcLevelInfoMapper;
import org.dromara.qms.service.IQcLevelInfoService;
import java.util.List;
import java.util.Map;
import java.util.Collection;
/**
* Service
*
* @author WanLi Yang
* @date 2025-02-11
*/
@RequiredArgsConstructor
@Service
public class QcLevelInfoServiceImpl implements IQcLevelInfoService {
private final QcLevelInfoMapper baseMapper;
/**
*
*
* @param levelId
* @return
*/
@Override
public QcLevelInfoVo queryById(Long levelId){
return baseMapper.selectVoById(levelId);
}
/**
*
*
* @param bo
* @param pageQuery
* @return
*/
@Override
public TableDataInfo<QcLevelInfoVo> queryPageList(QcLevelInfoBo bo, PageQuery pageQuery) {
MPJLambdaWrapper<QcLevelInfo> lqw = buildQueryWrapper(bo);
Page<QcLevelInfoVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
return TableDataInfo.build(result);
}
/**
*
*
* @param bo
* @return
*/
@Override
public List<QcLevelInfoVo> queryList(QcLevelInfoBo bo) {
MPJLambdaWrapper<QcLevelInfo> lqw = buildQueryWrapper(bo);
return baseMapper.selectVoList(lqw);
}
private MPJLambdaWrapper<QcLevelInfo> buildQueryWrapper(QcLevelInfoBo bo) {
Map<String, Object> params = bo.getParams();
MPJLambdaWrapper<QcLevelInfo> lqw = JoinWrappers.lambda(QcLevelInfo.class)
.selectAll(QcLevelInfo.class)
.eq(bo.getLevelId() != null, QcLevelInfo::getLevelId, bo.getLevelId())
.eq(StringUtils.isNotBlank(bo.getLevelCode()), QcLevelInfo::getLevelCode, bo.getLevelCode())
.like(StringUtils.isNotBlank(bo.getLevelName()), QcLevelInfo::getLevelName, bo.getLevelName())
.eq(StringUtils.isNotBlank(bo.getOperationCode()), QcLevelInfo::getOperationCode, bo.getOperationCode())
.like(StringUtils.isNotBlank(bo.getOperationName()), QcLevelInfo::getOperationName, bo.getOperationName())
.eq(StringUtils.isNotBlank(bo.getWorkshop()), QcLevelInfo::getWorkshop, bo.getWorkshop())
.eq(StringUtils.isNotBlank(bo.getStatus()), QcLevelInfo::getStatus, bo.getStatus())
.orderByDesc(QcLevelInfo::getCreateTime);
return lqw;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean insertByBo(QcLevelInfoBo bo) {
QcLevelInfo add = MapstructUtils.convert(bo, QcLevelInfo.class);
validEntityBeforeSave(add);
boolean flag = baseMapper.insert(add) > 0;
if (flag) {
bo.setLevelId(add.getLevelId());
}
return flag;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean updateByBo(QcLevelInfoBo bo) {
QcLevelInfo update = MapstructUtils.convert(bo, QcLevelInfo.class);
validEntityBeforeSave(update);
return baseMapper.updateById(update) > 0;
}
/**
*
*/
private void validEntityBeforeSave(QcLevelInfo entity){
//TODO 做一些数据校验,如唯一约束
}
/**
*
*
* @param ids
* @param isValid
* @return
*/
@Override
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
if(isValid){
//TODO 做一些业务上的校验,判断是否需要校验
}
return baseMapper.deleteByIds(ids) > 0;
}
}

@ -0,0 +1,133 @@
package org.dromara.qms.service.impl;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.toolkit.JoinWrappers;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.dromara.qms.domain.bo.QcRevisionInfoBo;
import org.dromara.qms.domain.vo.QcRevisionInfoVo;
import org.dromara.qms.domain.QcRevisionInfo;
import org.dromara.qms.mapper.QcRevisionInfoMapper;
import org.dromara.qms.service.IQcRevisionInfoService;
import java.util.List;
import java.util.Map;
import java.util.Collection;
/**
* Service
*
* @author WanLi Yang
* @date 2025-02-05
*/
@RequiredArgsConstructor
@Service
public class QcRevisionInfoServiceImpl implements IQcRevisionInfoService {
private final QcRevisionInfoMapper baseMapper;
/**
*
*
* @param revisionId
* @return
*/
@Override
public QcRevisionInfoVo queryById(Long revisionId){
return baseMapper.selectVoById(revisionId);
}
/**
*
*
* @param bo
* @param pageQuery
* @return
*/
@Override
public TableDataInfo<QcRevisionInfoVo> queryPageList(QcRevisionInfoBo bo, PageQuery pageQuery) {
MPJLambdaWrapper<QcRevisionInfo> lqw = buildQueryWrapper(bo);
Page<QcRevisionInfoVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
return TableDataInfo.build(result);
}
/**
*
*
* @param bo
* @return
*/
@Override
public List<QcRevisionInfoVo> queryList(QcRevisionInfoBo bo) {
MPJLambdaWrapper<QcRevisionInfo> lqw = buildQueryWrapper(bo);
return baseMapper.selectVoList(lqw);
}
private MPJLambdaWrapper<QcRevisionInfo> buildQueryWrapper(QcRevisionInfoBo bo) {
Map<String, Object> params = bo.getParams();
MPJLambdaWrapper<QcRevisionInfo> lqw = JoinWrappers.lambda(QcRevisionInfo.class)
.selectAll(QcRevisionInfo.class)
.eq(StringUtils.isNotBlank(bo.getRevisionCode()), QcRevisionInfo::getRevisionCode, bo.getRevisionCode())
.like(StringUtils.isNotBlank(bo.getRevisionDesc()), QcRevisionInfo::getRevisionDesc, bo.getRevisionDesc())
.orderByDesc(QcRevisionInfo::getCreateTime);
return lqw;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean insertByBo(QcRevisionInfoBo bo) {
QcRevisionInfo add = MapstructUtils.convert(bo, QcRevisionInfo.class);
validEntityBeforeSave(add);
boolean flag = baseMapper.insert(add) > 0;
if (flag) {
bo.setRevisionId(add.getRevisionId());
}
return flag;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean updateByBo(QcRevisionInfoBo bo) {
QcRevisionInfo update = MapstructUtils.convert(bo, QcRevisionInfo.class);
validEntityBeforeSave(update);
return baseMapper.updateById(update) > 0;
}
/**
*
*/
private void validEntityBeforeSave(QcRevisionInfo entity){
//TODO 做一些数据校验,如唯一约束
}
/**
*
*
* @param ids
* @param isValid
* @return
*/
@Override
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
if(isValid){
//TODO 做一些业务上的校验,判断是否需要校验
}
return baseMapper.deleteByIds(ids) > 0;
}
}

@ -0,0 +1,134 @@
package org.dromara.qms.service.impl;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.toolkit.JoinWrappers;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.dromara.qms.domain.bo.QcRimInfoBo;
import org.dromara.qms.domain.vo.QcRimInfoVo;
import org.dromara.qms.domain.QcRimInfo;
import org.dromara.qms.mapper.QcRimInfoMapper;
import org.dromara.qms.service.IQcRimInfoService;
import java.util.List;
import java.util.Map;
import java.util.Collection;
/**
* Service
*
* @author WanLi Yang
* @date 2025-02-11
*/
@RequiredArgsConstructor
@Service
public class QcRimInfoServiceImpl implements IQcRimInfoService {
private final QcRimInfoMapper baseMapper;
/**
*
*
* @param rimId
* @return
*/
@Override
public QcRimInfoVo queryById(Long rimId){
return baseMapper.selectVoById(rimId);
}
/**
*
*
* @param bo
* @param pageQuery
* @return
*/
@Override
public TableDataInfo<QcRimInfoVo> queryPageList(QcRimInfoBo bo, PageQuery pageQuery) {
MPJLambdaWrapper<QcRimInfo> lqw = buildQueryWrapper(bo);
Page<QcRimInfoVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
return TableDataInfo.build(result);
}
/**
*
*
* @param bo
* @return
*/
@Override
public List<QcRimInfoVo> queryList(QcRimInfoBo bo) {
MPJLambdaWrapper<QcRimInfo> lqw = buildQueryWrapper(bo);
return baseMapper.selectVoList(lqw);
}
private MPJLambdaWrapper<QcRimInfo> buildQueryWrapper(QcRimInfoBo bo) {
Map<String, Object> params = bo.getParams();
MPJLambdaWrapper<QcRimInfo> lqw = JoinWrappers.lambda(QcRimInfo.class)
.selectAll(QcRimInfo.class)
.eq(StringUtils.isNotBlank(bo.getRimCode()), QcRimInfo::getRimCode, bo.getRimCode())
.like(StringUtils.isNotBlank(bo.getRimName()), QcRimInfo::getRimName, bo.getRimName())
.eq(bo.getRimDiameter() != null, QcRimInfo::getRimDiameter, bo.getRimDiameter())
.orderByDesc(QcRimInfo::getCreateTime);
return lqw;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean insertByBo(QcRimInfoBo bo) {
QcRimInfo add = MapstructUtils.convert(bo, QcRimInfo.class);
validEntityBeforeSave(add);
boolean flag = baseMapper.insert(add) > 0;
if (flag) {
bo.setRimId(add.getRimId());
}
return flag;
}
/**
*
*
* @param bo
* @return
*/
@Override
public Boolean updateByBo(QcRimInfoBo bo) {
QcRimInfo update = MapstructUtils.convert(bo, QcRimInfo.class);
validEntityBeforeSave(update);
return baseMapper.updateById(update) > 0;
}
/**
*
*/
private void validEntityBeforeSave(QcRimInfo entity){
//TODO 做一些数据校验,如唯一约束
}
/**
*
*
* @param ids
* @param isValid
* @return
*/
@Override
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
if(isValid){
//TODO 做一些业务上的校验,判断是否需要校验
}
return baseMapper.deleteByIds(ids) > 0;
}
}

@ -0,0 +1,34 @@
# Tomcat
server:
port: 6014
# Spring
spring:
application:
# 应用名称
name: hwmom-qms
profiles:
# 环境配置
active: @profiles.active@
--- # nacos 配置
spring:
cloud:
nacos:
# nacos 服务地址
server-addr: @nacos.server@
username: @nacos.username@
password: @nacos.password@
discovery:
# 注册组
group: @nacos.discovery.group@
namespace: ${spring.profiles.active}
config:
# 配置组
group: @nacos.config.group@
namespace: ${spring.profiles.active}
config:
import:
- optional:nacos:application-common.yml
- optional:nacos:datasource.yml
- optional:nacos:${spring.application.name}.yml

@ -0,0 +1,8 @@
Spring Boot Version: ${spring-boot.version}
Spring Application Name: ${spring.application.name}
_
_______ ______ __ __(_) ____ _____ ___ _____
/ ___/ / / / __ \/ / / / /_____/ __ `/ __ `__ \/ ___/
/ / / /_/ / /_/ / /_/ / /_____/ /_/ / / / / / (__ )
/_/ \__,_/\____/\__, /_/ \__, /_/ /_/ /_/____/
/____/ /_/

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="60 seconds" debug="false">
<!-- 日志存放路径 -->
<property name="log.path" value="logs/${project.artifactId}" />
<!-- 日志输出格式 -->
<property name="console.log.pattern"
value="%red(%d{yyyy-MM-dd HH:mm:ss}) %green([%thread]) %highlight(%-5level) %boldMagenta(%logger{36}%n) - %msg%n"/>
<!-- 控制台输出 -->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${console.log.pattern}</pattern>
<charset>utf-8</charset>
</encoder>
</appender>
<include resource="logback-common.xml" />
<include resource="logback-logstash.xml" />
<!-- 开启 skywalking 日志收集 -->
<include resource="logback-skylog.xml" />
<!--系统操作日志-->
<root level="info">
<appender-ref ref="console" />
</root>
</configuration>

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.dromara.qms.mapper.QcDefectDetailMapper">
</mapper>

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.dromara.qms.mapper.QcDefectInfoMapper">
</mapper>

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.dromara.qms.mapper.QcDynamicStandardMapper">
</mapper>

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.dromara.qms.mapper.QcGradeInfoMapper">
</mapper>

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.dromara.qms.mapper.QcInspectionItemsMapper">
</mapper>

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.dromara.qms.mapper.QcInspectionRulesMapper">
</mapper>

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.dromara.qms.mapper.QcLevelInfoMapper">
</mapper>

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.dromara.qms.mapper.QcRevisionInfoMapper">
</mapper>

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.dromara.qms.mapper.QcRimInfoMapper">
</mapper>

@ -16,6 +16,7 @@
<module>ruoyi-workflow</module>
<module>hwmom-mes</module>
<module>hwmom-wms</module>
<module>hwmom-qms</module>
</modules>
<artifactId>ruoyi-modules</artifactId>

Loading…
Cancel
Save