质量管理模块代码提交
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,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,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,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,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,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,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>
|
Loading…
Reference in New Issue