first commit

This commit is contained in:
caozhaoxin 2021-05-12 09:08:10 +08:00
commit 468a1406df
159 changed files with 20538 additions and 0 deletions

33
.classpath Normal file
View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="test" value="true"/>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target/

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="masterDetails">
<states>
<state key="ProjectJDKs.UI">
<settings>
<last-edited>1.8</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
</states>
</component>
</project>

13
.idea/compiler.xml Normal file
View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<annotationProcessing>
<profile name="Maven default annotation processors profile" enabled="true">
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="ssm74edv" />
</profile>
</annotationProcessing>
</component>
</project>

8
.idea/encodings.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
</component>
</project>

View File

@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
</profile>
</component>

20
.idea/misc.xml Normal file
View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="FrameworkDetectionExcludesConfiguration">
<file type="web" url="file://$PROJECT_DIR$" />
</component>
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
<component name="MavenProjectsManager">
<option name="originalFiles">
<list>
<option value="$PROJECT_DIR$/pom.xml" />
</list>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

2
.idea/ssm74edv.iml Normal file
View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4" />

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/src/main/webapp/admin" vcs="Git" />
</component>
</project>

282
.idea/workspace.xml Normal file
View File

@ -0,0 +1,282 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ArtifactsWorkspaceSettings">
<artifacts-to-build>
<artifact name="ssm74edv:war" />
</artifacts-to-build>
</component>
<component name="ChangeListManager">
<list default="true" id="5569cbab-590b-43f2-bb8b-aca40cd09778" name="Default Changelist" comment="" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/src/main/webapp/admin" />
</component>
<component name="LogFilters">
<option name="FILTER_ERRORS" value="false" />
<option name="FILTER_WARNINGS" value="false" />
<option name="FILTER_INFO" value="true" />
<option name="FILTER_DEBUG" value="true" />
<option name="CUSTOM_FILTER" />
</component>
<component name="MavenImportPreferences">
<option name="generalSettings">
<MavenGeneralSettings>
<option name="localRepository" value="D:\JAVA文件\管理系统\abo\repository" />
<option name="mavenHome" value="$PROJECT_DIR$/../abo/apache-maven-3.3.9" />
<option name="userSettingsFile" value="D:\JAVA文件\管理系统\abo\apache-maven-3.3.9\conf\settings.xml" />
</MavenGeneralSettings>
</option>
<option name="importingSettings">
<MavenImportingSettings>
<option name="importAutomatically" value="true" />
</MavenImportingSettings>
</option>
</component>
<component name="ProjectId" id="1s9XmIJxX1dnxeZuXpy0ZGExGk9" />
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectViewState">
<option name="showExcludedFiles" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="node.js.detected.package.eslint" value="true" />
<property name="node.js.detected.package.tslint" value="true" />
<property name="node.js.path.for.package.eslint" value="project" />
<property name="node.js.path.for.package.tslint" value="project" />
<property name="node.js.selected.package.eslint" value="(autodetect)" />
<property name="node.js.selected.package.tslint" value="(autodetect)" />
<property name="nodejs_package_manager_path" value="npm" />
<property name="project.structure.last.edited" value="Modules" />
<property name="project.structure.proportion" value="0.0" />
<property name="project.structure.side.proportion" value="0.0" />
<property name="settings.editor.selected.configurable" value="MavenSettings" />
</component>
<component name="RunManager" selected="Tomcat Server.Tomcat 7.0.941">
<configuration name="Tomcat 7.0.941" type="#com.intellij.j2ee.web.tomcat.TomcatRunConfigurationFactory" factoryName="Local" APPLICATION_SERVER_NAME="Tomcat 7.0.941" ALTERNATIVE_JRE_ENABLED="false" nameIsGenerated="true">
<option name="OPEN_IN_BROWSER_URL" value="http://localhost:8080/ssm74edv/admin/dist/index.html" />
<option name="UPDATE_ON_FRAME_DEACTIVATION" value="true" />
<option name="HOT_SWAP_CLASSES_ON_FRAME_DEACTIVATION" value="true" />
<option name="UPDATING_POLICY" value="hot-swap-classes" />
<deployment>
<artifact name="ssm74edv:war">
<settings>
<option name="CONTEXT_PATH" value="/ssm74edv" />
</settings>
</artifact>
</deployment>
<server-settings>
<option name="BASE_DIRECTORY_NAME" value="Unnamed_ssm74edv_5" />
</server-settings>
<predefined_log_file enabled="true" id="Tomcat" />
<predefined_log_file enabled="true" id="Tomcat Catalina" />
<predefined_log_file id="Tomcat Manager" />
<predefined_log_file id="Tomcat Host Manager" />
<predefined_log_file id="Tomcat Localhost Access" />
<RunnerSettings RunnerId="Debug">
<option name="DEBUG_PORT" value="49465" />
</RunnerSettings>
<ConfigurationWrapper VM_VAR="JAVA_OPTS" RunnerId="Cover">
<option name="USE_ENV_VARIABLES" value="true" />
<STARTUP>
<option name="USE_DEFAULT" value="true" />
<option name="SCRIPT" value="" />
<option name="VM_PARAMETERS" value="" />
<option name="PROGRAM_PARAMETERS" value="" />
</STARTUP>
<SHUTDOWN>
<option name="USE_DEFAULT" value="true" />
<option name="SCRIPT" value="" />
<option name="VM_PARAMETERS" value="" />
<option name="PROGRAM_PARAMETERS" value="" />
</SHUTDOWN>
</ConfigurationWrapper>
<ConfigurationWrapper VM_VAR="JAVA_OPTS" RunnerId="Debug">
<option name="USE_ENV_VARIABLES" value="true" />
<STARTUP>
<option name="USE_DEFAULT" value="true" />
<option name="SCRIPT" value="" />
<option name="VM_PARAMETERS" value="" />
<option name="PROGRAM_PARAMETERS" value="" />
</STARTUP>
<SHUTDOWN>
<option name="USE_DEFAULT" value="true" />
<option name="SCRIPT" value="" />
<option name="VM_PARAMETERS" value="" />
<option name="PROGRAM_PARAMETERS" value="" />
</SHUTDOWN>
</ConfigurationWrapper>
<ConfigurationWrapper VM_VAR="JAVA_OPTS" RunnerId="Run">
<option name="USE_ENV_VARIABLES" value="true" />
<STARTUP>
<option name="USE_DEFAULT" value="true" />
<option name="SCRIPT" value="" />
<option name="VM_PARAMETERS" value="" />
<option name="PROGRAM_PARAMETERS" value="" />
</STARTUP>
<SHUTDOWN>
<option name="USE_DEFAULT" value="true" />
<option name="SCRIPT" value="" />
<option name="VM_PARAMETERS" value="" />
<option name="PROGRAM_PARAMETERS" value="" />
</SHUTDOWN>
</ConfigurationWrapper>
<method v="2">
<option name="Make" enabled="true" />
<option name="BuildArtifacts" enabled="true">
<artifact name="ssm74edv:war" />
</option>
</method>
</configuration>
<configuration name="build" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/src/main/webapp/admin/package.json" />
<command value="run" />
<scripts>
<script value="build" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
<list>
<item itemvalue="npm.build" />
<item itemvalue="Tomcat Server.Tomcat 7.0.941" />
</list>
<recent_temporary>
<list>
<item itemvalue="npm.build" />
</list>
</recent_temporary>
</component>
<component name="ServiceViewManager">
<option name="viewStates">
<list>
<serviceView>
<option name="contentProportion" value="0.14139344" />
<treeState>
<expand>
<path>
<item name="services root" type="e789fda9:ObjectUtils$Sentinel" />
<item name="Tomcat Server" type="7427dc5b:ServiceModel$ServiceGroupNode" />
</path>
<path>
<item name="services root" type="e789fda9:ObjectUtils$Sentinel" />
<item name="Tomcat Server" type="7427dc5b:ServiceModel$ServiceGroupNode" />
<item name="Finished" type="7427dc5b:ServiceModel$ServiceGroupNode" />
</path>
</expand>
<select />
</treeState>
</serviceView>
</list>
</option>
</component>
<component name="SvnConfiguration">
<configuration />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="5569cbab-590b-43f2-bb8b-aca40cd09778" name="Default Changelist" comment="" />
<created>1620285936228</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1620285936228</updated>
<workItem from="1620285937708" duration="11003000" />
<workItem from="1620617747612" duration="1302000" />
<workItem from="1620701917366" duration="10551000" />
</task>
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
</component>
<component name="WindowStateProjectService">
<state x="360" y="70" key="#Tomcat_Server" timestamp="1620702765991">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state x="360" y="70" key="#Tomcat_Server/0.0.1536.824@0.0.1536.824" timestamp="1620702765991" />
<state x="223" y="67" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1620713073356">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state x="223" y="67" key="#com.intellij.execution.impl.EditConfigurationsDialog/0.0.1536.824@0.0.1536.824" timestamp="1620713073356" />
<state x="210" y="109" key="FileChooserDialogImpl" timestamp="1620705998189">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state x="210" y="109" key="FileChooserDialogImpl/0.0.1536.824@0.0.1536.824" timestamp="1620705998189" />
<state width="1256" height="136" key="GridCell.Tab.0.bottom" timestamp="1620725031966">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="1256" height="136" key="GridCell.Tab.0.bottom/0.0.1536.824@0.0.1536.824" timestamp="1620725031966" />
<state width="1256" height="136" key="GridCell.Tab.0.center" timestamp="1620725031966">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="1256" height="136" key="GridCell.Tab.0.center/0.0.1536.824@0.0.1536.824" timestamp="1620725031966" />
<state width="1256" height="136" key="GridCell.Tab.0.left" timestamp="1620725031965">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="1256" height="136" key="GridCell.Tab.0.left/0.0.1536.824@0.0.1536.824" timestamp="1620725031965" />
<state width="1256" height="136" key="GridCell.Tab.0.right" timestamp="1620725031966">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="1256" height="136" key="GridCell.Tab.0.right/0.0.1536.824@0.0.1536.824" timestamp="1620725031966" />
<state width="1256" height="136" key="GridCell.Tab.1.bottom" timestamp="1620725031966">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="1256" height="136" key="GridCell.Tab.1.bottom/0.0.1536.824@0.0.1536.824" timestamp="1620725031966" />
<state width="1256" height="136" key="GridCell.Tab.1.center" timestamp="1620725031966">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="1256" height="136" key="GridCell.Tab.1.center/0.0.1536.824@0.0.1536.824" timestamp="1620725031966" />
<state width="1256" height="136" key="GridCell.Tab.1.left" timestamp="1620725031966">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="1256" height="136" key="GridCell.Tab.1.left/0.0.1536.824@0.0.1536.824" timestamp="1620725031966" />
<state width="1256" height="136" key="GridCell.Tab.1.right" timestamp="1620725031966">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="1256" height="136" key="GridCell.Tab.1.right/0.0.1536.824@0.0.1536.824" timestamp="1620725031966" />
<state width="1256" height="136" key="GridCell.Tab.2.bottom" timestamp="1620725031966">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="1256" height="136" key="GridCell.Tab.2.bottom/0.0.1536.824@0.0.1536.824" timestamp="1620725031966" />
<state width="1256" height="136" key="GridCell.Tab.2.center" timestamp="1620725031966">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="1256" height="136" key="GridCell.Tab.2.center/0.0.1536.824@0.0.1536.824" timestamp="1620725031966" />
<state width="1256" height="136" key="GridCell.Tab.2.left" timestamp="1620725031966">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="1256" height="136" key="GridCell.Tab.2.left/0.0.1536.824@0.0.1536.824" timestamp="1620725031966" />
<state width="1256" height="136" key="GridCell.Tab.2.right" timestamp="1620725031966">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="1256" height="136" key="GridCell.Tab.2.right/0.0.1536.824@0.0.1536.824" timestamp="1620725031966" />
<state width="1256" height="136" key="GridCell.Tab.3.bottom" timestamp="1620725031966">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="1256" height="136" key="GridCell.Tab.3.bottom/0.0.1536.824@0.0.1536.824" timestamp="1620725031966" />
<state width="1256" height="136" key="GridCell.Tab.3.center" timestamp="1620725031966">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="1256" height="136" key="GridCell.Tab.3.center/0.0.1536.824@0.0.1536.824" timestamp="1620725031966" />
<state width="1256" height="136" key="GridCell.Tab.3.left" timestamp="1620725031966">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="1256" height="136" key="GridCell.Tab.3.left/0.0.1536.824@0.0.1536.824" timestamp="1620725031966" />
<state width="1256" height="136" key="GridCell.Tab.3.right" timestamp="1620725031966">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="1256" height="136" key="GridCell.Tab.3.right/0.0.1536.824@0.0.1536.824" timestamp="1620725031966" />
<state x="249" y="0" key="SettingsEditor" timestamp="1620706000824">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state x="249" y="0" key="SettingsEditor/0.0.1536.824@0.0.1536.824" timestamp="1620706000824" />
</component>
</project>

46
.project Normal file
View File

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>spring</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.springframework.ide.eclipse.boot.validation.springbootbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.springframework.ide.eclipse.core.springnature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
</natures>
</projectDescription>

13
.settings/.jsdtscope Normal file
View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/webapp"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="target/m2e-wtp/web-resources"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="output" path=""/>
</classpath>

View File

@ -0,0 +1,5 @@
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/main/resources=UTF-8
encoding//src/test/java=UTF-8
encoding/<project>=UTF-8

View File

@ -0,0 +1,9 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.7

View File

@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="spring-schema">
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<property name="java-output-path" value="/mybatisplus-spring-mvc/target/classes"/>
<property name="context-root" value="spring-schema"/>
</wb-module>
</project-modules>

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="wst.jsdt.web"/>
<installed facet="java" version="1.7"/>
<installed facet="jst.web" version="3.0"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>

View File

@ -0,0 +1 @@
org.eclipse.wst.jsdt.launching.baseBrowserLibrary

View File

@ -0,0 +1 @@
Window

View File

@ -0,0 +1,2 @@
disabled=06target
eclipse.preferences.version=1

352
db/ssm74edv.sql Normal file
View File

@ -0,0 +1,352 @@
-- MySQL dump 10.13 Distrib 5.7.31, for Linux (x86_64)
--
-- Host: localhost Database: ssm74edv
-- ------------------------------------------------------
-- Server version 5.7.31
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `cangkuxinxi`
--
DROP TABLE IF EXISTS `cangkuxinxi`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cangkuxinxi` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`cangkubianhao` varchar(200) DEFAULT NULL COMMENT '仓库编号',
`cangkumingcheng` varchar(200) DEFAULT NULL COMMENT '仓库名称',
`cangkuweizhi` varchar(200) DEFAULT NULL COMMENT '仓库位置',
`fuzeren` varchar(200) DEFAULT NULL COMMENT '负责人',
`weizhi` varchar(200) DEFAULT NULL COMMENT '位置',
`beizhu` longtext COMMENT '备注',
`cangkuzhaopian` varchar(200) DEFAULT NULL COMMENT '仓库照片',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=67 DEFAULT CHARSET=utf8 COMMENT='仓库信息';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cangkuxinxi`
--
LOCK TABLES `cangkuxinxi` WRITE;
/*!40000 ALTER TABLE `cangkuxinxi` DISABLE KEYS */;
INSERT INTO `cangkuxinxi` VALUES (61,'2021-05-04 09:08:49','仓库编号1','仓库名称1','仓库位置1','负责人1','位置1','备注1','http://localhost:8080/ssm74edv/upload/cangkuxinxi_cangkuzhaopian1.jpg'),(62,'2021-05-04 09:08:49','仓库编号2','仓库名称2','仓库位置2','负责人2','位置2','备注2','http://localhost:8080/ssm74edv/upload/cangkuxinxi_cangkuzhaopian2.jpg'),(63,'2021-05-04 09:08:49','仓库编号3','仓库名称3','仓库位置3','负责人3','位置3','备注3','http://localhost:8080/ssm74edv/upload/cangkuxinxi_cangkuzhaopian3.jpg'),(64,'2021-05-04 09:08:49','仓库编号4','仓库名称4','仓库位置4','负责人4','位置4','备注4','http://localhost:8080/ssm74edv/upload/cangkuxinxi_cangkuzhaopian4.jpg'),(65,'2021-05-04 09:08:49','仓库编号5','仓库名称5','仓库位置5','负责人5','位置5','备注5','http://localhost:8080/ssm74edv/upload/cangkuxinxi_cangkuzhaopian5.jpg'),(66,'2021-05-04 09:08:49','仓库编号6','仓库名称6','仓库位置6','负责人6','位置6','备注6','http://localhost:8080/ssm74edv/upload/cangkuxinxi_cangkuzhaopian6.jpg');
/*!40000 ALTER TABLE `cangkuxinxi` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `chanpinchuku`
--
DROP TABLE IF EXISTS `chanpinchuku`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `chanpinchuku` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`chanpinchukubianhao` varchar(200) DEFAULT NULL COMMENT '产品出库编号',
`chanpinmingcheng` varchar(200) DEFAULT NULL COMMENT '产品名称',
`chanpinpinpai` varchar(200) DEFAULT NULL COMMENT '产品品牌',
`chanpinchukujiage` varchar(200) DEFAULT NULL COMMENT '产品出库价格',
`kucunshu` int(11) DEFAULT NULL COMMENT '库存数',
`chanpinchukushijian` datetime DEFAULT NULL COMMENT '产品出库时间',
`beizhu` longtext COMMENT '备注',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=57 DEFAULT CHARSET=utf8 COMMENT='产品出库';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `chanpinchuku`
--
LOCK TABLES `chanpinchuku` WRITE;
/*!40000 ALTER TABLE `chanpinchuku` DISABLE KEYS */;
INSERT INTO `chanpinchuku` VALUES (51,'2021-05-04 09:08:49','产品出库编号1','产品名称1','产品品牌1','产品出库价格1',1,'2021-05-04 17:08:49','备注1'),(52,'2021-05-04 09:08:49','产品出库编号2','产品名称2','产品品牌2','产品出库价格2',2,'2021-05-04 17:08:49','备注2'),(53,'2021-05-04 09:08:49','产品出库编号3','产品名称3','产品品牌3','产品出库价格3',3,'2021-05-04 17:08:49','备注3'),(54,'2021-05-04 09:08:49','产品出库编号4','产品名称4','产品品牌4','产品出库价格4',4,'2021-05-04 17:08:49','备注4'),(55,'2021-05-04 09:08:49','产品出库编号5','产品名称5','产品品牌5','产品出库价格5',5,'2021-05-04 17:08:49','备注5'),(56,'2021-05-04 09:08:49','产品出库编号6','产品名称6','产品品牌6','产品出库价格6',6,'2021-05-04 17:08:49','备注6');
/*!40000 ALTER TABLE `chanpinchuku` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `chanpinkucunguanli`
--
DROP TABLE IF EXISTS `chanpinkucunguanli`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `chanpinkucunguanli` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`chanpinbianhao` varchar(200) DEFAULT NULL COMMENT '产品编号',
`pinpai` varchar(200) DEFAULT NULL COMMENT '品牌',
`kucunshu` int(11) DEFAULT NULL COMMENT '库存数',
`beizhu` longtext COMMENT '备注',
`gengxinshijian` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=87 DEFAULT CHARSET=utf8 COMMENT='产品库存管理';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `chanpinkucunguanli`
--
LOCK TABLES `chanpinkucunguanli` WRITE;
/*!40000 ALTER TABLE `chanpinkucunguanli` DISABLE KEYS */;
INSERT INTO `chanpinkucunguanli` VALUES (81,'2021-05-04 09:08:49','产品编号1','品牌1',11,'备注1','2021-05-04 17:08:49'),(82,'2021-05-04 09:08:49','产品编号2','品牌2',2,'备注2','2021-05-04 17:08:49'),(83,'2021-05-04 09:08:49','产品编号3','品牌3',3,'备注3','2021-05-04 17:08:49'),(84,'2021-05-04 09:08:49','产品编号4','品牌4',4,'备注4','2021-05-04 17:08:49'),(85,'2021-05-04 09:08:49','产品编号5','品牌5',5,'备注5','2021-05-04 17:08:49'),(86,'2021-05-04 09:08:49','产品编号6','品牌6',6,'备注6','2021-05-04 17:08:49');
/*!40000 ALTER TABLE `chanpinkucunguanli` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `chanpinruku`
--
DROP TABLE IF EXISTS `chanpinruku`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `chanpinruku` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`chanpinrukubianhao` varchar(200) DEFAULT NULL COMMENT '产品入库编号',
`chanpinmingcheng` varchar(200) DEFAULT NULL COMMENT '产品名称',
`chanpinpinpai` varchar(200) DEFAULT NULL COMMENT '产品品牌',
`chanpinrukujiage` varchar(200) DEFAULT NULL COMMENT '产品入库价格',
`chanpinrukushijian` datetime DEFAULT NULL COMMENT '产品入库时间',
`kucunshu` int(11) DEFAULT NULL COMMENT '库存数',
`beizhu` varchar(200) DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1620119596733 DEFAULT CHARSET=utf8 COMMENT='产品入库';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `chanpinruku`
--
LOCK TABLES `chanpinruku` WRITE;
/*!40000 ALTER TABLE `chanpinruku` DISABLE KEYS */;
INSERT INTO `chanpinruku` VALUES (41,'2021-05-04 09:08:49','产品入库编号1','产品名称1','产品品牌1','产品入库价格1','2021-05-04 17:08:49',1,'备注1'),(42,'2021-05-04 09:08:49','产品入库编号2','产品名称2','产品品牌2','产品入库价格2','2021-05-04 17:08:49',2,'备注2'),(43,'2021-05-04 09:08:49','产品入库编号3','产品名称3','产品品牌3','产品入库价格3','2021-05-04 17:08:49',3,'备注3'),(44,'2021-05-04 09:08:49','产品入库编号4','产品名称4','产品品牌4','产品入库价格4','2021-05-04 17:08:49',4,'备注4'),(45,'2021-05-04 09:08:49','产品入库编号5','产品名称5','产品品牌5','产品入库价格5','2021-05-04 17:08:49',5,'备注5'),(46,'2021-05-04 09:08:49','产品入库编号6','产品名称6','产品品牌6','产品入库价格6','2021-05-04 17:08:49',6,'备注6'),(1620119596732,'2021-05-04 09:13:15','1','1','1','1','2021-05-04 17:13:10',10,'备注1');
/*!40000 ALTER TABLE `chanpinruku` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `config`
--
DROP TABLE IF EXISTS `config`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `config` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`name` varchar(100) NOT NULL COMMENT '配置参数名称',
`value` varchar(100) DEFAULT NULL COMMENT '配置参数值',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='配置文件';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `config`
--
LOCK TABLES `config` WRITE;
/*!40000 ALTER TABLE `config` DISABLE KEYS */;
INSERT INTO `config` VALUES (1,'picture1','http://localhost:8080/ssm74edv/upload/picture1.jpg'),(2,'picture2','http://localhost:8080/ssm74edv/upload/picture2.jpg'),(3,'picture3','http://localhost:8080/ssm74edv/upload/picture3.jpg'),(6,'homepage',NULL);
/*!40000 ALTER TABLE `config` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `token`
--
DROP TABLE IF EXISTS `token`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `token` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`userid` bigint(20) NOT NULL COMMENT '用户id',
`username` varchar(100) NOT NULL COMMENT '用户名',
`tablename` varchar(100) DEFAULT NULL COMMENT '表名',
`role` varchar(100) DEFAULT NULL COMMENT '角色',
`token` varchar(200) NOT NULL COMMENT '密码',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
`expiratedtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '过期时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='token表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `token`
--
LOCK TABLES `token` WRITE;
/*!40000 ALTER TABLE `token` DISABLE KEYS */;
INSERT INTO `token` VALUES (1,1,'abo','users','管理员','z3cv0ow6nuu4xl1k2ff7niqxkjmsr6oc','2021-05-04 09:11:21','2021-05-04 10:12:33');
/*!40000 ALTER TABLE `token` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`username` varchar(100) NOT NULL COMMENT '用户名',
`password` varchar(100) NOT NULL COMMENT '密码',
`role` varchar(100) DEFAULT '管理员' COMMENT '角色',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='用户表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `users`
--
LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES (1,'abo','abo','管理员','2021-05-04 09:08:49');
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `yonghu`
--
DROP TABLE IF EXISTS `yonghu`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `yonghu` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`zhanghao` varchar(200) NOT NULL COMMENT '账号',
`mima` varchar(200) NOT NULL COMMENT '密码',
`xingming` varchar(200) NOT NULL COMMENT '姓名',
`xingbie` varchar(200) DEFAULT NULL COMMENT '性别',
`shouji` varchar(200) DEFAULT NULL COMMENT '手机',
`youxiang` varchar(200) DEFAULT NULL COMMENT '邮箱',
`zhaopian` varchar(200) DEFAULT NULL COMMENT '照片',
PRIMARY KEY (`id`),
UNIQUE KEY `zhanghao` (`zhanghao`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COMMENT='用户';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `yonghu`
--
LOCK TABLES `yonghu` WRITE;
/*!40000 ALTER TABLE `yonghu` DISABLE KEYS */;
INSERT INTO `yonghu` VALUES (11,'2021-05-04 09:08:49','用户1','123456','姓名1','','13823888881','773890001@qq.com','http://localhost:8080/ssm74edv/upload/yonghu_zhaopian1.jpg'),(12,'2021-05-04 09:08:49','用户2','123456','姓名2','','13823888882','773890002@qq.com','http://localhost:8080/ssm74edv/upload/yonghu_zhaopian2.jpg'),(13,'2021-05-04 09:08:49','用户3','123456','姓名3','','13823888883','773890003@qq.com','http://localhost:8080/ssm74edv/upload/yonghu_zhaopian3.jpg'),(14,'2021-05-04 09:08:49','用户4','123456','姓名4','','13823888884','773890004@qq.com','http://localhost:8080/ssm74edv/upload/yonghu_zhaopian4.jpg'),(15,'2021-05-04 09:08:49','用户5','123456','姓名5','','13823888885','773890005@qq.com','http://localhost:8080/ssm74edv/upload/yonghu_zhaopian5.jpg'),(16,'2021-05-04 09:08:49','用户6','123456','姓名6','','13823888886','773890006@qq.com','http://localhost:8080/ssm74edv/upload/yonghu_zhaopian6.jpg');
/*!40000 ALTER TABLE `yonghu` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `yuancailiaochuku`
--
DROP TABLE IF EXISTS `yuancailiaochuku`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `yuancailiaochuku` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`chukubianhao` varchar(200) DEFAULT NULL COMMENT '出库编号',
`chukupinpai` varchar(200) DEFAULT NULL COMMENT '出库品牌',
`kucunshu` int(11) DEFAULT NULL COMMENT '库存数',
`chukujiage` varchar(200) DEFAULT NULL COMMENT '出库价格',
`chukushijian` datetime DEFAULT NULL COMMENT '出库时间',
`beizhu` longtext COMMENT '备注',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8 COMMENT='原材料出库';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `yuancailiaochuku`
--
LOCK TABLES `yuancailiaochuku` WRITE;
/*!40000 ALTER TABLE `yuancailiaochuku` DISABLE KEYS */;
INSERT INTO `yuancailiaochuku` VALUES (31,'2021-05-04 09:08:49','出库编号1','出库品牌1',1,'出库价格1','2021-05-04 17:08:49','备注1'),(32,'2021-05-04 09:08:49','出库编号2','出库品牌2',2,'出库价格2','2021-05-04 17:08:49','备注2'),(33,'2021-05-04 09:08:49','出库编号3','出库品牌3',3,'出库价格3','2021-05-04 17:08:49','备注3'),(34,'2021-05-04 09:08:49','出库编号4','出库品牌4',4,'出库价格4','2021-05-04 17:08:49','备注4'),(35,'2021-05-04 09:08:49','出库编号5','出库品牌5',5,'出库价格5','2021-05-04 17:08:49','备注5'),(36,'2021-05-04 09:08:49','出库编号6','出库品牌6',6,'出库价格6','2021-05-04 17:08:49','备注6');
/*!40000 ALTER TABLE `yuancailiaochuku` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `yuancailiaokucunguanli`
--
DROP TABLE IF EXISTS `yuancailiaokucunguanli`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `yuancailiaokucunguanli` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`cailiaobianhao` varchar(200) DEFAULT NULL COMMENT '材料编号',
`chucuncangkuming` varchar(200) DEFAULT NULL COMMENT '储存仓库名',
`kucunshu` int(11) DEFAULT NULL COMMENT '库存数',
`gengxinshijian` datetime DEFAULT NULL COMMENT '更新时间',
`beizhu` longtext COMMENT '备注',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=77 DEFAULT CHARSET=utf8 COMMENT='原材料库存管理';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `yuancailiaokucunguanli`
--
LOCK TABLES `yuancailiaokucunguanli` WRITE;
/*!40000 ALTER TABLE `yuancailiaokucunguanli` DISABLE KEYS */;
INSERT INTO `yuancailiaokucunguanli` VALUES (71,'2021-05-04 09:08:49','材料编号1','储存仓库名1',1,'2021-05-04 17:08:49','备注1'),(72,'2021-05-04 09:08:49','材料编号2','储存仓库名2',2,'2021-05-04 17:08:49','备注2'),(73,'2021-05-04 09:08:49','材料编号3','储存仓库名3',3,'2021-05-04 17:08:49','备注3'),(74,'2021-05-04 09:08:49','材料编号4','储存仓库名4',4,'2021-05-04 17:08:49','备注4'),(75,'2021-05-04 09:08:49','材料编号5','储存仓库名5',5,'2021-05-04 17:08:49','备注5'),(76,'2021-05-04 09:08:49','材料编号6','储存仓库名6',6,'2021-05-04 17:08:49','备注6');
/*!40000 ALTER TABLE `yuancailiaokucunguanli` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `yuancailiaoruku`
--
DROP TABLE IF EXISTS `yuancailiaoruku`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `yuancailiaoruku` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`rukubianhao` varchar(200) DEFAULT NULL COMMENT '入库编号',
`rukupinpai` varchar(200) DEFAULT NULL COMMENT '入库品牌',
`kucunshu` int(11) DEFAULT NULL COMMENT '库存数',
`rukujiage` varchar(200) DEFAULT NULL COMMENT '入库价格',
`rukushijian` datetime DEFAULT NULL COMMENT '入库时间',
`beizhu` longtext COMMENT '备注',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8 COMMENT='原材料入库';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `yuancailiaoruku`
--
LOCK TABLES `yuancailiaoruku` WRITE;
/*!40000 ALTER TABLE `yuancailiaoruku` DISABLE KEYS */;
INSERT INTO `yuancailiaoruku` VALUES (21,'2021-05-04 09:08:49','入库编号1','入库品牌1',1,'入库价格1','2021-05-04 17:08:49','备注1'),(22,'2021-05-04 09:08:49','入库编号2','入库品牌2',2,'入库价格2','2021-05-04 17:08:49','备注2'),(23,'2021-05-04 09:08:49','入库编号3','入库品牌3',3,'入库价格3','2021-05-04 17:08:49','备注3'),(24,'2021-05-04 09:08:49','入库编号4','入库品牌4',4,'入库价格4','2021-05-04 17:08:49','备注4'),(25,'2021-05-04 09:08:49','入库编号5','入库品牌5',5,'入库价格5','2021-05-04 17:08:49','备注5'),(26,'2021-05-04 09:08:49','入库编号6','入库品牌6',6,'入库价格6','2021-05-04 17:08:49','备注6');
/*!40000 ALTER TABLE `yuancailiaoruku` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2021-05-05 14:51:48

264
pom.xml Normal file
View File

@ -0,0 +1,264 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.jlwl</groupId>
<artifactId>ssm74edv</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring.version>5.0.0.RELEASE</spring.version>
<junit.version>4.12</junit.version>
<druid.version>1.1.0</druid.version>
<fastjson.version>1.2.8</fastjson.version>
<mybaitsplus.version>2.3</mybaitsplus.version>
<mysql.version>5.1.38</mysql.version>
<log4j.version>1.2.17</log4j.version>
<slf4j.version>1.7.19</slf4j.version>
<aspectjweaver.version>1.8.8</aspectjweaver.version>
<fileupload.version>1.3.1</fileupload.version>
<jstl.version>1.2</jstl.version>
</properties>
<dependencies>
<!-- JUnit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<!-- Spring -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${spring.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>${spring.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${spring.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${spring.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<!-- Spring MVC -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<!-- AOP -->
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectjweaver.version}</version>
</dependency>
<!-- FileUpload -->
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>${fileupload.version}</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>${jstl.version}</version>
</dependency>
<!-- Mybatis-Plus -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus</artifactId>
<version>${mybaitsplus.version}</version>
</dependency>
<!-- Mysql -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql.version}</version>
</dependency>
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>sqljdbc4</artifactId>
<scope>4.0</scope>
<version>4.0</version>
</dependency>
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>6.2.0.jre8</version>
<scope>runtime</scope>
</dependency>
<!-- Druid -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>${druid.version}</version>
</dependency>
<!-- FastJson -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>${fastjson.version}</version>
</dependency>
<!-- Log -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.0</version>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>2.0.1.Final</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>4.0.12</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.tomcat.embed/tomcat-embed-core -->
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<version>9.0.29</version>
</dependency>
<!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils -->
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.8.0</version>
</dependency>
<!-- 百度人工智能 -->
<dependency>
<groupId>com.baidu.aip</groupId>
<artifactId>java-sdk</artifactId>
<version>4.4.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.10.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.10.1</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>1.9.13</version>
</dependency>
</dependencies>
<build>
<!-- 项目访问名称 -->
<finalName>ssm74edv</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,15 @@
package com.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 登录用户信息
*/
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
public @interface APPLoginUser {
}

View File

@ -0,0 +1,13 @@
package com.annotation;
import java.lang.annotation.*;
/**
* 忽略Token验证
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface IgnoreAuth {
}

View File

@ -0,0 +1,15 @@
package com.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 登录用户信息
*/
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
public @interface LoginUser {
}

View File

@ -0,0 +1,28 @@
package com.config;
import java.util.Date;
import org.apache.ibatis.reflection.MetaObject;
import com.baomidou.mybatisplus.mapper.MetaObjectHandler;
/**
* 自定义填充处理器
*/
public class MyMetaObjectHandler extends MetaObjectHandler {
@Override
public void insertFill(MetaObject metaObject) {
this.setFieldValByName("ctime", new Date(), metaObject);
}
@Override
public boolean openUpdateFill() {
return false;
}
@Override
public void updateFill(MetaObject metaObject) {
// 关闭更新填充这里不执行
}
}

View File

@ -0,0 +1,208 @@
package com.controller;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;
import com.entity.CangkuxinxiEntity;
import com.entity.view.CangkuxinxiView;
import com.service.CangkuxinxiService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
* 仓库信息
* 后端接口
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@RestController
@RequestMapping("/cangkuxinxi")
public class CangkuxinxiController {
@Autowired
private CangkuxinxiService cangkuxinxiService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,CangkuxinxiEntity cangkuxinxi,
HttpServletRequest request){
EntityWrapper<CangkuxinxiEntity> ew = new EntityWrapper<CangkuxinxiEntity>();
PageUtils page = cangkuxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, cangkuxinxi), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,CangkuxinxiEntity cangkuxinxi,
HttpServletRequest request){
EntityWrapper<CangkuxinxiEntity> ew = new EntityWrapper<CangkuxinxiEntity>();
PageUtils page = cangkuxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, cangkuxinxi), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( CangkuxinxiEntity cangkuxinxi){
EntityWrapper<CangkuxinxiEntity> ew = new EntityWrapper<CangkuxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( cangkuxinxi, "cangkuxinxi"));
return R.ok().put("data", cangkuxinxiService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(CangkuxinxiEntity cangkuxinxi){
EntityWrapper< CangkuxinxiEntity> ew = new EntityWrapper< CangkuxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( cangkuxinxi, "cangkuxinxi"));
CangkuxinxiView cangkuxinxiView = cangkuxinxiService.selectView(ew);
return R.ok("查询仓库信息成功").put("data", cangkuxinxiView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
CangkuxinxiEntity cangkuxinxi = cangkuxinxiService.selectById(id);
return R.ok().put("data", cangkuxinxi);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
CangkuxinxiEntity cangkuxinxi = cangkuxinxiService.selectById(id);
return R.ok().put("data", cangkuxinxi);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody CangkuxinxiEntity cangkuxinxi, HttpServletRequest request){
cangkuxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(cangkuxinxi);
cangkuxinxiService.insert(cangkuxinxi);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody CangkuxinxiEntity cangkuxinxi, HttpServletRequest request){
cangkuxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(cangkuxinxi);
cangkuxinxiService.insert(cangkuxinxi);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody CangkuxinxiEntity cangkuxinxi, HttpServletRequest request){
//ValidatorUtils.validateEntity(cangkuxinxi);
cangkuxinxiService.updateById(cangkuxinxi);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
cangkuxinxiService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
/**
* 提醒接口
*/
@RequestMapping("/remind/{columnName}/{type}")
public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("column", columnName);
map.put("type", type);
if(type.equals("2")) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
Date remindStartDate = null;
Date remindEndDate = null;
if(map.get("remindstart")!=null) {
Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindStart);
remindStartDate = c.getTime();
map.put("remindstart", sdf.format(remindStartDate));
}
if(map.get("remindend")!=null) {
Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindEnd);
remindEndDate = c.getTime();
map.put("remindend", sdf.format(remindEndDate));
}
}
Wrapper<CangkuxinxiEntity> wrapper = new EntityWrapper<CangkuxinxiEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = cangkuxinxiService.selectCount(wrapper);
return R.ok().put("count", count);
}
}

View File

@ -0,0 +1,208 @@
package com.controller;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;
import com.entity.ChanpinchukuEntity;
import com.entity.view.ChanpinchukuView;
import com.service.ChanpinchukuService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
* 产品出库
* 后端接口
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@RestController
@RequestMapping("/chanpinchuku")
public class ChanpinchukuController {
@Autowired
private ChanpinchukuService chanpinchukuService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,ChanpinchukuEntity chanpinchuku,
HttpServletRequest request){
EntityWrapper<ChanpinchukuEntity> ew = new EntityWrapper<ChanpinchukuEntity>();
PageUtils page = chanpinchukuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chanpinchuku), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,ChanpinchukuEntity chanpinchuku,
HttpServletRequest request){
EntityWrapper<ChanpinchukuEntity> ew = new EntityWrapper<ChanpinchukuEntity>();
PageUtils page = chanpinchukuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chanpinchuku), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( ChanpinchukuEntity chanpinchuku){
EntityWrapper<ChanpinchukuEntity> ew = new EntityWrapper<ChanpinchukuEntity>();
ew.allEq(MPUtil.allEQMapPre( chanpinchuku, "chanpinchuku"));
return R.ok().put("data", chanpinchukuService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(ChanpinchukuEntity chanpinchuku){
EntityWrapper< ChanpinchukuEntity> ew = new EntityWrapper< ChanpinchukuEntity>();
ew.allEq(MPUtil.allEQMapPre( chanpinchuku, "chanpinchuku"));
ChanpinchukuView chanpinchukuView = chanpinchukuService.selectView(ew);
return R.ok("查询产品出库成功").put("data", chanpinchukuView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
ChanpinchukuEntity chanpinchuku = chanpinchukuService.selectById(id);
return R.ok().put("data", chanpinchuku);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
ChanpinchukuEntity chanpinchuku = chanpinchukuService.selectById(id);
return R.ok().put("data", chanpinchuku);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody ChanpinchukuEntity chanpinchuku, HttpServletRequest request){
chanpinchuku.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(chanpinchuku);
chanpinchukuService.insert(chanpinchuku);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody ChanpinchukuEntity chanpinchuku, HttpServletRequest request){
chanpinchuku.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(chanpinchuku);
chanpinchukuService.insert(chanpinchuku);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody ChanpinchukuEntity chanpinchuku, HttpServletRequest request){
//ValidatorUtils.validateEntity(chanpinchuku);
chanpinchukuService.updateById(chanpinchuku);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
chanpinchukuService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
/**
* 提醒接口
*/
@RequestMapping("/remind/{columnName}/{type}")
public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("column", columnName);
map.put("type", type);
if(type.equals("2")) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
Date remindStartDate = null;
Date remindEndDate = null;
if(map.get("remindstart")!=null) {
Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindStart);
remindStartDate = c.getTime();
map.put("remindstart", sdf.format(remindStartDate));
}
if(map.get("remindend")!=null) {
Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindEnd);
remindEndDate = c.getTime();
map.put("remindend", sdf.format(remindEndDate));
}
}
Wrapper<ChanpinchukuEntity> wrapper = new EntityWrapper<ChanpinchukuEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = chanpinchukuService.selectCount(wrapper);
return R.ok().put("count", count);
}
}

View File

@ -0,0 +1,208 @@
package com.controller;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;
import com.entity.ChanpinkucunguanliEntity;
import com.entity.view.ChanpinkucunguanliView;
import com.service.ChanpinkucunguanliService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
* 产品库存管理
* 后端接口
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@RestController
@RequestMapping("/chanpinkucunguanli")
public class ChanpinkucunguanliController {
@Autowired
private ChanpinkucunguanliService chanpinkucunguanliService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,ChanpinkucunguanliEntity chanpinkucunguanli,
HttpServletRequest request){
EntityWrapper<ChanpinkucunguanliEntity> ew = new EntityWrapper<ChanpinkucunguanliEntity>();
PageUtils page = chanpinkucunguanliService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chanpinkucunguanli), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,ChanpinkucunguanliEntity chanpinkucunguanli,
HttpServletRequest request){
EntityWrapper<ChanpinkucunguanliEntity> ew = new EntityWrapper<ChanpinkucunguanliEntity>();
PageUtils page = chanpinkucunguanliService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chanpinkucunguanli), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( ChanpinkucunguanliEntity chanpinkucunguanli){
EntityWrapper<ChanpinkucunguanliEntity> ew = new EntityWrapper<ChanpinkucunguanliEntity>();
ew.allEq(MPUtil.allEQMapPre( chanpinkucunguanli, "chanpinkucunguanli"));
return R.ok().put("data", chanpinkucunguanliService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(ChanpinkucunguanliEntity chanpinkucunguanli){
EntityWrapper< ChanpinkucunguanliEntity> ew = new EntityWrapper< ChanpinkucunguanliEntity>();
ew.allEq(MPUtil.allEQMapPre( chanpinkucunguanli, "chanpinkucunguanli"));
ChanpinkucunguanliView chanpinkucunguanliView = chanpinkucunguanliService.selectView(ew);
return R.ok("查询产品库存管理成功").put("data", chanpinkucunguanliView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
ChanpinkucunguanliEntity chanpinkucunguanli = chanpinkucunguanliService.selectById(id);
return R.ok().put("data", chanpinkucunguanli);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
ChanpinkucunguanliEntity chanpinkucunguanli = chanpinkucunguanliService.selectById(id);
return R.ok().put("data", chanpinkucunguanli);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody ChanpinkucunguanliEntity chanpinkucunguanli, HttpServletRequest request){
chanpinkucunguanli.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(chanpinkucunguanli);
chanpinkucunguanliService.insert(chanpinkucunguanli);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody ChanpinkucunguanliEntity chanpinkucunguanli, HttpServletRequest request){
chanpinkucunguanli.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(chanpinkucunguanli);
chanpinkucunguanliService.insert(chanpinkucunguanli);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody ChanpinkucunguanliEntity chanpinkucunguanli, HttpServletRequest request){
//ValidatorUtils.validateEntity(chanpinkucunguanli);
chanpinkucunguanliService.updateById(chanpinkucunguanli);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
chanpinkucunguanliService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
/**
* 提醒接口
*/
@RequestMapping("/remind/{columnName}/{type}")
public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("column", columnName);
map.put("type", type);
if(type.equals("2")) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
Date remindStartDate = null;
Date remindEndDate = null;
if(map.get("remindstart")!=null) {
Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindStart);
remindStartDate = c.getTime();
map.put("remindstart", sdf.format(remindStartDate));
}
if(map.get("remindend")!=null) {
Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindEnd);
remindEndDate = c.getTime();
map.put("remindend", sdf.format(remindEndDate));
}
}
Wrapper<ChanpinkucunguanliEntity> wrapper = new EntityWrapper<ChanpinkucunguanliEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = chanpinkucunguanliService.selectCount(wrapper);
return R.ok().put("count", count);
}
}

View File

@ -0,0 +1,208 @@
package com.controller;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;
import com.entity.ChanpinrukuEntity;
import com.entity.view.ChanpinrukuView;
import com.service.ChanpinrukuService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
* 产品入库
* 后端接口
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@RestController
@RequestMapping("/chanpinruku")
public class ChanpinrukuController {
@Autowired
private ChanpinrukuService chanpinrukuService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,ChanpinrukuEntity chanpinruku,
HttpServletRequest request){
EntityWrapper<ChanpinrukuEntity> ew = new EntityWrapper<ChanpinrukuEntity>();
PageUtils page = chanpinrukuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chanpinruku), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,ChanpinrukuEntity chanpinruku,
HttpServletRequest request){
EntityWrapper<ChanpinrukuEntity> ew = new EntityWrapper<ChanpinrukuEntity>();
PageUtils page = chanpinrukuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chanpinruku), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( ChanpinrukuEntity chanpinruku){
EntityWrapper<ChanpinrukuEntity> ew = new EntityWrapper<ChanpinrukuEntity>();
ew.allEq(MPUtil.allEQMapPre( chanpinruku, "chanpinruku"));
return R.ok().put("data", chanpinrukuService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(ChanpinrukuEntity chanpinruku){
EntityWrapper< ChanpinrukuEntity> ew = new EntityWrapper< ChanpinrukuEntity>();
ew.allEq(MPUtil.allEQMapPre( chanpinruku, "chanpinruku"));
ChanpinrukuView chanpinrukuView = chanpinrukuService.selectView(ew);
return R.ok("查询产品入库成功").put("data", chanpinrukuView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
ChanpinrukuEntity chanpinruku = chanpinrukuService.selectById(id);
return R.ok().put("data", chanpinruku);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
ChanpinrukuEntity chanpinruku = chanpinrukuService.selectById(id);
return R.ok().put("data", chanpinruku);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody ChanpinrukuEntity chanpinruku, HttpServletRequest request){
chanpinruku.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(chanpinruku);
chanpinrukuService.insert(chanpinruku);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody ChanpinrukuEntity chanpinruku, HttpServletRequest request){
chanpinruku.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(chanpinruku);
chanpinrukuService.insert(chanpinruku);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody ChanpinrukuEntity chanpinruku, HttpServletRequest request){
//ValidatorUtils.validateEntity(chanpinruku);
chanpinrukuService.updateById(chanpinruku);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
chanpinrukuService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
/**
* 提醒接口
*/
@RequestMapping("/remind/{columnName}/{type}")
public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("column", columnName);
map.put("type", type);
if(type.equals("2")) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
Date remindStartDate = null;
Date remindEndDate = null;
if(map.get("remindstart")!=null) {
Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindStart);
remindStartDate = c.getTime();
map.put("remindstart", sdf.format(remindStartDate));
}
if(map.get("remindend")!=null) {
Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindEnd);
remindEndDate = c.getTime();
map.put("remindend", sdf.format(remindEndDate));
}
}
Wrapper<ChanpinrukuEntity> wrapper = new EntityWrapper<ChanpinrukuEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = chanpinrukuService.selectCount(wrapper);
return R.ok().put("count", count);
}
}

View File

@ -0,0 +1,258 @@
package com.controller;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ResourceUtils;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.annotation.IgnoreAuth;
import com.baidu.aip.face.AipFace;
import com.baidu.aip.face.MatchRequest;
import com.baidu.aip.util.Base64Util;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.entity.ConfigEntity;
import com.service.CommonService;
import com.service.ConfigService;
import com.utils.BaiduUtil;
import com.utils.FileUtil;
import com.utils.R;
/**
* 通用接口
*/
@RestController
public class CommonController{
@Autowired
private CommonService commonService;
@Autowired
private ConfigService configService;
private static AipFace client = null;
private static String BAIDU_DITU_AK = null;
@RequestMapping("/location")
public R location(String lng,String lat) {
if(BAIDU_DITU_AK==null) {
BAIDU_DITU_AK = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "baidu_ditu_ak")).getValue();
if(BAIDU_DITU_AK==null) {
return R.error("请在配置管理中正确配置baidu_ditu_ak");
}
}
Map<String, String> map = BaiduUtil.getCityByLonLat(BAIDU_DITU_AK, lng, lat);
return R.ok().put("data", map);
}
/**
* 人脸比对
*
* @param face1 人脸1
* @param face2 人脸2
* @return
*/
@RequestMapping("/matchFace")
public R matchFace(String face1, String face2,HttpServletRequest request) {
if(client==null) {
/*String AppID = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "AppID")).getValue();*/
String APIKey = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "APIKey")).getValue();
String SecretKey = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "SecretKey")).getValue();
String token = BaiduUtil.getAuth(APIKey, SecretKey);
if(token==null) {
return R.error("请在配置管理中正确配置APIKey和SecretKey");
}
client = new AipFace(null, APIKey, SecretKey);
client.setConnectionTimeoutInMillis(2000);
client.setSocketTimeoutInMillis(60000);
}
JSONObject res = null;
try {
File file1 = new File(request.getSession().getServletContext().getRealPath("/upload")+"/"+face1);
File file2 = new File(request.getSession().getServletContext().getRealPath("/upload")+"/"+face2);
String img1 = Base64Util.encode(FileUtil.FileToByte(file1));
String img2 = Base64Util.encode(FileUtil.FileToByte(file2));
MatchRequest req1 = new MatchRequest(img1, "BASE64");
MatchRequest req2 = new MatchRequest(img2, "BASE64");
ArrayList<MatchRequest> requests = new ArrayList<MatchRequest>();
requests.add(req1);
requests.add(req2);
res = client.match(requests);
System.out.println(res.get("result"));
} catch (FileNotFoundException e) {
e.printStackTrace();
return R.error("文件不存在");
} catch (IOException e) {
e.printStackTrace();
}
return R.ok().put("data", com.alibaba.fastjson.JSONObject.parse(res.get("result").toString()));
}
/**
* 获取table表中的column列表(联动接口)
* @param table
* @param column
* @return
*/
@IgnoreAuth
@RequestMapping("/option/{tableName}/{columnName}")
public R getOption(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName,String level,String parent) {
Map<String, Object> params = new HashMap<String, Object>();
params.put("table", tableName);
params.put("column", columnName);
if(StringUtils.isNotBlank(level)) {
params.put("level", level);
}
if(StringUtils.isNotBlank(parent)) {
params.put("parent", parent);
}
List<String> data = commonService.getOption(params);
return R.ok().put("data", data);
}
/**
* 根据table中的column获取单条记录
* @param table
* @param column
* @return
*/
@IgnoreAuth
@RequestMapping("/follow/{tableName}/{columnName}")
public R getFollowByOption(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName, @RequestParam String columnValue) {
Map<String, Object> params = new HashMap<String, Object>();
params.put("table", tableName);
params.put("column", columnName);
params.put("columnValue", columnValue);
Map<String, Object> result = commonService.getFollowByOption(params);
return R.ok().put("data", result);
}
/**
* 修改table表的sfsh状态
* @param table
* @param map
* @return
*/
@RequestMapping("/sh/{tableName}")
public R sh(@PathVariable("tableName") String tableName, @RequestBody Map<String, Object> map) {
map.put("table", tableName);
commonService.sh(map);
return R.ok();
}
/**
* 获取需要提醒的记录数
* @param tableName
* @param columnName
* @param type 1:数字 2:日期
* @param map
* @return
*/
@IgnoreAuth
@RequestMapping("/remind/{tableName}/{columnName}/{type}")
public R remindCount(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("table", tableName);
map.put("column", columnName);
map.put("type", type);
if(type.equals("2")) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
Date remindStartDate = null;
Date remindEndDate = null;
if(map.get("remindstart")!=null) {
Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindStart);
remindStartDate = c.getTime();
map.put("remindstart", sdf.format(remindStartDate));
}
if(map.get("remindend")!=null) {
Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindEnd);
remindEndDate = c.getTime();
map.put("remindend", sdf.format(remindEndDate));
}
}
int count = commonService.remindCount(map);
return R.ok().put("count", count);
}
/**
* 单列求和
*/
@IgnoreAuth
@RequestMapping("/cal/{tableName}/{columnName}")
public R cal(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName) {
Map<String, Object> params = new HashMap<String, Object>();
params.put("table", tableName);
params.put("column", columnName);
Map<String, Object> result = commonService.selectCal(params);
return R.ok().put("data", result);
}
/**
* 分组统计
*/
@IgnoreAuth
@RequestMapping("/group/{tableName}/{columnName}")
public R group(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName) {
Map<String, Object> params = new HashMap<String, Object>();
params.put("table", tableName);
params.put("column", columnName);
List<Map<String, Object>> result = commonService.selectGroup(params);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
for(Map<String, Object> m : result) {
for(String k : m.keySet()) {
if(m.get(k) instanceof Date) {
m.put(k, sdf.format((Date)m.get(k)));
}
}
}
return R.ok().put("data", result);
}
/**
* 按值统计
*/
@IgnoreAuth
@RequestMapping("/value/{tableName}/{xColumnName}/{yColumnName}")
public R value(@PathVariable("tableName") String tableName, @PathVariable("yColumnName") String yColumnName, @PathVariable("xColumnName") String xColumnName) {
Map<String, Object> params = new HashMap<String, Object>();
params.put("table", tableName);
params.put("xColumn", xColumnName);
params.put("yColumn", yColumnName);
List<Map<String, Object>> result = commonService.selectValue(params);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
for(Map<String, Object> m : result) {
for(String k : m.keySet()) {
if(m.get(k) instanceof Date) {
m.put(k, sdf.format((Date)m.get(k)));
}
}
}
return R.ok().put("data", result);
}
}

View File

@ -0,0 +1,111 @@
package com.controller;
import java.util.Arrays;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.annotation.IgnoreAuth;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.entity.ConfigEntity;
import com.service.ConfigService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.ValidatorUtils;
/**
* 登录相关
*/
@RequestMapping("config")
@RestController
public class ConfigController{
@Autowired
private ConfigService configService;
/**
* 列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,ConfigEntity config){
EntityWrapper<ConfigEntity> ew = new EntityWrapper<ConfigEntity>();
PageUtils page = configService.queryPage(params);
return R.ok().put("data", page);
}
/**
* 列表
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,ConfigEntity config){
EntityWrapper<ConfigEntity> ew = new EntityWrapper<ConfigEntity>();
PageUtils page = configService.queryPage(params);
return R.ok().put("data", page);
}
/**
* 信息
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") String id){
ConfigEntity config = configService.selectById(id);
return R.ok().put("data", config);
}
/**
* 详情
*/
@IgnoreAuth
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") String id){
ConfigEntity config = configService.selectById(id);
return R.ok().put("data", config);
}
/**
* 根据name获取信息
*/
@RequestMapping("/info")
public R infoByName(@RequestParam String name){
ConfigEntity config = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "faceFile"));
return R.ok().put("data", config);
}
/**
* 保存
*/
@PostMapping("/save")
public R save(@RequestBody ConfigEntity config){
// ValidatorUtils.validateEntity(config);
configService.insert(config);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody ConfigEntity config){
// ValidatorUtils.validateEntity(config);
configService.updateById(config);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
configService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
}

View File

@ -0,0 +1,83 @@
package com.controller;
import java.io.File;
import java.io.IOException;
import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import com.annotation.IgnoreAuth;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.entity.ConfigEntity;
import com.entity.EIException;
import com.service.ConfigService;
import com.utils.R;
/**
* 上传文件映射表
*/
@RestController
@RequestMapping("file")
@SuppressWarnings({"unchecked","rawtypes"})
public class FileController{
@Autowired
private ConfigService configService;
/**
* 上传文件
*/
@RequestMapping("/upload")
public R upload(@RequestParam("file") MultipartFile file, String type,HttpServletRequest request) throws Exception {
if (file.isEmpty()) {
throw new EIException("上传文件不能为空");
}
String fileExt = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")+1);
String fileName = new Date().getTime()+"."+fileExt;
File dest = new File(request.getSession().getServletContext().getRealPath("/upload")+"/"+fileName);
file.transferTo(dest);
if(StringUtils.isNotBlank(type) && type.equals("1")) {
ConfigEntity configEntity = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "faceFile"));
if(configEntity==null) {
configEntity = new ConfigEntity();
configEntity.setName("faceFile");
configEntity.setValue(fileName);
} else {
configEntity.setValue(fileName);
}
configService.insertOrUpdate(configEntity);
}
return R.ok().put("file", fileName);
}
/**
* 下载文件
*/
@IgnoreAuth
@RequestMapping("/download")
public void download(@RequestParam String fileName, HttpServletRequest request, HttpServletResponse response) {
try {
File file = new File(request.getSession().getServletContext().getRealPath("/upload")+"/"+fileName);
if (file.exists()) {
response.reset();
response.setHeader("Content-Disposition", "attachment; filename=\"" + fileName+"\"");
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Access-Control-Allow-Credentials", "true");
response.setContentType("application/octet-stream; charset=UTF-8");
IOUtils.write(FileUtils.readFileToByteArray(file), response.getOutputStream());
}
} catch (IOException e) {
e.printStackTrace();
}
}
}

View File

@ -0,0 +1,175 @@
package com.controller;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import com.annotation.IgnoreAuth;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.entity.TokenEntity;
import com.entity.UserEntity;
import com.service.TokenService;
import com.service.UserService;
import com.utils.CommonUtil;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.ValidatorUtils;
/**
* 登录相关
*/
@RequestMapping("users")
@RestController
public class UserController{
@Autowired
private UserService userService;
@Autowired
private TokenService tokenService;
/**
* 登录
*/
@IgnoreAuth
@PostMapping(value = "/login")
public R login(String username, String password, String captcha, HttpServletRequest request) {
UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));
if(user==null || !user.getPassword().equals(password)) {
return R.error("账号或密码不正确");
}
String token = tokenService.generateToken(user.getId(),username, "users", user.getRole());
return R.ok().put("token", token);
}
/**
* 注册
*/
@IgnoreAuth
@PostMapping(value = "/register")
public R register(@RequestBody UserEntity user){
// ValidatorUtils.validateEntity(user);
if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {
return R.error("用户已存在");
}
userService.insert(user);
return R.ok();
}
/**
* 退出
*/
@GetMapping(value = "logout")
public R logout(HttpServletRequest request) {
request.getSession().invalidate();
return R.ok("退出成功");
}
/**
* 密码重置
*/
@IgnoreAuth
@RequestMapping(value = "/resetPass")
public R resetPass(String username, HttpServletRequest request){
UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));
if(user==null) {
return R.error("账号不存在");
}
user.setPassword("123456");
userService.update(user,null);
return R.ok("密码已重置为123456");
}
/**
* 列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,UserEntity user){
EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();
PageUtils page = userService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.allLike(ew, user), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/list")
public R list( UserEntity user){
EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();
ew.allEq(MPUtil.allEQMapPre( user, "user"));
return R.ok().put("data", userService.selectListView(ew));
}
/**
* 信息
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") String id){
UserEntity user = userService.selectById(id);
return R.ok().put("data", user);
}
/**
* 获取用户的session用户信息
*/
@RequestMapping("/session")
public R getCurrUser(HttpServletRequest request){
Long id = (Long)request.getSession().getAttribute("userId");
UserEntity user = userService.selectById(id);
return R.ok().put("data", user);
}
/**
* 保存
*/
@PostMapping("/save")
public R save(@RequestBody UserEntity user){
// ValidatorUtils.validateEntity(user);
if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {
return R.error("用户已存在");
}
userService.insert(user);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody UserEntity user){
// ValidatorUtils.validateEntity(user);
UserEntity u = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername()));
if(u!=null && u.getId()!=user.getId() && u.getUsername().equals(user.getUsername())) {
return R.error("用户名已存在。");
}
userService.updateById(user);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
userService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
}

View File

@ -0,0 +1,285 @@
package com.controller;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;
import com.entity.YonghuEntity;
import com.entity.view.YonghuView;
import com.service.YonghuService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
* 用户
* 后端接口
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@RestController
@RequestMapping("/yonghu")
public class YonghuController {
@Autowired
private YonghuService yonghuService;
@Autowired
private TokenService tokenService;
/**
* 登录
*/
@IgnoreAuth
@RequestMapping(value = "/login")
public R login(String username, String password, String captcha, HttpServletRequest request) {
YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("zhanghao", username));
if(user==null || !user.getMima().equals(password)) {
return R.error("账号或密码不正确");
}
String token = tokenService.generateToken(user.getId(), username,"yonghu", "用户" );
return R.ok().put("token", token);
}
/**
* 注册
*/
@IgnoreAuth
@RequestMapping("/register")
public R register(@RequestBody YonghuEntity yonghu){
//ValidatorUtils.validateEntity(yonghu);
YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("zhanghao", yonghu.getZhanghao()));
if(user!=null) {
return R.error("注册用户已存在");
}
Long uId = new Date().getTime();
yonghu.setId(uId);
yonghuService.insert(yonghu);
return R.ok();
}
/**
* 退出
*/
@RequestMapping("/logout")
public R logout(HttpServletRequest request) {
request.getSession().invalidate();
return R.ok("退出成功");
}
/**
* 获取用户的session用户信息
*/
@RequestMapping("/session")
public R getCurrUser(HttpServletRequest request){
Long id = (Long)request.getSession().getAttribute("userId");
YonghuEntity user = yonghuService.selectById(id);
return R.ok().put("data", user);
}
/**
* 密码重置
*/
@IgnoreAuth
@RequestMapping(value = "/resetPass")
public R resetPass(String username, HttpServletRequest request){
YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("zhanghao", username));
if(user==null) {
return R.error("账号不存在");
}
user.setMima("123456");
yonghuService.updateById(user);
return R.ok("密码已重置为123456");
}
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,YonghuEntity yonghu,
HttpServletRequest request){
EntityWrapper<YonghuEntity> ew = new EntityWrapper<YonghuEntity>();
PageUtils page = yonghuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yonghu), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,YonghuEntity yonghu,
HttpServletRequest request){
EntityWrapper<YonghuEntity> ew = new EntityWrapper<YonghuEntity>();
PageUtils page = yonghuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yonghu), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( YonghuEntity yonghu){
EntityWrapper<YonghuEntity> ew = new EntityWrapper<YonghuEntity>();
ew.allEq(MPUtil.allEQMapPre( yonghu, "yonghu"));
return R.ok().put("data", yonghuService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(YonghuEntity yonghu){
EntityWrapper< YonghuEntity> ew = new EntityWrapper< YonghuEntity>();
ew.allEq(MPUtil.allEQMapPre( yonghu, "yonghu"));
YonghuView yonghuView = yonghuService.selectView(ew);
return R.ok("查询用户成功").put("data", yonghuView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
YonghuEntity yonghu = yonghuService.selectById(id);
return R.ok().put("data", yonghu);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
YonghuEntity yonghu = yonghuService.selectById(id);
return R.ok().put("data", yonghu);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody YonghuEntity yonghu, HttpServletRequest request){
yonghu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(yonghu);
YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("zhanghao", yonghu.getZhanghao()));
if(user!=null) {
return R.error("用户已存在");
}
yonghu.setId(new Date().getTime());
yonghuService.insert(yonghu);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody YonghuEntity yonghu, HttpServletRequest request){
yonghu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(yonghu);
YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("zhanghao", yonghu.getZhanghao()));
if(user!=null) {
return R.error("用户已存在");
}
yonghu.setId(new Date().getTime());
yonghuService.insert(yonghu);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody YonghuEntity yonghu, HttpServletRequest request){
//ValidatorUtils.validateEntity(yonghu);
yonghuService.updateById(yonghu);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
yonghuService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
/**
* 提醒接口
*/
@RequestMapping("/remind/{columnName}/{type}")
public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("column", columnName);
map.put("type", type);
if(type.equals("2")) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
Date remindStartDate = null;
Date remindEndDate = null;
if(map.get("remindstart")!=null) {
Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindStart);
remindStartDate = c.getTime();
map.put("remindstart", sdf.format(remindStartDate));
}
if(map.get("remindend")!=null) {
Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindEnd);
remindEndDate = c.getTime();
map.put("remindend", sdf.format(remindEndDate));
}
}
Wrapper<YonghuEntity> wrapper = new EntityWrapper<YonghuEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = yonghuService.selectCount(wrapper);
return R.ok().put("count", count);
}
}

View File

@ -0,0 +1,208 @@
package com.controller;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;
import com.entity.YuancailiaochukuEntity;
import com.entity.view.YuancailiaochukuView;
import com.service.YuancailiaochukuService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
* 原材料出库
* 后端接口
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@RestController
@RequestMapping("/yuancailiaochuku")
public class YuancailiaochukuController {
@Autowired
private YuancailiaochukuService yuancailiaochukuService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,YuancailiaochukuEntity yuancailiaochuku,
HttpServletRequest request){
EntityWrapper<YuancailiaochukuEntity> ew = new EntityWrapper<YuancailiaochukuEntity>();
PageUtils page = yuancailiaochukuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yuancailiaochuku), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,YuancailiaochukuEntity yuancailiaochuku,
HttpServletRequest request){
EntityWrapper<YuancailiaochukuEntity> ew = new EntityWrapper<YuancailiaochukuEntity>();
PageUtils page = yuancailiaochukuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yuancailiaochuku), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( YuancailiaochukuEntity yuancailiaochuku){
EntityWrapper<YuancailiaochukuEntity> ew = new EntityWrapper<YuancailiaochukuEntity>();
ew.allEq(MPUtil.allEQMapPre( yuancailiaochuku, "yuancailiaochuku"));
return R.ok().put("data", yuancailiaochukuService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(YuancailiaochukuEntity yuancailiaochuku){
EntityWrapper< YuancailiaochukuEntity> ew = new EntityWrapper< YuancailiaochukuEntity>();
ew.allEq(MPUtil.allEQMapPre( yuancailiaochuku, "yuancailiaochuku"));
YuancailiaochukuView yuancailiaochukuView = yuancailiaochukuService.selectView(ew);
return R.ok("查询原材料出库成功").put("data", yuancailiaochukuView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
YuancailiaochukuEntity yuancailiaochuku = yuancailiaochukuService.selectById(id);
return R.ok().put("data", yuancailiaochuku);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
YuancailiaochukuEntity yuancailiaochuku = yuancailiaochukuService.selectById(id);
return R.ok().put("data", yuancailiaochuku);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody YuancailiaochukuEntity yuancailiaochuku, HttpServletRequest request){
yuancailiaochuku.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(yuancailiaochuku);
yuancailiaochukuService.insert(yuancailiaochuku);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody YuancailiaochukuEntity yuancailiaochuku, HttpServletRequest request){
yuancailiaochuku.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(yuancailiaochuku);
yuancailiaochukuService.insert(yuancailiaochuku);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody YuancailiaochukuEntity yuancailiaochuku, HttpServletRequest request){
//ValidatorUtils.validateEntity(yuancailiaochuku);
yuancailiaochukuService.updateById(yuancailiaochuku);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
yuancailiaochukuService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
/**
* 提醒接口
*/
@RequestMapping("/remind/{columnName}/{type}")
public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("column", columnName);
map.put("type", type);
if(type.equals("2")) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
Date remindStartDate = null;
Date remindEndDate = null;
if(map.get("remindstart")!=null) {
Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindStart);
remindStartDate = c.getTime();
map.put("remindstart", sdf.format(remindStartDate));
}
if(map.get("remindend")!=null) {
Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindEnd);
remindEndDate = c.getTime();
map.put("remindend", sdf.format(remindEndDate));
}
}
Wrapper<YuancailiaochukuEntity> wrapper = new EntityWrapper<YuancailiaochukuEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = yuancailiaochukuService.selectCount(wrapper);
return R.ok().put("count", count);
}
}

View File

@ -0,0 +1,208 @@
package com.controller;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;
import com.entity.YuancailiaokucunguanliEntity;
import com.entity.view.YuancailiaokucunguanliView;
import com.service.YuancailiaokucunguanliService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
* 原材料库存管理
* 后端接口
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@RestController
@RequestMapping("/yuancailiaokucunguanli")
public class YuancailiaokucunguanliController {
@Autowired
private YuancailiaokucunguanliService yuancailiaokucunguanliService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,YuancailiaokucunguanliEntity yuancailiaokucunguanli,
HttpServletRequest request){
EntityWrapper<YuancailiaokucunguanliEntity> ew = new EntityWrapper<YuancailiaokucunguanliEntity>();
PageUtils page = yuancailiaokucunguanliService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yuancailiaokucunguanli), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,YuancailiaokucunguanliEntity yuancailiaokucunguanli,
HttpServletRequest request){
EntityWrapper<YuancailiaokucunguanliEntity> ew = new EntityWrapper<YuancailiaokucunguanliEntity>();
PageUtils page = yuancailiaokucunguanliService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yuancailiaokucunguanli), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( YuancailiaokucunguanliEntity yuancailiaokucunguanli){
EntityWrapper<YuancailiaokucunguanliEntity> ew = new EntityWrapper<YuancailiaokucunguanliEntity>();
ew.allEq(MPUtil.allEQMapPre( yuancailiaokucunguanli, "yuancailiaokucunguanli"));
return R.ok().put("data", yuancailiaokucunguanliService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(YuancailiaokucunguanliEntity yuancailiaokucunguanli){
EntityWrapper< YuancailiaokucunguanliEntity> ew = new EntityWrapper< YuancailiaokucunguanliEntity>();
ew.allEq(MPUtil.allEQMapPre( yuancailiaokucunguanli, "yuancailiaokucunguanli"));
YuancailiaokucunguanliView yuancailiaokucunguanliView = yuancailiaokucunguanliService.selectView(ew);
return R.ok("查询原材料库存管理成功").put("data", yuancailiaokucunguanliView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
YuancailiaokucunguanliEntity yuancailiaokucunguanli = yuancailiaokucunguanliService.selectById(id);
return R.ok().put("data", yuancailiaokucunguanli);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
YuancailiaokucunguanliEntity yuancailiaokucunguanli = yuancailiaokucunguanliService.selectById(id);
return R.ok().put("data", yuancailiaokucunguanli);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody YuancailiaokucunguanliEntity yuancailiaokucunguanli, HttpServletRequest request){
yuancailiaokucunguanli.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(yuancailiaokucunguanli);
yuancailiaokucunguanliService.insert(yuancailiaokucunguanli);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody YuancailiaokucunguanliEntity yuancailiaokucunguanli, HttpServletRequest request){
yuancailiaokucunguanli.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(yuancailiaokucunguanli);
yuancailiaokucunguanliService.insert(yuancailiaokucunguanli);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody YuancailiaokucunguanliEntity yuancailiaokucunguanli, HttpServletRequest request){
//ValidatorUtils.validateEntity(yuancailiaokucunguanli);
yuancailiaokucunguanliService.updateById(yuancailiaokucunguanli);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
yuancailiaokucunguanliService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
/**
* 提醒接口
*/
@RequestMapping("/remind/{columnName}/{type}")
public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("column", columnName);
map.put("type", type);
if(type.equals("2")) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
Date remindStartDate = null;
Date remindEndDate = null;
if(map.get("remindstart")!=null) {
Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindStart);
remindStartDate = c.getTime();
map.put("remindstart", sdf.format(remindStartDate));
}
if(map.get("remindend")!=null) {
Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindEnd);
remindEndDate = c.getTime();
map.put("remindend", sdf.format(remindEndDate));
}
}
Wrapper<YuancailiaokucunguanliEntity> wrapper = new EntityWrapper<YuancailiaokucunguanliEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = yuancailiaokucunguanliService.selectCount(wrapper);
return R.ok().put("count", count);
}
}

View File

@ -0,0 +1,208 @@
package com.controller;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;
import com.entity.YuancailiaorukuEntity;
import com.entity.view.YuancailiaorukuView;
import com.service.YuancailiaorukuService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
* 原材料入库
* 后端接口
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@RestController
@RequestMapping("/yuancailiaoruku")
public class YuancailiaorukuController {
@Autowired
private YuancailiaorukuService yuancailiaorukuService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,YuancailiaorukuEntity yuancailiaoruku,
HttpServletRequest request){
EntityWrapper<YuancailiaorukuEntity> ew = new EntityWrapper<YuancailiaorukuEntity>();
PageUtils page = yuancailiaorukuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yuancailiaoruku), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,YuancailiaorukuEntity yuancailiaoruku,
HttpServletRequest request){
EntityWrapper<YuancailiaorukuEntity> ew = new EntityWrapper<YuancailiaorukuEntity>();
PageUtils page = yuancailiaorukuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yuancailiaoruku), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( YuancailiaorukuEntity yuancailiaoruku){
EntityWrapper<YuancailiaorukuEntity> ew = new EntityWrapper<YuancailiaorukuEntity>();
ew.allEq(MPUtil.allEQMapPre( yuancailiaoruku, "yuancailiaoruku"));
return R.ok().put("data", yuancailiaorukuService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(YuancailiaorukuEntity yuancailiaoruku){
EntityWrapper< YuancailiaorukuEntity> ew = new EntityWrapper< YuancailiaorukuEntity>();
ew.allEq(MPUtil.allEQMapPre( yuancailiaoruku, "yuancailiaoruku"));
YuancailiaorukuView yuancailiaorukuView = yuancailiaorukuService.selectView(ew);
return R.ok("查询原材料入库成功").put("data", yuancailiaorukuView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
YuancailiaorukuEntity yuancailiaoruku = yuancailiaorukuService.selectById(id);
return R.ok().put("data", yuancailiaoruku);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
YuancailiaorukuEntity yuancailiaoruku = yuancailiaorukuService.selectById(id);
return R.ok().put("data", yuancailiaoruku);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody YuancailiaorukuEntity yuancailiaoruku, HttpServletRequest request){
yuancailiaoruku.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(yuancailiaoruku);
yuancailiaorukuService.insert(yuancailiaoruku);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody YuancailiaorukuEntity yuancailiaoruku, HttpServletRequest request){
yuancailiaoruku.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(yuancailiaoruku);
yuancailiaorukuService.insert(yuancailiaoruku);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody YuancailiaorukuEntity yuancailiaoruku, HttpServletRequest request){
//ValidatorUtils.validateEntity(yuancailiaoruku);
yuancailiaorukuService.updateById(yuancailiaoruku);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
yuancailiaorukuService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
/**
* 提醒接口
*/
@RequestMapping("/remind/{columnName}/{type}")
public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("column", columnName);
map.put("type", type);
if(type.equals("2")) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
Date remindStartDate = null;
Date remindEndDate = null;
if(map.get("remindstart")!=null) {
Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindStart);
remindStartDate = c.getTime();
map.put("remindstart", sdf.format(remindStartDate));
}
if(map.get("remindend")!=null) {
Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindEnd);
remindEndDate = c.getTime();
map.put("remindend", sdf.format(remindEndDate));
}
}
Wrapper<YuancailiaorukuEntity> wrapper = new EntityWrapper<YuancailiaorukuEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = yuancailiaorukuService.selectCount(wrapper);
return R.ok().put("count", count);
}
}

View File

@ -0,0 +1,33 @@
package com.dao;
import com.entity.CangkuxinxiEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import com.entity.vo.CangkuxinxiVO;
import com.entity.view.CangkuxinxiView;
/**
* 仓库信息
*
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public interface CangkuxinxiDao extends BaseMapper<CangkuxinxiEntity> {
List<CangkuxinxiVO> selectListVO(@Param("ew") Wrapper<CangkuxinxiEntity> wrapper);
CangkuxinxiVO selectVO(@Param("ew") Wrapper<CangkuxinxiEntity> wrapper);
List<CangkuxinxiView> selectListView(@Param("ew") Wrapper<CangkuxinxiEntity> wrapper);
List<CangkuxinxiView> selectListView(Pagination page,@Param("ew") Wrapper<CangkuxinxiEntity> wrapper);
CangkuxinxiView selectView(@Param("ew") Wrapper<CangkuxinxiEntity> wrapper);
}

View File

@ -0,0 +1,33 @@
package com.dao;
import com.entity.ChanpinchukuEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import com.entity.vo.ChanpinchukuVO;
import com.entity.view.ChanpinchukuView;
/**
* 产品出库
*
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public interface ChanpinchukuDao extends BaseMapper<ChanpinchukuEntity> {
List<ChanpinchukuVO> selectListVO(@Param("ew") Wrapper<ChanpinchukuEntity> wrapper);
ChanpinchukuVO selectVO(@Param("ew") Wrapper<ChanpinchukuEntity> wrapper);
List<ChanpinchukuView> selectListView(@Param("ew") Wrapper<ChanpinchukuEntity> wrapper);
List<ChanpinchukuView> selectListView(Pagination page,@Param("ew") Wrapper<ChanpinchukuEntity> wrapper);
ChanpinchukuView selectView(@Param("ew") Wrapper<ChanpinchukuEntity> wrapper);
}

View File

@ -0,0 +1,33 @@
package com.dao;
import com.entity.ChanpinkucunguanliEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import com.entity.vo.ChanpinkucunguanliVO;
import com.entity.view.ChanpinkucunguanliView;
/**
* 产品库存管理
*
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public interface ChanpinkucunguanliDao extends BaseMapper<ChanpinkucunguanliEntity> {
List<ChanpinkucunguanliVO> selectListVO(@Param("ew") Wrapper<ChanpinkucunguanliEntity> wrapper);
ChanpinkucunguanliVO selectVO(@Param("ew") Wrapper<ChanpinkucunguanliEntity> wrapper);
List<ChanpinkucunguanliView> selectListView(@Param("ew") Wrapper<ChanpinkucunguanliEntity> wrapper);
List<ChanpinkucunguanliView> selectListView(Pagination page,@Param("ew") Wrapper<ChanpinkucunguanliEntity> wrapper);
ChanpinkucunguanliView selectView(@Param("ew") Wrapper<ChanpinkucunguanliEntity> wrapper);
}

View File

@ -0,0 +1,33 @@
package com.dao;
import com.entity.ChanpinrukuEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import com.entity.vo.ChanpinrukuVO;
import com.entity.view.ChanpinrukuView;
/**
* 产品入库
*
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public interface ChanpinrukuDao extends BaseMapper<ChanpinrukuEntity> {
List<ChanpinrukuVO> selectListVO(@Param("ew") Wrapper<ChanpinrukuEntity> wrapper);
ChanpinrukuVO selectVO(@Param("ew") Wrapper<ChanpinrukuEntity> wrapper);
List<ChanpinrukuView> selectListView(@Param("ew") Wrapper<ChanpinrukuEntity> wrapper);
List<ChanpinrukuView> selectListView(Pagination page,@Param("ew") Wrapper<ChanpinrukuEntity> wrapper);
ChanpinrukuView selectView(@Param("ew") Wrapper<ChanpinrukuEntity> wrapper);
}

View File

@ -0,0 +1,26 @@
package com.dao;
import java.util.List;
import java.util.Map;
/**
* 通用接口
*/
public interface CommonDao{
List<String> getOption(Map<String, Object> params);
Map<String, Object> getFollowByOption(Map<String, Object> params);
List<String> getFollowByOption2(Map<String, Object> params);
void sh(Map<String, Object> params);
int remindCount(Map<String, Object> params);
Map<String, Object> selectCal(Map<String, Object> params);
List<Map<String, Object>> selectGroup(Map<String, Object> params);
List<Map<String, Object>> selectValue(Map<String, Object> params);
}

View File

@ -0,0 +1,12 @@
package com.dao;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.entity.ConfigEntity;
/**
* 配置
*/
public interface ConfigDao extends BaseMapper<ConfigEntity> {
}

View File

@ -0,0 +1,22 @@
package com.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.entity.TokenEntity;
/**
* token
*/
public interface TokenDao extends BaseMapper<TokenEntity> {
List<TokenEntity> selectListView(@Param("ew") Wrapper<TokenEntity> wrapper);
List<TokenEntity> selectListView(Pagination page,@Param("ew") Wrapper<TokenEntity> wrapper);
}

View File

@ -0,0 +1,22 @@
package com.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.entity.UserEntity;
/**
* 用户
*/
public interface UserDao extends BaseMapper<UserEntity> {
List<UserEntity> selectListView(@Param("ew") Wrapper<UserEntity> wrapper);
List<UserEntity> selectListView(Pagination page,@Param("ew") Wrapper<UserEntity> wrapper);
}

View File

@ -0,0 +1,33 @@
package com.dao;
import com.entity.YonghuEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import com.entity.vo.YonghuVO;
import com.entity.view.YonghuView;
/**
* 用户
*
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public interface YonghuDao extends BaseMapper<YonghuEntity> {
List<YonghuVO> selectListVO(@Param("ew") Wrapper<YonghuEntity> wrapper);
YonghuVO selectVO(@Param("ew") Wrapper<YonghuEntity> wrapper);
List<YonghuView> selectListView(@Param("ew") Wrapper<YonghuEntity> wrapper);
List<YonghuView> selectListView(Pagination page,@Param("ew") Wrapper<YonghuEntity> wrapper);
YonghuView selectView(@Param("ew") Wrapper<YonghuEntity> wrapper);
}

View File

@ -0,0 +1,33 @@
package com.dao;
import com.entity.YuancailiaochukuEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import com.entity.vo.YuancailiaochukuVO;
import com.entity.view.YuancailiaochukuView;
/**
* 原材料出库
*
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public interface YuancailiaochukuDao extends BaseMapper<YuancailiaochukuEntity> {
List<YuancailiaochukuVO> selectListVO(@Param("ew") Wrapper<YuancailiaochukuEntity> wrapper);
YuancailiaochukuVO selectVO(@Param("ew") Wrapper<YuancailiaochukuEntity> wrapper);
List<YuancailiaochukuView> selectListView(@Param("ew") Wrapper<YuancailiaochukuEntity> wrapper);
List<YuancailiaochukuView> selectListView(Pagination page,@Param("ew") Wrapper<YuancailiaochukuEntity> wrapper);
YuancailiaochukuView selectView(@Param("ew") Wrapper<YuancailiaochukuEntity> wrapper);
}

View File

@ -0,0 +1,33 @@
package com.dao;
import com.entity.YuancailiaokucunguanliEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import com.entity.vo.YuancailiaokucunguanliVO;
import com.entity.view.YuancailiaokucunguanliView;
/**
* 原材料库存管理
*
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public interface YuancailiaokucunguanliDao extends BaseMapper<YuancailiaokucunguanliEntity> {
List<YuancailiaokucunguanliVO> selectListVO(@Param("ew") Wrapper<YuancailiaokucunguanliEntity> wrapper);
YuancailiaokucunguanliVO selectVO(@Param("ew") Wrapper<YuancailiaokucunguanliEntity> wrapper);
List<YuancailiaokucunguanliView> selectListView(@Param("ew") Wrapper<YuancailiaokucunguanliEntity> wrapper);
List<YuancailiaokucunguanliView> selectListView(Pagination page,@Param("ew") Wrapper<YuancailiaokucunguanliEntity> wrapper);
YuancailiaokucunguanliView selectView(@Param("ew") Wrapper<YuancailiaokucunguanliEntity> wrapper);
}

View File

@ -0,0 +1,33 @@
package com.dao;
import com.entity.YuancailiaorukuEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import com.entity.vo.YuancailiaorukuVO;
import com.entity.view.YuancailiaorukuView;
/**
* 原材料入库
*
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public interface YuancailiaorukuDao extends BaseMapper<YuancailiaorukuEntity> {
List<YuancailiaorukuVO> selectListVO(@Param("ew") Wrapper<YuancailiaorukuEntity> wrapper);
YuancailiaorukuVO selectVO(@Param("ew") Wrapper<YuancailiaorukuEntity> wrapper);
List<YuancailiaorukuView> selectListView(@Param("ew") Wrapper<YuancailiaorukuEntity> wrapper);
List<YuancailiaorukuView> selectListView(Pagination page,@Param("ew") Wrapper<YuancailiaorukuEntity> wrapper);
YuancailiaorukuView selectView(@Param("ew") Wrapper<YuancailiaorukuEntity> wrapper);
}

View File

@ -0,0 +1,200 @@
package com.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
* 仓库信息
* 数据库通用操作实体类普通增删改查
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@TableName("cangkuxinxi")
public class CangkuxinxiEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
public CangkuxinxiEntity() {
}
public CangkuxinxiEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* 主键id
*/
@TableId
private Long id;
/**
* 仓库编号
*/
private String cangkubianhao;
/**
* 仓库名称
*/
private String cangkumingcheng;
/**
* 仓库位置
*/
private String cangkuweizhi;
/**
* 负责人
*/
private String fuzeren;
/**
* 位置
*/
private String weizhi;
/**
* 备注
*/
private String beizhu;
/**
* 仓库照片
*/
private String cangkuzhaopian;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date addtime;
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
* 设置仓库编号
*/
public void setCangkubianhao(String cangkubianhao) {
this.cangkubianhao = cangkubianhao;
}
/**
* 获取仓库编号
*/
public String getCangkubianhao() {
return cangkubianhao;
}
/**
* 设置仓库名称
*/
public void setCangkumingcheng(String cangkumingcheng) {
this.cangkumingcheng = cangkumingcheng;
}
/**
* 获取仓库名称
*/
public String getCangkumingcheng() {
return cangkumingcheng;
}
/**
* 设置仓库位置
*/
public void setCangkuweizhi(String cangkuweizhi) {
this.cangkuweizhi = cangkuweizhi;
}
/**
* 获取仓库位置
*/
public String getCangkuweizhi() {
return cangkuweizhi;
}
/**
* 设置负责人
*/
public void setFuzeren(String fuzeren) {
this.fuzeren = fuzeren;
}
/**
* 获取负责人
*/
public String getFuzeren() {
return fuzeren;
}
/**
* 设置位置
*/
public void setWeizhi(String weizhi) {
this.weizhi = weizhi;
}
/**
* 获取位置
*/
public String getWeizhi() {
return weizhi;
}
/**
* 设置备注
*/
public void setBeizhu(String beizhu) {
this.beizhu = beizhu;
}
/**
* 获取备注
*/
public String getBeizhu() {
return beizhu;
}
/**
* 设置仓库照片
*/
public void setCangkuzhaopian(String cangkuzhaopian) {
this.cangkuzhaopian = cangkuzhaopian;
}
/**
* 获取仓库照片
*/
public String getCangkuzhaopian() {
return cangkuzhaopian;
}
}

View File

@ -0,0 +1,202 @@
package com.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
* 产品出库
* 数据库通用操作实体类普通增删改查
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@TableName("chanpinchuku")
public class ChanpinchukuEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
public ChanpinchukuEntity() {
}
public ChanpinchukuEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* 主键id
*/
@TableId
private Long id;
/**
* 产品出库编号
*/
private String chanpinchukubianhao;
/**
* 产品名称
*/
private String chanpinmingcheng;
/**
* 产品品牌
*/
private String chanpinpinpai;
/**
* 产品出库价格
*/
private String chanpinchukujiage;
/**
* 库存数
*/
private Integer kucunshu;
/**
* 产品出库时间
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date chanpinchukushijian;
/**
* 备注
*/
private String beizhu;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date addtime;
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
* 设置产品出库编号
*/
public void setChanpinchukubianhao(String chanpinchukubianhao) {
this.chanpinchukubianhao = chanpinchukubianhao;
}
/**
* 获取产品出库编号
*/
public String getChanpinchukubianhao() {
return chanpinchukubianhao;
}
/**
* 设置产品名称
*/
public void setChanpinmingcheng(String chanpinmingcheng) {
this.chanpinmingcheng = chanpinmingcheng;
}
/**
* 获取产品名称
*/
public String getChanpinmingcheng() {
return chanpinmingcheng;
}
/**
* 设置产品品牌
*/
public void setChanpinpinpai(String chanpinpinpai) {
this.chanpinpinpai = chanpinpinpai;
}
/**
* 获取产品品牌
*/
public String getChanpinpinpai() {
return chanpinpinpai;
}
/**
* 设置产品出库价格
*/
public void setChanpinchukujiage(String chanpinchukujiage) {
this.chanpinchukujiage = chanpinchukujiage;
}
/**
* 获取产品出库价格
*/
public String getChanpinchukujiage() {
return chanpinchukujiage;
}
/**
* 设置库存数
*/
public void setKucunshu(Integer kucunshu) {
this.kucunshu = kucunshu;
}
/**
* 获取库存数
*/
public Integer getKucunshu() {
return kucunshu;
}
/**
* 设置产品出库时间
*/
public void setChanpinchukushijian(Date chanpinchukushijian) {
this.chanpinchukushijian = chanpinchukushijian;
}
/**
* 获取产品出库时间
*/
public Date getChanpinchukushijian() {
return chanpinchukushijian;
}
/**
* 设置备注
*/
public void setBeizhu(String beizhu) {
this.beizhu = beizhu;
}
/**
* 获取备注
*/
public String getBeizhu() {
return beizhu;
}
}

View File

@ -0,0 +1,166 @@
package com.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
* 产品库存管理
* 数据库通用操作实体类普通增删改查
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@TableName("chanpinkucunguanli")
public class ChanpinkucunguanliEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
public ChanpinkucunguanliEntity() {
}
public ChanpinkucunguanliEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* 主键id
*/
@TableId
private Long id;
/**
* 产品编号
*/
private String chanpinbianhao;
/**
* 品牌
*/
private String pinpai;
/**
* 库存数
*/
private Integer kucunshu;
/**
* 备注
*/
private String beizhu;
/**
* 更新时间
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date gengxinshijian;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date addtime;
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
* 设置产品编号
*/
public void setChanpinbianhao(String chanpinbianhao) {
this.chanpinbianhao = chanpinbianhao;
}
/**
* 获取产品编号
*/
public String getChanpinbianhao() {
return chanpinbianhao;
}
/**
* 设置品牌
*/
public void setPinpai(String pinpai) {
this.pinpai = pinpai;
}
/**
* 获取品牌
*/
public String getPinpai() {
return pinpai;
}
/**
* 设置库存数
*/
public void setKucunshu(Integer kucunshu) {
this.kucunshu = kucunshu;
}
/**
* 获取库存数
*/
public Integer getKucunshu() {
return kucunshu;
}
/**
* 设置备注
*/
public void setBeizhu(String beizhu) {
this.beizhu = beizhu;
}
/**
* 获取备注
*/
public String getBeizhu() {
return beizhu;
}
/**
* 设置更新时间
*/
public void setGengxinshijian(Date gengxinshijian) {
this.gengxinshijian = gengxinshijian;
}
/**
* 获取更新时间
*/
public Date getGengxinshijian() {
return gengxinshijian;
}
}

View File

@ -0,0 +1,202 @@
package com.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
* 产品入库
* 数据库通用操作实体类普通增删改查
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@TableName("chanpinruku")
public class ChanpinrukuEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
public ChanpinrukuEntity() {
}
public ChanpinrukuEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* 主键id
*/
@TableId
private Long id;
/**
* 产品入库编号
*/
private String chanpinrukubianhao;
/**
* 产品名称
*/
private String chanpinmingcheng;
/**
* 产品品牌
*/
private String chanpinpinpai;
/**
* 产品入库价格
*/
private String chanpinrukujiage;
/**
* 产品入库时间
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date chanpinrukushijian;
/**
* 库存数
*/
private Integer kucunshu;
/**
* 备注
*/
private String beizhu;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date addtime;
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
* 设置产品入库编号
*/
public void setChanpinrukubianhao(String chanpinrukubianhao) {
this.chanpinrukubianhao = chanpinrukubianhao;
}
/**
* 获取产品入库编号
*/
public String getChanpinrukubianhao() {
return chanpinrukubianhao;
}
/**
* 设置产品名称
*/
public void setChanpinmingcheng(String chanpinmingcheng) {
this.chanpinmingcheng = chanpinmingcheng;
}
/**
* 获取产品名称
*/
public String getChanpinmingcheng() {
return chanpinmingcheng;
}
/**
* 设置产品品牌
*/
public void setChanpinpinpai(String chanpinpinpai) {
this.chanpinpinpai = chanpinpinpai;
}
/**
* 获取产品品牌
*/
public String getChanpinpinpai() {
return chanpinpinpai;
}
/**
* 设置产品入库价格
*/
public void setChanpinrukujiage(String chanpinrukujiage) {
this.chanpinrukujiage = chanpinrukujiage;
}
/**
* 获取产品入库价格
*/
public String getChanpinrukujiage() {
return chanpinrukujiage;
}
/**
* 设置产品入库时间
*/
public void setChanpinrukushijian(Date chanpinrukushijian) {
this.chanpinrukushijian = chanpinrukushijian;
}
/**
* 获取产品入库时间
*/
public Date getChanpinrukushijian() {
return chanpinrukushijian;
}
/**
* 设置库存数
*/
public void setKucunshu(Integer kucunshu) {
this.kucunshu = kucunshu;
}
/**
* 获取库存数
*/
public Integer getKucunshu() {
return kucunshu;
}
/**
* 设置备注
*/
public void setBeizhu(String beizhu) {
this.beizhu = beizhu;
}
/**
* 获取备注
*/
public String getBeizhu() {
return beizhu;
}
}

View File

@ -0,0 +1,53 @@
package com.entity;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
/**
* 类说明 :
*/
@TableName("config")
public class ConfigEntity implements Serializable{
private static final long serialVersionUID = 1L;
@TableId(type = IdType.AUTO)
private Long id;
/**
* key
*/
private String name;
/**
* value
*/
private String value;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
}

View File

@ -0,0 +1,52 @@
package com.entity;
/**
* 自定义异常
*/
public class EIException extends RuntimeException {
private static final long serialVersionUID = 1L;
private String msg;
private int code = 500;
public EIException(String msg) {
super(msg);
this.msg = msg;
}
public EIException(String msg, Throwable e) {
super(msg, e);
this.msg = msg;
}
public EIException(String msg, int code) {
super(msg);
this.msg = msg;
this.code = code;
}
public EIException(String msg, int code, Throwable e) {
super(msg, e);
this.msg = msg;
this.code = code;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
}

View File

@ -0,0 +1,132 @@
package com.entity;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
/**
* token表
*/
@TableName("token")
public class TokenEntity implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(type = IdType.AUTO)
private Long id;
/**
* 用户id
*/
private Long userid;
/**
* 用户名
*/
private String username;
/**
* 表名
*/
private String tablename;
/**
* 角色
*/
private String role;
/**
* token
*/
private String token;
/**
* 过期时间
*/
private Date expiratedtime;
/**
* 新增时间
*/
private Date addtime;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getUserid() {
return userid;
}
public void setUserid(Long userid) {
this.userid = userid;
}
public String getRole() {
return role;
}
public void setRole(String role) {
this.role = role;
}
public String getToken() {
return token;
}
public String getTablename() {
return tablename;
}
public void setTablename(String tablename) {
this.tablename = tablename;
}
public void setToken(String token) {
this.token = token;
}
public Date getExpiratedtime() {
return expiratedtime;
}
public void setExpiratedtime(Date expiratedtime) {
this.expiratedtime = expiratedtime;
}
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public TokenEntity(Long userid, String username, String tablename,String role, String token, Date expiratedtime) {
super();
this.userid = userid;
this.username = username;
this.tablename = tablename;
this.role = role;
this.token = token;
this.expiratedtime = expiratedtime;
}
public TokenEntity() {
}
}

View File

@ -0,0 +1,77 @@
package com.entity;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
/**
* 用户
*/
@TableName("users")
public class UserEntity implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(type = IdType.AUTO)
private Long id;
/**
* 用户账号
*/
private String username;
/**
* 密码
*/
private String password;
/**
* 用户类型
*/
private String role;
private Date addtime;
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getRole() {
return role;
}
public void setRole(String role) {
this.role = role;
}
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
}

View File

@ -0,0 +1,200 @@
package com.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
* 用户
* 数据库通用操作实体类普通增删改查
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@TableName("yonghu")
public class YonghuEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
public YonghuEntity() {
}
public YonghuEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* 主键id
*/
@TableId
private Long id;
/**
* 账号
*/
private String zhanghao;
/**
* 密码
*/
private String mima;
/**
* 姓名
*/
private String xingming;
/**
* 性别
*/
private String xingbie;
/**
* 手机
*/
private String shouji;
/**
* 邮箱
*/
private String youxiang;
/**
* 照片
*/
private String zhaopian;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date addtime;
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
* 设置账号
*/
public void setZhanghao(String zhanghao) {
this.zhanghao = zhanghao;
}
/**
* 获取账号
*/
public String getZhanghao() {
return zhanghao;
}
/**
* 设置密码
*/
public void setMima(String mima) {
this.mima = mima;
}
/**
* 获取密码
*/
public String getMima() {
return mima;
}
/**
* 设置姓名
*/
public void setXingming(String xingming) {
this.xingming = xingming;
}
/**
* 获取姓名
*/
public String getXingming() {
return xingming;
}
/**
* 设置性别
*/
public void setXingbie(String xingbie) {
this.xingbie = xingbie;
}
/**
* 获取性别
*/
public String getXingbie() {
return xingbie;
}
/**
* 设置手机
*/
public void setShouji(String shouji) {
this.shouji = shouji;
}
/**
* 获取手机
*/
public String getShouji() {
return shouji;
}
/**
* 设置邮箱
*/
public void setYouxiang(String youxiang) {
this.youxiang = youxiang;
}
/**
* 获取邮箱
*/
public String getYouxiang() {
return youxiang;
}
/**
* 设置照片
*/
public void setZhaopian(String zhaopian) {
this.zhaopian = zhaopian;
}
/**
* 获取照片
*/
public String getZhaopian() {
return zhaopian;
}
}

View File

@ -0,0 +1,184 @@
package com.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
* 原材料出库
* 数据库通用操作实体类普通增删改查
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@TableName("yuancailiaochuku")
public class YuancailiaochukuEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
public YuancailiaochukuEntity() {
}
public YuancailiaochukuEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* 主键id
*/
@TableId
private Long id;
/**
* 出库编号
*/
private String chukubianhao;
/**
* 出库品牌
*/
private String chukupinpai;
/**
* 库存数
*/
private Integer kucunshu;
/**
* 出库价格
*/
private String chukujiage;
/**
* 出库时间
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date chukushijian;
/**
* 备注
*/
private String beizhu;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date addtime;
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
* 设置出库编号
*/
public void setChukubianhao(String chukubianhao) {
this.chukubianhao = chukubianhao;
}
/**
* 获取出库编号
*/
public String getChukubianhao() {
return chukubianhao;
}
/**
* 设置出库品牌
*/
public void setChukupinpai(String chukupinpai) {
this.chukupinpai = chukupinpai;
}
/**
* 获取出库品牌
*/
public String getChukupinpai() {
return chukupinpai;
}
/**
* 设置库存数
*/
public void setKucunshu(Integer kucunshu) {
this.kucunshu = kucunshu;
}
/**
* 获取库存数
*/
public Integer getKucunshu() {
return kucunshu;
}
/**
* 设置出库价格
*/
public void setChukujiage(String chukujiage) {
this.chukujiage = chukujiage;
}
/**
* 获取出库价格
*/
public String getChukujiage() {
return chukujiage;
}
/**
* 设置出库时间
*/
public void setChukushijian(Date chukushijian) {
this.chukushijian = chukushijian;
}
/**
* 获取出库时间
*/
public Date getChukushijian() {
return chukushijian;
}
/**
* 设置备注
*/
public void setBeizhu(String beizhu) {
this.beizhu = beizhu;
}
/**
* 获取备注
*/
public String getBeizhu() {
return beizhu;
}
}

View File

@ -0,0 +1,166 @@
package com.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
* 原材料库存管理
* 数据库通用操作实体类普通增删改查
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@TableName("yuancailiaokucunguanli")
public class YuancailiaokucunguanliEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
public YuancailiaokucunguanliEntity() {
}
public YuancailiaokucunguanliEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* 主键id
*/
@TableId
private Long id;
/**
* 材料编号
*/
private String cailiaobianhao;
/**
* 储存仓库名
*/
private String chucuncangkuming;
/**
* 库存数
*/
private Integer kucunshu;
/**
* 更新时间
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date gengxinshijian;
/**
* 备注
*/
private String beizhu;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date addtime;
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
* 设置材料编号
*/
public void setCailiaobianhao(String cailiaobianhao) {
this.cailiaobianhao = cailiaobianhao;
}
/**
* 获取材料编号
*/
public String getCailiaobianhao() {
return cailiaobianhao;
}
/**
* 设置储存仓库名
*/
public void setChucuncangkuming(String chucuncangkuming) {
this.chucuncangkuming = chucuncangkuming;
}
/**
* 获取储存仓库名
*/
public String getChucuncangkuming() {
return chucuncangkuming;
}
/**
* 设置库存数
*/
public void setKucunshu(Integer kucunshu) {
this.kucunshu = kucunshu;
}
/**
* 获取库存数
*/
public Integer getKucunshu() {
return kucunshu;
}
/**
* 设置更新时间
*/
public void setGengxinshijian(Date gengxinshijian) {
this.gengxinshijian = gengxinshijian;
}
/**
* 获取更新时间
*/
public Date getGengxinshijian() {
return gengxinshijian;
}
/**
* 设置备注
*/
public void setBeizhu(String beizhu) {
this.beizhu = beizhu;
}
/**
* 获取备注
*/
public String getBeizhu() {
return beizhu;
}
}

View File

@ -0,0 +1,184 @@
package com.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
/**
* 原材料入库
* 数据库通用操作实体类普通增删改查
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@TableName("yuancailiaoruku")
public class YuancailiaorukuEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
public YuancailiaorukuEntity() {
}
public YuancailiaorukuEntity(T t) {
try {
BeanUtils.copyProperties(this, t);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* 主键id
*/
@TableId
private Long id;
/**
* 入库编号
*/
private String rukubianhao;
/**
* 入库品牌
*/
private String rukupinpai;
/**
* 库存数
*/
private Integer kucunshu;
/**
* 入库价格
*/
private String rukujiage;
/**
* 入库时间
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date rukushijian;
/**
* 备注
*/
private String beizhu;
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date addtime;
public Date getAddtime() {
return addtime;
}
public void setAddtime(Date addtime) {
this.addtime = addtime;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
* 设置入库编号
*/
public void setRukubianhao(String rukubianhao) {
this.rukubianhao = rukubianhao;
}
/**
* 获取入库编号
*/
public String getRukubianhao() {
return rukubianhao;
}
/**
* 设置入库品牌
*/
public void setRukupinpai(String rukupinpai) {
this.rukupinpai = rukupinpai;
}
/**
* 获取入库品牌
*/
public String getRukupinpai() {
return rukupinpai;
}
/**
* 设置库存数
*/
public void setKucunshu(Integer kucunshu) {
this.kucunshu = kucunshu;
}
/**
* 获取库存数
*/
public Integer getKucunshu() {
return kucunshu;
}
/**
* 设置入库价格
*/
public void setRukujiage(String rukujiage) {
this.rukujiage = rukujiage;
}
/**
* 获取入库价格
*/
public String getRukujiage() {
return rukujiage;
}
/**
* 设置入库时间
*/
public void setRukushijian(Date rukushijian) {
this.rukushijian = rukushijian;
}
/**
* 获取入库时间
*/
public Date getRukushijian() {
return rukushijian;
}
/**
* 设置备注
*/
public void setBeizhu(String beizhu) {
this.beizhu = beizhu;
}
/**
* 获取备注
*/
public String getBeizhu() {
return beizhu;
}
}

View File

@ -0,0 +1,157 @@
package com.entity.model;
import com.entity.CangkuxinxiEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* 仓库信息
* 接收传参的实体类
*实际开发中配合移动端接口开发手动去掉些没用的字段 后端一般用entity就够用了
* 取自ModelAndView 的model名称
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public class CangkuxinxiModel implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 仓库名称
*/
private String cangkumingcheng;
/**
* 仓库位置
*/
private String cangkuweizhi;
/**
* 负责人
*/
private String fuzeren;
/**
* 位置
*/
private String weizhi;
/**
* 备注
*/
private String beizhu;
/**
* 仓库照片
*/
private String cangkuzhaopian;
/**
* 设置仓库名称
*/
public void setCangkumingcheng(String cangkumingcheng) {
this.cangkumingcheng = cangkumingcheng;
}
/**
* 获取仓库名称
*/
public String getCangkumingcheng() {
return cangkumingcheng;
}
/**
* 设置仓库位置
*/
public void setCangkuweizhi(String cangkuweizhi) {
this.cangkuweizhi = cangkuweizhi;
}
/**
* 获取仓库位置
*/
public String getCangkuweizhi() {
return cangkuweizhi;
}
/**
* 设置负责人
*/
public void setFuzeren(String fuzeren) {
this.fuzeren = fuzeren;
}
/**
* 获取负责人
*/
public String getFuzeren() {
return fuzeren;
}
/**
* 设置位置
*/
public void setWeizhi(String weizhi) {
this.weizhi = weizhi;
}
/**
* 获取位置
*/
public String getWeizhi() {
return weizhi;
}
/**
* 设置备注
*/
public void setBeizhu(String beizhu) {
this.beizhu = beizhu;
}
/**
* 获取备注
*/
public String getBeizhu() {
return beizhu;
}
/**
* 设置仓库照片
*/
public void setCangkuzhaopian(String cangkuzhaopian) {
this.cangkuzhaopian = cangkuzhaopian;
}
/**
* 获取仓库照片
*/
public String getCangkuzhaopian() {
return cangkuzhaopian;
}
}

View File

@ -0,0 +1,159 @@
package com.entity.model;
import com.entity.ChanpinchukuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* 产品出库
* 接收传参的实体类
*实际开发中配合移动端接口开发手动去掉些没用的字段 后端一般用entity就够用了
* 取自ModelAndView 的model名称
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public class ChanpinchukuModel implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 产品名称
*/
private String chanpinmingcheng;
/**
* 产品品牌
*/
private String chanpinpinpai;
/**
* 产品出库价格
*/
private String chanpinchukujiage;
/**
* 库存数
*/
private Integer kucunshu;
/**
* 产品出库时间
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date chanpinchukushijian;
/**
* 备注
*/
private String beizhu;
/**
* 设置产品名称
*/
public void setChanpinmingcheng(String chanpinmingcheng) {
this.chanpinmingcheng = chanpinmingcheng;
}
/**
* 获取产品名称
*/
public String getChanpinmingcheng() {
return chanpinmingcheng;
}
/**
* 设置产品品牌
*/
public void setChanpinpinpai(String chanpinpinpai) {
this.chanpinpinpai = chanpinpinpai;
}
/**
* 获取产品品牌
*/
public String getChanpinpinpai() {
return chanpinpinpai;
}
/**
* 设置产品出库价格
*/
public void setChanpinchukujiage(String chanpinchukujiage) {
this.chanpinchukujiage = chanpinchukujiage;
}
/**
* 获取产品出库价格
*/
public String getChanpinchukujiage() {
return chanpinchukujiage;
}
/**
* 设置库存数
*/
public void setKucunshu(Integer kucunshu) {
this.kucunshu = kucunshu;
}
/**
* 获取库存数
*/
public Integer getKucunshu() {
return kucunshu;
}
/**
* 设置产品出库时间
*/
public void setChanpinchukushijian(Date chanpinchukushijian) {
this.chanpinchukushijian = chanpinchukushijian;
}
/**
* 获取产品出库时间
*/
public Date getChanpinchukushijian() {
return chanpinchukushijian;
}
/**
* 设置备注
*/
public void setBeizhu(String beizhu) {
this.beizhu = beizhu;
}
/**
* 获取备注
*/
public String getBeizhu() {
return beizhu;
}
}

View File

@ -0,0 +1,115 @@
package com.entity.model;
import com.entity.ChanpinkucunguanliEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* 产品库存管理
* 接收传参的实体类
*实际开发中配合移动端接口开发手动去掉些没用的字段 后端一般用entity就够用了
* 取自ModelAndView 的model名称
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public class ChanpinkucunguanliModel implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 品牌
*/
private String pinpai;
/**
* 库存数
*/
private Integer kucunshu;
/**
* 备注
*/
private String beizhu;
/**
* 更新时间
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date gengxinshijian;
/**
* 设置品牌
*/
public void setPinpai(String pinpai) {
this.pinpai = pinpai;
}
/**
* 获取品牌
*/
public String getPinpai() {
return pinpai;
}
/**
* 设置库存数
*/
public void setKucunshu(Integer kucunshu) {
this.kucunshu = kucunshu;
}
/**
* 获取库存数
*/
public Integer getKucunshu() {
return kucunshu;
}
/**
* 设置备注
*/
public void setBeizhu(String beizhu) {
this.beizhu = beizhu;
}
/**
* 获取备注
*/
public String getBeizhu() {
return beizhu;
}
/**
* 设置更新时间
*/
public void setGengxinshijian(Date gengxinshijian) {
this.gengxinshijian = gengxinshijian;
}
/**
* 获取更新时间
*/
public Date getGengxinshijian() {
return gengxinshijian;
}
}

View File

@ -0,0 +1,159 @@
package com.entity.model;
import com.entity.ChanpinrukuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* 产品入库
* 接收传参的实体类
*实际开发中配合移动端接口开发手动去掉些没用的字段 后端一般用entity就够用了
* 取自ModelAndView 的model名称
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public class ChanpinrukuModel implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 产品名称
*/
private String chanpinmingcheng;
/**
* 产品品牌
*/
private String chanpinpinpai;
/**
* 产品入库价格
*/
private String chanpinrukujiage;
/**
* 产品入库时间
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date chanpinrukushijian;
/**
* 库存数
*/
private Integer kucunshu;
/**
* 备注
*/
private String beizhu;
/**
* 设置产品名称
*/
public void setChanpinmingcheng(String chanpinmingcheng) {
this.chanpinmingcheng = chanpinmingcheng;
}
/**
* 获取产品名称
*/
public String getChanpinmingcheng() {
return chanpinmingcheng;
}
/**
* 设置产品品牌
*/
public void setChanpinpinpai(String chanpinpinpai) {
this.chanpinpinpai = chanpinpinpai;
}
/**
* 获取产品品牌
*/
public String getChanpinpinpai() {
return chanpinpinpai;
}
/**
* 设置产品入库价格
*/
public void setChanpinrukujiage(String chanpinrukujiage) {
this.chanpinrukujiage = chanpinrukujiage;
}
/**
* 获取产品入库价格
*/
public String getChanpinrukujiage() {
return chanpinrukujiage;
}
/**
* 设置产品入库时间
*/
public void setChanpinrukushijian(Date chanpinrukushijian) {
this.chanpinrukushijian = chanpinrukushijian;
}
/**
* 获取产品入库时间
*/
public Date getChanpinrukushijian() {
return chanpinrukushijian;
}
/**
* 设置库存数
*/
public void setKucunshu(Integer kucunshu) {
this.kucunshu = kucunshu;
}
/**
* 获取库存数
*/
public Integer getKucunshu() {
return kucunshu;
}
/**
* 设置备注
*/
public void setBeizhu(String beizhu) {
this.beizhu = beizhu;
}
/**
* 获取备注
*/
public String getBeizhu() {
return beizhu;
}
}

View File

@ -0,0 +1,157 @@
package com.entity.model;
import com.entity.YonghuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* 用户
* 接收传参的实体类
*实际开发中配合移动端接口开发手动去掉些没用的字段 后端一般用entity就够用了
* 取自ModelAndView 的model名称
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public class YonghuModel implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 密码
*/
private String mima;
/**
* 姓名
*/
private String xingming;
/**
* 性别
*/
private String xingbie;
/**
* 手机
*/
private String shouji;
/**
* 邮箱
*/
private String youxiang;
/**
* 照片
*/
private String zhaopian;
/**
* 设置密码
*/
public void setMima(String mima) {
this.mima = mima;
}
/**
* 获取密码
*/
public String getMima() {
return mima;
}
/**
* 设置姓名
*/
public void setXingming(String xingming) {
this.xingming = xingming;
}
/**
* 获取姓名
*/
public String getXingming() {
return xingming;
}
/**
* 设置性别
*/
public void setXingbie(String xingbie) {
this.xingbie = xingbie;
}
/**
* 获取性别
*/
public String getXingbie() {
return xingbie;
}
/**
* 设置手机
*/
public void setShouji(String shouji) {
this.shouji = shouji;
}
/**
* 获取手机
*/
public String getShouji() {
return shouji;
}
/**
* 设置邮箱
*/
public void setYouxiang(String youxiang) {
this.youxiang = youxiang;
}
/**
* 获取邮箱
*/
public String getYouxiang() {
return youxiang;
}
/**
* 设置照片
*/
public void setZhaopian(String zhaopian) {
this.zhaopian = zhaopian;
}
/**
* 获取照片
*/
public String getZhaopian() {
return zhaopian;
}
}

View File

@ -0,0 +1,137 @@
package com.entity.model;
import com.entity.YuancailiaochukuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* 原材料出库
* 接收传参的实体类
*实际开发中配合移动端接口开发手动去掉些没用的字段 后端一般用entity就够用了
* 取自ModelAndView 的model名称
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public class YuancailiaochukuModel implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 出库品牌
*/
private String chukupinpai;
/**
* 库存数
*/
private Integer kucunshu;
/**
* 出库价格
*/
private String chukujiage;
/**
* 出库时间
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date chukushijian;
/**
* 备注
*/
private String beizhu;
/**
* 设置出库品牌
*/
public void setChukupinpai(String chukupinpai) {
this.chukupinpai = chukupinpai;
}
/**
* 获取出库品牌
*/
public String getChukupinpai() {
return chukupinpai;
}
/**
* 设置库存数
*/
public void setKucunshu(Integer kucunshu) {
this.kucunshu = kucunshu;
}
/**
* 获取库存数
*/
public Integer getKucunshu() {
return kucunshu;
}
/**
* 设置出库价格
*/
public void setChukujiage(String chukujiage) {
this.chukujiage = chukujiage;
}
/**
* 获取出库价格
*/
public String getChukujiage() {
return chukujiage;
}
/**
* 设置出库时间
*/
public void setChukushijian(Date chukushijian) {
this.chukushijian = chukushijian;
}
/**
* 获取出库时间
*/
public Date getChukushijian() {
return chukushijian;
}
/**
* 设置备注
*/
public void setBeizhu(String beizhu) {
this.beizhu = beizhu;
}
/**
* 获取备注
*/
public String getBeizhu() {
return beizhu;
}
}

View File

@ -0,0 +1,115 @@
package com.entity.model;
import com.entity.YuancailiaokucunguanliEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* 原材料库存管理
* 接收传参的实体类
*实际开发中配合移动端接口开发手动去掉些没用的字段 后端一般用entity就够用了
* 取自ModelAndView 的model名称
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public class YuancailiaokucunguanliModel implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 储存仓库名
*/
private String chucuncangkuming;
/**
* 库存数
*/
private Integer kucunshu;
/**
* 更新时间
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date gengxinshijian;
/**
* 备注
*/
private String beizhu;
/**
* 设置储存仓库名
*/
public void setChucuncangkuming(String chucuncangkuming) {
this.chucuncangkuming = chucuncangkuming;
}
/**
* 获取储存仓库名
*/
public String getChucuncangkuming() {
return chucuncangkuming;
}
/**
* 设置库存数
*/
public void setKucunshu(Integer kucunshu) {
this.kucunshu = kucunshu;
}
/**
* 获取库存数
*/
public Integer getKucunshu() {
return kucunshu;
}
/**
* 设置更新时间
*/
public void setGengxinshijian(Date gengxinshijian) {
this.gengxinshijian = gengxinshijian;
}
/**
* 获取更新时间
*/
public Date getGengxinshijian() {
return gengxinshijian;
}
/**
* 设置备注
*/
public void setBeizhu(String beizhu) {
this.beizhu = beizhu;
}
/**
* 获取备注
*/
public String getBeizhu() {
return beizhu;
}
}

View File

@ -0,0 +1,137 @@
package com.entity.model;
import com.entity.YuancailiaorukuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* 原材料入库
* 接收传参的实体类
*实际开发中配合移动端接口开发手动去掉些没用的字段 后端一般用entity就够用了
* 取自ModelAndView 的model名称
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public class YuancailiaorukuModel implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 入库品牌
*/
private String rukupinpai;
/**
* 库存数
*/
private Integer kucunshu;
/**
* 入库价格
*/
private String rukujiage;
/**
* 入库时间
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date rukushijian;
/**
* 备注
*/
private String beizhu;
/**
* 设置入库品牌
*/
public void setRukupinpai(String rukupinpai) {
this.rukupinpai = rukupinpai;
}
/**
* 获取入库品牌
*/
public String getRukupinpai() {
return rukupinpai;
}
/**
* 设置库存数
*/
public void setKucunshu(Integer kucunshu) {
this.kucunshu = kucunshu;
}
/**
* 获取库存数
*/
public Integer getKucunshu() {
return kucunshu;
}
/**
* 设置入库价格
*/
public void setRukujiage(String rukujiage) {
this.rukujiage = rukujiage;
}
/**
* 获取入库价格
*/
public String getRukujiage() {
return rukujiage;
}
/**
* 设置入库时间
*/
public void setRukushijian(Date rukushijian) {
this.rukushijian = rukushijian;
}
/**
* 获取入库时间
*/
public Date getRukushijian() {
return rukushijian;
}
/**
* 设置备注
*/
public void setBeizhu(String beizhu) {
this.beizhu = beizhu;
}
/**
* 获取备注
*/
public String getBeizhu() {
return beizhu;
}
}

View File

@ -0,0 +1,36 @@
package com.entity.view;
import com.entity.CangkuxinxiEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
/**
* 仓库信息
* 后端返回视图实体辅助类
* 通常后端关联的表或者自定义的字段需要返回使用
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@TableName("cangkuxinxi")
public class CangkuxinxiView extends CangkuxinxiEntity implements Serializable {
private static final long serialVersionUID = 1L;
public CangkuxinxiView(){
}
public CangkuxinxiView(CangkuxinxiEntity cangkuxinxiEntity){
try {
BeanUtils.copyProperties(this, cangkuxinxiEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

View File

@ -0,0 +1,36 @@
package com.entity.view;
import com.entity.ChanpinchukuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
/**
* 产品出库
* 后端返回视图实体辅助类
* 通常后端关联的表或者自定义的字段需要返回使用
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@TableName("chanpinchuku")
public class ChanpinchukuView extends ChanpinchukuEntity implements Serializable {
private static final long serialVersionUID = 1L;
public ChanpinchukuView(){
}
public ChanpinchukuView(ChanpinchukuEntity chanpinchukuEntity){
try {
BeanUtils.copyProperties(this, chanpinchukuEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

View File

@ -0,0 +1,36 @@
package com.entity.view;
import com.entity.ChanpinkucunguanliEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
/**
* 产品库存管理
* 后端返回视图实体辅助类
* 通常后端关联的表或者自定义的字段需要返回使用
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@TableName("chanpinkucunguanli")
public class ChanpinkucunguanliView extends ChanpinkucunguanliEntity implements Serializable {
private static final long serialVersionUID = 1L;
public ChanpinkucunguanliView(){
}
public ChanpinkucunguanliView(ChanpinkucunguanliEntity chanpinkucunguanliEntity){
try {
BeanUtils.copyProperties(this, chanpinkucunguanliEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

View File

@ -0,0 +1,36 @@
package com.entity.view;
import com.entity.ChanpinrukuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
/**
* 产品入库
* 后端返回视图实体辅助类
* 通常后端关联的表或者自定义的字段需要返回使用
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@TableName("chanpinruku")
public class ChanpinrukuView extends ChanpinrukuEntity implements Serializable {
private static final long serialVersionUID = 1L;
public ChanpinrukuView(){
}
public ChanpinrukuView(ChanpinrukuEntity chanpinrukuEntity){
try {
BeanUtils.copyProperties(this, chanpinrukuEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

View File

@ -0,0 +1,36 @@
package com.entity.view;
import com.entity.YonghuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
/**
* 用户
* 后端返回视图实体辅助类
* 通常后端关联的表或者自定义的字段需要返回使用
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@TableName("yonghu")
public class YonghuView extends YonghuEntity implements Serializable {
private static final long serialVersionUID = 1L;
public YonghuView(){
}
public YonghuView(YonghuEntity yonghuEntity){
try {
BeanUtils.copyProperties(this, yonghuEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

View File

@ -0,0 +1,36 @@
package com.entity.view;
import com.entity.YuancailiaochukuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
/**
* 原材料出库
* 后端返回视图实体辅助类
* 通常后端关联的表或者自定义的字段需要返回使用
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@TableName("yuancailiaochuku")
public class YuancailiaochukuView extends YuancailiaochukuEntity implements Serializable {
private static final long serialVersionUID = 1L;
public YuancailiaochukuView(){
}
public YuancailiaochukuView(YuancailiaochukuEntity yuancailiaochukuEntity){
try {
BeanUtils.copyProperties(this, yuancailiaochukuEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

View File

@ -0,0 +1,36 @@
package com.entity.view;
import com.entity.YuancailiaokucunguanliEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
/**
* 原材料库存管理
* 后端返回视图实体辅助类
* 通常后端关联的表或者自定义的字段需要返回使用
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@TableName("yuancailiaokucunguanli")
public class YuancailiaokucunguanliView extends YuancailiaokucunguanliEntity implements Serializable {
private static final long serialVersionUID = 1L;
public YuancailiaokucunguanliView(){
}
public YuancailiaokucunguanliView(YuancailiaokucunguanliEntity yuancailiaokucunguanliEntity){
try {
BeanUtils.copyProperties(this, yuancailiaokucunguanliEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

View File

@ -0,0 +1,36 @@
package com.entity.view;
import com.entity.YuancailiaorukuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;
import java.io.Serializable;
/**
* 原材料入库
* 后端返回视图实体辅助类
* 通常后端关联的表或者自定义的字段需要返回使用
* @author
* @email
* @date 2021-05-04 17:08:36
*/
@TableName("yuancailiaoruku")
public class YuancailiaorukuView extends YuancailiaorukuEntity implements Serializable {
private static final long serialVersionUID = 1L;
public YuancailiaorukuView(){
}
public YuancailiaorukuView(YuancailiaorukuEntity yuancailiaorukuEntity){
try {
BeanUtils.copyProperties(this, yuancailiaorukuEntity);
} catch (IllegalAccessException | InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

View File

@ -0,0 +1,157 @@
package com.entity.vo;
import com.entity.CangkuxinxiEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* 仓库信息
* 手机端接口返回实体辅助类
* 主要作用去除一些不必要的字段
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public class CangkuxinxiVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 仓库名称
*/
private String cangkumingcheng;
/**
* 仓库位置
*/
private String cangkuweizhi;
/**
* 负责人
*/
private String fuzeren;
/**
* 位置
*/
private String weizhi;
/**
* 备注
*/
private String beizhu;
/**
* 仓库照片
*/
private String cangkuzhaopian;
/**
* 设置仓库名称
*/
public void setCangkumingcheng(String cangkumingcheng) {
this.cangkumingcheng = cangkumingcheng;
}
/**
* 获取仓库名称
*/
public String getCangkumingcheng() {
return cangkumingcheng;
}
/**
* 设置仓库位置
*/
public void setCangkuweizhi(String cangkuweizhi) {
this.cangkuweizhi = cangkuweizhi;
}
/**
* 获取仓库位置
*/
public String getCangkuweizhi() {
return cangkuweizhi;
}
/**
* 设置负责人
*/
public void setFuzeren(String fuzeren) {
this.fuzeren = fuzeren;
}
/**
* 获取负责人
*/
public String getFuzeren() {
return fuzeren;
}
/**
* 设置位置
*/
public void setWeizhi(String weizhi) {
this.weizhi = weizhi;
}
/**
* 获取位置
*/
public String getWeizhi() {
return weizhi;
}
/**
* 设置备注
*/
public void setBeizhu(String beizhu) {
this.beizhu = beizhu;
}
/**
* 获取备注
*/
public String getBeizhu() {
return beizhu;
}
/**
* 设置仓库照片
*/
public void setCangkuzhaopian(String cangkuzhaopian) {
this.cangkuzhaopian = cangkuzhaopian;
}
/**
* 获取仓库照片
*/
public String getCangkuzhaopian() {
return cangkuzhaopian;
}
}

View File

@ -0,0 +1,159 @@
package com.entity.vo;
import com.entity.ChanpinchukuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* 产品出库
* 手机端接口返回实体辅助类
* 主要作用去除一些不必要的字段
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public class ChanpinchukuVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 产品名称
*/
private String chanpinmingcheng;
/**
* 产品品牌
*/
private String chanpinpinpai;
/**
* 产品出库价格
*/
private String chanpinchukujiage;
/**
* 库存数
*/
private Integer kucunshu;
/**
* 产品出库时间
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date chanpinchukushijian;
/**
* 备注
*/
private String beizhu;
/**
* 设置产品名称
*/
public void setChanpinmingcheng(String chanpinmingcheng) {
this.chanpinmingcheng = chanpinmingcheng;
}
/**
* 获取产品名称
*/
public String getChanpinmingcheng() {
return chanpinmingcheng;
}
/**
* 设置产品品牌
*/
public void setChanpinpinpai(String chanpinpinpai) {
this.chanpinpinpai = chanpinpinpai;
}
/**
* 获取产品品牌
*/
public String getChanpinpinpai() {
return chanpinpinpai;
}
/**
* 设置产品出库价格
*/
public void setChanpinchukujiage(String chanpinchukujiage) {
this.chanpinchukujiage = chanpinchukujiage;
}
/**
* 获取产品出库价格
*/
public String getChanpinchukujiage() {
return chanpinchukujiage;
}
/**
* 设置库存数
*/
public void setKucunshu(Integer kucunshu) {
this.kucunshu = kucunshu;
}
/**
* 获取库存数
*/
public Integer getKucunshu() {
return kucunshu;
}
/**
* 设置产品出库时间
*/
public void setChanpinchukushijian(Date chanpinchukushijian) {
this.chanpinchukushijian = chanpinchukushijian;
}
/**
* 获取产品出库时间
*/
public Date getChanpinchukushijian() {
return chanpinchukushijian;
}
/**
* 设置备注
*/
public void setBeizhu(String beizhu) {
this.beizhu = beizhu;
}
/**
* 获取备注
*/
public String getBeizhu() {
return beizhu;
}
}

View File

@ -0,0 +1,115 @@
package com.entity.vo;
import com.entity.ChanpinkucunguanliEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* 产品库存管理
* 手机端接口返回实体辅助类
* 主要作用去除一些不必要的字段
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public class ChanpinkucunguanliVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 品牌
*/
private String pinpai;
/**
* 库存数
*/
private Integer kucunshu;
/**
* 备注
*/
private String beizhu;
/**
* 更新时间
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date gengxinshijian;
/**
* 设置品牌
*/
public void setPinpai(String pinpai) {
this.pinpai = pinpai;
}
/**
* 获取品牌
*/
public String getPinpai() {
return pinpai;
}
/**
* 设置库存数
*/
public void setKucunshu(Integer kucunshu) {
this.kucunshu = kucunshu;
}
/**
* 获取库存数
*/
public Integer getKucunshu() {
return kucunshu;
}
/**
* 设置备注
*/
public void setBeizhu(String beizhu) {
this.beizhu = beizhu;
}
/**
* 获取备注
*/
public String getBeizhu() {
return beizhu;
}
/**
* 设置更新时间
*/
public void setGengxinshijian(Date gengxinshijian) {
this.gengxinshijian = gengxinshijian;
}
/**
* 获取更新时间
*/
public Date getGengxinshijian() {
return gengxinshijian;
}
}

View File

@ -0,0 +1,159 @@
package com.entity.vo;
import com.entity.ChanpinrukuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* 产品入库
* 手机端接口返回实体辅助类
* 主要作用去除一些不必要的字段
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public class ChanpinrukuVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 产品名称
*/
private String chanpinmingcheng;
/**
* 产品品牌
*/
private String chanpinpinpai;
/**
* 产品入库价格
*/
private String chanpinrukujiage;
/**
* 产品入库时间
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date chanpinrukushijian;
/**
* 库存数
*/
private Integer kucunshu;
/**
* 备注
*/
private String beizhu;
/**
* 设置产品名称
*/
public void setChanpinmingcheng(String chanpinmingcheng) {
this.chanpinmingcheng = chanpinmingcheng;
}
/**
* 获取产品名称
*/
public String getChanpinmingcheng() {
return chanpinmingcheng;
}
/**
* 设置产品品牌
*/
public void setChanpinpinpai(String chanpinpinpai) {
this.chanpinpinpai = chanpinpinpai;
}
/**
* 获取产品品牌
*/
public String getChanpinpinpai() {
return chanpinpinpai;
}
/**
* 设置产品入库价格
*/
public void setChanpinrukujiage(String chanpinrukujiage) {
this.chanpinrukujiage = chanpinrukujiage;
}
/**
* 获取产品入库价格
*/
public String getChanpinrukujiage() {
return chanpinrukujiage;
}
/**
* 设置产品入库时间
*/
public void setChanpinrukushijian(Date chanpinrukushijian) {
this.chanpinrukushijian = chanpinrukushijian;
}
/**
* 获取产品入库时间
*/
public Date getChanpinrukushijian() {
return chanpinrukushijian;
}
/**
* 设置库存数
*/
public void setKucunshu(Integer kucunshu) {
this.kucunshu = kucunshu;
}
/**
* 获取库存数
*/
public Integer getKucunshu() {
return kucunshu;
}
/**
* 设置备注
*/
public void setBeizhu(String beizhu) {
this.beizhu = beizhu;
}
/**
* 获取备注
*/
public String getBeizhu() {
return beizhu;
}
}

View File

@ -0,0 +1,157 @@
package com.entity.vo;
import com.entity.YonghuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* 用户
* 手机端接口返回实体辅助类
* 主要作用去除一些不必要的字段
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public class YonghuVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 密码
*/
private String mima;
/**
* 姓名
*/
private String xingming;
/**
* 性别
*/
private String xingbie;
/**
* 手机
*/
private String shouji;
/**
* 邮箱
*/
private String youxiang;
/**
* 照片
*/
private String zhaopian;
/**
* 设置密码
*/
public void setMima(String mima) {
this.mima = mima;
}
/**
* 获取密码
*/
public String getMima() {
return mima;
}
/**
* 设置姓名
*/
public void setXingming(String xingming) {
this.xingming = xingming;
}
/**
* 获取姓名
*/
public String getXingming() {
return xingming;
}
/**
* 设置性别
*/
public void setXingbie(String xingbie) {
this.xingbie = xingbie;
}
/**
* 获取性别
*/
public String getXingbie() {
return xingbie;
}
/**
* 设置手机
*/
public void setShouji(String shouji) {
this.shouji = shouji;
}
/**
* 获取手机
*/
public String getShouji() {
return shouji;
}
/**
* 设置邮箱
*/
public void setYouxiang(String youxiang) {
this.youxiang = youxiang;
}
/**
* 获取邮箱
*/
public String getYouxiang() {
return youxiang;
}
/**
* 设置照片
*/
public void setZhaopian(String zhaopian) {
this.zhaopian = zhaopian;
}
/**
* 获取照片
*/
public String getZhaopian() {
return zhaopian;
}
}

View File

@ -0,0 +1,137 @@
package com.entity.vo;
import com.entity.YuancailiaochukuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* 原材料出库
* 手机端接口返回实体辅助类
* 主要作用去除一些不必要的字段
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public class YuancailiaochukuVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 出库品牌
*/
private String chukupinpai;
/**
* 库存数
*/
private Integer kucunshu;
/**
* 出库价格
*/
private String chukujiage;
/**
* 出库时间
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date chukushijian;
/**
* 备注
*/
private String beizhu;
/**
* 设置出库品牌
*/
public void setChukupinpai(String chukupinpai) {
this.chukupinpai = chukupinpai;
}
/**
* 获取出库品牌
*/
public String getChukupinpai() {
return chukupinpai;
}
/**
* 设置库存数
*/
public void setKucunshu(Integer kucunshu) {
this.kucunshu = kucunshu;
}
/**
* 获取库存数
*/
public Integer getKucunshu() {
return kucunshu;
}
/**
* 设置出库价格
*/
public void setChukujiage(String chukujiage) {
this.chukujiage = chukujiage;
}
/**
* 获取出库价格
*/
public String getChukujiage() {
return chukujiage;
}
/**
* 设置出库时间
*/
public void setChukushijian(Date chukushijian) {
this.chukushijian = chukushijian;
}
/**
* 获取出库时间
*/
public Date getChukushijian() {
return chukushijian;
}
/**
* 设置备注
*/
public void setBeizhu(String beizhu) {
this.beizhu = beizhu;
}
/**
* 获取备注
*/
public String getBeizhu() {
return beizhu;
}
}

View File

@ -0,0 +1,115 @@
package com.entity.vo;
import com.entity.YuancailiaokucunguanliEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* 原材料库存管理
* 手机端接口返回实体辅助类
* 主要作用去除一些不必要的字段
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public class YuancailiaokucunguanliVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 储存仓库名
*/
private String chucuncangkuming;
/**
* 库存数
*/
private Integer kucunshu;
/**
* 更新时间
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date gengxinshijian;
/**
* 备注
*/
private String beizhu;
/**
* 设置储存仓库名
*/
public void setChucuncangkuming(String chucuncangkuming) {
this.chucuncangkuming = chucuncangkuming;
}
/**
* 获取储存仓库名
*/
public String getChucuncangkuming() {
return chucuncangkuming;
}
/**
* 设置库存数
*/
public void setKucunshu(Integer kucunshu) {
this.kucunshu = kucunshu;
}
/**
* 获取库存数
*/
public Integer getKucunshu() {
return kucunshu;
}
/**
* 设置更新时间
*/
public void setGengxinshijian(Date gengxinshijian) {
this.gengxinshijian = gengxinshijian;
}
/**
* 获取更新时间
*/
public Date getGengxinshijian() {
return gengxinshijian;
}
/**
* 设置备注
*/
public void setBeizhu(String beizhu) {
this.beizhu = beizhu;
}
/**
* 获取备注
*/
public String getBeizhu() {
return beizhu;
}
}

View File

@ -0,0 +1,137 @@
package com.entity.vo;
import com.entity.YuancailiaorukuEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* 原材料入库
* 手机端接口返回实体辅助类
* 主要作用去除一些不必要的字段
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public class YuancailiaorukuVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 入库品牌
*/
private String rukupinpai;
/**
* 库存数
*/
private Integer kucunshu;
/**
* 入库价格
*/
private String rukujiage;
/**
* 入库时间
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date rukushijian;
/**
* 备注
*/
private String beizhu;
/**
* 设置入库品牌
*/
public void setRukupinpai(String rukupinpai) {
this.rukupinpai = rukupinpai;
}
/**
* 获取入库品牌
*/
public String getRukupinpai() {
return rukupinpai;
}
/**
* 设置库存数
*/
public void setKucunshu(Integer kucunshu) {
this.kucunshu = kucunshu;
}
/**
* 获取库存数
*/
public Integer getKucunshu() {
return kucunshu;
}
/**
* 设置入库价格
*/
public void setRukujiage(String rukujiage) {
this.rukujiage = rukujiage;
}
/**
* 获取入库价格
*/
public String getRukujiage() {
return rukujiage;
}
/**
* 设置入库时间
*/
public void setRukushijian(Date rukushijian) {
this.rukushijian = rukushijian;
}
/**
* 获取入库时间
*/
public Date getRukushijian() {
return rukushijian;
}
/**
* 设置备注
*/
public void setBeizhu(String beizhu) {
this.beizhu = beizhu;
}
/**
* 获取备注
*/
public String getBeizhu() {
return beizhu;
}
}

View File

@ -0,0 +1,88 @@
package com.interceptor;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.Map;
import com.alibaba.fastjson.JSONObject;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.method.HandlerMethod;
import org.springframework.web.servlet.HandlerInterceptor;
import com.annotation.IgnoreAuth;
import com.entity.EIException;
import com.entity.TokenEntity;
import com.service.TokenService;
import com.utils.R;
/**
* 权限(Token)验证
*/
@Component
public class AuthorizationInterceptor implements HandlerInterceptor {
public static final String LOGIN_TOKEN_KEY = "Token";
@Autowired
private TokenService tokenService;
@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
//支持跨域请求
response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE");
response.setHeader("Access-Control-Max-Age", "3600");
response.setHeader("Access-Control-Allow-Credentials", "true");
response.setHeader("Access-Control-Allow-Headers", "x-requested-with,request-source,Token, Origin,imgType, Content-Type, cache-control,postman-token,Cookie, Accept,authorization");
response.setHeader("Access-Control-Allow-Origin", request.getHeader("Origin"));
IgnoreAuth annotation;
if (handler instanceof HandlerMethod) {
annotation = ((HandlerMethod) handler).getMethodAnnotation(IgnoreAuth.class);
} else {
return true;
}
//从header中获取token
String token = request.getHeader(LOGIN_TOKEN_KEY);
/**
* 不需要验证权限的方法直接放过
*/
if(annotation!=null) {
return true;
}
TokenEntity tokenEntity = null;
if(StringUtils.isNotBlank(token)) {
tokenEntity = tokenService.getTokenEntity(token);
}
if(tokenEntity != null) {
request.getSession().setAttribute("userId", tokenEntity.getUserid());
request.getSession().setAttribute("role", tokenEntity.getRole());
request.getSession().setAttribute("tableName", tokenEntity.getTablename());
request.getSession().setAttribute("username", tokenEntity.getUsername());
return true;
}
PrintWriter writer = null;
response.setCharacterEncoding("UTF-8");
response.setContentType("application/json; charset=utf-8");
try {
writer = response.getWriter();
writer.print(JSONObject.toJSONString(R.error(401, "请先登录")));
} finally {
if(writer != null){
writer.close();
}
}
// throw new EIException("请先登录", 401);
return false;
}
}

View File

@ -0,0 +1,31 @@
package com.model.enums;
import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IEnum;
/**
* 必须现在 IEnum 配置 该包扫描自动注入查看文件 spring-mybatis.xml 参数 typeEnumsPackage
*/
public enum TypeEnum implements IEnum {
DISABLED(0, "禁用"),
NORMAL(1, "正常");
private final int value;
private final String desc;
TypeEnum(final int value, final String desc) {
this.value = value;
this.desc = desc;
}
@Override
public Serializable getValue() {
return this.value;
}
// Jackson 注解为 JsonValue 返回中文 json 描述
public String getDesc() {
return this.desc;
}
}

View File

@ -0,0 +1,36 @@
package com.service;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.IService;
import com.utils.PageUtils;
import com.entity.CangkuxinxiEntity;
import java.util.List;
import java.util.Map;
import com.entity.vo.CangkuxinxiVO;
import org.apache.ibatis.annotations.Param;
import com.entity.view.CangkuxinxiView;
/**
* 仓库信息
*
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public interface CangkuxinxiService extends IService<CangkuxinxiEntity> {
PageUtils queryPage(Map<String, Object> params);
List<CangkuxinxiVO> selectListVO(Wrapper<CangkuxinxiEntity> wrapper);
CangkuxinxiVO selectVO(@Param("ew") Wrapper<CangkuxinxiEntity> wrapper);
List<CangkuxinxiView> selectListView(Wrapper<CangkuxinxiEntity> wrapper);
CangkuxinxiView selectView(@Param("ew") Wrapper<CangkuxinxiEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<CangkuxinxiEntity> wrapper);
}

View File

@ -0,0 +1,36 @@
package com.service;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.IService;
import com.utils.PageUtils;
import com.entity.ChanpinchukuEntity;
import java.util.List;
import java.util.Map;
import com.entity.vo.ChanpinchukuVO;
import org.apache.ibatis.annotations.Param;
import com.entity.view.ChanpinchukuView;
/**
* 产品出库
*
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public interface ChanpinchukuService extends IService<ChanpinchukuEntity> {
PageUtils queryPage(Map<String, Object> params);
List<ChanpinchukuVO> selectListVO(Wrapper<ChanpinchukuEntity> wrapper);
ChanpinchukuVO selectVO(@Param("ew") Wrapper<ChanpinchukuEntity> wrapper);
List<ChanpinchukuView> selectListView(Wrapper<ChanpinchukuEntity> wrapper);
ChanpinchukuView selectView(@Param("ew") Wrapper<ChanpinchukuEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<ChanpinchukuEntity> wrapper);
}

View File

@ -0,0 +1,36 @@
package com.service;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.IService;
import com.utils.PageUtils;
import com.entity.ChanpinkucunguanliEntity;
import java.util.List;
import java.util.Map;
import com.entity.vo.ChanpinkucunguanliVO;
import org.apache.ibatis.annotations.Param;
import com.entity.view.ChanpinkucunguanliView;
/**
* 产品库存管理
*
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public interface ChanpinkucunguanliService extends IService<ChanpinkucunguanliEntity> {
PageUtils queryPage(Map<String, Object> params);
List<ChanpinkucunguanliVO> selectListVO(Wrapper<ChanpinkucunguanliEntity> wrapper);
ChanpinkucunguanliVO selectVO(@Param("ew") Wrapper<ChanpinkucunguanliEntity> wrapper);
List<ChanpinkucunguanliView> selectListView(Wrapper<ChanpinkucunguanliEntity> wrapper);
ChanpinkucunguanliView selectView(@Param("ew") Wrapper<ChanpinkucunguanliEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<ChanpinkucunguanliEntity> wrapper);
}

View File

@ -0,0 +1,36 @@
package com.service;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.IService;
import com.utils.PageUtils;
import com.entity.ChanpinrukuEntity;
import java.util.List;
import java.util.Map;
import com.entity.vo.ChanpinrukuVO;
import org.apache.ibatis.annotations.Param;
import com.entity.view.ChanpinrukuView;
/**
* 产品入库
*
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public interface ChanpinrukuService extends IService<ChanpinrukuEntity> {
PageUtils queryPage(Map<String, Object> params);
List<ChanpinrukuVO> selectListVO(Wrapper<ChanpinrukuEntity> wrapper);
ChanpinrukuVO selectVO(@Param("ew") Wrapper<ChanpinrukuEntity> wrapper);
List<ChanpinrukuView> selectListView(Wrapper<ChanpinrukuEntity> wrapper);
ChanpinrukuView selectView(@Param("ew") Wrapper<ChanpinrukuEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<ChanpinrukuEntity> wrapper);
}

View File

@ -0,0 +1,20 @@
package com.service;
import java.util.List;
import java.util.Map;
public interface CommonService {
List<String> getOption(Map<String, Object> params);
Map<String, Object> getFollowByOption(Map<String, Object> params);
void sh(Map<String, Object> params);
int remindCount(Map<String, Object> params);
Map<String, Object> selectCal(Map<String, Object> params);
List<Map<String, Object>> selectGroup(Map<String, Object> params);
List<Map<String, Object>> selectValue(Map<String, Object> params);
}

View File

@ -0,0 +1,16 @@
package com.service;
import java.util.Map;
import com.baomidou.mybatisplus.service.IService;
import com.entity.ConfigEntity;
import com.utils.PageUtils;
/**
* 系统用户
*/
public interface ConfigService extends IService<ConfigEntity> {
PageUtils queryPage(Map<String, Object> params);
}

View File

@ -0,0 +1,26 @@
package com.service;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.IService;
import com.entity.TokenEntity;
import com.utils.PageUtils;
/**
* token
*/
public interface TokenService extends IService<TokenEntity> {
PageUtils queryPage(Map<String, Object> params);
List<TokenEntity> selectListView(Wrapper<TokenEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<TokenEntity> wrapper);
String generateToken(Long userid,String username,String tableName, String role);
TokenEntity getTokenEntity(String token);
}

View File

@ -0,0 +1,25 @@
package com.service;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.IService;
import com.entity.UserEntity;
import com.utils.PageUtils;
/**
* 系统用户
*/
public interface UserService extends IService<UserEntity> {
PageUtils queryPage(Map<String, Object> params);
List<UserEntity> selectListView(Wrapper<UserEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<UserEntity> wrapper);
}

View File

@ -0,0 +1,36 @@
package com.service;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.IService;
import com.utils.PageUtils;
import com.entity.YonghuEntity;
import java.util.List;
import java.util.Map;
import com.entity.vo.YonghuVO;
import org.apache.ibatis.annotations.Param;
import com.entity.view.YonghuView;
/**
* 用户
*
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public interface YonghuService extends IService<YonghuEntity> {
PageUtils queryPage(Map<String, Object> params);
List<YonghuVO> selectListVO(Wrapper<YonghuEntity> wrapper);
YonghuVO selectVO(@Param("ew") Wrapper<YonghuEntity> wrapper);
List<YonghuView> selectListView(Wrapper<YonghuEntity> wrapper);
YonghuView selectView(@Param("ew") Wrapper<YonghuEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<YonghuEntity> wrapper);
}

View File

@ -0,0 +1,36 @@
package com.service;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.IService;
import com.utils.PageUtils;
import com.entity.YuancailiaochukuEntity;
import java.util.List;
import java.util.Map;
import com.entity.vo.YuancailiaochukuVO;
import org.apache.ibatis.annotations.Param;
import com.entity.view.YuancailiaochukuView;
/**
* 原材料出库
*
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public interface YuancailiaochukuService extends IService<YuancailiaochukuEntity> {
PageUtils queryPage(Map<String, Object> params);
List<YuancailiaochukuVO> selectListVO(Wrapper<YuancailiaochukuEntity> wrapper);
YuancailiaochukuVO selectVO(@Param("ew") Wrapper<YuancailiaochukuEntity> wrapper);
List<YuancailiaochukuView> selectListView(Wrapper<YuancailiaochukuEntity> wrapper);
YuancailiaochukuView selectView(@Param("ew") Wrapper<YuancailiaochukuEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<YuancailiaochukuEntity> wrapper);
}

View File

@ -0,0 +1,36 @@
package com.service;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.IService;
import com.utils.PageUtils;
import com.entity.YuancailiaokucunguanliEntity;
import java.util.List;
import java.util.Map;
import com.entity.vo.YuancailiaokucunguanliVO;
import org.apache.ibatis.annotations.Param;
import com.entity.view.YuancailiaokucunguanliView;
/**
* 原材料库存管理
*
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public interface YuancailiaokucunguanliService extends IService<YuancailiaokucunguanliEntity> {
PageUtils queryPage(Map<String, Object> params);
List<YuancailiaokucunguanliVO> selectListVO(Wrapper<YuancailiaokucunguanliEntity> wrapper);
YuancailiaokucunguanliVO selectVO(@Param("ew") Wrapper<YuancailiaokucunguanliEntity> wrapper);
List<YuancailiaokucunguanliView> selectListView(Wrapper<YuancailiaokucunguanliEntity> wrapper);
YuancailiaokucunguanliView selectView(@Param("ew") Wrapper<YuancailiaokucunguanliEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<YuancailiaokucunguanliEntity> wrapper);
}

View File

@ -0,0 +1,36 @@
package com.service;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.IService;
import com.utils.PageUtils;
import com.entity.YuancailiaorukuEntity;
import java.util.List;
import java.util.Map;
import com.entity.vo.YuancailiaorukuVO;
import org.apache.ibatis.annotations.Param;
import com.entity.view.YuancailiaorukuView;
/**
* 原材料入库
*
* @author
* @email
* @date 2021-05-04 17:08:36
*/
public interface YuancailiaorukuService extends IService<YuancailiaorukuEntity> {
PageUtils queryPage(Map<String, Object> params);
List<YuancailiaorukuVO> selectListVO(Wrapper<YuancailiaorukuEntity> wrapper);
YuancailiaorukuVO selectVO(@Param("ew") Wrapper<YuancailiaorukuEntity> wrapper);
List<YuancailiaorukuView> selectListView(Wrapper<YuancailiaorukuEntity> wrapper);
YuancailiaorukuView selectView(@Param("ew") Wrapper<YuancailiaorukuEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<YuancailiaorukuEntity> wrapper);
}

Some files were not shown because too many files have changed in this diff Show More