Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c3802921b | ||
|
|
b169b641de | ||
|
|
3d3c289f46 | ||
|
|
3f00c556ed | ||
|
|
fe4b315987 | ||
|
|
38186530c6 | ||
|
|
f8f5ee3ec3 | ||
|
|
1eb6e5915e | ||
|
|
734414f3ba | ||
|
|
fd86a96a6d | ||
|
|
6112ed5479 | ||
|
|
48507ebd3a | ||
|
|
0e432058e6 | ||
|
|
71497f5641 | ||
|
|
28f050efc2 | ||
|
|
b9f7d0380d | ||
|
|
1a2dee14e4 | ||
|
|
339cf044a8 | ||
|
|
ddc7772381 | ||
|
|
137e83a126 | ||
|
|
b070f6b55b | ||
|
|
2b8a7364ce | ||
|
|
050a54246c | ||
|
|
2872719a68 | ||
|
|
1030034e41 | ||
|
|
240b7134e5 | ||
|
|
7f8f31100a | ||
|
|
002eb76d4f | ||
|
|
f4c40173a9 | ||
|
|
ef686c0db1 | ||
|
|
a96d28c993 | ||
|
|
a5670f9b13 | ||
|
|
48fe97b97a | ||
|
|
62a8797e5f | ||
|
|
e13e7c0bf7 | ||
|
|
b10ac05907 | ||
|
|
cd51d08302 | ||
|
|
c8c90fd851 | ||
|
|
6bd51f2f6c | ||
|
|
d670a53697 | ||
|
|
da69b887b0 | ||
|
|
38b75df08a | ||
|
|
495f535596 | ||
|
|
9442a3b69d | ||
|
|
7d745f0ee7 | ||
|
|
e0e15d5b81 | ||
|
|
a3ea4c4b07 | ||
|
|
0d587c646c | ||
|
|
e5700a8459 | ||
|
|
a74d7656cc | ||
|
|
266fa0e51a | ||
|
|
2be743883c | ||
|
|
6dd6d83776 | ||
|
|
fcb9425209 | ||
|
|
cb4f1455a2 | ||
|
|
79d7f79326 | ||
|
|
6cda0c8122 | ||
|
|
cd00c1611e | ||
|
|
513452b7a7 | ||
|
|
c84cd68e04 | ||
|
|
8f6458d800 | ||
|
|
1d0ea30024 | ||
|
|
41480ba1c9 | ||
|
|
3ee39fbd4b | ||
|
|
bdc6582074 | ||
|
|
c6098cbecd |
+45
@@ -0,0 +1,45 @@
|
||||
target/
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
!**/src/main/**/target/
|
||||
!**/src/test/**/target/
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
|
||||
### Eclipse ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
.sts4-cache
|
||||
|
||||
### NetBeans ###
|
||||
/nbproject/private/
|
||||
/nbbuild/
|
||||
/dist/
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
build/
|
||||
!**/src/main/**/build/
|
||||
!**/src/test/**/build/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
||||
|
||||
### Mac OS ###
|
||||
.DS_Store
|
||||
|
||||
## backend
|
||||
**/target
|
||||
**/logs
|
||||
*.log
|
||||
|
||||
## front
|
||||
**/*.lock
|
||||
|
||||
*.flattened-pom.xml
|
||||
@@ -0,0 +1,217 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.zzsmart.qomo</groupId>
|
||||
<artifactId>qomo-kn-forecast</artifactId>
|
||||
<version>${revision}</version>
|
||||
<packaging>pom</packaging>
|
||||
<name>QOMO Cost Manage</name>
|
||||
<modules>
|
||||
<module>qomo-kn-cost-manage-start</module>
|
||||
<module>qomo-kn-cost-manage</module>
|
||||
</modules>
|
||||
<developers>
|
||||
<developer>
|
||||
<name>武汉中制智造</name>
|
||||
<email>qomo@163.com</email>
|
||||
</developer>
|
||||
</developers>
|
||||
|
||||
<parent>
|
||||
<groupId>org.qomo.boot</groupId>
|
||||
<artifactId>qomo-base</artifactId>
|
||||
<version>2.0.1-SNAPSHOT</version>
|
||||
<relativePath/>
|
||||
</parent>
|
||||
|
||||
<properties>
|
||||
<revision>2.0.0-SNAPSHOT</revision>
|
||||
<adp.version>2.0.0-SNAPSHOT</adp.version>
|
||||
<dmp.version>2.0.0-SNAPSHOT</dmp.version>
|
||||
</properties>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>zzzz</id>
|
||||
<name>zzzz Repository</name>
|
||||
<url>http://192.168.50.9:8091/repository/maven-public/</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
</snapshots>
|
||||
</repository>
|
||||
|
||||
<repository>
|
||||
<id>aliyun</id>
|
||||
<name>aliyun Repository</name>
|
||||
<url>https://maven.aliyun.com/repository/public</url>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>zzzz-releases</id>
|
||||
<name>zzzz-releases Repository</name>
|
||||
<url>http://192.168.50.9:8091/repository/zzzz-releases/</url>
|
||||
</repository>
|
||||
|
||||
<snapshotRepository>
|
||||
<id>zzzz-snapshots</id>
|
||||
<name>zzzz Snapshot Repository</name>
|
||||
<url>http://192.168.50.9:8091/repository/zzzz-snapshots/</url>
|
||||
</snapshotRepository>
|
||||
</distributionManagement>
|
||||
|
||||
<pluginRepositories>
|
||||
<pluginRepository>
|
||||
<id>zzzz</id>
|
||||
<name>zzzz Repository</name>
|
||||
<url>http://192.168.50.9:8091/repository/maven-public/</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
</snapshots>
|
||||
</pluginRepository>
|
||||
|
||||
<pluginRepository>
|
||||
<id>aliyun</id>
|
||||
<name>aliyun Repository</name>
|
||||
<url>https://maven.aliyun.com/repository/public</url>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.zzsmart.qomo</groupId>
|
||||
<artifactId>qomo-kn-cost-manage</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.zzsmart.qomo</groupId>
|
||||
<artifactId>qomo-data-model</artifactId>
|
||||
<version>${dmp.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.zzsmart.qomo</groupId>
|
||||
<artifactId>qomo-assets-management</artifactId>
|
||||
<version>${dmp.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.zzsmart.qomo</groupId>
|
||||
<artifactId>qomo-data-integration</artifactId>
|
||||
<version>${dmp.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.zzsmart.qomo</groupId>
|
||||
<artifactId>qomo-data-metadata</artifactId>
|
||||
<version>${dmp.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.zzsmart.qomo</groupId>
|
||||
<artifactId>qomo-work-flow</artifactId>
|
||||
<version>${dmp.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.zzsmart.qomo</groupId>
|
||||
<artifactId>qomo-data-warehouse</artifactId>
|
||||
<version>${dmp.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.zzsmart.qomo</groupId>
|
||||
<artifactId>qomo-data-selfReport</artifactId>
|
||||
<version>${dmp.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
<!-- 环境 -->
|
||||
<profiles>
|
||||
<!-- 开发 -->
|
||||
<profile>
|
||||
<id>dev</id>
|
||||
<activation>
|
||||
<!--默认激活配置-->
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
<properties>
|
||||
<!--当前环境-->
|
||||
<profile.name>dev</profile.name>
|
||||
<!--Nacos服务地址-->
|
||||
<config.server-addr>jeecg-boot-nacos:8848</config.server-addr>
|
||||
<!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空-->
|
||||
<config.namespace></config.namespace>
|
||||
<!--Nacos配置分组名称-->
|
||||
<config.group>DEFAULT_GROUP</config.group>
|
||||
<!--Nacos用户名-->
|
||||
<config.username></config.username>
|
||||
<!--Nacos密码-->
|
||||
<config.password></config.password>
|
||||
</properties>
|
||||
</profile>
|
||||
<!-- 测试Nacos开启鉴权、设置分组和命名空间
|
||||
<profile>
|
||||
<id>dev</id>
|
||||
<properties>
|
||||
<profile.name>dev</profile.name>
|
||||
<config.server-addr>jeecg-boot-nacos:8848</config.server-addr>
|
||||
<config.namespace>ac14ab82-51f8-4f0c-aa5b-25fb8384bfb6</config.namespace>
|
||||
<config.group>JEECGDEV_GROUP</config.group>
|
||||
<config.username>nacos</config.username>
|
||||
<config.password>nacos</config.password>
|
||||
</properties>
|
||||
</profile> -->
|
||||
<!-- 测试 -->
|
||||
<profile>
|
||||
<id>test</id>
|
||||
<properties>
|
||||
<!--当前环境-->
|
||||
<profile.name>test</profile.name>
|
||||
<!--Nacos服务地址-->
|
||||
<config.server-addr>jeecg-boot-nacos:8848</config.server-addr>
|
||||
<!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空-->
|
||||
<config.namespace></config.namespace>
|
||||
<!--Nacos配置分组名称-->
|
||||
<config.group>DEFAULT_GROUP</config.group>
|
||||
<!--Nacos用户名-->
|
||||
<config.username></config.username>
|
||||
<!--Nacos密码-->
|
||||
<config.password></config.password>
|
||||
</properties>
|
||||
</profile>
|
||||
<!-- 生产 -->
|
||||
<profile>
|
||||
<id>prod</id>
|
||||
<properties>
|
||||
<!--当前环境-->
|
||||
<profile.name>prod</profile.name>
|
||||
<!--Nacos服务地址-->
|
||||
<config.server-addr>jeecg-boot-nacos:8848</config.server-addr>
|
||||
<!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空-->
|
||||
<config.namespace></config.namespace>
|
||||
<!--Nacos配置分组名称-->
|
||||
<config.group>DEFAULT_GROUP</config.group>
|
||||
<!--Nacos用户名-->
|
||||
<config.username></config.username>
|
||||
<!--Nacos密码-->
|
||||
<config.password></config.password>
|
||||
</properties>
|
||||
</profile>
|
||||
<!-- SpringCloud运行环境 -->
|
||||
</profiles>
|
||||
</project>
|
||||
@@ -0,0 +1,104 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.zzsmart.qomo</groupId>
|
||||
<artifactId>qomo-kn-forecast</artifactId>
|
||||
<version>${revision}</version>
|
||||
</parent>
|
||||
<artifactId>qomo-kn-cost-manage-start</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.deploy.skip>true</maven.deploy.skip>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
<scope>test</scope>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<artifactId>spring-boot-starter-logging</artifactId>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>com.zzsmart.qomo</groupId>
|
||||
<artifactId>qomo-kn-cost-manage</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<!-- <fork>true</fork> <!– 如果没有该配置,devtools不会生效 –>-->
|
||||
<includeSystemScope>true</includeSystemScope>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>dmp</id>
|
||||
<activation>
|
||||
<!--默认激活配置-->
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
<properties>
|
||||
<profile.name>dmp</profile.name>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.zzsmart.qomo</groupId>
|
||||
<artifactId>qomo-data-model</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.zzsmart.qomo</groupId>
|
||||
<artifactId>qomo-assets-management</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.zzsmart.qomo</groupId>
|
||||
<artifactId>qomo-data-integration</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.zzsmart.qomo</groupId>
|
||||
<artifactId>qomo-data-metadata</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.zzsmart.qomo</groupId>
|
||||
<artifactId>qomo-work-flow</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.zzsmart.qomo</groupId>
|
||||
<artifactId>qomo-data-warehouse</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.zzsmart.qomo</groupId>
|
||||
<artifactId>qomo-data-selfReport</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,41 @@
|
||||
<assembly>
|
||||
<id>dist</id>
|
||||
<formats>
|
||||
<format>dir</format>
|
||||
</formats>
|
||||
<includeBaseDirectory>false</includeBaseDirectory>
|
||||
<fileSets>
|
||||
<fileSet>
|
||||
<directory>${basedir}/src/main/bin</directory>
|
||||
<lineEnding>unix</lineEnding>
|
||||
<outputDirectory/>
|
||||
<fileMode>755</fileMode>
|
||||
<includes>
|
||||
<include>*.sh</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<directory>${basedir}/src/main/bin</directory>
|
||||
<lineEnding>windows</lineEnding>
|
||||
<outputDirectory/>
|
||||
<includes>
|
||||
<include>*.bat</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<directory>target/classes</directory>
|
||||
<outputDirectory>config</outputDirectory>
|
||||
<includes>
|
||||
<include>**/*.yml</include>
|
||||
<include>**/*.yaml</include>
|
||||
<include>**/logback-spring.xml</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
<dependencySets>
|
||||
<dependencySet>
|
||||
<outputDirectory>lib</outputDirectory>
|
||||
<unpack>false</unpack>
|
||||
</dependencySet>
|
||||
</dependencySets>
|
||||
</assembly>
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
||||
import org.springframework.context.ConfigurableApplicationContext;
|
||||
import org.springframework.core.env.Environment;
|
||||
import org.springframework.scheduling.annotation.EnableAsync;
|
||||
|
||||
import java.net.InetAddress;
|
||||
import java.net.UnknownHostException;
|
||||
|
||||
/**
|
||||
* 单体启动类
|
||||
* 报错提醒: 未集成mongo报错,可以打开启动类上面的注释 exclude={MongoAutoConfiguration.class}
|
||||
*/
|
||||
@Slf4j
|
||||
@SpringBootApplication(scanBasePackages = {"org.jeecg", "com.zzsmart.qomo"})
|
||||
//@MapperScan({"com.zzsmart.qomo.kn.cost.manage.mapper"})
|
||||
//@EnableAutoConfiguration(exclude={MongoAutoConfiguration.class})
|
||||
@EnableAsync
|
||||
public class QomoCostManageApplication extends SpringBootServletInitializer {
|
||||
|
||||
@Override
|
||||
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
|
||||
return application.sources(QomoCostManageApplication.class);
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws UnknownHostException {
|
||||
ConfigurableApplicationContext application = SpringApplication.run(QomoCostManageApplication.class, args);
|
||||
Environment env = application.getEnvironment();
|
||||
String ip = InetAddress.getLocalHost().getHostAddress();
|
||||
String port = env.getProperty("server.port");
|
||||
String path = oConvertUtils.getString(env.getProperty("server.servlet.context-path"));
|
||||
log.info("\n----------------------------------------------------------\n\t" +
|
||||
"Application Jeecg-Boot is running! Access URLs:\n\t" +
|
||||
"Local: \t\thttp://localhost:" + port + path + "/\n\t" +
|
||||
"External: \thttp://" + ip + ":" + port + path + "/\n\t" +
|
||||
"Swagger文档: \thttp://" + ip + ":" + port + path + "/doc.html\n" +
|
||||
"----------------------------------------------------------");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,475 @@
|
||||
v2:
|
||||
#虚拟路径映射路径 2个文件路径一一对应 第一个为主存储,其他为配置相关
|
||||
xnljmap:
|
||||
#win服务器 本地 注意!! 记住这个结尾有一个/
|
||||
oss: file:/data/qomo-boot/oss/
|
||||
# oss: file:D:/upload/
|
||||
#linux服务器
|
||||
#oss: file:/home/webapps/oss/
|
||||
#虚拟路径映射路径 end
|
||||
#本地存放地址 注意!! 记住这个结尾没有/
|
||||
fileurl: /data/qomo-boot/oss
|
||||
# fileurl: D:/upload
|
||||
#http://127.0.0.1:8080/oss/{yy}/2022-12-22/c83a77ae134a540c30daa6a0666fa945.md
|
||||
httpurl: /qomo/
|
||||
defaultFormat: .png
|
||||
|
||||
server:
|
||||
port: 8099
|
||||
tomcat:
|
||||
max-swallow-size: -1
|
||||
error:
|
||||
include-exception: true
|
||||
include-stacktrace: ALWAYS
|
||||
include-message: ALWAYS
|
||||
servlet:
|
||||
context-path: /qomo
|
||||
compression:
|
||||
enabled: true
|
||||
min-response-size: 1024
|
||||
mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/*
|
||||
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: metrics,httptrace
|
||||
|
||||
spring:
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 10MB
|
||||
max-request-size: 10MB
|
||||
mail:
|
||||
host: smtp.163.com
|
||||
username: jeecgos@163.com
|
||||
password: ??
|
||||
properties:
|
||||
mail:
|
||||
smtp:
|
||||
auth: true
|
||||
starttls:
|
||||
enable: true
|
||||
required: true
|
||||
## quartz定时任务,采用数据库方式
|
||||
quartz:
|
||||
job-store-type: jdbc
|
||||
initialize-schema: embedded
|
||||
#定时任务启动开关,true-开 false-关
|
||||
auto-startup: true
|
||||
#延迟1秒启动定时任务
|
||||
startup-delay: 1s
|
||||
#启动时更新己存在的Job
|
||||
overwrite-existing-jobs: true
|
||||
properties:
|
||||
org:
|
||||
quartz:
|
||||
scheduler:
|
||||
instanceName: MyScheduler
|
||||
instanceId: AUTO
|
||||
jobStore:
|
||||
class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
|
||||
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
|
||||
tablePrefix: QRTZ_
|
||||
isClustered: true
|
||||
misfireThreshold: 12000
|
||||
clusterCheckinInterval: 15000
|
||||
threadPool:
|
||||
class: org.quartz.simpl.SimpleThreadPool
|
||||
threadCount: 10
|
||||
threadPriority: 5
|
||||
threadsInheritContextClassLoaderOfInitializingThread: true
|
||||
#json 时间戳统一转换
|
||||
jackson:
|
||||
date-format: yyyy-MM-dd HH:mm:ss
|
||||
time-zone: GMT+8
|
||||
jpa:
|
||||
open-in-view: false
|
||||
|
||||
# http请求配置
|
||||
rest:
|
||||
livy:
|
||||
server: http://192.168.50.9:7997
|
||||
spark:
|
||||
# 组件部署路径,默认是部署在hdfs 如果是本地路径则在前面加上local:
|
||||
main-jar: local:/opt/services/deploy-jars/dev/qomo-data-component-${Qomo.version}-jar-with-dependencies.jar
|
||||
main-class: com.zzsmart.qomo.QomoSparkStarter
|
||||
# spark默认运行参数
|
||||
deploy-mode: cluster
|
||||
queue: default
|
||||
num-executors: 2
|
||||
executor-cores: 1
|
||||
executor-memory: 1G
|
||||
driver-cores: 1
|
||||
driver-memory: 512M
|
||||
# 客户端类型
|
||||
client-type: urlconnection
|
||||
# URLConnection配置
|
||||
url-connection:
|
||||
# 客户端和服务器建立连接超时时间
|
||||
connect-timeout: 2000
|
||||
# 客户端从服务器读取数据包超时时间
|
||||
read-timeout: 30000
|
||||
# 是否长链接
|
||||
keep-alive: false
|
||||
# HttpClient配置
|
||||
http-client:
|
||||
# 连接池的最大连接数
|
||||
max-total-connect: 200
|
||||
# 相同域名允许创建的最大连接数
|
||||
max-connect-per-route: 10
|
||||
# 客户端和服务器建立连接超时时间
|
||||
connect-timeout: 2000
|
||||
# 读数据的超时时间
|
||||
socket-timeout: 30000
|
||||
# 连接池创建连接时的超时时间
|
||||
connection-request-timout: 200
|
||||
# OKHttp配置
|
||||
ok-http:
|
||||
# 失败后是否重试
|
||||
retry-on-connection-failure: false
|
||||
# 链接超时时间
|
||||
connect-timeout: 2000
|
||||
# 读超时时间
|
||||
read-timeout: 10000
|
||||
# 写超时时间
|
||||
write-timeout: 10000
|
||||
# 最大空闲的连接数
|
||||
max-idle-connections: 5
|
||||
# 最大的空闲时间
|
||||
keep-alive-duration-ns: 3000
|
||||
|
||||
aop:
|
||||
proxy-target-class: true
|
||||
#配置freemarker
|
||||
freemarker:
|
||||
# 设置模板后缀名
|
||||
suffix: .ftl
|
||||
# 设置文档类型
|
||||
content-type: text/html
|
||||
# 设置页面编码格式
|
||||
charset: UTF-8
|
||||
# 设置页面缓存
|
||||
cache: false
|
||||
prefer-file-system-access: false
|
||||
# 设置ftl文件路径
|
||||
template-loader-path:
|
||||
- classpath:/templates
|
||||
template_update_delay: 0
|
||||
# 设置静态文件路径,js,css等
|
||||
mvc:
|
||||
static-path-pattern: /**
|
||||
#Spring Boot 2.6+后映射匹配的默认策略已从AntPathMatcher更改为PathPatternParser,需要手动指定为ant-path-matcher
|
||||
pathmatch:
|
||||
matching-strategy: ant_path_matcher
|
||||
resource:
|
||||
static-locations: classpath:/static/,classpath:/public/
|
||||
autoconfigure:
|
||||
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
|
||||
datasource:
|
||||
druid:
|
||||
stat-view-servlet:
|
||||
enabled: true
|
||||
loginUsername: admin
|
||||
loginPassword: 123456
|
||||
allow:
|
||||
web-stat-filter:
|
||||
enabled: true
|
||||
dynamic:
|
||||
druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
|
||||
# 连接池的配置信息
|
||||
# 初始化大小,最小,最大
|
||||
initial-size: 5
|
||||
min-idle: 5
|
||||
maxActive: 20
|
||||
# 配置获取连接等待超时的时间
|
||||
maxWait: 60000
|
||||
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
||||
timeBetweenEvictionRunsMillis: 60000
|
||||
# 配置一个连接在池中最小生存的时间,单位是毫秒
|
||||
minEvictableIdleTimeMillis: 300000
|
||||
validationQuery: SELECT 1
|
||||
testWhileIdle: true
|
||||
testOnBorrow: false
|
||||
testOnReturn: false
|
||||
# 打开PSCache,并且指定每个连接上PSCache的大小
|
||||
poolPreparedStatements: true
|
||||
maxPoolPreparedStatementPerConnectionSize: 20
|
||||
# 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
|
||||
filters: stat,slf4j
|
||||
filter:
|
||||
wall:
|
||||
config:
|
||||
none-base-statement-allow: true
|
||||
multi-statement-allow: true
|
||||
# 通过connectProperties属性来打开mergeSql功能;慢SQL记录
|
||||
connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
|
||||
datasource:
|
||||
# master:
|
||||
# url: jdbc:mysql://192.168.50.9:2212/selef_report?useUnicode=true&allowMultiQueries=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&serverTimezone=Asia/Shanghai&useSSL=false
|
||||
# username: zzzz
|
||||
# password: knphm2021
|
||||
# driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
master:
|
||||
url: jdbc:mysql://158.158.4.51:3386/kn_energy_cost?useUnicode=true&allowMultiQueries=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&serverTimezone=Asia/Shanghai&useSSL=false
|
||||
username: root
|
||||
password: knEnergyCost0826#
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
# 多数据源配置
|
||||
#multi-datasource1:
|
||||
#url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
||||
#username: root
|
||||
#password: root
|
||||
#driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
#redis 配置
|
||||
# redis:
|
||||
# database: 5
|
||||
# host: 121.40.189.20
|
||||
# port: 6389
|
||||
# redis:
|
||||
# database: 9
|
||||
# host: 192.168.50.9
|
||||
# port: 7379
|
||||
# password: 'zzboard'
|
||||
# main:
|
||||
# allow-circular-references: true
|
||||
redis:
|
||||
database: 10
|
||||
host: 158.158.4.48
|
||||
port: 6379
|
||||
password: 'zzboard'
|
||||
main:
|
||||
allow-circular-references: true
|
||||
# redis:
|
||||
# database: 10
|
||||
# host: localhost
|
||||
# port: 6379
|
||||
# main:
|
||||
# allow-circular-references: true
|
||||
|
||||
#rabbitmq 配置
|
||||
rabbitmq:
|
||||
host: 192.168.50.9
|
||||
port: 5672
|
||||
virtual-host: /qomoflow-standardcost
|
||||
username: admin
|
||||
password: kncloud
|
||||
connection-timeout: 5000
|
||||
listener:
|
||||
simple:
|
||||
concurrency: 5 # 并发数量
|
||||
max-concurrency: 10 # 最大并发数量
|
||||
acknowledge-mode: manual # 开启手动签收
|
||||
prefetch: 1 # 限制每次只消费一个(一个线程)
|
||||
|
||||
#mybatis plus 设置
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath*:org/jeecg/modules/**/xml/*Mapper.xml,classpath*:/mapper/*.xml,classpath*:com/zzsmart/qomo/**/mapper/xml/*.xml
|
||||
global-config:
|
||||
# 关闭MP3.0自带的banner
|
||||
banner: false
|
||||
db-config:
|
||||
#主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
|
||||
id-type: ASSIGN_ID
|
||||
# 默认数据库表下划线命名
|
||||
table-underline: true
|
||||
configuration:
|
||||
# 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
|
||||
#log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
# log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
|
||||
# 返回类型为Map,显示null对应的字段
|
||||
call-setters-on-nulls: true
|
||||
security:
|
||||
enabled: false
|
||||
#jeecg专用配置
|
||||
minidao:
|
||||
base-package: org.jeecg.modules.jmreport.*,org.jeecg.modules.drag.*
|
||||
jeecg:
|
||||
# 是否启用安全模式
|
||||
safeMode: false
|
||||
# 签名密钥串(前后端要一致,正式发布请自行修改)
|
||||
signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a
|
||||
# 签名拦截接口
|
||||
signUrls: /sys/dict/getDictItems/*,/sys/dict/loadDict/*,/sys/dict/loadDictOrderByValue/*,/sys/dict/loadDictItem/*,/sys/dict/loadTreeData,/sys/api/queryTableDictItemsByCode,/sys/api/queryFilterTableDictInfo,/sys/api/queryTableDictByKeys,/sys/api/translateDictFromTable,/sys/api/translateDictFromTableByKeys
|
||||
#local、minio、alioss
|
||||
uploadType: local
|
||||
# 前端访问地址
|
||||
domainUrl:
|
||||
pc: http://localhost:3100
|
||||
app: http://localhost:8051
|
||||
path:
|
||||
#文件上传根目录 设置
|
||||
upload: /opt/upFiles
|
||||
#webapp文件路径
|
||||
webapp: /opt/webapp
|
||||
shiro:
|
||||
excludeUrls: /api/internalService/**,/test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**,/api/getUserInfo,/sys/sysDepart/**,/taskSocket/**,/flowSocket/**,/dataCheck/**
|
||||
# excludeUrls: /**/**,/**/**/**
|
||||
|
||||
#阿里云oss存储和大鱼短信秘钥配置
|
||||
oss:
|
||||
accessKey: ??
|
||||
secretKey: ??
|
||||
endpoint: oss-cn-beijing.aliyuncs.com
|
||||
bucketName: jeecgdev
|
||||
# ElasticSearch 6设置
|
||||
elasticsearch:
|
||||
cluster-name: elasticsearch-cluster
|
||||
cluster-nodes: 192.168.50.9:9200
|
||||
check-enabled: false
|
||||
task-data-index: task_data_dev/_doc
|
||||
task-data-struct-index: task_data_struct_dev/_doc
|
||||
task-data-temp-index: task_data_temp_dev/_doc
|
||||
task-log-index: task_log_dev/_doc
|
||||
task-record-index: clean_data_record/_doc
|
||||
# 在线预览文件服务器地址配置
|
||||
file-view-domain: http://fileview.jeecg.com
|
||||
# minio文件上传
|
||||
minio:
|
||||
minio_url: http://minio.jeecg.com
|
||||
minio_name: ??
|
||||
minio_pass: ??
|
||||
bucketName: otatest
|
||||
#大屏报表参数设置
|
||||
jmreport:
|
||||
mode: dev
|
||||
#数据字典是否进行saas数据隔离,自己看自己的字典
|
||||
saas: false
|
||||
#xxl-job配置
|
||||
xxljob:
|
||||
enabled: false
|
||||
adminAddresses: http://127.0.0.1:9080/xxl-job-admin
|
||||
appname: ${spring.application.name}
|
||||
accessToken: ''
|
||||
address: 127.0.0.1:30007
|
||||
ip: 127.0.0.1
|
||||
port: 30007
|
||||
logPath: logs/jeecg/job/jobhandler/
|
||||
logRetentionDays: 30
|
||||
#分布式锁配置
|
||||
redisson:
|
||||
address: 127.0.0.1:6379
|
||||
password:
|
||||
type: STANDALONE
|
||||
enabled: true
|
||||
#cas单点登录
|
||||
cas:
|
||||
server:
|
||||
host:
|
||||
#CAS服务地址
|
||||
url: http://192.168.50.9:8167/cas
|
||||
#Mybatis输出sql日志
|
||||
logging:
|
||||
level:
|
||||
org.jeecg.modules.system.mapper: info
|
||||
#swagger
|
||||
knife4j:
|
||||
#开启增强配置
|
||||
enable: true
|
||||
#开启生产环境屏蔽
|
||||
production: false
|
||||
basic:
|
||||
enable: false
|
||||
username: jeecg
|
||||
password: jeecg1314
|
||||
#第三方登录
|
||||
justauth:
|
||||
enabled: true
|
||||
type:
|
||||
GITHUB:
|
||||
client-id: ??
|
||||
client-secret: ??
|
||||
redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/github/callback
|
||||
WECHAT_ENTERPRISE:
|
||||
client-id: ??
|
||||
client-secret: ??
|
||||
redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_enterprise/callback
|
||||
agent-id: ??
|
||||
DINGTALK:
|
||||
client-id: ??
|
||||
client-secret: ??
|
||||
redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/dingtalk/callback
|
||||
WECHAT_OPEN:
|
||||
client-id: ??
|
||||
client-secret: ??
|
||||
redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_open/callback
|
||||
cache:
|
||||
type: default
|
||||
prefix: 'demo::'
|
||||
timeout: 1h
|
||||
#第三方APP对接
|
||||
third-app:
|
||||
enabled: false
|
||||
type:
|
||||
#企业微信
|
||||
WECHAT_ENTERPRISE:
|
||||
enabled: false
|
||||
#CORP_ID
|
||||
client-id: ??
|
||||
#SECRET
|
||||
client-secret: ??
|
||||
#自建应用id
|
||||
agent-id: ??
|
||||
#自建应用秘钥(新版企微需要配置)
|
||||
# agent-app-secret: ??
|
||||
#钉钉
|
||||
DINGTALK:
|
||||
enabled: false
|
||||
# appKey
|
||||
client-id: ??
|
||||
# appSecret
|
||||
client-secret: ??
|
||||
agent-id: ??
|
||||
|
||||
spark:
|
||||
app:
|
||||
name: yl
|
||||
home: 127.0.0.1
|
||||
master:
|
||||
uri: local[*]
|
||||
driver:
|
||||
memory: 2g
|
||||
worker:
|
||||
memory: 2g
|
||||
executor:
|
||||
memory: 1g
|
||||
rpc:
|
||||
message:
|
||||
maxSize: 1024
|
||||
|
||||
flowable:
|
||||
process:
|
||||
definition-cache-limit: -1
|
||||
database-schema-update: true
|
||||
activity-font-name: 宋体
|
||||
label-font-name: 宋体
|
||||
annotation-font-name: 宋体
|
||||
#关闭定时任务JOB
|
||||
async-executor-activate: false
|
||||
#消息链接基地址
|
||||
message-base-url: http://192.168.50.9:3000/flowable/task/record/
|
||||
|
||||
Qomo:
|
||||
version: @project.version@
|
||||
|
||||
modelPath: /opt/deploy/qomo/backend/algo/model
|
||||
seaTunnelHome: /opt/service/apache-seatunnel-2.3.4
|
||||
hiveMetastoreUri: thrift://192.168.50.102:9083
|
||||
hiveSitePath: /opt/service/apache-seatunnel-2.3.4/deploy/hive-site.xml
|
||||
hdfsSitePath: /opt/service/apache-seatunnel-2.3.4/deploy/hdfs-site.xml
|
||||
hdfs:
|
||||
enable: false
|
||||
minio:
|
||||
server: http://192.168.50.9
|
||||
port: 9100
|
||||
access-key: admin
|
||||
secret-key: qm123456
|
||||
|
||||
condaEnv: py310
|
||||
tikaServerUrl: http://192.168.50.99:8099/qomo-tika/
|
||||
|
||||
sap:
|
||||
service:
|
||||
url: http://158.158.5.98:7005/SAP_800/PS/SAP800_DSJ_ZSAP_DSJ_005_PS
|
||||
user: sap_dsj
|
||||
password: sapdsjabc123
|
||||
@@ -0,0 +1,451 @@
|
||||
v2:
|
||||
#虚拟路径映射路径 2个文件路径一一对应 第一个为主存储,其他为配置相关
|
||||
xnljmap:
|
||||
#win服务器 本地 注意!! 记住这个结尾有一个/
|
||||
oss: file:/data/qomo-boot/oss/
|
||||
# oss: file:D:/upload/
|
||||
#linux服务器
|
||||
#oss: file:/home/webapps/oss/
|
||||
#虚拟路径映射路径 end
|
||||
#本地存放地址 注意!! 记住这个结尾没有/
|
||||
fileurl: /data/qomo-boot/oss
|
||||
# fileurl: D:/upload
|
||||
#http://127.0.0.1:8080/oss/{yy}/2022-12-22/c83a77ae134a540c30daa6a0666fa945.md
|
||||
httpurl: /qomo/
|
||||
defaultFormat: .png
|
||||
|
||||
server:
|
||||
port: 8095
|
||||
tomcat:
|
||||
max-swallow-size: -1
|
||||
error:
|
||||
include-exception: true
|
||||
include-stacktrace: ALWAYS
|
||||
include-message: ALWAYS
|
||||
servlet:
|
||||
context-path: /qomo
|
||||
compression:
|
||||
enabled: true
|
||||
min-response-size: 1024
|
||||
mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/*
|
||||
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: metrics,httptrace
|
||||
|
||||
spring:
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 10MB
|
||||
max-request-size: 10MB
|
||||
mail:
|
||||
host: smtp.163.com
|
||||
username: jeecgos@163.com
|
||||
password: ??
|
||||
properties:
|
||||
mail:
|
||||
smtp:
|
||||
auth: true
|
||||
starttls:
|
||||
enable: true
|
||||
required: true
|
||||
## quartz定时任务,采用数据库方式
|
||||
quartz:
|
||||
job-store-type: jdbc
|
||||
initialize-schema: embedded
|
||||
#定时任务启动开关,true-开 false-关
|
||||
auto-startup: true
|
||||
#延迟1秒启动定时任务
|
||||
startup-delay: 1s
|
||||
#启动时更新己存在的Job
|
||||
overwrite-existing-jobs: true
|
||||
properties:
|
||||
org:
|
||||
quartz:
|
||||
scheduler:
|
||||
instanceName: MyScheduler
|
||||
instanceId: AUTO
|
||||
jobStore:
|
||||
class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
|
||||
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
|
||||
tablePrefix: QRTZ_
|
||||
isClustered: true
|
||||
misfireThreshold: 12000
|
||||
clusterCheckinInterval: 15000
|
||||
threadPool:
|
||||
class: org.quartz.simpl.SimpleThreadPool
|
||||
threadCount: 10
|
||||
threadPriority: 5
|
||||
threadsInheritContextClassLoaderOfInitializingThread: true
|
||||
#json 时间戳统一转换
|
||||
jackson:
|
||||
date-format: yyyy-MM-dd HH:mm:ss
|
||||
time-zone: GMT+8
|
||||
jpa:
|
||||
open-in-view: false
|
||||
|
||||
# http请求配置
|
||||
rest:
|
||||
livy:
|
||||
server: http://192.168.50.9:7997
|
||||
spark:
|
||||
# 组件部署路径,默认是部署在hdfs 如果是本地路径则在前面加上local:
|
||||
main-jar: local:/opt/services/deploy-jars/dev/qomo-data-component-${Qomo.version}-jar-with-dependencies.jar
|
||||
main-class: com.zzsmart.qomo.QomoSparkStarter
|
||||
# spark默认运行参数
|
||||
deploy-mode: cluster
|
||||
queue: default
|
||||
num-executors: 2
|
||||
executor-cores: 1
|
||||
executor-memory: 1G
|
||||
driver-cores: 1
|
||||
driver-memory: 512M
|
||||
# 客户端类型
|
||||
client-type: urlconnection
|
||||
# URLConnection配置
|
||||
url-connection:
|
||||
# 客户端和服务器建立连接超时时间
|
||||
connect-timeout: 2000
|
||||
# 客户端从服务器读取数据包超时时间
|
||||
read-timeout: 30000
|
||||
# 是否长链接
|
||||
keep-alive: false
|
||||
# HttpClient配置
|
||||
http-client:
|
||||
# 连接池的最大连接数
|
||||
max-total-connect: 200
|
||||
# 相同域名允许创建的最大连接数
|
||||
max-connect-per-route: 10
|
||||
# 客户端和服务器建立连接超时时间
|
||||
connect-timeout: 2000
|
||||
# 读数据的超时时间
|
||||
socket-timeout: 30000
|
||||
# 连接池创建连接时的超时时间
|
||||
connection-request-timout: 200
|
||||
# OKHttp配置
|
||||
ok-http:
|
||||
# 失败后是否重试
|
||||
retry-on-connection-failure: false
|
||||
# 链接超时时间
|
||||
connect-timeout: 2000
|
||||
# 读超时时间
|
||||
read-timeout: 10000
|
||||
# 写超时时间
|
||||
write-timeout: 10000
|
||||
# 最大空闲的连接数
|
||||
max-idle-connections: 5
|
||||
# 最大的空闲时间
|
||||
keep-alive-duration-ns: 3000
|
||||
|
||||
aop:
|
||||
proxy-target-class: true
|
||||
#配置freemarker
|
||||
freemarker:
|
||||
# 设置模板后缀名
|
||||
suffix: .ftl
|
||||
# 设置文档类型
|
||||
content-type: text/html
|
||||
# 设置页面编码格式
|
||||
charset: UTF-8
|
||||
# 设置页面缓存
|
||||
cache: false
|
||||
prefer-file-system-access: false
|
||||
# 设置ftl文件路径
|
||||
template-loader-path:
|
||||
- classpath:/template
|
||||
# - d:/data
|
||||
template_update_delay: 0
|
||||
# 设置静态文件路径,js,css等
|
||||
mvc:
|
||||
static-path-pattern: /**
|
||||
#Spring Boot 2.6+后映射匹配的默认策略已从AntPathMatcher更改为PathPatternParser,需要手动指定为ant-path-matcher
|
||||
pathmatch:
|
||||
matching-strategy: ant_path_matcher
|
||||
resource:
|
||||
static-locations: classpath:/static/,classpath:/public/
|
||||
autoconfigure:
|
||||
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
|
||||
datasource:
|
||||
druid:
|
||||
stat-view-servlet:
|
||||
enabled: true
|
||||
loginUsername: admin
|
||||
loginPassword: 123456
|
||||
allow:
|
||||
web-stat-filter:
|
||||
enabled: true
|
||||
dynamic:
|
||||
druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
|
||||
# 连接池的配置信息
|
||||
# 初始化大小,最小,最大
|
||||
initial-size: 5
|
||||
min-idle: 5
|
||||
maxActive: 20
|
||||
# 配置获取连接等待超时的时间
|
||||
maxWait: 60000
|
||||
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
||||
timeBetweenEvictionRunsMillis: 60000
|
||||
# 配置一个连接在池中最小生存的时间,单位是毫秒
|
||||
minEvictableIdleTimeMillis: 300000
|
||||
validationQuery: SELECT 1
|
||||
testWhileIdle: true
|
||||
testOnBorrow: false
|
||||
testOnReturn: false
|
||||
# 打开PSCache,并且指定每个连接上PSCache的大小
|
||||
poolPreparedStatements: true
|
||||
maxPoolPreparedStatementPerConnectionSize: 20
|
||||
# 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
|
||||
filters: stat,slf4j
|
||||
filter:
|
||||
wall:
|
||||
config:
|
||||
none-base-statement-allow: true
|
||||
multi-statement-allow: true
|
||||
# 通过connectProperties属性来打开mergeSql功能;慢SQL记录
|
||||
connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:mysql://192.168.50.9:2212/otd?useUnicode=true&allowMultiQueries=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&serverTimezone=Asia/Shanghai&useSSL=false
|
||||
username: root
|
||||
password: root
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
# 多数据源配置
|
||||
#multi-datasource1:
|
||||
#url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
||||
#username: root
|
||||
#password: root
|
||||
#driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
#redis 配置
|
||||
redis:
|
||||
database: 9
|
||||
host: 192.168.50.9
|
||||
port: 7379
|
||||
password: 'zzboard'
|
||||
main:
|
||||
allow-circular-references: true
|
||||
|
||||
#rabbitmq 配置
|
||||
rabbitmq:
|
||||
host: 192.168.50.9
|
||||
port: 5672
|
||||
virtual-host: /qomoflow-dev
|
||||
username: admin
|
||||
password: kncloud
|
||||
connection-timeout: 5000
|
||||
listener:
|
||||
simple:
|
||||
concurrency: 5 # 并发数量
|
||||
max-concurrency: 10 # 最大并发数量
|
||||
acknowledge-mode: manual # 开启手动签收
|
||||
prefetch: 1 # 限制每次只消费一个(一个线程)
|
||||
|
||||
#mybatis plus 设置
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath*:org/jeecg/modules/**/xml/*Mapper.xml,classpath*:/mapper/*.xml,classpath*:com/zzsmart/qomo/**/mapper/xml/*.xml
|
||||
global-config:
|
||||
# 关闭MP3.0自带的banner
|
||||
banner: false
|
||||
db-config:
|
||||
#主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
|
||||
id-type: ASSIGN_ID
|
||||
# 默认数据库表下划线命名
|
||||
table-underline: true
|
||||
configuration:
|
||||
# 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
# log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
|
||||
# 返回类型为Map,显示null对应的字段
|
||||
call-setters-on-nulls: true
|
||||
#jeecg专用配置
|
||||
minidao:
|
||||
base-package: org.jeecg.modules.jmreport.*,org.jeecg.modules.drag.*
|
||||
jeecg:
|
||||
# 是否启用安全模式
|
||||
safeMode: false
|
||||
# 签名密钥串(前后端要一致,正式发布请自行修改)
|
||||
signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a
|
||||
# 签名拦截接口
|
||||
signUrls: /sys/dict/getDictItems/*,/sys/dict/loadDict/*,/sys/dict/loadDictOrderByValue/*,/sys/dict/loadDictItem/*,/sys/dict/loadTreeData,/sys/api/queryTableDictItemsByCode,/sys/api/queryFilterTableDictInfo,/sys/api/queryTableDictByKeys,/sys/api/translateDictFromTable,/sys/api/translateDictFromTableByKeys
|
||||
#local、minio、alioss
|
||||
uploadType: local
|
||||
# 前端访问地址
|
||||
domainUrl:
|
||||
pc: http://localhost:3100
|
||||
app: http://localhost:8051
|
||||
path:
|
||||
#文件上传根目录 设置
|
||||
upload: /opt/upFiles
|
||||
#webapp文件路径
|
||||
webapp: /opt/webapp
|
||||
shiro:
|
||||
# excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**,/api/getUserInfo,/sys/sysDepart/**,/taskSocket/**,/flowSocket/**
|
||||
excludeUrls: /**/**,/**/**/**
|
||||
|
||||
#阿里云oss存储和大鱼短信秘钥配置
|
||||
oss:
|
||||
accessKey: ??
|
||||
secretKey: ??
|
||||
endpoint: oss-cn-beijing.aliyuncs.com
|
||||
bucketName: jeecgdev
|
||||
minio:
|
||||
minio_url: http://192.168.50.102:9000
|
||||
minio_name: admin
|
||||
minio_pass: minioadmin
|
||||
bucketName: bucket803
|
||||
# ElasticSearch 6设置
|
||||
elasticsearch:
|
||||
cluster-name: elasticsearch-cluster
|
||||
cluster-nodes: 192.168.50.9:9200
|
||||
check-enabled: false
|
||||
task-data-index: task_data_dev/_doc
|
||||
task-data-struct-index: task_data_struct_dev/_doc
|
||||
task-data-temp-index: task_data_temp_dev/_doc
|
||||
task-log-index: task_log_dev/_doc
|
||||
# 在线预览文件服务器地址配置
|
||||
file-view-domain: http://fileview.jeecg.com
|
||||
# minio文件上传
|
||||
# minio:
|
||||
# minio_url: http://minio.jeecg.com
|
||||
# minio_name: ??
|
||||
# minio_pass: ??
|
||||
# bucketName: otatest
|
||||
#大屏报表参数设置
|
||||
jmreport:
|
||||
mode: dev
|
||||
#数据字典是否进行saas数据隔离,自己看自己的字典
|
||||
saas: false
|
||||
#xxl-job配置
|
||||
xxljob:
|
||||
enabled: false
|
||||
adminAddresses: http://127.0.0.1:9080/xxl-job-admin
|
||||
appname: ${spring.application.name}
|
||||
accessToken: ''
|
||||
address: 127.0.0.1:30007
|
||||
ip: 127.0.0.1
|
||||
port: 30007
|
||||
logPath: logs/jeecg/job/jobhandler/
|
||||
logRetentionDays: 30
|
||||
#分布式锁配置
|
||||
redisson:
|
||||
address: 127.0.0.1:6379
|
||||
password:
|
||||
type: STANDALONE
|
||||
enabled: true
|
||||
#cas单点登录
|
||||
cas:
|
||||
server:
|
||||
host:
|
||||
#CAS服务地址
|
||||
url: http://192.168.50.9:8167/cas
|
||||
#Mybatis输出sql日志
|
||||
logging:
|
||||
level:
|
||||
org.jeecg.modules.system.mapper: info
|
||||
#swagger
|
||||
knife4j:
|
||||
#开启增强配置
|
||||
enable: true
|
||||
#开启生产环境屏蔽
|
||||
production: false
|
||||
basic:
|
||||
enable: false
|
||||
username: jeecg
|
||||
password: jeecg1314
|
||||
#第三方登录
|
||||
justauth:
|
||||
enabled: true
|
||||
type:
|
||||
GITHUB:
|
||||
client-id: ??
|
||||
client-secret: ??
|
||||
redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/github/callback
|
||||
WECHAT_ENTERPRISE:
|
||||
client-id: ??
|
||||
client-secret: ??
|
||||
redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_enterprise/callback
|
||||
agent-id: ??
|
||||
DINGTALK:
|
||||
client-id: ??
|
||||
client-secret: ??
|
||||
redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/dingtalk/callback
|
||||
WECHAT_OPEN:
|
||||
client-id: ??
|
||||
client-secret: ??
|
||||
redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_open/callback
|
||||
cache:
|
||||
type: default
|
||||
prefix: 'demo::'
|
||||
timeout: 1h
|
||||
#第三方APP对接
|
||||
third-app:
|
||||
enabled: false
|
||||
type:
|
||||
#企业微信
|
||||
WECHAT_ENTERPRISE:
|
||||
enabled: false
|
||||
#CORP_ID
|
||||
client-id: ??
|
||||
#SECRET
|
||||
client-secret: ??
|
||||
#自建应用id
|
||||
agent-id: ??
|
||||
#自建应用秘钥(新版企微需要配置)
|
||||
# agent-app-secret: ??
|
||||
#钉钉
|
||||
DINGTALK:
|
||||
enabled: false
|
||||
# appKey
|
||||
client-id: ??
|
||||
# appSecret
|
||||
client-secret: ??
|
||||
agent-id: ??
|
||||
|
||||
spark:
|
||||
app:
|
||||
name: yl
|
||||
home: 127.0.0.1
|
||||
master:
|
||||
uri: local[*]
|
||||
driver:
|
||||
memory: 2g
|
||||
worker:
|
||||
memory: 2g
|
||||
executor:
|
||||
memory: 1g
|
||||
rpc:
|
||||
message:
|
||||
maxSize: 1024
|
||||
|
||||
flowable:
|
||||
process:
|
||||
definition-cache-limit: -1
|
||||
database-schema-update: true
|
||||
activity-font-name: 宋体
|
||||
label-font-name: 宋体
|
||||
annotation-font-name: 宋体
|
||||
#关闭定时任务JOB
|
||||
async-executor-activate: false
|
||||
#消息链接基地址
|
||||
message-base-url: http://192.168.50.9:3000/flowable/task/record/
|
||||
|
||||
Qomo:
|
||||
version: @project.version@
|
||||
|
||||
modelPath: /opt/services/deploy-jars/algo/model
|
||||
seaTunnelHome: /opt/service/apache-seatunnel-2.3.4
|
||||
hiveMetastoreUri: thrift://192.168.50.102:9083
|
||||
|
||||
minio:
|
||||
server: http://192.168.50.102
|
||||
port: 9000
|
||||
access-key: admin
|
||||
secret-key: minioadmin
|
||||
bucketName: bucket1
|
||||
|
||||
condaEnv: py310
|
||||
|
||||
analysis:
|
||||
consistency:
|
||||
url: http://192.168.50.9:1314/analysis
|
||||
@@ -0,0 +1,5 @@
|
||||
spring:
|
||||
application:
|
||||
name: qomo-forecast
|
||||
profiles:
|
||||
active: dev
|
||||
@@ -0,0 +1,29 @@
|
||||
#code_generate_project_path
|
||||
project_path=E:\\workspace\\qomoai
|
||||
#bussi_package[User defined]
|
||||
bussi_package=com.zzsmart.qomo.modules.demo
|
||||
|
||||
|
||||
#default code path
|
||||
#source_root_package=src
|
||||
#webroot_package=WebRoot
|
||||
|
||||
#maven code path
|
||||
source_root_package=src.main.java
|
||||
webroot_package=src.main.webapp
|
||||
|
||||
#ftl resource url
|
||||
templatepath=/jeecg/code-template
|
||||
system_encoding=utf-8
|
||||
|
||||
#db Table id [User defined]
|
||||
db_table_id=id
|
||||
|
||||
#db convert flag[true/false]
|
||||
db_filed_convert=true
|
||||
|
||||
#page Search Field num [User defined]
|
||||
page_search_filed_num=1
|
||||
#page_filter_fields
|
||||
page_filter_fields=create_time,create_by,update_time,update_by
|
||||
exclude_table=act_,ext_act_,design_,onl_,sys_,qrtz_
|
||||
@@ -0,0 +1,27 @@
|
||||
#mysql
|
||||
diver_name=com.mysql.jdbc.Driver
|
||||
url=jdbc:mysql://localhost:3306/qomo?useUnicode=true&characterEncoding=UTF-8
|
||||
username=root
|
||||
password=root
|
||||
database_name=qomo
|
||||
|
||||
#oracle
|
||||
#diver_name=oracle.jdbc.driver.OracleDriver
|
||||
#url=jdbc:oracle:thin:@192.168.1.200:1521:ORCL
|
||||
#username=scott
|
||||
#password=tiger
|
||||
#database_name=ORCL
|
||||
|
||||
#postgre
|
||||
#diver_name=org.postgresql.Driver
|
||||
#url=jdbc:postgresql://localhost:5432/qomo
|
||||
#username=postgres
|
||||
#password=postgres
|
||||
#database_name=qomo
|
||||
|
||||
#SQLServer2005以上
|
||||
#diver_name=org.hibernate.dialect.SQLServerDialect
|
||||
#url=jdbc:sqlserver://192.168.1.200:1433;DatabaseName=qomo
|
||||
#username=sa
|
||||
#password=SA
|
||||
#database_name=qomo
|
||||
@@ -0,0 +1,96 @@
|
||||
ALTER TABLE `sys_permission`
|
||||
ADD COLUMN `type` varchar(255) NULL COMMENT '类型 CDM 公共层 ADS 应用层' AFTER `middle`;
|
||||
|
||||
CREATE TABLE `sys_application`
|
||||
(
|
||||
`id` varchar(255) NOT NULL COMMENT '主键',
|
||||
`app_name` varchar(255) NULL COMMENT '应用名称',
|
||||
`app_code` varchar(255) NULL COMMENT '应用编码',
|
||||
`app_icon` varchar(255) NULL COMMENT '应用图标',
|
||||
`app_color` varchar(255) NULL COMMENT '应用颜色',
|
||||
`app_belong` varchar(255) NULL COMMENT '应用所属',
|
||||
`app_kind` varchar(255) NULL COMMENT '应用种类',
|
||||
`app_type` varchar(255) NULL COMMENT '应用类型',
|
||||
`function_module` varchar(255) NULL COMMENT '功能模块',
|
||||
`main_menu_url` varchar(255) NULL COMMENT '主菜单路径',
|
||||
`main_menu_name` varchar(255) NULL COMMENT '主菜单名称',
|
||||
`sort` int NULL COMMENT '排序',
|
||||
`create_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'creator id',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT 'create time',
|
||||
`update_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'updator id',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT 'update time',
|
||||
PRIMARY KEY (`id`)
|
||||
) COMMENT = '系统应用表';
|
||||
|
||||
|
||||
CREATE TABLE `sys_app_menu`
|
||||
(
|
||||
`id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键',
|
||||
`app_id` varchar(255) NULL COMMENT '应用id',
|
||||
`menu_id` varchar(255) NULL COMMENT '菜单id',
|
||||
`create_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'creator id',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT 'create time',
|
||||
`update_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'updator id',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT 'update time',
|
||||
PRIMARY KEY (`id`)
|
||||
) COMMENT = '应用菜单';
|
||||
|
||||
ALTER TABLE `qomo_database_file`
|
||||
ADD COLUMN `record_count` bigint NULL COMMENT '记录数' AFTER `absolute_path`;
|
||||
|
||||
CREATE TABLE `qomo_python_package` (
|
||||
`id` varchar(255) NOT NULL COMMENT '主键',
|
||||
`package_name` varchar(255) NULL COMMENT '包名',
|
||||
`version` varchar(255) NULL COMMENT '版本',
|
||||
`create_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'creator id',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT 'create time',
|
||||
`update_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'updator id',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT 'update time',
|
||||
PRIMARY KEY (`id`)
|
||||
) COMMENT = 'python包管理';
|
||||
|
||||
CREATE TABLE `sys_org` (
|
||||
`id` varchar(255) NOT NULL COMMENT 'ID',
|
||||
`org_name` varchar(255) NULL COMMENT '组织名称',
|
||||
`org_code` varchar(255) NULL COMMENT '组织编码',
|
||||
`org_Industry` varchar(255) NULL COMMENT '所属行业',
|
||||
`org_scale` varchar(255) NULL COMMENT '公司规模',
|
||||
`org_addr` varchar(255) NULL COMMENT '公司地址',
|
||||
`org_logo` varchar(255) NULL COMMENT '组织logo',
|
||||
`org_state` varchar(255) NULL COMMENT '公司状态',
|
||||
`create_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'creator id',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT 'create time',
|
||||
`update_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'updator id',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT 'update time',
|
||||
PRIMARY KEY (`id`)
|
||||
) COMMENT = '组织';
|
||||
|
||||
CREATE TABLE `sys_app_org` (
|
||||
`id` varchar(255) NOT NULL COMMENT 'ID',
|
||||
`app_id` varchar(255) NULL COMMENT '应用ID',
|
||||
`org_id` varchar(255) NULL COMMENT '组织ID',
|
||||
`create_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'creator id',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT 'create time',
|
||||
`update_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'updator id',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT 'update time',
|
||||
PRIMARY KEY (`id`)
|
||||
) COMMENT = '应用组织关联表';
|
||||
|
||||
# 2024-03-27
|
||||
ALTER TABLE `sys_org`
|
||||
ADD COLUMN `org_desc` varchar(255) NULL COMMENT '描述' AFTER `org_state`;
|
||||
|
||||
# 2024-03-29
|
||||
ALTER TABLE `sys_depart`
|
||||
MODIFY COLUMN `org_category` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT '1' COMMENT '机构类别 1公司,2组织机构,2岗位' AFTER `description`,
|
||||
ADD COLUMN `org_id` varchar(255) NULL COMMENT '组织ID' AFTER `org_code`,
|
||||
ADD COLUMN `depart_code` varchar(255) NULL COMMENT '组织ID' AFTER `org_code`;
|
||||
|
||||
ALTER TABLE `sys_role`
|
||||
ADD COLUMN `org_id` varchar(255) NULL COMMENT '组织ID' AFTER `role_code`;
|
||||
|
||||
ALTER TABLE `sys_user`
|
||||
ADD COLUMN `org_id` varchar(255) NULL COMMENT '组织ID' AFTER `bpm_status`;
|
||||
|
||||
ALTER TABLE `sys_user`
|
||||
ADD COLUMN `depart_code` varchar(255) NULL COMMENT '登录会话的部门编码' AFTER `org_code`;
|
||||
+19122
File diff suppressed because one or more lines are too long
@@ -0,0 +1,9 @@
|
||||
<databaseChangeLog
|
||||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
|
||||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd">
|
||||
|
||||
<!-- <include file="liquibase/changelogs/qomo-boot-init.sql" relativeToChangelogFile="false"/>-->
|
||||
<!-- <include file="liquibase/changelogs/change.sql" relativeToChangelogFile="false"/>-->
|
||||
</databaseChangeLog>
|
||||
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.zzsmart.qomo</groupId>
|
||||
<artifactId>qomo-kn-forecast</artifactId>
|
||||
<version>${revision}</version>
|
||||
</parent>
|
||||
<artifactId>qomo-kn-cost-manage</artifactId>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.qomo.boot</groupId>
|
||||
<artifactId>qomo-system-biz</artifactId>
|
||||
<version>2.0.1-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.auto.service</groupId>
|
||||
<artifactId>auto-service</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.zzsmart.qomo</groupId>
|
||||
<artifactId>qomo-data-integration</artifactId>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>com.zzsmart.hdp.hive</groupId>
|
||||
<artifactId>hive-jdbc</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.zzsmart.hdp.hive</groupId>
|
||||
<artifactId>hive-jdbc</artifactId>
|
||||
<version>2.6.5.0-292</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.zzsmart.qomo</groupId>
|
||||
<artifactId>qomo-data-selfReport</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-httpclient</groupId>
|
||||
<artifactId>commons-httpclient</artifactId>
|
||||
<version>3.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.constants;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author WangBo
|
||||
* @since 2024/5/17 下午3:05
|
||||
*/
|
||||
public interface Constants {
|
||||
|
||||
String TRACK = "轨道总部";
|
||||
|
||||
List<String> BUSINESS_SEGMENTS = CollUtil.newArrayList("国内业务", "维保业务", "海外业务", "安全门业务", "汽车门业务", "内装业务");
|
||||
|
||||
List<String> PROFIT_ITEM_NAMES = CollUtil.newArrayList(
|
||||
"一、营业总收入",
|
||||
"其中:营业成本",
|
||||
"税金及附加",
|
||||
"销售费用",
|
||||
"管理费用",
|
||||
"研发费用",
|
||||
"财务费用",
|
||||
"二、营业总成本",
|
||||
"加:其他收益",
|
||||
"投资收益(损失以“-”号填列)",
|
||||
"公允价值变动收益(损失以“-”号填列)",
|
||||
"信用减值损失(损失以“-”号填列)",
|
||||
"资产减值损失(损失以“-”号填列)",
|
||||
"资产处置收益(损失以“-”号填列)",
|
||||
"三、营业利润",
|
||||
"加:营业外收入",
|
||||
"减:营业外支出",
|
||||
"四、利润总额",
|
||||
"减:所得税费用",
|
||||
"五、净利润",
|
||||
"六、归属于母公司的净利润",
|
||||
"八、关键指标",
|
||||
"产品毛利率",
|
||||
"期间费用",
|
||||
"期间费用率",
|
||||
"净利率");
|
||||
/**
|
||||
* 下划线
|
||||
*/
|
||||
String UNDER_LINE = "_";
|
||||
}
|
||||
+248
@@ -0,0 +1,248 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostActual;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZcorc;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostActualService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.CostEffectiveVO;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.LaborDiffVO;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.RealLaborVO;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.RealProduceVO;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_actual
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="app_scene_cost_actual")
|
||||
@RestController
|
||||
@RequestMapping("/cost/appSceneCostActual")
|
||||
@Slf4j
|
||||
public class AppSceneCostActualController extends JeecgController<AppSceneCostActual, IAppSceneCostActualService> {
|
||||
@Autowired
|
||||
private IAppSceneCostActualService appSceneCostActualService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostActual
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_actual-分页列表查询")
|
||||
@ApiOperation(value="app_scene_cost_actual-分页列表查询", notes="app_scene_cost_actual-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostActual>> queryPageList(AppSceneCostActual appSceneCostActual,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostActual> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostActual, req.getParameterMap());
|
||||
queryWrapper.orderByDesc("create_time");
|
||||
Page<AppSceneCostActual> page = new Page<AppSceneCostActual>(pageNo, pageSize);
|
||||
IPage<AppSceneCostActual> pageList = appSceneCostActualService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param appSceneCostActual
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_actual-添加")
|
||||
@ApiOperation(value="app_scene_cost_actual-添加", notes="app_scene_cost_actual-添加")
|
||||
//@RequiresPermissions("cost:app_scene_cost_actual:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody CostEffectiveVO appSceneCostActual) {
|
||||
appSceneCostActualService.addCostActual(appSceneCostActual);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param appSceneCostActual
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_actual-编辑")
|
||||
@ApiOperation(value="app_scene_cost_actual-编辑", notes="app_scene_cost_actual-编辑")
|
||||
@RequiresPermissions("cost:app_scene_cost_actual:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody AppSceneCostActual appSceneCostActual) {
|
||||
appSceneCostActualService.updateById(appSceneCostActual);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_actual-通过id删除")
|
||||
@ApiOperation(value="app_scene_cost_actual-通过id删除", notes="app_scene_cost_actual-通过id删除")
|
||||
@RequiresPermissions("cost:app_scene_cost_actual:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
appSceneCostActualService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_actual-批量删除")
|
||||
@ApiOperation(value="app_scene_cost_actual-批量删除", notes="app_scene_cost_actual-批量删除")
|
||||
@RequiresPermissions("cost:app_scene_cost_actual:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.appSceneCostActualService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_actual-通过id查询")
|
||||
@ApiOperation(value="app_scene_cost_actual-通过id查询", notes="app_scene_cost_actual-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<AppSceneCostActual> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
AppSceneCostActual appSceneCostActual = appSceneCostActualService.getById(id);
|
||||
if(appSceneCostActual==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(appSceneCostActual);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param appSceneCostActual
|
||||
*/
|
||||
@RequiresPermissions("cost:app_scene_cost_actual:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostActual appSceneCostActual) {
|
||||
return super.exportXls(request, appSceneCostActual, AppSceneCostActual.class, "app_scene_cost_actual");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("cost:app_scene_cost_actual:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, AppSceneCostActual.class);
|
||||
}
|
||||
|
||||
@ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
|
||||
@GetMapping(value = "/queryParent")
|
||||
public Result<List<String>> queryParent(@RequestParam(name="resultid", defaultValue="") int resultid,
|
||||
@RequestParam(name="matnr", defaultValue="") String matnr) {
|
||||
List<String> vo = appSceneCostActualService.queryParent(resultid,matnr);
|
||||
return Result.OK(vo);
|
||||
}
|
||||
|
||||
/* 根据物料号查询标准成本版本及订单号
|
||||
*
|
||||
* @param appSceneCostMiningResult
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_mining_result-分页列表查询")
|
||||
@ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
|
||||
@GetMapping(value = "/queryMatnrDetail")
|
||||
public Result<List<AppSceneCostSapZcorc>> queryMatnrDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
|
||||
@RequestParam(name="matnr", defaultValue="") String matnr) {
|
||||
List<AppSceneCostSapZcorc> vo = appSceneCostActualService.queryMatnrDetail(resultid,matnr);
|
||||
return Result.OK(vo);
|
||||
}
|
||||
|
||||
@ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
|
||||
@GetMapping(value = "/queryAufnrDetail")
|
||||
public Result<List<RealLaborVO>> queryAufnrDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
|
||||
@RequestParam(name="matnr", defaultValue="") String matnr) {
|
||||
List<RealLaborVO> vo = appSceneCostActualService.queryAufnrDetail(resultid,matnr);
|
||||
return Result.OK(vo);
|
||||
}
|
||||
|
||||
@ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
|
||||
@GetMapping(value = "/queryProduceDetail")
|
||||
public Result<List<RealProduceVO>> queryProduceDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
|
||||
@RequestParam(name="matnr", defaultValue="") String matnr) {
|
||||
List<RealProduceVO> vo = appSceneCostActualService.queryProduceDetail(resultid,matnr);
|
||||
return Result.OK(vo);
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
|
||||
@RequestMapping(value = "/exportMatnrDetail")
|
||||
public ModelAndView exportMatnrDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
|
||||
@RequestParam(name="matnr", defaultValue="") String matnr) {
|
||||
return appSceneCostActualService.exportMatnrDetail(resultid,matnr);
|
||||
}
|
||||
|
||||
@ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
|
||||
@RequestMapping(value = "/exportLaborDetail")
|
||||
public ModelAndView exportLaborDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
|
||||
@RequestParam(name="matnr", defaultValue="") String matnr) {
|
||||
return appSceneCostActualService.exportLaborDetail(resultid,matnr);
|
||||
}
|
||||
|
||||
@ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
|
||||
@RequestMapping(value = "/exportProduceDetail")
|
||||
public ModelAndView exportProduceDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
|
||||
@RequestParam(name="matnr", defaultValue="") String matnr) {
|
||||
return appSceneCostActualService.exportProduceDetail(resultid,matnr);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
+179
@@ -0,0 +1,179 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostAufnrMatnr;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostAufnrMatnrService;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_aufnr_matnr
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-05
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="app_scene_cost_aufnr_matnr")
|
||||
@RestController
|
||||
@RequestMapping("/cost/appSceneCostAufnrMatnr")
|
||||
@Slf4j
|
||||
public class AppSceneCostAufnrMatnrController extends JeecgController<AppSceneCostAufnrMatnr, IAppSceneCostAufnrMatnrService> {
|
||||
@Autowired
|
||||
private IAppSceneCostAufnrMatnrService appSceneCostAufnrMatnrService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostAufnrMatnr
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_aufnr_matnr-分页列表查询")
|
||||
@ApiOperation(value="app_scene_cost_aufnr_matnr-分页列表查询", notes="app_scene_cost_aufnr_matnr-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostAufnrMatnr>> queryPageList(AppSceneCostAufnrMatnr appSceneCostAufnrMatnr,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostAufnrMatnr> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostAufnrMatnr, req.getParameterMap());
|
||||
Page<AppSceneCostAufnrMatnr> page = new Page<AppSceneCostAufnrMatnr>(pageNo, pageSize);
|
||||
IPage<AppSceneCostAufnrMatnr> pageList = appSceneCostAufnrMatnrService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param appSceneCostAufnrMatnr
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_aufnr_matnr-添加")
|
||||
@ApiOperation(value="app_scene_cost_aufnr_matnr-添加", notes="app_scene_cost_aufnr_matnr-添加")
|
||||
@RequiresPermissions("cost:app_scene_cost_aufnr_matnr:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody AppSceneCostAufnrMatnr appSceneCostAufnrMatnr) {
|
||||
appSceneCostAufnrMatnrService.save(appSceneCostAufnrMatnr);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param appSceneCostAufnrMatnr
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_aufnr_matnr-编辑")
|
||||
@ApiOperation(value="app_scene_cost_aufnr_matnr-编辑", notes="app_scene_cost_aufnr_matnr-编辑")
|
||||
@RequiresPermissions("cost:app_scene_cost_aufnr_matnr:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody AppSceneCostAufnrMatnr appSceneCostAufnrMatnr) {
|
||||
appSceneCostAufnrMatnrService.updateById(appSceneCostAufnrMatnr);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_aufnr_matnr-通过id删除")
|
||||
@ApiOperation(value="app_scene_cost_aufnr_matnr-通过id删除", notes="app_scene_cost_aufnr_matnr-通过id删除")
|
||||
@RequiresPermissions("cost:app_scene_cost_aufnr_matnr:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
appSceneCostAufnrMatnrService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_aufnr_matnr-批量删除")
|
||||
@ApiOperation(value="app_scene_cost_aufnr_matnr-批量删除", notes="app_scene_cost_aufnr_matnr-批量删除")
|
||||
@RequiresPermissions("cost:app_scene_cost_aufnr_matnr:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.appSceneCostAufnrMatnrService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_aufnr_matnr-通过id查询")
|
||||
@ApiOperation(value="app_scene_cost_aufnr_matnr-通过id查询", notes="app_scene_cost_aufnr_matnr-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<AppSceneCostAufnrMatnr> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
AppSceneCostAufnrMatnr appSceneCostAufnrMatnr = appSceneCostAufnrMatnrService.getById(id);
|
||||
if(appSceneCostAufnrMatnr==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(appSceneCostAufnrMatnr);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param appSceneCostAufnrMatnr
|
||||
*/
|
||||
@RequiresPermissions("cost:app_scene_cost_aufnr_matnr:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostAufnrMatnr appSceneCostAufnrMatnr) {
|
||||
return super.exportXls(request, appSceneCostAufnrMatnr, AppSceneCostAufnrMatnr.class, "app_scene_cost_aufnr_matnr");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("cost:app_scene_cost_aufnr_matnr:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, AppSceneCostAufnrMatnr.class);
|
||||
}
|
||||
|
||||
}
|
||||
+159
@@ -0,0 +1,159 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostBomRelevancy;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostBomRelevancyService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_bom_relevancy
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-08
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags = "app_scene_cost_bom_relevancy")
|
||||
@RestController
|
||||
@RequestMapping("//appSceneCostBomRelevancy")
|
||||
@Slf4j
|
||||
public class AppSceneCostBomRelevancyController extends JeecgController<AppSceneCostBomRelevancy, IAppSceneCostBomRelevancyService> {
|
||||
@Autowired
|
||||
private IAppSceneCostBomRelevancyService appSceneCostBomRelevancyService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostBomRelevancy
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_bom_relevancy-分页列表查询")
|
||||
@ApiOperation(value = "app_scene_cost_bom_relevancy-分页列表查询", notes = "app_scene_cost_bom_relevancy-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostBomRelevancy>> queryPageList(AppSceneCostBomRelevancy appSceneCostBomRelevancy, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostBomRelevancy> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostBomRelevancy, req.getParameterMap());
|
||||
Page<AppSceneCostBomRelevancy> page = new Page<AppSceneCostBomRelevancy>(pageNo, pageSize);
|
||||
IPage<AppSceneCostBomRelevancy> pageList = appSceneCostBomRelevancyService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param appSceneCostBomRelevancy
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_bom_relevancy-添加")
|
||||
@ApiOperation(value = "app_scene_cost_bom_relevancy-添加", notes = "app_scene_cost_bom_relevancy-添加")
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_bom_relevancy:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody AppSceneCostBomRelevancy appSceneCostBomRelevancy) {
|
||||
appSceneCostBomRelevancyService.save(appSceneCostBomRelevancy);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param appSceneCostBomRelevancy
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_bom_relevancy-编辑")
|
||||
@ApiOperation(value = "app_scene_cost_bom_relevancy-编辑", notes = "app_scene_cost_bom_relevancy-编辑")
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_bom_relevancy:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody AppSceneCostBomRelevancy appSceneCostBomRelevancy) {
|
||||
appSceneCostBomRelevancyService.updateById(appSceneCostBomRelevancy);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_bom_relevancy-通过id删除")
|
||||
@ApiOperation(value = "app_scene_cost_bom_relevancy-通过id删除", notes = "app_scene_cost_bom_relevancy-通过id删除")
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_bom_relevancy:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name = "id", required = true) String id) {
|
||||
appSceneCostBomRelevancyService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_bom_relevancy-批量删除")
|
||||
@ApiOperation(value = "app_scene_cost_bom_relevancy-批量删除", notes = "app_scene_cost_bom_relevancy-批量删除")
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_bom_relevancy:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
|
||||
this.appSceneCostBomRelevancyService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_bom_relevancy-通过id查询")
|
||||
@ApiOperation(value = "app_scene_cost_bom_relevancy-通过id查询", notes = "app_scene_cost_bom_relevancy-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<AppSceneCostBomRelevancy> queryById(@RequestParam(name = "id", required = true) String id) {
|
||||
AppSceneCostBomRelevancy appSceneCostBomRelevancy = appSceneCostBomRelevancyService.getById(id);
|
||||
if (appSceneCostBomRelevancy == null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(appSceneCostBomRelevancy);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param appSceneCostBomRelevancy
|
||||
*/
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_bom_relevancy:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostBomRelevancy appSceneCostBomRelevancy) {
|
||||
return super.exportXls(request, appSceneCostBomRelevancy, AppSceneCostBomRelevancy.class, "app_scene_cost_bom_relevancy");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_bom_relevancy:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, AppSceneCostBomRelevancy.class);
|
||||
}
|
||||
|
||||
}
|
||||
+182
@@ -0,0 +1,182 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostCount;
|
||||
import com.zzsmart.qomo.kn.cost.manage.enums.CostCountStatusEnum;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostCountService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.AppSceneCostCountVO;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.MissingComponentVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_count
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-07-29
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags = "cost-标准成本计算")
|
||||
@RestController
|
||||
@RequestMapping("//costCount")
|
||||
@Slf4j
|
||||
public class AppSceneCostCountController extends JeecgController<AppSceneCostCount, IAppSceneCostCountService> {
|
||||
@Autowired
|
||||
private IAppSceneCostCountService appSceneCostCountService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostCount
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_count-分页列表查询")
|
||||
@ApiOperation(value = "标准成本计算-分页列表查询", notes = "标准成本计算-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostCount>> queryPageList(AppSceneCostCount appSceneCostCount, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostCount> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostCount, req.getParameterMap());
|
||||
queryWrapper.orderByDesc("create_time");
|
||||
Page<AppSceneCostCount> page = new Page<AppSceneCostCount>(pageNo, pageSize);
|
||||
IPage<AppSceneCostCount> pageList = appSceneCostCountService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
//IPage<AppSceneCostCountVO> pageList1 = new Page<>();
|
||||
//BeanUtils.copyProperties(pageList, pageList1);
|
||||
// List<AppSceneCostCountVO>list=new ArrayList<>();
|
||||
// for(int i=0;i<pageList.getRecords().size();i++){
|
||||
// AppSceneCostCount appSceneCostCount1 = pageList.getRecords().get(i);
|
||||
// AppSceneCostCountVO appSceneCostCountVO = new AppSceneCostCountVO();
|
||||
// BeanUtils.copyProperties(appSceneCostCount1, appSceneCostCountVO);
|
||||
// appSceneCostCountVO.setStatusName(CostCountStatusEnum.getTextByValue(appSceneCostCount1.getStatus()));
|
||||
// list.add(appSceneCostCountVO);
|
||||
// }
|
||||
// pageList1.setRecords(list);
|
||||
// return Result.OK(pageList1);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加标准成本计算任务
|
||||
*
|
||||
* @param appSceneCostCount
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_count-添加")
|
||||
@ApiOperation(value = "添加标准成本计算任务", notes = "添加标准成本计算任务")
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_count:addCostCountTask")
|
||||
@PostMapping(value = "/addCostCountTask")
|
||||
public Result<String> addCostCountTask(@RequestBody AppSceneCostCountVO appSceneCostCount) {
|
||||
appSceneCostCountService.addCostCountTask(appSceneCostCount);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_count-通过id删除")
|
||||
@ApiOperation(value = "标准成本计算-通过id删除", notes = "标准成本计算-通过id删除")
|
||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_count:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name = "id", required = true) String id) {
|
||||
appSceneCostCountService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
// /**
|
||||
// * 批量删除
|
||||
// *
|
||||
// * @param ids
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "app_scene_cost_count-批量删除")
|
||||
// @ApiOperation(value = "app_scene_cost_count-批量删除", notes = "app_scene_cost_count-批量删除")
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_count:deleteBatch")
|
||||
// @DeleteMapping(value = "/deleteBatch")
|
||||
// public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
|
||||
// this.appSceneCostCountService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
// return Result.OK("批量删除成功!");
|
||||
// }
|
||||
|
||||
/**
|
||||
* 重新计算
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_count-通过id查询")
|
||||
@ApiOperation(value = "标准成本计算-重新计算", notes = "标准成本计算-重新计算")
|
||||
@GetMapping(value = "/recountById")
|
||||
public Result<AppSceneCostCount> recountById(@RequestParam(name = "id", required = true) Integer id) {
|
||||
AppSceneCostCount appSceneCostCount = appSceneCostCountService.recountById(id);
|
||||
if (appSceneCostCount == null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(appSceneCostCount);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查看关键缺失部件
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_count-通过id查询")
|
||||
@ApiOperation(value = "标准成本计算-查看关键缺失部件", notes = "标准成本计算-查看关键缺失部件")
|
||||
@GetMapping(value = "/queryMissingComponentById")
|
||||
public Result<List<MissingComponentVO>> queryMissingComponentById(@RequestParam(name = "id", required = true) String id) {
|
||||
List<MissingComponentVO> result = appSceneCostCountService.queryMissingComponentById(id);
|
||||
if (result == null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param appSceneCostCount
|
||||
*/
|
||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_count:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostCount appSceneCostCount) {
|
||||
return super.exportXls(request, appSceneCostCount, AppSceneCostCount.class, "app_scene_cost_count");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_count:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
//return super.importExcel(request, response, AppSceneCostCount.class);
|
||||
return appSceneCostCountService.BatchCount(request,response);
|
||||
}
|
||||
|
||||
}
|
||||
+162
@@ -0,0 +1,162 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostHourRate;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostHourRateService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_hour_rate
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-08-02
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="cost-小时费率")
|
||||
@RestController
|
||||
@RequestMapping("//hourRate")
|
||||
@Slf4j
|
||||
public class AppSceneCostHourRateController extends JeecgController<AppSceneCostHourRate, IAppSceneCostHourRateService> {
|
||||
@Autowired
|
||||
private IAppSceneCostHourRateService appSceneCostHourRateService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostHourRate
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_hour_rate-分页列表查询")
|
||||
@ApiOperation(value = "app_scene_cost_hour_rate-分页列表查询", notes = "app_scene_cost_hour_rate-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostHourRate>> queryPageList(AppSceneCostHourRate appSceneCostHourRate,
|
||||
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
||||
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostHourRate> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostHourRate, req.getParameterMap());
|
||||
Page<AppSceneCostHourRate> page = new Page<AppSceneCostHourRate>(pageNo, pageSize);
|
||||
IPage<AppSceneCostHourRate> pageList = appSceneCostHourRateService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param appSceneCostHourRate
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_hour_rate-添加")
|
||||
@ApiOperation(value = "app_scene_cost_hour_rate-添加", notes = "app_scene_cost_hour_rate-添加")
|
||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_hour_rate:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody AppSceneCostHourRate appSceneCostHourRate) {
|
||||
appSceneCostHourRateService.save(appSceneCostHourRate);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param appSceneCostHourRate
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_hour_rate-编辑")
|
||||
@ApiOperation(value = "app_scene_cost_hour_rate-编辑", notes = "app_scene_cost_hour_rate-编辑")
|
||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_hour_rate:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody AppSceneCostHourRate appSceneCostHourRate) {
|
||||
appSceneCostHourRateService.updateById(appSceneCostHourRate);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_hour_rate-通过id删除")
|
||||
@ApiOperation(value = "app_scene_cost_hour_rate-通过id删除", notes = "app_scene_cost_hour_rate-通过id删除")
|
||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_hour_rate:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name = "id", required = true) String id) {
|
||||
appSceneCostHourRateService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
// /**
|
||||
// * 批量删除
|
||||
// *
|
||||
// * @param ids
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "app_scene_cost_hour_rate-批量删除")
|
||||
// @ApiOperation(value = "app_scene_cost_hour_rate-批量删除", notes = "app_scene_cost_hour_rate-批量删除")
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_hour_rate:deleteBatch")
|
||||
// @DeleteMapping(value = "/deleteBatch")
|
||||
// public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
|
||||
// this.appSceneCostHourRateService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
// return Result.OK("批量删除成功!");
|
||||
// }
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_hour_rate-通过id查询")
|
||||
@ApiOperation(value = "app_scene_cost_hour_rate-通过id查询", notes = "app_scene_cost_hour_rate-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<AppSceneCostHourRate> queryById(@RequestParam(name = "id", required = true) String id) {
|
||||
AppSceneCostHourRate appSceneCostHourRate = appSceneCostHourRateService.getById(id);
|
||||
if (appSceneCostHourRate == null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(appSceneCostHourRate);
|
||||
}
|
||||
|
||||
// /**
|
||||
// * 导出excel
|
||||
// *
|
||||
// * @param request
|
||||
// * @param appSceneCostHourRate
|
||||
// */
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_hour_rate:exportXls")
|
||||
// @RequestMapping(value = "/exportXls")
|
||||
// public ModelAndView exportXls(HttpServletRequest request, AppSceneCostHourRate appSceneCostHourRate) {
|
||||
// return super.exportXls(request, appSceneCostHourRate, AppSceneCostHourRate.class, "app_scene_cost_hour_rate");
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 通过excel导入数据
|
||||
// *
|
||||
// * @param request
|
||||
// * @param response
|
||||
// * @return
|
||||
// */
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_hour_rate:importExcel")
|
||||
// @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
// public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
// return super.importExcel(request, response, AppSceneCostHourRate.class);
|
||||
// }
|
||||
|
||||
}
|
||||
+178
@@ -0,0 +1,178 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostInvoice;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostInvoiceService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_invoice
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-22
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="app_scene_cost_invoice")
|
||||
@RestController
|
||||
@RequestMapping("/cost/appSceneCostInvoice")
|
||||
@Slf4j
|
||||
public class AppSceneCostInvoiceController extends JeecgController<AppSceneCostInvoice, IAppSceneCostInvoiceService> {
|
||||
@Autowired
|
||||
private IAppSceneCostInvoiceService appSceneCostInvoiceService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostInvoice
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_invoice-分页列表查询")
|
||||
@ApiOperation(value="app_scene_cost_invoice-分页列表查询", notes="app_scene_cost_invoice-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostInvoice>> queryPageList(AppSceneCostInvoice appSceneCostInvoice,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostInvoice> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostInvoice, req.getParameterMap());
|
||||
Page<AppSceneCostInvoice> page = new Page<AppSceneCostInvoice>(pageNo, pageSize);
|
||||
IPage<AppSceneCostInvoice> pageList = appSceneCostInvoiceService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param appSceneCostInvoice
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_invoice-添加")
|
||||
@ApiOperation(value="app_scene_cost_invoice-添加", notes="app_scene_cost_invoice-添加")
|
||||
@RequiresPermissions("cost:app_scene_cost_invoice:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody AppSceneCostInvoice appSceneCostInvoice) {
|
||||
appSceneCostInvoiceService.save(appSceneCostInvoice);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param appSceneCostInvoice
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_invoice-编辑")
|
||||
@ApiOperation(value="app_scene_cost_invoice-编辑", notes="app_scene_cost_invoice-编辑")
|
||||
@RequiresPermissions("cost:app_scene_cost_invoice:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody AppSceneCostInvoice appSceneCostInvoice) {
|
||||
appSceneCostInvoiceService.updateById(appSceneCostInvoice);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_invoice-通过id删除")
|
||||
@ApiOperation(value="app_scene_cost_invoice-通过id删除", notes="app_scene_cost_invoice-通过id删除")
|
||||
@RequiresPermissions("cost:app_scene_cost_invoice:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
appSceneCostInvoiceService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_invoice-批量删除")
|
||||
@ApiOperation(value="app_scene_cost_invoice-批量删除", notes="app_scene_cost_invoice-批量删除")
|
||||
@RequiresPermissions("cost:app_scene_cost_invoice:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.appSceneCostInvoiceService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_invoice-通过id查询")
|
||||
@ApiOperation(value="app_scene_cost_invoice-通过id查询", notes="app_scene_cost_invoice-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<AppSceneCostInvoice> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
AppSceneCostInvoice appSceneCostInvoice = appSceneCostInvoiceService.getById(id);
|
||||
if(appSceneCostInvoice==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(appSceneCostInvoice);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param appSceneCostInvoice
|
||||
*/
|
||||
@RequiresPermissions("cost:app_scene_cost_invoice:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostInvoice appSceneCostInvoice) {
|
||||
return super.exportXls(request, appSceneCostInvoice, AppSceneCostInvoice.class, "app_scene_cost_invoice");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("cost:app_scene_cost_invoice:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, AppSceneCostInvoice.class);
|
||||
}
|
||||
|
||||
}
|
||||
+196
@@ -0,0 +1,196 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningAufnr;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningAufnrService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.AufnrDiff;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.AufnrExportVO;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.LaborDiffVO;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.ProduceDiffVO;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_aufnr
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="app_scene_cost_mining_aufnr")
|
||||
@RestController
|
||||
@RequestMapping("//appSceneCostMiningAufnr")
|
||||
@Slf4j
|
||||
public class AppSceneCostMiningAufnrController extends JeecgController<AppSceneCostMiningAufnr, IAppSceneCostMiningAufnrService> {
|
||||
@Autowired
|
||||
private IAppSceneCostMiningAufnrService appSceneCostMiningAufnrService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostMiningAufnr
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_mining_aufnr-分页列表查询")
|
||||
@ApiOperation(value="app_scene_cost_mining_aufnr-分页列表查询", notes="app_scene_cost_mining_aufnr-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostMiningAufnr>> queryPageList(AppSceneCostMiningAufnr appSceneCostMiningAufnr,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostMiningAufnr> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningAufnr, req.getParameterMap());
|
||||
Page<AppSceneCostMiningAufnr> page = new Page<AppSceneCostMiningAufnr>(pageNo, pageSize);
|
||||
IPage<AppSceneCostMiningAufnr> pageList = appSceneCostMiningAufnrService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param appSceneCostMiningAufnr
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_aufnr-添加")
|
||||
@ApiOperation(value="app_scene_cost_mining_aufnr-添加", notes="app_scene_cost_mining_aufnr-添加")
|
||||
@RequiresPermissions(":app_scene_cost_mining_aufnr:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody AppSceneCostMiningAufnr appSceneCostMiningAufnr) {
|
||||
appSceneCostMiningAufnrService.save(appSceneCostMiningAufnr);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param appSceneCostMiningAufnr
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_aufnr-编辑")
|
||||
@ApiOperation(value="app_scene_cost_mining_aufnr-编辑", notes="app_scene_cost_mining_aufnr-编辑")
|
||||
@RequiresPermissions(":app_scene_cost_mining_aufnr:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody AppSceneCostMiningAufnr appSceneCostMiningAufnr) {
|
||||
appSceneCostMiningAufnrService.updateById(appSceneCostMiningAufnr);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_aufnr-通过id删除")
|
||||
@ApiOperation(value="app_scene_cost_mining_aufnr-通过id删除", notes="app_scene_cost_mining_aufnr-通过id删除")
|
||||
@RequiresPermissions(":app_scene_cost_mining_aufnr:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
appSceneCostMiningAufnrService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_aufnr-批量删除")
|
||||
@ApiOperation(value="app_scene_cost_mining_aufnr-批量删除", notes="app_scene_cost_mining_aufnr-批量删除")
|
||||
@RequiresPermissions(":app_scene_cost_mining_aufnr:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.appSceneCostMiningAufnrService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_mining_aufnr-通过id查询")
|
||||
@ApiOperation(value="app_scene_cost_mining_aufnr-通过id查询", notes="app_scene_cost_mining_aufnr-通过id查询")
|
||||
@GetMapping(value = "/queryLaborById")
|
||||
public Result<List<LaborDiffVO> > queryLaborById(@RequestParam(name="id",required=true) int id) {
|
||||
List<LaborDiffVO> appSceneCostMiningAufnr = appSceneCostMiningAufnrService.getLaborByResultid(id);
|
||||
if(appSceneCostMiningAufnr==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(appSceneCostMiningAufnr);
|
||||
}
|
||||
|
||||
@ApiOperation(value="app_scene_cost_mining_aufnr-通过id查询", notes="app_scene_cost_mining_aufnr-通过id查询")
|
||||
@GetMapping(value = "/queryProduceById")
|
||||
public Result<List<ProduceDiffVO> > queryProduceById(@RequestParam(name="id",required=true) int id) {
|
||||
List<ProduceDiffVO> appSceneCostMiningAufnr = appSceneCostMiningAufnrService.getProduceByResultid(id);
|
||||
if(appSceneCostMiningAufnr==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(appSceneCostMiningAufnr);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param appSceneCostMiningAufnr
|
||||
*/
|
||||
//@RequiresPermissions(":app_scene_cost_mining_aufnr:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, AufnrExportVO appSceneCostMiningAufnr) {
|
||||
return appSceneCostMiningAufnrService.exportXls2(request, appSceneCostMiningAufnr, AppSceneCostMiningAufnr.class, "人工制费差异");
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions(":app_scene_cost_mining_aufnr:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, AppSceneCostMiningAufnr.class);
|
||||
}
|
||||
|
||||
}
|
||||
+181
@@ -0,0 +1,181 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningDiff;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningDiffService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.MiningDiffTotalVO;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_diff
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="app_scene_cost_mining_diff")
|
||||
@RestController
|
||||
@RequestMapping("//appSceneCostMiningDiff")
|
||||
@Slf4j
|
||||
public class AppSceneCostMiningDiffController extends JeecgController<AppSceneCostMiningDiff, IAppSceneCostMiningDiffService> {
|
||||
@Autowired
|
||||
private IAppSceneCostMiningDiffService appSceneCostMiningDiffService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostMiningDiff
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_mining_diff-分页列表查询")
|
||||
@ApiOperation(value="app_scene_cost_mining_diff-分页列表查询", notes="app_scene_cost_mining_diff-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostMiningDiff>> queryPageList(AppSceneCostMiningDiff appSceneCostMiningDiff,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostMiningDiff> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningDiff, req.getParameterMap());
|
||||
Page<AppSceneCostMiningDiff> page = new Page<AppSceneCostMiningDiff>(pageNo, pageSize);
|
||||
IPage<AppSceneCostMiningDiff> pageList = appSceneCostMiningDiffService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param appSceneCostMiningDiff
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_diff-添加")
|
||||
@ApiOperation(value="app_scene_cost_mining_diff-添加", notes="app_scene_cost_mining_diff-添加")
|
||||
@RequiresPermissions(":app_scene_cost_mining_diff:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody AppSceneCostMiningDiff appSceneCostMiningDiff) {
|
||||
appSceneCostMiningDiffService.save(appSceneCostMiningDiff);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param appSceneCostMiningDiff
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_diff-编辑")
|
||||
@ApiOperation(value="app_scene_cost_mining_diff-编辑", notes="app_scene_cost_mining_diff-编辑")
|
||||
@RequiresPermissions(":app_scene_cost_mining_diff:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody AppSceneCostMiningDiff appSceneCostMiningDiff) {
|
||||
appSceneCostMiningDiffService.updateById(appSceneCostMiningDiff);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_diff-通过id删除")
|
||||
@ApiOperation(value="app_scene_cost_mining_diff-通过id删除", notes="app_scene_cost_mining_diff-通过id删除")
|
||||
@RequiresPermissions(":app_scene_cost_mining_diff:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
appSceneCostMiningDiffService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_diff-批量删除")
|
||||
@ApiOperation(value="app_scene_cost_mining_diff-批量删除", notes="app_scene_cost_mining_diff-批量删除")
|
||||
@RequiresPermissions(":app_scene_cost_mining_diff:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.appSceneCostMiningDiffService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_mining_diff-通过id查询")
|
||||
@ApiOperation(value="app_scene_cost_mining_diff-通过id查询", notes="app_scene_cost_mining_diff-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<List<MiningDiffTotalVO>> queryById(@RequestParam(name="id",required=true) int id) {
|
||||
List<MiningDiffTotalVO> appSceneCostMiningDiff = appSceneCostMiningDiffService.getMiningDiffTotalById(id);
|
||||
if(appSceneCostMiningDiff==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(appSceneCostMiningDiff);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param appSceneCostMiningDiff
|
||||
*/
|
||||
@RequiresPermissions(":app_scene_cost_mining_diff:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostMiningDiff appSceneCostMiningDiff) {
|
||||
return super.exportXls(request, appSceneCostMiningDiff, AppSceneCostMiningDiff.class, "app_scene_cost_mining_diff");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions(":app_scene_cost_mining_diff:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, AppSceneCostMiningDiff.class);
|
||||
}
|
||||
|
||||
}
|
||||
+179
@@ -0,0 +1,179 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningLabor;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningLaborService;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_labor
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-11-05
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="app_scene_cost_mining_labor")
|
||||
@RestController
|
||||
@RequestMapping("//appSceneCostMiningLabor")
|
||||
@Slf4j
|
||||
public class AppSceneCostMiningLaborController extends JeecgController<AppSceneCostMiningLabor, IAppSceneCostMiningLaborService> {
|
||||
@Autowired
|
||||
private IAppSceneCostMiningLaborService appSceneCostMiningLaborService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostMiningLabor
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_mining_labor-分页列表查询")
|
||||
@ApiOperation(value="app_scene_cost_mining_labor-分页列表查询", notes="app_scene_cost_mining_labor-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostMiningLabor>> queryPageList(AppSceneCostMiningLabor appSceneCostMiningLabor,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostMiningLabor> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningLabor, req.getParameterMap());
|
||||
Page<AppSceneCostMiningLabor> page = new Page<AppSceneCostMiningLabor>(pageNo, pageSize);
|
||||
IPage<AppSceneCostMiningLabor> pageList = appSceneCostMiningLaborService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param appSceneCostMiningLabor
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_labor-添加")
|
||||
@ApiOperation(value="app_scene_cost_mining_labor-添加", notes="app_scene_cost_mining_labor-添加")
|
||||
@RequiresPermissions(":app_scene_cost_mining_labor:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody AppSceneCostMiningLabor appSceneCostMiningLabor) {
|
||||
appSceneCostMiningLaborService.save(appSceneCostMiningLabor);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param appSceneCostMiningLabor
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_labor-编辑")
|
||||
@ApiOperation(value="app_scene_cost_mining_labor-编辑", notes="app_scene_cost_mining_labor-编辑")
|
||||
@RequiresPermissions(":app_scene_cost_mining_labor:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody AppSceneCostMiningLabor appSceneCostMiningLabor) {
|
||||
appSceneCostMiningLaborService.updateById(appSceneCostMiningLabor);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_labor-通过id删除")
|
||||
@ApiOperation(value="app_scene_cost_mining_labor-通过id删除", notes="app_scene_cost_mining_labor-通过id删除")
|
||||
@RequiresPermissions(":app_scene_cost_mining_labor:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
appSceneCostMiningLaborService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_labor-批量删除")
|
||||
@ApiOperation(value="app_scene_cost_mining_labor-批量删除", notes="app_scene_cost_mining_labor-批量删除")
|
||||
@RequiresPermissions(":app_scene_cost_mining_labor:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.appSceneCostMiningLaborService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_mining_labor-通过id查询")
|
||||
@ApiOperation(value="app_scene_cost_mining_labor-通过id查询", notes="app_scene_cost_mining_labor-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<AppSceneCostMiningLabor> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
AppSceneCostMiningLabor appSceneCostMiningLabor = appSceneCostMiningLaborService.getById(id);
|
||||
if(appSceneCostMiningLabor==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(appSceneCostMiningLabor);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param appSceneCostMiningLabor
|
||||
*/
|
||||
@RequiresPermissions(":app_scene_cost_mining_labor:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostMiningLabor appSceneCostMiningLabor) {
|
||||
return super.exportXls(request, appSceneCostMiningLabor, AppSceneCostMiningLabor.class, "app_scene_cost_mining_labor");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions(":app_scene_cost_mining_labor:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, AppSceneCostMiningLabor.class);
|
||||
}
|
||||
|
||||
}
|
||||
+184
@@ -0,0 +1,184 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningMaterial;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningMaterialService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.MaterialDiff;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.MiningDiffTotalVO;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_material
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="app_scene_cost_mining_material")
|
||||
@RestController
|
||||
@RequestMapping("//appSceneCostMiningMaterial")
|
||||
@Slf4j
|
||||
public class AppSceneCostMiningMaterialController extends JeecgController<AppSceneCostMiningMaterial, IAppSceneCostMiningMaterialService> {
|
||||
@Autowired
|
||||
private IAppSceneCostMiningMaterialService appSceneCostMiningMaterialService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostMiningMaterial
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_mining_material-分页列表查询")
|
||||
@ApiOperation(value="app_scene_cost_mining_material-分页列表查询", notes="app_scene_cost_mining_material-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostMiningMaterial>> queryPageList(AppSceneCostMiningMaterial appSceneCostMiningMaterial,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostMiningMaterial> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningMaterial, req.getParameterMap());
|
||||
Page<AppSceneCostMiningMaterial> page = new Page<AppSceneCostMiningMaterial>(pageNo, pageSize);
|
||||
IPage<AppSceneCostMiningMaterial> pageList = appSceneCostMiningMaterialService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param appSceneCostMiningMaterial
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_material-添加")
|
||||
@ApiOperation(value="app_scene_cost_mining_material-添加", notes="app_scene_cost_mining_material-添加")
|
||||
@RequiresPermissions(":app_scene_cost_mining_material:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody AppSceneCostMiningMaterial appSceneCostMiningMaterial) {
|
||||
appSceneCostMiningMaterialService.save(appSceneCostMiningMaterial);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param appSceneCostMiningMaterial
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_material-编辑")
|
||||
@ApiOperation(value="app_scene_cost_mining_material-编辑", notes="app_scene_cost_mining_material-编辑")
|
||||
@RequiresPermissions(":app_scene_cost_mining_material:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody AppSceneCostMiningMaterial appSceneCostMiningMaterial) {
|
||||
appSceneCostMiningMaterialService.updateById(appSceneCostMiningMaterial);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_material-通过id删除")
|
||||
@ApiOperation(value="app_scene_cost_mining_material-通过id删除", notes="app_scene_cost_mining_material-通过id删除")
|
||||
@RequiresPermissions(":app_scene_cost_mining_material:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
appSceneCostMiningMaterialService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_material-批量删除")
|
||||
@ApiOperation(value="app_scene_cost_mining_material-批量删除", notes="app_scene_cost_mining_material-批量删除")
|
||||
@RequiresPermissions(":app_scene_cost_mining_material:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.appSceneCostMiningMaterialService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_mining_material-通过id查询")
|
||||
@ApiOperation(value="app_scene_cost_mining_material-通过id查询", notes="app_scene_cost_mining_material-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<List<MaterialDiff>> queryById(@RequestParam(name="id",required=true) int id) {
|
||||
List<MaterialDiff> appSceneCostMiningMaterial = appSceneCostMiningMaterialService.getByResultid(id);
|
||||
if(appSceneCostMiningMaterial==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(appSceneCostMiningMaterial);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param appSceneCostMiningMaterial
|
||||
*/
|
||||
//@RequiresPermissions(":app_scene_cost_mining_material:exportXls")
|
||||
@GetMapping(value = "/exportXls")
|
||||
@ApiOperation(value = "cost-材料差异导出", notes = "cost-材料差异导出")
|
||||
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostMiningMaterial appSceneCostMiningMaterial) {
|
||||
//return super.exportXls(request)
|
||||
return appSceneCostMiningMaterialService.exportXls2(request, appSceneCostMiningMaterial,AppSceneCostMiningMaterial.class, "材料差异明细");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions(":app_scene_cost_mining_material:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, AppSceneCostMiningMaterial.class);
|
||||
}
|
||||
|
||||
}
|
||||
+179
@@ -0,0 +1,179 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningReason;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningReasonService;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_reason
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="app_scene_cost_mining_reason")
|
||||
@RestController
|
||||
@RequestMapping("//appSceneCostMiningReason")
|
||||
@Slf4j
|
||||
public class AppSceneCostMiningReasonController extends JeecgController<AppSceneCostMiningReason, IAppSceneCostMiningReasonService> {
|
||||
@Autowired
|
||||
private IAppSceneCostMiningReasonService appSceneCostMiningReasonService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostMiningReason
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_mining_reason-分页列表查询")
|
||||
@ApiOperation(value="app_scene_cost_mining_reason-分页列表查询", notes="app_scene_cost_mining_reason-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostMiningReason>> queryPageList(AppSceneCostMiningReason appSceneCostMiningReason,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostMiningReason> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningReason, req.getParameterMap());
|
||||
Page<AppSceneCostMiningReason> page = new Page<AppSceneCostMiningReason>(pageNo, pageSize);
|
||||
IPage<AppSceneCostMiningReason> pageList = appSceneCostMiningReasonService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param appSceneCostMiningReason
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_reason-添加")
|
||||
@ApiOperation(value="app_scene_cost_mining_reason-添加", notes="app_scene_cost_mining_reason-添加")
|
||||
@RequiresPermissions(":app_scene_cost_mining_reason:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody AppSceneCostMiningReason appSceneCostMiningReason) {
|
||||
appSceneCostMiningReasonService.save(appSceneCostMiningReason);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param appSceneCostMiningReason
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_reason-编辑")
|
||||
@ApiOperation(value="app_scene_cost_mining_reason-编辑", notes="app_scene_cost_mining_reason-编辑")
|
||||
@RequiresPermissions(":app_scene_cost_mining_reason:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody AppSceneCostMiningReason appSceneCostMiningReason) {
|
||||
appSceneCostMiningReasonService.updateById(appSceneCostMiningReason);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_reason-通过id删除")
|
||||
@ApiOperation(value="app_scene_cost_mining_reason-通过id删除", notes="app_scene_cost_mining_reason-通过id删除")
|
||||
@RequiresPermissions(":app_scene_cost_mining_reason:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
appSceneCostMiningReasonService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_reason-批量删除")
|
||||
@ApiOperation(value="app_scene_cost_mining_reason-批量删除", notes="app_scene_cost_mining_reason-批量删除")
|
||||
@RequiresPermissions(":app_scene_cost_mining_reason:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.appSceneCostMiningReasonService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_mining_reason-通过id查询")
|
||||
@ApiOperation(value="app_scene_cost_mining_reason-通过id查询", notes="app_scene_cost_mining_reason-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<AppSceneCostMiningReason> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
AppSceneCostMiningReason appSceneCostMiningReason = appSceneCostMiningReasonService.getById(id);
|
||||
if(appSceneCostMiningReason==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(appSceneCostMiningReason);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param appSceneCostMiningReason
|
||||
*/
|
||||
@RequiresPermissions(":app_scene_cost_mining_reason:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostMiningReason appSceneCostMiningReason) {
|
||||
return super.exportXls(request, appSceneCostMiningReason, AppSceneCostMiningReason.class, "app_scene_cost_mining_reason");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions(":app_scene_cost_mining_reason:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, AppSceneCostMiningReason.class);
|
||||
}
|
||||
|
||||
}
|
||||
+213
@@ -0,0 +1,213 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningResult;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZcorc;
|
||||
import com.zzsmart.qomo.kn.cost.manage.plugin.CostEffectiveService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostCountService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningResultService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.MatnrVersionVO;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.MiningResultVO;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_result
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="app_scene_cost_mining_result")
|
||||
@RestController
|
||||
@RequestMapping("//appSceneCostMiningResult")
|
||||
@Slf4j
|
||||
public class AppSceneCostMiningResultController extends JeecgController<AppSceneCostMiningResult, IAppSceneCostMiningResultService> {
|
||||
@Autowired
|
||||
private IAppSceneCostMiningResultService appSceneCostMiningResultService;
|
||||
|
||||
@Autowired
|
||||
private CostEffectiveService costEffectiveService;
|
||||
|
||||
@Autowired
|
||||
private IAppSceneCostCountService iAppSceneCostCountService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostMiningResult
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_mining_result-分页列表查询")
|
||||
@ApiOperation(value="app_scene_cost_mining_result-分页列表查询", notes="app_scene_cost_mining_result-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostMiningResult>> queryPageList(AppSceneCostMiningResult appSceneCostMiningResult,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostMiningResult> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningResult, req.getParameterMap());
|
||||
queryWrapper.orderByDesc("startdate");
|
||||
Page<AppSceneCostMiningResult> page = new Page<AppSceneCostMiningResult>(pageNo, pageSize);
|
||||
IPage<AppSceneCostMiningResult> pageList = appSceneCostMiningResultService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param appSceneCostMiningResult
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_result-添加")
|
||||
@ApiOperation(value="app_scene_cost_mining_result-添加", notes="app_scene_cost_mining_result-添加")
|
||||
//@RequiresPermissions(":app_scene_cost_mining_result:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody MiningResultVO miningResultVO) {
|
||||
//appSceneCostMiningResultService.save(appSceneCostMiningResult);
|
||||
costEffectiveService.FindNode(miningResultVO.getMatnr(),miningResultVO.getYmonth(),miningResultVO.getWerks(),miningResultVO.getVersion(),miningResultVO.getAufnr(),"",true);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param appSceneCostMiningResult
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_result-编辑")
|
||||
@ApiOperation(value="app_scene_cost_mining_result-编辑", notes="app_scene_cost_mining_result-编辑")
|
||||
@RequiresPermissions(":app_scene_cost_mining_result:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody AppSceneCostMiningResult appSceneCostMiningResult) {
|
||||
appSceneCostMiningResultService.updateById(appSceneCostMiningResult);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_result-通过id删除")
|
||||
@ApiOperation(value="app_scene_cost_mining_result-通过id删除", notes="app_scene_cost_mining_result-通过id删除")
|
||||
@RequiresPermissions(":app_scene_cost_mining_result:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
appSceneCostMiningResultService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_mining_result-批量删除")
|
||||
@ApiOperation(value="app_scene_cost_mining_result-批量删除", notes="app_scene_cost_mining_result-批量删除")
|
||||
@RequiresPermissions(":app_scene_cost_mining_result:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.appSceneCostMiningResultService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_mining_result-通过id查询")
|
||||
@ApiOperation(value="app_scene_cost_mining_result-通过id查询", notes="app_scene_cost_mining_result-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<AppSceneCostMiningResult> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
AppSceneCostMiningResult appSceneCostMiningResult = appSceneCostMiningResultService.getById(id);
|
||||
if(appSceneCostMiningResult==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(appSceneCostMiningResult);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param appSceneCostMiningResult
|
||||
*/
|
||||
@RequiresPermissions(":app_scene_cost_mining_result:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostMiningResult appSceneCostMiningResult) {
|
||||
return super.exportXls(request, appSceneCostMiningResult, AppSceneCostMiningResult.class, "app_scene_cost_mining_result");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions(":app_scene_cost_mining_result:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, AppSceneCostMiningResult.class);
|
||||
}
|
||||
|
||||
/* 根据物料号查询标准成本版本及订单号
|
||||
*
|
||||
* @param appSceneCostMiningResult
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_mining_result-分页列表查询")
|
||||
@ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
|
||||
@GetMapping(value = "/queryVersion")
|
||||
public Result<MatnrVersionVO> queryPageList(@RequestParam(name="werks", defaultValue="") String werks,
|
||||
@RequestParam(name="matnr", defaultValue="") String matnr,
|
||||
@RequestParam(name="ymonth", defaultValue="") String ymonth,
|
||||
HttpServletRequest req) {
|
||||
MatnrVersionVO vo = iAppSceneCostCountService.getVersionsByMatnr(werks,matnr,ymonth);
|
||||
return Result.OK(vo);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
+161
@@ -0,0 +1,161 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.zzsmart.qomo.dao.entity.FlowDefinition;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostCount;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostModel;
|
||||
import com.zzsmart.qomo.kn.cost.manage.enums.CostModelStatusEnum;
|
||||
import com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostCountMapper;
|
||||
import com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostModelMapper;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostModelService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.CostModelDefinitionVO;
|
||||
import com.zzsmart.qomo.service.IDataFlowDefinitionService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_model
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-07-29
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags = "cost-标准成本-模型管理")
|
||||
@RestController
|
||||
@RequestMapping("//cost-model")
|
||||
@Slf4j
|
||||
public class AppSceneCostModelController {
|
||||
@Autowired
|
||||
private IAppSceneCostModelService appSceneCostModelService;
|
||||
@Autowired
|
||||
private IDataFlowDefinitionService flowDefinitionService;
|
||||
@Autowired
|
||||
private AppSceneCostCountMapper appSceneCostCountMapper;
|
||||
@Autowired
|
||||
private AppSceneCostModelMapper costModelMapper;
|
||||
/**
|
||||
* 标准成本模型分页列表查询
|
||||
*
|
||||
* @param flowDefinition
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_model-分页列表查询")
|
||||
@ApiOperation(value = "标准成本模型分页列表查询", notes = "标准成本模型分页列表查询")
|
||||
@GetMapping(value = "/pageList")
|
||||
public Result<IPage<FlowDefinition>> queryPageList(FlowDefinition flowDefinition, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
|
||||
QueryWrapper<FlowDefinition> queryWrapper = QueryGenerator.initQueryWrapper(flowDefinition, req.getParameterMap());
|
||||
Page<FlowDefinition> page = new Page((long) pageNo, (long) pageSize);
|
||||
LambdaQueryWrapper<FlowDefinition> wrapper = queryWrapper.lambda();
|
||||
wrapper.orderByDesc(FlowDefinition::getCreateTime);
|
||||
IPage<FlowDefinition> pageList = flowDefinitionService.queryPageList(page, wrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "标准成本模型列表", notes = "标准成本模型列表")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<List<FlowDefinition>> queryList(FlowDefinition flowDefinition, HttpServletRequest req) {
|
||||
QueryWrapper<FlowDefinition> queryWrapper = QueryGenerator.initQueryWrapper(flowDefinition, req.getParameterMap());
|
||||
LambdaQueryWrapper<FlowDefinition> wrapper = queryWrapper.lambda();
|
||||
wrapper.orderByDesc(FlowDefinition::getCreateTime);
|
||||
List<FlowDefinition> list = appSceneCostModelService.queryListResult(wrapper);
|
||||
return Result.OK(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加标准成本模型
|
||||
*
|
||||
* @param modelDefinitionVO
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_model-添加")
|
||||
@ApiOperation(value = "app_scene_cost_model-添加", notes = "app_scene_cost_model-添加")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<FlowDefinition> add(@RequestBody CostModelDefinitionVO modelDefinitionVO) {
|
||||
try {
|
||||
FlowDefinition flowDefinition = new FlowDefinition();
|
||||
//TODO 新增平台层模型定义记录
|
||||
String flowCode = "FLOW_" + System.currentTimeMillis() + new Random(10000).nextInt();
|
||||
flowDefinition.setUpdateTime(new Date());
|
||||
flowDefinition.setCreateTime(new Date());
|
||||
flowDefinition.setCode(flowCode);
|
||||
flowDefinition.setProjectId(modelDefinitionVO.getProjectId());
|
||||
flowDefinition.setUserId("1744546658109349889");
|
||||
flowDefinition.setUserName("系统管理员");
|
||||
flowDefinition.setTenantId(-1);
|
||||
flowDefinition.setEnvironmentId(1);
|
||||
flowDefinition.setName(modelDefinitionVO.getModelName());
|
||||
FlowDefinition definition = flowDefinitionService.add(flowDefinition);
|
||||
AppSceneCostModel forecastModel = new AppSceneCostModel();
|
||||
forecastModel.setModelType(modelDefinitionVO.getModelType());
|
||||
forecastModel.setModelName(modelDefinitionVO.getModelName());
|
||||
forecastModel.setStatus(CostModelStatusEnum.Draft.getCode());
|
||||
//2.新模型记录
|
||||
forecastModel.setFlowDefinitionId(definition.getId());
|
||||
forecastModel.setUpdateTime(new Date());
|
||||
forecastModel.setCreateTime(new Date());
|
||||
costModelMapper.insert(forecastModel);
|
||||
|
||||
} catch (Exception e) {
|
||||
return Result.error("新增失败");
|
||||
}
|
||||
return Result.OK("新增成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param flowDefinition
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_model-编辑")
|
||||
@ApiOperation(value = "app_scene_cost_model-编辑", notes = "app_scene_cost_model-编辑")
|
||||
@PostMapping(value = "/edit")
|
||||
public Result<FlowDefinition> edit(@RequestBody FlowDefinition flowDefinition) {
|
||||
flowDefinition.setUpdateTime(new Date());
|
||||
return Result.OK(flowDefinitionService.edit(flowDefinition));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_model-通过id删除")
|
||||
@ApiOperation(value = "app_scene_cost_model-通过id删除", notes = "app_scene_cost_model-通过id删除")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name = "id", required = true) Integer id) {
|
||||
//检查模型是否被引用或挂载
|
||||
if (id != null) {
|
||||
FlowDefinition flowDefinition = flowDefinitionService.getById(id);
|
||||
if (flowDefinition != null) {
|
||||
Integer id1 = flowDefinition.getId();
|
||||
QueryWrapper<AppSceneCostCount> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("flow_definition_id", id1);
|
||||
Long aLong = appSceneCostCountMapper.selectCount(queryWrapper);
|
||||
if (aLong > 0) {
|
||||
return Result.error("该模型正在被引用,无法删除!");
|
||||
}
|
||||
}
|
||||
}
|
||||
flowDefinitionService.delete(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
}
|
||||
+159
@@ -0,0 +1,159 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostPartMissingInfo;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostPartMissingInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_part_missing_info
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-08-02
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags = "cost-部件缺失信息")
|
||||
@RestController
|
||||
@RequestMapping("//partMissingInfo")
|
||||
@Slf4j
|
||||
public class AppSceneCostPartMissingInfoController extends JeecgController<AppSceneCostPartMissingInfo, IAppSceneCostPartMissingInfoService> {
|
||||
@Autowired
|
||||
private IAppSceneCostPartMissingInfoService appSceneCostPartMissingInfoService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostPartMissingInfo
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_part_missing_info-分页列表查询")
|
||||
@ApiOperation(value = "app_scene_cost_part_missing_info-分页列表查询", notes = "app_scene_cost_part_missing_info-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostPartMissingInfo>> queryPageList(AppSceneCostPartMissingInfo appSceneCostPartMissingInfo, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostPartMissingInfo> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostPartMissingInfo, req.getParameterMap());
|
||||
Page<AppSceneCostPartMissingInfo> page = new Page<AppSceneCostPartMissingInfo>(pageNo, pageSize);
|
||||
IPage<AppSceneCostPartMissingInfo> pageList = appSceneCostPartMissingInfoService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
//
|
||||
// /**
|
||||
// * 添加
|
||||
// *
|
||||
// * @param appSceneCostPartMissingInfo
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "app_scene_cost_part_missing_info-添加")
|
||||
// @ApiOperation(value = "app_scene_cost_part_missing_info-添加", notes = "app_scene_cost_part_missing_info-添加")
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_part_missing_info:add")
|
||||
// @PostMapping(value = "/add")
|
||||
// public Result<String> add(@RequestBody AppSceneCostPartMissingInfo appSceneCostPartMissingInfo) {
|
||||
// appSceneCostPartMissingInfoService.save(appSceneCostPartMissingInfo);
|
||||
// return Result.OK("添加成功!");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 编辑
|
||||
// *
|
||||
// * @param appSceneCostPartMissingInfo
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "app_scene_cost_part_missing_info-编辑")
|
||||
// @ApiOperation(value = "app_scene_cost_part_missing_info-编辑", notes = "app_scene_cost_part_missing_info-编辑")
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_part_missing_info:edit")
|
||||
// @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
|
||||
// public Result<String> edit(@RequestBody AppSceneCostPartMissingInfo appSceneCostPartMissingInfo) {
|
||||
// appSceneCostPartMissingInfoService.updateById(appSceneCostPartMissingInfo);
|
||||
// return Result.OK("编辑成功!");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 通过id删除
|
||||
// *
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "app_scene_cost_part_missing_info-通过id删除")
|
||||
// @ApiOperation(value = "app_scene_cost_part_missing_info-通过id删除", notes = "app_scene_cost_part_missing_info-通过id删除")
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_part_missing_info:delete")
|
||||
// @DeleteMapping(value = "/delete")
|
||||
// public Result<String> delete(@RequestParam(name = "id", required = true) String id) {
|
||||
// appSceneCostPartMissingInfoService.removeById(id);
|
||||
// return Result.OK("删除成功!");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 批量删除
|
||||
// *
|
||||
// * @param ids
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "app_scene_cost_part_missing_info-批量删除")
|
||||
// @ApiOperation(value = "app_scene_cost_part_missing_info-批量删除", notes = "app_scene_cost_part_missing_info-批量删除")
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_part_missing_info:deleteBatch")
|
||||
// @DeleteMapping(value = "/deleteBatch")
|
||||
// public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
|
||||
// this.appSceneCostPartMissingInfoService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
// return Result.OK("批量删除成功!");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 通过id查询
|
||||
// *
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// //@AutoLog(value = "app_scene_cost_part_missing_info-通过id查询")
|
||||
// @ApiOperation(value = "app_scene_cost_part_missing_info-通过id查询", notes = "app_scene_cost_part_missing_info-通过id查询")
|
||||
// @GetMapping(value = "/queryById")
|
||||
// public Result<AppSceneCostPartMissingInfo> queryById(@RequestParam(name = "id", required = true) String id) {
|
||||
// AppSceneCostPartMissingInfo appSceneCostPartMissingInfo = appSceneCostPartMissingInfoService.getById(id);
|
||||
// if (appSceneCostPartMissingInfo == null) {
|
||||
// return Result.error("未找到对应数据");
|
||||
// }
|
||||
// return Result.OK(appSceneCostPartMissingInfo);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 导出excel
|
||||
// *
|
||||
// * @param request
|
||||
// * @param appSceneCostPartMissingInfo
|
||||
// */
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_part_missing_info:exportXls")
|
||||
// @RequestMapping(value = "/exportXls")
|
||||
// public ModelAndView exportXls(HttpServletRequest request, AppSceneCostPartMissingInfo appSceneCostPartMissingInfo) {
|
||||
// return super.exportXls(request, appSceneCostPartMissingInfo, AppSceneCostPartMissingInfo.class, "app_scene_cost_part_missing_info");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 通过excel导入数据
|
||||
// *
|
||||
// * @param request
|
||||
// * @param response
|
||||
// * @return
|
||||
// */
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_part_missing_info:importExcel")
|
||||
// @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
// public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
// return super.importExcel(request, response, AppSceneCostPartMissingInfo.class);
|
||||
// }
|
||||
|
||||
}
|
||||
+159
@@ -0,0 +1,159 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostProductProcessMaintenance;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostProductProcessMaintenanceService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_product_process_maintenance
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-08
|
||||
* @Version: V1.0
|
||||
*/
|
||||
//@Api(tags = "app_scene_cost_product_process_maintenance")
|
||||
@RestController
|
||||
@RequestMapping("//appSceneCostProductProcessMaintenance")
|
||||
@Slf4j
|
||||
public class AppSceneCostProductProcessMaintenanceController extends JeecgController<AppSceneCostProductProcessMaintenance, IAppSceneCostProductProcessMaintenanceService> {
|
||||
@Autowired
|
||||
private IAppSceneCostProductProcessMaintenanceService appSceneCostProductProcessMaintenanceService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostProductProcessMaintenance
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_product_process_maintenance-分页列表查询")
|
||||
@ApiOperation(value = "app_scene_cost_product_process_maintenance-分页列表查询", notes = "app_scene_cost_product_process_maintenance-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostProductProcessMaintenance>> queryPageList(AppSceneCostProductProcessMaintenance appSceneCostProductProcessMaintenance, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostProductProcessMaintenance> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostProductProcessMaintenance, req.getParameterMap());
|
||||
Page<AppSceneCostProductProcessMaintenance> page = new Page<AppSceneCostProductProcessMaintenance>(pageNo, pageSize);
|
||||
IPage<AppSceneCostProductProcessMaintenance> pageList = appSceneCostProductProcessMaintenanceService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param appSceneCostProductProcessMaintenance
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_product_process_maintenance-添加")
|
||||
@ApiOperation(value = "app_scene_cost_product_process_maintenance-添加", notes = "app_scene_cost_product_process_maintenance-添加")
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_product_process_maintenance:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody AppSceneCostProductProcessMaintenance appSceneCostProductProcessMaintenance) {
|
||||
appSceneCostProductProcessMaintenanceService.save(appSceneCostProductProcessMaintenance);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param appSceneCostProductProcessMaintenance
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_product_process_maintenance-编辑")
|
||||
@ApiOperation(value = "app_scene_cost_product_process_maintenance-编辑", notes = "app_scene_cost_product_process_maintenance-编辑")
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_product_process_maintenance:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody AppSceneCostProductProcessMaintenance appSceneCostProductProcessMaintenance) {
|
||||
appSceneCostProductProcessMaintenanceService.updateById(appSceneCostProductProcessMaintenance);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_product_process_maintenance-通过id删除")
|
||||
@ApiOperation(value = "app_scene_cost_product_process_maintenance-通过id删除", notes = "app_scene_cost_product_process_maintenance-通过id删除")
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_product_process_maintenance:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name = "id", required = true) String id) {
|
||||
appSceneCostProductProcessMaintenanceService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_product_process_maintenance-批量删除")
|
||||
@ApiOperation(value = "app_scene_cost_product_process_maintenance-批量删除", notes = "app_scene_cost_product_process_maintenance-批量删除")
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_product_process_maintenance:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
|
||||
this.appSceneCostProductProcessMaintenanceService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_product_process_maintenance-通过id查询")
|
||||
@ApiOperation(value = "app_scene_cost_product_process_maintenance-通过id查询", notes = "app_scene_cost_product_process_maintenance-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<AppSceneCostProductProcessMaintenance> queryById(@RequestParam(name = "id", required = true) String id) {
|
||||
AppSceneCostProductProcessMaintenance appSceneCostProductProcessMaintenance = appSceneCostProductProcessMaintenanceService.getById(id);
|
||||
if (appSceneCostProductProcessMaintenance == null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(appSceneCostProductProcessMaintenance);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param appSceneCostProductProcessMaintenance
|
||||
*/
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_product_process_maintenance:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostProductProcessMaintenance appSceneCostProductProcessMaintenance) {
|
||||
return super.exportXls(request, appSceneCostProductProcessMaintenance, AppSceneCostProductProcessMaintenance.class, "app_scene_cost_product_process_maintenance");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_product_process_maintenance:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, AppSceneCostProductProcessMaintenance.class);
|
||||
}
|
||||
|
||||
}
|
||||
+162
@@ -0,0 +1,162 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostPurchaseEvaluate;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostPurchaseEvaluateService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_purchase_evaluate
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-08-02
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags = "cost-采购合同")
|
||||
@RestController
|
||||
@RequestMapping("//PurchaseEvaluate")
|
||||
@Slf4j
|
||||
public class AppSceneCostPurchaseEvaluateController extends JeecgController<AppSceneCostPurchaseEvaluate, IAppSceneCostPurchaseEvaluateService> {
|
||||
@Autowired
|
||||
private IAppSceneCostPurchaseEvaluateService appSceneCostPurchaseEvaluateService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostPurchaseEvaluate
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_purchase_evaluate-分页列表查询")
|
||||
@ApiOperation(value = "app_scene_cost_purchase_evaluate-分页列表查询", notes = "app_scene_cost_purchase_evaluate-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostPurchaseEvaluate>> queryPageList(AppSceneCostPurchaseEvaluate appSceneCostPurchaseEvaluate,
|
||||
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
||||
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostPurchaseEvaluate> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostPurchaseEvaluate, req.getParameterMap());
|
||||
Page<AppSceneCostPurchaseEvaluate> page = new Page<AppSceneCostPurchaseEvaluate>(pageNo, pageSize);
|
||||
IPage<AppSceneCostPurchaseEvaluate> pageList = appSceneCostPurchaseEvaluateService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param appSceneCostPurchaseEvaluate
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_purchase_evaluate-添加")
|
||||
@ApiOperation(value = "app_scene_cost_purchase_evaluate-添加", notes = "app_scene_cost_purchase_evaluate-添加")
|
||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_purchase_evaluate:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody AppSceneCostPurchaseEvaluate appSceneCostPurchaseEvaluate) {
|
||||
appSceneCostPurchaseEvaluateService.save(appSceneCostPurchaseEvaluate);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param appSceneCostPurchaseEvaluate
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_purchase_evaluate-编辑")
|
||||
@ApiOperation(value = "app_scene_cost_purchase_evaluate-编辑", notes = "app_scene_cost_purchase_evaluate-编辑")
|
||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_purchase_evaluate:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody AppSceneCostPurchaseEvaluate appSceneCostPurchaseEvaluate) {
|
||||
appSceneCostPurchaseEvaluateService.updateById(appSceneCostPurchaseEvaluate);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_purchase_evaluate-通过id删除")
|
||||
@ApiOperation(value = "app_scene_cost_purchase_evaluate-通过id删除", notes = "app_scene_cost_purchase_evaluate-通过id删除")
|
||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_purchase_evaluate:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name = "id", required = true) String id) {
|
||||
appSceneCostPurchaseEvaluateService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
//
|
||||
// /**
|
||||
// * 批量删除
|
||||
// *
|
||||
// * @param ids
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "app_scene_cost_purchase_evaluate-批量删除")
|
||||
// @ApiOperation(value = "app_scene_cost_purchase_evaluate-批量删除", notes = "app_scene_cost_purchase_evaluate-批量删除")
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_purchase_evaluate:deleteBatch")
|
||||
// @DeleteMapping(value = "/deleteBatch")
|
||||
// public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
|
||||
// this.appSceneCostPurchaseEvaluateService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
// return Result.OK("批量删除成功!");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 通过id查询
|
||||
// *
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// //@AutoLog(value = "app_scene_cost_purchase_evaluate-通过id查询")
|
||||
// @ApiOperation(value = "app_scene_cost_purchase_evaluate-通过id查询", notes = "app_scene_cost_purchase_evaluate-通过id查询")
|
||||
// @GetMapping(value = "/queryById")
|
||||
// public Result<AppSceneCostPurchaseEvaluate> queryById(@RequestParam(name = "id", required = true) String id) {
|
||||
// AppSceneCostPurchaseEvaluate appSceneCostPurchaseEvaluate = appSceneCostPurchaseEvaluateService.getById(id);
|
||||
// if (appSceneCostPurchaseEvaluate == null) {
|
||||
// return Result.error("未找到对应数据");
|
||||
// }
|
||||
// return Result.OK(appSceneCostPurchaseEvaluate);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 导出excel
|
||||
// *
|
||||
// * @param request
|
||||
// * @param appSceneCostPurchaseEvaluate
|
||||
// */
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_purchase_evaluate:exportXls")
|
||||
// @RequestMapping(value = "/exportXls")
|
||||
// public ModelAndView exportXls(HttpServletRequest request, AppSceneCostPurchaseEvaluate appSceneCostPurchaseEvaluate) {
|
||||
// return super.exportXls(request, appSceneCostPurchaseEvaluate, AppSceneCostPurchaseEvaluate.class, "app_scene_cost_purchase_evaluate");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 通过excel导入数据
|
||||
// *
|
||||
// * @param request
|
||||
// * @param response
|
||||
// * @return
|
||||
// */
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_purchase_evaluate:importExcel")
|
||||
// @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
// public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
// return super.importExcel(request, response, AppSceneCostPurchaseEvaluate.class);
|
||||
// }
|
||||
|
||||
}
|
||||
+159
@@ -0,0 +1,159 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostPurchaseRecord;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostPurchaseRecordService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_purchase_record
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-08
|
||||
* @Version: V1.0
|
||||
*/
|
||||
//@Api(tags = "app_scene_cost_purchase_record")
|
||||
@RestController
|
||||
@RequestMapping("//appSceneCostPurchaseRecord")
|
||||
@Slf4j
|
||||
public class AppSceneCostPurchaseRecordController extends JeecgController<AppSceneCostPurchaseRecord, IAppSceneCostPurchaseRecordService> {
|
||||
@Autowired
|
||||
private IAppSceneCostPurchaseRecordService appSceneCostPurchaseRecordService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostPurchaseRecord
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_purchase_record-分页列表查询")
|
||||
@ApiOperation(value = "app_scene_cost_purchase_record-分页列表查询", notes = "app_scene_cost_purchase_record-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostPurchaseRecord>> queryPageList(AppSceneCostPurchaseRecord appSceneCostPurchaseRecord, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostPurchaseRecord> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostPurchaseRecord, req.getParameterMap());
|
||||
Page<AppSceneCostPurchaseRecord> page = new Page<AppSceneCostPurchaseRecord>(pageNo, pageSize);
|
||||
IPage<AppSceneCostPurchaseRecord> pageList = appSceneCostPurchaseRecordService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param appSceneCostPurchaseRecord
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_purchase_record-添加")
|
||||
@ApiOperation(value = "app_scene_cost_purchase_record-添加", notes = "app_scene_cost_purchase_record-添加")
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_purchase_record:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody AppSceneCostPurchaseRecord appSceneCostPurchaseRecord) {
|
||||
appSceneCostPurchaseRecordService.save(appSceneCostPurchaseRecord);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param appSceneCostPurchaseRecord
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_purchase_record-编辑")
|
||||
@ApiOperation(value = "app_scene_cost_purchase_record-编辑", notes = "app_scene_cost_purchase_record-编辑")
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_purchase_record:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody AppSceneCostPurchaseRecord appSceneCostPurchaseRecord) {
|
||||
appSceneCostPurchaseRecordService.updateById(appSceneCostPurchaseRecord);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_purchase_record-通过id删除")
|
||||
@ApiOperation(value = "app_scene_cost_purchase_record-通过id删除", notes = "app_scene_cost_purchase_record-通过id删除")
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_purchase_record:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name = "id", required = true) String id) {
|
||||
appSceneCostPurchaseRecordService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_purchase_record-批量删除")
|
||||
@ApiOperation(value = "app_scene_cost_purchase_record-批量删除", notes = "app_scene_cost_purchase_record-批量删除")
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_purchase_record:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
|
||||
this.appSceneCostPurchaseRecordService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_purchase_record-通过id查询")
|
||||
@ApiOperation(value = "app_scene_cost_purchase_record-通过id查询", notes = "app_scene_cost_purchase_record-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<AppSceneCostPurchaseRecord> queryById(@RequestParam(name = "id", required = true) String id) {
|
||||
AppSceneCostPurchaseRecord appSceneCostPurchaseRecord = appSceneCostPurchaseRecordService.getById(id);
|
||||
if (appSceneCostPurchaseRecord == null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(appSceneCostPurchaseRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param appSceneCostPurchaseRecord
|
||||
*/
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_purchase_record:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostPurchaseRecord appSceneCostPurchaseRecord) {
|
||||
return super.exportXls(request, appSceneCostPurchaseRecord, AppSceneCostPurchaseRecord.class, "app_scene_cost_purchase_record");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_purchase_record:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, AppSceneCostPurchaseRecord.class);
|
||||
}
|
||||
|
||||
}
|
||||
+179
@@ -0,0 +1,179 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostResultValue;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostResultValueService;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_result_value
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-07-23
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="app_scene_cost_result_value")
|
||||
@RestController
|
||||
@RequestMapping("/com.zzsmart.qomo.kn.cost.manage/appSceneCostResultValue")
|
||||
@Slf4j
|
||||
public class AppSceneCostResultValueController extends JeecgController<AppSceneCostResultValue, IAppSceneCostResultValueService> {
|
||||
@Autowired
|
||||
private IAppSceneCostResultValueService appSceneCostResultValueService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostResultValue
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_result_value-分页列表查询")
|
||||
@ApiOperation(value="app_scene_cost_result_value-分页列表查询", notes="app_scene_cost_result_value-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostResultValue>> queryPageList(AppSceneCostResultValue appSceneCostResultValue,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostResultValue> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostResultValue, req.getParameterMap());
|
||||
Page<AppSceneCostResultValue> page = new Page<AppSceneCostResultValue>(pageNo, pageSize);
|
||||
IPage<AppSceneCostResultValue> pageList = appSceneCostResultValueService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param appSceneCostResultValue
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_result_value-添加")
|
||||
@ApiOperation(value="app_scene_cost_result_value-添加", notes="app_scene_cost_result_value-添加")
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_result_value:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody AppSceneCostResultValue appSceneCostResultValue) {
|
||||
appSceneCostResultValueService.save(appSceneCostResultValue);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param appSceneCostResultValue
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_result_value-编辑")
|
||||
@ApiOperation(value="app_scene_cost_result_value-编辑", notes="app_scene_cost_result_value-编辑")
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_result_value:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody AppSceneCostResultValue appSceneCostResultValue) {
|
||||
appSceneCostResultValueService.updateById(appSceneCostResultValue);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_result_value-通过id删除")
|
||||
@ApiOperation(value="app_scene_cost_result_value-通过id删除", notes="app_scene_cost_result_value-通过id删除")
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_result_value:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
appSceneCostResultValueService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_result_value-批量删除")
|
||||
@ApiOperation(value="app_scene_cost_result_value-批量删除", notes="app_scene_cost_result_value-批量删除")
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_result_value:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.appSceneCostResultValueService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_result_value-通过id查询")
|
||||
@ApiOperation(value="app_scene_cost_result_value-通过id查询", notes="app_scene_cost_result_value-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<AppSceneCostResultValue> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
AppSceneCostResultValue appSceneCostResultValue = appSceneCostResultValueService.getById(id);
|
||||
if(appSceneCostResultValue==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(appSceneCostResultValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param appSceneCostResultValue
|
||||
*/
|
||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_result_value:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostResultValue appSceneCostResultValue) {
|
||||
return super.exportXls(request, appSceneCostResultValue, AppSceneCostResultValue.class, "app_scene_cost_result_value");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_result_value:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, AppSceneCostResultValue.class);
|
||||
}
|
||||
|
||||
}
|
||||
+180
@@ -0,0 +1,180 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapAfru;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostSapAfruService;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_afru
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="app_scene_cost_sap_afru")
|
||||
@RestController
|
||||
@RequestMapping("/cost/appSceneCostSapAfru")
|
||||
@Slf4j
|
||||
public class AppSceneCostSapAfruController extends JeecgController<AppSceneCostSapAfru, IAppSceneCostSapAfruService> {
|
||||
@Autowired
|
||||
private IAppSceneCostSapAfruService appSceneCostSapAfruService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostSapAfru
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_sap_afru-分页列表查询")
|
||||
@ApiOperation(value="app_scene_cost_sap_afru-分页列表查询", notes="app_scene_cost_sap_afru-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostSapAfru>> queryPageList(AppSceneCostSapAfru appSceneCostSapAfru,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostSapAfru> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapAfru, req.getParameterMap());
|
||||
Page<AppSceneCostSapAfru> page = new Page<AppSceneCostSapAfru>(pageNo, pageSize);
|
||||
IPage<AppSceneCostSapAfru> pageList = appSceneCostSapAfruService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param appSceneCostSapAfru
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_sap_afru-添加")
|
||||
@ApiOperation(value="app_scene_cost_sap_afru-添加", notes="app_scene_cost_sap_afru-添加")
|
||||
@RequiresPermissions("cost:app_scene_cost_sap_afru:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody AppSceneCostSapAfru appSceneCostSapAfru) {
|
||||
appSceneCostSapAfruService.save(appSceneCostSapAfru);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param appSceneCostSapAfru
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_sap_afru-编辑")
|
||||
@ApiOperation(value="app_scene_cost_sap_afru-编辑", notes="app_scene_cost_sap_afru-编辑")
|
||||
@RequiresPermissions("cost:app_scene_cost_sap_afru:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody AppSceneCostSapAfru appSceneCostSapAfru) {
|
||||
appSceneCostSapAfruService.updateById(appSceneCostSapAfru);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_sap_afru-通过id删除")
|
||||
@ApiOperation(value="app_scene_cost_sap_afru-通过id删除", notes="app_scene_cost_sap_afru-通过id删除")
|
||||
@RequiresPermissions("cost:app_scene_cost_sap_afru:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
appSceneCostSapAfruService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_sap_afru-批量删除")
|
||||
@ApiOperation(value="app_scene_cost_sap_afru-批量删除", notes="app_scene_cost_sap_afru-批量删除")
|
||||
@RequiresPermissions("cost:app_scene_cost_sap_afru:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.appSceneCostSapAfruService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_sap_afru-通过id查询")
|
||||
@ApiOperation(value="app_scene_cost_sap_afru-通过id查询", notes="app_scene_cost_sap_afru-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<AppSceneCostSapAfru> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
AppSceneCostSapAfru appSceneCostSapAfru = appSceneCostSapAfruService.getById(id);
|
||||
if(appSceneCostSapAfru==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(appSceneCostSapAfru);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param appSceneCostSapAfru
|
||||
*/
|
||||
@RequiresPermissions("cost:app_scene_cost_sap_afru:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostSapAfru appSceneCostSapAfru) {
|
||||
return super.exportXls(request, appSceneCostSapAfru, AppSceneCostSapAfru.class, "app_scene_cost_sap_afru");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("cost:app_scene_cost_sap_afru:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, AppSceneCostSapAfru.class);
|
||||
}
|
||||
|
||||
}
|
||||
+178
@@ -0,0 +1,178 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapEkpo;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostSapEkpoService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_ekpo
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-22
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="app_scene_cost_sap_ekpo")
|
||||
@RestController
|
||||
@RequestMapping("/com.zzsmart.qomo.kn.cost.manage/appSceneCostSapEkpo")
|
||||
@Slf4j
|
||||
public class AppSceneCostSapEkpoController extends JeecgController<AppSceneCostSapEkpo, IAppSceneCostSapEkpoService> {
|
||||
@Autowired
|
||||
private IAppSceneCostSapEkpoService appSceneCostSapEkpoService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostSapEkpo
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_sap_ekpo-分页列表查询")
|
||||
@ApiOperation(value="app_scene_cost_sap_ekpo-分页列表查询", notes="app_scene_cost_sap_ekpo-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostSapEkpo>> queryPageList(AppSceneCostSapEkpo appSceneCostSapEkpo,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostSapEkpo> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapEkpo, req.getParameterMap());
|
||||
Page<AppSceneCostSapEkpo> page = new Page<AppSceneCostSapEkpo>(pageNo, pageSize);
|
||||
IPage<AppSceneCostSapEkpo> pageList = appSceneCostSapEkpoService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param appSceneCostSapEkpo
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_sap_ekpo-添加")
|
||||
@ApiOperation(value="app_scene_cost_sap_ekpo-添加", notes="app_scene_cost_sap_ekpo-添加")
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody AppSceneCostSapEkpo appSceneCostSapEkpo) {
|
||||
appSceneCostSapEkpoService.save(appSceneCostSapEkpo);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param appSceneCostSapEkpo
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_sap_ekpo-编辑")
|
||||
@ApiOperation(value="app_scene_cost_sap_ekpo-编辑", notes="app_scene_cost_sap_ekpo-编辑")
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody AppSceneCostSapEkpo appSceneCostSapEkpo) {
|
||||
appSceneCostSapEkpoService.updateById(appSceneCostSapEkpo);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_sap_ekpo-通过id删除")
|
||||
@ApiOperation(value="app_scene_cost_sap_ekpo-通过id删除", notes="app_scene_cost_sap_ekpo-通过id删除")
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
appSceneCostSapEkpoService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_sap_ekpo-批量删除")
|
||||
@ApiOperation(value="app_scene_cost_sap_ekpo-批量删除", notes="app_scene_cost_sap_ekpo-批量删除")
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.appSceneCostSapEkpoService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_sap_ekpo-通过id查询")
|
||||
@ApiOperation(value="app_scene_cost_sap_ekpo-通过id查询", notes="app_scene_cost_sap_ekpo-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<AppSceneCostSapEkpo> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
AppSceneCostSapEkpo appSceneCostSapEkpo = appSceneCostSapEkpoService.getById(id);
|
||||
if(appSceneCostSapEkpo==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(appSceneCostSapEkpo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param appSceneCostSapEkpo
|
||||
*/
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostSapEkpo appSceneCostSapEkpo) {
|
||||
return super.exportXls(request, appSceneCostSapEkpo, AppSceneCostSapEkpo.class, "app_scene_cost_sap_ekpo");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, AppSceneCostSapEkpo.class);
|
||||
}
|
||||
|
||||
}
|
||||
+180
@@ -0,0 +1,180 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapHourRate;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostSapHourRateService;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_hour_rate
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="app_scene_cost_sap_hour_rate")
|
||||
@RestController
|
||||
@RequestMapping("/cost/appSceneCostSapHourRate")
|
||||
@Slf4j
|
||||
public class AppSceneCostSapHourRateController extends JeecgController<AppSceneCostSapHourRate, IAppSceneCostSapHourRateService> {
|
||||
@Autowired
|
||||
private IAppSceneCostSapHourRateService appSceneCostSapHourRateService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostSapHourRate
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_sap_hour_rate-分页列表查询")
|
||||
@ApiOperation(value="app_scene_cost_sap_hour_rate-分页列表查询", notes="app_scene_cost_sap_hour_rate-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostSapHourRate>> queryPageList(AppSceneCostSapHourRate appSceneCostSapHourRate,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostSapHourRate> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapHourRate, req.getParameterMap());
|
||||
Page<AppSceneCostSapHourRate> page = new Page<AppSceneCostSapHourRate>(pageNo, pageSize);
|
||||
IPage<AppSceneCostSapHourRate> pageList = appSceneCostSapHourRateService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param appSceneCostSapHourRate
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_sap_hour_rate-添加")
|
||||
@ApiOperation(value="app_scene_cost_sap_hour_rate-添加", notes="app_scene_cost_sap_hour_rate-添加")
|
||||
@RequiresPermissions("cost:app_scene_cost_sap_hour_rate:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody AppSceneCostSapHourRate appSceneCostSapHourRate) {
|
||||
appSceneCostSapHourRateService.save(appSceneCostSapHourRate);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param appSceneCostSapHourRate
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_sap_hour_rate-编辑")
|
||||
@ApiOperation(value="app_scene_cost_sap_hour_rate-编辑", notes="app_scene_cost_sap_hour_rate-编辑")
|
||||
@RequiresPermissions("cost:app_scene_cost_sap_hour_rate:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody AppSceneCostSapHourRate appSceneCostSapHourRate) {
|
||||
appSceneCostSapHourRateService.updateById(appSceneCostSapHourRate);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_sap_hour_rate-通过id删除")
|
||||
@ApiOperation(value="app_scene_cost_sap_hour_rate-通过id删除", notes="app_scene_cost_sap_hour_rate-通过id删除")
|
||||
@RequiresPermissions("cost:app_scene_cost_sap_hour_rate:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
appSceneCostSapHourRateService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_sap_hour_rate-批量删除")
|
||||
@ApiOperation(value="app_scene_cost_sap_hour_rate-批量删除", notes="app_scene_cost_sap_hour_rate-批量删除")
|
||||
@RequiresPermissions("cost:app_scene_cost_sap_hour_rate:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.appSceneCostSapHourRateService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_sap_hour_rate-通过id查询")
|
||||
@ApiOperation(value="app_scene_cost_sap_hour_rate-通过id查询", notes="app_scene_cost_sap_hour_rate-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<AppSceneCostSapHourRate> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
AppSceneCostSapHourRate appSceneCostSapHourRate = appSceneCostSapHourRateService.getById(id);
|
||||
if(appSceneCostSapHourRate==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(appSceneCostSapHourRate);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param appSceneCostSapHourRate
|
||||
*/
|
||||
@RequiresPermissions("cost:app_scene_cost_sap_hour_rate:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostSapHourRate appSceneCostSapHourRate) {
|
||||
return super.exportXls(request, appSceneCostSapHourRate, AppSceneCostSapHourRate.class, "app_scene_cost_sap_hour_rate");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("cost:app_scene_cost_sap_hour_rate:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, AppSceneCostSapHourRate.class);
|
||||
}
|
||||
|
||||
}
|
||||
+220
@@ -0,0 +1,220 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZcorc;
|
||||
import com.zzsmart.qomo.kn.cost.manage.plugin.CostEffectiveService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostActualService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostSapZcorcService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.CostEffectiveVO;
|
||||
import org.checkerframework.checker.units.qual.A;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_zcorc
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="app_scene_cost_sap_zcorc")
|
||||
@RestController
|
||||
@RequestMapping("/cost/appSceneCostSapZcorc")
|
||||
@Slf4j
|
||||
public class AppSceneCostSapZcorcController extends JeecgController<AppSceneCostSapZcorc, IAppSceneCostSapZcorcService> {
|
||||
@Autowired
|
||||
private IAppSceneCostSapZcorcService appSceneCostSapZcorcService;
|
||||
|
||||
@Autowired
|
||||
private CostEffectiveService costEffectiveService;
|
||||
|
||||
@Autowired
|
||||
private IAppSceneCostActualService iAppSceneCostActualService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostSapZcorc
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_sap_zcorc-分页列表查询")
|
||||
@ApiOperation(value="app_scene_cost_sap_zcorc-分页列表查询", notes="app_scene_cost_sap_zcorc-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostSapZcorc>> queryPageList(AppSceneCostSapZcorc appSceneCostSapZcorc,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostSapZcorc> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapZcorc, req.getParameterMap());
|
||||
Page<AppSceneCostSapZcorc> page = new Page<AppSceneCostSapZcorc>(pageNo, pageSize);
|
||||
IPage<AppSceneCostSapZcorc> pageList = appSceneCostSapZcorcService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param appSceneCostSapZcorc
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_sap_zcorc-添加")
|
||||
@ApiOperation(value="app_scene_cost_sap_zcorc-添加", notes="app_scene_cost_sap_zcorc-添加")
|
||||
//@RequiresPermissions("cost:app_scene_cost_sap_zcorc:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody CostEffectiveVO costEffectiveVO) {
|
||||
//appSceneCostSapZcorcService.save(appSceneCostSapZcorc);
|
||||
costEffectiveService.loadsapservice(costEffectiveVO.getWerks(),costEffectiveVO.getMatnr(),"",costEffectiveVO.getYmonth());
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param appSceneCostSapZcorc
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_sap_zcorc-添加")
|
||||
@ApiOperation(value="app_scene_cost_sap_zcorc-添加", notes="app_scene_cost_sap_zcorc-添加")
|
||||
//@RequiresPermissions("cost:app_scene_cost_sap_zcorc:add")
|
||||
@GetMapping(value = "/fix")
|
||||
public Result<String> fix(@RequestParam(name="version") String version) {
|
||||
//appSceneCostSapZcorcService.save(appSceneCostSapZcorc);
|
||||
costEffectiveService.fixversion(version);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param appSceneCostSapZcorc
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_sap_zcorc-编辑")
|
||||
@ApiOperation(value="app_scene_cost_sap_zcorc-编辑", notes="app_scene_cost_sap_zcorc-编辑")
|
||||
@RequiresPermissions("cost:app_scene_cost_sap_zcorc:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody AppSceneCostSapZcorc appSceneCostSapZcorc) {
|
||||
appSceneCostSapZcorcService.updateById(appSceneCostSapZcorc);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_sap_zcorc-通过id删除")
|
||||
@ApiOperation(value="app_scene_cost_sap_zcorc-通过id删除", notes="app_scene_cost_sap_zcorc-通过id删除")
|
||||
@RequiresPermissions("cost:app_scene_cost_sap_zcorc:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
appSceneCostSapZcorcService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_sap_zcorc-批量删除")
|
||||
@ApiOperation(value="app_scene_cost_sap_zcorc-批量删除", notes="app_scene_cost_sap_zcorc-批量删除")
|
||||
@RequiresPermissions("cost:app_scene_cost_sap_zcorc:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.appSceneCostSapZcorcService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_sap_zcorc-通过id查询")
|
||||
@ApiOperation(value="app_scene_cost_sap_zcorc-通过id查询", notes="app_scene_cost_sap_zcorc-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<AppSceneCostSapZcorc> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
AppSceneCostSapZcorc appSceneCostSapZcorc = appSceneCostSapZcorcService.getById(id);
|
||||
if(appSceneCostSapZcorc==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(appSceneCostSapZcorc);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param appSceneCostSapZcorc
|
||||
*/
|
||||
//@RequiresPermissions("cost:app_scene_cost_sap_zcorc:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostSapZcorc appSceneCostSapZcorc) {
|
||||
String exportFields="layer,rlayer,matnr,werks,aufnr,ebeln,ebelp,ppsmng,idnrk,kmonth,menge,unmng,kst001,kst003,kst005,kstsum";
|
||||
return super.exportXls(request, appSceneCostSapZcorc, AppSceneCostSapZcorc.class, "实际成本",exportFields);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param appSceneCostSapZcorc
|
||||
*/
|
||||
//@RequiresPermissions("cost:app_scene_cost_sap_zcorc:exportXls")
|
||||
@RequestMapping(value = "/exportmatnrXls")
|
||||
public ModelAndView exportmatnrXls(HttpServletRequest request, AppSceneCostSapZcorc appSceneCostSapZcorc) {
|
||||
String exportFields="layer,rlayer,matnr,werks,aufnr,ebeln,ebelp,ppsmng,idnrk,kmonth,menge,unmng,kstsum,rkst000,aufnrmng,aufnrnum,pnum,avgnum,avgprice,totalprice,";
|
||||
return super.exportXls(request, appSceneCostSapZcorc, AppSceneCostSapZcorc.class, "实际成本",exportFields);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("cost:app_scene_cost_sap_zcorc:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, AppSceneCostSapZcorc.class);
|
||||
}
|
||||
|
||||
}
|
||||
+179
@@ -0,0 +1,179 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZtmmx004;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostSapZtmmx004Service;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_ztmmx004
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="app_scene_cost_sap_ztmmx004")
|
||||
@RestController
|
||||
@RequestMapping("/cost/appSceneCostSapZtmmx004")
|
||||
@Slf4j
|
||||
public class AppSceneCostSapZtmmx004Controller extends JeecgController<AppSceneCostSapZtmmx004, IAppSceneCostSapZtmmx004Service> {
|
||||
@Autowired
|
||||
private IAppSceneCostSapZtmmx004Service appSceneCostSapZtmmx004Service;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostSapZtmmx004
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_sap_ztmmx004-分页列表查询")
|
||||
@ApiOperation(value="app_scene_cost_sap_ztmmx004-分页列表查询", notes="app_scene_cost_sap_ztmmx004-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostSapZtmmx004>> queryPageList(AppSceneCostSapZtmmx004 appSceneCostSapZtmmx004,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostSapZtmmx004> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapZtmmx004, req.getParameterMap());
|
||||
Page<AppSceneCostSapZtmmx004> page = new Page<AppSceneCostSapZtmmx004>(pageNo, pageSize);
|
||||
IPage<AppSceneCostSapZtmmx004> pageList = appSceneCostSapZtmmx004Service.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param appSceneCostSapZtmmx004
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_sap_ztmmx004-添加")
|
||||
@ApiOperation(value="app_scene_cost_sap_ztmmx004-添加", notes="app_scene_cost_sap_ztmmx004-添加")
|
||||
@RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody AppSceneCostSapZtmmx004 appSceneCostSapZtmmx004) {
|
||||
appSceneCostSapZtmmx004Service.save(appSceneCostSapZtmmx004);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param appSceneCostSapZtmmx004
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_sap_ztmmx004-编辑")
|
||||
@ApiOperation(value="app_scene_cost_sap_ztmmx004-编辑", notes="app_scene_cost_sap_ztmmx004-编辑")
|
||||
@RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody AppSceneCostSapZtmmx004 appSceneCostSapZtmmx004) {
|
||||
appSceneCostSapZtmmx004Service.updateById(appSceneCostSapZtmmx004);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_sap_ztmmx004-通过id删除")
|
||||
@ApiOperation(value="app_scene_cost_sap_ztmmx004-通过id删除", notes="app_scene_cost_sap_ztmmx004-通过id删除")
|
||||
@RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
appSceneCostSapZtmmx004Service.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_sap_ztmmx004-批量删除")
|
||||
@ApiOperation(value="app_scene_cost_sap_ztmmx004-批量删除", notes="app_scene_cost_sap_ztmmx004-批量删除")
|
||||
@RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.appSceneCostSapZtmmx004Service.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_sap_ztmmx004-通过id查询")
|
||||
@ApiOperation(value="app_scene_cost_sap_ztmmx004-通过id查询", notes="app_scene_cost_sap_ztmmx004-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<AppSceneCostSapZtmmx004> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
AppSceneCostSapZtmmx004 appSceneCostSapZtmmx004 = appSceneCostSapZtmmx004Service.getById(id);
|
||||
if(appSceneCostSapZtmmx004==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(appSceneCostSapZtmmx004);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param appSceneCostSapZtmmx004
|
||||
*/
|
||||
@RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostSapZtmmx004 appSceneCostSapZtmmx004) {
|
||||
return super.exportXls(request, appSceneCostSapZtmmx004, AppSceneCostSapZtmmx004.class, "app_scene_cost_sap_ztmmx004");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, AppSceneCostSapZtmmx004.class);
|
||||
}
|
||||
|
||||
}
|
||||
+179
@@ -0,0 +1,179 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardBom;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostStandardBomService;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_standard_bom
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="app_scene_cost_standard_bom")
|
||||
@RestController
|
||||
@RequestMapping("/cost/appSceneCostStandardBom")
|
||||
@Slf4j
|
||||
public class AppSceneCostStandardBomController extends JeecgController<AppSceneCostStandardBom, IAppSceneCostStandardBomService> {
|
||||
@Autowired
|
||||
private IAppSceneCostStandardBomService appSceneCostStandardBomService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostStandardBom
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_standard_bom-分页列表查询")
|
||||
@ApiOperation(value="app_scene_cost_standard_bom-分页列表查询", notes="app_scene_cost_standard_bom-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostStandardBom>> queryPageList(AppSceneCostStandardBom appSceneCostStandardBom,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostStandardBom> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostStandardBom, req.getParameterMap());
|
||||
Page<AppSceneCostStandardBom> page = new Page<AppSceneCostStandardBom>(pageNo, pageSize);
|
||||
IPage<AppSceneCostStandardBom> pageList = appSceneCostStandardBomService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param appSceneCostStandardBom
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_standard_bom-添加")
|
||||
@ApiOperation(value="app_scene_cost_standard_bom-添加", notes="app_scene_cost_standard_bom-添加")
|
||||
@RequiresPermissions("cost:app_scene_cost_standard_bom:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody AppSceneCostStandardBom appSceneCostStandardBom) {
|
||||
appSceneCostStandardBomService.save(appSceneCostStandardBom);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param appSceneCostStandardBom
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_standard_bom-编辑")
|
||||
@ApiOperation(value="app_scene_cost_standard_bom-编辑", notes="app_scene_cost_standard_bom-编辑")
|
||||
@RequiresPermissions("cost:app_scene_cost_standard_bom:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody AppSceneCostStandardBom appSceneCostStandardBom) {
|
||||
appSceneCostStandardBomService.updateById(appSceneCostStandardBom);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_standard_bom-通过id删除")
|
||||
@ApiOperation(value="app_scene_cost_standard_bom-通过id删除", notes="app_scene_cost_standard_bom-通过id删除")
|
||||
@RequiresPermissions("cost:app_scene_cost_standard_bom:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
appSceneCostStandardBomService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "app_scene_cost_standard_bom-批量删除")
|
||||
@ApiOperation(value="app_scene_cost_standard_bom-批量删除", notes="app_scene_cost_standard_bom-批量删除")
|
||||
@RequiresPermissions("cost:app_scene_cost_standard_bom:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.appSceneCostStandardBomService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_standard_bom-通过id查询")
|
||||
@ApiOperation(value="app_scene_cost_standard_bom-通过id查询", notes="app_scene_cost_standard_bom-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<AppSceneCostStandardBom> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
AppSceneCostStandardBom appSceneCostStandardBom = appSceneCostStandardBomService.getById(id);
|
||||
if(appSceneCostStandardBom==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(appSceneCostStandardBom);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param appSceneCostStandardBom
|
||||
*/
|
||||
@RequiresPermissions("cost:app_scene_cost_standard_bom:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostStandardBom appSceneCostStandardBom) {
|
||||
return super.exportXls(request, appSceneCostStandardBom, AppSceneCostStandardBom.class, "app_scene_cost_standard_bom");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("cost:app_scene_cost_standard_bom:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, AppSceneCostStandardBom.class);
|
||||
}
|
||||
|
||||
}
|
||||
+202
@@ -0,0 +1,202 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardDetail;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardResult;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostStandardResultService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.AppSceneCostStandardResultVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
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.servlet.ModelAndView;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_standard_detail
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-07-31
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags = "cost-标准成本单行查询")
|
||||
@RestController
|
||||
@RequestMapping("//costStandardDetail")
|
||||
@Slf4j
|
||||
public class AppSceneCostStandardResultController extends JeecgController<AppSceneCostStandardResult, IAppSceneCostStandardResultService> {
|
||||
@Autowired
|
||||
private IAppSceneCostStandardResultService appSceneCostStandardResultService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostStandardResult
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_standard_detail-分页列表查询")
|
||||
@ApiOperation(value = "app_scene_cost_standard_detail-分页列表查询", notes = "app_scene_cost_standard_detail-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostStandardResult>> queryPageList(AppSceneCostStandardResult appSceneCostStandardResult, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
|
||||
if(appSceneCostStandardResult.getVersionNumber()==null){
|
||||
appSceneCostStandardResult.setVersionNumber(" ");
|
||||
}
|
||||
QueryWrapper<AppSceneCostStandardResult> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostStandardResult, req.getParameterMap());
|
||||
queryWrapper.orderByAsc("id");
|
||||
Page<AppSceneCostStandardResult> page = new Page<AppSceneCostStandardResult>(pageNo, pageSize);
|
||||
IPage<AppSceneCostStandardResult> pageList = appSceneCostStandardResultService.page(page, queryWrapper);
|
||||
// IPage<AppSceneCostStandardResultVO> newpageList = new Page<>();
|
||||
// BeanUtils.copyProperties(pageList, newpageList);
|
||||
// List<AppSceneCostStandardResult> list = pageList.getRecords();
|
||||
// List<AppSceneCostStandardResultVO> newList = new ArrayList<>();
|
||||
// for (int i = 0; i < list.size(); i++) {
|
||||
// AppSceneCostStandardResult result = list.get(i);
|
||||
// AppSceneCostStandardResultVO costStandardDetail = AppSceneCostStandardResultVO.builder()
|
||||
// .materialNumber(result.getMaterialNumber())
|
||||
//// .materialName(oldAppSceneCostResultValue.getMarterialNo())
|
||||
// .parentMaterialNumber(result.getParentMatnr())
|
||||
// .versionNumber(result.getVersionNumber())
|
||||
//// .level()
|
||||
//// .sort()
|
||||
//// .figureNumber()
|
||||
//// .dosage(oldAppSceneCostResultValue.getNum() != null ? new Double(oldAppSceneCostResultValue.getNum()) : 0)
|
||||
//// .unit(oldAppSceneCostResultValue.getUnit())
|
||||
// .materialCost(result.getMaterialCostStage())
|
||||
// .laborCost(result.getLaborCostStage())
|
||||
// .equipmentCost(result.getEquipCostStage())
|
||||
// .supplyMaterialCost(result.getAuxiliaryCostStage())
|
||||
// .driveCost(result.getBurningCostStage())
|
||||
// .otherCost(result.getOtherCostStage())
|
||||
// .currentStandardCost(result.getTotalStandardCost())
|
||||
// .totalMaterialCost(result.getMaterialCostAccumulated())
|
||||
// .totalLaborCost(result.getLaborCostAccumulated())
|
||||
// .totalEquipmentCost(result.getEquipCostAccumulated())
|
||||
// .totalSupplyMaterialCost(result.getAuxiliaryCostAccumulated())
|
||||
// .totalDriveCost(result.getBurningCostAccumulated())
|
||||
// .totalOtherCost(result.getOtherCostAccumulated())
|
||||
// .totalStandardCost(result.getTotalStandardCost())
|
||||
// .createTime(result.getCreatedTime()).build();
|
||||
// newList.add(costStandardDetail);
|
||||
// }
|
||||
// newpageList.setRecords(newList);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
//
|
||||
// /**
|
||||
// * 添加
|
||||
// *
|
||||
// * @param appSceneCostStandardDetail
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "app_scene_cost_standard_detail-添加")
|
||||
// @ApiOperation(value = "app_scene_cost_standard_detail-添加", notes = "app_scene_cost_standard_detail-添加")
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_detail:add")
|
||||
// @PostMapping(value = "/add")
|
||||
// public Result<String> add(@RequestBody AppSceneCostStandardDetail appSceneCostStandardDetail) {
|
||||
// appSceneCostStandardDetailService.save(appSceneCostStandardDetail);
|
||||
// return Result.OK("添加成功!");
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 编辑
|
||||
// *
|
||||
// * @param appSceneCostStandardDetail
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "app_scene_cost_standard_detail-编辑")
|
||||
// @ApiOperation(value = "app_scene_cost_standard_detail-编辑", notes = "app_scene_cost_standard_detail-编辑")
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_detail:edit")
|
||||
// @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
|
||||
// public Result<String> edit(@RequestBody AppSceneCostStandardDetail appSceneCostStandardDetail) {
|
||||
// appSceneCostStandardDetailService.updateById(appSceneCostStandardDetail);
|
||||
// return Result.OK("编辑成功!");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 通过id删除
|
||||
// *
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "app_scene_cost_standard_detail-通过id删除")
|
||||
// @ApiOperation(value = "app_scene_cost_standard_detail-通过id删除", notes = "app_scene_cost_standard_detail-通过id删除")
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_detail:delete")
|
||||
// @DeleteMapping(value = "/delete")
|
||||
// public Result<String> delete(@RequestParam(name = "id", required = true) String id) {
|
||||
// appSceneCostStandardDetailService.removeById(id);
|
||||
// return Result.OK("删除成功!");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 批量删除
|
||||
// *
|
||||
// * @param ids
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "app_scene_cost_standard_detail-批量删除")
|
||||
// @ApiOperation(value = "app_scene_cost_standard_detail-批量删除", notes = "app_scene_cost_standard_detail-批量删除")
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_detail:deleteBatch")
|
||||
// @DeleteMapping(value = "/deleteBatch")
|
||||
// public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
|
||||
// this.appSceneCostStandardDetailService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
// return Result.OK("批量删除成功!");
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 通过id查询
|
||||
// *
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// //@AutoLog(value = "app_scene_cost_standard_detail-通过id查询")
|
||||
// @ApiOperation(value = "app_scene_cost_standard_detail-通过id查询", notes = "app_scene_cost_standard_detail-通过id查询")
|
||||
// @GetMapping(value = "/queryById")
|
||||
// public Result<AppSceneCostStandardDetail> queryById(@RequestParam(name = "id", required = true) String id) {
|
||||
// AppSceneCostStandardDetail appSceneCostStandardDetail = appSceneCostStandardDetailService.getById(id);
|
||||
// if (appSceneCostStandardDetail == null) {
|
||||
// return Result.error("未找到对应数据");
|
||||
// }
|
||||
// return Result.OK(appSceneCostStandardDetail);
|
||||
// }
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param appSceneCostStandardDetail
|
||||
*/
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_detail:exportXls")
|
||||
@GetMapping(value = "/exportXls")
|
||||
@ApiOperation(value = "cost-单行查询导出", notes = "cost-单行查询导出")
|
||||
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostStandardResult appSceneCostStandardResult) {
|
||||
return appSceneCostStandardResultService.exportXls2(request, appSceneCostStandardResult, AppSceneCostStandardResult.class, "标准成本单行导出");
|
||||
}
|
||||
|
||||
// /**
|
||||
// * 通过excel导入数据
|
||||
// *
|
||||
// * @param request
|
||||
// * @param response
|
||||
// * @return
|
||||
// */
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_detail:importExcel")
|
||||
// @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
// public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
// return super.importExcel(request, response, AppSceneCostStandardDetail.class);
|
||||
// }
|
||||
|
||||
}
|
||||
+155
@@ -0,0 +1,155 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardVersion;
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostStandardVersionService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_standard_version
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-08-02
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags = "cost-标准成本-版本号")
|
||||
@RestController
|
||||
@RequestMapping("//costStandardVersion")
|
||||
public class AppSceneCostStandardVersionController extends JeecgController<AppSceneCostStandardVersion, IAppSceneCostStandardVersionService> {
|
||||
@Autowired
|
||||
private IAppSceneCostStandardVersionService appSceneCostStandardVersionService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param appSceneCostStandardVersion
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "app_scene_cost_standard_version-分页列表查询")
|
||||
@ApiOperation(value = "app_scene_cost_standard_version-分页列表查询", notes = "app_scene_cost_standard_version-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostStandardVersion>> queryPageList(AppSceneCostStandardVersion appSceneCostStandardVersion, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostStandardVersion> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostStandardVersion, req.getParameterMap());
|
||||
Page<AppSceneCostStandardVersion> page = new Page<AppSceneCostStandardVersion>(pageNo, pageSize);
|
||||
IPage<AppSceneCostStandardVersion> pageList = appSceneCostStandardVersionService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
// /**
|
||||
// * 添加
|
||||
// *
|
||||
// * @param appSceneCostStandardVersion
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "app_scene_cost_standard_version-添加")
|
||||
// @ApiOperation(value = "app_scene_cost_standard_version-添加", notes = "app_scene_cost_standard_version-添加")
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_version:add")
|
||||
// @PostMapping(value = "/add")
|
||||
// public Result<String> add(@RequestBody AppSceneCostStandardVersion appSceneCostStandardVersion) {
|
||||
// appSceneCostStandardVersionService.save(appSceneCostStandardVersion);
|
||||
// return Result.OK("添加成功!");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 编辑
|
||||
// *
|
||||
// * @param appSceneCostStandardVersion
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "app_scene_cost_standard_version-编辑")
|
||||
// @ApiOperation(value = "app_scene_cost_standard_version-编辑", notes = "app_scene_cost_standard_version-编辑")
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_version:edit")
|
||||
// @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
|
||||
// public Result<String> edit(@RequestBody AppSceneCostStandardVersion appSceneCostStandardVersion) {
|
||||
// appSceneCostStandardVersionService.updateById(appSceneCostStandardVersion);
|
||||
// return Result.OK("编辑成功!");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 通过id删除
|
||||
// *
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "app_scene_cost_standard_version-通过id删除")
|
||||
// @ApiOperation(value = "app_scene_cost_standard_version-通过id删除", notes = "app_scene_cost_standard_version-通过id删除")
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_version:delete")
|
||||
// @DeleteMapping(value = "/delete")
|
||||
// public Result<String> delete(@RequestParam(name = "id", required = true) String id) {
|
||||
// appSceneCostStandardVersionService.removeById(id);
|
||||
// return Result.OK("删除成功!");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 批量删除
|
||||
// *
|
||||
// * @param ids
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "app_scene_cost_standard_version-批量删除")
|
||||
// @ApiOperation(value = "app_scene_cost_standard_version-批量删除", notes = "app_scene_cost_standard_version-批量删除")
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_version:deleteBatch")
|
||||
// @DeleteMapping(value = "/deleteBatch")
|
||||
// public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
|
||||
// this.appSceneCostStandardVersionService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
// return Result.OK("批量删除成功!");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 通过id查询
|
||||
// *
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// //@AutoLog(value = "app_scene_cost_standard_version-通过id查询")
|
||||
// @ApiOperation(value = "app_scene_cost_standard_version-通过id查询", notes = "app_scene_cost_standard_version-通过id查询")
|
||||
// @GetMapping(value = "/queryById")
|
||||
// public Result<AppSceneCostStandardVersion> queryById(@RequestParam(name = "id", required = true) String id) {
|
||||
// AppSceneCostStandardVersion appSceneCostStandardVersion = appSceneCostStandardVersionService.getById(id);
|
||||
// if (appSceneCostStandardVersion == null) {
|
||||
// return Result.error("未找到对应数据");
|
||||
// }
|
||||
// return Result.OK(appSceneCostStandardVersion);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 导出excel
|
||||
// *
|
||||
// * @param request
|
||||
// * @param appSceneCostStandardVersion
|
||||
// */
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_version:exportXls")
|
||||
// @RequestMapping(value = "/exportXls")
|
||||
// public ModelAndView exportXls(HttpServletRequest request, AppSceneCostStandardVersion appSceneCostStandardVersion) {
|
||||
// return super.exportXls(request, appSceneCostStandardVersion, AppSceneCostStandardVersion.class, "app_scene_cost_standard_version");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 通过excel导入数据
|
||||
// *
|
||||
// * @param request
|
||||
// * @param response
|
||||
// * @return
|
||||
// */
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_version:importExcel")
|
||||
// @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
// public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
// return super.importExcel(request, response, AppSceneCostStandardVersion.class);
|
||||
// }
|
||||
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.service.BomTreeService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.BomTreeInfoVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Api(tags = "cost-结构树查询")
|
||||
@RestController
|
||||
@RequestMapping("//bomTree")
|
||||
@Slf4j
|
||||
public class BomTreeController {
|
||||
@Autowired
|
||||
BomTreeService bomTreeService;
|
||||
|
||||
@ApiOperation(value = "结构树查询", notes = "结构树查询")
|
||||
@GetMapping(value = "/queryBomTree")
|
||||
public Result<List<BomTreeInfoVO>> queryBomTree(@RequestParam(name = "materialNumber", required = false) String materialNumber, @RequestParam(name = "versionNumber", required = false) String versionNumber) {
|
||||
List<BomTreeInfoVO> bomTreeInfoVOS = bomTreeService.getBomTreeByMaterialNumber(materialNumber, versionNumber);
|
||||
return Result.OK(bomTreeInfoVOS);
|
||||
}
|
||||
}
|
||||
+81
@@ -0,0 +1,81 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_actual
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@TableName("app_scene_cost_actual")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_actual对象", description="app_scene_cost_actual")
|
||||
public class AppSceneCostActual implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Integer id;
|
||||
/**工厂*/
|
||||
@Excel(name = "工厂", width = 15)
|
||||
@ApiModelProperty(value = "工厂")
|
||||
private String werks;
|
||||
/**物料编号*/
|
||||
@Excel(name = "物料编号", width = 15)
|
||||
@ApiModelProperty(value = "物料编号")
|
||||
private String matnr;
|
||||
/**会计期间*/
|
||||
@Excel(name = "会计期间", width = 15)
|
||||
@ApiModelProperty(value = "会计期间")
|
||||
private String ymonth;
|
||||
/**版本*/
|
||||
@Excel(name = "版本", width = 15)
|
||||
@ApiModelProperty(value = "版本")
|
||||
private String version;
|
||||
/**版本*/
|
||||
@Excel(name = "订单号", width = 15)
|
||||
@ApiModelProperty(value = "订单号")
|
||||
private String aufnr;
|
||||
/**状态*/
|
||||
@Excel(name = "状态", width = 15)
|
||||
@ApiModelProperty(value = "状态")
|
||||
private Integer status;
|
||||
/**创建人*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private Integer createBy;
|
||||
/**创建时间*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
/**更新人*/
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private Integer updateBy;
|
||||
/**更新时间*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private Date updateTime;
|
||||
}
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_aufnr_matnr
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-05
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_aufnr_matnr")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_aufnr_matnr对象", description="app_scene_cost_aufnr_matnr")
|
||||
public class AppSceneCostAufnrMatnr implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
/**物料号*/
|
||||
@Excel(name = "物料号", width = 15)
|
||||
@ApiModelProperty(value = "物料号")
|
||||
private String matnr;
|
||||
/**物料名称*/
|
||||
@Excel(name = "物料名称", width = 15)
|
||||
@ApiModelProperty(value = "物料名称")
|
||||
private String maktx;
|
||||
/**内部订单号*/
|
||||
@Excel(name = "内部订单号", width = 15)
|
||||
@ApiModelProperty(value = "内部订单号")
|
||||
private String aufnr;
|
||||
/**内部订单描述*/
|
||||
@Excel(name = "内部订单描述", width = 15)
|
||||
@ApiModelProperty(value = "内部订单描述")
|
||||
private String aufnrDes;
|
||||
/**年份*/
|
||||
@Excel(name = "年份", width = 15)
|
||||
@ApiModelProperty(value = "年份")
|
||||
private String year;
|
||||
}
|
||||
+87
@@ -0,0 +1,87 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_bom_relevancy
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-08
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_bom_relevancy")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_bom_relevancy对象", description="app_scene_cost_bom_relevancy")
|
||||
public class AppSceneCostBomRelevancy implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**父物料号*/
|
||||
@Excel(name = "父物料号", width = 15)
|
||||
@ApiModelProperty(value = "父物料号")
|
||||
private String matnr;
|
||||
/**版本号*/
|
||||
@Excel(name = "版本号", width = 15)
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private String versionNumber;
|
||||
/**posnr*/
|
||||
@Excel(name = "posnr", width = 15)
|
||||
@ApiModelProperty(value = "posnr")
|
||||
private String posnr;
|
||||
/**工厂*/
|
||||
@Excel(name = "工厂", width = 15)
|
||||
@ApiModelProperty(value = "工厂")
|
||||
private String werks;
|
||||
/**bmeng*/
|
||||
@Excel(name = "bmeng", width = 15)
|
||||
@ApiModelProperty(value = "bmeng")
|
||||
private BigDecimal bmeng;
|
||||
/**stlan*/
|
||||
@Excel(name = "stlan", width = 15)
|
||||
@ApiModelProperty(value = "stlan")
|
||||
private String stlan;
|
||||
/**antxt*/
|
||||
@Excel(name = "antxt", width = 15)
|
||||
@ApiModelProperty(value = "antxt")
|
||||
private String antxt;
|
||||
/**子物料号*/
|
||||
@Excel(name = "子物料号", width = 15)
|
||||
@ApiModelProperty(value = "子物料号")
|
||||
private String idnrk;
|
||||
/**领用量*/
|
||||
@Excel(name = "领用量", width = 15)
|
||||
@ApiModelProperty(value = "领用量")
|
||||
private String meins;
|
||||
/**menge*/
|
||||
@Excel(name = "menge", width = 15)
|
||||
@ApiModelProperty(value = "menge")
|
||||
private BigDecimal menge;
|
||||
/**ausch*/
|
||||
@Excel(name = "ausch", width = 15)
|
||||
@ApiModelProperty(value = "ausch")
|
||||
private BigDecimal ausch;
|
||||
/**datuv*/
|
||||
@Excel(name = "datuv", width = 15)
|
||||
@ApiModelProperty(value = "datuv")
|
||||
private String datuv;
|
||||
/**potx1*/
|
||||
@Excel(name = "potx1", width = 15)
|
||||
@ApiModelProperty(value = "potx1")
|
||||
private String potx1;
|
||||
}
|
||||
+173
@@ -0,0 +1,173 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.*;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_count
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-07-29
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_count")
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "app_scene_cost_count对象", description = "app_scene_cost_count")
|
||||
public class AppSceneCostCount implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Integer id;
|
||||
/**
|
||||
* 物料编号
|
||||
*/
|
||||
@Excel(name = "物料编号", width = 15)
|
||||
@ApiModelProperty(value = "物料编号")
|
||||
private String materialNo;
|
||||
/**
|
||||
* 图号
|
||||
*/
|
||||
@Excel(name = "物料描述", width = 15)
|
||||
@ApiModelProperty(value = "物料描述")
|
||||
private String maktx;
|
||||
/**
|
||||
* stage
|
||||
*/
|
||||
@Excel(name = "阶段", width = 15)
|
||||
@ApiModelProperty(value = "stage")
|
||||
private String stage;
|
||||
/**
|
||||
* 标准成本计算流程id
|
||||
*/
|
||||
@Excel(name = "标准成本计算流程id", width = 15)
|
||||
@ApiModelProperty(value = "标准成本计算流程id")
|
||||
private Integer flowDefinitionId;
|
||||
/**
|
||||
* year
|
||||
*/
|
||||
@Excel(name = "年份", width = 15)
|
||||
@ApiModelProperty(value = "year")
|
||||
private String year;
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
@Excel(name = "状态", width = 15)
|
||||
@ApiModelProperty(value = "状态")
|
||||
private Integer status;
|
||||
/**
|
||||
* 模型版本
|
||||
*/
|
||||
@Excel(name = "标准成本版本", width = 15)
|
||||
@ApiModelProperty(value = "标准成本版本")
|
||||
private String costVersion;
|
||||
/**
|
||||
* 模型版本
|
||||
*/
|
||||
@Excel(name = "工厂", width = 15)
|
||||
@ApiModelProperty(value = "工厂")
|
||||
private String werks;
|
||||
/**
|
||||
* 模型版本
|
||||
*/
|
||||
@Excel(name = "内部订单号", width = 15)
|
||||
@ApiModelProperty(value = "内部订单号")
|
||||
private String aufnr;
|
||||
/**
|
||||
* 模型版本
|
||||
*/
|
||||
@Excel(name = "总标准成本", width = 15)
|
||||
@ApiModelProperty(value = "总标准成本")
|
||||
private BigDecimal standardTotal;
|
||||
/**
|
||||
* 模型版本
|
||||
*/
|
||||
@Excel(name = "材料成本", width = 15)
|
||||
@ApiModelProperty(value = "材料成本")
|
||||
private BigDecimal materialCost;
|
||||
/**
|
||||
* 模型版本
|
||||
*/
|
||||
@Excel(name = "直接人工", width = 15)
|
||||
@ApiModelProperty(value = "直接人工")
|
||||
private BigDecimal laborCost;
|
||||
/**
|
||||
* 模型版本
|
||||
*/
|
||||
@Excel(name = "折旧", width = 15)
|
||||
@ApiModelProperty(value = "折旧")
|
||||
private BigDecimal equipCost;
|
||||
/**
|
||||
* 模型版本
|
||||
*/
|
||||
@Excel(name = "燃动力", width = 15)
|
||||
@ApiModelProperty(value = "燃动力")
|
||||
private BigDecimal fuelCost;
|
||||
/**
|
||||
* 模型版本
|
||||
*/
|
||||
@Excel(name = "辅料", width = 15)
|
||||
@ApiModelProperty(value = "辅料")
|
||||
private BigDecimal auxiCost;
|
||||
/**
|
||||
* 模型版本
|
||||
*/
|
||||
@Excel(name = "其他费用", width = 15)
|
||||
@ApiModelProperty(value = "其他费用")
|
||||
private BigDecimal otherCost;
|
||||
/**
|
||||
* 模型版本
|
||||
*/
|
||||
@Excel(name = "人工工时(分钟)", width = 15)
|
||||
@ApiModelProperty(value = "人工工时(分钟)")
|
||||
private BigDecimal laborHour;
|
||||
/**
|
||||
* 模型版本
|
||||
*/
|
||||
@Excel(name = "机器工时(分钟)", width = 15)
|
||||
@ApiModelProperty(value = "机器工时(分钟)")
|
||||
private BigDecimal machineHour;
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private Integer createBy;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private Integer updateBy;
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private Date updateTime;
|
||||
}
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_hour_rate
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-08-02
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_hour_rate")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "app_scene_cost_hour_rate对象", description = "app_scene_cost_hour_rate")
|
||||
public class AppSceneCostHourRate implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
/**
|
||||
* 年度
|
||||
*/
|
||||
@Excel(name = "年度", width = 15)
|
||||
@ApiModelProperty(value = "年度")
|
||||
private String year;
|
||||
/**
|
||||
* 成本中心代码
|
||||
*/
|
||||
@Excel(name = "成本中心代码", width = 15)
|
||||
@ApiModelProperty(value = "成本中心代码")
|
||||
private String costCenterCode;
|
||||
/**
|
||||
* 工厂代码
|
||||
*/
|
||||
@Excel(name = "工厂代码", width = 15)
|
||||
@ApiModelProperty(value = "工厂代码")
|
||||
private String factory;
|
||||
/**
|
||||
* 人工小时费率
|
||||
*/
|
||||
@Excel(name = "人工小时费率", width = 15)
|
||||
@ApiModelProperty(value = "人工小时费率")
|
||||
private BigDecimal laborHourRate;
|
||||
/**
|
||||
* 设备小时费率
|
||||
*/
|
||||
@Excel(name = "设备小时费率", width = 15)
|
||||
@ApiModelProperty(value = "设备小时费率")
|
||||
private BigDecimal equipHourRate;
|
||||
/**
|
||||
* 燃动小时费率
|
||||
*/
|
||||
@Excel(name = "燃动小时费率", width = 15)
|
||||
@ApiModelProperty(value = "燃动小时费率")
|
||||
private BigDecimal fuelHourRate;
|
||||
/**
|
||||
* 辅料小时费率
|
||||
*/
|
||||
@Excel(name = "辅料小时费率", width = 15)
|
||||
@ApiModelProperty(value = "辅料小时费率")
|
||||
private BigDecimal auxiliaryHourRate;
|
||||
/**
|
||||
* 其他小时费率
|
||||
*/
|
||||
@Excel(name = "其他小时费率", width = 15)
|
||||
@ApiModelProperty(value = "其他小时费率")
|
||||
private BigDecimal otherHourRate;
|
||||
/**
|
||||
* 生效日期
|
||||
*/
|
||||
@Excel(name = "生效日期", width = 15, format = "yyyy-MM-dd")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@ApiModelProperty(value = "生效日期")
|
||||
private Date effectiveDate;
|
||||
/**
|
||||
* 失效日期
|
||||
*/
|
||||
@Excel(name = "失效日期", width = 15, format = "yyyy-MM-dd")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@ApiModelProperty(value = "失效日期")
|
||||
private Date expirationDate;
|
||||
/**
|
||||
* 维护人员
|
||||
*/
|
||||
@Excel(name = "维护人员", width = 15)
|
||||
@ApiModelProperty(value = "维护人员")
|
||||
private String guardian;
|
||||
/**
|
||||
* 维护时间
|
||||
*/
|
||||
@Excel(name = "维护时间", width = 15)
|
||||
@ApiModelProperty(value = "维护时间")
|
||||
private String maintenanceTime;
|
||||
}
|
||||
+151
@@ -0,0 +1,151 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_invoice
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-22
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_invoice")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_invoice对象", description="app_scene_cost_invoice")
|
||||
public class AppSceneCostInvoice implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**matnr*/
|
||||
@Excel(name = "matnr", width = 15)
|
||||
@ApiModelProperty(value = "matnr")
|
||||
private String matnr;
|
||||
/**posnr*/
|
||||
@Excel(name = "posnr", width = 15)
|
||||
@ApiModelProperty(value = "posnr")
|
||||
private String posnr;
|
||||
/**vbeln*/
|
||||
@Excel(name = "vbeln", width = 15)
|
||||
@ApiModelProperty(value = "vbeln")
|
||||
private String vbeln;
|
||||
/**aupos*/
|
||||
@Excel(name = "aupos", width = 15)
|
||||
@ApiModelProperty(value = "aupos")
|
||||
private String aupos;
|
||||
/**aubel*/
|
||||
@Excel(name = "aubel", width = 15)
|
||||
@ApiModelProperty(value = "aubel")
|
||||
private String aubel;
|
||||
/**bukrs*/
|
||||
@Excel(name = "bukrs", width = 15)
|
||||
@ApiModelProperty(value = "bukrs")
|
||||
private String bukrs;
|
||||
/**werks*/
|
||||
@Excel(name = "werks", width = 15)
|
||||
@ApiModelProperty(value = "werks")
|
||||
private String werks;
|
||||
/**gjahr*/
|
||||
@Excel(name = "gjahr", width = 15)
|
||||
@ApiModelProperty(value = "gjahr")
|
||||
private String gjahr;
|
||||
/**poper*/
|
||||
@Excel(name = "poper", width = 15)
|
||||
@ApiModelProperty(value = "poper")
|
||||
private String poper;
|
||||
/**kunrg*/
|
||||
@Excel(name = "kunrg", width = 15)
|
||||
@ApiModelProperty(value = "kunrg")
|
||||
private String kunrg;
|
||||
/**vkbur*/
|
||||
@Excel(name = "vkbur", width = 15)
|
||||
@ApiModelProperty(value = "vkbur")
|
||||
private String vkbur;
|
||||
/**bezei*/
|
||||
@Excel(name = "bezei", width = 15)
|
||||
@ApiModelProperty(value = "bezei")
|
||||
private String bezei;
|
||||
/**fkdat*/
|
||||
@Excel(name = "fkdat", width = 15)
|
||||
@ApiModelProperty(value = "fkdat")
|
||||
private String fkdat;
|
||||
/**kurrf*/
|
||||
@Excel(name = "kurrf", width = 15)
|
||||
@ApiModelProperty(value = "kurrf")
|
||||
private String kurrf;
|
||||
/**erdat*/
|
||||
@Excel(name = "erdat", width = 15)
|
||||
@ApiModelProperty(value = "erdat")
|
||||
private String erdat;
|
||||
/**netwr*/
|
||||
@Excel(name = "netwr", width = 15)
|
||||
@ApiModelProperty(value = "netwr")
|
||||
private BigDecimal netwr;
|
||||
/**mwsbp*/
|
||||
@Excel(name = "mwsbp", width = 15)
|
||||
@ApiModelProperty(value = "mwsbp")
|
||||
private BigDecimal mwsbp;
|
||||
/**shkzg*/
|
||||
@Excel(name = "shkzg", width = 15)
|
||||
@ApiModelProperty(value = "shkzg")
|
||||
private String shkzg;
|
||||
/**fkimg*/
|
||||
@Excel(name = "fkimg", width = 15)
|
||||
@ApiModelProperty(value = "fkimg")
|
||||
private BigDecimal fkimg;
|
||||
/**name1*/
|
||||
@Excel(name = "name1", width = 15)
|
||||
@ApiModelProperty(value = "name1")
|
||||
private String name1;
|
||||
/**sortl*/
|
||||
@Excel(name = "sortl", width = 15)
|
||||
@ApiModelProperty(value = "sortl")
|
||||
private String sortl;
|
||||
/**spart*/
|
||||
@Excel(name = "spart", width = 15)
|
||||
@ApiModelProperty(value = "spart")
|
||||
private String spart;
|
||||
/**zzthzq*/
|
||||
@Excel(name = "zzthzq", width = 15)
|
||||
@ApiModelProperty(value = "zzthzq")
|
||||
private String zzthzq;
|
||||
/**yuanbiPrice*/
|
||||
@Excel(name = "yuanbiPrice", width = 15)
|
||||
@ApiModelProperty(value = "yuanbiPrice")
|
||||
private BigDecimal yuanbiPrice;
|
||||
/**yuanbiTotal*/
|
||||
@Excel(name = "yuanbiTotal", width = 15)
|
||||
@ApiModelProperty(value = "yuanbiTotal")
|
||||
private BigDecimal yuanbiTotal;
|
||||
/**benbiPrice*/
|
||||
@Excel(name = "benbiPrice", width = 15)
|
||||
@ApiModelProperty(value = "benbiPrice")
|
||||
private BigDecimal benbiPrice;
|
||||
/**benbiTotal*/
|
||||
@Excel(name = "benbiTotal", width = 15)
|
||||
@ApiModelProperty(value = "benbiTotal")
|
||||
private BigDecimal benbiTotal;
|
||||
/**maktx*/
|
||||
@Excel(name = "maktx", width = 15)
|
||||
@ApiModelProperty(value = "maktx")
|
||||
private String maktx;
|
||||
/**fkart*/
|
||||
@Excel(name = "fkart", width = 15)
|
||||
@ApiModelProperty(value = "fkart")
|
||||
private String fkart;
|
||||
}
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_material
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_material")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_material对象", description="app_scene_cost_material")
|
||||
public class AppSceneCostMaterial implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**工厂*/
|
||||
@Excel(name = "工厂", width = 15)
|
||||
@ApiModelProperty(value = "工厂")
|
||||
private String factory;
|
||||
/**物料号*/
|
||||
@Excel(name = "物料号", width = 15)
|
||||
@ApiModelProperty(value = "物料号")
|
||||
private String materialNumber;
|
||||
/**materialType*/
|
||||
@Excel(name = "materialType", width = 15)
|
||||
@ApiModelProperty(value = "materialType")
|
||||
private String materialType;
|
||||
/**productCategory*/
|
||||
@Excel(name = "productCategory", width = 15)
|
||||
@ApiModelProperty(value = "productCategory")
|
||||
private String productCategory;
|
||||
/**物料名称*/
|
||||
@Excel(name = "物料名称", width = 15)
|
||||
@ApiModelProperty(value = "物料名称")
|
||||
private String productName;
|
||||
/**norms*/
|
||||
@Excel(name = "norms", width = 15)
|
||||
@ApiModelProperty(value = "norms")
|
||||
private String norms;
|
||||
/**生产类型*/
|
||||
@Excel(name = "生产类型", width = 15)
|
||||
@ApiModelProperty(value = "生产类型")
|
||||
private String manufacturingType;
|
||||
/**inventoryUnit*/
|
||||
@Excel(name = "inventoryUnit", width = 15)
|
||||
@ApiModelProperty(value = "inventoryUnit")
|
||||
private String inventoryUnit;
|
||||
/**purchasingUnit*/
|
||||
@Excel(name = "purchasingUnit", width = 15)
|
||||
@ApiModelProperty(value = "purchasingUnit")
|
||||
private String purchasingUnit;
|
||||
/**老物料组*/
|
||||
@Excel(name = "老物料组", width = 15)
|
||||
@ApiModelProperty(value = "老物料组")
|
||||
private String oldMaterialGroup;
|
||||
/**standardCost*/
|
||||
@Excel(name = "standardCost", width = 15)
|
||||
@ApiModelProperty(value = "standardCost")
|
||||
private String standardCost;
|
||||
/**abcLevel*/
|
||||
@Excel(name = "abcLevel", width = 15)
|
||||
@ApiModelProperty(value = "abcLevel")
|
||||
private String abcLevel;
|
||||
/**effectiveState*/
|
||||
@Excel(name = "effectiveState", width = 15)
|
||||
@ApiModelProperty(value = "effectiveState")
|
||||
private String effectiveState;
|
||||
/**profitCenter*/
|
||||
@Excel(name = "profitCenter", width = 15)
|
||||
@ApiModelProperty(value = "profitCenter")
|
||||
private String profitCenter;
|
||||
/**iswbs*/
|
||||
@Excel(name = "iswbs", width = 15)
|
||||
@ApiModelProperty(value = "iswbs")
|
||||
private String iswbs;
|
||||
/**图号*/
|
||||
@Excel(name = "图号", width = 15)
|
||||
@ApiModelProperty(value = "图号")
|
||||
private String graphNumber;
|
||||
/**mtbez*/
|
||||
@Excel(name = "mtbez", width = 15)
|
||||
@ApiModelProperty(value = "mtbez")
|
||||
private String mtbez;
|
||||
/**wgbez*/
|
||||
@Excel(name = "wgbez", width = 15)
|
||||
@ApiModelProperty(value = "wgbez")
|
||||
private String wgbez;
|
||||
/**sobsl*/
|
||||
@Excel(name = "sobsl", width = 15)
|
||||
@ApiModelProperty(value = "sobsl")
|
||||
private String sobsl;
|
||||
}
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_aufnr
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_mining_aufnr")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_mining_aufnr对象", description="app_scene_cost_mining_aufnr")
|
||||
public class AppSceneCostMiningAufnr implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
/**resultid*/
|
||||
@Excel(name = "resultid", width = 15)
|
||||
@ApiModelProperty(value = "resultid")
|
||||
private Integer resultid;
|
||||
/**matnr*/
|
||||
@Excel(name = "matnr", width = 15)
|
||||
@ApiModelProperty(value = "matnr")
|
||||
private String matnr;
|
||||
/**aufnr*/
|
||||
@Excel(name = "aufnr", width = 15)
|
||||
@ApiModelProperty(value = "aufnr")
|
||||
private String aufnr;
|
||||
/**costcenter*/
|
||||
@Excel(name = "costcenter", width = 15)
|
||||
@ApiModelProperty(value = "costcenter")
|
||||
private String costcenter;
|
||||
/**budat*/
|
||||
@Excel(name = "budat", width = 15)
|
||||
@ApiModelProperty(value = "budat")
|
||||
private String budat;
|
||||
/**version*/
|
||||
@Excel(name = "version", width = 15)
|
||||
@ApiModelProperty(value = "version")
|
||||
private String version;
|
||||
/**laborratio*/
|
||||
@Excel(name = "laborratio", width = 15)
|
||||
@ApiModelProperty(value = "laborratio")
|
||||
private BigDecimal laborratio;
|
||||
/**productratio*/
|
||||
@Excel(name = "productratio", width = 15)
|
||||
@ApiModelProperty(value = "productratio")
|
||||
private BigDecimal productratio;
|
||||
/**labordiff*/
|
||||
@Excel(name = "labordiff", width = 15)
|
||||
@ApiModelProperty(value = "labordiff")
|
||||
private BigDecimal labordiff;
|
||||
/**productdiff*/
|
||||
@Excel(name = "productdiff", width = 15)
|
||||
@ApiModelProperty(value = "productdiff")
|
||||
private BigDecimal productdiff;
|
||||
/**jsondata*/
|
||||
@Excel(name = "jsondata", width = 15)
|
||||
@ApiModelProperty(value = "jsondata")
|
||||
private String jsondata;
|
||||
}
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_diff
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_mining_diff")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_mining_diff对象", description="app_scene_cost_mining_diff")
|
||||
public class AppSceneCostMiningDiff implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
/**resultid*/
|
||||
@Excel(name = "resultid", width = 15)
|
||||
@ApiModelProperty(value = "resultid")
|
||||
private Integer resultid;
|
||||
/**type*/
|
||||
@Excel(name = "type", width = 15)
|
||||
@ApiModelProperty(value = "type")
|
||||
private String type;
|
||||
/**reason*/
|
||||
@Excel(name = "reason", width = 15)
|
||||
@ApiModelProperty(value = "reason")
|
||||
private String reason;
|
||||
/**code*/
|
||||
@Excel(name = "code", width = 15)
|
||||
@ApiModelProperty(value = "code")
|
||||
private String code;
|
||||
/**value*/
|
||||
@Excel(name = "value", width = 15)
|
||||
@ApiModelProperty(value = "value")
|
||||
private Double value;
|
||||
}
|
||||
+175
@@ -0,0 +1,175 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_labor
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-11-05
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_mining_labor")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_mining_labor对象", description="app_scene_cost_mining_labor")
|
||||
public class AppSceneCostMiningLabor implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
/**resultid*/
|
||||
@Excel(name = "resultid", width = 15)
|
||||
@ApiModelProperty(value = "resultid")
|
||||
private Integer resultid;
|
||||
/**matnr*/
|
||||
@Excel(name = "matnr", width = 15)
|
||||
@ApiModelProperty(value = "matnr")
|
||||
private String matnr;
|
||||
/**maktx*/
|
||||
@Excel(name = "maktx", width = 15)
|
||||
@ApiModelProperty(value = "maktx")
|
||||
private String maktx;
|
||||
/**menge*/
|
||||
@Excel(name = "menge", width = 15)
|
||||
@ApiModelProperty(value = "menge")
|
||||
private BigDecimal menge;
|
||||
/**rgRealUse*/
|
||||
@Excel(name = "rgRealUse", width = 15)
|
||||
@ApiModelProperty(value = "rgRealUse")
|
||||
private BigDecimal rgRealUse;
|
||||
/**rgRealCost*/
|
||||
@Excel(name = "rgRealCost", width = 15)
|
||||
@ApiModelProperty(value = "rgRealCost")
|
||||
private BigDecimal rgRealCost;
|
||||
/**rgStdUse*/
|
||||
@Excel(name = "rgStdUse", width = 15)
|
||||
@ApiModelProperty(value = "rgStdUse")
|
||||
private BigDecimal rgStdUse;
|
||||
/**rgStdCost*/
|
||||
@Excel(name = "rgStdCost", width = 15)
|
||||
@ApiModelProperty(value = "rgStdCost")
|
||||
private BigDecimal rgStdCost;
|
||||
/**rgUseDiff*/
|
||||
@Excel(name = "rgUseDiff", width = 15)
|
||||
@ApiModelProperty(value = "rgUseDiff")
|
||||
private BigDecimal rgUseDiff;
|
||||
/**rgCostDiff*/
|
||||
@Excel(name = "rgCostDiff", width = 15)
|
||||
@ApiModelProperty(value = "rgCostDiff")
|
||||
private BigDecimal rgCostDiff;
|
||||
/**zjRealUse*/
|
||||
@Excel(name = "zjRealUse", width = 15)
|
||||
@ApiModelProperty(value = "zjRealUse")
|
||||
private BigDecimal zjRealUse;
|
||||
/**zjRealCost*/
|
||||
@Excel(name = "zjRealCost", width = 15)
|
||||
@ApiModelProperty(value = "zjRealCost")
|
||||
private BigDecimal zjRealCost;
|
||||
/**zjStdUse*/
|
||||
@Excel(name = "zjStdUse", width = 15)
|
||||
@ApiModelProperty(value = "zjStdUse")
|
||||
private BigDecimal zjStdUse;
|
||||
/**zjStdCost*/
|
||||
@Excel(name = "zjStdCost", width = 15)
|
||||
@ApiModelProperty(value = "zjStdCost")
|
||||
private BigDecimal zjStdCost;
|
||||
/**zjUseDiff*/
|
||||
@Excel(name = "zjUseDiff", width = 15)
|
||||
@ApiModelProperty(value = "zjUseDiff")
|
||||
private BigDecimal zjUseDiff;
|
||||
/**zjCostDiff*/
|
||||
@Excel(name = "zjCostDiff", width = 15)
|
||||
@ApiModelProperty(value = "zjCostDiff")
|
||||
private BigDecimal zjCostDiff;
|
||||
/**rdRealUse*/
|
||||
@Excel(name = "rdRealUse", width = 15)
|
||||
@ApiModelProperty(value = "rdRealUse")
|
||||
private BigDecimal rdRealUse;
|
||||
/**rdRealCost*/
|
||||
@Excel(name = "rdRealCost", width = 15)
|
||||
@ApiModelProperty(value = "rdRealCost")
|
||||
private BigDecimal rdRealCost;
|
||||
/**rdStdUse*/
|
||||
@Excel(name = "rdStdUse", width = 15)
|
||||
@ApiModelProperty(value = "rdStdUse")
|
||||
private BigDecimal rdStdUse;
|
||||
/**rdStdCost*/
|
||||
@Excel(name = "rdStdCost", width = 15)
|
||||
@ApiModelProperty(value = "rdStdCost")
|
||||
private BigDecimal rdStdCost;
|
||||
/**rdUseDiff*/
|
||||
@Excel(name = "rdUseDiff", width = 15)
|
||||
@ApiModelProperty(value = "rdUseDiff")
|
||||
private BigDecimal rdUseDiff;
|
||||
/**rdCostDiff*/
|
||||
@Excel(name = "rdCostDiff", width = 15)
|
||||
@ApiModelProperty(value = "rdCostDiff")
|
||||
private BigDecimal rdCostDiff;
|
||||
/**flRealUse*/
|
||||
@Excel(name = "flRealUse", width = 15)
|
||||
@ApiModelProperty(value = "flRealUse")
|
||||
private BigDecimal flRealUse;
|
||||
/**flRealCost*/
|
||||
@Excel(name = "flRealCost", width = 15)
|
||||
@ApiModelProperty(value = "flRealCost")
|
||||
private BigDecimal flRealCost;
|
||||
/**flStdUse*/
|
||||
@Excel(name = "flStdUse", width = 15)
|
||||
@ApiModelProperty(value = "flStdUse")
|
||||
private BigDecimal flStdUse;
|
||||
/**flStdCost*/
|
||||
@Excel(name = "flStdCost", width = 15)
|
||||
@ApiModelProperty(value = "flStdCost")
|
||||
private BigDecimal flStdCost;
|
||||
/**flUseDiff*/
|
||||
@Excel(name = "flUseDiff", width = 15)
|
||||
@ApiModelProperty(value = "flUseDiff")
|
||||
private BigDecimal flUseDiff;
|
||||
/**flCostDiff*/
|
||||
@Excel(name = "flCostDiff", width = 15)
|
||||
@ApiModelProperty(value = "flCostDiff")
|
||||
private BigDecimal flCostDiff;
|
||||
/**qtRealUse*/
|
||||
@Excel(name = "qtRealUse", width = 15)
|
||||
@ApiModelProperty(value = "qtRealUse")
|
||||
private BigDecimal qtRealUse;
|
||||
/**qtRealCost*/
|
||||
@Excel(name = "qtRealCost", width = 15)
|
||||
@ApiModelProperty(value = "qtRealCost")
|
||||
private BigDecimal qtRealCost;
|
||||
/**qtStdUse*/
|
||||
@Excel(name = "qtStdUse", width = 15)
|
||||
@ApiModelProperty(value = "qtStdUse")
|
||||
private BigDecimal qtStdUse;
|
||||
/**qtStdCost*/
|
||||
@Excel(name = "qtStdCost", width = 15)
|
||||
@ApiModelProperty(value = "qtStdCost")
|
||||
private BigDecimal qtStdCost;
|
||||
/**qtUseDiff*/
|
||||
@Excel(name = "qtUseDiff", width = 15)
|
||||
@ApiModelProperty(value = "qtUseDiff")
|
||||
private BigDecimal qtUseDiff;
|
||||
/**qtCostDiff*/
|
||||
@Excel(name = "qtCostDiff", width = 15)
|
||||
@ApiModelProperty(value = "qtCostDiff")
|
||||
private BigDecimal qtCostDiff;
|
||||
}
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_material
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_mining_material")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_mining_material对象", description="app_scene_cost_mining_material")
|
||||
public class AppSceneCostMiningMaterial implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
/**resultid*/
|
||||
@Excel(name = "resultid", width = 15)
|
||||
@ApiModelProperty(value = "resultid")
|
||||
private Integer resultid;
|
||||
/**matnr*/
|
||||
@Excel(name = "matnr", width = 15)
|
||||
@ApiModelProperty(value = "matnr")
|
||||
private String matnr;
|
||||
/**aufnr*/
|
||||
@Excel(name = "aufnr", width = 15)
|
||||
@ApiModelProperty(value = "aufnr")
|
||||
private String aufnr;
|
||||
/**version*/
|
||||
@Excel(name = "version", width = 15)
|
||||
@ApiModelProperty(value = "version")
|
||||
private String version;
|
||||
/**totaldiff*/
|
||||
@Excel(name = "totaldiff", width = 15)
|
||||
@ApiModelProperty(value = "totaldiff")
|
||||
private BigDecimal totaldiff;
|
||||
/**ratio*/
|
||||
@Excel(name = "ratio", width = 15)
|
||||
@ApiModelProperty(value = "ratio")
|
||||
private BigDecimal ratio;
|
||||
/**jsondata*/
|
||||
@Excel(name = "jsondata", width = 15)
|
||||
@ApiModelProperty(value = "jsondata")
|
||||
private String jsondata;
|
||||
}
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_reason
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_mining_reason")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_mining_reason对象", description="app_scene_cost_mining_reason")
|
||||
public class AppSceneCostMiningReason implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**code*/
|
||||
@Excel(name = "code", width = 15)
|
||||
@ApiModelProperty(value = "code")
|
||||
private String code;
|
||||
/**reason*/
|
||||
@Excel(name = "reason", width = 15)
|
||||
@ApiModelProperty(value = "reason")
|
||||
private String reason;
|
||||
/**level*/
|
||||
@Excel(name = "level", width = 15)
|
||||
@ApiModelProperty(value = "level")
|
||||
private Integer level;
|
||||
/**pcode*/
|
||||
@Excel(name = "pcode", width = 15)
|
||||
@ApiModelProperty(value = "pcode")
|
||||
private String pcode;
|
||||
}
|
||||
+139
@@ -0,0 +1,139 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_result
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_mining_result")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_mining_result对象", description="app_scene_cost_mining_result")
|
||||
public class AppSceneCostMiningResult implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
/**matnr*/
|
||||
@Excel(name = "matnr", width = 15)
|
||||
@ApiModelProperty(value = "matnr")
|
||||
private String matnr;
|
||||
/**aufnr*/
|
||||
@Excel(name = "aufnr", width = 15)
|
||||
@ApiModelProperty(value = "aufnr")
|
||||
private String aufnr;
|
||||
/**version*/
|
||||
@Excel(name = "version", width = 15)
|
||||
@ApiModelProperty(value = "version")
|
||||
private String version;
|
||||
/**wbs*/
|
||||
@Excel(name = "wbs", width = 15)
|
||||
@ApiModelProperty(value = "wbs")
|
||||
private String wbs;
|
||||
/**werks*/
|
||||
@Excel(name = "werks", width = 15)
|
||||
@ApiModelProperty(value = "werks")
|
||||
private String werks;
|
||||
/**totalreal*/
|
||||
@Excel(name = "totalreal", width = 15)
|
||||
@ApiModelProperty(value = "totalreal")
|
||||
private Double totalreal;
|
||||
/**totalstd*/
|
||||
@Excel(name = "totalstd", width = 15)
|
||||
@ApiModelProperty(value = "totalstd")
|
||||
private Double totalstd;
|
||||
/**ymonth*/
|
||||
@Excel(name = "ymonth", width = 15)
|
||||
@ApiModelProperty(value = "ymonth")
|
||||
private String ymonth;
|
||||
/**lgort*/
|
||||
@Excel(name = "lgort", width = 15)
|
||||
@ApiModelProperty(value = "lgort")
|
||||
private String lgort;
|
||||
/**ppsmng*/
|
||||
//@Excel(name = "ppsmng", width = 15)
|
||||
//@ApiModelProperty(value = "ppsmng")
|
||||
//private Double ppsmng;
|
||||
/**realmaterial*/
|
||||
@Excel(name = "realmaterial", width = 15)
|
||||
@ApiModelProperty(value = "realmaterial")
|
||||
private Double realmaterial;
|
||||
/**stdmaterial*/
|
||||
@Excel(name = "stdmaterial", width = 15)
|
||||
@ApiModelProperty(value = "stdmaterial")
|
||||
private Double stdmaterial;
|
||||
/**reallabor*/
|
||||
@Excel(name = "reallabor", width = 15)
|
||||
@ApiModelProperty(value = "reallabor")
|
||||
private Double reallabor;
|
||||
/**stdlabor*/
|
||||
@Excel(name = "stdlabor", width = 15)
|
||||
@ApiModelProperty(value = "stdlabor")
|
||||
private Double stdlabor;
|
||||
/**realproductcost*/
|
||||
@Excel(name = "realproductcost", width = 15)
|
||||
@ApiModelProperty(value = "realproductcost")
|
||||
private Double realproductcost;
|
||||
/**stdproductcost*/
|
||||
@Excel(name = "stdproductcost", width = 15)
|
||||
@ApiModelProperty(value = "stdproductcost")
|
||||
private Double stdproductcost;
|
||||
/**status*/
|
||||
@Excel(name = "status", width = 15)
|
||||
@ApiModelProperty(value = "status")
|
||||
private String status;
|
||||
/**err*/
|
||||
@Excel(name = "err", width = 15)
|
||||
@ApiModelProperty(value = "err")
|
||||
private String err;
|
||||
/**startdate*/
|
||||
@Excel(name = "startdate", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "startdate")
|
||||
private Date startdate;
|
||||
/**enddate*/
|
||||
@Excel(name = "enddate", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "enddate")
|
||||
private Date enddate;
|
||||
/**batchymonth*/
|
||||
@Excel(name = "batchymonth", width = 15)
|
||||
@ApiModelProperty(value = "batchymonth")
|
||||
private String batchymonth;
|
||||
/**percent*/
|
||||
@Excel(name = "percent", width = 15)
|
||||
@ApiModelProperty(value = "percent")
|
||||
private Double percent;
|
||||
/**projectcate*/
|
||||
@Excel(name = "projectcate", width = 15)
|
||||
@ApiModelProperty(value = "projectcate")
|
||||
private String projectcate;
|
||||
/**hastransfer*/
|
||||
@Excel(name = "hastransfer", width = 15)
|
||||
@ApiModelProperty(value = "hastransfer")
|
||||
private Integer hastransfer;
|
||||
}
|
||||
+88
@@ -0,0 +1,88 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.*;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_model
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-09
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName("app_scene_cost_model")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "app_scene_cost_model对象", description = "app_scene_cost_model")
|
||||
public class AppSceneCostModel implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Integer id;
|
||||
/**
|
||||
* 模型名称
|
||||
*/
|
||||
@Excel(name = "模型名称", width = 15)
|
||||
@ApiModelProperty(value = "模型名称")
|
||||
private String modelName;
|
||||
/**
|
||||
* 模型类型(标准成本、成本挖掘)
|
||||
*/
|
||||
@Excel(name = "模型类型(标准成本、成本挖掘)", width = 15)
|
||||
@ApiModelProperty(value = "模型类型(标准成本、成本挖掘)")
|
||||
private String modelType;
|
||||
/**
|
||||
* 模型定义id
|
||||
*/
|
||||
@Excel(name = "模型定义id", width = 15)
|
||||
@ApiModelProperty(value = "模型定义id")
|
||||
private Integer flowDefinitionId;
|
||||
/**
|
||||
* 状态(草稿、已发布、已作废)
|
||||
*/
|
||||
@Excel(name = "状态(草稿、已发布、已作废)", width = 15)
|
||||
@ApiModelProperty(value = "状态(草稿、已发布、已作废)")
|
||||
private String status;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createBy;
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private Date updateTime;
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private String updateBy;
|
||||
}
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_part_missing_info
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-08-02
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@TableName("app_scene_cost_part_missing_info")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "app_scene_cost_part_missing_info对象", description = "app_scene_cost_part_missing_info")
|
||||
public class AppSceneCostPartMissingInfo implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "id")
|
||||
private String id;
|
||||
/**
|
||||
* 物料号
|
||||
*/
|
||||
@Excel(name = "物料号", width = 15)
|
||||
@ApiModelProperty(value = "物料号")
|
||||
private String materialNumber;
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
@Excel(name = "版本号", width = 15)
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private String versionNumber;
|
||||
/**
|
||||
* 缺失信息
|
||||
*/
|
||||
@Excel(name = "缺失信息", width = 15)
|
||||
@ApiModelProperty(value = "缺失信息")
|
||||
private String missingInfo;
|
||||
/**
|
||||
* 标准成本表主键id
|
||||
*/
|
||||
@Excel(name = "标准成本表主键id", width = 15)
|
||||
@ApiModelProperty(value = "标准成本表主键id")
|
||||
private String costStandardId;
|
||||
}
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_product_process_maintenance
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-08
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_product_process_maintenance")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_product_process_maintenance对象", description="app_scene_cost_product_process_maintenance")
|
||||
public class AppSceneCostProductProcessMaintenance implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**工厂*/
|
||||
@Excel(name = "工厂", width = 15)
|
||||
@ApiModelProperty(value = "工厂")
|
||||
private String factory;
|
||||
/**物料号*/
|
||||
@Excel(name = "物料号", width = 15)
|
||||
@ApiModelProperty(value = "物料号")
|
||||
private String mainPartNumber;
|
||||
/**工序编号*/
|
||||
@Excel(name = "工序编号", width = 15)
|
||||
@ApiModelProperty(value = "工序编号")
|
||||
private String processRouteNumber;
|
||||
/**序号*/
|
||||
@Excel(name = "序号", width = 15)
|
||||
@ApiModelProperty(value = "序号")
|
||||
private String serialNumber;
|
||||
/**工序名称*/
|
||||
@Excel(name = "工序名称", width = 15)
|
||||
@ApiModelProperty(value = "工序名称")
|
||||
private String processName;
|
||||
/**成本中心*/
|
||||
@Excel(name = "成本中心", width = 15)
|
||||
@ApiModelProperty(value = "成本中心")
|
||||
private String costCenterCode;
|
||||
/**准备工时*/
|
||||
@Excel(name = "准备工时", width = 15)
|
||||
@ApiModelProperty(value = "准备工时")
|
||||
private BigDecimal prepareHour;
|
||||
/**人工工时*/
|
||||
@Excel(name = "人工工时", width = 15)
|
||||
@ApiModelProperty(value = "人工工时")
|
||||
private BigDecimal laborHour;
|
||||
/**设备工时*/
|
||||
@Excel(name = "设备工时", width = 15)
|
||||
@ApiModelProperty(value = "设备工时")
|
||||
private BigDecimal machineHour;
|
||||
/**燃动工时*/
|
||||
@Excel(name = "燃动工时", width = 15)
|
||||
@ApiModelProperty(value = "燃动工时")
|
||||
private BigDecimal burningHour;
|
||||
/**辅料工时*/
|
||||
@Excel(name = "辅料工时", width = 15)
|
||||
@ApiModelProperty(value = "辅料工时")
|
||||
private BigDecimal auxiliaryHour;
|
||||
/**其他工时*/
|
||||
@Excel(name = "其他工时", width = 15)
|
||||
@ApiModelProperty(value = "其他工时")
|
||||
private BigDecimal otherHour;
|
||||
/**hourType*/
|
||||
@Excel(name = "hourType", width = 15)
|
||||
@ApiModelProperty(value = "hourType")
|
||||
private String hourType;
|
||||
/**版本号*/
|
||||
@Excel(name = "版本号", width = 15)
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private String versionNumber;
|
||||
/**guardian*/
|
||||
@Excel(name = "guardian", width = 15)
|
||||
@ApiModelProperty(value = "guardian")
|
||||
private String guardian;
|
||||
/**maintenanceTime*/
|
||||
@Excel(name = "maintenanceTime", width = 15)
|
||||
@ApiModelProperty(value = "maintenanceTime")
|
||||
private String maintenanceTime;
|
||||
/**reserve1*/
|
||||
@Excel(name = "reserve1", width = 15)
|
||||
@ApiModelProperty(value = "reserve1")
|
||||
private String reserveOne;
|
||||
/**reserve2*/
|
||||
@Excel(name = "reserve2", width = 15)
|
||||
@ApiModelProperty(value = "reserve2")
|
||||
private BigDecimal reserveTwo;
|
||||
/**jobCode*/
|
||||
@Excel(name = "jobCode", width = 15)
|
||||
@ApiModelProperty(value = "jobCode")
|
||||
private String jobCode;
|
||||
}
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_purchase_evaluate
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-08-02
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@TableName("app_scene_cost_purchase_evaluate")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "app_scene_cost_purchase_evaluate对象", description = "app_scene_cost_purchase_evaluate")
|
||||
public class AppSceneCostPurchaseEvaluate implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Integer id;
|
||||
/**
|
||||
* 合同编号
|
||||
*/
|
||||
@Excel(name = "合同编号", width = 15)
|
||||
@ApiModelProperty(value = "合同编号")
|
||||
private String contractNo;
|
||||
/**
|
||||
* 估价
|
||||
*/
|
||||
@Excel(name = "估价", width = 15)
|
||||
@ApiModelProperty(value = "估价")
|
||||
private BigDecimal evaluate;
|
||||
/**
|
||||
* 合同名称
|
||||
*/
|
||||
@Excel(name = "合同名称", width = 15)
|
||||
@ApiModelProperty(value = "合同名称")
|
||||
private String contractName;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private Integer createBy;
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private Date updateTime;
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private Integer updateBy;
|
||||
}
|
||||
+94
@@ -0,0 +1,94 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_purchase_record
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-08
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_purchase_record")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "app_scene_cost_purchase_record对象", description = "app_scene_cost_purchase_record")
|
||||
public class AppSceneCostPurchaseRecord implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 工厂
|
||||
*/
|
||||
@Excel(name = "工厂", width = 15)
|
||||
@ApiModelProperty(value = "工厂")
|
||||
private String werks;
|
||||
/**
|
||||
* 组织
|
||||
*/
|
||||
@Excel(name = "组织", width = 15)
|
||||
@ApiModelProperty(value = "组织")
|
||||
private String ekorg;
|
||||
/**
|
||||
* 物料号
|
||||
*/
|
||||
@Excel(name = "物料号", width = 15)
|
||||
@ApiModelProperty(value = "物料号")
|
||||
private String infnr;
|
||||
/**
|
||||
* 供应商代码
|
||||
*/
|
||||
@Excel(name = "供应商代码", width = 15)
|
||||
@ApiModelProperty(value = "供应商代码")
|
||||
private String lifnr;
|
||||
/**
|
||||
* esokz
|
||||
*/
|
||||
@Excel(name = "esokz", width = 15)
|
||||
@ApiModelProperty(value = "esokz")
|
||||
private String esokz;
|
||||
/**
|
||||
* 单价
|
||||
*/
|
||||
@Excel(name = "单价", width = 15)
|
||||
@ApiModelProperty(value = "单价")
|
||||
private BigDecimal netpr;
|
||||
/**
|
||||
* 币种
|
||||
*/
|
||||
@Excel(name = "币种", width = 15)
|
||||
@ApiModelProperty(value = "币种")
|
||||
private String waers;
|
||||
/**
|
||||
* 有效截止时间
|
||||
*/
|
||||
@Excel(name = "有效截止时间", width = 15)
|
||||
@ApiModelProperty(value = "有效截止时间")
|
||||
private String prdat;
|
||||
/**
|
||||
* 有效开始时间
|
||||
*/
|
||||
@Excel(name = "有效开始时间", width = 15)
|
||||
@ApiModelProperty(value = "有效开始时间")
|
||||
private String erdat;
|
||||
/**
|
||||
* ukurs
|
||||
*/
|
||||
@Excel(name = "ukurs", width = 15)
|
||||
@ApiModelProperty(value = "ukurs")
|
||||
private BigDecimal ukurs;
|
||||
/**
|
||||
* 人名币单价
|
||||
*/
|
||||
@Excel(name = "人名币单价", width = 15)
|
||||
@ApiModelProperty(value = "人名币单价")
|
||||
private BigDecimal cnyPrice;
|
||||
}
|
||||
+231
@@ -0,0 +1,231 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_result_value
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-07-25
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@TableName("app_scene_cost_result_value")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "app_scene_cost_result_value对象", description = "app_scene_cost_result_value")
|
||||
public class AppSceneCostResultValue implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Integer id;
|
||||
/**
|
||||
* 所属最上级物料号
|
||||
*/
|
||||
@Excel(name = "所属最上级物料号", width = 15)
|
||||
@ApiModelProperty(value = "所属最上级物料号")
|
||||
private String belongTopMaterialNo;
|
||||
/**
|
||||
* 物料编号
|
||||
*/
|
||||
@Excel(name = "物料编号", width = 15)
|
||||
@ApiModelProperty(value = "物料编号")
|
||||
private String marterialNo;
|
||||
/**
|
||||
* 父类物料编号
|
||||
*/
|
||||
@Excel(name = "父类物料编号", width = 15)
|
||||
@ApiModelProperty(value = "父类物料编号")
|
||||
private String parentMarterialNo;
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
@Excel(name = "数量", width = 15)
|
||||
@ApiModelProperty(value = "数量")
|
||||
private BigDecimal num;
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
@Excel(name = "单位", width = 15)
|
||||
@ApiModelProperty(value = "单位")
|
||||
private String unit;
|
||||
/**
|
||||
* 任务类型
|
||||
*/
|
||||
@Excel(name = "任务类型", width = 15)
|
||||
@ApiModelProperty(value = "任务类型")
|
||||
private String taskType;
|
||||
/**
|
||||
* 任务代码
|
||||
*/
|
||||
@Excel(name = "任务代码", width = 15)
|
||||
@ApiModelProperty(value = "任务代码")
|
||||
private String taskCode;
|
||||
/**
|
||||
* 流程id
|
||||
*/
|
||||
@Excel(name = "流程id", width = 15)
|
||||
@ApiModelProperty(value = "流程id")
|
||||
private Integer flowInstanceId;
|
||||
/**
|
||||
* 本阶成本
|
||||
*/
|
||||
@Excel(name = "本阶成本", width = 15)
|
||||
@ApiModelProperty(value = "本阶成本")
|
||||
private String countValue;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private Integer createBy;
|
||||
/**
|
||||
* 总计成本
|
||||
*/
|
||||
@Excel(name = "总计成本", width = 15)
|
||||
@ApiModelProperty(value = "总计成本")
|
||||
private String totalValue;
|
||||
/**
|
||||
* 成本类别
|
||||
*/
|
||||
@Excel(name = "成本类别", width = 15)
|
||||
@ApiModelProperty(value = "成本类别")
|
||||
private String costType;
|
||||
/**
|
||||
* 成本明细
|
||||
*/
|
||||
@Excel(name = "成本明细", width = 15)
|
||||
@ApiModelProperty(value = "成本明细")
|
||||
private String costDetail;
|
||||
/**
|
||||
* 单价或费率
|
||||
*/
|
||||
@Excel(name = "单价或费率", width = 15)
|
||||
@ApiModelProperty(value = "单价或费率")
|
||||
private BigDecimal priceOrRate;
|
||||
/**
|
||||
* 工时
|
||||
*/
|
||||
@Excel(name = "工时", width = 15)
|
||||
@ApiModelProperty(value = "工时")
|
||||
private BigDecimal hour;
|
||||
/**
|
||||
* 工时
|
||||
*/
|
||||
@Excel(name = "BOM深度", width = 15)
|
||||
@ApiModelProperty(value = "BOM深度")
|
||||
private int depth;
|
||||
/**
|
||||
* 工时
|
||||
*/
|
||||
@Excel(name = "父物料数量", width = 15)
|
||||
@ApiModelProperty(value = "父物料数量")
|
||||
private BigDecimal pnum;
|
||||
/**
|
||||
* 工时
|
||||
*/
|
||||
@Excel(name = "基于最上层物料的用量", width = 15)
|
||||
@ApiModelProperty(value = "基于最上层物料的用量")
|
||||
private BigDecimal topnum;
|
||||
/**
|
||||
* 工时
|
||||
*/
|
||||
@Excel(name = "价格类型", width = 15)
|
||||
@ApiModelProperty(value = "价格类型")
|
||||
private String priceType;
|
||||
/**
|
||||
* 工时
|
||||
*/
|
||||
@Excel(name = "制造类型", width = 15)
|
||||
@ApiModelProperty(value = "制造类型")
|
||||
private String manuType;
|
||||
/**
|
||||
* 工时
|
||||
*/
|
||||
@Excel(name = "材料", width = 15)
|
||||
@ApiModelProperty(value = "材料")
|
||||
private BigDecimal material;
|
||||
/**
|
||||
* 工时
|
||||
*/
|
||||
@Excel(name = "人工", width = 15)
|
||||
@ApiModelProperty(value = "人工")
|
||||
private BigDecimal labor;
|
||||
/**
|
||||
* 工时
|
||||
*/
|
||||
@Excel(name = "设备", width = 15)
|
||||
@ApiModelProperty(value = "设备")
|
||||
private BigDecimal equip;
|
||||
/**
|
||||
* 工时
|
||||
*/
|
||||
@Excel(name = "燃动", width = 15)
|
||||
@ApiModelProperty(value = "燃动")
|
||||
private BigDecimal fuel;
|
||||
/**
|
||||
* 工时
|
||||
*/
|
||||
@Excel(name = "辅料", width = 15)
|
||||
@ApiModelProperty(value = "辅料")
|
||||
private BigDecimal auxi;
|
||||
/**
|
||||
* 工时
|
||||
*/
|
||||
@Excel(name = "其他", width = 15)
|
||||
@ApiModelProperty(value = "其他")
|
||||
private BigDecimal other;
|
||||
|
||||
@Excel(name = "层级", width = 15)
|
||||
@ApiModelProperty(value = "层级")
|
||||
private String layer;
|
||||
|
||||
@Excel(name = "工厂", width = 15)
|
||||
@ApiModelProperty(value = "工厂")
|
||||
private String werks;
|
||||
|
||||
@Excel(name = "供应商", width = 15)
|
||||
@ApiModelProperty(value = "供应商")
|
||||
private String supplier;
|
||||
|
||||
@Excel(name = "供应商名称", width = 15)
|
||||
@ApiModelProperty(value = "供应商名称")
|
||||
private String supplierName;
|
||||
|
||||
@Excel(name = "临时合同估价", width = 15)
|
||||
@ApiModelProperty(value = "临时合同估价")
|
||||
private BigDecimal ekpoPrice;
|
||||
|
||||
@Excel(name = "最新开票价格", width = 15)
|
||||
@ApiModelProperty(value = "最新开票价格")
|
||||
private BigDecimal invoicePrice;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "父层级")
|
||||
private String player;
|
||||
}
|
||||
+159
@@ -0,0 +1,159 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_afru
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_sap_afru")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_sap_afru对象", description="app_scene_cost_sap_afru")
|
||||
public class AppSceneCostSapAfru implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**werks*/
|
||||
@Excel(name = "werks", width = 15)
|
||||
@ApiModelProperty(value = "werks")
|
||||
private String werks;
|
||||
/**aufnr*/
|
||||
@Excel(name = "aufnr", width = 15)
|
||||
@ApiModelProperty(value = "aufnr")
|
||||
private String aufnr;
|
||||
/**mandt*/
|
||||
@Excel(name = "mandt", width = 15)
|
||||
@ApiModelProperty(value = "mandt")
|
||||
private String mandt;
|
||||
/**projn*/
|
||||
@Excel(name = "projn", width = 15)
|
||||
@ApiModelProperty(value = "projn")
|
||||
private String projn;
|
||||
/**erdat*/
|
||||
@Excel(name = "erdat", width = 15)
|
||||
@ApiModelProperty(value = "erdat")
|
||||
private String erdat;
|
||||
/**gstrp*/
|
||||
@Excel(name = "gstrp", width = 15)
|
||||
@ApiModelProperty(value = "gstrp")
|
||||
private String gstrp;
|
||||
/**gltri*/
|
||||
@Excel(name = "gltri", width = 15)
|
||||
@ApiModelProperty(value = "gltri")
|
||||
private String gltri;
|
||||
/**plnbez*/
|
||||
@Excel(name = "plnbez", width = 15)
|
||||
@ApiModelProperty(value = "plnbez")
|
||||
private String plnbez;
|
||||
/**auart*/
|
||||
@Excel(name = "auart", width = 15)
|
||||
@ApiModelProperty(value = "auart")
|
||||
private String auart;
|
||||
/**txt*/
|
||||
@Excel(name = "txt", width = 15)
|
||||
@ApiModelProperty(value = "txt")
|
||||
private String txt;
|
||||
/**vornr*/
|
||||
@Excel(name = "vornr", width = 15)
|
||||
@ApiModelProperty(value = "vornr")
|
||||
private String vornr;
|
||||
/**aufpl*/
|
||||
@Excel(name = "aufpl", width = 15)
|
||||
@ApiModelProperty(value = "aufpl")
|
||||
private String aufpl;
|
||||
/**rueck*/
|
||||
@Excel(name = "rueck", width = 15)
|
||||
@ApiModelProperty(value = "rueck")
|
||||
private String rueck;
|
||||
/**ltxa1*/
|
||||
@Excel(name = "ltxa1", width = 15)
|
||||
@ApiModelProperty(value = "ltxa1")
|
||||
private String ltxa1;
|
||||
/**kostl*/
|
||||
@Excel(name = "kostl", width = 15)
|
||||
@ApiModelProperty(value = "kostl")
|
||||
private String kostl;
|
||||
/**budat*/
|
||||
@Excel(name = "budat", width = 15)
|
||||
@ApiModelProperty(value = "budat")
|
||||
private String budat;
|
||||
/**ism01*/
|
||||
@Excel(name = "ism01", width = 15)
|
||||
@ApiModelProperty(value = "ism01")
|
||||
private BigDecimal ism01;
|
||||
/**ism02*/
|
||||
@Excel(name = "ism02", width = 15)
|
||||
@ApiModelProperty(value = "ism02")
|
||||
private BigDecimal ism02;
|
||||
/**ism03*/
|
||||
@Excel(name = "ism03", width = 15)
|
||||
@ApiModelProperty(value = "ism03")
|
||||
private BigDecimal ism03;
|
||||
/**ism04*/
|
||||
@Excel(name = "ism04", width = 15)
|
||||
@ApiModelProperty(value = "ism04")
|
||||
private BigDecimal ism04;
|
||||
/**ism05*/
|
||||
@Excel(name = "ism05", width = 15)
|
||||
@ApiModelProperty(value = "ism05")
|
||||
private BigDecimal ism05;
|
||||
/**ism06*/
|
||||
@Excel(name = "ism06", width = 15)
|
||||
@ApiModelProperty(value = "ism06")
|
||||
private BigDecimal ism06;
|
||||
/**isdd*/
|
||||
@Excel(name = "isdd", width = 15)
|
||||
@ApiModelProperty(value = "isdd")
|
||||
private String isdd;
|
||||
/**isdz*/
|
||||
@Excel(name = "isdz", width = 15)
|
||||
@ApiModelProperty(value = "isdz")
|
||||
private String isdz;
|
||||
/**iedd*/
|
||||
@Excel(name = "iedd", width = 15)
|
||||
@ApiModelProperty(value = "iedd")
|
||||
private String iedd;
|
||||
/**iedz*/
|
||||
@Excel(name = "iedz", width = 15)
|
||||
@ApiModelProperty(value = "iedz")
|
||||
private String iedz;
|
||||
/**lmnga*/
|
||||
@Excel(name = "lmnga", width = 15)
|
||||
@ApiModelProperty(value = "lmnga")
|
||||
private BigDecimal lmnga;
|
||||
/**rmnga*/
|
||||
@Excel(name = "rmnga", width = 15)
|
||||
@ApiModelProperty(value = "rmnga")
|
||||
private BigDecimal rmnga;
|
||||
/**xmnga*/
|
||||
@Excel(name = "xmnga", width = 15)
|
||||
@ApiModelProperty(value = "xmnga")
|
||||
private BigDecimal xmnga;
|
||||
/**gamng*/
|
||||
@Excel(name = "gamng", width = 15)
|
||||
@ApiModelProperty(value = "gamng")
|
||||
private BigDecimal gamng;
|
||||
/**ym*/
|
||||
@Excel(name = "ym", width = 15)
|
||||
@ApiModelProperty(value = "ym")
|
||||
private String ym;
|
||||
}
|
||||
+115
@@ -0,0 +1,115 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_eine
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-21
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_sap_eine")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_sap_eine对象", description="app_scene_cost_sap_eine")
|
||||
public class AppSceneCostSapEine implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**客户端*/
|
||||
@Excel(name = "客户端", width = 15)
|
||||
@ApiModelProperty(value = "客户端")
|
||||
private String mandt;
|
||||
/**工厂*/
|
||||
@Excel(name = "工厂", width = 15)
|
||||
@ApiModelProperty(value = "工厂")
|
||||
private String werks;
|
||||
/**采购组织*/
|
||||
@Excel(name = "采购组织", width = 15)
|
||||
@ApiModelProperty(value = "采购组织")
|
||||
private String ekorg;
|
||||
/**采购信息记录分类*/
|
||||
@Excel(name = "采购信息记录分类", width = 15)
|
||||
@ApiModelProperty(value = "采购信息记录分类")
|
||||
private String esokz;
|
||||
/**采购信息记录中的净价*/
|
||||
@Excel(name = "采购信息记录中的净价", width = 15)
|
||||
@ApiModelProperty(value = "采购信息记录中的净价")
|
||||
private BigDecimal netpr;
|
||||
/**价格单位*/
|
||||
@Excel(name = "价格单位", width = 15)
|
||||
@ApiModelProperty(value = "价格单位")
|
||||
private BigDecimal peinh;
|
||||
/**货币码*/
|
||||
@Excel(name = "货币码", width = 15)
|
||||
@ApiModelProperty(value = "货币码")
|
||||
private String waers;
|
||||
/**价格有效至*/
|
||||
@Excel(name = "价格有效至", width = 15)
|
||||
@ApiModelProperty(value = "价格有效至")
|
||||
private String prdat;
|
||||
/**记录的创建日期*/
|
||||
@Excel(name = "记录的创建日期", width = 15)
|
||||
@ApiModelProperty(value = "记录的创建日期")
|
||||
private String erdat;
|
||||
/**采购信息: 组织数据标记为删除*/
|
||||
@Excel(name = "采购信息: 组织数据标记为删除", width = 15)
|
||||
@ApiModelProperty(value = "采购信息: 组织数据标记为删除")
|
||||
private String loekz;
|
||||
/**采购信息记录的编号*/
|
||||
@Excel(name = "采购信息记录的编号", width = 15)
|
||||
@ApiModelProperty(value = "采购信息记录的编号")
|
||||
private String infnr;
|
||||
/**单价*/
|
||||
@Excel(name = "单价", width = 15)
|
||||
@ApiModelProperty(value = "单价")
|
||||
private BigDecimal price;
|
||||
/**汇率*/
|
||||
@Excel(name = "汇率", width = 15)
|
||||
@ApiModelProperty(value = "汇率")
|
||||
private BigDecimal ukurs;
|
||||
/**人民币价格*/
|
||||
@Excel(name = "人民币价格", width = 15)
|
||||
@ApiModelProperty(value = "人民币价格")
|
||||
private BigDecimal cnyPrice;
|
||||
/**物料编号*/
|
||||
@Excel(name = "物料编号", width = 15)
|
||||
@ApiModelProperty(value = "物料编号")
|
||||
private String matnr;
|
||||
/**物料组*/
|
||||
@Excel(name = "物料组", width = 15)
|
||||
@ApiModelProperty(value = "物料组")
|
||||
private String matkl;
|
||||
/**采购类型*/
|
||||
@Excel(name = "采购类型", width = 15)
|
||||
@ApiModelProperty(value = "采购类型")
|
||||
private String beskz;
|
||||
/**特殊采购类*/
|
||||
@Excel(name = "特殊采购类", width = 15)
|
||||
@ApiModelProperty(value = "特殊采购类")
|
||||
private String sobsl;
|
||||
/**供应商编码*/
|
||||
@Excel(name = "供应商编码", width = 15)
|
||||
@ApiModelProperty(value = "供应商编码")
|
||||
private String lifnr;
|
||||
/**供应商名称*/
|
||||
@Excel(name = "供应商名称", width = 15)
|
||||
@ApiModelProperty(value = "供应商名称")
|
||||
private String name1;
|
||||
}
|
||||
+95
@@ -0,0 +1,95 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_ekpo
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-22
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_sap_ekpo")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_sap_ekpo对象", description="app_scene_cost_sap_ekpo")
|
||||
public class AppSceneCostSapEkpo implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**ebeln*/
|
||||
@Excel(name = "ebeln", width = 15)
|
||||
@ApiModelProperty(value = "ebeln")
|
||||
private String ebeln;
|
||||
/**ekorg*/
|
||||
@Excel(name = "ekorg", width = 15)
|
||||
@ApiModelProperty(value = "ekorg")
|
||||
private String ekorg;
|
||||
/**bukrs*/
|
||||
@Excel(name = "bukrs", width = 15)
|
||||
@ApiModelProperty(value = "bukrs")
|
||||
private String bukrs;
|
||||
/**ebelp*/
|
||||
@Excel(name = "ebelp", width = 15)
|
||||
@ApiModelProperty(value = "ebelp")
|
||||
private String ebelp;
|
||||
/**matnr*/
|
||||
@Excel(name = "matnr", width = 15)
|
||||
@ApiModelProperty(value = "matnr")
|
||||
private String matnr;
|
||||
/**werks*/
|
||||
@Excel(name = "werks", width = 15)
|
||||
@ApiModelProperty(value = "werks")
|
||||
private String werks;
|
||||
/**waers*/
|
||||
@Excel(name = "waers", width = 15)
|
||||
@ApiModelProperty(value = "waers")
|
||||
private String waers;
|
||||
/**netpr*/
|
||||
@Excel(name = "netpr", width = 15)
|
||||
@ApiModelProperty(value = "netpr")
|
||||
private BigDecimal netpr;
|
||||
/**kdatb*/
|
||||
@Excel(name = "kdatb", width = 15)
|
||||
@ApiModelProperty(value = "kdatb")
|
||||
private String kdatb;
|
||||
/**kdate*/
|
||||
@Excel(name = "kdate", width = 15)
|
||||
@ApiModelProperty(value = "kdate")
|
||||
private String kdate;
|
||||
/**bedat*/
|
||||
@Excel(name = "bedat", width = 15)
|
||||
@ApiModelProperty(value = "bedat")
|
||||
private String bedat;
|
||||
/**peinh*/
|
||||
@Excel(name = "peinh", width = 15)
|
||||
@ApiModelProperty(value = "peinh")
|
||||
private BigDecimal peinh;
|
||||
/**pstyp*/
|
||||
@Excel(name = "pstyp", width = 15)
|
||||
@ApiModelProperty(value = "pstyp")
|
||||
private String pstyp;
|
||||
/**relst*/
|
||||
@Excel(name = "relst", width = 15)
|
||||
@ApiModelProperty(value = "relst")
|
||||
private String relst;
|
||||
/**loekz*/
|
||||
@Excel(name = "loekz", width = 15)
|
||||
@ApiModelProperty(value = "loekz")
|
||||
private String loekz;
|
||||
}
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_hour_rate
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_sap_hour_rate")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_sap_hour_rate对象", description="app_scene_cost_sap_hour_rate")
|
||||
public class AppSceneCostSapHourRate implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Integer id;
|
||||
/**年月*/
|
||||
@Excel(name = "年月", width = 15)
|
||||
@ApiModelProperty(value = "年月")
|
||||
private String ym;
|
||||
/**成本中心代码*/
|
||||
@Excel(name = "成本中心代码", width = 15)
|
||||
@ApiModelProperty(value = "成本中心代码")
|
||||
private String centerCode;
|
||||
/**人工小时费率*/
|
||||
@Excel(name = "人工小时费率", width = 15)
|
||||
@ApiModelProperty(value = "人工小时费率")
|
||||
private BigDecimal rgfv;
|
||||
/**设备小时费率*/
|
||||
@Excel(name = "设备小时费率", width = 15)
|
||||
@ApiModelProperty(value = "设备小时费率")
|
||||
private BigDecimal sbfv;
|
||||
/**燃动小时费率*/
|
||||
@Excel(name = "燃动小时费率", width = 15)
|
||||
@ApiModelProperty(value = "燃动小时费率")
|
||||
private BigDecimal rdfv;
|
||||
/**辅料小时费率*/
|
||||
@Excel(name = "辅料小时费率", width = 15)
|
||||
@ApiModelProperty(value = "辅料小时费率")
|
||||
private BigDecimal flfv;
|
||||
/**其他小时费率*/
|
||||
@Excel(name = "其他小时费率", width = 15)
|
||||
@ApiModelProperty(value = "其他小时费率")
|
||||
private BigDecimal qtfv;
|
||||
}
|
||||
+311
@@ -0,0 +1,311 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_zcorc
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_sap_zcorc")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_sap_zcorc对象", description="app_scene_cost_sap_zcorc")
|
||||
public class AppSceneCostSapZcorc implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**ymonth*/
|
||||
@Excel(name = "会计期间", width = 15)
|
||||
@ApiModelProperty(value = "ymonth")
|
||||
private String ymonth;
|
||||
/**layer*/
|
||||
@Excel(name = "层级", width = 15)
|
||||
@ApiModelProperty(value = "layer")
|
||||
private String layer;
|
||||
/**rlayer*/
|
||||
@Excel(name = "参考节点", width = 15)
|
||||
@ApiModelProperty(value = "rlayer")
|
||||
private String rlayer;
|
||||
/**werks*/
|
||||
@Excel(name = "工厂", width = 15)
|
||||
@ApiModelProperty(value = "werks")
|
||||
private String werks;
|
||||
/**matnr*/
|
||||
@Excel(name = "物料", width = 15)
|
||||
@ApiModelProperty(value = "matnr")
|
||||
private String matnr;
|
||||
/**psPspPnr*/
|
||||
//@Excel(name = "psPspPnr", width = 15)
|
||||
@ApiModelProperty(value = "psPspPnr")
|
||||
private String psPspPnr;
|
||||
/**aufnr*/
|
||||
@Excel(name = "订单", width = 15)
|
||||
@ApiModelProperty(value = "aufnr")
|
||||
private String aufnr;
|
||||
/**ppsmng*/
|
||||
@Excel(name = "订单数量", width = 15)
|
||||
@ApiModelProperty(value = "ppsmng")
|
||||
private BigDecimal ppsmng;
|
||||
/**rpsmng*/
|
||||
//@Excel(name = "rpsmng", width = 15)
|
||||
@ApiModelProperty(value = "rpsmng")
|
||||
private BigDecimal rpsmng;
|
||||
/**ebeln*/
|
||||
@Excel(name = "采购凭证", width = 15)
|
||||
@ApiModelProperty(value = "ebeln")
|
||||
private String ebeln;
|
||||
/**ebelp*/
|
||||
@Excel(name = "项目", width = 15)
|
||||
@ApiModelProperty(value = "ebelp")
|
||||
private String ebelp;
|
||||
/**psmng*/
|
||||
//@Excel(name = "psmng", width = 15)
|
||||
@ApiModelProperty(value = "psmng")
|
||||
private BigDecimal psmng;
|
||||
/**idnrk*/
|
||||
@Excel(name = "组件", width = 15)
|
||||
@ApiModelProperty(value = "idnrk")
|
||||
private String idnrk;
|
||||
/**kmonth*/
|
||||
@Excel(name = "月", width = 15)
|
||||
@ApiModelProperty(value = "kmonth")
|
||||
private String kmonth;
|
||||
/**menge*/
|
||||
@Excel(name = "数量", width = 15)
|
||||
@ApiModelProperty(value = "menge")
|
||||
private BigDecimal menge;
|
||||
/**unmng*/
|
||||
@Excel(name = "单位数量", width = 15)
|
||||
@ApiModelProperty(value = "unmng")
|
||||
private BigDecimal unmng;
|
||||
/**kst001*/
|
||||
@Excel(name = "材料", width = 15)
|
||||
@ApiModelProperty(value = "kst001")
|
||||
private BigDecimal kst001;
|
||||
/**kst003*/
|
||||
@Excel(name = "人工费用", width = 15)
|
||||
@ApiModelProperty(value = "kst003")
|
||||
private BigDecimal kst003;
|
||||
/**kst005*/
|
||||
@Excel(name = "制造费用", width = 15)
|
||||
@ApiModelProperty(value = "kst005")
|
||||
private BigDecimal kst005;
|
||||
/**kstsum*/
|
||||
@Excel(name = "单位实际成本", width = 15)
|
||||
@ApiModelProperty(value = "kstsum")
|
||||
private BigDecimal kstsum;
|
||||
/**RKST001+ RKST003*/
|
||||
@Excel(name = "实际材料", width = 15)
|
||||
@ApiModelProperty(value = "实际材料")
|
||||
private BigDecimal rkst000;
|
||||
/**rkst100*/
|
||||
@Excel(name = "rkst100", width = 15)
|
||||
@ApiModelProperty(value = "rkst100")
|
||||
private BigDecimal rkst100;
|
||||
/**rkst001*/
|
||||
@Excel(name = "rkst001", width = 15)
|
||||
@ApiModelProperty(value = "rkst001")
|
||||
private BigDecimal rkst001;
|
||||
/**rkst003*/
|
||||
@Excel(name = "rkst003", width = 15)
|
||||
@ApiModelProperty(value = "rkst003")
|
||||
private BigDecimal rkst003;
|
||||
/**rkstlabor*/
|
||||
@Excel(name = "rkstlabor", width = 15)
|
||||
@ApiModelProperty(value = "rkstlabor")
|
||||
private BigDecimal rkstlabor;
|
||||
/**rkst0051*/
|
||||
@Excel(name = "rkst0051", width = 15)
|
||||
@ApiModelProperty(value = "rkst0051")
|
||||
private BigDecimal rkst0051;
|
||||
/**rkst301*/
|
||||
@Excel(name = "rkst301", width = 15)
|
||||
@ApiModelProperty(value = "rkst301")
|
||||
private BigDecimal rkst301;
|
||||
/**rkst302*/
|
||||
@Excel(name = "rkst302", width = 15)
|
||||
@ApiModelProperty(value = "rkst302")
|
||||
private BigDecimal rkst302;
|
||||
/**rkst303*/
|
||||
@Excel(name = "rkst303", width = 15)
|
||||
@ApiModelProperty(value = "rkst303")
|
||||
private BigDecimal rkst303;
|
||||
/**rkst304*/
|
||||
@Excel(name = "rkst304", width = 15)
|
||||
@ApiModelProperty(value = "rkst304")
|
||||
private BigDecimal rkst304;
|
||||
/**bfmenge*/
|
||||
@Excel(name = "bfmenge", width = 15)
|
||||
@ApiModelProperty(value = "bfmenge")
|
||||
private BigDecimal bfmenge;
|
||||
/**rkstwft*/
|
||||
@Excel(name = "rkstwft", width = 15)
|
||||
@ApiModelProperty(value = "rkstwft")
|
||||
private BigDecimal rkstwft;
|
||||
/**rkstwft001*/
|
||||
@Excel(name = "rkstwft001", width = 15)
|
||||
@ApiModelProperty(value = "rkstwft001")
|
||||
private BigDecimal rkstwft001;
|
||||
/**rkstwft003*/
|
||||
@Excel(name = "rkstwft003", width = 15)
|
||||
@ApiModelProperty(value = "rkstwft003")
|
||||
private BigDecimal rkstwft003;
|
||||
/**rkstwft0051*/
|
||||
@Excel(name = "rkstwft0051", width = 15)
|
||||
@ApiModelProperty(value = "rkstwft0051")
|
||||
private BigDecimal rkstwft0051;
|
||||
/**rkstwfp*/
|
||||
@Excel(name = "rkstwfp", width = 15)
|
||||
@ApiModelProperty(value = "rkstwfp")
|
||||
private BigDecimal rkstwfp;
|
||||
/**rkstzfi032*/
|
||||
@Excel(name = "rkstzfi032", width = 15)
|
||||
@ApiModelProperty(value = "rkstzfi032")
|
||||
private BigDecimal rkstzfi032;
|
||||
/**hrkft*/
|
||||
@Excel(name = "hrkft", width = 15)
|
||||
@ApiModelProperty(value = "hrkft")
|
||||
private String hrkft;
|
||||
/**rkst101*/
|
||||
@Excel(name = "rkst101", width = 15)
|
||||
@ApiModelProperty(value = "rkst101")
|
||||
private BigDecimal rkst101;
|
||||
/**posid*/
|
||||
//@Excel(name = "posid", width = 15)
|
||||
@ApiModelProperty(value = "posid")
|
||||
private String posid;
|
||||
/**version*/
|
||||
//@Excel(name = "version", width = 15)
|
||||
@ApiModelProperty(value = "version")
|
||||
private String version;
|
||||
/**auart*/
|
||||
//@Excel(name = "auart", width = 15)
|
||||
@ApiModelProperty(value = "auart")
|
||||
private String auart;
|
||||
/**maktx*/
|
||||
@Excel(name = "物料描述", width = 15)
|
||||
@ApiModelProperty(value = "maktx")
|
||||
private String maktx;
|
||||
/**ckm3*/
|
||||
//@Excel(name = "ckm3", width = 15)
|
||||
@ApiModelProperty(value = "ckm3")
|
||||
private BigDecimal ckm3;
|
||||
/**id*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
/**player*/
|
||||
@Excel(name = "父层级", width = 15)
|
||||
@ApiModelProperty(value = "player")
|
||||
private String player;
|
||||
/**level*/
|
||||
//@Excel(name = "level", width = 15)
|
||||
@ApiModelProperty(value = "level")
|
||||
private Integer level;
|
||||
/**ckm3*/
|
||||
//@Excel(name = "aufnrtotal", width = 15)
|
||||
@ApiModelProperty(value = "aufnrtotal")
|
||||
private BigDecimal aufnrtotal;
|
||||
/**ckm3*/
|
||||
@Excel(name = "订单数量", width = 15)
|
||||
@ApiModelProperty(value = "aufnrmng")
|
||||
private BigDecimal aufnrmng;
|
||||
|
||||
@Excel(name = "领用数量", width = 15)
|
||||
@ApiModelProperty(value = "aufnrmenge")
|
||||
private BigDecimal aufnrmenge;
|
||||
|
||||
@Excel(name = "领用数量", width = 15)
|
||||
@ApiModelProperty(value = "aufnrnum")
|
||||
private BigDecimal aufnrnum;
|
||||
/**ckm3*/
|
||||
@Excel(name = "加权平均数量", width = 15)
|
||||
@ApiModelProperty(value = "matnrnum")
|
||||
private BigDecimal matnrnum;
|
||||
/**ckm3*/
|
||||
@Excel(name = "基于成品的结构用量", width = 15)
|
||||
@ApiModelProperty(value = "pnum")
|
||||
private BigDecimal pnum;
|
||||
|
||||
@Excel(name = "加权平均用量", width = 15)
|
||||
@ApiModelProperty(value = "avgnum")
|
||||
private BigDecimal avgnum;
|
||||
|
||||
//@Excel(name = "备注", width = 15)
|
||||
@ApiModelProperty(value = "totalnum")
|
||||
private BigDecimal totalnum;
|
||||
|
||||
@Excel(name = "领用成本", width = 15,type = 4,numFormat = "0.0000")
|
||||
@ApiModelProperty(value = "avgprice")
|
||||
private BigDecimal avgprice;
|
||||
|
||||
@Excel(name = "加权平均单位成本", width = 15,type = 4,numFormat = "0.0000")
|
||||
@ApiModelProperty(value = "totalprice")
|
||||
private BigDecimal totalprice;
|
||||
|
||||
@Excel(name = "人工工时", width = 15)
|
||||
@ApiModelProperty(value = "rggs")
|
||||
private BigDecimal rggs;
|
||||
|
||||
@Excel(name = "加权平均单位成本", width = 15)
|
||||
@ApiModelProperty(value = "rgfv")
|
||||
private BigDecimal rgfv;
|
||||
|
||||
@Excel(name = "设备工时", width = 15)
|
||||
@ApiModelProperty(value = "sbgs")
|
||||
private BigDecimal sbgs;
|
||||
|
||||
@Excel(name = "设备费率", width = 15)
|
||||
@ApiModelProperty(value = "sbfv")
|
||||
private BigDecimal sbfv;
|
||||
|
||||
@Excel(name = "辅料工时", width = 15)
|
||||
@ApiModelProperty(value = "flgs")
|
||||
private BigDecimal flgs;
|
||||
|
||||
@Excel(name = "辅料费率", width = 15)
|
||||
@ApiModelProperty(value = "flfv")
|
||||
private BigDecimal flfv;
|
||||
|
||||
@Excel(name = "燃动工时", width = 15)
|
||||
@ApiModelProperty(value = "rdgs")
|
||||
private BigDecimal rdgs;
|
||||
|
||||
@Excel(name = "燃动费率", width = 15)
|
||||
@ApiModelProperty(value = "rdfv")
|
||||
private BigDecimal rdfv;
|
||||
|
||||
@Excel(name = "其他工时", width = 15)
|
||||
@ApiModelProperty(value = "qtgs")
|
||||
private BigDecimal qtgs;
|
||||
|
||||
@Excel(name = "其他费率", width = 15)
|
||||
@ApiModelProperty(value = "qtfv")
|
||||
private BigDecimal qtfv;
|
||||
|
||||
|
||||
|
||||
/**ckm3*/
|
||||
@Excel(name = "备注", width = 15)
|
||||
@ApiModelProperty(value = "content")
|
||||
private String content;
|
||||
|
||||
}
|
||||
+307
@@ -0,0 +1,307 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_ztmmx004
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_sap_ztmmx004")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_sap_ztmmx004对象", description="app_scene_cost_sap_ztmmx004")
|
||||
public class AppSceneCostSapZtmmx004 implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**mandt*/
|
||||
@Excel(name = "mandt", width = 15)
|
||||
@ApiModelProperty(value = "mandt")
|
||||
private String mandt;
|
||||
/**zjkyld*/
|
||||
@Excel(name = "zjkyld", width = 15)
|
||||
@ApiModelProperty(value = "zjkyld")
|
||||
private String zjkyld;
|
||||
/**zjkhxm*/
|
||||
@Excel(name = "zjkhxm", width = 15)
|
||||
@ApiModelProperty(value = "zjkhxm")
|
||||
private String zjkhxm;
|
||||
/**zyllx*/
|
||||
@Excel(name = "zyllx", width = 15)
|
||||
@ApiModelProperty(value = "zyllx")
|
||||
private String zyllx;
|
||||
/**rsnum*/
|
||||
@Excel(name = "rsnum", width = 15)
|
||||
@ApiModelProperty(value = "rsnum")
|
||||
private String rsnum;
|
||||
/**rspos*/
|
||||
@Excel(name = "rspos", width = 15)
|
||||
@ApiModelProperty(value = "rspos")
|
||||
private String rspos;
|
||||
/**matnr*/
|
||||
@Excel(name = "matnr", width = 15)
|
||||
@ApiModelProperty(value = "matnr")
|
||||
private String matnr;
|
||||
/**werks*/
|
||||
@Excel(name = "werks", width = 15)
|
||||
@ApiModelProperty(value = "werks")
|
||||
private String werks;
|
||||
/**lgort*/
|
||||
@Excel(name = "lgort", width = 15)
|
||||
@ApiModelProperty(value = "lgort")
|
||||
private String lgort;
|
||||
/**charg*/
|
||||
@Excel(name = "charg", width = 15)
|
||||
@ApiModelProperty(value = "charg")
|
||||
private String charg;
|
||||
/**meins*/
|
||||
@Excel(name = "meins", width = 15)
|
||||
@ApiModelProperty(value = "meins")
|
||||
private String meins;
|
||||
/**bdmng*/
|
||||
@Excel(name = "bdmng", width = 15)
|
||||
@ApiModelProperty(value = "bdmng")
|
||||
private BigDecimal bdmng;
|
||||
/**enmng*/
|
||||
@Excel(name = "enmng", width = 15)
|
||||
@ApiModelProperty(value = "enmng")
|
||||
private BigDecimal enmng;
|
||||
/**rsdat*/
|
||||
@Excel(name = "rsdat", width = 15)
|
||||
@ApiModelProperty(value = "rsdat")
|
||||
private String rsdat;
|
||||
/**bdter*/
|
||||
@Excel(name = "bdter", width = 15)
|
||||
@ApiModelProperty(value = "bdter")
|
||||
private String bdter;
|
||||
/**bwart*/
|
||||
@Excel(name = "bwart", width = 15)
|
||||
@ApiModelProperty(value = "bwart")
|
||||
private String bwart;
|
||||
/**sobkz*/
|
||||
@Excel(name = "sobkz", width = 15)
|
||||
@ApiModelProperty(value = "sobkz")
|
||||
private String sobkz;
|
||||
/**ebeln*/
|
||||
@Excel(name = "ebeln", width = 15)
|
||||
@ApiModelProperty(value = "ebeln")
|
||||
private String ebeln;
|
||||
/**ebelp*/
|
||||
@Excel(name = "ebelp", width = 15)
|
||||
@ApiModelProperty(value = "ebelp")
|
||||
private String ebelp;
|
||||
/**aufnr*/
|
||||
@Excel(name = "aufnr", width = 15)
|
||||
@ApiModelProperty(value = "aufnr")
|
||||
private String aufnr;
|
||||
/**refPosnr*/
|
||||
@Excel(name = "refPosnr", width = 15)
|
||||
@ApiModelProperty(value = "refPosnr")
|
||||
private String refPosnr;
|
||||
/**refRsnum*/
|
||||
@Excel(name = "refRsnum", width = 15)
|
||||
@ApiModelProperty(value = "refRsnum")
|
||||
private String refRsnum;
|
||||
/**refRspos*/
|
||||
@Excel(name = "refRspos", width = 15)
|
||||
@ApiModelProperty(value = "refRspos")
|
||||
private String refRspos;
|
||||
/**zzlwt*/
|
||||
@Excel(name = "zzlwt", width = 15)
|
||||
@ApiModelProperty(value = "zzlwt")
|
||||
private String zzlwt;
|
||||
/**zcfdh*/
|
||||
@Excel(name = "zcfdh", width = 15)
|
||||
@ApiModelProperty(value = "zcfdh")
|
||||
private String zcfdh;
|
||||
/**zcfyy*/
|
||||
@Excel(name = "zcfyy", width = 15)
|
||||
@ApiModelProperty(value = "zcfyy")
|
||||
private String zcfyy;
|
||||
/**kostl*/
|
||||
@Excel(name = "kostl", width = 15)
|
||||
@ApiModelProperty(value = "kostl")
|
||||
private String kostl;
|
||||
/**umwrk*/
|
||||
@Excel(name = "umwrk", width = 15)
|
||||
@ApiModelProperty(value = "umwrk")
|
||||
private String umwrk;
|
||||
/**umlgo*/
|
||||
@Excel(name = "umlgo", width = 15)
|
||||
@ApiModelProperty(value = "umlgo")
|
||||
private String umlgo;
|
||||
/**ummat*/
|
||||
@Excel(name = "ummat", width = 15)
|
||||
@ApiModelProperty(value = "ummat")
|
||||
private String ummat;
|
||||
/**umcha*/
|
||||
@Excel(name = "umcha", width = 15)
|
||||
@ApiModelProperty(value = "umcha")
|
||||
private String umcha;
|
||||
/**lifnr*/
|
||||
@Excel(name = "lifnr", width = 15)
|
||||
@ApiModelProperty(value = "lifnr")
|
||||
private String lifnr;
|
||||
/**kunnr*/
|
||||
@Excel(name = "kunnr", width = 15)
|
||||
@ApiModelProperty(value = "kunnr")
|
||||
private String kunnr;
|
||||
/**ernam*/
|
||||
@Excel(name = "ernam", width = 15)
|
||||
@ApiModelProperty(value = "ernam")
|
||||
private String ernam;
|
||||
/**erdat*/
|
||||
@Excel(name = "erdat", width = 15)
|
||||
@ApiModelProperty(value = "erdat")
|
||||
private String erdat;
|
||||
/**erzet*/
|
||||
@Excel(name = "erzet", width = 15)
|
||||
@ApiModelProperty(value = "erzet")
|
||||
private String erzet;
|
||||
/**aenam*/
|
||||
@Excel(name = "aenam", width = 15)
|
||||
@ApiModelProperty(value = "aenam")
|
||||
private String aenam;
|
||||
/**aedat*/
|
||||
@Excel(name = "aedat", width = 15)
|
||||
@ApiModelProperty(value = "aedat")
|
||||
private String aedat;
|
||||
/**aezet*/
|
||||
@Excel(name = "aezet", width = 15)
|
||||
@ApiModelProperty(value = "aezet")
|
||||
private String aezet;
|
||||
/**zconf*/
|
||||
@Excel(name = "zconf", width = 15)
|
||||
@ApiModelProperty(value = "zconf")
|
||||
private String zconf;
|
||||
/**qrnam*/
|
||||
@Excel(name = "qrnam", width = 15)
|
||||
@ApiModelProperty(value = "qrnam")
|
||||
private String qrnam;
|
||||
/**qrdat*/
|
||||
@Excel(name = "qrdat", width = 15)
|
||||
@ApiModelProperty(value = "qrdat")
|
||||
private String qrdat;
|
||||
/**qrzet*/
|
||||
@Excel(name = "qrzet", width = 15)
|
||||
@ApiModelProperty(value = "qrzet")
|
||||
private String qrzet;
|
||||
/**zsfsp*/
|
||||
@Excel(name = "zsfsp", width = 15)
|
||||
@ApiModelProperty(value = "zsfsp")
|
||||
private String zsfsp;
|
||||
/**zspzt*/
|
||||
@Excel(name = "zspzt", width = 15)
|
||||
@ApiModelProperty(value = "zspzt")
|
||||
private String zspzt;
|
||||
/**spnam*/
|
||||
@Excel(name = "spnam", width = 15)
|
||||
@ApiModelProperty(value = "spnam")
|
||||
private String spnam;
|
||||
/**spdat*/
|
||||
@Excel(name = "spdat", width = 15)
|
||||
@ApiModelProperty(value = "spdat")
|
||||
private String spdat;
|
||||
/**spzet*/
|
||||
@Excel(name = "spzet", width = 15)
|
||||
@ApiModelProperty(value = "spzet")
|
||||
private String spzet;
|
||||
/**zsfts*/
|
||||
@Excel(name = "zsfts", width = 15)
|
||||
@ApiModelProperty(value = "zsfts")
|
||||
private String zsfts;
|
||||
/**ztszt*/
|
||||
@Excel(name = "ztszt", width = 15)
|
||||
@ApiModelProperty(value = "ztszt")
|
||||
private String ztszt;
|
||||
/**zzt*/
|
||||
@Excel(name = "zzt", width = 15)
|
||||
@ApiModelProperty(value = "zzt")
|
||||
private String zzt;
|
||||
/**zjjcd*/
|
||||
@Excel(name = "zjjcd", width = 15)
|
||||
@ApiModelProperty(value = "zjjcd")
|
||||
private String zjjcd;
|
||||
/**dele*/
|
||||
@Excel(name = "dele", width = 15)
|
||||
@ApiModelProperty(value = "dele")
|
||||
private String dele;
|
||||
/**zcfsl*/
|
||||
@Excel(name = "zcfsl", width = 15)
|
||||
@ApiModelProperty(value = "zcfsl")
|
||||
private BigDecimal zcfsl;
|
||||
/**z2step*/
|
||||
@Excel(name = "z2step", width = 15)
|
||||
@ApiModelProperty(value = "z2step")
|
||||
private String z2step;
|
||||
/**zretlf*/
|
||||
@Excel(name = "zretlf", width = 15)
|
||||
@ApiModelProperty(value = "zretlf")
|
||||
private String zretlf;
|
||||
/**bdmngO*/
|
||||
@Excel(name = "bdmngO", width = 15)
|
||||
@ApiModelProperty(value = "bdmngO")
|
||||
private BigDecimal bdmngO;
|
||||
/**msgty*/
|
||||
@Excel(name = "msgty", width = 15)
|
||||
@ApiModelProperty(value = "msgty")
|
||||
private String msgty;
|
||||
/**msg*/
|
||||
@Excel(name = "msg", width = 15)
|
||||
@ApiModelProperty(value = "msg")
|
||||
private String msg;
|
||||
/**zllr*/
|
||||
@Excel(name = "zllr", width = 15)
|
||||
@ApiModelProperty(value = "zllr")
|
||||
private String zllr;
|
||||
/**zllyy*/
|
||||
@Excel(name = "zllyy", width = 15)
|
||||
@ApiModelProperty(value = "zllyy")
|
||||
private String zllyy;
|
||||
/**refRsart*/
|
||||
@Excel(name = "refRsart", width = 15)
|
||||
@ApiModelProperty(value = "refRsart")
|
||||
private String refRsart;
|
||||
/**txt40*/
|
||||
@Excel(name = "txt40", width = 15)
|
||||
@ApiModelProperty(value = "txt40")
|
||||
private String txt40;
|
||||
/**ktext*/
|
||||
@Excel(name = "ktext", width = 15)
|
||||
@ApiModelProperty(value = "ktext")
|
||||
private String ktext;
|
||||
/**nodeal*/
|
||||
@Excel(name = "nodeal", width = 15)
|
||||
@ApiModelProperty(value = "nodeal")
|
||||
private String nodeal;
|
||||
/**zyylbA09*/
|
||||
@Excel(name = "zyylbA09", width = 15)
|
||||
@ApiModelProperty(value = "zyylbA09")
|
||||
private String zyylbA09;
|
||||
/**zyylbA10*/
|
||||
@Excel(name = "zyylbA10", width = 15)
|
||||
@ApiModelProperty(value = "zyylbA10")
|
||||
private String zyylbA10;
|
||||
/**zzrbm*/
|
||||
@Excel(name = "zzrbm", width = 15)
|
||||
@ApiModelProperty(value = "zzrbm")
|
||||
private String zzrbm;
|
||||
}
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_standard_bom
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@TableName("app_scene_cost_standard_bom")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_standard_bom对象", description="app_scene_cost_standard_bom")
|
||||
public class AppSceneCostStandardBom implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**matnr*/
|
||||
@Excel(name = "matnr", width = 15)
|
||||
@ApiModelProperty(value = "matnr")
|
||||
private String matnr;
|
||||
/**versionNumber*/
|
||||
@Excel(name = "versionNumber", width = 15)
|
||||
@ApiModelProperty(value = "versionNumber")
|
||||
private String versionNumber;
|
||||
/**posnr*/
|
||||
@Excel(name = "posnr", width = 15)
|
||||
@ApiModelProperty(value = "posnr")
|
||||
private String posnr;
|
||||
/**werks*/
|
||||
@Excel(name = "werks", width = 15)
|
||||
@ApiModelProperty(value = "werks")
|
||||
private String werks;
|
||||
/**bmeng*/
|
||||
@Excel(name = "bmeng", width = 15)
|
||||
@ApiModelProperty(value = "bmeng")
|
||||
private BigDecimal bmeng;
|
||||
/**idnrk*/
|
||||
@Excel(name = "idnrk", width = 15)
|
||||
@ApiModelProperty(value = "idnrk")
|
||||
private String idnrk;
|
||||
/**menge*/
|
||||
@Excel(name = "menge", width = 15)
|
||||
@ApiModelProperty(value = "menge")
|
||||
private BigDecimal menge;
|
||||
/**oldMaterialGroup*/
|
||||
@Excel(name = "oldMaterialGroup", width = 15)
|
||||
@ApiModelProperty(value = "oldMaterialGroup")
|
||||
private String oldMaterialGroup;
|
||||
/**manufacturingType*/
|
||||
@Excel(name = "manufacturingType", width = 15)
|
||||
@ApiModelProperty(value = "manufacturingType")
|
||||
private String manufacturingType;
|
||||
/**sobsl*/
|
||||
@Excel(name = "sobsl", width = 15)
|
||||
@ApiModelProperty(value = "sobsl")
|
||||
private String sobsl;
|
||||
/**batch*/
|
||||
@Excel(name = "batch", width = 15)
|
||||
@ApiModelProperty(value = "batch")
|
||||
private BigDecimal batch;
|
||||
/**productName*/
|
||||
@Excel(name = "productName", width = 15)
|
||||
@ApiModelProperty(value = "productName")
|
||||
private String productName;
|
||||
/**materialType*/
|
||||
@Excel(name = "materialType", width = 15)
|
||||
@ApiModelProperty(value = "materialType")
|
||||
private String materialType;
|
||||
}
|
||||
+221
@@ -0,0 +1,221 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_standard_detail
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-07-31
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@TableName("app_scene_cost_standard_detail")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "app_scene_cost_standard_detail对象", description = "app_scene_cost_standard_detail")
|
||||
public class AppSceneCostStandardDetail implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "id")
|
||||
private String id;
|
||||
/**
|
||||
* 图号
|
||||
*/
|
||||
@Excel(name = "图号", width = 15)
|
||||
@ApiModelProperty(value = "图号")
|
||||
private String figureNumber;
|
||||
/**
|
||||
* 物料号,关联kn_new_sap_mara表matnr字段
|
||||
*/
|
||||
@Excel(name = "物料号,关联kn_new_sap_mara表matnr字段", width = 15)
|
||||
@ApiModelProperty(value = "物料号,关联kn_new_sap_mara表matnr字段")
|
||||
private String materialNumber;
|
||||
/**
|
||||
* 物料名称
|
||||
*/
|
||||
@Excel(name = "物料名称", width = 15)
|
||||
@ApiModelProperty(value = "物料名称")
|
||||
private String materialName;
|
||||
/**
|
||||
* 父类物料号
|
||||
*/
|
||||
@Excel(name = "父类物料号", width = 15)
|
||||
@ApiModelProperty(value = "父类物料号")
|
||||
private String parentMaterialNumber;
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
@Excel(name = "版本号", width = 15)
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private String versionNumber;
|
||||
/**
|
||||
* 层级
|
||||
*/
|
||||
@Excel(name = "层级", width = 15)
|
||||
@ApiModelProperty(value = "层级")
|
||||
private Integer level;
|
||||
/**
|
||||
* 序号
|
||||
*/
|
||||
@Excel(name = "序号", width = 15)
|
||||
@ApiModelProperty(value = "序号")
|
||||
private Integer sort;
|
||||
/**
|
||||
* 用量
|
||||
*/
|
||||
@Excel(name = "用量", width = 15)
|
||||
@ApiModelProperty(value = "用量")
|
||||
private Double dosage;
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
@Excel(name = "单位", width = 15)
|
||||
@ApiModelProperty(value = "单位")
|
||||
private String unit;
|
||||
/**
|
||||
* 本阶材料费
|
||||
*/
|
||||
@Excel(name = "本阶材料费", width = 15)
|
||||
@ApiModelProperty(value = "本阶材料费")
|
||||
private BigDecimal materialCost;
|
||||
/**
|
||||
* 本阶人工费
|
||||
*/
|
||||
@Excel(name = "本阶人工陈本", width = 15)
|
||||
@ApiModelProperty(value = "本阶人工成本")
|
||||
private BigDecimal laborCost;
|
||||
/**
|
||||
* 本阶辅料费
|
||||
*/
|
||||
@Excel(name = "本阶辅料费", width = 15)
|
||||
@ApiModelProperty(value = "本阶辅料费")
|
||||
private BigDecimal supplyMaterialCost;
|
||||
/**
|
||||
* 本阶机器折旧费
|
||||
*/
|
||||
@Excel(name = "本阶机器折旧费", width = 15)
|
||||
@ApiModelProperty(value = "本阶机器折旧费")
|
||||
private BigDecimal equipmentCost;
|
||||
/**
|
||||
* 本阶水电费(燃动费)
|
||||
*/
|
||||
@Excel(name = "本阶水电费(燃动费)", width = 15)
|
||||
@ApiModelProperty(value = "本阶水电费(燃动费)")
|
||||
private BigDecimal driveCost;
|
||||
/**
|
||||
* 本阶其他制造费
|
||||
*/
|
||||
@Excel(name = "本阶其他费用", width = 15)
|
||||
@ApiModelProperty(value = "本阶其他费用")
|
||||
private BigDecimal otherCost;
|
||||
/**
|
||||
* 本阶物流费
|
||||
*/
|
||||
@Excel(name = "本阶物流费", width = 15)
|
||||
@ApiModelProperty(value = "本阶物流费")
|
||||
private BigDecimal logisticsCost;
|
||||
/**
|
||||
* 累计物料成本
|
||||
*/
|
||||
@Excel(name = "累计物料成本", width = 15)
|
||||
@ApiModelProperty(value = "累计物料成本")
|
||||
private BigDecimal totalMaterialCost;
|
||||
/**
|
||||
* 累计人工成本
|
||||
*/
|
||||
@Excel(name = "累计人工成本", width = 15)
|
||||
@ApiModelProperty(value = "累计人工成本")
|
||||
private BigDecimal totalLaborCost;
|
||||
/**
|
||||
* 累计辅料费
|
||||
*/
|
||||
@Excel(name = "累计辅料费", width = 15)
|
||||
@ApiModelProperty(value = "累计辅料费")
|
||||
private BigDecimal totalSupplyMaterialCost;
|
||||
/**
|
||||
* 累计机器折旧费
|
||||
*/
|
||||
@Excel(name = "累计机器折旧费", width = 15)
|
||||
@ApiModelProperty(value = "累计机器折旧费")
|
||||
private BigDecimal totalEquipmentCost;
|
||||
/**
|
||||
* 累计水电费(燃动费)
|
||||
*/
|
||||
@Excel(name = "累计水电费(燃动费)", width = 15)
|
||||
@ApiModelProperty(value = "累计水电费(燃动费)")
|
||||
private BigDecimal totalDriveCost;
|
||||
/**
|
||||
* 累计其他费用
|
||||
*/
|
||||
@Excel(name = "累计其他费用", width = 15)
|
||||
@ApiModelProperty(value = "累计其他费用")
|
||||
private BigDecimal totalOtherCost;
|
||||
/**
|
||||
* 累计物流费用
|
||||
*/
|
||||
@Excel(name = "累计物流费用", width = 15)
|
||||
@ApiModelProperty(value = "累计物流费用")
|
||||
private BigDecimal totalLogisticsCost;
|
||||
/**
|
||||
* 本阶标准成本
|
||||
*/
|
||||
@Excel(name = "本阶标准成本", width = 15)
|
||||
@ApiModelProperty(value = "本阶标准成本")
|
||||
private BigDecimal currentStandardCost;
|
||||
/**
|
||||
* 累计标准成本
|
||||
*/
|
||||
@Excel(name = "累计标准成本", width = 15)
|
||||
@ApiModelProperty(value = "累计标准成本")
|
||||
private BigDecimal totalStandardCost;
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createBy;
|
||||
/**
|
||||
* 创建日期
|
||||
*/
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建日期")
|
||||
private Date createTime;
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@ApiModelProperty(value = "修改人")
|
||||
private String updateBy;
|
||||
/**
|
||||
* 修改日期
|
||||
*/
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "修改日期")
|
||||
private Date updateTime;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@Excel(name = "备注", width = 15)
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remark;
|
||||
}
|
||||
+117
@@ -0,0 +1,117 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_standard_productprocess
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@TableName("app_scene_cost_standard_productprocess")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_standard_productprocess对象", description="app_scene_cost_standard_productprocess")
|
||||
public class AppSceneCostStandardProductprocess implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
/**factory*/
|
||||
@Excel(name = "factory", width = 15)
|
||||
@ApiModelProperty(value = "factory")
|
||||
private String factory;
|
||||
/**mainPartNumber*/
|
||||
@Excel(name = "mainPartNumber", width = 15)
|
||||
@ApiModelProperty(value = "mainPartNumber")
|
||||
private String mainPartNumber;
|
||||
/**processRouteNumber*/
|
||||
@Excel(name = "processRouteNumber", width = 15)
|
||||
@ApiModelProperty(value = "processRouteNumber")
|
||||
private String processRouteNumber;
|
||||
/**serialNumber*/
|
||||
@Excel(name = "serialNumber", width = 15)
|
||||
@ApiModelProperty(value = "serialNumber")
|
||||
private String serialNumber;
|
||||
/**processName*/
|
||||
@Excel(name = "processName", width = 15)
|
||||
@ApiModelProperty(value = "processName")
|
||||
private String processName;
|
||||
/**costCenterCode*/
|
||||
@Excel(name = "costCenterCode", width = 15)
|
||||
@ApiModelProperty(value = "costCenterCode")
|
||||
private String costCenterCode;
|
||||
/**prepareHour*/
|
||||
@Excel(name = "prepareHour", width = 15)
|
||||
@ApiModelProperty(value = "prepareHour")
|
||||
private BigDecimal prepareHour;
|
||||
/**laborHour*/
|
||||
@Excel(name = "laborHour", width = 15)
|
||||
@ApiModelProperty(value = "laborHour")
|
||||
private BigDecimal laborHour;
|
||||
/**machineHour*/
|
||||
@Excel(name = "machineHour", width = 15)
|
||||
@ApiModelProperty(value = "machineHour")
|
||||
private BigDecimal machineHour;
|
||||
/**burningHour*/
|
||||
@Excel(name = "burningHour", width = 15)
|
||||
@ApiModelProperty(value = "burningHour")
|
||||
private BigDecimal burningHour;
|
||||
/**auxiliaryHour*/
|
||||
@Excel(name = "auxiliaryHour", width = 15)
|
||||
@ApiModelProperty(value = "auxiliaryHour")
|
||||
private BigDecimal auxiliaryHour;
|
||||
/**otherHour*/
|
||||
@Excel(name = "otherHour", width = 15)
|
||||
@ApiModelProperty(value = "otherHour")
|
||||
private BigDecimal otherHour;
|
||||
/**versionNumber*/
|
||||
@Excel(name = "versionNumber", width = 15)
|
||||
@ApiModelProperty(value = "versionNumber")
|
||||
private String versionNumber;
|
||||
/**jobCode*/
|
||||
@Excel(name = "jobCode", width = 15)
|
||||
@ApiModelProperty(value = "jobCode")
|
||||
private String jobCode;
|
||||
/**laborHourRate*/
|
||||
@Excel(name = "laborHourRate", width = 15)
|
||||
@ApiModelProperty(value = "laborHourRate")
|
||||
private BigDecimal laborHourRate;
|
||||
/**equipHourRate*/
|
||||
@Excel(name = "equipHourRate", width = 15)
|
||||
@ApiModelProperty(value = "equipHourRate")
|
||||
private BigDecimal equipHourRate;
|
||||
/**fuelHourRate*/
|
||||
@Excel(name = "fuelHourRate", width = 15)
|
||||
@ApiModelProperty(value = "fuelHourRate")
|
||||
private BigDecimal fuelHourRate;
|
||||
/**auxiliaryHourRate*/
|
||||
@Excel(name = "auxiliaryHourRate", width = 15)
|
||||
@ApiModelProperty(value = "auxiliaryHourRate")
|
||||
private BigDecimal auxiliaryHourRate;
|
||||
/**otherHourRate*/
|
||||
@Excel(name = "otherHourRate", width = 15)
|
||||
@ApiModelProperty(value = "otherHourRate")
|
||||
private BigDecimal otherHourRate;
|
||||
}
|
||||
+249
@@ -0,0 +1,249 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
//import javax.persistence.Column;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_standard_result
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@TableName("app_scene_cost_standard_result")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_standard_result对象", description="app_scene_cost_standard_result")
|
||||
public class AppSceneCostStandardResult implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private java.lang.Long id;
|
||||
/**会计期间*/
|
||||
@Excel(name = "会计期间", width = 15)
|
||||
@ApiModelProperty(value = "会计期间")
|
||||
private java.lang.String ymonth;
|
||||
/**版本号*/
|
||||
@Excel(name = "版本号", width = 15)
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private java.lang.String versionNumber;
|
||||
/**阶段*/
|
||||
@Excel(name = "阶段", width = 15)
|
||||
@ApiModelProperty(value = "阶段")
|
||||
private java.lang.String stage;
|
||||
/**工厂*/
|
||||
@Excel(name = "工厂", width = 15)
|
||||
@ApiModelProperty(value = "工厂")
|
||||
private java.lang.String factory;
|
||||
/**父物料号*/
|
||||
@Excel(name = "父物料号", width = 15)
|
||||
@ApiModelProperty(value = "父物料号")
|
||||
private java.lang.String parentMatnr;
|
||||
/**低阶码*/
|
||||
@Excel(name = "层级", width = 15)
|
||||
@ApiModelProperty(value = "层级")
|
||||
private java.lang.String lowOrderCode;
|
||||
/**层级*/
|
||||
@Excel(name = "展开层", width = 15)
|
||||
@ApiModelProperty(value = "展开层")
|
||||
private java.lang.String layer;
|
||||
/**层级*/
|
||||
//@Excel(name = "展开层", width = 15)
|
||||
@ApiModelProperty(value = "父展开层")
|
||||
private java.lang.String player;
|
||||
/**物料号*/
|
||||
@Excel(name = "子物料号", width = 15)
|
||||
@ApiModelProperty(value = "子物料号")
|
||||
private java.lang.String materialNumber;
|
||||
/**物料描述*/
|
||||
@Excel(name = "物料描述", width = 20)
|
||||
@ApiModelProperty(value = "子物料描述")
|
||||
private java.lang.String maktx;
|
||||
/**数量*/
|
||||
@Excel(name = "数量", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "数量")
|
||||
private java.math.BigDecimal menge;
|
||||
/**数量*/
|
||||
@Excel(name = "采购类型", width = 15)
|
||||
@ApiModelProperty(value = "采购类型")
|
||||
private java.lang.String manuType;
|
||||
/**本阶设备成本*/
|
||||
@Excel(name = "机器工时", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "机器工时")
|
||||
private java.math.BigDecimal equipHour;
|
||||
/**本阶人工成本*/
|
||||
@Excel(name = "人工工时", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "人工工时")
|
||||
private java.math.BigDecimal laborHour;
|
||||
/**本阶燃动成本*/
|
||||
@Excel(name = "燃动力工时", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "燃动力工时")
|
||||
private java.math.BigDecimal fuelHour;
|
||||
/**本阶辅料成本*/
|
||||
@Excel(name = "辅料工时", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "辅料工时")
|
||||
private java.math.BigDecimal auxiHour;
|
||||
/**本阶其他成本*/
|
||||
@Excel(name = "其他制费工时", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "其他制费工时")
|
||||
private java.math.BigDecimal otherHour;
|
||||
|
||||
|
||||
/**总其他成本*/
|
||||
@Excel(name = "供应商", width = 20)
|
||||
@ApiModelProperty(value = "供应商")
|
||||
private String supplier;
|
||||
/**总其他成本*/
|
||||
@Excel(name = "供应商描述", width = 20)
|
||||
@ApiModelProperty(value = "供应商描述")
|
||||
private String supplierName;
|
||||
/**总其他成本*/
|
||||
@Excel(name = "采购信息记录", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "采购信息记录")
|
||||
private java.math.BigDecimal purchasePrice;
|
||||
/**总其他成本*/
|
||||
@Excel(name = "正式合同价格", width = 20,type = 4)
|
||||
@ApiModelProperty(value = "正式合同价格")
|
||||
private java.math.BigDecimal contractPrice;
|
||||
/**总其他成本*/
|
||||
@Excel(name = "临时合同估价", width = 20,type = 4)
|
||||
@ApiModelProperty(value = "临时合同估价")
|
||||
private java.math.BigDecimal tempContractPrice;
|
||||
/**总其他成本*/
|
||||
@Excel(name = "单位材料成本", width = 20,type = 4)
|
||||
@ApiModelProperty(value = "采购价格(合计)")
|
||||
private java.math.BigDecimal materialCost;
|
||||
/**总人工成本*/
|
||||
@Excel(name = "单位人工", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "总人工成本")
|
||||
private java.math.BigDecimal laborCost;
|
||||
/**总设备成本*/
|
||||
@Excel(name = "单位折旧", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "总设备成本")
|
||||
private java.math.BigDecimal equipCost;
|
||||
/**总燃动成本*/
|
||||
@Excel(name = "单位燃动力", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "总燃动成本")
|
||||
private java.math.BigDecimal fuelCost;
|
||||
/**总辅料成本*/
|
||||
@Excel(name = "单位辅料", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "总辅料成本")
|
||||
private java.math.BigDecimal auxiliaryCost;
|
||||
/**总其他成本*/
|
||||
@Excel(name = "单位其他费用", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "总其他成本")
|
||||
private java.math.BigDecimal otherCost;
|
||||
/**总标准成本*/
|
||||
@Excel(name = "单位成本", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "总标准成本")
|
||||
private java.math.BigDecimal standardCost;
|
||||
/**本阶设备成本*/
|
||||
@Excel(name = "机器工时(累积)", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "机器工时(累积)")
|
||||
private java.math.BigDecimal equipHourTotal;
|
||||
/**本阶人工成本*/
|
||||
@Excel(name = "人工工时(累积)", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "人工工时(累积)")
|
||||
private java.math.BigDecimal laborHourTotal;
|
||||
/**本阶燃动成本*/
|
||||
@Excel(name = "燃动力工时(累积)", width = 20,type = 4)
|
||||
@ApiModelProperty(value = "燃动力工时(累积)")
|
||||
private java.math.BigDecimal fuelHourTotal;
|
||||
/**本阶辅料成本*/
|
||||
@Excel(name = "辅料工时(累积)", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "辅料工时(累积)")
|
||||
private java.math.BigDecimal auxiHourTotal;
|
||||
/**本阶其他成本*/
|
||||
@Excel(name = "其他制费工时(累积)", width = 20,type = 4)
|
||||
@ApiModelProperty(value = "其他制费工时(累积)")
|
||||
private java.math.BigDecimal otherHourTotal;
|
||||
|
||||
@Excel(name = "结构单位材料成本(累积)", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "总材料成本")
|
||||
private java.math.BigDecimal materialCostTotal;
|
||||
/**相对人工成本*/
|
||||
@Excel(name = "结构单位人工(累积)", width = 15)
|
||||
@ApiModelProperty(value = "相对人工成本")
|
||||
private java.math.BigDecimal laborCostTotal;
|
||||
/**相对制费成本*/
|
||||
@Excel(name = "结构单位折旧(累积)", width = 15)
|
||||
@ApiModelProperty(value = "相对制费成本")
|
||||
private java.math.BigDecimal equipCostTotal;
|
||||
/**相对制费成本*/
|
||||
@Excel(name = "结构单位燃动力(累积)", width = 15)
|
||||
@ApiModelProperty(value = "相对制费成本")
|
||||
private java.math.BigDecimal fuelCostTotal;
|
||||
/**相对制费成本*/
|
||||
@Excel(name = "结构单位辅料(累积)", width = 15)
|
||||
@ApiModelProperty(value = "相对制费成本")
|
||||
private java.math.BigDecimal auxiliaryCostTotal;
|
||||
/**相对制费成本*/
|
||||
@Excel(name = "结构单位其他费用(累积)", width = 15)
|
||||
@ApiModelProperty(value = "相对制费成本")
|
||||
private java.math.BigDecimal otherCostTotal;
|
||||
/**相对制费成本*/
|
||||
@Excel(name = "单位总成本(累积)", width = 15)
|
||||
@ApiModelProperty(value = "相对制费成本")
|
||||
private java.math.BigDecimal totalStandardCost;
|
||||
// /**总材料成本*/
|
||||
// @Excel(name = "采购价格(合计)", width = 15,type = 4)
|
||||
// @ApiModelProperty(value = "总材料成本")
|
||||
// private java.math.BigDecimal materialCostTotal;
|
||||
/**总其他成本*/
|
||||
@Excel(name = "最新开票金额(单价)", width = 20,type = 4)
|
||||
@ApiModelProperty(value = "最新开票金额(单价)")
|
||||
private java.math.BigDecimal invoicePrice;
|
||||
/**总其他成本*/
|
||||
@Excel(name = "最新开票价格(合计)", width = 20,type = 4)
|
||||
@ApiModelProperty(value = "最新开票价格(合计)")
|
||||
private java.math.BigDecimal invoiceTotal;
|
||||
/**总其他成本*/
|
||||
@Excel(name = "开票金额合计与采购价格合计之差", width = 20,type = 4)
|
||||
@ApiModelProperty(value = "开票金额合计与采购价格合计之差")
|
||||
private java.math.BigDecimal invoiceDiff;
|
||||
/**相对用量*/
|
||||
// @Excel(name = "相对用量", width = 15)
|
||||
// @ApiModelProperty(value = "相对用量")
|
||||
// private java.math.BigDecimal relativeDosage;
|
||||
// /**相对材料成本*/
|
||||
// @Excel(name = "相对材料成本", width = 15)
|
||||
// @ApiModelProperty(value = "相对材料成本")
|
||||
// private java.math.BigDecimal materialCostRelative;
|
||||
|
||||
/**相对总成本*/
|
||||
// @Excel(name = "相对总成本", width = 15)
|
||||
// @ApiModelProperty(value = "相对总成本")
|
||||
// private java.math.BigDecimal totalCostRelative;
|
||||
/**创建时间*/
|
||||
@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private java.util.Date createdTime;
|
||||
/**价格类型*/
|
||||
//@Excel(name = "价格类型", width = 15)
|
||||
@ApiModelProperty(value = "价格类型")
|
||||
private java.lang.String pricetype;
|
||||
|
||||
|
||||
|
||||
}
|
||||
+146
@@ -0,0 +1,146 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_standard_version
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-08
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@TableName("app_scene_cost_standard_version")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "app_scene_cost_standard_version对象", description = "app_scene_cost_standard_version")
|
||||
public class AppSceneCostStandardVersion implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键id")
|
||||
private Integer id;
|
||||
/**
|
||||
* 项目名称
|
||||
*/
|
||||
@Excel(name = "项目名称", width = 15)
|
||||
@ApiModelProperty(value = "项目名称")
|
||||
private String projectname;
|
||||
/**
|
||||
* 阶段
|
||||
*/
|
||||
@Excel(name = "阶段", width = 15)
|
||||
@ApiModelProperty(value = "阶段")
|
||||
private String stage;
|
||||
/**
|
||||
* 日期
|
||||
*/
|
||||
@Excel(name = "日期", width = 15)
|
||||
@ApiModelProperty(value = "日期")
|
||||
private String date;
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
@Excel(name = "版本号", width = 15)
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private String version;
|
||||
/**
|
||||
* 工厂
|
||||
*/
|
||||
@Excel(name = "工厂", width = 15)
|
||||
@ApiModelProperty(value = "工厂")
|
||||
private String werks;
|
||||
/**
|
||||
* 物料号
|
||||
*/
|
||||
@Excel(name = "物料号", width = 15)
|
||||
@ApiModelProperty(value = "物料号")
|
||||
private String matnr;
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
@Excel(name = "状态", width = 15)
|
||||
@ApiModelProperty(value = "状态")
|
||||
private String status;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createdtime;
|
||||
/**
|
||||
* 完成时间
|
||||
*/
|
||||
@Excel(name = "完成时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "完成时间")
|
||||
private Date finishtime;
|
||||
/**
|
||||
* batchname
|
||||
*/
|
||||
@Excel(name = "batchname", width = 15)
|
||||
@ApiModelProperty(value = "batchname")
|
||||
private String batchname;
|
||||
/**
|
||||
* userid
|
||||
*/
|
||||
@Excel(name = "userid", width = 15)
|
||||
@ApiModelProperty(value = "userid")
|
||||
private Integer userid;
|
||||
/**
|
||||
* 图号
|
||||
*/
|
||||
@Excel(name = "图号", width = 15)
|
||||
@ApiModelProperty(value = "图号")
|
||||
private String graphicnumber;
|
||||
/**
|
||||
* projectpspid
|
||||
*/
|
||||
@Excel(name = "projectpspid", width = 15)
|
||||
@ApiModelProperty(value = "projectpspid")
|
||||
private String projectpspid;
|
||||
/**
|
||||
* projectcate
|
||||
*/
|
||||
@Excel(name = "projectcate", width = 15)
|
||||
@ApiModelProperty(value = "projectcate")
|
||||
private String projectcate;
|
||||
/**
|
||||
* keylost
|
||||
*/
|
||||
@Excel(name = "keylost", width = 15)
|
||||
@ApiModelProperty(value = "keylost")
|
||||
private Integer keylost;
|
||||
/**
|
||||
* mknum
|
||||
*/
|
||||
@Excel(name = "mknum", width = 15)
|
||||
@ApiModelProperty(value = "mknum")
|
||||
private Integer mknum;
|
||||
/**
|
||||
* 年份
|
||||
*/
|
||||
@Excel(name = "年份", width = 15)
|
||||
@ApiModelProperty(value = "年份")
|
||||
private String versionYear;
|
||||
}
|
||||
+73
@@ -0,0 +1,73 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.enums;
|
||||
|
||||
/**
|
||||
* @Classname StandardStageEnum
|
||||
* @Description 阶段枚举
|
||||
* @Version 1.0.0
|
||||
* @Date 2024/6/18 9:51
|
||||
* @Created wangqiong
|
||||
*/
|
||||
public enum CostCountStatusEnum {
|
||||
|
||||
NotExecute("NotExecute", "未执行", 0), Executing("Executing", "计算中", 1), ExecutedFinished("ExecutedFinished", "计算完成", 2), ExecutedError("ExecutedError", "出错中止", 3);
|
||||
private final String code;
|
||||
private final String name;
|
||||
private final Integer value;
|
||||
|
||||
CostCountStatusEnum(String code, String name, Integer value) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public Integer getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据code获取text
|
||||
*
|
||||
* @param codeNo
|
||||
* @return
|
||||
*/
|
||||
public static String getTextByCode(String codeNo) {
|
||||
for (CostCountStatusEnum value : CostCountStatusEnum.values()) {
|
||||
if (value.getCode().equals(codeNo)) {
|
||||
return value.name();
|
||||
}
|
||||
}
|
||||
return codeNo.toString();
|
||||
}
|
||||
|
||||
public static String getTextByValue(Integer indexNo) {
|
||||
for (CostCountStatusEnum value : CostCountStatusEnum.values()) {
|
||||
if (value.getValue().equals(indexNo)) {
|
||||
return value.name();
|
||||
}
|
||||
}
|
||||
return indexNo.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据text获取code
|
||||
*
|
||||
* @param name
|
||||
* @return
|
||||
*/
|
||||
public static String getCodeByName(String name) {
|
||||
for (CostCountStatusEnum value : CostCountStatusEnum.values()) {
|
||||
if (value.name().equals(name)) {
|
||||
return value.name();
|
||||
}
|
||||
}
|
||||
return name;
|
||||
}
|
||||
}
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.enums;
|
||||
|
||||
/**
|
||||
* 预测模型状态枚举
|
||||
*/
|
||||
public enum CostModelStatusEnum {
|
||||
/**
|
||||
* 草稿
|
||||
*/
|
||||
Draft("Draft", "草稿"),
|
||||
/**
|
||||
* 已删除
|
||||
*/
|
||||
Delete("Deleted", "已删除"),
|
||||
/**
|
||||
* 已发布
|
||||
*/
|
||||
Published("Published", "已发布");
|
||||
|
||||
private final String code;
|
||||
private final String name;
|
||||
|
||||
CostModelStatusEnum(String code, String name) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据code获取text
|
||||
*
|
||||
* @param codeNo
|
||||
* @return
|
||||
*/
|
||||
public static String getTextByCode(String codeNo) {
|
||||
for (CostModelStatusEnum value : CostModelStatusEnum.values()) {
|
||||
if (value.getCode().equals(codeNo)) {
|
||||
return value.name();
|
||||
}
|
||||
}
|
||||
return codeNo.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据text获取code
|
||||
*
|
||||
* @param name
|
||||
* @return
|
||||
*/
|
||||
public static String getCodeByName(String name) {
|
||||
for (CostModelStatusEnum value : CostModelStatusEnum.values()) {
|
||||
if (value.name().equals(name)) {
|
||||
return value.name();
|
||||
}
|
||||
}
|
||||
return name;
|
||||
}
|
||||
}
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.enums;
|
||||
|
||||
/**
|
||||
* @Classname StandardStageEnum
|
||||
* @Description 阶段枚举
|
||||
* @Version 1.0.0
|
||||
* @Date 2024/6/18 9:51
|
||||
* @Created wangqiong
|
||||
*/
|
||||
public enum FeeTypeEnum {
|
||||
|
||||
LaborCost("LaborCost", "人工成本"), MaterialCost("MaterialCost", "物料成本"), EquipmentFee("EquipmentFee", "设备费"), SupplyMaterialFee("SupplyMaterialFee", "辅料费"), DriverFee("DriverFee", "水电费"), OtherFee("OtherFee", "其他费用"), LogisticsFee("LogisticsFee", "物流费"), StandardCost("StandardCost", "标准成本");
|
||||
|
||||
private final String code;
|
||||
private final String name;
|
||||
|
||||
FeeTypeEnum(String code, String name) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据code获取text
|
||||
*
|
||||
* @param codeNo
|
||||
* @return
|
||||
*/
|
||||
public static String getTextByCode(String codeNo) {
|
||||
for (FeeTypeEnum value : FeeTypeEnum.values()) {
|
||||
if (value.getCode().equals(codeNo)) {
|
||||
return value.name();
|
||||
}
|
||||
}
|
||||
return codeNo.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据text获取code
|
||||
*
|
||||
* @param name
|
||||
* @return
|
||||
*/
|
||||
public static String getCodeByName(String name) {
|
||||
for (FeeTypeEnum value : FeeTypeEnum.values()) {
|
||||
if (value.name().equals(name)) {
|
||||
return value.name();
|
||||
}
|
||||
}
|
||||
return name;
|
||||
}
|
||||
}
|
||||
+69
@@ -0,0 +1,69 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.enums;
|
||||
|
||||
/**
|
||||
* @Classname StandardStageEnum
|
||||
* @Description 阶段枚举
|
||||
* @Version 1.0.0
|
||||
* @Date 2024/6/18 9:51
|
||||
* @Created wangqiong
|
||||
*/
|
||||
public enum HourOrRateTypeEnum {
|
||||
|
||||
LaborHour("LaborHour", "人员工时"),
|
||||
LaborHourRate("LaborHourRate", "人员小时费率"),
|
||||
MaterialUnitPrice("MaterialUnitPrice", "物料采购单价"),
|
||||
EquipmentHour("EquipmentHour", "设备工时"),
|
||||
EquipmentHourRate("EquipmentHourRate", "设备小时费率"),
|
||||
SupplyMaterialHour("SupplyMaterialHour", "辅料工时"),
|
||||
SupplyMaterialHourRate("SupplyMaterialHourRate", "辅料小时费率"),
|
||||
DriverHour("DriverHour", "燃动工时"),
|
||||
DriverHourRate("DriverHourRate", "燃动小时费率"),
|
||||
OtherHour("OtherHour", "其他工时"),
|
||||
OtherHourRate("OtherHourRate", "其他小时费率");
|
||||
|
||||
private final String code;
|
||||
private final String name;
|
||||
|
||||
HourOrRateTypeEnum(String code, String name) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据code获取text
|
||||
*
|
||||
* @param codeNo
|
||||
* @return
|
||||
*/
|
||||
public static String getTextByCode(String codeNo) {
|
||||
for (HourOrRateTypeEnum value : HourOrRateTypeEnum.values()) {
|
||||
if (value.getCode().equals(codeNo)) {
|
||||
return value.name();
|
||||
}
|
||||
}
|
||||
return codeNo.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据text获取code
|
||||
*
|
||||
* @param name
|
||||
* @return
|
||||
*/
|
||||
public static String getCodeByName(String name) {
|
||||
for (HourOrRateTypeEnum value : HourOrRateTypeEnum.values()) {
|
||||
if (value.name().equals(name)) {
|
||||
return value.name();
|
||||
}
|
||||
}
|
||||
return name;
|
||||
}
|
||||
}
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.enums;
|
||||
|
||||
/**
|
||||
* @Classname StandardStageEnum
|
||||
* @Description 阶段枚举
|
||||
* @Version 1.0.0
|
||||
* @Date 2024/6/18 9:51
|
||||
* @Created wangqiong
|
||||
*/
|
||||
public enum StandardStageEnum {
|
||||
INIT("A", "初始"), FIRST_BATCH("B", "首批"), MASS_PRODUCTION("C", "量产");
|
||||
|
||||
private final String code;
|
||||
private final String text;
|
||||
|
||||
StandardStageEnum(String code, String text) {
|
||||
this.code = code;
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getText() {
|
||||
return text;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据code获取text
|
||||
*
|
||||
* @param codeNo
|
||||
* @return
|
||||
*/
|
||||
public static String getTextByCode(String codeNo) {
|
||||
for (StandardStageEnum value : StandardStageEnum.values()) {
|
||||
if (value.getCode().equals(codeNo)) {
|
||||
return value.getText();
|
||||
}
|
||||
}
|
||||
return codeNo.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据text获取code
|
||||
*
|
||||
* @param textStr
|
||||
* @return
|
||||
*/
|
||||
public static String getCodeByText(String textStr) {
|
||||
for (StandardStageEnum value : StandardStageEnum.values()) {
|
||||
if (value.getText().equals(textStr)) {
|
||||
return value.getText();
|
||||
}
|
||||
}
|
||||
return textStr;
|
||||
}
|
||||
}
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.enums;
|
||||
|
||||
/**
|
||||
* @Classname StandardStageEnum
|
||||
* @Description 阶段枚举
|
||||
* @Version 1.0.0
|
||||
* @Date 2024/6/18 9:51
|
||||
* @Created wangqiong
|
||||
*/
|
||||
public enum TotalCostEnum {
|
||||
|
||||
|
||||
TotalLaborCost("TotalLaborCost", "总人工成本"), TotalMaterialCost("TotalMaterialCost", "总物料成本"), TotalEquipmentFee("TotalEquipmentFee", "总设备费"), TotalSupplyMaterialFee("TotalSupplyMaterialFee", "总辅料费"), TotalDriverFee("TotalDriverFee", "总水电费"), TotalOtherFee("TotalOtherFee", "总其他费用"), TotalLogisticsFee("TotalLogisticsFee", "总物流费"), TotalStandardCost("TotalStandardCost", "总标准成本");
|
||||
|
||||
|
||||
private final String code;
|
||||
private final String name;
|
||||
|
||||
TotalCostEnum(String code, String name) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据code获取text
|
||||
*
|
||||
* @param codeNo
|
||||
* @return
|
||||
*/
|
||||
public static String getTextByCode(String codeNo) {
|
||||
for (TotalCostEnum value : TotalCostEnum.values()) {
|
||||
if (value.getCode().equals(codeNo)) {
|
||||
return value.name();
|
||||
}
|
||||
}
|
||||
return codeNo.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据text获取code
|
||||
*
|
||||
* @param name
|
||||
* @return
|
||||
*/
|
||||
public static String getCodeByName(String name) {
|
||||
for (TotalCostEnum value : TotalCostEnum.values()) {
|
||||
if (value.name().equals(name)) {
|
||||
return value.name();
|
||||
}
|
||||
}
|
||||
return name;
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostActual;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_actual
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface AppSceneCostActualMapper extends BaseMapper<AppSceneCostActual> {
|
||||
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostAufnrMatnr;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_aufnr_matnr
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-05
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface AppSceneCostAufnrMatnrMapper extends BaseMapper<AppSceneCostAufnrMatnr> {
|
||||
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostBomRelevancy;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.BomTreeVo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_bom_relevancy
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-08
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface AppSceneCostBomRelevancyMapper extends BaseMapper<AppSceneCostBomRelevancy> {
|
||||
@Select("WITH RECURSIVE BOM_Tree AS (\n" +
|
||||
" SELECT werks,matnr, idnrk, menge/bmeng as menge,1.000000 as pmenge,menge/bmeng as topmenge, 1 AS depth,cast( ROW_NUMBER() OVER (partition by matnr ORDER BY posnr ) AS CHAR ) AS layer,'00000000000000000000' as player \n" +
|
||||
" FROM app_scene_cost_bom_relevancy\n" +
|
||||
" WHERE matnr = #{parentId} and werks= #{werk}\n" +
|
||||
" UNION ALL\n" +
|
||||
" SELECT b.werks,b.matnr, b.idnrk, b.menge/b.bmeng as menge, BOM_Tree.menge as pmenge,BOM_Tree.topmenge*(b.menge/b.bmeng) AS topmenge,BOM_Tree.depth + 1 as depth,concat( BOM_Tree.layer, '.', b.layer ) AS layer,BOM_Tree.layer as player \n" +
|
||||
" FROM ( SELECT werks,matnr, idnrk, menge, bmeng, cast( ROW_NUMBER() OVER (partition by matnr,werks ORDER BY posnr ) AS CHAR ) AS layer FROM app_scene_cost_bom_relevancy ) b\n" +
|
||||
" JOIN BOM_Tree ON b.matnr = BOM_Tree.idnrk and b.werks=BOM_Tree.werks \n" +
|
||||
")\n" +
|
||||
"SELECT werks,matnr, idnrk, menge,pmenge,topmenge, depth,layer,player FROM BOM_Tree")
|
||||
List<BomTreeVo> findChildrenByParentId(String parentId,String werk);
|
||||
|
||||
|
||||
@Select("${selectSql}")
|
||||
JSONObject customSelectOne(@Param("selectSql") String selectSql);
|
||||
|
||||
@Select("${SelectBlobModel}")
|
||||
String customSelectBlobModelJson(@Param("SelectBlobModel") String SelectBlobModel);
|
||||
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostCount;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_count
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-07-29
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface AppSceneCostCountMapper extends BaseMapper<AppSceneCostCount> {
|
||||
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostHourRate;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_hour_rate
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-08-02
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface AppSceneCostHourRateMapper extends BaseMapper<AppSceneCostHourRate> {
|
||||
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostInvoice;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_invoice
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-22
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface AppSceneCostInvoiceMapper extends BaseMapper<AppSceneCostInvoice> {
|
||||
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMaterial;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
//import com.zzsmart.qomo.modules.demo..entity.AppSceneCostMaterial;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_material
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface AppSceneCostMaterialMapper extends BaseMapper<AppSceneCostMaterial> {
|
||||
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningAufnr;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_aufnr
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface AppSceneCostMiningAufnrMapper extends BaseMapper<AppSceneCostMiningAufnr> {
|
||||
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningDiff;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_diff
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface AppSceneCostMiningDiffMapper extends BaseMapper<AppSceneCostMiningDiff> {
|
||||
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningLabor;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_labor
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-11-05
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface AppSceneCostMiningLaborMapper extends BaseMapper<AppSceneCostMiningLabor> {
|
||||
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningMaterial;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_material
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface AppSceneCostMiningMaterialMapper extends BaseMapper<AppSceneCostMiningMaterial> {
|
||||
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningReason;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_reason
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface AppSceneCostMiningReasonMapper extends BaseMapper<AppSceneCostMiningReason> {
|
||||
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningResult;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_result
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface AppSceneCostMiningResultMapper extends BaseMapper<AppSceneCostMiningResult> {
|
||||
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostModel;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_model
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-07-29
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface AppSceneCostModelMapper extends BaseMapper<AppSceneCostModel> {
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostPartMissingInfo;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_part_missing_info
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-08-02
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface AppSceneCostPartMissingInfoMapper extends BaseMapper<AppSceneCostPartMissingInfo> {
|
||||
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostProductProcessMaintenance;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_product_process_maintenance
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-08
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface AppSceneCostProductProcessMaintenanceMapper extends BaseMapper<AppSceneCostProductProcessMaintenance> {
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostPurchaseEvaluate;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_purchase_evaluate
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-08-02
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface AppSceneCostPurchaseEvaluateMapper extends BaseMapper<AppSceneCostPurchaseEvaluate> {
|
||||
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostPurchaseRecord;
|
||||
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_purchase_record
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-08
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface AppSceneCostPurchaseRecordMapper extends BaseMapper<AppSceneCostPurchaseRecord> {
|
||||
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostResultValue;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_result_value
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-07-23
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface AppSceneCostResultValueMapper extends BaseMapper<AppSceneCostResultValue> {
|
||||
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapAfru;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_afru
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface AppSceneCostSapAfruMapper extends BaseMapper<AppSceneCostSapAfru> {
|
||||
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapEine;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_eine
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-21
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface AppSceneCostSapEineMapper extends BaseMapper<AppSceneCostSapEine> {
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user