Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
58985badb2 | ||
|
|
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 |
@@ -1,12 +1,17 @@
|
|||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
<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>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.zzsmart.qomo</groupId>
|
<groupId>com.zzsmart.qomo</groupId>
|
||||||
<artifactId>qomo-kn-forecast</artifactId>
|
<artifactId>qomo-kn-forecast</artifactId>
|
||||||
<version>${revision}</version>
|
<version>${revision}</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>QOMO FORECAST</name>
|
<name>QOMO Cost Manage</name>
|
||||||
|
<modules>
|
||||||
|
<module>qomo-kn-cost-manage-start</module>
|
||||||
|
<module>qomo-kn-cost-manage</module>
|
||||||
|
</modules>
|
||||||
<developers>
|
<developers>
|
||||||
<developer>
|
<developer>
|
||||||
<name>武汉中制智造</name>
|
<name>武汉中制智造</name>
|
||||||
@@ -24,13 +29,8 @@
|
|||||||
<properties>
|
<properties>
|
||||||
<revision>2.0.0-SNAPSHOT</revision>
|
<revision>2.0.0-SNAPSHOT</revision>
|
||||||
<adp.version>2.0.0-SNAPSHOT</adp.version>
|
<adp.version>2.0.0-SNAPSHOT</adp.version>
|
||||||
|
<dmp.version>2.0.0-SNAPSHOT</dmp.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<modules>
|
|
||||||
<module>qomo-kn-cost-manage-start</module>
|
|
||||||
<module>qomo-kn-cost-manage</module>
|
|
||||||
</modules>
|
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
<id>zzzz</id>
|
<id>zzzz</id>
|
||||||
@@ -98,9 +98,48 @@
|
|||||||
<artifactId>qomo-kn-cost-manage</artifactId>
|
<artifactId>qomo-kn-cost-manage</artifactId>
|
||||||
<version>${revision}</version>
|
<version>${revision}</version>
|
||||||
</dependency>
|
</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>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
|
||||||
<!-- 环境 -->
|
<!-- 环境 -->
|
||||||
<profiles>
|
<profiles>
|
||||||
<!-- 开发 -->
|
<!-- 开发 -->
|
||||||
@@ -175,4 +214,4 @@
|
|||||||
</profile>
|
</profile>
|
||||||
<!-- SpringCloud运行环境 -->
|
<!-- SpringCloud运行环境 -->
|
||||||
</profiles>
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
@@ -2,13 +2,12 @@
|
|||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
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">
|
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>
|
<parent>
|
||||||
<groupId>com.zzsmart.qomo</groupId>
|
<groupId>com.zzsmart.qomo</groupId>
|
||||||
<artifactId>qomo-kn-forecast</artifactId>
|
<artifactId>qomo-kn-forecast</artifactId>
|
||||||
<version>${revision}</version>
|
<version>${revision}</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
|
|
||||||
<artifactId>qomo-kn-cost-manage-start</artifactId>
|
<artifactId>qomo-kn-cost-manage-start</artifactId>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
@@ -52,4 +51,52 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</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>
|
</project>
|
||||||
+6
-4
@@ -2,6 +2,7 @@ package com.zzsmart.qomo.kn.cost.manage;
|
|||||||
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.jeecg.common.util.oConvertUtils;
|
import org.jeecg.common.util.oConvertUtils;
|
||||||
|
import org.mybatis.spring.annotation.MapperScan;
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||||
@@ -14,11 +15,12 @@ import java.net.InetAddress;
|
|||||||
import java.net.UnknownHostException;
|
import java.net.UnknownHostException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 单体启动类
|
* 单体启动类
|
||||||
* 报错提醒: 未集成mongo报错,可以打开启动类上面的注释 exclude={MongoAutoConfiguration.class}
|
* 报错提醒: 未集成mongo报错,可以打开启动类上面的注释 exclude={MongoAutoConfiguration.class}
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@SpringBootApplication (scanBasePackages ={"org.jeecg", "com.zzsmart.qomo"})
|
@SpringBootApplication(scanBasePackages = {"org.jeecg", "com.zzsmart.qomo"})
|
||||||
|
//@MapperScan({"com.zzsmart.qomo.kn.cost.manage.mapper"})
|
||||||
//@EnableAutoConfiguration(exclude={MongoAutoConfiguration.class})
|
//@EnableAutoConfiguration(exclude={MongoAutoConfiguration.class})
|
||||||
@EnableAsync
|
@EnableAsync
|
||||||
public class QomoCostManageApplication extends SpringBootServletInitializer {
|
public class QomoCostManageApplication extends SpringBootServletInitializer {
|
||||||
|
|||||||
@@ -3,19 +3,19 @@ v2:
|
|||||||
xnljmap:
|
xnljmap:
|
||||||
#win服务器 本地 注意!! 记住这个结尾有一个/
|
#win服务器 本地 注意!! 记住这个结尾有一个/
|
||||||
oss: file:/data/qomo-boot/oss/
|
oss: file:/data/qomo-boot/oss/
|
||||||
# oss: file:D:/upload/
|
# oss: file:D:/upload/
|
||||||
#linux服务器
|
#linux服务器
|
||||||
#oss: file:/home/webapps/oss/
|
#oss: file:/home/webapps/oss/
|
||||||
#虚拟路径映射路径 end
|
#虚拟路径映射路径 end
|
||||||
#本地存放地址 注意!! 记住这个结尾没有/
|
#本地存放地址 注意!! 记住这个结尾没有/
|
||||||
fileurl: /data/qomo-boot/oss
|
fileurl: /data/qomo-boot/oss
|
||||||
# fileurl: D:/upload
|
# fileurl: D:/upload
|
||||||
#http://127.0.0.1:8080/oss/{yy}/2022-12-22/c83a77ae134a540c30daa6a0666fa945.md
|
#http://127.0.0.1:8080/oss/{yy}/2022-12-22/c83a77ae134a540c30daa6a0666fa945.md
|
||||||
httpurl: /qomo/
|
httpurl: /qomo/
|
||||||
defaultFormat: .png
|
defaultFormat: .png
|
||||||
|
|
||||||
server:
|
server:
|
||||||
port: 8095
|
port: 8099
|
||||||
tomcat:
|
tomcat:
|
||||||
max-swallow-size: -1
|
max-swallow-size: -1
|
||||||
error:
|
error:
|
||||||
@@ -154,8 +154,7 @@ spring:
|
|||||||
prefer-file-system-access: false
|
prefer-file-system-access: false
|
||||||
# 设置ftl文件路径
|
# 设置ftl文件路径
|
||||||
template-loader-path:
|
template-loader-path:
|
||||||
- classpath:/template
|
- classpath:/templates
|
||||||
# - d:/data
|
|
||||||
template_update_delay: 0
|
template_update_delay: 0
|
||||||
# 设置静态文件路径,js,css等
|
# 设置静态文件路径,js,css等
|
||||||
mvc:
|
mvc:
|
||||||
@@ -206,14 +205,16 @@ spring:
|
|||||||
# 通过connectProperties属性来打开mergeSql功能;慢SQL记录
|
# 通过connectProperties属性来打开mergeSql功能;慢SQL记录
|
||||||
connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
|
connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
|
||||||
datasource:
|
datasource:
|
||||||
master:
|
# master:
|
||||||
url: jdbc:mysql://121.40.189.20:3306/knne?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=true&serverTimezone=Asia/Shanghai
|
|
||||||
username: root
|
|
||||||
password: YMzc157#
|
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
||||||
# 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
|
# 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: root
|
# username: zzzz
|
||||||
# password: root
|
# 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:
|
#multi-datasource1:
|
||||||
#url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
#url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
||||||
@@ -221,13 +222,21 @@ spring:
|
|||||||
#password: root
|
#password: root
|
||||||
#driver-class-name: com.mysql.cj.jdbc.Driver
|
#driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
#redis 配置
|
#redis 配置
|
||||||
redis:
|
# redis:
|
||||||
database: 5
|
# database: 5
|
||||||
|
# host: 121.40.189.20
|
||||||
|
# port: 6389
|
||||||
|
# redis:
|
||||||
|
# database: 9
|
||||||
# host: 192.168.50.9
|
# host: 192.168.50.9
|
||||||
# port: 7379
|
# port: 7379
|
||||||
# password: 'zzboard'
|
# password: 'zzboard'
|
||||||
host: 121.40.189.20
|
# main:
|
||||||
port: 6389
|
# allow-circular-references: true
|
||||||
|
redis:
|
||||||
|
database: 10
|
||||||
|
host: localhost
|
||||||
|
port: 6379
|
||||||
main:
|
main:
|
||||||
allow-circular-references: true
|
allow-circular-references: true
|
||||||
|
|
||||||
@@ -235,7 +244,7 @@ spring:
|
|||||||
rabbitmq:
|
rabbitmq:
|
||||||
host: 192.168.50.9
|
host: 192.168.50.9
|
||||||
port: 5672
|
port: 5672
|
||||||
virtual-host: /qomoflow-dev
|
virtual-host: /qomoflow-standardcost
|
||||||
username: admin
|
username: admin
|
||||||
password: kncloud
|
password: kncloud
|
||||||
connection-timeout: 5000
|
connection-timeout: 5000
|
||||||
@@ -259,10 +268,12 @@ mybatis-plus:
|
|||||||
table-underline: true
|
table-underline: true
|
||||||
configuration:
|
configuration:
|
||||||
# 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
|
# 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
|
||||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
#log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
# log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
|
# log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
|
||||||
# 返回类型为Map,显示null对应的字段
|
# 返回类型为Map,显示null对应的字段
|
||||||
call-setters-on-nulls: true
|
call-setters-on-nulls: true
|
||||||
|
security:
|
||||||
|
enabled: false
|
||||||
#jeecg专用配置
|
#jeecg专用配置
|
||||||
minidao:
|
minidao:
|
||||||
base-package: org.jeecg.modules.jmreport.*,org.jeecg.modules.drag.*
|
base-package: org.jeecg.modules.jmreport.*,org.jeecg.modules.drag.*
|
||||||
@@ -285,8 +296,8 @@ jeecg:
|
|||||||
#webapp文件路径
|
#webapp文件路径
|
||||||
webapp: /opt/webapp
|
webapp: /opt/webapp
|
||||||
shiro:
|
shiro:
|
||||||
# excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**,/api/getUserInfo,/sys/sysDepart/**,/taskSocket/**,/flowSocket/**
|
excludeUrls: /api/internalService/**,/test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**,/api/getUserInfo,/sys/sysDepart/**,/taskSocket/**,/flowSocket/**,/dataCheck/**
|
||||||
excludeUrls: /**/**,/**/**/**
|
# excludeUrls: /**/**,/**/**/**
|
||||||
|
|
||||||
#阿里云oss存储和大鱼短信秘钥配置
|
#阿里云oss存储和大鱼短信秘钥配置
|
||||||
oss:
|
oss:
|
||||||
@@ -294,11 +305,6 @@ jeecg:
|
|||||||
secretKey: ??
|
secretKey: ??
|
||||||
endpoint: oss-cn-beijing.aliyuncs.com
|
endpoint: oss-cn-beijing.aliyuncs.com
|
||||||
bucketName: jeecgdev
|
bucketName: jeecgdev
|
||||||
minio:
|
|
||||||
minio_url: http://192.168.50.102:9000
|
|
||||||
minio_name: admin
|
|
||||||
minio_pass: minioadmin
|
|
||||||
bucketName: bucket803
|
|
||||||
# ElasticSearch 6设置
|
# ElasticSearch 6设置
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
cluster-name: elasticsearch-cluster
|
cluster-name: elasticsearch-cluster
|
||||||
@@ -308,14 +314,15 @@ jeecg:
|
|||||||
task-data-struct-index: task_data_struct_dev/_doc
|
task-data-struct-index: task_data_struct_dev/_doc
|
||||||
task-data-temp-index: task_data_temp_dev/_doc
|
task-data-temp-index: task_data_temp_dev/_doc
|
||||||
task-log-index: task_log_dev/_doc
|
task-log-index: task_log_dev/_doc
|
||||||
|
task-record-index: clean_data_record/_doc
|
||||||
# 在线预览文件服务器地址配置
|
# 在线预览文件服务器地址配置
|
||||||
file-view-domain: http://fileview.jeecg.com
|
file-view-domain: http://fileview.jeecg.com
|
||||||
# minio文件上传
|
# minio文件上传
|
||||||
# minio:
|
minio:
|
||||||
# minio_url: http://minio.jeecg.com
|
minio_url: http://minio.jeecg.com
|
||||||
# minio_name: ??
|
minio_name: ??
|
||||||
# minio_pass: ??
|
minio_pass: ??
|
||||||
# bucketName: otatest
|
bucketName: otatest
|
||||||
#大屏报表参数设置
|
#大屏报表参数设置
|
||||||
jmreport:
|
jmreport:
|
||||||
mode: dev
|
mode: dev
|
||||||
@@ -438,19 +445,18 @@ flowable:
|
|||||||
Qomo:
|
Qomo:
|
||||||
version: @project.version@
|
version: @project.version@
|
||||||
|
|
||||||
modelPath: /opt/services/deploy-jars/algo/model
|
modelPath: /opt/deploy/qomo/backend/algo/model
|
||||||
seaTunnelHome: /opt/service/apache-seatunnel-2.3.4
|
seaTunnelHome: /opt/service/apache-seatunnel-2.3.4
|
||||||
hiveMetastoreUri: thrift://192.168.50.102:9083
|
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:
|
minio:
|
||||||
server: http://192.168.50.102
|
server: http://192.168.50.9
|
||||||
port: 9000
|
port: 9100
|
||||||
access-key: admin
|
access-key: admin
|
||||||
secret-key: minioadmin
|
secret-key: qm123456
|
||||||
bucketName: bucket1
|
|
||||||
|
|
||||||
condaEnv: py310
|
condaEnv: py310
|
||||||
|
tikaServerUrl: http://192.168.50.99:8099/qomo-tika/
|
||||||
analysis:
|
|
||||||
consistency:
|
|
||||||
url: http://192.168.50.9:1314/analysis
|
|
||||||
+19
-19
@@ -2,21 +2,13 @@
|
|||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
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">
|
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>
|
<parent>
|
||||||
<groupId>com.zzsmart.qomo</groupId>
|
<groupId>com.zzsmart.qomo</groupId>
|
||||||
<artifactId>qomo-kn-forecast</artifactId>
|
<artifactId>qomo-kn-forecast</artifactId>
|
||||||
<version>${revision}</version>
|
<version>${revision}</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
|
|
||||||
<artifactId>qomo-kn-cost-manage</artifactId>
|
<artifactId>qomo-kn-cost-manage</artifactId>
|
||||||
|
|
||||||
<properties>
|
|
||||||
<maven.compiler.source>8</maven.compiler.source>
|
|
||||||
<maven.compiler.target>8</maven.compiler.target>
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.qomo.boot</groupId>
|
<groupId>org.qomo.boot</groupId>
|
||||||
@@ -24,20 +16,28 @@
|
|||||||
<version>2.0.1-SNAPSHOT</version>
|
<version>2.0.1-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>com.google.auto.service</groupId>
|
||||||
<artifactId>spring-boot-test</artifactId>
|
<artifactId>auto-service</artifactId>
|
||||||
<scope>test</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>com.zzsmart.qomo</groupId>
|
||||||
<artifactId>junit</artifactId>
|
<artifactId>qomo-data-integration</artifactId>
|
||||||
<scope>test</scope>
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>com.zzsmart.hdp.hive</groupId>
|
||||||
|
<artifactId>hive-jdbc</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.baomidou</groupId>
|
<groupId>com.zzsmart.hdp.hive</groupId>
|
||||||
<artifactId>mybatis-plus-generator</artifactId>
|
<artifactId>hive-jdbc</artifactId>
|
||||||
<version>3.5.1</version>
|
<version>2.6.5.0-292</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.zzsmart.qomo</groupId>
|
||||||
|
<artifactId>qomo-data-selfReport</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
+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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
+180
@@ -0,0 +1,180 @@
|
|||||||
|
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<AppSceneCostCountVO>> 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);
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
+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);
|
||||||
|
// }
|
||||||
|
|
||||||
|
}
|
||||||
+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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
+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("layer");
|
||||||
|
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 appSceneCostStandardDetail) {
|
||||||
|
return super.exportXls(request, appSceneCostStandardDetail, 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
-180
@@ -1,180 +0,0 @@
|
|||||||
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.BudgetPrice;
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.service.IBudgetPriceService;
|
|
||||||
|
|
||||||
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: budget_price
|
|
||||||
* @Author: jeecg-boot
|
|
||||||
* @Date: 2024-06-11
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
@Api(tags="预算价格")
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("//budgetPrice")
|
|
||||||
@Slf4j
|
|
||||||
public class BudgetPriceController extends JeecgController<BudgetPrice, IBudgetPriceService> {
|
|
||||||
@Autowired
|
|
||||||
private IBudgetPriceService budgetPriceService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 分页列表查询
|
|
||||||
*
|
|
||||||
* @param budgetPrice
|
|
||||||
* @param pageNo
|
|
||||||
* @param pageSize
|
|
||||||
* @param req
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
//@AutoLog(value = "budget_price-分页列表查询")
|
|
||||||
@ApiOperation(value="budget_price-分页列表查询", notes="budget_price-分页列表查询")
|
|
||||||
@GetMapping(value = "/list")
|
|
||||||
public Result<IPage<BudgetPrice>> queryPageList(BudgetPrice budgetPrice,
|
|
||||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
||||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
|
||||||
HttpServletRequest req) {
|
|
||||||
QueryWrapper<BudgetPrice> queryWrapper = QueryGenerator.initQueryWrapper(budgetPrice, req.getParameterMap());
|
|
||||||
Page<BudgetPrice> page = new Page<BudgetPrice>(pageNo, pageSize);
|
|
||||||
IPage<BudgetPrice> pageList = budgetPriceService.page(page, queryWrapper);
|
|
||||||
return Result.OK(pageList);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 添加
|
|
||||||
*
|
|
||||||
* @param budgetPrice
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "budget_price-添加")
|
|
||||||
@ApiOperation(value="budget_price-添加", notes="budget_price-添加")
|
|
||||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:budget_price:add")
|
|
||||||
@PostMapping(value = "/add")
|
|
||||||
public Result<String> add(@RequestBody BudgetPrice budgetPrice) {
|
|
||||||
budgetPriceService.save(budgetPrice);
|
|
||||||
return Result.OK("添加成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 编辑
|
|
||||||
*
|
|
||||||
* @param budgetPrice
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "budget_price-编辑")
|
|
||||||
@ApiOperation(value="budget_price-编辑", notes="budget_price-编辑")
|
|
||||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:budget_price:edit")
|
|
||||||
@RequestMapping(value = "/edit", method = {RequestMethod.POST})
|
|
||||||
public Result<String> edit(@RequestBody BudgetPrice budgetPrice) {
|
|
||||||
budgetPriceService.updateById(budgetPrice);
|
|
||||||
return Result.OK("编辑成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id删除
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "budget_price-通过id删除")
|
|
||||||
@ApiOperation(value="budget_price-通过id删除", notes="budget_price-通过id删除")
|
|
||||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:budget_price:delete")
|
|
||||||
@DeleteMapping(value = "/delete")
|
|
||||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
|
||||||
budgetPriceService.removeById(id);
|
|
||||||
return Result.OK("删除成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除
|
|
||||||
*
|
|
||||||
* @param ids
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "budget_price-批量删除")
|
|
||||||
@ApiOperation(value="budget_price-批量删除", notes="budget_price-批量删除")
|
|
||||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:budget_price:deleteBatch")
|
|
||||||
@DeleteMapping(value = "/deleteBatch")
|
|
||||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
|
||||||
this.budgetPriceService.removeByIds(Arrays.asList(ids.split(",")));
|
|
||||||
return Result.OK("批量删除成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id查询
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
//@AutoLog(value = "budget_price-通过id查询")
|
|
||||||
@ApiOperation(value="budget_price-通过id查询", notes="budget_price-通过id查询")
|
|
||||||
@GetMapping(value = "/queryById")
|
|
||||||
public Result<BudgetPrice> queryById(@RequestParam(name="id",required=true) String id) {
|
|
||||||
BudgetPrice budgetPrice = budgetPriceService.getById(id);
|
|
||||||
if(budgetPrice==null) {
|
|
||||||
return Result.error("未找到对应数据");
|
|
||||||
}
|
|
||||||
return Result.OK(budgetPrice);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 导出excel
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param budgetPrice
|
|
||||||
*/
|
|
||||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:budget_price:exportXls")
|
|
||||||
@GetMapping(value = "/exportXls")
|
|
||||||
@ApiOperation(value="导出excel", notes="导出excel")
|
|
||||||
public ModelAndView exportXls(HttpServletRequest request, BudgetPrice budgetPrice) {
|
|
||||||
return super.exportXls(request, budgetPrice, BudgetPrice.class, "budget_price");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过excel导入数据
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param response
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@ApiOperation(value="excel导入数据", notes="excel导入数据")
|
|
||||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:budget_price:importExcel")
|
|
||||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
|
||||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
|
||||||
return super.importExcel(request, response, BudgetPrice.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
-182
@@ -1,182 +0,0 @@
|
|||||||
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.C7525cost;
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.service.IC7525costService;
|
|
||||||
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: c7525cost
|
|
||||||
* @Author: jeecg-boot
|
|
||||||
* @Date: 2024-06-06
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
@Api(tags="7525单价")
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("//c7525cost")
|
|
||||||
@Slf4j
|
|
||||||
public class C7525costController extends JeecgController<C7525cost, IC7525costService> {
|
|
||||||
@Autowired
|
|
||||||
private IC7525costService c7525costService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 分页列表查询
|
|
||||||
*
|
|
||||||
* @param c7525cost
|
|
||||||
* @param pageNo
|
|
||||||
* @param pageSize
|
|
||||||
* @param req
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
//@AutoLog(value = "c7525cost-分页列表查询")
|
|
||||||
@ApiOperation(value="c7525cost-分页列表查询", notes="c7525cost-分页列表查询")
|
|
||||||
@GetMapping(value = "/list")
|
|
||||||
public Result<IPage<C7525cost>> queryPageList(C7525cost c7525cost,
|
|
||||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
||||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
|
||||||
HttpServletRequest req) {
|
|
||||||
QueryWrapper<C7525cost> queryWrapper = QueryGenerator.initQueryWrapper(c7525cost, req.getParameterMap());
|
|
||||||
Page<C7525cost> page = new Page<C7525cost>(pageNo, pageSize);
|
|
||||||
IPage<C7525cost> pageList = c7525costService.page(page, queryWrapper);
|
|
||||||
return Result.OK(pageList);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 添加
|
|
||||||
*
|
|
||||||
* @param c7525cost
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "c7525cost-添加")
|
|
||||||
@ApiOperation(value="c7525cost-添加", notes="c7525cost-添加")
|
|
||||||
// @RequiresPermissions(":c7525cost:add")
|
|
||||||
@PostMapping(value = "/add")
|
|
||||||
public Result<String> add(@RequestBody C7525cost c7525cost) {
|
|
||||||
c7525costService.save(c7525cost);
|
|
||||||
return Result.OK("添加成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 编辑
|
|
||||||
*
|
|
||||||
* @param c7525cost
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "c7525cost-编辑")
|
|
||||||
@ApiOperation(value="c7525cost-编辑", notes="c7525cost-编辑")
|
|
||||||
// @RequiresPermissions(":c7525cost:edit")
|
|
||||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
|
||||||
public Result<String> edit(@RequestBody C7525cost c7525cost) {
|
|
||||||
c7525costService.updateById(c7525cost);
|
|
||||||
return Result.OK("编辑成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id删除
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "c7525cost-通过id删除")
|
|
||||||
@ApiOperation(value="c7525cost-通过id删除", notes="c7525cost-通过id删除")
|
|
||||||
// @RequiresPermissions(":c7525cost:delete")
|
|
||||||
@DeleteMapping(value = "/delete")
|
|
||||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
|
||||||
c7525costService.removeById(id);
|
|
||||||
return Result.OK("删除成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除
|
|
||||||
*
|
|
||||||
* @param ids
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "c7525cost-批量删除")
|
|
||||||
@ApiOperation(value="c7525cost-批量删除", notes="c7525cost-批量删除")
|
|
||||||
// @RequiresPermissions(":c7525cost:deleteBatch")
|
|
||||||
@DeleteMapping(value = "/deleteBatch")
|
|
||||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
|
||||||
this.c7525costService.removeByIds(Arrays.asList(ids.split(",")));
|
|
||||||
return Result.OK("批量删除成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id查询
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
//@AutoLog(value = "c7525cost-通过id查询")
|
|
||||||
@ApiOperation(value="c7525cost-通过id查询", notes="c7525cost-通过id查询")
|
|
||||||
@GetMapping(value = "/queryById")
|
|
||||||
public Result<C7525cost> queryById(@RequestParam(name="id",required=true) String id) {
|
|
||||||
C7525cost c7525cost = c7525costService.getById(id);
|
|
||||||
if(c7525cost==null) {
|
|
||||||
return Result.error("未找到对应数据");
|
|
||||||
}
|
|
||||||
return Result.OK(c7525cost);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 导出excel
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param c7525cost
|
|
||||||
*/
|
|
||||||
// @RequiresPermissions(":c7525cost:exportXls")
|
|
||||||
@ApiOperation(value="c7525cost-导出excel", notes="c7525cost-导出excel")
|
|
||||||
@RequestMapping(value = "/exportXls", method = RequestMethod.GET)
|
|
||||||
public ModelAndView exportXls(HttpServletRequest request, C7525cost c7525cost) {
|
|
||||||
return super.exportXls(request, c7525cost, C7525cost.class, "c7525cost");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过excel导入数据
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param response
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
// @RequiresPermissions(":c7525cost:importExcel")
|
|
||||||
@ApiOperation(value="c7525cost-通过excel导入数据", notes="c7525cost-通过excel导入数据")
|
|
||||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
|
||||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
|
||||||
return super.importExcel(request, response, C7525cost.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
-178
@@ -1,178 +0,0 @@
|
|||||||
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.CostCenter;
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.service.ICostCenterService;
|
|
||||||
|
|
||||||
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: cost_center
|
|
||||||
* @Author: jeecg-boot
|
|
||||||
* @Date: 2024-06-11
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
@Api(tags="成本中心")
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/com.zzsmart.qomo.kn.cost.manage/costCenter")
|
|
||||||
@Slf4j
|
|
||||||
public class CostCenterController extends JeecgController<CostCenter, ICostCenterService> {
|
|
||||||
@Autowired
|
|
||||||
private ICostCenterService costCenterService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 分页列表查询
|
|
||||||
*
|
|
||||||
* @param costCenter
|
|
||||||
* @param pageNo
|
|
||||||
* @param pageSize
|
|
||||||
* @param req
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
//@AutoLog(value = "cost_center-分页列表查询")
|
|
||||||
@ApiOperation(value="cost_center-分页列表查询", notes="cost_center-分页列表查询")
|
|
||||||
@GetMapping(value = "/list")
|
|
||||||
public Result<IPage<CostCenter>> queryPageList(CostCenter costCenter,
|
|
||||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
||||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
|
||||||
HttpServletRequest req) {
|
|
||||||
QueryWrapper<CostCenter> queryWrapper = QueryGenerator.initQueryWrapper(costCenter, req.getParameterMap());
|
|
||||||
Page<CostCenter> page = new Page<CostCenter>(pageNo, pageSize);
|
|
||||||
IPage<CostCenter> pageList = costCenterService.page(page, queryWrapper);
|
|
||||||
return Result.OK(pageList);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 添加
|
|
||||||
*
|
|
||||||
* @param costCenter
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "cost_center-添加")
|
|
||||||
@ApiOperation(value="cost_center-添加", notes="cost_center-添加")
|
|
||||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:cost_center:add")
|
|
||||||
@PostMapping(value = "/add")
|
|
||||||
public Result<String> add(@RequestBody CostCenter costCenter) {
|
|
||||||
costCenterService.save(costCenter);
|
|
||||||
return Result.OK("添加成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 编辑
|
|
||||||
*
|
|
||||||
* @param costCenter
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "cost_center-编辑")
|
|
||||||
@ApiOperation(value="cost_center-编辑", notes="cost_center-编辑")
|
|
||||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:cost_center:edit")
|
|
||||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
|
||||||
public Result<String> edit(@RequestBody CostCenter costCenter) {
|
|
||||||
costCenterService.updateById(costCenter);
|
|
||||||
return Result.OK("编辑成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id删除
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "cost_center-通过id删除")
|
|
||||||
@ApiOperation(value="cost_center-通过id删除", notes="cost_center-通过id删除")
|
|
||||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:cost_center:delete")
|
|
||||||
@DeleteMapping(value = "/delete")
|
|
||||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
|
||||||
costCenterService.removeById(id);
|
|
||||||
return Result.OK("删除成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除
|
|
||||||
*
|
|
||||||
* @param ids
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "cost_center-批量删除")
|
|
||||||
@ApiOperation(value="cost_center-批量删除", notes="cost_center-批量删除")
|
|
||||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:cost_center:deleteBatch")
|
|
||||||
@DeleteMapping(value = "/deleteBatch")
|
|
||||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
|
||||||
this.costCenterService.removeByIds(Arrays.asList(ids.split(",")));
|
|
||||||
return Result.OK("批量删除成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id查询
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
//@AutoLog(value = "cost_center-通过id查询")
|
|
||||||
@ApiOperation(value="cost_center-通过id查询", notes="cost_center-通过id查询")
|
|
||||||
@GetMapping(value = "/queryById")
|
|
||||||
public Result<CostCenter> queryById(@RequestParam(name="id",required=true) String id) {
|
|
||||||
CostCenter costCenter = costCenterService.getById(id);
|
|
||||||
if(costCenter==null) {
|
|
||||||
return Result.error("未找到对应数据");
|
|
||||||
}
|
|
||||||
return Result.OK(costCenter);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 导出excel
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param costCenter
|
|
||||||
*/
|
|
||||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:cost_center:exportXls")
|
|
||||||
@RequestMapping(value = "/exportXls")
|
|
||||||
public ModelAndView exportXls(HttpServletRequest request, CostCenter costCenter) {
|
|
||||||
return super.exportXls(request, costCenter, CostCenter.class, "cost_center");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过excel导入数据
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param response
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:cost_center:importExcel")
|
|
||||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
|
||||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
|
||||||
return super.importExcel(request, response, CostCenter.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
-20
@@ -1,20 +0,0 @@
|
|||||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
|
||||||
|
|
||||||
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>
|
|
||||||
* 物料bom 前端控制器
|
|
||||||
* </p>
|
|
||||||
*
|
|
||||||
* @author
|
|
||||||
* @since 2024-06-19
|
|
||||||
*/
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/cost-material-bom")
|
|
||||||
public class CostMaterialBomController {
|
|
||||||
|
|
||||||
}
|
|
||||||
-20
@@ -1,20 +0,0 @@
|
|||||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
|
||||||
|
|
||||||
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>
|
|
||||||
* 物料工时工序表 前端控制器
|
|
||||||
* </p>
|
|
||||||
*
|
|
||||||
* @author
|
|
||||||
* @since 2024-06-19
|
|
||||||
*/
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/cost-material-process-hours")
|
|
||||||
public class CostMaterialProcessHoursController {
|
|
||||||
|
|
||||||
}
|
|
||||||
-179
@@ -1,179 +0,0 @@
|
|||||||
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.CostPartMissingInfo;
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.service.ICostPartMissingInfoService;
|
|
||||||
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: 标准成本-部件缺失信息
|
|
||||||
* @Author: wangqiong
|
|
||||||
* @Date: 2024-06-13
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
@Api(tags="标准成本-部件缺失信息")
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("//costPartMissingInfo")
|
|
||||||
@Slf4j
|
|
||||||
public class CostPartMissingInfoController extends JeecgController<CostPartMissingInfo, ICostPartMissingInfoService> {
|
|
||||||
@Autowired
|
|
||||||
private ICostPartMissingInfoService costPartMissingInfoService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 分页列表查询
|
|
||||||
*
|
|
||||||
* @param costPartMissingInfo
|
|
||||||
* @param pageNo
|
|
||||||
* @param pageSize
|
|
||||||
* @param req
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
//@AutoLog(value = "cost_part_missing_info-分页列表查询")
|
|
||||||
@ApiOperation(value="cost_part_missing_info-分页列表查询", notes="cost_part_missing_info-分页列表查询")
|
|
||||||
@GetMapping(value = "/list")
|
|
||||||
public Result<IPage<CostPartMissingInfo>> queryPageList(CostPartMissingInfo costPartMissingInfo,
|
|
||||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
||||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
|
||||||
HttpServletRequest req) {
|
|
||||||
QueryWrapper<CostPartMissingInfo> queryWrapper = QueryGenerator.initQueryWrapper(costPartMissingInfo, req.getParameterMap());
|
|
||||||
Page<CostPartMissingInfo> page = new Page<CostPartMissingInfo>(pageNo, pageSize);
|
|
||||||
IPage<CostPartMissingInfo> pageList = costPartMissingInfoService.page(page, queryWrapper);
|
|
||||||
return Result.OK(pageList);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 添加
|
|
||||||
*
|
|
||||||
* @param costPartMissingInfo
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "cost_part_missing_info-添加")
|
|
||||||
@ApiOperation(value="cost_part_missing_info-添加", notes="cost_part_missing_info-添加")
|
|
||||||
// @RequiresPermissions(":cost_part_missing_info:add")
|
|
||||||
@PostMapping(value = "/add")
|
|
||||||
public Result<String> add(@RequestBody CostPartMissingInfo costPartMissingInfo) {
|
|
||||||
costPartMissingInfoService.save(costPartMissingInfo);
|
|
||||||
return Result.OK("添加成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 编辑
|
|
||||||
*
|
|
||||||
* @param costPartMissingInfo
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "cost_part_missing_info-编辑")
|
|
||||||
@ApiOperation(value="cost_part_missing_info-编辑", notes="cost_part_missing_info-编辑")
|
|
||||||
// @RequiresPermissions(":cost_part_missing_info:edit")
|
|
||||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
|
||||||
public Result<String> edit(@RequestBody CostPartMissingInfo costPartMissingInfo) {
|
|
||||||
costPartMissingInfoService.updateById(costPartMissingInfo);
|
|
||||||
return Result.OK("编辑成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id删除
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "cost_part_missing_info-通过id删除")
|
|
||||||
@ApiOperation(value="cost_part_missing_info-通过id删除", notes="cost_part_missing_info-通过id删除")
|
|
||||||
// @RequiresPermissions(":cost_part_missing_info:delete")
|
|
||||||
@DeleteMapping(value = "/delete")
|
|
||||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
|
||||||
costPartMissingInfoService.removeById(id);
|
|
||||||
return Result.OK("删除成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除
|
|
||||||
*
|
|
||||||
* @param ids
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "cost_part_missing_info-批量删除")
|
|
||||||
@ApiOperation(value="cost_part_missing_info-批量删除", notes="cost_part_missing_info-批量删除")
|
|
||||||
// @RequiresPermissions(":cost_part_missing_info:deleteBatch")
|
|
||||||
@DeleteMapping(value = "/deleteBatch")
|
|
||||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
|
||||||
this.costPartMissingInfoService.removeByIds(Arrays.asList(ids.split(",")));
|
|
||||||
return Result.OK("批量删除成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id查询
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
//@AutoLog(value = "cost_part_missing_info-通过id查询")
|
|
||||||
@ApiOperation(value="cost_part_missing_info-通过id查询", notes="cost_part_missing_info-通过id查询")
|
|
||||||
@GetMapping(value = "/queryById")
|
|
||||||
public Result<CostPartMissingInfo> queryById(@RequestParam(name="id",required=true) String id) {
|
|
||||||
CostPartMissingInfo costPartMissingInfo = costPartMissingInfoService.getById(id);
|
|
||||||
if(costPartMissingInfo==null) {
|
|
||||||
return Result.error("未找到对应数据");
|
|
||||||
}
|
|
||||||
return Result.OK(costPartMissingInfo);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 导出excel
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param costPartMissingInfo
|
|
||||||
*/
|
|
||||||
// @RequiresPermissions(":cost_part_missing_info:exportXls")
|
|
||||||
@RequestMapping(value = "/exportXls",method = RequestMethod.GET)
|
|
||||||
public ModelAndView exportXls(HttpServletRequest request, CostPartMissingInfo costPartMissingInfo) {
|
|
||||||
return super.exportXls(request, costPartMissingInfo, CostPartMissingInfo.class, "cost_part_missing_info");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过excel导入数据
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param response
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
// @RequiresPermissions(":cost_part_missing_info:importExcel")
|
|
||||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
|
||||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
|
||||||
return super.importExcel(request, response, CostPartMissingInfo.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
-20
@@ -1,20 +0,0 @@
|
|||||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
|
||||||
|
|
||||||
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>
|
|
||||||
* 物料采购单价 前端控制器
|
|
||||||
* </p>
|
|
||||||
*
|
|
||||||
* @author
|
|
||||||
* @since 2024-06-19
|
|
||||||
*/
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/cost-purchase-price")
|
|
||||||
public class CostPurchasePriceController {
|
|
||||||
|
|
||||||
}
|
|
||||||
-237
@@ -1,237 +0,0 @@
|
|||||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
|
||||||
|
|
||||||
import java.io.InputStream;
|
|
||||||
import java.net.URL;
|
|
||||||
import java.net.URLEncoder;
|
|
||||||
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.CostStandard;
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.service.ICostStandardService;
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.vo.CostStandardVO;
|
|
||||||
import org.apache.poi.ss.usermodel.*;
|
|
||||||
import org.apache.poi.ss.util.CellRangeAddressList;
|
|
||||||
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
||||||
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.jeecg.modules.system.entity.SysUser;
|
|
||||||
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: 标准成本
|
|
||||||
* @Author: wangqiong
|
|
||||||
* @Date: 2024-06-13
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
@Api(tags="标准成本计算")
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("//costStandard")
|
|
||||||
@Slf4j
|
|
||||||
public class CostStandardController extends JeecgController<CostStandard, ICostStandardService> {
|
|
||||||
@Autowired
|
|
||||||
private ICostStandardService costStandardService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 分页列表查询
|
|
||||||
*
|
|
||||||
* @param costStandard
|
|
||||||
* @param pageNo
|
|
||||||
* @param pageSize
|
|
||||||
* @param req
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
//@AutoLog(value = "cost_standard-分页列表查询")
|
|
||||||
@ApiOperation(value="cost_standard-分页列表查询", notes="cost_standard-分页列表查询")
|
|
||||||
@GetMapping(value = "/list")
|
|
||||||
public Result<IPage<CostStandardVO>> queryPageList(CostStandardVO costStandard,
|
|
||||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
||||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
|
||||||
HttpServletRequest req) {
|
|
||||||
|
|
||||||
Page<CostStandardVO> page = new Page<CostStandardVO>(pageNo, pageSize);
|
|
||||||
IPage<CostStandardVO> pageList = costStandardService.pageList(page, costStandard);
|
|
||||||
return Result.OK(pageList);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 添加
|
|
||||||
*
|
|
||||||
* @param costStandard
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "cost_standard-添加")
|
|
||||||
@ApiOperation(value="cost_standard-添加", notes="cost_standard-添加")
|
|
||||||
// @RequiresPermissions(":cost_standard:add")
|
|
||||||
@PostMapping(value = "/add")
|
|
||||||
public Result<String> add(@RequestBody CostStandard costStandard) {
|
|
||||||
costStandardService.save(costStandard);
|
|
||||||
return Result.OK("添加成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 编辑
|
|
||||||
*
|
|
||||||
* @param costStandard
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "cost_standard-编辑")
|
|
||||||
@ApiOperation(value="cost_standard-编辑", notes="cost_standard-编辑")
|
|
||||||
// @RequiresPermissions(":cost_standard:edit")
|
|
||||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
|
||||||
public Result<String> edit(@RequestBody CostStandard costStandard) {
|
|
||||||
costStandardService.updateById(costStandard);
|
|
||||||
return Result.OK("编辑成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id删除
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "cost_standard-通过id删除")
|
|
||||||
@ApiOperation(value="cost_standard-通过id删除", notes="cost_standard-通过id删除")
|
|
||||||
// @RequiresPermissions(":cost_standard:delete")
|
|
||||||
@DeleteMapping(value = "/delete")
|
|
||||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
|
||||||
costStandardService.removeById(id);
|
|
||||||
return Result.OK("删除成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除
|
|
||||||
*
|
|
||||||
* @param ids
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "cost_standard-批量删除")
|
|
||||||
@ApiOperation(value="cost_standard-批量删除", notes="cost_standard-批量删除")
|
|
||||||
// @RequiresPermissions(":cost_standard:deleteBatch")
|
|
||||||
@DeleteMapping(value = "/deleteBatch")
|
|
||||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
|
||||||
this.costStandardService.removeByIds(Arrays.asList(ids.split(",")));
|
|
||||||
return Result.OK("批量删除成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id查询
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
//@AutoLog(value = "cost_standard-通过id查询")
|
|
||||||
@ApiOperation(value="cost_standard-通过id查询", notes="cost_standard-通过id查询")
|
|
||||||
@GetMapping(value = "/queryById")
|
|
||||||
public Result<CostStandard> queryById(@RequestParam(name="id",required=true) String id) {
|
|
||||||
CostStandard costStandard = costStandardService.getById(id);
|
|
||||||
if(costStandard==null) {
|
|
||||||
return Result.error("未找到对应数据");
|
|
||||||
}
|
|
||||||
return Result.OK(costStandard);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 导出excel
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param costStandard
|
|
||||||
*/
|
|
||||||
// @RequiresPermissions(":cost_standard:exportXls")
|
|
||||||
@RequestMapping(value = "/exportXls", method = RequestMethod.GET)
|
|
||||||
public ModelAndView exportXls(HttpServletRequest request, CostStandard costStandard) {
|
|
||||||
return super.exportXls(request, costStandard, CostStandard.class, "cost_standard");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过excel导入数据并进行批量计算
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param response
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
// @RequiresPermissions(":cost_standard:importExcel")
|
|
||||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
|
||||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
|
||||||
return super.importExcel(request, response, CostStandard.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping("/download/excel-template")
|
|
||||||
public void downloadExcel(HttpServletResponse response) throws IOException {
|
|
||||||
// 创建工作簿
|
|
||||||
Workbook workbook = new XSSFWorkbook();
|
|
||||||
Sheet sheet = workbook.createSheet("生变成版本号导入模板");
|
|
||||||
|
|
||||||
// 创建表头行
|
|
||||||
Row headerRow = sheet.createRow(0);
|
|
||||||
// 设置字体
|
|
||||||
Font headerFont = workbook.createFont();
|
|
||||||
headerFont.setBold(true); // 设置字体为加粗
|
|
||||||
// headerFont.setFontHeightInPoints((short) 14); // 设置字体大小
|
|
||||||
|
|
||||||
CellStyle headerCellStyle = workbook.createCellStyle();
|
|
||||||
headerCellStyle.setFont(headerFont);
|
|
||||||
Cell firstCell = headerRow.createCell(0);
|
|
||||||
firstCell.setCellStyle(headerCellStyle);
|
|
||||||
firstCell.setCellValue("物料号");
|
|
||||||
Cell secondCell = headerRow.createCell(1);
|
|
||||||
secondCell.setCellStyle(headerCellStyle);
|
|
||||||
secondCell.setCellValue("图号");
|
|
||||||
Cell thirdCell = headerRow.createCell(2);
|
|
||||||
thirdCell.setCellStyle(headerCellStyle);
|
|
||||||
thirdCell.setCellValue("项目阶段");
|
|
||||||
|
|
||||||
// 设置下拉列表数据
|
|
||||||
DataValidationHelper validationHelper = sheet.getDataValidationHelper();
|
|
||||||
DataValidationConstraint constraint = validationHelper.createExplicitListConstraint(
|
|
||||||
new String[]{"初始","首批","量产"}); // 下拉列表的选项
|
|
||||||
|
|
||||||
// 应用下拉列表到第三列(索引为2)
|
|
||||||
CellRangeAddressList addressList = new CellRangeAddressList(1, 65535, 2, 2); // 从第二行开始到第101行,第三列
|
|
||||||
DataValidation validation = validationHelper.createValidation(constraint, addressList);
|
|
||||||
sheet.addValidationData(validation);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 设置响应头
|
|
||||||
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
|
||||||
response.setHeader("Content-Disposition", "attachment; filename=example-template.xlsx");
|
|
||||||
|
|
||||||
// 将工作簿写入输出流
|
|
||||||
workbook.write(response.getOutputStream());
|
|
||||||
workbook.close();
|
|
||||||
|
|
||||||
response.flushBuffer();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
-20
@@ -1,20 +0,0 @@
|
|||||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
|
||||||
|
|
||||||
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>
|
|
||||||
* 标准成本明细表 前端控制器
|
|
||||||
* </p>
|
|
||||||
*
|
|
||||||
* @author cost_purchase_price
|
|
||||||
* @since 2024-06-19
|
|
||||||
*/
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/cost-standard-detail")
|
|
||||||
public class CostStandardDetailController {
|
|
||||||
|
|
||||||
}
|
|
||||||
-185
@@ -1,185 +0,0 @@
|
|||||||
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.CostStandard;
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.entity.CostStandardVersion;
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.service.ICostStandardVersionService;
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.vo.CostStandardVO;
|
|
||||||
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: 标准成本-版本号
|
|
||||||
* @Author: wangqiong
|
|
||||||
* @Date: 2024-06-13
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
@Api(tags="标准成本-版本号")
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("//costStandardVersion")
|
|
||||||
@Slf4j
|
|
||||||
public class CostStandardVersionController extends JeecgController<CostStandardVersion, ICostStandardVersionService> {
|
|
||||||
@Autowired
|
|
||||||
private ICostStandardVersionService costStandardVersionService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 分页列表查询
|
|
||||||
*
|
|
||||||
* @param costStandardVersion
|
|
||||||
* @param pageNo
|
|
||||||
* @param pageSize
|
|
||||||
* @param req
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
//@AutoLog(value = "cost_standard_version-分页列表查询")
|
|
||||||
@ApiOperation(value="cost_standard_version-分页列表查询", notes="cost_standard_version-分页列表查询")
|
|
||||||
@GetMapping(value = "/list")
|
|
||||||
public Result<IPage<CostStandardVersion>> queryPageList(CostStandardVersion costStandardVersion,
|
|
||||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
||||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
|
||||||
HttpServletRequest req) {
|
|
||||||
QueryWrapper<CostStandardVersion> queryWrapper = QueryGenerator.initQueryWrapper(costStandardVersion, req.getParameterMap());
|
|
||||||
Page<CostStandardVersion> page = new Page<CostStandardVersion>(pageNo, pageSize);
|
|
||||||
IPage<CostStandardVersion> pageList = costStandardVersionService.page(page, queryWrapper);
|
|
||||||
return Result.OK(pageList);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 添加
|
|
||||||
*
|
|
||||||
* @param costStandardVersion
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "cost_standard_version-添加")
|
|
||||||
@ApiOperation(value="cost_standard_version-添加", notes="cost_standard_version-添加")
|
|
||||||
// @RequiresPermissions(":cost_standard_version:add")
|
|
||||||
@PostMapping(value = "/add")
|
|
||||||
public Result<String> add(@RequestBody CostStandardVersion costStandardVersion) {
|
|
||||||
boolean save = costStandardVersionService.save(costStandardVersion);
|
|
||||||
if(save){
|
|
||||||
return Result.OK("添加成功!");
|
|
||||||
}else {
|
|
||||||
return Result.OK("添加失败!");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 编辑
|
|
||||||
*
|
|
||||||
* @param costStandardVersion
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "cost_standard_version-编辑")
|
|
||||||
@ApiOperation(value="cost_standard_version-编辑", notes="cost_standard_version-编辑")
|
|
||||||
// @RequiresPermissions(":cost_standard_version:edit")
|
|
||||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
|
||||||
public Result<String> edit(@RequestBody CostStandardVersion costStandardVersion) {
|
|
||||||
costStandardVersionService.updateById(costStandardVersion);
|
|
||||||
return Result.OK("编辑成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id删除
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "cost_standard_version-通过id删除")
|
|
||||||
@ApiOperation(value="cost_standard_version-通过id删除", notes="cost_standard_version-通过id删除")
|
|
||||||
// @RequiresPermissions(":cost_standard_version:delete")
|
|
||||||
@DeleteMapping(value = "/delete")
|
|
||||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
|
||||||
costStandardVersionService.removeById(id);
|
|
||||||
return Result.OK("删除成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除
|
|
||||||
*
|
|
||||||
* @param ids
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "cost_standard_version-批量删除")
|
|
||||||
@ApiOperation(value="cost_standard_version-批量删除", notes="cost_standard_version-批量删除")
|
|
||||||
// @RequiresPermissions(":cost_standard_version:deleteBatch")
|
|
||||||
@DeleteMapping(value = "/deleteBatch")
|
|
||||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
|
||||||
this.costStandardVersionService.removeByIds(Arrays.asList(ids.split(",")));
|
|
||||||
return Result.OK("批量删除成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id查询
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
//@AutoLog(value = "cost_standard_version-通过id查询")
|
|
||||||
@ApiOperation(value="cost_standard_version-通过id查询", notes="cost_standard_version-通过id查询")
|
|
||||||
@GetMapping(value = "/queryById")
|
|
||||||
public Result<CostStandardVersion> queryById(@RequestParam(name="id",required=true) String id) {
|
|
||||||
CostStandardVersion costStandardVersion = costStandardVersionService.getById(id);
|
|
||||||
if(costStandardVersion==null) {
|
|
||||||
return Result.error("未找到对应数据");
|
|
||||||
}
|
|
||||||
return Result.OK(costStandardVersion);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 导出excel
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param costStandardVersion
|
|
||||||
*/
|
|
||||||
// @RequiresPermissions(":cost_standard_version:exportXls")
|
|
||||||
@RequestMapping(value = "/exportXls", method = RequestMethod.GET)
|
|
||||||
public ModelAndView exportXls(HttpServletRequest request, CostStandardVersion costStandardVersion) {
|
|
||||||
return super.exportXls(request, costStandardVersion, CostStandardVersion.class, "cost_standard_version");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过excel导入数据
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param response
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
// @RequiresPermissions(":cost_standard_version:importExcel")
|
|
||||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
|
||||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
|
||||||
return this.costStandardVersionService.importExcel(request, response, CostStandardVersion.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
-162
@@ -1,162 +0,0 @@
|
|||||||
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.HourRate;
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.service.IHourRateService;
|
|
||||||
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: hour_rate
|
|
||||||
* @Author: jeecg-boot
|
|
||||||
* @Date: 2024-06-06
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
@Api(tags="小时费率")
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("//hourRate")
|
|
||||||
@Slf4j
|
|
||||||
public class HourRateController extends JeecgController<HourRate, IHourRateService> {
|
|
||||||
@Autowired
|
|
||||||
private IHourRateService hourRateService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 分页列表查询
|
|
||||||
*
|
|
||||||
* @param hourRate
|
|
||||||
* @param pageNo
|
|
||||||
* @param pageSize
|
|
||||||
* @param req
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
//@AutoLog(value = "hour_rate-分页列表查询")
|
|
||||||
@ApiOperation(value="hour_rate-分页列表查询", notes="hour_rate-分页列表查询")
|
|
||||||
@GetMapping(value = "/list")
|
|
||||||
public Result<IPage<HourRate>> queryPageList(HourRate hourRate,
|
|
||||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
||||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
|
||||||
HttpServletRequest req) {
|
|
||||||
QueryWrapper<HourRate> queryWrapper = QueryGenerator.initQueryWrapper(hourRate, req.getParameterMap());
|
|
||||||
Page<HourRate> page = new Page<HourRate>(pageNo, pageSize);
|
|
||||||
IPage<HourRate> pageList = hourRateService.page(page, queryWrapper);
|
|
||||||
return Result.OK(pageList);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 添加
|
|
||||||
*
|
|
||||||
* @param hourRate
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "hour_rate-添加")
|
|
||||||
@ApiOperation(value="hour_rate-添加", notes="hour_rate-添加")
|
|
||||||
// @RequiresPermissions(":hour_rate:add")
|
|
||||||
@PostMapping(value = "/add")
|
|
||||||
public Result<String> add(@RequestBody HourRate hourRate) {
|
|
||||||
hourRateService.save(hourRate);
|
|
||||||
return Result.OK("添加成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 编辑
|
|
||||||
*
|
|
||||||
* @param hourRate
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "hour_rate-编辑")
|
|
||||||
@ApiOperation(value="hour_rate-编辑", notes="hour_rate-编辑")
|
|
||||||
// @RequiresPermissions(":hour_rate:edit")
|
|
||||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
|
||||||
public Result<String> edit(@RequestBody HourRate hourRate) {
|
|
||||||
hourRateService.updateById(hourRate);
|
|
||||||
return Result.OK("编辑成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id删除
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "hour_rate-通过id删除")
|
|
||||||
@ApiOperation(value="hour_rate-通过id删除", notes="hour_rate-通过id删除")
|
|
||||||
// @RequiresPermissions(":hour_rate:delete")
|
|
||||||
@DeleteMapping(value = "/delete")
|
|
||||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
|
||||||
hourRateService.removeById(id);
|
|
||||||
return Result.OK("删除成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除
|
|
||||||
*
|
|
||||||
* @param ids
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "hour_rate-批量删除")
|
|
||||||
@ApiOperation(value="hour_rate-批量删除", notes="hour_rate-批量删除")
|
|
||||||
// @RequiresPermissions(":hour_rate:deleteBatch")
|
|
||||||
@DeleteMapping(value = "/deleteBatch")
|
|
||||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
|
||||||
this.hourRateService.removeByIds(Arrays.asList(ids.split(",")));
|
|
||||||
return Result.OK("批量删除成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id查询
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
//@AutoLog(value = "hour_rate-通过id查询")
|
|
||||||
@ApiOperation(value="hour_rate-通过id查询", notes="hour_rate-通过id查询")
|
|
||||||
@GetMapping(value = "/queryById")
|
|
||||||
public Result<HourRate> queryById(@RequestParam(name="id",required=true) String id) {
|
|
||||||
HourRate hourRate = hourRateService.getById(id);
|
|
||||||
if(hourRate==null) {
|
|
||||||
return Result.error("未找到对应数据");
|
|
||||||
}
|
|
||||||
return Result.OK(hourRate);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 导出excel
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param hourRate
|
|
||||||
*/
|
|
||||||
@RequiresPermissions(":hour_rate:exportXls")
|
|
||||||
@RequestMapping(value = "/exportXls")
|
|
||||||
public ModelAndView exportXls(HttpServletRequest request, HourRate hourRate) {
|
|
||||||
return super.exportXls(request, hourRate, HourRate.class, "hour_rate");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过excel导入数据
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param response
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@RequiresPermissions(":hour_rate:importExcel")
|
|
||||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
|
||||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
|
||||||
return super.importExcel(request, response, HourRate.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
-180
@@ -1,180 +0,0 @@
|
|||||||
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.LatestPurchasePrice;
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.service.ILatestPurchasePriceService;
|
|
||||||
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: latest_purchase_price
|
|
||||||
* @Author: jeecg-boot
|
|
||||||
* @Date: 2024-06-11
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
@Api(tags="最新采购价")
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("//latestPurchasePrice")
|
|
||||||
@Slf4j
|
|
||||||
public class LatestPurchasePriceController extends JeecgController<LatestPurchasePrice, ILatestPurchasePriceService> {
|
|
||||||
@Autowired
|
|
||||||
private ILatestPurchasePriceService latestPurchasePriceService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 分页列表查询
|
|
||||||
*
|
|
||||||
* @param latestPurchasePrice
|
|
||||||
* @param pageNo
|
|
||||||
* @param pageSize
|
|
||||||
* @param req
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
//@AutoLog(value = "latest_purchase_price-分页列表查询")
|
|
||||||
@ApiOperation(value="latest_purchase_price-分页列表查询", notes="latest_purchase_price-分页列表查询")
|
|
||||||
@GetMapping(value = "/list")
|
|
||||||
public Result<IPage<LatestPurchasePrice>> queryPageList(LatestPurchasePrice latestPurchasePrice,
|
|
||||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
||||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
|
||||||
HttpServletRequest req) {
|
|
||||||
QueryWrapper<LatestPurchasePrice> queryWrapper = QueryGenerator.initQueryWrapper(latestPurchasePrice, req.getParameterMap());
|
|
||||||
Page<LatestPurchasePrice> page = new Page<LatestPurchasePrice>(pageNo, pageSize);
|
|
||||||
IPage<LatestPurchasePrice> pageList = latestPurchasePriceService.page(page, queryWrapper);
|
|
||||||
return Result.OK(pageList);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 添加
|
|
||||||
*
|
|
||||||
* @param latestPurchasePrice
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "latest_purchase_price-添加")
|
|
||||||
@ApiOperation(value="latest_purchase_price-添加", notes="latest_purchase_price-添加")
|
|
||||||
// @RequiresPermissions(":latest_purchase_price:add")
|
|
||||||
@PostMapping(value = "/add")
|
|
||||||
public Result<String> add(@RequestBody LatestPurchasePrice latestPurchasePrice) {
|
|
||||||
latestPurchasePriceService.save(latestPurchasePrice);
|
|
||||||
return Result.OK("添加成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 编辑
|
|
||||||
*
|
|
||||||
* @param latestPurchasePrice
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "latest_purchase_price-编辑")
|
|
||||||
@ApiOperation(value="latest_purchase_price-编辑", notes="latest_purchase_price-编辑")
|
|
||||||
// @RequiresPermissions(":latest_purchase_price:edit")
|
|
||||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
|
||||||
public Result<String> edit(@RequestBody LatestPurchasePrice latestPurchasePrice) {
|
|
||||||
latestPurchasePriceService.updateById(latestPurchasePrice);
|
|
||||||
return Result.OK("编辑成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id删除
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "latest_purchase_price-通过id删除")
|
|
||||||
@ApiOperation(value="latest_purchase_price-通过id删除", notes="latest_purchase_price-通过id删除")
|
|
||||||
// @RequiresPermissions(":latest_purchase_price:delete")
|
|
||||||
@DeleteMapping(value = "/delete")
|
|
||||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
|
||||||
latestPurchasePriceService.removeById(id);
|
|
||||||
return Result.OK("删除成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除
|
|
||||||
*
|
|
||||||
* @param ids
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "latest_purchase_price-批量删除")
|
|
||||||
@ApiOperation(value="latest_purchase_price-批量删除", notes="latest_purchase_price-批量删除")
|
|
||||||
// @RequiresPermissions(":latest_purchase_price:deleteBatch")
|
|
||||||
@DeleteMapping(value = "/deleteBatch")
|
|
||||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
|
||||||
this.latestPurchasePriceService.removeByIds(Arrays.asList(ids.split(",")));
|
|
||||||
return Result.OK("批量删除成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id查询
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
//@AutoLog(value = "latest_purchase_price-通过id查询")
|
|
||||||
@ApiOperation(value="latest_purchase_price-通过id查询", notes="latest_purchase_price-通过id查询")
|
|
||||||
@GetMapping(value = "/queryById")
|
|
||||||
public Result<LatestPurchasePrice> queryById(@RequestParam(name="id",required=true) String id) {
|
|
||||||
LatestPurchasePrice latestPurchasePrice = latestPurchasePriceService.getById(id);
|
|
||||||
if(latestPurchasePrice==null) {
|
|
||||||
return Result.error("未找到对应数据");
|
|
||||||
}
|
|
||||||
return Result.OK(latestPurchasePrice);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 导出excel
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param latestPurchasePrice
|
|
||||||
*/
|
|
||||||
@RequiresPermissions(":latest_purchase_price:exportXls")
|
|
||||||
@RequestMapping(value = "/exportXls", method = RequestMethod.GET)
|
|
||||||
public ModelAndView exportXls(HttpServletRequest request, LatestPurchasePrice latestPurchasePrice) {
|
|
||||||
return super.exportXls(request, latestPurchasePrice, LatestPurchasePrice.class, "latest_purchase_price");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过excel导入数据
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param response
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
// @RequiresPermissions(":latest_purchase_price:importExcel")
|
|
||||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
|
||||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
|
||||||
return super.importExcel(request, response, LatestPurchasePrice.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
-181
@@ -1,181 +0,0 @@
|
|||||||
package com.zzsmart.qomo.kn.cost.manage.controller;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
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.ProduceBatch;
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.service.IProduceBatchService;
|
|
||||||
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: produce_batch
|
|
||||||
* @Author: jeecg-boot
|
|
||||||
* @Date: 2024-06-11
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
@Api(tags="生产批量设置")
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("//produceBatch")
|
|
||||||
@Slf4j
|
|
||||||
public class ProduceBatchController extends JeecgController<ProduceBatch, IProduceBatchService> {
|
|
||||||
@Autowired
|
|
||||||
private IProduceBatchService produceBatchService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 分页列表查询
|
|
||||||
*
|
|
||||||
* @param produceBatch
|
|
||||||
* @param pageNo
|
|
||||||
* @param pageSize
|
|
||||||
* @param req
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
//@AutoLog(value = "produce_batch-分页列表查询")
|
|
||||||
@ApiOperation(value="produce_batch-分页列表查询", notes="produce_batch-分页列表查询")
|
|
||||||
@GetMapping(value = "/list")
|
|
||||||
public Result<IPage<ProduceBatch>> queryPageList(ProduceBatch produceBatch,
|
|
||||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
||||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
|
||||||
HttpServletRequest req) {
|
|
||||||
QueryWrapper<ProduceBatch> queryWrapper = QueryGenerator.initQueryWrapper(produceBatch, req.getParameterMap());
|
|
||||||
Page<ProduceBatch> page = new Page<ProduceBatch>(pageNo, pageSize);
|
|
||||||
IPage<ProduceBatch> pageList = produceBatchService.page(page, queryWrapper);
|
|
||||||
return Result.OK(pageList);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 添加
|
|
||||||
*
|
|
||||||
* @param produceBatch
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "produce_batch-添加")
|
|
||||||
@ApiOperation(value="produce_batch-添加", notes="produce_batch-添加")
|
|
||||||
// @RequiresPermissions(":produce_batch:add")
|
|
||||||
@PostMapping(value = "/add")
|
|
||||||
public Result<String> add(@RequestBody ProduceBatch produceBatch) {
|
|
||||||
produceBatchService.save(produceBatch);
|
|
||||||
return Result.OK("添加成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 编辑
|
|
||||||
*
|
|
||||||
* @param produceBatch
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "produce_batch-编辑")
|
|
||||||
@ApiOperation(value="produce_batch-编辑", notes="produce_batch-编辑")
|
|
||||||
// @RequiresPermissions(":produce_batch:edit")
|
|
||||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
|
||||||
public Result<String> edit(@RequestBody ProduceBatch produceBatch) {
|
|
||||||
produceBatchService.updateById(produceBatch);
|
|
||||||
return Result.OK("编辑成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id删除
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "produce_batch-通过id删除")
|
|
||||||
@ApiOperation(value="produce_batch-通过id删除", notes="produce_batch-通过id删除")
|
|
||||||
// @RequiresPermissions(":produce_batch:delete")
|
|
||||||
@DeleteMapping(value = "/delete")
|
|
||||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
|
||||||
produceBatchService.removeById(id);
|
|
||||||
return Result.OK("删除成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除
|
|
||||||
*
|
|
||||||
* @param ids
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "produce_batch-批量删除")
|
|
||||||
@ApiOperation(value="produce_batch-批量删除", notes="produce_batch-批量删除")
|
|
||||||
// @RequiresPermissions(":produce_batch:deleteBatch")
|
|
||||||
@DeleteMapping(value = "/deleteBatch")
|
|
||||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
|
||||||
this.produceBatchService.removeByIds(Arrays.asList(ids.split(",")));
|
|
||||||
|
|
||||||
return Result.OK("批量删除成功!");
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* 通过id查询
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
//@AutoLog(value = "produce_batch-通过id查询")
|
|
||||||
@ApiOperation(value="produce_batch-通过id查询", notes="produce_batch-通过id查询")
|
|
||||||
@GetMapping(value = "/queryById")
|
|
||||||
public Result<ProduceBatch> queryById(@RequestParam(name="id",required=true) String id) {
|
|
||||||
ProduceBatch produceBatch = produceBatchService.getById(id);
|
|
||||||
if(produceBatch==null) {
|
|
||||||
return Result.error("未找到对应数据");
|
|
||||||
}
|
|
||||||
return Result.OK(produceBatch);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 导出excel
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param produceBatch
|
|
||||||
*/
|
|
||||||
@RequiresPermissions(":produce_batch:exportXls")
|
|
||||||
@RequestMapping(value = "/exportXls", method = RequestMethod.GET)
|
|
||||||
public ModelAndView exportXls(HttpServletRequest request, ProduceBatch produceBatch) {
|
|
||||||
return super.exportXls(request, produceBatch, ProduceBatch.class, "produce_batch");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过excel导入数据
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param response
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
// @RequiresPermissions(":produce_batch:importExcel")
|
|
||||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
|
||||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
|
||||||
return super.importExcel(request, response, ProduceBatch.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
-178
@@ -1,178 +0,0 @@
|
|||||||
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.SapSubfactory;
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.service.ISapSubfactoryService;
|
|
||||||
|
|
||||||
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: sap_subfactory
|
|
||||||
* @Author: jeecg-boot
|
|
||||||
* @Date: 2024-06-11
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
@Api(tags="工厂信息")
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/com.zzsmart.qomo.kn.cost.manage/sapSubfactory")
|
|
||||||
@Slf4j
|
|
||||||
public class SapSubfactoryController extends JeecgController<SapSubfactory, ISapSubfactoryService> {
|
|
||||||
@Autowired
|
|
||||||
private ISapSubfactoryService sapSubfactoryService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 分页列表查询
|
|
||||||
*
|
|
||||||
* @param sapSubfactory
|
|
||||||
* @param pageNo
|
|
||||||
* @param pageSize
|
|
||||||
* @param req
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
//@AutoLog(value = "sap_subfactory-分页列表查询")
|
|
||||||
@ApiOperation(value="sap_subfactory-分页列表查询", notes="sap_subfactory-分页列表查询")
|
|
||||||
@GetMapping(value = "/list")
|
|
||||||
public Result<IPage<SapSubfactory>> queryPageList(SapSubfactory sapSubfactory,
|
|
||||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
||||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
|
||||||
HttpServletRequest req) {
|
|
||||||
QueryWrapper<SapSubfactory> queryWrapper = QueryGenerator.initQueryWrapper(sapSubfactory, req.getParameterMap());
|
|
||||||
Page<SapSubfactory> page = new Page<SapSubfactory>(pageNo, pageSize);
|
|
||||||
IPage<SapSubfactory> pageList = sapSubfactoryService.page(page, queryWrapper);
|
|
||||||
return Result.OK(pageList);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 添加
|
|
||||||
*
|
|
||||||
* @param sapSubfactory
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "sap_subfactory-添加")
|
|
||||||
@ApiOperation(value="sap_subfactory-添加", notes="sap_subfactory-添加")
|
|
||||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:sap_subfactory:add")
|
|
||||||
@PostMapping(value = "/add")
|
|
||||||
public Result<String> add(@RequestBody SapSubfactory sapSubfactory) {
|
|
||||||
sapSubfactoryService.save(sapSubfactory);
|
|
||||||
return Result.OK("添加成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 编辑
|
|
||||||
*
|
|
||||||
* @param sapSubfactory
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "sap_subfactory-编辑")
|
|
||||||
@ApiOperation(value="sap_subfactory-编辑", notes="sap_subfactory-编辑")
|
|
||||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:sap_subfactory:edit")
|
|
||||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
|
||||||
public Result<String> edit(@RequestBody SapSubfactory sapSubfactory) {
|
|
||||||
sapSubfactoryService.updateById(sapSubfactory);
|
|
||||||
return Result.OK("编辑成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id删除
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "sap_subfactory-通过id删除")
|
|
||||||
@ApiOperation(value="sap_subfactory-通过id删除", notes="sap_subfactory-通过id删除")
|
|
||||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:sap_subfactory:delete")
|
|
||||||
@DeleteMapping(value = "/delete")
|
|
||||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
|
||||||
sapSubfactoryService.removeById(id);
|
|
||||||
return Result.OK("删除成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除
|
|
||||||
*
|
|
||||||
* @param ids
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@AutoLog(value = "sap_subfactory-批量删除")
|
|
||||||
@ApiOperation(value="sap_subfactory-批量删除", notes="sap_subfactory-批量删除")
|
|
||||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:sap_subfactory:deleteBatch")
|
|
||||||
@DeleteMapping(value = "/deleteBatch")
|
|
||||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
|
||||||
this.sapSubfactoryService.removeByIds(Arrays.asList(ids.split(",")));
|
|
||||||
return Result.OK("批量删除成功!");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过id查询
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
//@AutoLog(value = "sap_subfactory-通过id查询")
|
|
||||||
@ApiOperation(value="sap_subfactory-通过id查询", notes="sap_subfactory-通过id查询")
|
|
||||||
@GetMapping(value = "/queryById")
|
|
||||||
public Result<SapSubfactory> queryById(@RequestParam(name="id",required=true) String id) {
|
|
||||||
SapSubfactory sapSubfactory = sapSubfactoryService.getById(id);
|
|
||||||
if(sapSubfactory==null) {
|
|
||||||
return Result.error("未找到对应数据");
|
|
||||||
}
|
|
||||||
return Result.OK(sapSubfactory);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 导出excel
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param sapSubfactory
|
|
||||||
*/
|
|
||||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:sap_subfactory:exportXls")
|
|
||||||
@RequestMapping(value = "/exportXls")
|
|
||||||
public ModelAndView exportXls(HttpServletRequest request, SapSubfactory sapSubfactory) {
|
|
||||||
return super.exportXls(request, sapSubfactory, SapSubfactory.class, "sap_subfactory");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过excel导入数据
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param response
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:sap_subfactory:importExcel")
|
|
||||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
|
||||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
|
||||||
return super.importExcel(request, response, SapSubfactory.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
+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;
|
||||||
|
}
|
||||||
+106
@@ -0,0 +1,106 @@
|
|||||||
|
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_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.ASSIGN_ID)
|
||||||
|
@ApiModelProperty(value = "主键")
|
||||||
|
private Integer id;
|
||||||
|
/**
|
||||||
|
* 物料编号
|
||||||
|
*/
|
||||||
|
@Excel(name = "物料编号", width = 15)
|
||||||
|
@ApiModelProperty(value = "物料编号")
|
||||||
|
private String materialNo;
|
||||||
|
/**
|
||||||
|
* 图号
|
||||||
|
*/
|
||||||
|
@Excel(name = "图号", width = 15)
|
||||||
|
@ApiModelProperty(value = "图号")
|
||||||
|
private String drawingNo;
|
||||||
|
/**
|
||||||
|
* 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;
|
||||||
|
/**
|
||||||
|
* 创建人
|
||||||
|
*/
|
||||||
|
@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;
|
||||||
|
}
|
||||||
+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;
|
||||||
|
}
|
||||||
+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;
|
||||||
|
}
|
||||||
+34
-28
@@ -1,55 +1,61 @@
|
|||||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
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.IdType;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
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.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
|
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 标准成本-部件缺失信息
|
* @Description: app_scene_cost_part_missing_info
|
||||||
* @Author: wangqiong
|
* @Author: jeecg-boot
|
||||||
* @Date: 2024-06-13
|
* @Date: 2024-08-02
|
||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@TableName("cost_part_missing_info")
|
@Builder
|
||||||
|
@TableName("app_scene_cost_part_missing_info")
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@ApiModel(value="cost_part_missing_info对象", description="cost_part_missing_info")
|
@ApiModel(value = "app_scene_cost_part_missing_info对象", description = "app_scene_cost_part_missing_info")
|
||||||
public class CostPartMissingInfo implements Serializable {
|
public class AppSceneCostPartMissingInfo implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**id*/
|
/**
|
||||||
@TableId(type = IdType.ASSIGN_ID)
|
* id
|
||||||
|
*/
|
||||||
|
@TableId(type = IdType.ASSIGN_ID)
|
||||||
@ApiModelProperty(value = "id")
|
@ApiModelProperty(value = "id")
|
||||||
private String id;
|
private String id;
|
||||||
/**标准成本表主键id*/
|
/**
|
||||||
@Excel(name = "标准成本表主键id", width = 15)
|
* 物料号
|
||||||
@ApiModelProperty(value = "标准成本表主键id")
|
*/
|
||||||
private String costStandardId;
|
@Excel(name = "物料号", width = 15)
|
||||||
/**物料号*/
|
|
||||||
@Excel(name = "物料号", width = 15)
|
|
||||||
@ApiModelProperty(value = "物料号")
|
@ApiModelProperty(value = "物料号")
|
||||||
private String materialNumber;
|
private String materialNumber;
|
||||||
/**版本号*/
|
/**
|
||||||
@Excel(name = "版本号", width = 15)
|
* 版本号
|
||||||
|
*/
|
||||||
|
@Excel(name = "版本号", width = 15)
|
||||||
@ApiModelProperty(value = "版本号")
|
@ApiModelProperty(value = "版本号")
|
||||||
private String versionNumber;
|
private String versionNumber;
|
||||||
/**缺失信息*/
|
/**
|
||||||
@Excel(name = "缺失信息", width = 15)
|
* 缺失信息
|
||||||
|
*/
|
||||||
|
@Excel(name = "缺失信息", width = 15)
|
||||||
@ApiModelProperty(value = "缺失信息")
|
@ApiModelProperty(value = "缺失信息")
|
||||||
private String missingInfo;
|
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;
|
||||||
|
}
|
||||||
+207
@@ -0,0 +1,207 @@
|
|||||||
|
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;
|
||||||
|
}
|
||||||
+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;
|
||||||
|
}
|
||||||
+191
@@ -0,0 +1,191 @@
|
|||||||
|
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.ASSIGN_ID)
|
||||||
|
@ApiModelProperty(value = "主键")
|
||||||
|
private java.lang.Integer id;
|
||||||
|
/**工厂*/
|
||||||
|
@Excel(name = "工厂", width = 15)
|
||||||
|
@ApiModelProperty(value = "工厂")
|
||||||
|
private java.lang.String factory;
|
||||||
|
/**物料号*/
|
||||||
|
@Excel(name = "物料号", width = 15)
|
||||||
|
@ApiModelProperty(value = "物料号")
|
||||||
|
private java.lang.String materialNumber;
|
||||||
|
/**父物料号*/
|
||||||
|
@Excel(name = "父物料号", width = 15)
|
||||||
|
@ApiModelProperty(value = "父物料号")
|
||||||
|
private java.lang.String parentMatnr;
|
||||||
|
/**阶段*/
|
||||||
|
@Excel(name = "阶段", width = 15)
|
||||||
|
@ApiModelProperty(value = "阶段")
|
||||||
|
private java.lang.String stage;
|
||||||
|
/**版本号*/
|
||||||
|
@Excel(name = "版本号", width = 15)
|
||||||
|
@ApiModelProperty(value = "版本号")
|
||||||
|
private java.lang.String versionNumber;
|
||||||
|
/**层级*/
|
||||||
|
@Excel(name = "层级", width = 15)
|
||||||
|
@ApiModelProperty(value = "层级")
|
||||||
|
private java.lang.String layer;
|
||||||
|
/**价格类型*/
|
||||||
|
@Excel(name = "价格类型", width = 15)
|
||||||
|
@ApiModelProperty(value = "价格类型")
|
||||||
|
private java.lang.String pricetype;
|
||||||
|
/**会计期间*/
|
||||||
|
@Excel(name = "会计期间", width = 15)
|
||||||
|
@ApiModelProperty(value = "会计期间")
|
||||||
|
private java.lang.String ymonth;
|
||||||
|
/**总标准成本*/
|
||||||
|
@Excel(name = "总标准成本", width = 15)
|
||||||
|
@ApiModelProperty(value = "总标准成本")
|
||||||
|
private java.math.BigDecimal totalStandardCost;
|
||||||
|
/**本阶材料成本*/
|
||||||
|
@Excel(name = "本阶材料成本", width = 15)
|
||||||
|
@ApiModelProperty(value = "本阶材料成本")
|
||||||
|
private java.math.BigDecimal materialCostStage;
|
||||||
|
/**本阶人工成本*/
|
||||||
|
@Excel(name = "本阶人工成本", width = 15)
|
||||||
|
@ApiModelProperty(value = "本阶人工成本")
|
||||||
|
private java.math.BigDecimal laborCostStage;
|
||||||
|
/**本阶设备成本*/
|
||||||
|
@Excel(name = "本阶设备成本", width = 15)
|
||||||
|
@ApiModelProperty(value = "本阶设备成本")
|
||||||
|
private java.math.BigDecimal equipCostStage;
|
||||||
|
/**本阶燃动成本*/
|
||||||
|
@Excel(name = "本阶燃动成本", width = 15)
|
||||||
|
@ApiModelProperty(value = "本阶燃动成本")
|
||||||
|
private java.math.BigDecimal burningCostStage;
|
||||||
|
/**本阶辅料成本*/
|
||||||
|
@Excel(name = "本阶辅料成本", width = 15)
|
||||||
|
@ApiModelProperty(value = "本阶辅料成本")
|
||||||
|
private java.math.BigDecimal auxiliaryCostStage;
|
||||||
|
/**本阶其他成本*/
|
||||||
|
@Excel(name = "本阶其他成本", width = 15)
|
||||||
|
@ApiModelProperty(value = "本阶其他成本")
|
||||||
|
private java.math.BigDecimal otherCostStage;
|
||||||
|
/**累计材料成本*/
|
||||||
|
@Excel(name = "累计材料成本", width = 15)
|
||||||
|
@ApiModelProperty(value = "累计材料成本")
|
||||||
|
private java.math.BigDecimal materialCostAccumulated;
|
||||||
|
/**累计人工成本*/
|
||||||
|
@Excel(name = "累计人工成本", width = 15)
|
||||||
|
@ApiModelProperty(value = "累计人工成本")
|
||||||
|
private java.math.BigDecimal laborCostAccumulated;
|
||||||
|
/**累计设备成本*/
|
||||||
|
@Excel(name = "累计设备成本", width = 15)
|
||||||
|
@ApiModelProperty(value = "累计设备成本")
|
||||||
|
private java.math.BigDecimal equipCostAccumulated;
|
||||||
|
/**累计燃动成本*/
|
||||||
|
@Excel(name = "累计燃动成本", width = 15)
|
||||||
|
@ApiModelProperty(value = "累计燃动成本")
|
||||||
|
private java.math.BigDecimal burningCostAccumulated;
|
||||||
|
/**累计辅料成本*/
|
||||||
|
@Excel(name = "累计辅料成本", width = 15)
|
||||||
|
@ApiModelProperty(value = "累计辅料成本")
|
||||||
|
private java.math.BigDecimal auxiliaryCostAccumulated;
|
||||||
|
/**累计其他成本*/
|
||||||
|
@Excel(name = "累计其他成本", width = 15)
|
||||||
|
@ApiModelProperty(value = "累计其他成本")
|
||||||
|
private java.math.BigDecimal otherCostAccumulated;
|
||||||
|
/**总材料成本*/
|
||||||
|
@Excel(name = "总材料成本", width = 15)
|
||||||
|
@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 burningCostTotal;
|
||||||
|
/**总辅料成本*/
|
||||||
|
@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.lang.String lowOrderCode;
|
||||||
|
/**相对用量*/
|
||||||
|
@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 laborCostRelative;
|
||||||
|
/**相对制费成本*/
|
||||||
|
@Excel(name = "相对制费成本", width = 15)
|
||||||
|
@ApiModelProperty(value = "相对制费成本")
|
||||||
|
private java.math.BigDecimal manufactureCostRelative;
|
||||||
|
/**相对总成本*/
|
||||||
|
@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 maktx;
|
||||||
|
/**数量*/
|
||||||
|
@Excel(name = "数量", width = 15)
|
||||||
|
@ApiModelProperty(value = "数量")
|
||||||
|
private java.math.BigDecimal menge;
|
||||||
|
/**数量*/
|
||||||
|
@Excel(name = "制造类型", width = 15)
|
||||||
|
@ApiModelProperty(value = "制造类型")
|
||||||
|
private java.lang.String manuType;
|
||||||
|
}
|
||||||
+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;
|
||||||
|
}
|
||||||
-78
@@ -1,78 +0,0 @@
|
|||||||
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.Data;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import lombok.experimental.Accessors;
|
|
||||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description: budget_price
|
|
||||||
* @Author: jeecg-boot
|
|
||||||
* @Date: 2024-06-11
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@TableName("budget_price")
|
|
||||||
@Accessors(chain = true)
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@ApiModel(value = "budget_price对象", description = "budget_price")
|
|
||||||
public class BudgetPrice 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 year;
|
|
||||||
/**
|
|
||||||
* 物料编码
|
|
||||||
*/
|
|
||||||
@Excel(name = "物料编码", width = 15)
|
|
||||||
@ApiModelProperty(value = "物料编码")
|
|
||||||
private String materialNumber;
|
|
||||||
/**
|
|
||||||
* 物料名称
|
|
||||||
*/
|
|
||||||
@Excel(name = "物料名称", width = 15)
|
|
||||||
@ApiModelProperty(value = "物料名称")
|
|
||||||
private String materialName;
|
|
||||||
/**
|
|
||||||
* 项目编号
|
|
||||||
*/
|
|
||||||
@Excel(name = "项目编号", width = 15)
|
|
||||||
@ApiModelProperty(value = "项目编号")
|
|
||||||
private String projectNumber;
|
|
||||||
/**
|
|
||||||
* 预算价格
|
|
||||||
*/
|
|
||||||
@Excel(name = "预算价格", width = 15)
|
|
||||||
@ApiModelProperty(value = "预算价格")
|
|
||||||
private BigDecimal price;
|
|
||||||
/**
|
|
||||||
* dwerk
|
|
||||||
*/
|
|
||||||
@Excel(name = "dwerk", width = 15)
|
|
||||||
@ApiModelProperty(value = "dwerk")
|
|
||||||
private String dwerk;
|
|
||||||
/**
|
|
||||||
* posid
|
|
||||||
*/
|
|
||||||
@Excel(name = "posid", width = 15)
|
|
||||||
@ApiModelProperty(value = "posid")
|
|
||||||
private String posid;
|
|
||||||
}
|
|
||||||
-54
@@ -1,54 +0,0 @@
|
|||||||
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.*;
|
|
||||||
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: c7525cost
|
|
||||||
* @Author: jeecg-boot
|
|
||||||
* @Date: 2024-06-06
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@TableName("c7525cost")
|
|
||||||
@Accessors(chain = true)
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@ApiModel(value="c7525cost对象", description="c7525cost")
|
|
||||||
public class C7525cost implements Serializable {
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**年份*/
|
|
||||||
@Excel(name = "年份", width = 15)
|
|
||||||
@ApiModelProperty(value = "年份")
|
|
||||||
private String year;
|
|
||||||
/**门控料号(物料id)*/
|
|
||||||
@Excel(name = "门控料号(物料id)", width = 15)
|
|
||||||
@ApiModelProperty(value = "门控料号(物料id)")
|
|
||||||
private String materialNumber;
|
|
||||||
/**物料规格信息*/
|
|
||||||
@Excel(name = "物料规格信息", width = 15)
|
|
||||||
@ApiModelProperty(value = "物料规格信息")
|
|
||||||
private String zzggxh;
|
|
||||||
/**价格*/
|
|
||||||
@Excel(name = "价格", width = 15)
|
|
||||||
@ApiModelProperty(value = "价格")
|
|
||||||
@TableField(value = "price_7525")
|
|
||||||
private BigDecimal price7525;
|
|
||||||
/**id*/
|
|
||||||
@TableId(type = IdType.ASSIGN_ID)
|
|
||||||
@ApiModelProperty(value = "id")
|
|
||||||
private Integer id;
|
|
||||||
}
|
|
||||||
-55
@@ -1,55 +0,0 @@
|
|||||||
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: cost_center
|
|
||||||
* @Author: jeecg-boot
|
|
||||||
* @Date: 2024-06-11
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@TableName("cost_center")
|
|
||||||
@Accessors(chain = true)
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@ApiModel(value="cost_center对象", description="cost_center")
|
|
||||||
public class CostCenter implements Serializable {
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**公司代码*/
|
|
||||||
@Excel(name = "公司代码", width = 15)
|
|
||||||
@ApiModelProperty(value = "公司代码")
|
|
||||||
private String companyCode;
|
|
||||||
/**成本中心代码*/
|
|
||||||
@Excel(name = "成本中心代码", width = 15)
|
|
||||||
@ApiModelProperty(value = "成本中心代码")
|
|
||||||
private String costCenterCode;
|
|
||||||
/**成本中心名称*/
|
|
||||||
@Excel(name = "成本中心名称", width = 15)
|
|
||||||
@ApiModelProperty(value = "成本中心名称")
|
|
||||||
private String costCenterName;
|
|
||||||
/**成本类型*/
|
|
||||||
@Excel(name = "成本类型", width = 15)
|
|
||||||
@ApiModelProperty(value = "成本类型")
|
|
||||||
private String costCategory;
|
|
||||||
/**状态*/
|
|
||||||
@Excel(name = "状态", width = 15)
|
|
||||||
@ApiModelProperty(value = "状态")
|
|
||||||
private String status;
|
|
||||||
}
|
|
||||||
-377
@@ -1,377 +0,0 @@
|
|||||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
|
||||||
import lombok.experimental.Accessors;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>
|
|
||||||
* 物料bom
|
|
||||||
* </p>
|
|
||||||
*
|
|
||||||
* @author
|
|
||||||
* @since 2024-06-19
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
@Accessors(chain = true)
|
|
||||||
@TableName("cost_material_bom")
|
|
||||||
@ApiModel(value = "cost_material_bom对象", description = "cost_material_bom")
|
|
||||||
public class CostMaterialBom implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* id
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "id")
|
|
||||||
@TableId(value = "id", type = IdType.AUTO)
|
|
||||||
private String id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 物料编码
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "物料编码")
|
|
||||||
@TableField("material_code")
|
|
||||||
private String materialCode;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 物料名称
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "物料名称")
|
|
||||||
@TableField("material_name")
|
|
||||||
private String materialName;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 父级物料编码
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "父级物料编码")
|
|
||||||
@TableField("parent_material_code")
|
|
||||||
private String parentMaterialCode;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 级别
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "级别")
|
|
||||||
@TableField("level")
|
|
||||||
private String level;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 排序
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "排序")
|
|
||||||
@TableField("sort")
|
|
||||||
private Integer sort;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 计量单位
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "计量单位")
|
|
||||||
@TableField("unit")
|
|
||||||
private String unit;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 数量
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "id")
|
|
||||||
@TableField("数量")
|
|
||||||
private Integer number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 人工工时(分钟)
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "人工工时(分钟)")
|
|
||||||
@TableField("labor_hours")
|
|
||||||
private BigDecimal laborHours;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设备工时
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "设备工时")
|
|
||||||
@TableField("device_hours")
|
|
||||||
private BigDecimal deviceHours;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 借用物料编码
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "借用物料编码")
|
|
||||||
@TableField("borrow_material_code")
|
|
||||||
private String borrowMaterialCode;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 参考物料编码
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "参考物料编码")
|
|
||||||
@TableField("refer_material_code")
|
|
||||||
private String referMaterialCode;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 采购类型
|
|
||||||
*/
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "采购类型")
|
|
||||||
@TableField("purchase_type")
|
|
||||||
private String purchaseType;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 特殊采购类型
|
|
||||||
*/
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "特殊采购类型")
|
|
||||||
@TableField("special_purchase_type")
|
|
||||||
private String specialPurchaseType;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 说明
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "说明")
|
|
||||||
@TableField("explanation")
|
|
||||||
private String explanation;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 单位数量
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "单位数量")
|
|
||||||
@TableField("quantity")
|
|
||||||
private BigDecimal quantity;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 重量(g)
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "重量(g)")
|
|
||||||
@TableField("weight")
|
|
||||||
private String weight;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 材料/牌号
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "材料/牌号")
|
|
||||||
@TableField("material_and_brand")
|
|
||||||
private String materialAndBrand;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 表面处理,材料
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "表面处理,材料")
|
|
||||||
@TableField("surface_material")
|
|
||||||
private String surfaceMaterial;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 厚度(mm)
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "厚度(mm)")
|
|
||||||
@TableField("surface_thickness")
|
|
||||||
private String surfaceThickness;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 表面积(mm²)
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "表面积(mm²)")
|
|
||||||
@TableField("surface_area")
|
|
||||||
private String surfaceArea;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 长(mm)
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "长(mm)")
|
|
||||||
@TableField("length")
|
|
||||||
private String length;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 宽(mm)
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "宽(mm)")
|
|
||||||
@TableField("width")
|
|
||||||
private String width;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 高(mm)
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "高(mm)")
|
|
||||||
@TableField("height")
|
|
||||||
private String height;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 图示/图档/文档 文件ID
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "图示/图档/文档 文件ID")
|
|
||||||
@TableField("figure_file_id")
|
|
||||||
private Long figureFileId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 是否新模具(0否 1是)
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "是否新模具(0否 1是)")
|
|
||||||
@TableField("new_tooling")
|
|
||||||
private Boolean newTooling;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 成型方式(枚举)
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "成型方式(枚举)")
|
|
||||||
@TableField("shaping_method")
|
|
||||||
private String shapingMethod;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 作业内容
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "作业内容")
|
|
||||||
@TableField("work_content")
|
|
||||||
private String workContent;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 加工地点
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "加工地点")
|
|
||||||
@TableField("process_location")
|
|
||||||
private String processLocation;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 成本中心
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "成本中心")
|
|
||||||
@TableField("cost_center")
|
|
||||||
private String costCenter;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 单价(未税)
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "单价(未税)")
|
|
||||||
@TableField("unit_price")
|
|
||||||
private BigDecimal unitPrice;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 总价(未税)
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "总价(未税)")
|
|
||||||
@TableField("total_price")
|
|
||||||
private BigDecimal totalPrice;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 模具费(未税)
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "模具费(未税)")
|
|
||||||
@TableField("mould_price")
|
|
||||||
private BigDecimal mouldPrice;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建人
|
|
||||||
*/
|
|
||||||
@TableField("create_by")
|
|
||||||
private String createBy;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建时间
|
|
||||||
*/
|
|
||||||
@TableField("create_time")
|
|
||||||
private LocalDateTime createTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改人
|
|
||||||
*/
|
|
||||||
@TableField("update_by")
|
|
||||||
private String updateBy;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改时间
|
|
||||||
*/
|
|
||||||
@TableField("update_time")
|
|
||||||
private LocalDateTime updateTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 备注(特殊技术信息)
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "备注(特殊技术信息)")
|
|
||||||
@TableField("remark")
|
|
||||||
private String remark;
|
|
||||||
|
|
||||||
|
|
||||||
public static final String ID = "id";
|
|
||||||
|
|
||||||
public static final String MATERIAL_CODE = "material_code";
|
|
||||||
|
|
||||||
public static final String MATERIAL_NAME = "material_name";
|
|
||||||
|
|
||||||
public static final String PARENT_MATERIAL_CODE = "parent_material_code";
|
|
||||||
|
|
||||||
public static final String LEVEL = "level";
|
|
||||||
|
|
||||||
public static final String SORT = "sort";
|
|
||||||
|
|
||||||
public static final String UNIT = "unit";
|
|
||||||
|
|
||||||
public static final String NUMBER = "number";
|
|
||||||
|
|
||||||
public static final String LABOR_HOURS = "labor_hours";
|
|
||||||
|
|
||||||
public static final String DEVICE_HOURS = "device_hours";
|
|
||||||
|
|
||||||
public static final String BORROW_MATERIAL_CODE = "borrow_material_code";
|
|
||||||
|
|
||||||
public static final String REFER_MATERIAL_CODE = "refer_material_code";
|
|
||||||
|
|
||||||
public static final String PURCHASE_TYPE = "purchase_type";
|
|
||||||
|
|
||||||
public static final String SPECIAL_PURCHASE_TYPE = "special_purchase_type";
|
|
||||||
|
|
||||||
public static final String EXPLANATION = "explanation";
|
|
||||||
|
|
||||||
public static final String QUANTITY = "quantity";
|
|
||||||
|
|
||||||
public static final String WEIGHT = "weight";
|
|
||||||
|
|
||||||
public static final String MATERIAL_AND_BRAND = "material_and_brand";
|
|
||||||
|
|
||||||
public static final String SURFACE_MATERIAL = "surface_material";
|
|
||||||
|
|
||||||
public static final String SURFACE_THICKNESS = "surface_thickness";
|
|
||||||
|
|
||||||
public static final String SURFACE_AREA = "surface_area";
|
|
||||||
|
|
||||||
public static final String LENGTH = "length";
|
|
||||||
|
|
||||||
public static final String WIDTH = "width";
|
|
||||||
|
|
||||||
public static final String HEIGHT = "height";
|
|
||||||
|
|
||||||
public static final String FIGURE_FILE_ID = "figure_file_id";
|
|
||||||
|
|
||||||
public static final String NEW_TOOLING = "new_tooling";
|
|
||||||
|
|
||||||
public static final String SHAPING_METHOD = "shaping_method";
|
|
||||||
|
|
||||||
public static final String WORK_CONTENT = "work_content";
|
|
||||||
|
|
||||||
public static final String PROCESS_LOCATION = "process_location";
|
|
||||||
|
|
||||||
public static final String COST_CENTER = "cost_center";
|
|
||||||
|
|
||||||
public static final String UNIT_PRICE = "unit_price";
|
|
||||||
|
|
||||||
public static final String TOTAL_PRICE = "total_price";
|
|
||||||
|
|
||||||
public static final String MOULD_PRICE = "mould_price";
|
|
||||||
|
|
||||||
public static final String CREATE_BY = "create_by";
|
|
||||||
|
|
||||||
public static final String CREATE_TIME = "create_time";
|
|
||||||
|
|
||||||
public static final String UPDATE_BY = "update_by";
|
|
||||||
|
|
||||||
public static final String UPDATE_TIME = "update_time";
|
|
||||||
|
|
||||||
public static final String REMARK = "remark";
|
|
||||||
|
|
||||||
}
|
|
||||||
-174
@@ -1,174 +0,0 @@
|
|||||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
|
||||||
import lombok.experimental.Accessors;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>
|
|
||||||
* 物料工时工序表
|
|
||||||
* </p>
|
|
||||||
*
|
|
||||||
* @author
|
|
||||||
* @since 2024-06-19
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
@Accessors(chain = true)
|
|
||||||
@TableName("cost_material_process_hours")
|
|
||||||
public class CostMaterialProcessHours implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主键
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "id")
|
|
||||||
@TableId(value = "id", type = IdType.AUTO)
|
|
||||||
private String id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 物料编码
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "物料编码")
|
|
||||||
@TableField("material_code")
|
|
||||||
private String materialCode;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 物料名称
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "物料名称")
|
|
||||||
@TableField("material_name")
|
|
||||||
private String materialName;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 层级
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "层级")
|
|
||||||
@TableField("level")
|
|
||||||
private String level;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 数量
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "数量")
|
|
||||||
@TableField("quantity")
|
|
||||||
private BigDecimal quantity;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 采购类型
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "采购类型")
|
|
||||||
@TableField("purchase_type")
|
|
||||||
private String purchaseType;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 工序
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "工序")
|
|
||||||
@TableField("work_process")
|
|
||||||
private String workProcess;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 描述
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "描述")
|
|
||||||
@TableField("described")
|
|
||||||
private String described;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 人工工时
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "人工工时")
|
|
||||||
@TableField("labor_hours")
|
|
||||||
private BigDecimal laborHours;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设备工时
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "设备工时")
|
|
||||||
@TableField("device_hours")
|
|
||||||
private BigDecimal deviceHours;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 工作中心
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "工作中心")
|
|
||||||
@TableField("work_center")
|
|
||||||
private String workCenter;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建人
|
|
||||||
*/
|
|
||||||
@TableField("create_by")
|
|
||||||
private String createBy;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建时间
|
|
||||||
*/
|
|
||||||
@TableField("create_time")
|
|
||||||
private LocalDateTime createTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改人
|
|
||||||
*/
|
|
||||||
@TableField("update_by")
|
|
||||||
private String updateBy;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改时间
|
|
||||||
*/
|
|
||||||
@TableField("update_time")
|
|
||||||
private LocalDateTime updateTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 备注
|
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "备注")
|
|
||||||
@TableField("remark")
|
|
||||||
private String remark;
|
|
||||||
|
|
||||||
|
|
||||||
public static final String ID = "id";
|
|
||||||
|
|
||||||
public static final String MATERIAL_CODE = "material_code";
|
|
||||||
|
|
||||||
public static final String MATERIAL_NAME = "material_name";
|
|
||||||
|
|
||||||
public static final String LEVEL = "level";
|
|
||||||
|
|
||||||
public static final String QUANTITY = "quantity";
|
|
||||||
|
|
||||||
public static final String PURCHASE_TYPE = "purchase_type";
|
|
||||||
|
|
||||||
public static final String WORK_PROCESS = "work_process";
|
|
||||||
|
|
||||||
public static final String DESCRIBED = "described";
|
|
||||||
|
|
||||||
public static final String LABOR_HOURS = "labor_hours";
|
|
||||||
|
|
||||||
public static final String DEVICE_HOURS = "device_hours";
|
|
||||||
|
|
||||||
public static final String WORK_CENTER = "work_center";
|
|
||||||
|
|
||||||
public static final String CREATE_BY = "create_by";
|
|
||||||
|
|
||||||
public static final String CREATE_TIME = "create_time";
|
|
||||||
|
|
||||||
public static final String UPDATE_BY = "update_by";
|
|
||||||
|
|
||||||
public static final String UPDATE_TIME = "update_time";
|
|
||||||
|
|
||||||
public static final String REMARK = "remark";
|
|
||||||
|
|
||||||
}
|
|
||||||
-215
@@ -1,215 +0,0 @@
|
|||||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
|
||||||
import lombok.experimental.Accessors;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>
|
|
||||||
* 物料采购单价
|
|
||||||
* </p>
|
|
||||||
*
|
|
||||||
* @author
|
|
||||||
* @since 2024-06-19
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
@Accessors(chain = true)
|
|
||||||
@TableName("cost_purchase_price")
|
|
||||||
public class CostPurchasePrice implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主键
|
|
||||||
*/
|
|
||||||
@TableId(value = "id", type = IdType.AUTO)
|
|
||||||
private String id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 物料编码
|
|
||||||
*/
|
|
||||||
@TableField("material_code")
|
|
||||||
private String materialCode;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 物料名称
|
|
||||||
*/
|
|
||||||
@TableField("material_name")
|
|
||||||
private String materialName;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 规格型号
|
|
||||||
*/
|
|
||||||
@TableField("specification")
|
|
||||||
private String specification;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 采购类型
|
|
||||||
*/
|
|
||||||
@TableField("purchase_type")
|
|
||||||
private String purchaseType;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 供应商代码
|
|
||||||
*/
|
|
||||||
@TableField("supplier_code")
|
|
||||||
private String supplierCode;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 供应商名称
|
|
||||||
*/
|
|
||||||
@TableField("supplier_name")
|
|
||||||
private String supplierName;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 采购价时间
|
|
||||||
*/
|
|
||||||
@TableField("purchase_price_time")
|
|
||||||
private LocalDateTime purchasePriceTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 采购价合计
|
|
||||||
*/
|
|
||||||
@TableField("purchase_price_sum")
|
|
||||||
private BigDecimal purchasePriceSum;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 最低采购单价
|
|
||||||
*/
|
|
||||||
@TableField("min_purchase_price")
|
|
||||||
private BigDecimal minPurchasePrice;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 最新采购单价
|
|
||||||
*/
|
|
||||||
@TableField("last_purchase_price")
|
|
||||||
private BigDecimal lastPurchasePrice;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 平均采购价
|
|
||||||
*/
|
|
||||||
@TableField("purchase_price_avg")
|
|
||||||
private BigDecimal purchasePriceAvg;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 直接材料费
|
|
||||||
*/
|
|
||||||
@TableField("direct_material_cost")
|
|
||||||
private BigDecimal directMaterialCost;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 工艺加工费用
|
|
||||||
*/
|
|
||||||
@TableField("process_cost")
|
|
||||||
private BigDecimal processCost;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 运输费用
|
|
||||||
*/
|
|
||||||
@TableField("transport_cost")
|
|
||||||
private BigDecimal transportCost;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 模具费用
|
|
||||||
*/
|
|
||||||
@TableField("mould_cost")
|
|
||||||
private BigDecimal mouldCost;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 其他费用
|
|
||||||
*/
|
|
||||||
@TableField("orther_cost")
|
|
||||||
private BigDecimal ortherCost;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 税率
|
|
||||||
*/
|
|
||||||
@TableField("tax_tate")
|
|
||||||
private BigDecimal taxTate;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建人
|
|
||||||
*/
|
|
||||||
@TableField("create_by")
|
|
||||||
private String createBy;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建时间
|
|
||||||
*/
|
|
||||||
@TableField("create_time")
|
|
||||||
private LocalDateTime createTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改人
|
|
||||||
*/
|
|
||||||
@TableField("update_by")
|
|
||||||
private String updateBy;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改时间
|
|
||||||
*/
|
|
||||||
@TableField("update_time")
|
|
||||||
private LocalDateTime updateTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 备注
|
|
||||||
*/
|
|
||||||
@TableField("remark")
|
|
||||||
private String remark;
|
|
||||||
|
|
||||||
|
|
||||||
public static final String ID = "id";
|
|
||||||
|
|
||||||
public static final String MATERIAL_CODE = "material_code";
|
|
||||||
|
|
||||||
public static final String MATERIAL_NAME = "material_name";
|
|
||||||
|
|
||||||
public static final String SPECIFICATION = "specification";
|
|
||||||
|
|
||||||
public static final String PURCHASE_TYPE = "purchase_type";
|
|
||||||
|
|
||||||
public static final String SUPPLIER_CODE = "supplier_code";
|
|
||||||
|
|
||||||
public static final String SUPPLIER_NAME = "supplier_name";
|
|
||||||
|
|
||||||
public static final String PURCHASE_PRICE_TIME = "purchase_price_time";
|
|
||||||
|
|
||||||
public static final String PURCHASE_PRICE_SUM = "purchase_price_sum";
|
|
||||||
|
|
||||||
public static final String MIN_PURCHASE_PRICE = "min_purchase_price";
|
|
||||||
|
|
||||||
public static final String LAST_PURCHASE_PRICE = "last_purchase_price";
|
|
||||||
|
|
||||||
public static final String PURCHASE_PRICE_AVG = "purchase_price_avg";
|
|
||||||
|
|
||||||
public static final String DIRECT_MATERIAL_COST = "direct_material_cost";
|
|
||||||
|
|
||||||
public static final String PROCESS_COST = "process_cost";
|
|
||||||
|
|
||||||
public static final String TRANSPORT_COST = "transport_cost";
|
|
||||||
|
|
||||||
public static final String MOULD_COST = "mould_cost";
|
|
||||||
|
|
||||||
public static final String ORTHER_COST = "orther_cost";
|
|
||||||
|
|
||||||
public static final String TAX_TATE = "tax_tate";
|
|
||||||
|
|
||||||
public static final String CREATE_BY = "create_by";
|
|
||||||
|
|
||||||
public static final String CREATE_TIME = "create_time";
|
|
||||||
|
|
||||||
public static final String UPDATE_BY = "update_by";
|
|
||||||
|
|
||||||
public static final String UPDATE_TIME = "update_time";
|
|
||||||
|
|
||||||
public static final String REMARK = "remark";
|
|
||||||
|
|
||||||
}
|
|
||||||
-132
@@ -1,132 +0,0 @@
|
|||||||
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: 标准成本
|
|
||||||
* @Author: wangqiong
|
|
||||||
* @Date: 2024-06-13
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@TableName("cost_standard")
|
|
||||||
@Accessors(chain = true)
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@ApiModel(value="cost_standard对象", description="cost_standard")
|
|
||||||
public class CostStandard 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;
|
|
||||||
|
|
||||||
/**版本号ID*/
|
|
||||||
@Excel(name = "版本号ID", width = 15)
|
|
||||||
@ApiModelProperty(value = "版本号ID")
|
|
||||||
private String versionNumberId;
|
|
||||||
|
|
||||||
/**bom材料费*/
|
|
||||||
@Excel(name = "bom材料费", width = 15)
|
|
||||||
@ApiModelProperty(value = "bom材料费")
|
|
||||||
private BigDecimal bomCost;
|
|
||||||
/**包装费*/
|
|
||||||
@Excel(name = "包装费", width = 15)
|
|
||||||
@ApiModelProperty(value = "包装费")
|
|
||||||
private BigDecimal packingCost;
|
|
||||||
/**辅料费*/
|
|
||||||
@Excel(name = "辅料费", width = 15)
|
|
||||||
@ApiModelProperty(value = "辅料费")
|
|
||||||
private BigDecimal auxiliaryCost;
|
|
||||||
/**人工费*/
|
|
||||||
@Excel(name = "人工费", width = 15)
|
|
||||||
@ApiModelProperty(value = "人工费")
|
|
||||||
private BigDecimal laborCost;
|
|
||||||
/**机器折旧费*/
|
|
||||||
@Excel(name = "机器折旧费", width = 15)
|
|
||||||
@ApiModelProperty(value = "机器折旧费")
|
|
||||||
private BigDecimal euipDepreciationCost;
|
|
||||||
/**机物料消耗费*/
|
|
||||||
@Excel(name = "机物料消耗费", width = 15)
|
|
||||||
@ApiModelProperty(value = "机物料消耗费")
|
|
||||||
private BigDecimal equipConsumeCost;
|
|
||||||
/**水电费*/
|
|
||||||
@Excel(name = "水电费", width = 15)
|
|
||||||
@ApiModelProperty(value = "水电费")
|
|
||||||
private BigDecimal hydroelectricityCost;
|
|
||||||
/**其他制造费*/
|
|
||||||
@Excel(name = "其他制造费", width = 15)
|
|
||||||
@ApiModelProperty(value = "其他制造费")
|
|
||||||
private BigDecimal otherCost;
|
|
||||||
/**物流费*/
|
|
||||||
@Excel(name = "物流费", width = 15)
|
|
||||||
@ApiModelProperty(value = "物流费")
|
|
||||||
private BigDecimal trailCost;
|
|
||||||
/**制造成本*/
|
|
||||||
@Excel(name = "制造成本", width = 15)
|
|
||||||
@ApiModelProperty(value = "制造成本")
|
|
||||||
private BigDecimal manufactureCost;
|
|
||||||
/**工装费*/
|
|
||||||
@Excel(name = "工装费", width = 15)
|
|
||||||
@ApiModelProperty(value = "工装费")
|
|
||||||
private BigDecimal toolingCost;
|
|
||||||
/**检具费*/
|
|
||||||
@Excel(name = "检具费", width = 15)
|
|
||||||
@ApiModelProperty(value = "检具费")
|
|
||||||
private BigDecimal inspectionCost;
|
|
||||||
/**模具费*/
|
|
||||||
@Excel(name = "模具费", width = 15)
|
|
||||||
@ApiModelProperty(value = "模具费")
|
|
||||||
private BigDecimal moldCost;
|
|
||||||
/**测试费*/
|
|
||||||
@Excel(name = "测试费", width = 15)
|
|
||||||
@ApiModelProperty(value = "测试费")
|
|
||||||
private BigDecimal testCost;
|
|
||||||
/**总成本*/
|
|
||||||
@Excel(name = "总成本", width = 15)
|
|
||||||
@ApiModelProperty(value = "总成本")
|
|
||||||
private BigDecimal totalCost;
|
|
||||||
/**创建人*/
|
|
||||||
@Excel(name = "创建人", width = 15)
|
|
||||||
@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;
|
|
||||||
/**修改人*/
|
|
||||||
@Excel(name = "修改人", width = 15)
|
|
||||||
@ApiModelProperty(value = "修改人")
|
|
||||||
private String updateBy;
|
|
||||||
/**修改日期*/
|
|
||||||
@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 updateTime;
|
|
||||||
/**备注*/
|
|
||||||
@Excel(name = "备注", width = 15)
|
|
||||||
@ApiModelProperty(value = "备注")
|
|
||||||
private String remark;
|
|
||||||
}
|
|
||||||
-255
@@ -1,255 +0,0 @@
|
|||||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
|
||||||
import lombok.experimental.Accessors;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>
|
|
||||||
* 标准成本明细表
|
|
||||||
* </p>
|
|
||||||
*
|
|
||||||
* @author cost_purchase_price
|
|
||||||
* @since 2024-06-19
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
@Accessors(chain = true)
|
|
||||||
@TableName("cost_standard_detail")
|
|
||||||
public class CostStandardDetail implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* id
|
|
||||||
*/
|
|
||||||
@TableId(value = "id", type = IdType.AUTO)
|
|
||||||
private String id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 子物料号,关联kn_new_sap_mara表matnr字段
|
|
||||||
*/
|
|
||||||
@TableField("material_number")
|
|
||||||
private String materialNumber;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 版本号id
|
|
||||||
*/
|
|
||||||
@TableField("version_number_id")
|
|
||||||
private String versionNumberId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 层级
|
|
||||||
*/
|
|
||||||
@TableField("level")
|
|
||||||
private String level;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 图号
|
|
||||||
*/
|
|
||||||
@TableField("figure_number")
|
|
||||||
private String figureNumber;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用量
|
|
||||||
*/
|
|
||||||
@TableField("dosage")
|
|
||||||
private String dosage;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 单位
|
|
||||||
*/
|
|
||||||
@TableField("unit")
|
|
||||||
private String unit;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 规格
|
|
||||||
*/
|
|
||||||
@TableField("specification")
|
|
||||||
private String specification;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* bom材料费
|
|
||||||
*/
|
|
||||||
@TableField("bom_cost")
|
|
||||||
private BigDecimal bomCost;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 包装费
|
|
||||||
*/
|
|
||||||
@TableField("packing_cost")
|
|
||||||
private BigDecimal packingCost;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 本阶辅料费
|
|
||||||
*/
|
|
||||||
@TableField("auxiliary_cost")
|
|
||||||
private BigDecimal auxiliaryCost;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 本阶人工费
|
|
||||||
*/
|
|
||||||
@TableField("labor_cost")
|
|
||||||
private BigDecimal laborCost;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 机器折旧费
|
|
||||||
*/
|
|
||||||
@TableField("euip_depreciation_cost")
|
|
||||||
private BigDecimal euipDepreciationCost;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 机物料消耗费
|
|
||||||
*/
|
|
||||||
@TableField("equip_consume_cost")
|
|
||||||
private BigDecimal equipConsumeCost;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 水电费
|
|
||||||
*/
|
|
||||||
@TableField("hydroelectricity_cost")
|
|
||||||
private BigDecimal hydroelectricityCost;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 其他制造费
|
|
||||||
*/
|
|
||||||
@TableField("other_cost")
|
|
||||||
private BigDecimal otherCost;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 物流费
|
|
||||||
*/
|
|
||||||
@TableField("trail_cost")
|
|
||||||
private BigDecimal trailCost;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 制造成本
|
|
||||||
*/
|
|
||||||
@TableField("manufacture_cost")
|
|
||||||
private BigDecimal manufactureCost;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 累计人工费
|
|
||||||
*/
|
|
||||||
@TableField("total_labor_cost")
|
|
||||||
private BigDecimal totalLaborCost;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 累计机器消耗费
|
|
||||||
*/
|
|
||||||
@TableField("total_equip_consume_cost")
|
|
||||||
private BigDecimal totalEquipConsumeCost;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 累计机器折旧费
|
|
||||||
*/
|
|
||||||
@TableField("total_euip_depreciation_cost")
|
|
||||||
private BigDecimal totalEuipDepreciationCost;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 累计水电费
|
|
||||||
*/
|
|
||||||
@TableField("total_hydroelectricity_cost")
|
|
||||||
private BigDecimal totalHydroelectricityCost;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 累计其它费用
|
|
||||||
*/
|
|
||||||
@TableField("total_other_cost")
|
|
||||||
private BigDecimal totalOtherCost;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建人
|
|
||||||
*/
|
|
||||||
@TableField("create_by")
|
|
||||||
private String createBy;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建日期
|
|
||||||
*/
|
|
||||||
@TableField("create_time")
|
|
||||||
private LocalDateTime createTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改人
|
|
||||||
*/
|
|
||||||
@TableField("update_by")
|
|
||||||
private String updateBy;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改日期
|
|
||||||
*/
|
|
||||||
@TableField("update_time")
|
|
||||||
private LocalDateTime updateTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 备注
|
|
||||||
*/
|
|
||||||
@TableField("remark")
|
|
||||||
private String remark;
|
|
||||||
|
|
||||||
|
|
||||||
public static final String ID = "id";
|
|
||||||
|
|
||||||
public static final String MATERIAL_NUMBER = "material_number";
|
|
||||||
|
|
||||||
public static final String VERSION_NUMBER_ID = "version_number_id";
|
|
||||||
|
|
||||||
public static final String LEVEL = "level";
|
|
||||||
|
|
||||||
public static final String FIGURE_NUMBER = "figure_number";
|
|
||||||
|
|
||||||
public static final String DOSAGE = "dosage";
|
|
||||||
|
|
||||||
public static final String UNIT = "unit";
|
|
||||||
|
|
||||||
public static final String SPECIFICATION = "specification";
|
|
||||||
|
|
||||||
public static final String BOM_COST = "bom_cost";
|
|
||||||
|
|
||||||
public static final String PACKING_COST = "packing_cost";
|
|
||||||
|
|
||||||
public static final String AUXILIARY_COST = "auxiliary_cost";
|
|
||||||
|
|
||||||
public static final String LABOR_COST = "labor_cost";
|
|
||||||
|
|
||||||
public static final String EUIP_DEPRECIATION_COST = "euip_depreciation_cost";
|
|
||||||
|
|
||||||
public static final String EQUIP_CONSUME_COST = "equip_consume_cost";
|
|
||||||
|
|
||||||
public static final String HYDROELECTRICITY_COST = "hydroelectricity_cost";
|
|
||||||
|
|
||||||
public static final String OTHER_COST = "other_cost";
|
|
||||||
|
|
||||||
public static final String TRAIL_COST = "trail_cost";
|
|
||||||
|
|
||||||
public static final String MANUFACTURE_COST = "manufacture_cost";
|
|
||||||
|
|
||||||
public static final String TOTAL_LABOR_COST = "total_labor_cost";
|
|
||||||
|
|
||||||
public static final String TOTAL_EQUIP_CONSUME_COST = "total_equip_consume_cost";
|
|
||||||
|
|
||||||
public static final String TOTAL_EUIP_DEPRECIATION_COST = "total_euip_depreciation_cost";
|
|
||||||
|
|
||||||
public static final String TOTAL_HYDROELECTRICITY_COST = "total_hydroelectricity_cost";
|
|
||||||
|
|
||||||
public static final String TOTAL_OTHER_COST = "total_other_cost";
|
|
||||||
|
|
||||||
public static final String CREATE_BY = "create_by";
|
|
||||||
|
|
||||||
public static final String CREATE_TIME = "create_time";
|
|
||||||
|
|
||||||
public static final String UPDATE_BY = "update_by";
|
|
||||||
|
|
||||||
public static final String UPDATE_TIME = "update_time";
|
|
||||||
|
|
||||||
public static final String REMARK = "remark";
|
|
||||||
|
|
||||||
}
|
|
||||||
-80
@@ -1,80 +0,0 @@
|
|||||||
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: 标准成本-版本号
|
|
||||||
* @Author: wangqiong
|
|
||||||
* @Date: 2024-06-13
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@TableName("cost_standard_version")
|
|
||||||
@Accessors(chain = true)
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@ApiModel(value="cost_standard_version对象", description="cost_standard_version")
|
|
||||||
public class CostStandardVersion 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;
|
|
||||||
/**阶段,A-初始,B-首批,C-量产*/
|
|
||||||
@Excel(name = "阶段", width = 15)
|
|
||||||
@ApiModelProperty(value = "阶段")
|
|
||||||
private String stage;
|
|
||||||
/**物料号*/
|
|
||||||
@Excel(name = "物料号", width = 15)
|
|
||||||
@ApiModelProperty(value = "物料号")
|
|
||||||
private String materialNumber;
|
|
||||||
/**版本号*/
|
|
||||||
@ApiModelProperty(value = "版本号")
|
|
||||||
private String versionNumber;
|
|
||||||
/**版本状态*/
|
|
||||||
@ApiModelProperty(value = "版本状态")
|
|
||||||
private String versionStatus;
|
|
||||||
/**创建人*/
|
|
||||||
@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;
|
|
||||||
/**备注*/
|
|
||||||
@ApiModelProperty(value = "备注")
|
|
||||||
private String remark;
|
|
||||||
/**年份*/
|
|
||||||
@ApiModelProperty(value = "年份")
|
|
||||||
private String versionYear;
|
|
||||||
}
|
|
||||||
-99
@@ -1,99 +0,0 @@
|
|||||||
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.*;
|
|
||||||
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: hour_rate
|
|
||||||
* @Author: jeecg-boot
|
|
||||||
* @Date: 2024-06-06
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@TableName("cost_hour_rate")
|
|
||||||
@Accessors(chain = true)
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@ApiModel(value="hour_rate对象", description="hour_rate")
|
|
||||||
public class HourRate implements Serializable {
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**年度*/
|
|
||||||
@Excel(name = "年度", width = 15)
|
|
||||||
@ApiModelProperty(value = "年度")
|
|
||||||
private java.lang.String year;
|
|
||||||
/**成本中心代码*/
|
|
||||||
@Excel(name = "成本中心代码", width = 15)
|
|
||||||
@ApiModelProperty(value = "成本中心代码")
|
|
||||||
private java.lang.String costCenterCode;
|
|
||||||
/**工厂代码*/
|
|
||||||
@Excel(name = "工厂代码", width = 15)
|
|
||||||
@ApiModelProperty(value = "工厂代码")
|
|
||||||
private java.lang.String factory;
|
|
||||||
/**人工小时费率*/
|
|
||||||
@Excel(name = "人工小时费率", width = 15)
|
|
||||||
@ApiModelProperty(value = "人工小时费率")
|
|
||||||
private java.math.BigDecimal laborHourRate;
|
|
||||||
/**设备小时费率*/
|
|
||||||
@Excel(name = "设备小时费率", width = 15)
|
|
||||||
@ApiModelProperty(value = "设备小时费率")
|
|
||||||
private java.math.BigDecimal equipHourRate;
|
|
||||||
/**燃动小时费率*/
|
|
||||||
@Excel(name = "燃动小时费率", width = 15)
|
|
||||||
@ApiModelProperty(value = "燃动小时费率")
|
|
||||||
private java.math.BigDecimal fuelHourRate;
|
|
||||||
/**辅料小时费率*/
|
|
||||||
@Excel(name = "辅料小时费率", width = 15)
|
|
||||||
@ApiModelProperty(value = "辅料小时费率")
|
|
||||||
private java.math.BigDecimal auxiliaryHourRate;
|
|
||||||
/**其他小时费率*/
|
|
||||||
@Excel(name = "其他小时费率", width = 15)
|
|
||||||
@ApiModelProperty(value = "其他小时费率")
|
|
||||||
private java.math.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 java.util.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 java.util.Date expirationDate;
|
|
||||||
/**维护人员*/
|
|
||||||
@Excel(name = "维护人员", width = 15)
|
|
||||||
@ApiModelProperty(value = "维护人员")
|
|
||||||
private java.lang.String guardian;
|
|
||||||
/**维护时间*/
|
|
||||||
@Excel(name = "维护时间", width = 15)
|
|
||||||
@ApiModelProperty(value = "维护时间")
|
|
||||||
private java.lang.String maintenanceTime;
|
|
||||||
/**预留字段1*/
|
|
||||||
@Excel(name = "预留字段1", width = 15)
|
|
||||||
@ApiModelProperty(value = "预留字段1")
|
|
||||||
@TableField(value = "reserve_1")
|
|
||||||
private java.lang.String reserve1;
|
|
||||||
/**预留字段2*/
|
|
||||||
@Excel(name = "预留字段2", width = 15)
|
|
||||||
@ApiModelProperty(value = "预留字段2")
|
|
||||||
@TableField(value = "reserve_2")
|
|
||||||
private java.math.BigDecimal reserve2;
|
|
||||||
/**主键*/
|
|
||||||
@TableId(type = IdType.ASSIGN_ID)
|
|
||||||
@ApiModelProperty(value = "主键")
|
|
||||||
private java.lang.String id;
|
|
||||||
}
|
|
||||||
-107
@@ -1,107 +0,0 @@
|
|||||||
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: latest_purchase_price
|
|
||||||
* @Author: jeecg-boot
|
|
||||||
* @Date: 2024-06-11
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@TableName("latest_purchase_price")
|
|
||||||
@Accessors(chain = true)
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@ApiModel(value="latest_purchase_price对象", description="latest_purchase_price")
|
|
||||||
public class LatestPurchasePrice implements Serializable {
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**门控料号(物料id)*/
|
|
||||||
@Excel(name = "门控料号(物料id)", width = 15)
|
|
||||||
@ApiModelProperty(value = "门控料号(物料id)")
|
|
||||||
private String materialNumber;
|
|
||||||
/**产品名称*/
|
|
||||||
@Excel(name = "产品名称", width = 15)
|
|
||||||
@ApiModelProperty(value = "产品名称")
|
|
||||||
private String name;
|
|
||||||
/**规格*/
|
|
||||||
@Excel(name = "规格", width = 15)
|
|
||||||
@ApiModelProperty(value = "规格")
|
|
||||||
private String norms;
|
|
||||||
/**单位*/
|
|
||||||
@Excel(name = "单位", width = 15)
|
|
||||||
@ApiModelProperty(value = "单位")
|
|
||||||
private String unit;
|
|
||||||
/**latestInvoiceNo*/
|
|
||||||
@Excel(name = "latestInvoiceNo", width = 15)
|
|
||||||
@ApiModelProperty(value = "latestInvoiceNo")
|
|
||||||
private String latestInvoiceNo;
|
|
||||||
/**估算日期*/
|
|
||||||
@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 latestInvoiceDate;
|
|
||||||
/**latestInvoiceSupplier*/
|
|
||||||
@Excel(name = "latestInvoiceSupplier", width = 15)
|
|
||||||
@ApiModelProperty(value = "latestInvoiceSupplier")
|
|
||||||
private String latestInvoiceSupplier;
|
|
||||||
/**latestInvoicePrice*/
|
|
||||||
@Excel(name = "latestInvoicePrice", width = 15)
|
|
||||||
@ApiModelProperty(value = "latestInvoicePrice")
|
|
||||||
private BigDecimal latestInvoicePrice;
|
|
||||||
/**不含税价格*/
|
|
||||||
@Excel(name = "不含税价格", width = 15)
|
|
||||||
@ApiModelProperty(value = "不含税价格")
|
|
||||||
private BigDecimal unitPriceWithoutTax;
|
|
||||||
/**interExamCost*/
|
|
||||||
@Excel(name = "interExamCost", width = 15)
|
|
||||||
@ApiModelProperty(value = "interExamCost")
|
|
||||||
private BigDecimal interExamCost;
|
|
||||||
/**工厂代号(工厂id)*/
|
|
||||||
@Excel(name = "工厂代号(工厂id)", width = 15)
|
|
||||||
@ApiModelProperty(value = "工厂代号(工厂id)")
|
|
||||||
private String factory;
|
|
||||||
/**维护人*/
|
|
||||||
@Excel(name = "维护人", width = 15)
|
|
||||||
@ApiModelProperty(value = "维护人")
|
|
||||||
private String guardian;
|
|
||||||
/**维护时间*/
|
|
||||||
@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 maintenanceTime;
|
|
||||||
/**isadd*/
|
|
||||||
@Excel(name = "isadd", width = 15)
|
|
||||||
@ApiModelProperty(value = "isadd")
|
|
||||||
private Integer isadd;
|
|
||||||
/**采购类型*/
|
|
||||||
@Excel(name = "采购类型", width = 15)
|
|
||||||
@ApiModelProperty(value = "采购类型")
|
|
||||||
private String purchaseType;
|
|
||||||
/**是否启用*/
|
|
||||||
@Excel(name = "是否启用", width = 15)
|
|
||||||
@ApiModelProperty(value = "是否启用")
|
|
||||||
private Integer isinvalid;
|
|
||||||
/**id*/
|
|
||||||
@TableId(type = IdType.ASSIGN_ID)
|
|
||||||
@ApiModelProperty(value = "id")
|
|
||||||
private String id;
|
|
||||||
}
|
|
||||||
-65
@@ -1,65 +0,0 @@
|
|||||||
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: produce_batch
|
|
||||||
* @Author: jeecg-boot
|
|
||||||
* @Date: 2024-06-11
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@TableName("produce_batch")
|
|
||||||
@Accessors(chain = true)
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@ApiModel(value="produce_batch对象", description="produce_batch")
|
|
||||||
public class ProduceBatch implements Serializable {
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**门控料号(物料id)*/
|
|
||||||
@Excel(name = "门控料号(物料id)", width = 15)
|
|
||||||
@ApiModelProperty(value = "门控料号(物料id)")
|
|
||||||
private String materialNumber;
|
|
||||||
/**工厂代号(工厂id)*/
|
|
||||||
@Excel(name = "工厂代号(工厂id)", width = 15)
|
|
||||||
@ApiModelProperty(value = "工厂代号(工厂id)")
|
|
||||||
private String factory;
|
|
||||||
/**生产批量*/
|
|
||||||
@Excel(name = "生产批量", width = 15)
|
|
||||||
@ApiModelProperty(value = "生产批量")
|
|
||||||
private BigDecimal batch;
|
|
||||||
/**维护人(用户id)*/
|
|
||||||
@Excel(name = "维护人(用户id)", width = 15)
|
|
||||||
@ApiModelProperty(value = "维护人(用户id)")
|
|
||||||
private String guardian;
|
|
||||||
/**维护时间*/
|
|
||||||
@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 maintenanceTime;
|
|
||||||
/**aufnr*/
|
|
||||||
// @Excel(name = "aufnr", width = 15)
|
|
||||||
@ApiModelProperty(value = "aufnr")
|
|
||||||
private String aufnr;
|
|
||||||
/**主键*/
|
|
||||||
@TableId(type = IdType.ASSIGN_ID)
|
|
||||||
@ApiModelProperty(value = "主键")
|
|
||||||
private String id;
|
|
||||||
}
|
|
||||||
-47
@@ -1,47 +0,0 @@
|
|||||||
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: sap_subfactory
|
|
||||||
* @Author: jeecg-boot
|
|
||||||
* @Date: 2024-06-11
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@TableName("sap_subfactory")
|
|
||||||
@Accessors(chain = true)
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@ApiModel(value="sap_subfactory对象", description="sap_subfactory")
|
|
||||||
public class SapSubfactory 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 companyCode;
|
|
||||||
/**工厂代码*/
|
|
||||||
@Excel(name = "工厂代码", width = 15)
|
|
||||||
@ApiModelProperty(value = "工厂代码")
|
|
||||||
private String factory;
|
|
||||||
}
|
|
||||||
+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;
|
||||||
|
}
|
||||||
|
}
|
||||||
+11
-16
@@ -8,39 +8,33 @@ package com.zzsmart.qomo.kn.cost.manage.enums;
|
|||||||
* @Created wangqiong
|
* @Created wangqiong
|
||||||
*/
|
*/
|
||||||
public enum StandardStageEnum {
|
public enum StandardStageEnum {
|
||||||
INIT("A", "初始"),
|
INIT("A", "初始"), FIRST_BATCH("B", "首批"), MASS_PRODUCTION("C", "量产");
|
||||||
FIRST_BATCH("B", "首批"),
|
|
||||||
MASS_PRODUCTION("C", "量产"),
|
|
||||||
|
|
||||||
|
|
||||||
;
|
|
||||||
|
|
||||||
private final String code;
|
private final String code;
|
||||||
private final String text;
|
private final String text;
|
||||||
|
|
||||||
StandardStageEnum(String code, String text)
|
StandardStageEnum(String code, String text) {
|
||||||
{
|
|
||||||
this.code = code;
|
this.code = code;
|
||||||
this.text = text;
|
this.text = text;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCode()
|
public String getCode() {
|
||||||
{
|
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getText()
|
public String getText() {
|
||||||
{
|
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据code获取text
|
* 根据code获取text
|
||||||
|
*
|
||||||
* @param codeNo
|
* @param codeNo
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public static String getTextByCode(String codeNo){
|
public static String getTextByCode(String codeNo) {
|
||||||
for (StandardStageEnum value : StandardStageEnum.values()) {
|
for (StandardStageEnum value : StandardStageEnum.values()) {
|
||||||
if (value.getCode().equals(codeNo)){
|
if (value.getCode().equals(codeNo)) {
|
||||||
return value.getText();
|
return value.getText();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -49,12 +43,13 @@ public enum StandardStageEnum {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据text获取code
|
* 根据text获取code
|
||||||
|
*
|
||||||
* @param textStr
|
* @param textStr
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public static String getCodeByText(String textStr){
|
public static String getCodeByText(String textStr) {
|
||||||
for (StandardStageEnum value : StandardStageEnum.values()) {
|
for (StandardStageEnum value : StandardStageEnum.values()) {
|
||||||
if (value.getText().equals(textStr)){
|
if (value.getText().equals(textStr)) {
|
||||||
return value.getText();
|
return value.getText();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+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;
|
||||||
|
}
|
||||||
|
}
|
||||||
+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 matnr, idnrk, menge/bmeng as menge,1.000000 as pmenge,1.000000 as topmenge, 1 AS depth\n" +
|
||||||
|
" FROM app_scene_cost_bom_relevancy\n" +
|
||||||
|
" WHERE matnr = #{parentId}\n" +
|
||||||
|
" UNION ALL\n" +
|
||||||
|
" SELECT b.matnr, b.idnrk, b.menge/b.bmeng as menge, BOM_Tree.menge as pmenge,BOM_Tree.menge*(b.menge/b.bmeng) AS topmenge,BOM_Tree.depth + 1\n" +
|
||||||
|
" FROM app_scene_cost_bom_relevancy b\n" +
|
||||||
|
" JOIN BOM_Tree ON b.matnr = BOM_Tree.idnrk\n" +
|
||||||
|
")\n" +
|
||||||
|
"SELECT matnr, idnrk, menge,pmenge,topmenge, depth FROM BOM_Tree")
|
||||||
|
List<BomTreeVo> findChildrenByParentId(String parentId);
|
||||||
|
|
||||||
|
|
||||||
|
@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> {
|
||||||
|
|
||||||
|
}
|
||||||
+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> {
|
||||||
|
|
||||||
|
}
|
||||||
+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> {
|
||||||
|
|
||||||
|
}
|
||||||
+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.AppSceneCostStandardDetail;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: app_scene_cost_standard_detail
|
||||||
|
* @Author: jeecg-boot
|
||||||
|
* @Date: 2024-07-31
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
public interface AppSceneCostStandardDetailMapper extends BaseMapper<AppSceneCostStandardDetail> {
|
||||||
|
|
||||||
|
}
|
||||||
+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.AppSceneCostStandardResult;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: app_scene_cost_standard_detail
|
||||||
|
* @Author: jeecg-boot
|
||||||
|
* @Date: 2024-07-31
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
public interface AppSceneCostStandardResultMapper extends BaseMapper<AppSceneCostStandardResult> {
|
||||||
|
|
||||||
|
}
|
||||||
+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.AppSceneCostStandardVersion;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: app_scene_cost_standard_version
|
||||||
|
* @Author: jeecg-boot
|
||||||
|
* @Date: 2024-09-08
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
public interface AppSceneCostStandardVersionMapper extends BaseMapper<AppSceneCostStandardVersion> {
|
||||||
|
|
||||||
|
}
|
||||||
-14
@@ -1,14 +0,0 @@
|
|||||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.entity.BudgetPrice;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description: budget_price
|
|
||||||
* @Author: jeecg-boot
|
|
||||||
* @Date: 2024-06-11
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
public interface BudgetPriceMapper extends BaseMapper<BudgetPrice> {
|
|
||||||
|
|
||||||
}
|
|
||||||
-18
@@ -1,18 +0,0 @@
|
|||||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.entity.C7525cost;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description: c7525cost
|
|
||||||
* @Author: jeecg-boot
|
|
||||||
* @Date: 2024-06-06
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
public interface C7525costMapper extends BaseMapper<C7525cost> {
|
|
||||||
|
|
||||||
}
|
|
||||||
-17
@@ -1,17 +0,0 @@
|
|||||||
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.CostCenter;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description: cost_center
|
|
||||||
* @Author: jeecg-boot
|
|
||||||
* @Date: 2024-06-11
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
public interface CostCenterMapper extends BaseMapper<CostCenter> {
|
|
||||||
|
|
||||||
}
|
|
||||||
-18
@@ -1,18 +0,0 @@
|
|||||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
|
||||||
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.entity.CostMaterialBom;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>
|
|
||||||
* 物料bom Mapper 接口
|
|
||||||
* </p>
|
|
||||||
*
|
|
||||||
* @author
|
|
||||||
* @since 2024-06-19
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface CostMaterialBomMapper extends BaseMapper<CostMaterialBom> {
|
|
||||||
|
|
||||||
}
|
|
||||||
-18
@@ -1,18 +0,0 @@
|
|||||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
|
||||||
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.entity.CostMaterialProcessHours;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>
|
|
||||||
* 物料工时工序表 Mapper 接口
|
|
||||||
* </p>
|
|
||||||
*
|
|
||||||
* @author
|
|
||||||
* @since 2024-06-19
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface CostMaterialProcessHoursMapper extends BaseMapper<CostMaterialProcessHours> {
|
|
||||||
|
|
||||||
}
|
|
||||||
-18
@@ -1,18 +0,0 @@
|
|||||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.entity.CostPartMissingInfo;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description: 标准成本-部件缺失信息
|
|
||||||
* @Author: wangqiong
|
|
||||||
* @Date: 2024-06-13
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
public interface CostPartMissingInfoMapper extends BaseMapper<CostPartMissingInfo> {
|
|
||||||
|
|
||||||
}
|
|
||||||
-18
@@ -1,18 +0,0 @@
|
|||||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
|
||||||
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.entity.CostPurchasePrice;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>
|
|
||||||
* 物料采购单价 Mapper 接口
|
|
||||||
* </p>
|
|
||||||
*
|
|
||||||
* @author
|
|
||||||
* @since 2024-06-19
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface CostPurchasePriceMapper extends BaseMapper<CostPurchasePrice> {
|
|
||||||
|
|
||||||
}
|
|
||||||
-18
@@ -1,18 +0,0 @@
|
|||||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
|
||||||
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.entity.CostStandardDetail;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>
|
|
||||||
* 标准成本明细表 Mapper 接口
|
|
||||||
* </p>
|
|
||||||
*
|
|
||||||
* @author cost_purchase_price
|
|
||||||
* @since 2024-06-19
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface CostStandardDetailMapper extends BaseMapper<CostStandardDetail> {
|
|
||||||
|
|
||||||
}
|
|
||||||
-24
@@ -1,24 +0,0 @@
|
|||||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
||||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.entity.CostStandard;
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.vo.CostStandardVO;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description: 标准成本
|
|
||||||
* @Author: wangqiong
|
|
||||||
* @Date: 2024-06-13
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
public interface CostStandardMapper extends BaseMapper<CostStandard> {
|
|
||||||
|
|
||||||
IPage<CostStandardVO> pageList(@Param("page")Page<CostStandardVO> page , @Param(Constants.WRAPPER) Wrapper<CostStandardVO> wrapper);
|
|
||||||
}
|
|
||||||
-18
@@ -1,18 +0,0 @@
|
|||||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.entity.CostStandardVersion;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description: 标准成本-版本号
|
|
||||||
* @Author: wangqiong
|
|
||||||
* @Date: 2024-06-13
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
public interface CostStandardVersionMapper extends BaseMapper<CostStandardVersion> {
|
|
||||||
|
|
||||||
}
|
|
||||||
-14
@@ -1,14 +0,0 @@
|
|||||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.entity.HourRate;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description: hour_rate
|
|
||||||
* @Author: jeecg-boot
|
|
||||||
* @Date: 2024-06-06
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
public interface HourRateMapper extends BaseMapper<HourRate> {
|
|
||||||
|
|
||||||
}
|
|
||||||
-18
@@ -1,18 +0,0 @@
|
|||||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.entity.LatestPurchasePrice;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description: latest_purchase_price
|
|
||||||
* @Author: jeecg-boot
|
|
||||||
* @Date: 2024-06-11
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
public interface LatestPurchasePriceMapper extends BaseMapper<LatestPurchasePrice> {
|
|
||||||
|
|
||||||
}
|
|
||||||
-18
@@ -1,18 +0,0 @@
|
|||||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import com.zzsmart.qomo.kn.cost.manage.entity.ProduceBatch;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description: produce_batch
|
|
||||||
* @Author: jeecg-boot
|
|
||||||
* @Date: 2024-06-11
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
public interface ProduceBatchMapper extends BaseMapper<ProduceBatch> {
|
|
||||||
|
|
||||||
}
|
|
||||||
-17
@@ -1,17 +0,0 @@
|
|||||||
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.SapSubfactory;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description: sap_subfactory
|
|
||||||
* @Author: jeecg-boot
|
|
||||||
* @Date: 2024-06-11
|
|
||||||
* @Version: V1.0
|
|
||||||
*/
|
|
||||||
public interface SapSubfactoryMapper extends BaseMapper<SapSubfactory> {
|
|
||||||
|
|
||||||
}
|
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostBomRelevancyMapper">
|
||||||
|
|
||||||
|
</mapper>
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.zzsmart.qomo.kn.cost.manage.mapper.HourRateMapper">
|
<mapper namespace="com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostCountMapper">
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.zzsmart.qomo.kn.cost.manage.mapper.CostCenterMapper">
|
<mapper namespace="com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostHourRateMapper">
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.zzsmart.qomo.kn.cost.manage.mapper.CostPartMissingInfoMapper">
|
<mapper namespace="com.zzsmart.qomo.modules.demo..mapper.AppSceneCostMaterialMapper">
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.zzsmart.qomo.kn.cost.manage.mapper.BudgetPriceMapper">
|
<mapper namespace="com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostModelMapper">
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostPartMissingInfoMapper">
|
||||||
|
|
||||||
|
</mapper>
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostProductProcessMaintenanceMapper">
|
||||||
|
|
||||||
|
</mapper>
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostPurchaseEvaluateMapper">
|
||||||
|
|
||||||
|
</mapper>
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostPurchaseRecordMapper">
|
||||||
|
|
||||||
|
</mapper>
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.zzsmart.qomo.kn.cost.manage.mapper.C7525costMapper">
|
<mapper namespace="com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostResultValueMapper">
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user