45 Commits
Author SHA1 Message Date
xieke 8c3802921b init 2024-11-07 17:55:38 +08:00
xieke b169b641de 标准成本计算、单行查询、结构树查询优化 2024-09-18 14:29:55 +08:00
xiekeandGitea 3d3c289f46 Merge branch 'dev' of kn-cost/cost-backend into xieke 2024-09-17 11:21:20 +08:00
bgyandGitea 3f00c556ed Merge branch 'bgy' of kn-cost/cost-backend into dev 2024-09-17 00:38:59 +08:00
bgy fe4b315987 优化单行查询(结果集映射) 2024-09-17 00:35:22 +08:00
bgy 38186530c6 修改标准成本计算功能。修改标准成本单行查询功能 2024-09-17 00:02:37 +08:00
xiekeandGitea f8f5ee3ec3 Merge branch 'bgy' of kn-cost/cost-backend into dev 2024-09-16 10:39:34 +08:00
bgy 1eb6e5915e 优化成本计算逻辑进行中 2024-09-14 18:35:25 +08:00
bgy 734414f3ba 优化模型新增。优化成本计算功能。 2024-09-13 19:57:57 +08:00
bgy fd86a96a6d 重新生成bom、工序、采购价、版本号mapper 2024-09-08 16:21:58 +08:00
bgyandGitea 6112ed5479 Merge branch 'bgy' of kn-cost/cost-backend into master 2024-08-28 18:59:12 +08:00
bgy 48507ebd3a 优化结构树查询,注释权限 2024-08-23 11:43:30 +08:00
wangqiong 0e432058e6 修改pom依赖(解决导出依赖包冲突问题) 2024-08-06 14:54:33 +08:00
wangqiong 71497f5641 优化单行查询接口 2024-08-02 18:05:54 +08:00
wangqiong 28f050efc2 新增采购合同相关接口 2024-08-02 11:17:51 +08:00
wangqiong b9f7d0380d 新增基础数据(小时费率、采购价、工序工时、物料BOM、版本号、部件缺失信息)相关接口 2024-08-02 11:01:26 +08:00
wangqiong 1a2dee14e4 优化成本计算接口 2024-08-02 08:59:09 +08:00
wangqiong 339cf044a8 优化标准成本计算功能 2024-07-31 17:44:39 +08:00
wangqiong ddc7772381 优化标准成本计算后批量存储到标准成本详情表中(单行查询表中) 2024-07-31 17:10:18 +08:00
wangqiong 137e83a126 优化模型新增和编辑接口 2024-07-30 17:46:54 +08:00
wangqiong b070f6b55b 新增费用分类统计的计算逻辑 2024-07-30 17:04:14 +08:00
bgyandGitea 2b8a7364ce Merge branch 'bgy' of kn-cost/cost-backend into dev 2024-07-29 18:07:32 +08:00
wangqiong 050a54246c 新增模型计算任务相关的接口 2024-07-29 18:06:39 +08:00
wangqiong 2872719a68 优化标准成本计算功能 2024-07-26 16:52:10 +08:00
wangqiong 1030034e41 完善标准成本计算功能 2024-07-25 17:39:00 +08:00
wangqiong 240b7134e5 优化标准成本任务执行逻辑 2024-07-24 18:13:01 +08:00
wangqiong 7f8f31100a 新增标准成本计算流程任务模块 2024-07-23 17:33:01 +08:00
wangqiong 002eb76d4f 开发阶段目前先排除掉权限的校验 2024-07-22 11:33:07 +08:00
wangqiong f4c40173a9 修改配置文件与平台配置文件一致 2024-07-22 11:29:54 +08:00
wangqiong ef686c0db1 修改pom依赖与平台依赖一致 2024-07-22 11:28:28 +08:00
wangqiong a96d28c993 修改数据库表名(以app_scene为前缀),删除不必要的代码 2024-07-22 10:45:07 +08:00
wangqiong a5670f9b13 Merge branch 'dev' of http://git.xayunmei.com/kn-cost/cost-backend into bgy 2024-07-05 10:40:23 +08:00
wangqiong 48fe97b97a 优化结构树查询接口 2024-06-25 11:17:19 +08:00
wangqiong 62a8797e5f 优化结构树查询和单行查询导出接口开发 2024-06-24 17:56:23 +08:00
wangqiong e13e7c0bf7 优化bom结构树查询接口 2024-06-21 17:45:39 +08:00
wangqiong b10ac05907 新增bom信息列表查询,版本号列表查询接口 2024-06-21 17:13:22 +08:00
wangqiong cd51d08302 优化bom树查询接口 2024-06-21 16:38:43 +08:00
bgyandGitea c8c90fd851 Merge branch 'bgy' of kn-cost/cost-backend into dev 2024-06-21 14:49:23 +08:00
wangqiong 6bd51f2f6c 添加字段备注 2024-06-21 14:47:29 +08:00
bgyandGitea d670a53697 Merge branch 'bgy' of kn-cost/cost-backend into dev 2024-06-21 11:09:43 +08:00
wangqiong da69b887b0 结构树查询接口 2024-06-21 11:07:42 +08:00
wangqiong 38b75df08a 优化单行查询接口 2024-06-20 16:50:53 +08:00
wangqiong 495f535596 优化标准成本单行查询接口 2024-06-20 16:25:02 +08:00
wangqiong 9442a3b69d 标准成本单行查询 2024-06-20 11:03:41 +08:00
wangqiong123andGitea 7d745f0ee7 Merge branch 'wq' of kn-cost/cost-backend into dev 2024-06-19 10:08:51 +08:00
326 changed files with 24468 additions and 4681 deletions
+51 -12
View File
@@ -1,12 +1,17 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.zzsmart.qomo</groupId>
<artifactId>qomo-kn-forecast</artifactId>
<version>${revision}</version>
<packaging>pom</packaging>
<name>QOMO FORECAST</name>
<name>QOMO Cost Manage</name>
<modules>
<module>qomo-kn-cost-manage-start</module>
<module>qomo-kn-cost-manage</module>
</modules>
<developers>
<developer>
<name>武汉中制智造</name>
@@ -24,13 +29,8 @@
<properties>
<revision>2.0.0-SNAPSHOT</revision>
<adp.version>2.0.0-SNAPSHOT</adp.version>
<dmp.version>2.0.0-SNAPSHOT</dmp.version>
</properties>
<modules>
<module>qomo-kn-cost-manage-start</module>
<module>qomo-kn-cost-manage</module>
</modules>
<repositories>
<repository>
<id>zzzz</id>
@@ -98,9 +98,48 @@
<artifactId>qomo-kn-cost-manage</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.zzsmart.qomo</groupId>
<artifactId>qomo-data-model</artifactId>
<version>${dmp.version}</version>
</dependency>
<dependency>
<groupId>com.zzsmart.qomo</groupId>
<artifactId>qomo-assets-management</artifactId>
<version>${dmp.version}</version>
</dependency>
<dependency>
<groupId>com.zzsmart.qomo</groupId>
<artifactId>qomo-data-integration</artifactId>
<version>${dmp.version}</version>
</dependency>
<dependency>
<groupId>com.zzsmart.qomo</groupId>
<artifactId>qomo-data-metadata</artifactId>
<version>${dmp.version}</version>
</dependency>
<dependency>
<groupId>com.zzsmart.qomo</groupId>
<artifactId>qomo-work-flow</artifactId>
<version>${dmp.version}</version>
</dependency>
<dependency>
<groupId>com.zzsmart.qomo</groupId>
<artifactId>qomo-data-warehouse</artifactId>
<version>${dmp.version}</version>
</dependency>
<dependency>
<groupId>com.zzsmart.qomo</groupId>
<artifactId>qomo-data-selfReport</artifactId>
<version>${dmp.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<!-- 环境 -->
<profiles>
<!-- 开发 -->
@@ -175,4 +214,4 @@
</profile>
<!-- SpringCloud运行环境 -->
</profiles>
</project>
</project>
+51 -2
View File
@@ -2,13 +2,12 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.zzsmart.qomo</groupId>
<artifactId>qomo-kn-forecast</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>qomo-kn-cost-manage-start</artifactId>
<properties>
@@ -34,6 +33,8 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.zzsmart.qomo</groupId>
<artifactId>qomo-kn-cost-manage</artifactId>
@@ -52,4 +53,52 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>dmp</id>
<activation>
<!--默认激活配置-->
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<profile.name>dmp</profile.name>
</properties>
<dependencies>
<dependency>
<groupId>com.zzsmart.qomo</groupId>
<artifactId>qomo-data-model</artifactId>
</dependency>
<dependency>
<groupId>com.zzsmart.qomo</groupId>
<artifactId>qomo-assets-management</artifactId>
</dependency>
<dependency>
<groupId>com.zzsmart.qomo</groupId>
<artifactId>qomo-data-integration</artifactId>
</dependency>
<dependency>
<groupId>com.zzsmart.qomo</groupId>
<artifactId>qomo-data-metadata</artifactId>
</dependency>
<dependency>
<groupId>com.zzsmart.qomo</groupId>
<artifactId>qomo-work-flow</artifactId>
</dependency>
<dependency>
<groupId>com.zzsmart.qomo</groupId>
<artifactId>qomo-data-warehouse</artifactId>
</dependency>
<dependency>
<groupId>com.zzsmart.qomo</groupId>
<artifactId>qomo-data-selfReport</artifactId>
</dependency>
</dependencies>
</profile>
</profiles>
</project>
@@ -2,6 +2,7 @@ package com.zzsmart.qomo.kn.cost.manage;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.util.oConvertUtils;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
@@ -14,11 +15,12 @@ import java.net.InetAddress;
import java.net.UnknownHostException;
/**
* 单体启动类
* 报错提醒: 未集成mongo报错,可以打开启动类上面的注释 exclude={MongoAutoConfiguration.class}
*/
* 单体启动类
* 报错提醒: 未集成mongo报错,可以打开启动类上面的注释 exclude={MongoAutoConfiguration.class}
*/
@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})
@EnableAsync
public class QomoCostManageApplication extends SpringBootServletInitializer {
@@ -3,19 +3,19 @@ v2:
xnljmap:
#win服务器 本地 注意!! 记住这个结尾有一个/
oss: file:/data/qomo-boot/oss/
# oss: file:D:/upload/
# oss: file:D:/upload/
#linux服务器
#oss: file:/home/webapps/oss/
#虚拟路径映射路径 end
#本地存放地址 注意!! 记住这个结尾没有/
fileurl: /data/qomo-boot/oss
# fileurl: D:/upload
# fileurl: D:/upload
#http://127.0.0.1:8080/oss/{yy}/2022-12-22/c83a77ae134a540c30daa6a0666fa945.md
httpurl: /qomo/
defaultFormat: .png
server:
port: 8095
port: 8099
tomcat:
max-swallow-size: -1
error:
@@ -154,8 +154,7 @@ spring:
prefer-file-system-access: false
# 设置ftl文件路径
template-loader-path:
- classpath:/template
# - d:/data
- classpath:/templates
template_update_delay: 0
# 设置静态文件路径,js,css等
mvc:
@@ -206,14 +205,16 @@ spring:
# 通过connectProperties属性来打开mergeSql功能;慢SQL记录
connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
datasource:
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
# master:
# url: jdbc:mysql://192.168.50.9:2212/selef_report?useUnicode=true&allowMultiQueries=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&serverTimezone=Asia/Shanghai&useSSL=false
# username: root
# password: root
# username: zzzz
# password: knphm2021
# driver-class-name: com.mysql.cj.jdbc.Driver
master:
url: jdbc:mysql://158.158.4.51:3386/kn_energy_cost?useUnicode=true&allowMultiQueries=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&serverTimezone=Asia/Shanghai&useSSL=false
username: root
password: knEnergyCost0826#
driver-class-name: com.mysql.cj.jdbc.Driver
# 多数据源配置
#multi-datasource1:
#url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
@@ -221,21 +222,36 @@ spring:
#password: root
#driver-class-name: com.mysql.cj.jdbc.Driver
#redis 配置
redis:
database: 5
# redis:
# database: 5
# host: 121.40.189.20
# port: 6389
# redis:
# database: 9
# host: 192.168.50.9
# port: 7379
# password: 'zzboard'
host: 121.40.189.20
port: 6389
# main:
# allow-circular-references: true
redis:
database: 10
host: 158.158.4.48
port: 6379
password: 'zzboard'
main:
allow-circular-references: true
# redis:
# database: 10
# host: localhost
# port: 6379
# main:
# allow-circular-references: true
#rabbitmq 配置
rabbitmq:
host: 192.168.50.9
port: 5672
virtual-host: /qomoflow-dev
virtual-host: /qomoflow-standardcost
username: admin
password: kncloud
connection-timeout: 5000
@@ -259,10 +275,12 @@ mybatis-plus:
table-underline: true
configuration:
# 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
#log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
# 返回类型为Map,显示null对应的字段
call-setters-on-nulls: true
security:
enabled: false
#jeecg专用配置
minidao:
base-package: org.jeecg.modules.jmreport.*,org.jeecg.modules.drag.*
@@ -285,8 +303,8 @@ jeecg:
#webapp文件路径
webapp: /opt/webapp
shiro:
# excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**,/api/getUserInfo,/sys/sysDepart/**,/taskSocket/**,/flowSocket/**
excludeUrls: /**/**,/**/**/**
excludeUrls: /api/internalService/**,/test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**,/api/getUserInfo,/sys/sysDepart/**,/taskSocket/**,/flowSocket/**,/dataCheck/**
# excludeUrls: /**/**,/**/**/**
#阿里云oss存储和大鱼短信秘钥配置
oss:
@@ -294,11 +312,6 @@ jeecg:
secretKey: ??
endpoint: oss-cn-beijing.aliyuncs.com
bucketName: jeecgdev
minio:
minio_url: http://192.168.50.102:9000
minio_name: admin
minio_pass: minioadmin
bucketName: bucket803
# ElasticSearch 6设置
elasticsearch:
cluster-name: elasticsearch-cluster
@@ -308,14 +321,15 @@ jeecg:
task-data-struct-index: task_data_struct_dev/_doc
task-data-temp-index: task_data_temp_dev/_doc
task-log-index: task_log_dev/_doc
task-record-index: clean_data_record/_doc
# 在线预览文件服务器地址配置
file-view-domain: http://fileview.jeecg.com
# minio文件上传
# minio:
# minio_url: http://minio.jeecg.com
# minio_name: ??
# minio_pass: ??
# bucketName: otatest
minio:
minio_url: http://minio.jeecg.com
minio_name: ??
minio_pass: ??
bucketName: otatest
#大屏报表参数设置
jmreport:
mode: dev
@@ -438,19 +452,24 @@ flowable:
Qomo:
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
hiveMetastoreUri: thrift://192.168.50.102:9083
hiveSitePath: /opt/service/apache-seatunnel-2.3.4/deploy/hive-site.xml
hdfsSitePath: /opt/service/apache-seatunnel-2.3.4/deploy/hdfs-site.xml
hdfs:
enable: false
minio:
server: http://192.168.50.102
port: 9000
server: http://192.168.50.9
port: 9100
access-key: admin
secret-key: minioadmin
bucketName: bucket1
secret-key: qm123456
condaEnv: py310
tikaServerUrl: http://192.168.50.99:8099/qomo-tika/
analysis:
consistency:
url: http://192.168.50.9:1314/analysis
sap:
service:
url: http://158.158.5.98:7005/SAP_800/PS/SAP800_DSJ_ZSAP_DSJ_005_PS
user: sap_dsj
password: sapdsjabc123
+24 -19
View File
@@ -2,21 +2,13 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.zzsmart.qomo</groupId>
<artifactId>qomo-kn-forecast</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<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>
<dependency>
<groupId>org.qomo.boot</groupId>
@@ -24,20 +16,33 @@
<version>2.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-test</artifactId>
<scope>test</scope>
<groupId>com.google.auto.service</groupId>
<artifactId>auto-service</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
<groupId>com.zzsmart.qomo</groupId>
<artifactId>qomo-data-integration</artifactId>
<exclusions>
<exclusion>
<groupId>com.zzsmart.hdp.hive</groupId>
<artifactId>hive-jdbc</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-generator</artifactId>
<version>3.5.1</version>
<groupId>com.zzsmart.hdp.hive</groupId>
<artifactId>hive-jdbc</artifactId>
<version>2.6.5.0-292</version>
</dependency>
<dependency>
<groupId>com.zzsmart.qomo</groupId>
<artifactId>qomo-data-selfReport</artifactId>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
</dependencies>
</project>
@@ -0,0 +1,248 @@
package com.zzsmart.qomo.kn.cost.manage.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostActual;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZcorc;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostActualService;
import com.zzsmart.qomo.kn.cost.manage.vo.CostEffectiveVO;
import com.zzsmart.qomo.kn.cost.manage.vo.LaborDiffVO;
import com.zzsmart.qomo.kn.cost.manage.vo.RealLaborVO;
import com.zzsmart.qomo.kn.cost.manage.vo.RealProduceVO;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.oConvertUtils;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions;
/**
* @Description: app_scene_cost_actual
* @Author: jeecg-boot
* @Date: 2024-10-15
* @Version: V1.0
*/
@Api(tags="app_scene_cost_actual")
@RestController
@RequestMapping("/cost/appSceneCostActual")
@Slf4j
public class AppSceneCostActualController extends JeecgController<AppSceneCostActual, IAppSceneCostActualService> {
@Autowired
private IAppSceneCostActualService appSceneCostActualService;
/**
* 分页列表查询
*
* @param appSceneCostActual
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "app_scene_cost_actual-分页列表查询")
@ApiOperation(value="app_scene_cost_actual-分页列表查询", notes="app_scene_cost_actual-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<AppSceneCostActual>> queryPageList(AppSceneCostActual appSceneCostActual,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<AppSceneCostActual> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostActual, req.getParameterMap());
queryWrapper.orderByDesc("create_time");
Page<AppSceneCostActual> page = new Page<AppSceneCostActual>(pageNo, pageSize);
IPage<AppSceneCostActual> pageList = appSceneCostActualService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param appSceneCostActual
* @return
*/
@AutoLog(value = "app_scene_cost_actual-添加")
@ApiOperation(value="app_scene_cost_actual-添加", notes="app_scene_cost_actual-添加")
//@RequiresPermissions("cost:app_scene_cost_actual:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody CostEffectiveVO appSceneCostActual) {
appSceneCostActualService.addCostActual(appSceneCostActual);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param appSceneCostActual
* @return
*/
@AutoLog(value = "app_scene_cost_actual-编辑")
@ApiOperation(value="app_scene_cost_actual-编辑", notes="app_scene_cost_actual-编辑")
@RequiresPermissions("cost:app_scene_cost_actual:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> edit(@RequestBody AppSceneCostActual appSceneCostActual) {
appSceneCostActualService.updateById(appSceneCostActual);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "app_scene_cost_actual-通过id删除")
@ApiOperation(value="app_scene_cost_actual-通过id删除", notes="app_scene_cost_actual-通过id删除")
@RequiresPermissions("cost:app_scene_cost_actual:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
appSceneCostActualService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "app_scene_cost_actual-批量删除")
@ApiOperation(value="app_scene_cost_actual-批量删除", notes="app_scene_cost_actual-批量删除")
@RequiresPermissions("cost:app_scene_cost_actual:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.appSceneCostActualService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "app_scene_cost_actual-通过id查询")
@ApiOperation(value="app_scene_cost_actual-通过id查询", notes="app_scene_cost_actual-通过id查询")
@GetMapping(value = "/queryById")
public Result<AppSceneCostActual> queryById(@RequestParam(name="id",required=true) String id) {
AppSceneCostActual appSceneCostActual = appSceneCostActualService.getById(id);
if(appSceneCostActual==null) {
return Result.error("未找到对应数据");
}
return Result.OK(appSceneCostActual);
}
/**
* 导出excel
*
* @param request
* @param appSceneCostActual
*/
@RequiresPermissions("cost:app_scene_cost_actual:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostActual appSceneCostActual) {
return super.exportXls(request, appSceneCostActual, AppSceneCostActual.class, "app_scene_cost_actual");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequiresPermissions("cost:app_scene_cost_actual:importExcel")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, AppSceneCostActual.class);
}
@ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
@GetMapping(value = "/queryParent")
public Result<List<String>> queryParent(@RequestParam(name="resultid", defaultValue="") int resultid,
@RequestParam(name="matnr", defaultValue="") String matnr) {
List<String> vo = appSceneCostActualService.queryParent(resultid,matnr);
return Result.OK(vo);
}
/* 根据物料号查询标准成本版本及订单号
*
* @param appSceneCostMiningResult
* @param req
* @return
*/
//@AutoLog(value = "app_scene_cost_mining_result-分页列表查询")
@ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
@GetMapping(value = "/queryMatnrDetail")
public Result<List<AppSceneCostSapZcorc>> queryMatnrDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
@RequestParam(name="matnr", defaultValue="") String matnr) {
List<AppSceneCostSapZcorc> vo = appSceneCostActualService.queryMatnrDetail(resultid,matnr);
return Result.OK(vo);
}
@ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
@GetMapping(value = "/queryAufnrDetail")
public Result<List<RealLaborVO>> queryAufnrDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
@RequestParam(name="matnr", defaultValue="") String matnr) {
List<RealLaborVO> vo = appSceneCostActualService.queryAufnrDetail(resultid,matnr);
return Result.OK(vo);
}
@ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
@GetMapping(value = "/queryProduceDetail")
public Result<List<RealProduceVO>> queryProduceDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
@RequestParam(name="matnr", defaultValue="") String matnr) {
List<RealProduceVO> vo = appSceneCostActualService.queryProduceDetail(resultid,matnr);
return Result.OK(vo);
}
@ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
@RequestMapping(value = "/exportMatnrDetail")
public ModelAndView exportMatnrDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
@RequestParam(name="matnr", defaultValue="") String matnr) {
return appSceneCostActualService.exportMatnrDetail(resultid,matnr);
}
@ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
@RequestMapping(value = "/exportLaborDetail")
public ModelAndView exportLaborDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
@RequestParam(name="matnr", defaultValue="") String matnr) {
return appSceneCostActualService.exportLaborDetail(resultid,matnr);
}
@ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
@RequestMapping(value = "/exportProduceDetail")
public ModelAndView exportProduceDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
@RequestParam(name="matnr", defaultValue="") String matnr) {
return appSceneCostActualService.exportProduceDetail(resultid,matnr);
}
}
@@ -0,0 +1,179 @@
package com.zzsmart.qomo.kn.cost.manage.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostAufnrMatnr;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostAufnrMatnrService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.oConvertUtils;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions;
/**
* @Description: app_scene_cost_aufnr_matnr
* @Author: jeecg-boot
* @Date: 2024-10-05
* @Version: V1.0
*/
@Api(tags="app_scene_cost_aufnr_matnr")
@RestController
@RequestMapping("/cost/appSceneCostAufnrMatnr")
@Slf4j
public class AppSceneCostAufnrMatnrController extends JeecgController<AppSceneCostAufnrMatnr, IAppSceneCostAufnrMatnrService> {
@Autowired
private IAppSceneCostAufnrMatnrService appSceneCostAufnrMatnrService;
/**
* 分页列表查询
*
* @param appSceneCostAufnrMatnr
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "app_scene_cost_aufnr_matnr-分页列表查询")
@ApiOperation(value="app_scene_cost_aufnr_matnr-分页列表查询", notes="app_scene_cost_aufnr_matnr-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<AppSceneCostAufnrMatnr>> queryPageList(AppSceneCostAufnrMatnr appSceneCostAufnrMatnr,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<AppSceneCostAufnrMatnr> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostAufnrMatnr, req.getParameterMap());
Page<AppSceneCostAufnrMatnr> page = new Page<AppSceneCostAufnrMatnr>(pageNo, pageSize);
IPage<AppSceneCostAufnrMatnr> pageList = appSceneCostAufnrMatnrService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param appSceneCostAufnrMatnr
* @return
*/
@AutoLog(value = "app_scene_cost_aufnr_matnr-添加")
@ApiOperation(value="app_scene_cost_aufnr_matnr-添加", notes="app_scene_cost_aufnr_matnr-添加")
@RequiresPermissions("cost:app_scene_cost_aufnr_matnr:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody AppSceneCostAufnrMatnr appSceneCostAufnrMatnr) {
appSceneCostAufnrMatnrService.save(appSceneCostAufnrMatnr);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param appSceneCostAufnrMatnr
* @return
*/
@AutoLog(value = "app_scene_cost_aufnr_matnr-编辑")
@ApiOperation(value="app_scene_cost_aufnr_matnr-编辑", notes="app_scene_cost_aufnr_matnr-编辑")
@RequiresPermissions("cost:app_scene_cost_aufnr_matnr:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> edit(@RequestBody AppSceneCostAufnrMatnr appSceneCostAufnrMatnr) {
appSceneCostAufnrMatnrService.updateById(appSceneCostAufnrMatnr);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "app_scene_cost_aufnr_matnr-通过id删除")
@ApiOperation(value="app_scene_cost_aufnr_matnr-通过id删除", notes="app_scene_cost_aufnr_matnr-通过id删除")
@RequiresPermissions("cost:app_scene_cost_aufnr_matnr:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
appSceneCostAufnrMatnrService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "app_scene_cost_aufnr_matnr-批量删除")
@ApiOperation(value="app_scene_cost_aufnr_matnr-批量删除", notes="app_scene_cost_aufnr_matnr-批量删除")
@RequiresPermissions("cost:app_scene_cost_aufnr_matnr:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.appSceneCostAufnrMatnrService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "app_scene_cost_aufnr_matnr-通过id查询")
@ApiOperation(value="app_scene_cost_aufnr_matnr-通过id查询", notes="app_scene_cost_aufnr_matnr-通过id查询")
@GetMapping(value = "/queryById")
public Result<AppSceneCostAufnrMatnr> queryById(@RequestParam(name="id",required=true) String id) {
AppSceneCostAufnrMatnr appSceneCostAufnrMatnr = appSceneCostAufnrMatnrService.getById(id);
if(appSceneCostAufnrMatnr==null) {
return Result.error("未找到对应数据");
}
return Result.OK(appSceneCostAufnrMatnr);
}
/**
* 导出excel
*
* @param request
* @param appSceneCostAufnrMatnr
*/
@RequiresPermissions("cost:app_scene_cost_aufnr_matnr:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostAufnrMatnr appSceneCostAufnrMatnr) {
return super.exportXls(request, appSceneCostAufnrMatnr, AppSceneCostAufnrMatnr.class, "app_scene_cost_aufnr_matnr");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequiresPermissions("cost:app_scene_cost_aufnr_matnr:importExcel")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, AppSceneCostAufnrMatnr.class);
}
}
@@ -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);
}
}
@@ -0,0 +1,182 @@
package com.zzsmart.qomo.kn.cost.manage.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostCount;
import com.zzsmart.qomo.kn.cost.manage.enums.CostCountStatusEnum;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostCountService;
import com.zzsmart.qomo.kn.cost.manage.vo.AppSceneCostCountVO;
import com.zzsmart.qomo.kn.cost.manage.vo.MissingComponentVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.base.controller.JeecgController;
import org.jeecg.common.system.query.QueryGenerator;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* @Description: app_scene_cost_count
* @Author: jeecg-boot
* @Date: 2024-07-29
* @Version: V1.0
*/
@Api(tags = "cost-标准成本计算")
@RestController
@RequestMapping("//costCount")
@Slf4j
public class AppSceneCostCountController extends JeecgController<AppSceneCostCount, IAppSceneCostCountService> {
@Autowired
private IAppSceneCostCountService appSceneCostCountService;
/**
* 分页列表查询
*
* @param appSceneCostCount
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "app_scene_cost_count-分页列表查询")
@ApiOperation(value = "标准成本计算-分页列表查询", notes = "标准成本计算-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<AppSceneCostCount>> queryPageList(AppSceneCostCount appSceneCostCount, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
QueryWrapper<AppSceneCostCount> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostCount, req.getParameterMap());
queryWrapper.orderByDesc("create_time");
Page<AppSceneCostCount> page = new Page<AppSceneCostCount>(pageNo, pageSize);
IPage<AppSceneCostCount> pageList = appSceneCostCountService.page(page, queryWrapper);
return Result.OK(pageList);
//IPage<AppSceneCostCountVO> pageList1 = new Page<>();
//BeanUtils.copyProperties(pageList, pageList1);
// List<AppSceneCostCountVO>list=new ArrayList<>();
// for(int i=0;i<pageList.getRecords().size();i++){
// AppSceneCostCount appSceneCostCount1 = pageList.getRecords().get(i);
// AppSceneCostCountVO appSceneCostCountVO = new AppSceneCostCountVO();
// BeanUtils.copyProperties(appSceneCostCount1, appSceneCostCountVO);
// appSceneCostCountVO.setStatusName(CostCountStatusEnum.getTextByValue(appSceneCostCount1.getStatus()));
// list.add(appSceneCostCountVO);
// }
// pageList1.setRecords(list);
// return Result.OK(pageList1);
}
/**
* 添加标准成本计算任务
*
* @param appSceneCostCount
* @return
*/
@AutoLog(value = "app_scene_cost_count-添加")
@ApiOperation(value = "添加标准成本计算任务", notes = "添加标准成本计算任务")
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_count:addCostCountTask")
@PostMapping(value = "/addCostCountTask")
public Result<String> addCostCountTask(@RequestBody AppSceneCostCountVO appSceneCostCount) {
appSceneCostCountService.addCostCountTask(appSceneCostCount);
return Result.OK("添加成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "app_scene_cost_count-通过id删除")
@ApiOperation(value = "标准成本计算-通过id删除", notes = "标准成本计算-通过id删除")
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_count:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name = "id", required = true) String id) {
appSceneCostCountService.removeById(id);
return Result.OK("删除成功!");
}
// /**
// * 批量删除
// *
// * @param ids
// * @return
// */
// @AutoLog(value = "app_scene_cost_count-批量删除")
// @ApiOperation(value = "app_scene_cost_count-批量删除", notes = "app_scene_cost_count-批量删除")
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_count:deleteBatch")
// @DeleteMapping(value = "/deleteBatch")
// public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
// this.appSceneCostCountService.removeByIds(Arrays.asList(ids.split(",")));
// return Result.OK("批量删除成功!");
// }
/**
* 重新计算
*
* @param id
* @return
*/
//@AutoLog(value = "app_scene_cost_count-通过id查询")
@ApiOperation(value = "标准成本计算-重新计算", notes = "标准成本计算-重新计算")
@GetMapping(value = "/recountById")
public Result<AppSceneCostCount> recountById(@RequestParam(name = "id", required = true) Integer id) {
AppSceneCostCount appSceneCostCount = appSceneCostCountService.recountById(id);
if (appSceneCostCount == null) {
return Result.error("未找到对应数据");
}
return Result.OK(appSceneCostCount);
}
/**
* 查看关键缺失部件
*
* @param id
* @return
*/
//@AutoLog(value = "app_scene_cost_count-通过id查询")
@ApiOperation(value = "标准成本计算-查看关键缺失部件", notes = "标准成本计算-查看关键缺失部件")
@GetMapping(value = "/queryMissingComponentById")
public Result<List<MissingComponentVO>> queryMissingComponentById(@RequestParam(name = "id", required = true) String id) {
List<MissingComponentVO> result = appSceneCostCountService.queryMissingComponentById(id);
if (result == null) {
return Result.error("未找到对应数据");
}
return Result.OK(result);
}
/**
* 导出excel
*
* @param request
* @param appSceneCostCount
*/
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_count:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostCount appSceneCostCount) {
return super.exportXls(request, appSceneCostCount, AppSceneCostCount.class, "app_scene_cost_count");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_count:importExcel")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
//return super.importExcel(request, response, AppSceneCostCount.class);
return appSceneCostCountService.BatchCount(request,response);
}
}
@@ -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);
// }
}
@@ -9,13 +9,11 @@ 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.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostInvoice;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostInvoiceService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
@@ -40,68 +38,68 @@ import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions;
/**
* @Description: latest_purchase_price
* @Description: app_scene_cost_invoice
* @Author: jeecg-boot
* @Date: 2024-06-11
* @Date: 2024-09-22
* @Version: V1.0
*/
@Api(tags="最新采购价")
@Api(tags="app_scene_cost_invoice")
@RestController
@RequestMapping("//latestPurchasePrice")
@RequestMapping("/cost/appSceneCostInvoice")
@Slf4j
public class LatestPurchasePriceController extends JeecgController<LatestPurchasePrice, ILatestPurchasePriceService> {
public class AppSceneCostInvoiceController extends JeecgController<AppSceneCostInvoice, IAppSceneCostInvoiceService> {
@Autowired
private ILatestPurchasePriceService latestPurchasePriceService;
private IAppSceneCostInvoiceService appSceneCostInvoiceService;
/**
* 分页列表查询
*
* @param latestPurchasePrice
* @param appSceneCostInvoice
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "latest_purchase_price-分页列表查询")
@ApiOperation(value="latest_purchase_price-分页列表查询", notes="latest_purchase_price-分页列表查询")
//@AutoLog(value = "app_scene_cost_invoice-分页列表查询")
@ApiOperation(value="app_scene_cost_invoice-分页列表查询", notes="app_scene_cost_invoice-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<LatestPurchasePrice>> queryPageList(LatestPurchasePrice latestPurchasePrice,
public Result<IPage<AppSceneCostInvoice>> queryPageList(AppSceneCostInvoice appSceneCostInvoice,
@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);
QueryWrapper<AppSceneCostInvoice> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostInvoice, req.getParameterMap());
Page<AppSceneCostInvoice> page = new Page<AppSceneCostInvoice>(pageNo, pageSize);
IPage<AppSceneCostInvoice> pageList = appSceneCostInvoiceService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param latestPurchasePrice
* @param appSceneCostInvoice
* @return
*/
@AutoLog(value = "latest_purchase_price-添加")
@ApiOperation(value="latest_purchase_price-添加", notes="latest_purchase_price-添加")
// @RequiresPermissions(":latest_purchase_price:add")
@AutoLog(value = "app_scene_cost_invoice-添加")
@ApiOperation(value="app_scene_cost_invoice-添加", notes="app_scene_cost_invoice-添加")
@RequiresPermissions("cost:app_scene_cost_invoice:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody LatestPurchasePrice latestPurchasePrice) {
latestPurchasePriceService.save(latestPurchasePrice);
public Result<String> add(@RequestBody AppSceneCostInvoice appSceneCostInvoice) {
appSceneCostInvoiceService.save(appSceneCostInvoice);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param latestPurchasePrice
* @param appSceneCostInvoice
* @return
*/
@AutoLog(value = "latest_purchase_price-编辑")
@ApiOperation(value="latest_purchase_price-编辑", notes="latest_purchase_price-编辑")
// @RequiresPermissions(":latest_purchase_price:edit")
@AutoLog(value = "app_scene_cost_invoice-编辑")
@ApiOperation(value="app_scene_cost_invoice-编辑", notes="app_scene_cost_invoice-编辑")
@RequiresPermissions("cost:app_scene_cost_invoice:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> edit(@RequestBody LatestPurchasePrice latestPurchasePrice) {
latestPurchasePriceService.updateById(latestPurchasePrice);
public Result<String> edit(@RequestBody AppSceneCostInvoice appSceneCostInvoice) {
appSceneCostInvoiceService.updateById(appSceneCostInvoice);
return Result.OK("编辑成功!");
}
@@ -111,12 +109,12 @@ public class LatestPurchasePriceController extends JeecgController<LatestPurchas
* @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")
@AutoLog(value = "app_scene_cost_invoice-通过id删除")
@ApiOperation(value="app_scene_cost_invoice-通过id删除", notes="app_scene_cost_invoice-通过id删除")
@RequiresPermissions("cost:app_scene_cost_invoice:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
latestPurchasePriceService.removeById(id);
appSceneCostInvoiceService.removeById(id);
return Result.OK("删除成功!");
}
@@ -126,12 +124,12 @@ public class LatestPurchasePriceController extends JeecgController<LatestPurchas
* @param ids
* @return
*/
@AutoLog(value = "latest_purchase_price-批量删除")
@ApiOperation(value="latest_purchase_price-批量删除", notes="latest_purchase_price-批量删除")
// @RequiresPermissions(":latest_purchase_price:deleteBatch")
@AutoLog(value = "app_scene_cost_invoice-批量删除")
@ApiOperation(value="app_scene_cost_invoice-批量删除", notes="app_scene_cost_invoice-批量删除")
@RequiresPermissions("cost:app_scene_cost_invoice:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.latestPurchasePriceService.removeByIds(Arrays.asList(ids.split(",")));
this.appSceneCostInvoiceService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
@@ -141,27 +139,27 @@ public class LatestPurchasePriceController extends JeecgController<LatestPurchas
* @param id
* @return
*/
//@AutoLog(value = "latest_purchase_price-通过id查询")
@ApiOperation(value="latest_purchase_price-通过id查询", notes="latest_purchase_price-通过id查询")
//@AutoLog(value = "app_scene_cost_invoice-通过id查询")
@ApiOperation(value="app_scene_cost_invoice-通过id查询", notes="app_scene_cost_invoice-通过id查询")
@GetMapping(value = "/queryById")
public Result<LatestPurchasePrice> queryById(@RequestParam(name="id",required=true) String id) {
LatestPurchasePrice latestPurchasePrice = latestPurchasePriceService.getById(id);
if(latestPurchasePrice==null) {
public Result<AppSceneCostInvoice> queryById(@RequestParam(name="id",required=true) String id) {
AppSceneCostInvoice appSceneCostInvoice = appSceneCostInvoiceService.getById(id);
if(appSceneCostInvoice==null) {
return Result.error("未找到对应数据");
}
return Result.OK(latestPurchasePrice);
return Result.OK(appSceneCostInvoice);
}
/**
* 导出excel
*
* @param request
* @param latestPurchasePrice
* @param appSceneCostInvoice
*/
@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");
@RequiresPermissions("cost:app_scene_cost_invoice:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostInvoice appSceneCostInvoice) {
return super.exportXls(request, appSceneCostInvoice, AppSceneCostInvoice.class, "app_scene_cost_invoice");
}
/**
@@ -171,10 +169,10 @@ public class LatestPurchasePriceController extends JeecgController<LatestPurchas
* @param response
* @return
*/
// @RequiresPermissions(":latest_purchase_price:importExcel")
@RequiresPermissions("cost:app_scene_cost_invoice:importExcel")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, LatestPurchasePrice.class);
return super.importExcel(request, response, AppSceneCostInvoice.class);
}
}
@@ -0,0 +1,196 @@
package com.zzsmart.qomo.kn.cost.manage.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningAufnr;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningAufnrService;
import com.zzsmart.qomo.kn.cost.manage.vo.AufnrDiff;
import com.zzsmart.qomo.kn.cost.manage.vo.AufnrExportVO;
import com.zzsmart.qomo.kn.cost.manage.vo.LaborDiffVO;
import com.zzsmart.qomo.kn.cost.manage.vo.ProduceDiffVO;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.oConvertUtils;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions;
/**
* @Description: app_scene_cost_mining_aufnr
* @Author: jeecg-boot
* @Date: 2024-10-15
* @Version: V1.0
*/
@Api(tags="app_scene_cost_mining_aufnr")
@RestController
@RequestMapping("//appSceneCostMiningAufnr")
@Slf4j
public class AppSceneCostMiningAufnrController extends JeecgController<AppSceneCostMiningAufnr, IAppSceneCostMiningAufnrService> {
@Autowired
private IAppSceneCostMiningAufnrService appSceneCostMiningAufnrService;
/**
* 分页列表查询
*
* @param appSceneCostMiningAufnr
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "app_scene_cost_mining_aufnr-分页列表查询")
@ApiOperation(value="app_scene_cost_mining_aufnr-分页列表查询", notes="app_scene_cost_mining_aufnr-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<AppSceneCostMiningAufnr>> queryPageList(AppSceneCostMiningAufnr appSceneCostMiningAufnr,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<AppSceneCostMiningAufnr> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningAufnr, req.getParameterMap());
Page<AppSceneCostMiningAufnr> page = new Page<AppSceneCostMiningAufnr>(pageNo, pageSize);
IPage<AppSceneCostMiningAufnr> pageList = appSceneCostMiningAufnrService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param appSceneCostMiningAufnr
* @return
*/
@AutoLog(value = "app_scene_cost_mining_aufnr-添加")
@ApiOperation(value="app_scene_cost_mining_aufnr-添加", notes="app_scene_cost_mining_aufnr-添加")
@RequiresPermissions(":app_scene_cost_mining_aufnr:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody AppSceneCostMiningAufnr appSceneCostMiningAufnr) {
appSceneCostMiningAufnrService.save(appSceneCostMiningAufnr);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param appSceneCostMiningAufnr
* @return
*/
@AutoLog(value = "app_scene_cost_mining_aufnr-编辑")
@ApiOperation(value="app_scene_cost_mining_aufnr-编辑", notes="app_scene_cost_mining_aufnr-编辑")
@RequiresPermissions(":app_scene_cost_mining_aufnr:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> edit(@RequestBody AppSceneCostMiningAufnr appSceneCostMiningAufnr) {
appSceneCostMiningAufnrService.updateById(appSceneCostMiningAufnr);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "app_scene_cost_mining_aufnr-通过id删除")
@ApiOperation(value="app_scene_cost_mining_aufnr-通过id删除", notes="app_scene_cost_mining_aufnr-通过id删除")
@RequiresPermissions(":app_scene_cost_mining_aufnr:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
appSceneCostMiningAufnrService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "app_scene_cost_mining_aufnr-批量删除")
@ApiOperation(value="app_scene_cost_mining_aufnr-批量删除", notes="app_scene_cost_mining_aufnr-批量删除")
@RequiresPermissions(":app_scene_cost_mining_aufnr:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.appSceneCostMiningAufnrService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "app_scene_cost_mining_aufnr-通过id查询")
@ApiOperation(value="app_scene_cost_mining_aufnr-通过id查询", notes="app_scene_cost_mining_aufnr-通过id查询")
@GetMapping(value = "/queryLaborById")
public Result<List<LaborDiffVO> > queryLaborById(@RequestParam(name="id",required=true) int id) {
List<LaborDiffVO> appSceneCostMiningAufnr = appSceneCostMiningAufnrService.getLaborByResultid(id);
if(appSceneCostMiningAufnr==null) {
return Result.error("未找到对应数据");
}
return Result.OK(appSceneCostMiningAufnr);
}
@ApiOperation(value="app_scene_cost_mining_aufnr-通过id查询", notes="app_scene_cost_mining_aufnr-通过id查询")
@GetMapping(value = "/queryProduceById")
public Result<List<ProduceDiffVO> > queryProduceById(@RequestParam(name="id",required=true) int id) {
List<ProduceDiffVO> appSceneCostMiningAufnr = appSceneCostMiningAufnrService.getProduceByResultid(id);
if(appSceneCostMiningAufnr==null) {
return Result.error("未找到对应数据");
}
return Result.OK(appSceneCostMiningAufnr);
}
/**
* 导出excel
*
* @param request
* @param appSceneCostMiningAufnr
*/
//@RequiresPermissions(":app_scene_cost_mining_aufnr:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, AufnrExportVO appSceneCostMiningAufnr) {
return appSceneCostMiningAufnrService.exportXls2(request, appSceneCostMiningAufnr, AppSceneCostMiningAufnr.class, "人工制费差异");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequiresPermissions(":app_scene_cost_mining_aufnr:importExcel")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, AppSceneCostMiningAufnr.class);
}
}
@@ -0,0 +1,181 @@
package com.zzsmart.qomo.kn.cost.manage.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningDiff;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningDiffService;
import com.zzsmart.qomo.kn.cost.manage.vo.MiningDiffTotalVO;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.oConvertUtils;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions;
/**
* @Description: app_scene_cost_mining_diff
* @Author: jeecg-boot
* @Date: 2024-10-15
* @Version: V1.0
*/
@Api(tags="app_scene_cost_mining_diff")
@RestController
@RequestMapping("//appSceneCostMiningDiff")
@Slf4j
public class AppSceneCostMiningDiffController extends JeecgController<AppSceneCostMiningDiff, IAppSceneCostMiningDiffService> {
@Autowired
private IAppSceneCostMiningDiffService appSceneCostMiningDiffService;
/**
* 分页列表查询
*
* @param appSceneCostMiningDiff
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "app_scene_cost_mining_diff-分页列表查询")
@ApiOperation(value="app_scene_cost_mining_diff-分页列表查询", notes="app_scene_cost_mining_diff-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<AppSceneCostMiningDiff>> queryPageList(AppSceneCostMiningDiff appSceneCostMiningDiff,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<AppSceneCostMiningDiff> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningDiff, req.getParameterMap());
Page<AppSceneCostMiningDiff> page = new Page<AppSceneCostMiningDiff>(pageNo, pageSize);
IPage<AppSceneCostMiningDiff> pageList = appSceneCostMiningDiffService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param appSceneCostMiningDiff
* @return
*/
@AutoLog(value = "app_scene_cost_mining_diff-添加")
@ApiOperation(value="app_scene_cost_mining_diff-添加", notes="app_scene_cost_mining_diff-添加")
@RequiresPermissions(":app_scene_cost_mining_diff:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody AppSceneCostMiningDiff appSceneCostMiningDiff) {
appSceneCostMiningDiffService.save(appSceneCostMiningDiff);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param appSceneCostMiningDiff
* @return
*/
@AutoLog(value = "app_scene_cost_mining_diff-编辑")
@ApiOperation(value="app_scene_cost_mining_diff-编辑", notes="app_scene_cost_mining_diff-编辑")
@RequiresPermissions(":app_scene_cost_mining_diff:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> edit(@RequestBody AppSceneCostMiningDiff appSceneCostMiningDiff) {
appSceneCostMiningDiffService.updateById(appSceneCostMiningDiff);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "app_scene_cost_mining_diff-通过id删除")
@ApiOperation(value="app_scene_cost_mining_diff-通过id删除", notes="app_scene_cost_mining_diff-通过id删除")
@RequiresPermissions(":app_scene_cost_mining_diff:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
appSceneCostMiningDiffService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "app_scene_cost_mining_diff-批量删除")
@ApiOperation(value="app_scene_cost_mining_diff-批量删除", notes="app_scene_cost_mining_diff-批量删除")
@RequiresPermissions(":app_scene_cost_mining_diff:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.appSceneCostMiningDiffService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "app_scene_cost_mining_diff-通过id查询")
@ApiOperation(value="app_scene_cost_mining_diff-通过id查询", notes="app_scene_cost_mining_diff-通过id查询")
@GetMapping(value = "/queryById")
public Result<List<MiningDiffTotalVO>> queryById(@RequestParam(name="id",required=true) int id) {
List<MiningDiffTotalVO> appSceneCostMiningDiff = appSceneCostMiningDiffService.getMiningDiffTotalById(id);
if(appSceneCostMiningDiff==null) {
return Result.error("未找到对应数据");
}
return Result.OK(appSceneCostMiningDiff);
}
/**
* 导出excel
*
* @param request
* @param appSceneCostMiningDiff
*/
@RequiresPermissions(":app_scene_cost_mining_diff:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostMiningDiff appSceneCostMiningDiff) {
return super.exportXls(request, appSceneCostMiningDiff, AppSceneCostMiningDiff.class, "app_scene_cost_mining_diff");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequiresPermissions(":app_scene_cost_mining_diff:importExcel")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, AppSceneCostMiningDiff.class);
}
}
@@ -0,0 +1,179 @@
package com.zzsmart.qomo.kn.cost.manage.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningLabor;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningLaborService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.oConvertUtils;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions;
/**
* @Description: app_scene_cost_mining_labor
* @Author: jeecg-boot
* @Date: 2024-11-05
* @Version: V1.0
*/
@Api(tags="app_scene_cost_mining_labor")
@RestController
@RequestMapping("//appSceneCostMiningLabor")
@Slf4j
public class AppSceneCostMiningLaborController extends JeecgController<AppSceneCostMiningLabor, IAppSceneCostMiningLaborService> {
@Autowired
private IAppSceneCostMiningLaborService appSceneCostMiningLaborService;
/**
* 分页列表查询
*
* @param appSceneCostMiningLabor
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "app_scene_cost_mining_labor-分页列表查询")
@ApiOperation(value="app_scene_cost_mining_labor-分页列表查询", notes="app_scene_cost_mining_labor-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<AppSceneCostMiningLabor>> queryPageList(AppSceneCostMiningLabor appSceneCostMiningLabor,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<AppSceneCostMiningLabor> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningLabor, req.getParameterMap());
Page<AppSceneCostMiningLabor> page = new Page<AppSceneCostMiningLabor>(pageNo, pageSize);
IPage<AppSceneCostMiningLabor> pageList = appSceneCostMiningLaborService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param appSceneCostMiningLabor
* @return
*/
@AutoLog(value = "app_scene_cost_mining_labor-添加")
@ApiOperation(value="app_scene_cost_mining_labor-添加", notes="app_scene_cost_mining_labor-添加")
@RequiresPermissions(":app_scene_cost_mining_labor:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody AppSceneCostMiningLabor appSceneCostMiningLabor) {
appSceneCostMiningLaborService.save(appSceneCostMiningLabor);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param appSceneCostMiningLabor
* @return
*/
@AutoLog(value = "app_scene_cost_mining_labor-编辑")
@ApiOperation(value="app_scene_cost_mining_labor-编辑", notes="app_scene_cost_mining_labor-编辑")
@RequiresPermissions(":app_scene_cost_mining_labor:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> edit(@RequestBody AppSceneCostMiningLabor appSceneCostMiningLabor) {
appSceneCostMiningLaborService.updateById(appSceneCostMiningLabor);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "app_scene_cost_mining_labor-通过id删除")
@ApiOperation(value="app_scene_cost_mining_labor-通过id删除", notes="app_scene_cost_mining_labor-通过id删除")
@RequiresPermissions(":app_scene_cost_mining_labor:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
appSceneCostMiningLaborService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "app_scene_cost_mining_labor-批量删除")
@ApiOperation(value="app_scene_cost_mining_labor-批量删除", notes="app_scene_cost_mining_labor-批量删除")
@RequiresPermissions(":app_scene_cost_mining_labor:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.appSceneCostMiningLaborService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "app_scene_cost_mining_labor-通过id查询")
@ApiOperation(value="app_scene_cost_mining_labor-通过id查询", notes="app_scene_cost_mining_labor-通过id查询")
@GetMapping(value = "/queryById")
public Result<AppSceneCostMiningLabor> queryById(@RequestParam(name="id",required=true) String id) {
AppSceneCostMiningLabor appSceneCostMiningLabor = appSceneCostMiningLaborService.getById(id);
if(appSceneCostMiningLabor==null) {
return Result.error("未找到对应数据");
}
return Result.OK(appSceneCostMiningLabor);
}
/**
* 导出excel
*
* @param request
* @param appSceneCostMiningLabor
*/
@RequiresPermissions(":app_scene_cost_mining_labor:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostMiningLabor appSceneCostMiningLabor) {
return super.exportXls(request, appSceneCostMiningLabor, AppSceneCostMiningLabor.class, "app_scene_cost_mining_labor");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequiresPermissions(":app_scene_cost_mining_labor:importExcel")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, AppSceneCostMiningLabor.class);
}
}
@@ -0,0 +1,184 @@
package com.zzsmart.qomo.kn.cost.manage.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningMaterial;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningMaterialService;
import com.zzsmart.qomo.kn.cost.manage.vo.MaterialDiff;
import com.zzsmart.qomo.kn.cost.manage.vo.MiningDiffTotalVO;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.oConvertUtils;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions;
/**
* @Description: app_scene_cost_mining_material
* @Author: jeecg-boot
* @Date: 2024-10-15
* @Version: V1.0
*/
@Api(tags="app_scene_cost_mining_material")
@RestController
@RequestMapping("//appSceneCostMiningMaterial")
@Slf4j
public class AppSceneCostMiningMaterialController extends JeecgController<AppSceneCostMiningMaterial, IAppSceneCostMiningMaterialService> {
@Autowired
private IAppSceneCostMiningMaterialService appSceneCostMiningMaterialService;
/**
* 分页列表查询
*
* @param appSceneCostMiningMaterial
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "app_scene_cost_mining_material-分页列表查询")
@ApiOperation(value="app_scene_cost_mining_material-分页列表查询", notes="app_scene_cost_mining_material-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<AppSceneCostMiningMaterial>> queryPageList(AppSceneCostMiningMaterial appSceneCostMiningMaterial,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<AppSceneCostMiningMaterial> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningMaterial, req.getParameterMap());
Page<AppSceneCostMiningMaterial> page = new Page<AppSceneCostMiningMaterial>(pageNo, pageSize);
IPage<AppSceneCostMiningMaterial> pageList = appSceneCostMiningMaterialService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param appSceneCostMiningMaterial
* @return
*/
@AutoLog(value = "app_scene_cost_mining_material-添加")
@ApiOperation(value="app_scene_cost_mining_material-添加", notes="app_scene_cost_mining_material-添加")
@RequiresPermissions(":app_scene_cost_mining_material:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody AppSceneCostMiningMaterial appSceneCostMiningMaterial) {
appSceneCostMiningMaterialService.save(appSceneCostMiningMaterial);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param appSceneCostMiningMaterial
* @return
*/
@AutoLog(value = "app_scene_cost_mining_material-编辑")
@ApiOperation(value="app_scene_cost_mining_material-编辑", notes="app_scene_cost_mining_material-编辑")
@RequiresPermissions(":app_scene_cost_mining_material:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> edit(@RequestBody AppSceneCostMiningMaterial appSceneCostMiningMaterial) {
appSceneCostMiningMaterialService.updateById(appSceneCostMiningMaterial);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "app_scene_cost_mining_material-通过id删除")
@ApiOperation(value="app_scene_cost_mining_material-通过id删除", notes="app_scene_cost_mining_material-通过id删除")
@RequiresPermissions(":app_scene_cost_mining_material:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
appSceneCostMiningMaterialService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "app_scene_cost_mining_material-批量删除")
@ApiOperation(value="app_scene_cost_mining_material-批量删除", notes="app_scene_cost_mining_material-批量删除")
@RequiresPermissions(":app_scene_cost_mining_material:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.appSceneCostMiningMaterialService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "app_scene_cost_mining_material-通过id查询")
@ApiOperation(value="app_scene_cost_mining_material-通过id查询", notes="app_scene_cost_mining_material-通过id查询")
@GetMapping(value = "/queryById")
public Result<List<MaterialDiff>> queryById(@RequestParam(name="id",required=true) int id) {
List<MaterialDiff> appSceneCostMiningMaterial = appSceneCostMiningMaterialService.getByResultid(id);
if(appSceneCostMiningMaterial==null) {
return Result.error("未找到对应数据");
}
return Result.OK(appSceneCostMiningMaterial);
}
/**
* 导出excel
*
* @param request
* @param appSceneCostMiningMaterial
*/
//@RequiresPermissions(":app_scene_cost_mining_material:exportXls")
@GetMapping(value = "/exportXls")
@ApiOperation(value = "cost-材料差异导出", notes = "cost-材料差异导出")
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostMiningMaterial appSceneCostMiningMaterial) {
//return super.exportXls(request)
return appSceneCostMiningMaterialService.exportXls2(request, appSceneCostMiningMaterial,AppSceneCostMiningMaterial.class, "材料差异明细");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequiresPermissions(":app_scene_cost_mining_material:importExcel")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, AppSceneCostMiningMaterial.class);
}
}
@@ -0,0 +1,179 @@
package com.zzsmart.qomo.kn.cost.manage.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningReason;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningReasonService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.oConvertUtils;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions;
/**
* @Description: app_scene_cost_mining_reason
* @Author: jeecg-boot
* @Date: 2024-10-15
* @Version: V1.0
*/
@Api(tags="app_scene_cost_mining_reason")
@RestController
@RequestMapping("//appSceneCostMiningReason")
@Slf4j
public class AppSceneCostMiningReasonController extends JeecgController<AppSceneCostMiningReason, IAppSceneCostMiningReasonService> {
@Autowired
private IAppSceneCostMiningReasonService appSceneCostMiningReasonService;
/**
* 分页列表查询
*
* @param appSceneCostMiningReason
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "app_scene_cost_mining_reason-分页列表查询")
@ApiOperation(value="app_scene_cost_mining_reason-分页列表查询", notes="app_scene_cost_mining_reason-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<AppSceneCostMiningReason>> queryPageList(AppSceneCostMiningReason appSceneCostMiningReason,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<AppSceneCostMiningReason> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningReason, req.getParameterMap());
Page<AppSceneCostMiningReason> page = new Page<AppSceneCostMiningReason>(pageNo, pageSize);
IPage<AppSceneCostMiningReason> pageList = appSceneCostMiningReasonService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param appSceneCostMiningReason
* @return
*/
@AutoLog(value = "app_scene_cost_mining_reason-添加")
@ApiOperation(value="app_scene_cost_mining_reason-添加", notes="app_scene_cost_mining_reason-添加")
@RequiresPermissions(":app_scene_cost_mining_reason:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody AppSceneCostMiningReason appSceneCostMiningReason) {
appSceneCostMiningReasonService.save(appSceneCostMiningReason);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param appSceneCostMiningReason
* @return
*/
@AutoLog(value = "app_scene_cost_mining_reason-编辑")
@ApiOperation(value="app_scene_cost_mining_reason-编辑", notes="app_scene_cost_mining_reason-编辑")
@RequiresPermissions(":app_scene_cost_mining_reason:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> edit(@RequestBody AppSceneCostMiningReason appSceneCostMiningReason) {
appSceneCostMiningReasonService.updateById(appSceneCostMiningReason);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "app_scene_cost_mining_reason-通过id删除")
@ApiOperation(value="app_scene_cost_mining_reason-通过id删除", notes="app_scene_cost_mining_reason-通过id删除")
@RequiresPermissions(":app_scene_cost_mining_reason:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
appSceneCostMiningReasonService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "app_scene_cost_mining_reason-批量删除")
@ApiOperation(value="app_scene_cost_mining_reason-批量删除", notes="app_scene_cost_mining_reason-批量删除")
@RequiresPermissions(":app_scene_cost_mining_reason:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.appSceneCostMiningReasonService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "app_scene_cost_mining_reason-通过id查询")
@ApiOperation(value="app_scene_cost_mining_reason-通过id查询", notes="app_scene_cost_mining_reason-通过id查询")
@GetMapping(value = "/queryById")
public Result<AppSceneCostMiningReason> queryById(@RequestParam(name="id",required=true) String id) {
AppSceneCostMiningReason appSceneCostMiningReason = appSceneCostMiningReasonService.getById(id);
if(appSceneCostMiningReason==null) {
return Result.error("未找到对应数据");
}
return Result.OK(appSceneCostMiningReason);
}
/**
* 导出excel
*
* @param request
* @param appSceneCostMiningReason
*/
@RequiresPermissions(":app_scene_cost_mining_reason:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostMiningReason appSceneCostMiningReason) {
return super.exportXls(request, appSceneCostMiningReason, AppSceneCostMiningReason.class, "app_scene_cost_mining_reason");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequiresPermissions(":app_scene_cost_mining_reason:importExcel")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, AppSceneCostMiningReason.class);
}
}
@@ -0,0 +1,213 @@
package com.zzsmart.qomo.kn.cost.manage.controller;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningResult;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZcorc;
import com.zzsmart.qomo.kn.cost.manage.plugin.CostEffectiveService;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostCountService;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningResultService;
import com.zzsmart.qomo.kn.cost.manage.vo.MatnrVersionVO;
import com.zzsmart.qomo.kn.cost.manage.vo.MiningResultVO;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.oConvertUtils;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions;
/**
* @Description: app_scene_cost_mining_result
* @Author: jeecg-boot
* @Date: 2024-10-15
* @Version: V1.0
*/
@Api(tags="app_scene_cost_mining_result")
@RestController
@RequestMapping("//appSceneCostMiningResult")
@Slf4j
public class AppSceneCostMiningResultController extends JeecgController<AppSceneCostMiningResult, IAppSceneCostMiningResultService> {
@Autowired
private IAppSceneCostMiningResultService appSceneCostMiningResultService;
@Autowired
private CostEffectiveService costEffectiveService;
@Autowired
private IAppSceneCostCountService iAppSceneCostCountService;
/**
* 分页列表查询
*
* @param appSceneCostMiningResult
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "app_scene_cost_mining_result-分页列表查询")
@ApiOperation(value="app_scene_cost_mining_result-分页列表查询", notes="app_scene_cost_mining_result-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<AppSceneCostMiningResult>> queryPageList(AppSceneCostMiningResult appSceneCostMiningResult,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<AppSceneCostMiningResult> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningResult, req.getParameterMap());
queryWrapper.orderByDesc("startdate");
Page<AppSceneCostMiningResult> page = new Page<AppSceneCostMiningResult>(pageNo, pageSize);
IPage<AppSceneCostMiningResult> pageList = appSceneCostMiningResultService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param appSceneCostMiningResult
* @return
*/
@AutoLog(value = "app_scene_cost_mining_result-添加")
@ApiOperation(value="app_scene_cost_mining_result-添加", notes="app_scene_cost_mining_result-添加")
//@RequiresPermissions(":app_scene_cost_mining_result:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody MiningResultVO miningResultVO) {
//appSceneCostMiningResultService.save(appSceneCostMiningResult);
costEffectiveService.FindNode(miningResultVO.getMatnr(),miningResultVO.getYmonth(),miningResultVO.getWerks(),miningResultVO.getVersion(),miningResultVO.getAufnr(),"",true);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param appSceneCostMiningResult
* @return
*/
@AutoLog(value = "app_scene_cost_mining_result-编辑")
@ApiOperation(value="app_scene_cost_mining_result-编辑", notes="app_scene_cost_mining_result-编辑")
@RequiresPermissions(":app_scene_cost_mining_result:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> edit(@RequestBody AppSceneCostMiningResult appSceneCostMiningResult) {
appSceneCostMiningResultService.updateById(appSceneCostMiningResult);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "app_scene_cost_mining_result-通过id删除")
@ApiOperation(value="app_scene_cost_mining_result-通过id删除", notes="app_scene_cost_mining_result-通过id删除")
@RequiresPermissions(":app_scene_cost_mining_result:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
appSceneCostMiningResultService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "app_scene_cost_mining_result-批量删除")
@ApiOperation(value="app_scene_cost_mining_result-批量删除", notes="app_scene_cost_mining_result-批量删除")
@RequiresPermissions(":app_scene_cost_mining_result:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.appSceneCostMiningResultService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "app_scene_cost_mining_result-通过id查询")
@ApiOperation(value="app_scene_cost_mining_result-通过id查询", notes="app_scene_cost_mining_result-通过id查询")
@GetMapping(value = "/queryById")
public Result<AppSceneCostMiningResult> queryById(@RequestParam(name="id",required=true) String id) {
AppSceneCostMiningResult appSceneCostMiningResult = appSceneCostMiningResultService.getById(id);
if(appSceneCostMiningResult==null) {
return Result.error("未找到对应数据");
}
return Result.OK(appSceneCostMiningResult);
}
/**
* 导出excel
*
* @param request
* @param appSceneCostMiningResult
*/
@RequiresPermissions(":app_scene_cost_mining_result:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostMiningResult appSceneCostMiningResult) {
return super.exportXls(request, appSceneCostMiningResult, AppSceneCostMiningResult.class, "app_scene_cost_mining_result");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequiresPermissions(":app_scene_cost_mining_result:importExcel")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, AppSceneCostMiningResult.class);
}
/* 根据物料号查询标准成本版本及订单号
*
* @param appSceneCostMiningResult
* @param req
* @return
*/
//@AutoLog(value = "app_scene_cost_mining_result-分页列表查询")
@ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
@GetMapping(value = "/queryVersion")
public Result<MatnrVersionVO> queryPageList(@RequestParam(name="werks", defaultValue="") String werks,
@RequestParam(name="matnr", defaultValue="") String matnr,
@RequestParam(name="ymonth", defaultValue="") String ymonth,
HttpServletRequest req) {
MatnrVersionVO vo = iAppSceneCostCountService.getVersionsByMatnr(werks,matnr,ymonth);
return Result.OK(vo);
}
}
@@ -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("删除成功!");
}
}
@@ -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);
// }
}
@@ -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);
}
}
@@ -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);
// }
}
@@ -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);
}
}
@@ -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);
}
}
@@ -10,12 +10,13 @@ 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 com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapAfru;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostSapAfruService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.oConvertUtils;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
@@ -39,68 +40,68 @@ import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions;
/**
* @Description: 标准成本-部件缺失信息
* @Author: wangqiong
* @Date: 2024-06-13
* @Description: app_scene_cost_sap_afru
* @Author: jeecg-boot
* @Date: 2024-10-15
* @Version: V1.0
*/
@Api(tags="标准成本-部件缺失信息")
@Api(tags="app_scene_cost_sap_afru")
@RestController
@RequestMapping("//costPartMissingInfo")
@RequestMapping("/cost/appSceneCostSapAfru")
@Slf4j
public class CostPartMissingInfoController extends JeecgController<CostPartMissingInfo, ICostPartMissingInfoService> {
public class AppSceneCostSapAfruController extends JeecgController<AppSceneCostSapAfru, IAppSceneCostSapAfruService> {
@Autowired
private ICostPartMissingInfoService costPartMissingInfoService;
private IAppSceneCostSapAfruService appSceneCostSapAfruService;
/**
* 分页列表查询
*
* @param costPartMissingInfo
* @param appSceneCostSapAfru
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "cost_part_missing_info-分页列表查询")
@ApiOperation(value="cost_part_missing_info-分页列表查询", notes="cost_part_missing_info-分页列表查询")
//@AutoLog(value = "app_scene_cost_sap_afru-分页列表查询")
@ApiOperation(value="app_scene_cost_sap_afru-分页列表查询", notes="app_scene_cost_sap_afru-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<CostPartMissingInfo>> queryPageList(CostPartMissingInfo costPartMissingInfo,
public Result<IPage<AppSceneCostSapAfru>> queryPageList(AppSceneCostSapAfru appSceneCostSapAfru,
@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);
QueryWrapper<AppSceneCostSapAfru> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapAfru, req.getParameterMap());
Page<AppSceneCostSapAfru> page = new Page<AppSceneCostSapAfru>(pageNo, pageSize);
IPage<AppSceneCostSapAfru> pageList = appSceneCostSapAfruService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param costPartMissingInfo
* @param appSceneCostSapAfru
* @return
*/
@AutoLog(value = "cost_part_missing_info-添加")
@ApiOperation(value="cost_part_missing_info-添加", notes="cost_part_missing_info-添加")
// @RequiresPermissions(":cost_part_missing_info:add")
@AutoLog(value = "app_scene_cost_sap_afru-添加")
@ApiOperation(value="app_scene_cost_sap_afru-添加", notes="app_scene_cost_sap_afru-添加")
@RequiresPermissions("cost:app_scene_cost_sap_afru:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody CostPartMissingInfo costPartMissingInfo) {
costPartMissingInfoService.save(costPartMissingInfo);
public Result<String> add(@RequestBody AppSceneCostSapAfru appSceneCostSapAfru) {
appSceneCostSapAfruService.save(appSceneCostSapAfru);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param costPartMissingInfo
* @param appSceneCostSapAfru
* @return
*/
@AutoLog(value = "cost_part_missing_info-编辑")
@ApiOperation(value="cost_part_missing_info-编辑", notes="cost_part_missing_info-编辑")
// @RequiresPermissions(":cost_part_missing_info:edit")
@AutoLog(value = "app_scene_cost_sap_afru-编辑")
@ApiOperation(value="app_scene_cost_sap_afru-编辑", notes="app_scene_cost_sap_afru-编辑")
@RequiresPermissions("cost:app_scene_cost_sap_afru:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> edit(@RequestBody CostPartMissingInfo costPartMissingInfo) {
costPartMissingInfoService.updateById(costPartMissingInfo);
public Result<String> edit(@RequestBody AppSceneCostSapAfru appSceneCostSapAfru) {
appSceneCostSapAfruService.updateById(appSceneCostSapAfru);
return Result.OK("编辑成功!");
}
@@ -110,12 +111,12 @@ public class CostPartMissingInfoController extends JeecgController<CostPartMissi
* @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")
@AutoLog(value = "app_scene_cost_sap_afru-通过id删除")
@ApiOperation(value="app_scene_cost_sap_afru-通过id删除", notes="app_scene_cost_sap_afru-通过id删除")
@RequiresPermissions("cost:app_scene_cost_sap_afru:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
costPartMissingInfoService.removeById(id);
appSceneCostSapAfruService.removeById(id);
return Result.OK("删除成功!");
}
@@ -125,12 +126,12 @@ public class CostPartMissingInfoController extends JeecgController<CostPartMissi
* @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")
@AutoLog(value = "app_scene_cost_sap_afru-批量删除")
@ApiOperation(value="app_scene_cost_sap_afru-批量删除", notes="app_scene_cost_sap_afru-批量删除")
@RequiresPermissions("cost:app_scene_cost_sap_afru:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.costPartMissingInfoService.removeByIds(Arrays.asList(ids.split(",")));
this.appSceneCostSapAfruService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
@@ -140,27 +141,27 @@ public class CostPartMissingInfoController extends JeecgController<CostPartMissi
* @param id
* @return
*/
//@AutoLog(value = "cost_part_missing_info-通过id查询")
@ApiOperation(value="cost_part_missing_info-通过id查询", notes="cost_part_missing_info-通过id查询")
//@AutoLog(value = "app_scene_cost_sap_afru-通过id查询")
@ApiOperation(value="app_scene_cost_sap_afru-通过id查询", notes="app_scene_cost_sap_afru-通过id查询")
@GetMapping(value = "/queryById")
public Result<CostPartMissingInfo> queryById(@RequestParam(name="id",required=true) String id) {
CostPartMissingInfo costPartMissingInfo = costPartMissingInfoService.getById(id);
if(costPartMissingInfo==null) {
public Result<AppSceneCostSapAfru> queryById(@RequestParam(name="id",required=true) String id) {
AppSceneCostSapAfru appSceneCostSapAfru = appSceneCostSapAfruService.getById(id);
if(appSceneCostSapAfru==null) {
return Result.error("未找到对应数据");
}
return Result.OK(costPartMissingInfo);
return Result.OK(appSceneCostSapAfru);
}
/**
* 导出excel
*
* @param request
* @param costPartMissingInfo
* @param appSceneCostSapAfru
*/
// @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");
@RequiresPermissions("cost:app_scene_cost_sap_afru:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostSapAfru appSceneCostSapAfru) {
return super.exportXls(request, appSceneCostSapAfru, AppSceneCostSapAfru.class, "app_scene_cost_sap_afru");
}
/**
@@ -170,10 +171,10 @@ public class CostPartMissingInfoController extends JeecgController<CostPartMissi
* @param response
* @return
*/
// @RequiresPermissions(":cost_part_missing_info:importExcel")
@RequiresPermissions("cost:app_scene_cost_sap_afru:importExcel")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, CostPartMissingInfo.class);
return super.importExcel(request, response, AppSceneCostSapAfru.class);
}
}
@@ -0,0 +1,178 @@
package com.zzsmart.qomo.kn.cost.manage.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.oConvertUtils;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapEkpo;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostSapEkpoService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions;
/**
* @Description: app_scene_cost_sap_ekpo
* @Author: jeecg-boot
* @Date: 2024-09-22
* @Version: V1.0
*/
@Api(tags="app_scene_cost_sap_ekpo")
@RestController
@RequestMapping("/com.zzsmart.qomo.kn.cost.manage/appSceneCostSapEkpo")
@Slf4j
public class AppSceneCostSapEkpoController extends JeecgController<AppSceneCostSapEkpo, IAppSceneCostSapEkpoService> {
@Autowired
private IAppSceneCostSapEkpoService appSceneCostSapEkpoService;
/**
* 分页列表查询
*
* @param appSceneCostSapEkpo
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "app_scene_cost_sap_ekpo-分页列表查询")
@ApiOperation(value="app_scene_cost_sap_ekpo-分页列表查询", notes="app_scene_cost_sap_ekpo-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<AppSceneCostSapEkpo>> queryPageList(AppSceneCostSapEkpo appSceneCostSapEkpo,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<AppSceneCostSapEkpo> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapEkpo, req.getParameterMap());
Page<AppSceneCostSapEkpo> page = new Page<AppSceneCostSapEkpo>(pageNo, pageSize);
IPage<AppSceneCostSapEkpo> pageList = appSceneCostSapEkpoService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param appSceneCostSapEkpo
* @return
*/
@AutoLog(value = "app_scene_cost_sap_ekpo-添加")
@ApiOperation(value="app_scene_cost_sap_ekpo-添加", notes="app_scene_cost_sap_ekpo-添加")
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody AppSceneCostSapEkpo appSceneCostSapEkpo) {
appSceneCostSapEkpoService.save(appSceneCostSapEkpo);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param appSceneCostSapEkpo
* @return
*/
@AutoLog(value = "app_scene_cost_sap_ekpo-编辑")
@ApiOperation(value="app_scene_cost_sap_ekpo-编辑", notes="app_scene_cost_sap_ekpo-编辑")
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> edit(@RequestBody AppSceneCostSapEkpo appSceneCostSapEkpo) {
appSceneCostSapEkpoService.updateById(appSceneCostSapEkpo);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "app_scene_cost_sap_ekpo-通过id删除")
@ApiOperation(value="app_scene_cost_sap_ekpo-通过id删除", notes="app_scene_cost_sap_ekpo-通过id删除")
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
appSceneCostSapEkpoService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "app_scene_cost_sap_ekpo-批量删除")
@ApiOperation(value="app_scene_cost_sap_ekpo-批量删除", notes="app_scene_cost_sap_ekpo-批量删除")
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.appSceneCostSapEkpoService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "app_scene_cost_sap_ekpo-通过id查询")
@ApiOperation(value="app_scene_cost_sap_ekpo-通过id查询", notes="app_scene_cost_sap_ekpo-通过id查询")
@GetMapping(value = "/queryById")
public Result<AppSceneCostSapEkpo> queryById(@RequestParam(name="id",required=true) String id) {
AppSceneCostSapEkpo appSceneCostSapEkpo = appSceneCostSapEkpoService.getById(id);
if(appSceneCostSapEkpo==null) {
return Result.error("未找到对应数据");
}
return Result.OK(appSceneCostSapEkpo);
}
/**
* 导出excel
*
* @param request
* @param appSceneCostSapEkpo
*/
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostSapEkpo appSceneCostSapEkpo) {
return super.exportXls(request, appSceneCostSapEkpo, AppSceneCostSapEkpo.class, "app_scene_cost_sap_ekpo");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:importExcel")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, AppSceneCostSapEkpo.class);
}
}
@@ -0,0 +1,180 @@
package com.zzsmart.qomo.kn.cost.manage.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapHourRate;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostSapHourRateService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.oConvertUtils;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions;
/**
* @Description: app_scene_cost_sap_hour_rate
* @Author: jeecg-boot
* @Date: 2024-10-15
* @Version: V1.0
*/
@Api(tags="app_scene_cost_sap_hour_rate")
@RestController
@RequestMapping("/cost/appSceneCostSapHourRate")
@Slf4j
public class AppSceneCostSapHourRateController extends JeecgController<AppSceneCostSapHourRate, IAppSceneCostSapHourRateService> {
@Autowired
private IAppSceneCostSapHourRateService appSceneCostSapHourRateService;
/**
* 分页列表查询
*
* @param appSceneCostSapHourRate
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "app_scene_cost_sap_hour_rate-分页列表查询")
@ApiOperation(value="app_scene_cost_sap_hour_rate-分页列表查询", notes="app_scene_cost_sap_hour_rate-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<AppSceneCostSapHourRate>> queryPageList(AppSceneCostSapHourRate appSceneCostSapHourRate,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<AppSceneCostSapHourRate> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapHourRate, req.getParameterMap());
Page<AppSceneCostSapHourRate> page = new Page<AppSceneCostSapHourRate>(pageNo, pageSize);
IPage<AppSceneCostSapHourRate> pageList = appSceneCostSapHourRateService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param appSceneCostSapHourRate
* @return
*/
@AutoLog(value = "app_scene_cost_sap_hour_rate-添加")
@ApiOperation(value="app_scene_cost_sap_hour_rate-添加", notes="app_scene_cost_sap_hour_rate-添加")
@RequiresPermissions("cost:app_scene_cost_sap_hour_rate:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody AppSceneCostSapHourRate appSceneCostSapHourRate) {
appSceneCostSapHourRateService.save(appSceneCostSapHourRate);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param appSceneCostSapHourRate
* @return
*/
@AutoLog(value = "app_scene_cost_sap_hour_rate-编辑")
@ApiOperation(value="app_scene_cost_sap_hour_rate-编辑", notes="app_scene_cost_sap_hour_rate-编辑")
@RequiresPermissions("cost:app_scene_cost_sap_hour_rate:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> edit(@RequestBody AppSceneCostSapHourRate appSceneCostSapHourRate) {
appSceneCostSapHourRateService.updateById(appSceneCostSapHourRate);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "app_scene_cost_sap_hour_rate-通过id删除")
@ApiOperation(value="app_scene_cost_sap_hour_rate-通过id删除", notes="app_scene_cost_sap_hour_rate-通过id删除")
@RequiresPermissions("cost:app_scene_cost_sap_hour_rate:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
appSceneCostSapHourRateService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "app_scene_cost_sap_hour_rate-批量删除")
@ApiOperation(value="app_scene_cost_sap_hour_rate-批量删除", notes="app_scene_cost_sap_hour_rate-批量删除")
@RequiresPermissions("cost:app_scene_cost_sap_hour_rate:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.appSceneCostSapHourRateService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "app_scene_cost_sap_hour_rate-通过id查询")
@ApiOperation(value="app_scene_cost_sap_hour_rate-通过id查询", notes="app_scene_cost_sap_hour_rate-通过id查询")
@GetMapping(value = "/queryById")
public Result<AppSceneCostSapHourRate> queryById(@RequestParam(name="id",required=true) String id) {
AppSceneCostSapHourRate appSceneCostSapHourRate = appSceneCostSapHourRateService.getById(id);
if(appSceneCostSapHourRate==null) {
return Result.error("未找到对应数据");
}
return Result.OK(appSceneCostSapHourRate);
}
/**
* 导出excel
*
* @param request
* @param appSceneCostSapHourRate
*/
@RequiresPermissions("cost:app_scene_cost_sap_hour_rate:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostSapHourRate appSceneCostSapHourRate) {
return super.exportXls(request, appSceneCostSapHourRate, AppSceneCostSapHourRate.class, "app_scene_cost_sap_hour_rate");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequiresPermissions("cost:app_scene_cost_sap_hour_rate:importExcel")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, AppSceneCostSapHourRate.class);
}
}
@@ -0,0 +1,220 @@
package com.zzsmart.qomo.kn.cost.manage.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZcorc;
import com.zzsmart.qomo.kn.cost.manage.plugin.CostEffectiveService;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostActualService;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostSapZcorcService;
import com.zzsmart.qomo.kn.cost.manage.vo.CostEffectiveVO;
import org.checkerframework.checker.units.qual.A;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.oConvertUtils;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions;
/**
* @Description: app_scene_cost_sap_zcorc
* @Author: jeecg-boot
* @Date: 2024-10-15
* @Version: V1.0
*/
@Api(tags="app_scene_cost_sap_zcorc")
@RestController
@RequestMapping("/cost/appSceneCostSapZcorc")
@Slf4j
public class AppSceneCostSapZcorcController extends JeecgController<AppSceneCostSapZcorc, IAppSceneCostSapZcorcService> {
@Autowired
private IAppSceneCostSapZcorcService appSceneCostSapZcorcService;
@Autowired
private CostEffectiveService costEffectiveService;
@Autowired
private IAppSceneCostActualService iAppSceneCostActualService;
/**
* 分页列表查询
*
* @param appSceneCostSapZcorc
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "app_scene_cost_sap_zcorc-分页列表查询")
@ApiOperation(value="app_scene_cost_sap_zcorc-分页列表查询", notes="app_scene_cost_sap_zcorc-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<AppSceneCostSapZcorc>> queryPageList(AppSceneCostSapZcorc appSceneCostSapZcorc,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<AppSceneCostSapZcorc> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapZcorc, req.getParameterMap());
Page<AppSceneCostSapZcorc> page = new Page<AppSceneCostSapZcorc>(pageNo, pageSize);
IPage<AppSceneCostSapZcorc> pageList = appSceneCostSapZcorcService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param appSceneCostSapZcorc
* @return
*/
@AutoLog(value = "app_scene_cost_sap_zcorc-添加")
@ApiOperation(value="app_scene_cost_sap_zcorc-添加", notes="app_scene_cost_sap_zcorc-添加")
//@RequiresPermissions("cost:app_scene_cost_sap_zcorc:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody CostEffectiveVO costEffectiveVO) {
//appSceneCostSapZcorcService.save(appSceneCostSapZcorc);
costEffectiveService.loadsapservice(costEffectiveVO.getWerks(),costEffectiveVO.getMatnr(),"",costEffectiveVO.getYmonth());
return Result.OK("添加成功!");
}
/**
* 添加
*
* @param appSceneCostSapZcorc
* @return
*/
@AutoLog(value = "app_scene_cost_sap_zcorc-添加")
@ApiOperation(value="app_scene_cost_sap_zcorc-添加", notes="app_scene_cost_sap_zcorc-添加")
//@RequiresPermissions("cost:app_scene_cost_sap_zcorc:add")
@GetMapping(value = "/fix")
public Result<String> fix(@RequestParam(name="version") String version) {
//appSceneCostSapZcorcService.save(appSceneCostSapZcorc);
costEffectiveService.fixversion(version);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param appSceneCostSapZcorc
* @return
*/
@AutoLog(value = "app_scene_cost_sap_zcorc-编辑")
@ApiOperation(value="app_scene_cost_sap_zcorc-编辑", notes="app_scene_cost_sap_zcorc-编辑")
@RequiresPermissions("cost:app_scene_cost_sap_zcorc:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> edit(@RequestBody AppSceneCostSapZcorc appSceneCostSapZcorc) {
appSceneCostSapZcorcService.updateById(appSceneCostSapZcorc);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "app_scene_cost_sap_zcorc-通过id删除")
@ApiOperation(value="app_scene_cost_sap_zcorc-通过id删除", notes="app_scene_cost_sap_zcorc-通过id删除")
@RequiresPermissions("cost:app_scene_cost_sap_zcorc:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
appSceneCostSapZcorcService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "app_scene_cost_sap_zcorc-批量删除")
@ApiOperation(value="app_scene_cost_sap_zcorc-批量删除", notes="app_scene_cost_sap_zcorc-批量删除")
@RequiresPermissions("cost:app_scene_cost_sap_zcorc:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.appSceneCostSapZcorcService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "app_scene_cost_sap_zcorc-通过id查询")
@ApiOperation(value="app_scene_cost_sap_zcorc-通过id查询", notes="app_scene_cost_sap_zcorc-通过id查询")
@GetMapping(value = "/queryById")
public Result<AppSceneCostSapZcorc> queryById(@RequestParam(name="id",required=true) String id) {
AppSceneCostSapZcorc appSceneCostSapZcorc = appSceneCostSapZcorcService.getById(id);
if(appSceneCostSapZcorc==null) {
return Result.error("未找到对应数据");
}
return Result.OK(appSceneCostSapZcorc);
}
/**
* 导出excel
*
* @param request
* @param appSceneCostSapZcorc
*/
//@RequiresPermissions("cost:app_scene_cost_sap_zcorc:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostSapZcorc appSceneCostSapZcorc) {
String exportFields="layer,rlayer,matnr,werks,aufnr,ebeln,ebelp,ppsmng,idnrk,kmonth,menge,unmng,kst001,kst003,kst005,kstsum";
return super.exportXls(request, appSceneCostSapZcorc, AppSceneCostSapZcorc.class, "实际成本",exportFields);
}
/**
* 导出excel
*
* @param request
* @param appSceneCostSapZcorc
*/
//@RequiresPermissions("cost:app_scene_cost_sap_zcorc:exportXls")
@RequestMapping(value = "/exportmatnrXls")
public ModelAndView exportmatnrXls(HttpServletRequest request, AppSceneCostSapZcorc appSceneCostSapZcorc) {
String exportFields="layer,rlayer,matnr,werks,aufnr,ebeln,ebelp,ppsmng,idnrk,kmonth,menge,unmng,kstsum,rkst000,aufnrmng,aufnrnum,pnum,avgnum,avgprice,totalprice,";
return super.exportXls(request, appSceneCostSapZcorc, AppSceneCostSapZcorc.class, "实际成本",exportFields);
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequiresPermissions("cost:app_scene_cost_sap_zcorc:importExcel")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, AppSceneCostSapZcorc.class);
}
}
@@ -0,0 +1,179 @@
package com.zzsmart.qomo.kn.cost.manage.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZtmmx004;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostSapZtmmx004Service;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.oConvertUtils;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions;
/**
* @Description: app_scene_cost_sap_ztmmx004
* @Author: jeecg-boot
* @Date: 2024-10-17
* @Version: V1.0
*/
@Api(tags="app_scene_cost_sap_ztmmx004")
@RestController
@RequestMapping("/cost/appSceneCostSapZtmmx004")
@Slf4j
public class AppSceneCostSapZtmmx004Controller extends JeecgController<AppSceneCostSapZtmmx004, IAppSceneCostSapZtmmx004Service> {
@Autowired
private IAppSceneCostSapZtmmx004Service appSceneCostSapZtmmx004Service;
/**
* 分页列表查询
*
* @param appSceneCostSapZtmmx004
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "app_scene_cost_sap_ztmmx004-分页列表查询")
@ApiOperation(value="app_scene_cost_sap_ztmmx004-分页列表查询", notes="app_scene_cost_sap_ztmmx004-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<AppSceneCostSapZtmmx004>> queryPageList(AppSceneCostSapZtmmx004 appSceneCostSapZtmmx004,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<AppSceneCostSapZtmmx004> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapZtmmx004, req.getParameterMap());
Page<AppSceneCostSapZtmmx004> page = new Page<AppSceneCostSapZtmmx004>(pageNo, pageSize);
IPage<AppSceneCostSapZtmmx004> pageList = appSceneCostSapZtmmx004Service.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param appSceneCostSapZtmmx004
* @return
*/
@AutoLog(value = "app_scene_cost_sap_ztmmx004-添加")
@ApiOperation(value="app_scene_cost_sap_ztmmx004-添加", notes="app_scene_cost_sap_ztmmx004-添加")
@RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody AppSceneCostSapZtmmx004 appSceneCostSapZtmmx004) {
appSceneCostSapZtmmx004Service.save(appSceneCostSapZtmmx004);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param appSceneCostSapZtmmx004
* @return
*/
@AutoLog(value = "app_scene_cost_sap_ztmmx004-编辑")
@ApiOperation(value="app_scene_cost_sap_ztmmx004-编辑", notes="app_scene_cost_sap_ztmmx004-编辑")
@RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> edit(@RequestBody AppSceneCostSapZtmmx004 appSceneCostSapZtmmx004) {
appSceneCostSapZtmmx004Service.updateById(appSceneCostSapZtmmx004);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "app_scene_cost_sap_ztmmx004-通过id删除")
@ApiOperation(value="app_scene_cost_sap_ztmmx004-通过id删除", notes="app_scene_cost_sap_ztmmx004-通过id删除")
@RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
appSceneCostSapZtmmx004Service.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "app_scene_cost_sap_ztmmx004-批量删除")
@ApiOperation(value="app_scene_cost_sap_ztmmx004-批量删除", notes="app_scene_cost_sap_ztmmx004-批量删除")
@RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.appSceneCostSapZtmmx004Service.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "app_scene_cost_sap_ztmmx004-通过id查询")
@ApiOperation(value="app_scene_cost_sap_ztmmx004-通过id查询", notes="app_scene_cost_sap_ztmmx004-通过id查询")
@GetMapping(value = "/queryById")
public Result<AppSceneCostSapZtmmx004> queryById(@RequestParam(name="id",required=true) String id) {
AppSceneCostSapZtmmx004 appSceneCostSapZtmmx004 = appSceneCostSapZtmmx004Service.getById(id);
if(appSceneCostSapZtmmx004==null) {
return Result.error("未找到对应数据");
}
return Result.OK(appSceneCostSapZtmmx004);
}
/**
* 导出excel
*
* @param request
* @param appSceneCostSapZtmmx004
*/
@RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostSapZtmmx004 appSceneCostSapZtmmx004) {
return super.exportXls(request, appSceneCostSapZtmmx004, AppSceneCostSapZtmmx004.class, "app_scene_cost_sap_ztmmx004");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:importExcel")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, AppSceneCostSapZtmmx004.class);
}
}
@@ -0,0 +1,179 @@
package com.zzsmart.qomo.kn.cost.manage.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardBom;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostStandardBomService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.oConvertUtils;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions;
/**
* @Description: app_scene_cost_standard_bom
* @Author: jeecg-boot
* @Date: 2024-10-15
* @Version: V1.0
*/
@Api(tags="app_scene_cost_standard_bom")
@RestController
@RequestMapping("/cost/appSceneCostStandardBom")
@Slf4j
public class AppSceneCostStandardBomController extends JeecgController<AppSceneCostStandardBom, IAppSceneCostStandardBomService> {
@Autowired
private IAppSceneCostStandardBomService appSceneCostStandardBomService;
/**
* 分页列表查询
*
* @param appSceneCostStandardBom
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "app_scene_cost_standard_bom-分页列表查询")
@ApiOperation(value="app_scene_cost_standard_bom-分页列表查询", notes="app_scene_cost_standard_bom-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<AppSceneCostStandardBom>> queryPageList(AppSceneCostStandardBom appSceneCostStandardBom,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<AppSceneCostStandardBom> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostStandardBom, req.getParameterMap());
Page<AppSceneCostStandardBom> page = new Page<AppSceneCostStandardBom>(pageNo, pageSize);
IPage<AppSceneCostStandardBom> pageList = appSceneCostStandardBomService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param appSceneCostStandardBom
* @return
*/
@AutoLog(value = "app_scene_cost_standard_bom-添加")
@ApiOperation(value="app_scene_cost_standard_bom-添加", notes="app_scene_cost_standard_bom-添加")
@RequiresPermissions("cost:app_scene_cost_standard_bom:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody AppSceneCostStandardBom appSceneCostStandardBom) {
appSceneCostStandardBomService.save(appSceneCostStandardBom);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param appSceneCostStandardBom
* @return
*/
@AutoLog(value = "app_scene_cost_standard_bom-编辑")
@ApiOperation(value="app_scene_cost_standard_bom-编辑", notes="app_scene_cost_standard_bom-编辑")
@RequiresPermissions("cost:app_scene_cost_standard_bom:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> edit(@RequestBody AppSceneCostStandardBom appSceneCostStandardBom) {
appSceneCostStandardBomService.updateById(appSceneCostStandardBom);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "app_scene_cost_standard_bom-通过id删除")
@ApiOperation(value="app_scene_cost_standard_bom-通过id删除", notes="app_scene_cost_standard_bom-通过id删除")
@RequiresPermissions("cost:app_scene_cost_standard_bom:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
appSceneCostStandardBomService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "app_scene_cost_standard_bom-批量删除")
@ApiOperation(value="app_scene_cost_standard_bom-批量删除", notes="app_scene_cost_standard_bom-批量删除")
@RequiresPermissions("cost:app_scene_cost_standard_bom:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.appSceneCostStandardBomService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "app_scene_cost_standard_bom-通过id查询")
@ApiOperation(value="app_scene_cost_standard_bom-通过id查询", notes="app_scene_cost_standard_bom-通过id查询")
@GetMapping(value = "/queryById")
public Result<AppSceneCostStandardBom> queryById(@RequestParam(name="id",required=true) String id) {
AppSceneCostStandardBom appSceneCostStandardBom = appSceneCostStandardBomService.getById(id);
if(appSceneCostStandardBom==null) {
return Result.error("未找到对应数据");
}
return Result.OK(appSceneCostStandardBom);
}
/**
* 导出excel
*
* @param request
* @param appSceneCostStandardBom
*/
@RequiresPermissions("cost:app_scene_cost_standard_bom:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostStandardBom appSceneCostStandardBom) {
return super.exportXls(request, appSceneCostStandardBom, AppSceneCostStandardBom.class, "app_scene_cost_standard_bom");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequiresPermissions("cost:app_scene_cost_standard_bom:importExcel")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, AppSceneCostStandardBom.class);
}
}
@@ -0,0 +1,202 @@
package com.zzsmart.qomo.kn.cost.manage.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardDetail;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardResult;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostStandardResultService;
import com.zzsmart.qomo.kn.cost.manage.vo.AppSceneCostStandardResultVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.base.controller.JeecgController;
import org.jeecg.common.system.query.QueryGenerator;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.List;
/**
* @Description: app_scene_cost_standard_detail
* @Author: jeecg-boot
* @Date: 2024-07-31
* @Version: V1.0
*/
@Api(tags = "cost-标准成本单行查询")
@RestController
@RequestMapping("//costStandardDetail")
@Slf4j
public class AppSceneCostStandardResultController extends JeecgController<AppSceneCostStandardResult, IAppSceneCostStandardResultService> {
@Autowired
private IAppSceneCostStandardResultService appSceneCostStandardResultService;
/**
* 分页列表查询
*
* @param appSceneCostStandardResult
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "app_scene_cost_standard_detail-分页列表查询")
@ApiOperation(value = "app_scene_cost_standard_detail-分页列表查询", notes = "app_scene_cost_standard_detail-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<AppSceneCostStandardResult>> queryPageList(AppSceneCostStandardResult appSceneCostStandardResult, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
if(appSceneCostStandardResult.getVersionNumber()==null){
appSceneCostStandardResult.setVersionNumber(" ");
}
QueryWrapper<AppSceneCostStandardResult> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostStandardResult, req.getParameterMap());
queryWrapper.orderByAsc("id");
Page<AppSceneCostStandardResult> page = new Page<AppSceneCostStandardResult>(pageNo, pageSize);
IPage<AppSceneCostStandardResult> pageList = appSceneCostStandardResultService.page(page, queryWrapper);
// IPage<AppSceneCostStandardResultVO> newpageList = new Page<>();
// BeanUtils.copyProperties(pageList, newpageList);
// List<AppSceneCostStandardResult> list = pageList.getRecords();
// List<AppSceneCostStandardResultVO> newList = new ArrayList<>();
// for (int i = 0; i < list.size(); i++) {
// AppSceneCostStandardResult result = list.get(i);
// AppSceneCostStandardResultVO costStandardDetail = AppSceneCostStandardResultVO.builder()
// .materialNumber(result.getMaterialNumber())
//// .materialName(oldAppSceneCostResultValue.getMarterialNo())
// .parentMaterialNumber(result.getParentMatnr())
// .versionNumber(result.getVersionNumber())
//// .level()
//// .sort()
//// .figureNumber()
//// .dosage(oldAppSceneCostResultValue.getNum() != null ? new Double(oldAppSceneCostResultValue.getNum()) : 0)
//// .unit(oldAppSceneCostResultValue.getUnit())
// .materialCost(result.getMaterialCostStage())
// .laborCost(result.getLaborCostStage())
// .equipmentCost(result.getEquipCostStage())
// .supplyMaterialCost(result.getAuxiliaryCostStage())
// .driveCost(result.getBurningCostStage())
// .otherCost(result.getOtherCostStage())
// .currentStandardCost(result.getTotalStandardCost())
// .totalMaterialCost(result.getMaterialCostAccumulated())
// .totalLaborCost(result.getLaborCostAccumulated())
// .totalEquipmentCost(result.getEquipCostAccumulated())
// .totalSupplyMaterialCost(result.getAuxiliaryCostAccumulated())
// .totalDriveCost(result.getBurningCostAccumulated())
// .totalOtherCost(result.getOtherCostAccumulated())
// .totalStandardCost(result.getTotalStandardCost())
// .createTime(result.getCreatedTime()).build();
// newList.add(costStandardDetail);
// }
// newpageList.setRecords(newList);
return Result.OK(pageList);
}
//
// /**
// * 添加
// *
// * @param appSceneCostStandardDetail
// * @return
// */
// @AutoLog(value = "app_scene_cost_standard_detail-添加")
// @ApiOperation(value = "app_scene_cost_standard_detail-添加", notes = "app_scene_cost_standard_detail-添加")
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_detail:add")
// @PostMapping(value = "/add")
// public Result<String> add(@RequestBody AppSceneCostStandardDetail appSceneCostStandardDetail) {
// appSceneCostStandardDetailService.save(appSceneCostStandardDetail);
// return Result.OK("添加成功!");
// }
// /**
// * 编辑
// *
// * @param appSceneCostStandardDetail
// * @return
// */
// @AutoLog(value = "app_scene_cost_standard_detail-编辑")
// @ApiOperation(value = "app_scene_cost_standard_detail-编辑", notes = "app_scene_cost_standard_detail-编辑")
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_detail:edit")
// @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
// public Result<String> edit(@RequestBody AppSceneCostStandardDetail appSceneCostStandardDetail) {
// appSceneCostStandardDetailService.updateById(appSceneCostStandardDetail);
// return Result.OK("编辑成功!");
// }
//
// /**
// * 通过id删除
// *
// * @param id
// * @return
// */
// @AutoLog(value = "app_scene_cost_standard_detail-通过id删除")
// @ApiOperation(value = "app_scene_cost_standard_detail-通过id删除", notes = "app_scene_cost_standard_detail-通过id删除")
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_detail:delete")
// @DeleteMapping(value = "/delete")
// public Result<String> delete(@RequestParam(name = "id", required = true) String id) {
// appSceneCostStandardDetailService.removeById(id);
// return Result.OK("删除成功!");
// }
//
// /**
// * 批量删除
// *
// * @param ids
// * @return
// */
// @AutoLog(value = "app_scene_cost_standard_detail-批量删除")
// @ApiOperation(value = "app_scene_cost_standard_detail-批量删除", notes = "app_scene_cost_standard_detail-批量删除")
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_detail:deleteBatch")
// @DeleteMapping(value = "/deleteBatch")
// public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
// this.appSceneCostStandardDetailService.removeByIds(Arrays.asList(ids.split(",")));
// return Result.OK("批量删除成功!");
// }
// /**
// * 通过id查询
// *
// * @param id
// * @return
// */
// //@AutoLog(value = "app_scene_cost_standard_detail-通过id查询")
// @ApiOperation(value = "app_scene_cost_standard_detail-通过id查询", notes = "app_scene_cost_standard_detail-通过id查询")
// @GetMapping(value = "/queryById")
// public Result<AppSceneCostStandardDetail> queryById(@RequestParam(name = "id", required = true) String id) {
// AppSceneCostStandardDetail appSceneCostStandardDetail = appSceneCostStandardDetailService.getById(id);
// if (appSceneCostStandardDetail == null) {
// return Result.error("未找到对应数据");
// }
// return Result.OK(appSceneCostStandardDetail);
// }
/**
* 导出excel
*
* @param request
* @param appSceneCostStandardDetail
*/
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_detail:exportXls")
@GetMapping(value = "/exportXls")
@ApiOperation(value = "cost-单行查询导出", notes = "cost-单行查询导出")
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostStandardResult appSceneCostStandardResult) {
return appSceneCostStandardResultService.exportXls2(request, appSceneCostStandardResult, AppSceneCostStandardResult.class, "标准成本单行导出");
}
// /**
// * 通过excel导入数据
// *
// * @param request
// * @param response
// * @return
// */
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_detail:importExcel")
// @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
// public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
// return super.importExcel(request, response, AppSceneCostStandardDetail.class);
// }
}
@@ -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);
// }
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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 {
}
@@ -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 {
}
@@ -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 {
}
@@ -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();
}
}
@@ -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 {
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -8,6 +8,7 @@ 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;
@@ -19,62 +20,62 @@ import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: 标准成本-版本号
* @Author: wangqiong
* @Date: 2024-06-13
* @Description: app_scene_cost_actual
* @Author: jeecg-boot
* @Date: 2024-10-15
* @Version: V1.0
*/
@Data
@TableName("cost_standard_version")
@Builder
@TableName("app_scene_cost_actual")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="cost_standard_version对象", description="cost_standard_version")
public class CostStandardVersion implements Serializable {
@ApiModel(value="app_scene_cost_actual对象", description="app_scene_cost_actual")
public class AppSceneCostActual 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;
/**主键*/
@TableId(type = IdType.AUTO)
@ApiModelProperty(value = "主键")
private Integer id;
/**工厂*/
@Excel(name = "工厂", width = 15)
@ApiModelProperty(value = "工厂")
private String werks;
/**物料编号*/
@Excel(name = "物料编号", width = 15)
@ApiModelProperty(value = "物料编号")
private String matnr;
/**会计期间*/
@Excel(name = "会计期间", width = 15)
@ApiModelProperty(value = "会计期间")
private String ymonth;
/**版本*/
@Excel(name = "版本", width = 15)
@ApiModelProperty(value = "版本")
private String version;
/**版本*/
@Excel(name = "订单号", width = 15)
@ApiModelProperty(value = "订单号")
private String aufnr;
/**状态*/
@Excel(name = "状态", width = 15)
@ApiModelProperty(value = "状态")
private Integer status;
/**创建人*/
@ApiModelProperty(value = "创建人")
private String createBy;
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 String updateBy;
/**修改时间*/
/**更新人*/
@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 = "修改时间")
@ApiModelProperty(value = "更新时间")
private Date updateTime;
/**备注*/
@ApiModelProperty(value = "备注")
private String remark;
/**年份*/
@ApiModelProperty(value = "年份")
private String versionYear;
}
@@ -19,37 +19,41 @@ import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: 标准成本-部件缺失信息
* @Author: wangqiong
* @Date: 2024-06-13
* @Description: app_scene_cost_aufnr_matnr
* @Author: jeecg-boot
* @Date: 2024-10-05
* @Version: V1.0
*/
@Data
@TableName("cost_part_missing_info")
@TableName("app_scene_cost_aufnr_matnr")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="cost_part_missing_info对象", description="cost_part_missing_info")
public class CostPartMissingInfo implements Serializable {
@ApiModel(value="app_scene_cost_aufnr_matnr对象", description="app_scene_cost_aufnr_matnr")
public class AppSceneCostAufnrMatnr implements Serializable {
private static final long serialVersionUID = 1L;
/**id*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "id")
private String id;
/**标准成本表主键id*/
@Excel(name = "标准成本表主键id", width = 15)
@ApiModelProperty(value = "标准成本表主键id")
private String costStandardId;
private Integer id;
/**物料号*/
@Excel(name = "物料号", width = 15)
@ApiModelProperty(value = "物料号")
private String materialNumber;
/**版本号*/
@Excel(name = "版本号", width = 15)
@ApiModelProperty(value = "版本号")
private String versionNumber;
/**缺失信息*/
@Excel(name = "缺失信息", width = 15)
@ApiModelProperty(value = "缺失信息")
private String missingInfo;
private String matnr;
/**物料名称*/
@Excel(name = "物料名称", width = 15)
@ApiModelProperty(value = "物料名称")
private String maktx;
/**内部订单号*/
@Excel(name = "内部订单号", width = 15)
@ApiModelProperty(value = "内部订单号")
private String aufnr;
/**内部订单描述*/
@Excel(name = "内部订单描述", width = 15)
@ApiModelProperty(value = "内部订单描述")
private String aufnrDes;
/**年份*/
@Excel(name = "年份", width = 15)
@ApiModelProperty(value = "年份")
private String year;
}
@@ -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;
}
@@ -0,0 +1,173 @@
package com.zzsmart.qomo.kn.cost.manage.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* @Description: app_scene_cost_count
* @Author: jeecg-boot
* @Date: 2024-07-29
* @Version: V1.0
*/
@Data
@TableName("app_scene_cost_count")
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "app_scene_cost_count对象", description = "app_scene_cost_count")
public class AppSceneCostCount implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(type = IdType.AUTO)
@ApiModelProperty(value = "主键")
private Integer id;
/**
* 物料编号
*/
@Excel(name = "物料编号", width = 15)
@ApiModelProperty(value = "物料编号")
private String materialNo;
/**
* 图号
*/
@Excel(name = "物料描述", width = 15)
@ApiModelProperty(value = "物料描述")
private String maktx;
/**
* stage
*/
@Excel(name = "阶段", width = 15)
@ApiModelProperty(value = "stage")
private String stage;
/**
* 标准成本计算流程id
*/
@Excel(name = "标准成本计算流程id", width = 15)
@ApiModelProperty(value = "标准成本计算流程id")
private Integer flowDefinitionId;
/**
* year
*/
@Excel(name = "年份", width = 15)
@ApiModelProperty(value = "year")
private String year;
/**
* 状态
*/
@Excel(name = "状态", width = 15)
@ApiModelProperty(value = "状态")
private Integer status;
/**
* 模型版本
*/
@Excel(name = "标准成本版本", width = 15)
@ApiModelProperty(value = "标准成本版本")
private String costVersion;
/**
* 模型版本
*/
@Excel(name = "工厂", width = 15)
@ApiModelProperty(value = "工厂")
private String werks;
/**
* 模型版本
*/
@Excel(name = "内部订单号", width = 15)
@ApiModelProperty(value = "内部订单号")
private String aufnr;
/**
* 模型版本
*/
@Excel(name = "总标准成本", width = 15)
@ApiModelProperty(value = "总标准成本")
private BigDecimal standardTotal;
/**
* 模型版本
*/
@Excel(name = "材料成本", width = 15)
@ApiModelProperty(value = "材料成本")
private BigDecimal materialCost;
/**
* 模型版本
*/
@Excel(name = "直接人工", width = 15)
@ApiModelProperty(value = "直接人工")
private BigDecimal laborCost;
/**
* 模型版本
*/
@Excel(name = "折旧", width = 15)
@ApiModelProperty(value = "折旧")
private BigDecimal equipCost;
/**
* 模型版本
*/
@Excel(name = "燃动力", width = 15)
@ApiModelProperty(value = "燃动力")
private BigDecimal fuelCost;
/**
* 模型版本
*/
@Excel(name = "辅料", width = 15)
@ApiModelProperty(value = "辅料")
private BigDecimal auxiCost;
/**
* 模型版本
*/
@Excel(name = "其他费用", width = 15)
@ApiModelProperty(value = "其他费用")
private BigDecimal otherCost;
/**
* 模型版本
*/
@Excel(name = "人工工时(分钟)", width = 15)
@ApiModelProperty(value = "人工工时(分钟)")
private BigDecimal laborHour;
/**
* 模型版本
*/
@Excel(name = "机器工时(分钟)", width = 15)
@ApiModelProperty(value = "机器工时(分钟)")
private BigDecimal machineHour;
/**
* 创建人
*/
@ApiModelProperty(value = "创建人")
private Integer createBy;
/**
* 创建时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建时间")
private Date createTime;
/**
* 更新人
*/
@ApiModelProperty(value = "更新人")
private Integer updateBy;
/**
* 更新时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "更新时间")
private Date updateTime;
}
@@ -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;
}
@@ -0,0 +1,151 @@
package com.zzsmart.qomo.kn.cost.manage.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: app_scene_cost_invoice
* @Author: jeecg-boot
* @Date: 2024-09-22
* @Version: V1.0
*/
@Data
@TableName("app_scene_cost_invoice")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="app_scene_cost_invoice对象", description="app_scene_cost_invoice")
public class AppSceneCostInvoice implements Serializable {
private static final long serialVersionUID = 1L;
/**matnr*/
@Excel(name = "matnr", width = 15)
@ApiModelProperty(value = "matnr")
private String matnr;
/**posnr*/
@Excel(name = "posnr", width = 15)
@ApiModelProperty(value = "posnr")
private String posnr;
/**vbeln*/
@Excel(name = "vbeln", width = 15)
@ApiModelProperty(value = "vbeln")
private String vbeln;
/**aupos*/
@Excel(name = "aupos", width = 15)
@ApiModelProperty(value = "aupos")
private String aupos;
/**aubel*/
@Excel(name = "aubel", width = 15)
@ApiModelProperty(value = "aubel")
private String aubel;
/**bukrs*/
@Excel(name = "bukrs", width = 15)
@ApiModelProperty(value = "bukrs")
private String bukrs;
/**werks*/
@Excel(name = "werks", width = 15)
@ApiModelProperty(value = "werks")
private String werks;
/**gjahr*/
@Excel(name = "gjahr", width = 15)
@ApiModelProperty(value = "gjahr")
private String gjahr;
/**poper*/
@Excel(name = "poper", width = 15)
@ApiModelProperty(value = "poper")
private String poper;
/**kunrg*/
@Excel(name = "kunrg", width = 15)
@ApiModelProperty(value = "kunrg")
private String kunrg;
/**vkbur*/
@Excel(name = "vkbur", width = 15)
@ApiModelProperty(value = "vkbur")
private String vkbur;
/**bezei*/
@Excel(name = "bezei", width = 15)
@ApiModelProperty(value = "bezei")
private String bezei;
/**fkdat*/
@Excel(name = "fkdat", width = 15)
@ApiModelProperty(value = "fkdat")
private String fkdat;
/**kurrf*/
@Excel(name = "kurrf", width = 15)
@ApiModelProperty(value = "kurrf")
private String kurrf;
/**erdat*/
@Excel(name = "erdat", width = 15)
@ApiModelProperty(value = "erdat")
private String erdat;
/**netwr*/
@Excel(name = "netwr", width = 15)
@ApiModelProperty(value = "netwr")
private BigDecimal netwr;
/**mwsbp*/
@Excel(name = "mwsbp", width = 15)
@ApiModelProperty(value = "mwsbp")
private BigDecimal mwsbp;
/**shkzg*/
@Excel(name = "shkzg", width = 15)
@ApiModelProperty(value = "shkzg")
private String shkzg;
/**fkimg*/
@Excel(name = "fkimg", width = 15)
@ApiModelProperty(value = "fkimg")
private BigDecimal fkimg;
/**name1*/
@Excel(name = "name1", width = 15)
@ApiModelProperty(value = "name1")
private String name1;
/**sortl*/
@Excel(name = "sortl", width = 15)
@ApiModelProperty(value = "sortl")
private String sortl;
/**spart*/
@Excel(name = "spart", width = 15)
@ApiModelProperty(value = "spart")
private String spart;
/**zzthzq*/
@Excel(name = "zzthzq", width = 15)
@ApiModelProperty(value = "zzthzq")
private String zzthzq;
/**yuanbiPrice*/
@Excel(name = "yuanbiPrice", width = 15)
@ApiModelProperty(value = "yuanbiPrice")
private BigDecimal yuanbiPrice;
/**yuanbiTotal*/
@Excel(name = "yuanbiTotal", width = 15)
@ApiModelProperty(value = "yuanbiTotal")
private BigDecimal yuanbiTotal;
/**benbiPrice*/
@Excel(name = "benbiPrice", width = 15)
@ApiModelProperty(value = "benbiPrice")
private BigDecimal benbiPrice;
/**benbiTotal*/
@Excel(name = "benbiTotal", width = 15)
@ApiModelProperty(value = "benbiTotal")
private BigDecimal benbiTotal;
/**maktx*/
@Excel(name = "maktx", width = 15)
@ApiModelProperty(value = "maktx")
private String maktx;
/**fkart*/
@Excel(name = "fkart", width = 15)
@ApiModelProperty(value = "fkart")
private String fkart;
}
@@ -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;
}
@@ -0,0 +1,83 @@
package com.zzsmart.qomo.kn.cost.manage.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: app_scene_cost_mining_aufnr
* @Author: jeecg-boot
* @Date: 2024-10-15
* @Version: V1.0
*/
@Data
@TableName("app_scene_cost_mining_aufnr")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="app_scene_cost_mining_aufnr对象", description="app_scene_cost_mining_aufnr")
public class AppSceneCostMiningAufnr implements Serializable {
private static final long serialVersionUID = 1L;
/**id*/
@TableId(type = IdType.AUTO)
@ApiModelProperty(value = "id")
private Integer id;
/**resultid*/
@Excel(name = "resultid", width = 15)
@ApiModelProperty(value = "resultid")
private Integer resultid;
/**matnr*/
@Excel(name = "matnr", width = 15)
@ApiModelProperty(value = "matnr")
private String matnr;
/**aufnr*/
@Excel(name = "aufnr", width = 15)
@ApiModelProperty(value = "aufnr")
private String aufnr;
/**costcenter*/
@Excel(name = "costcenter", width = 15)
@ApiModelProperty(value = "costcenter")
private String costcenter;
/**budat*/
@Excel(name = "budat", width = 15)
@ApiModelProperty(value = "budat")
private String budat;
/**version*/
@Excel(name = "version", width = 15)
@ApiModelProperty(value = "version")
private String version;
/**laborratio*/
@Excel(name = "laborratio", width = 15)
@ApiModelProperty(value = "laborratio")
private BigDecimal laborratio;
/**productratio*/
@Excel(name = "productratio", width = 15)
@ApiModelProperty(value = "productratio")
private BigDecimal productratio;
/**labordiff*/
@Excel(name = "labordiff", width = 15)
@ApiModelProperty(value = "labordiff")
private BigDecimal labordiff;
/**productdiff*/
@Excel(name = "productdiff", width = 15)
@ApiModelProperty(value = "productdiff")
private BigDecimal productdiff;
/**jsondata*/
@Excel(name = "jsondata", width = 15)
@ApiModelProperty(value = "jsondata")
private String jsondata;
}
@@ -19,37 +19,41 @@ import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: cost_center
* @Description: app_scene_cost_mining_diff
* @Author: jeecg-boot
* @Date: 2024-06-11
* @Date: 2024-10-15
* @Version: V1.0
*/
@Data
@TableName("cost_center")
@TableName("app_scene_cost_mining_diff")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="cost_center对象", description="cost_center")
public class CostCenter implements Serializable {
@ApiModel(value="app_scene_cost_mining_diff对象", description="app_scene_cost_mining_diff")
public class AppSceneCostMiningDiff 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;
/**id*/
@TableId(type = IdType.AUTO)
@ApiModelProperty(value = "id")
private Integer id;
/**resultid*/
@Excel(name = "resultid", width = 15)
@ApiModelProperty(value = "resultid")
private Integer resultid;
/**type*/
@Excel(name = "type", width = 15)
@ApiModelProperty(value = "type")
private String type;
/**reason*/
@Excel(name = "reason", width = 15)
@ApiModelProperty(value = "reason")
private String reason;
/**code*/
@Excel(name = "code", width = 15)
@ApiModelProperty(value = "code")
private String code;
/**value*/
@Excel(name = "value", width = 15)
@ApiModelProperty(value = "value")
private Double value;
}
@@ -0,0 +1,175 @@
package com.zzsmart.qomo.kn.cost.manage.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: app_scene_cost_mining_labor
* @Author: jeecg-boot
* @Date: 2024-11-05
* @Version: V1.0
*/
@Data
@TableName("app_scene_cost_mining_labor")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="app_scene_cost_mining_labor对象", description="app_scene_cost_mining_labor")
public class AppSceneCostMiningLabor implements Serializable {
private static final long serialVersionUID = 1L;
/**id*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "id")
private Integer id;
/**resultid*/
@Excel(name = "resultid", width = 15)
@ApiModelProperty(value = "resultid")
private Integer resultid;
/**matnr*/
@Excel(name = "matnr", width = 15)
@ApiModelProperty(value = "matnr")
private String matnr;
/**maktx*/
@Excel(name = "maktx", width = 15)
@ApiModelProperty(value = "maktx")
private String maktx;
/**menge*/
@Excel(name = "menge", width = 15)
@ApiModelProperty(value = "menge")
private BigDecimal menge;
/**rgRealUse*/
@Excel(name = "rgRealUse", width = 15)
@ApiModelProperty(value = "rgRealUse")
private BigDecimal rgRealUse;
/**rgRealCost*/
@Excel(name = "rgRealCost", width = 15)
@ApiModelProperty(value = "rgRealCost")
private BigDecimal rgRealCost;
/**rgStdUse*/
@Excel(name = "rgStdUse", width = 15)
@ApiModelProperty(value = "rgStdUse")
private BigDecimal rgStdUse;
/**rgStdCost*/
@Excel(name = "rgStdCost", width = 15)
@ApiModelProperty(value = "rgStdCost")
private BigDecimal rgStdCost;
/**rgUseDiff*/
@Excel(name = "rgUseDiff", width = 15)
@ApiModelProperty(value = "rgUseDiff")
private BigDecimal rgUseDiff;
/**rgCostDiff*/
@Excel(name = "rgCostDiff", width = 15)
@ApiModelProperty(value = "rgCostDiff")
private BigDecimal rgCostDiff;
/**zjRealUse*/
@Excel(name = "zjRealUse", width = 15)
@ApiModelProperty(value = "zjRealUse")
private BigDecimal zjRealUse;
/**zjRealCost*/
@Excel(name = "zjRealCost", width = 15)
@ApiModelProperty(value = "zjRealCost")
private BigDecimal zjRealCost;
/**zjStdUse*/
@Excel(name = "zjStdUse", width = 15)
@ApiModelProperty(value = "zjStdUse")
private BigDecimal zjStdUse;
/**zjStdCost*/
@Excel(name = "zjStdCost", width = 15)
@ApiModelProperty(value = "zjStdCost")
private BigDecimal zjStdCost;
/**zjUseDiff*/
@Excel(name = "zjUseDiff", width = 15)
@ApiModelProperty(value = "zjUseDiff")
private BigDecimal zjUseDiff;
/**zjCostDiff*/
@Excel(name = "zjCostDiff", width = 15)
@ApiModelProperty(value = "zjCostDiff")
private BigDecimal zjCostDiff;
/**rdRealUse*/
@Excel(name = "rdRealUse", width = 15)
@ApiModelProperty(value = "rdRealUse")
private BigDecimal rdRealUse;
/**rdRealCost*/
@Excel(name = "rdRealCost", width = 15)
@ApiModelProperty(value = "rdRealCost")
private BigDecimal rdRealCost;
/**rdStdUse*/
@Excel(name = "rdStdUse", width = 15)
@ApiModelProperty(value = "rdStdUse")
private BigDecimal rdStdUse;
/**rdStdCost*/
@Excel(name = "rdStdCost", width = 15)
@ApiModelProperty(value = "rdStdCost")
private BigDecimal rdStdCost;
/**rdUseDiff*/
@Excel(name = "rdUseDiff", width = 15)
@ApiModelProperty(value = "rdUseDiff")
private BigDecimal rdUseDiff;
/**rdCostDiff*/
@Excel(name = "rdCostDiff", width = 15)
@ApiModelProperty(value = "rdCostDiff")
private BigDecimal rdCostDiff;
/**flRealUse*/
@Excel(name = "flRealUse", width = 15)
@ApiModelProperty(value = "flRealUse")
private BigDecimal flRealUse;
/**flRealCost*/
@Excel(name = "flRealCost", width = 15)
@ApiModelProperty(value = "flRealCost")
private BigDecimal flRealCost;
/**flStdUse*/
@Excel(name = "flStdUse", width = 15)
@ApiModelProperty(value = "flStdUse")
private BigDecimal flStdUse;
/**flStdCost*/
@Excel(name = "flStdCost", width = 15)
@ApiModelProperty(value = "flStdCost")
private BigDecimal flStdCost;
/**flUseDiff*/
@Excel(name = "flUseDiff", width = 15)
@ApiModelProperty(value = "flUseDiff")
private BigDecimal flUseDiff;
/**flCostDiff*/
@Excel(name = "flCostDiff", width = 15)
@ApiModelProperty(value = "flCostDiff")
private BigDecimal flCostDiff;
/**qtRealUse*/
@Excel(name = "qtRealUse", width = 15)
@ApiModelProperty(value = "qtRealUse")
private BigDecimal qtRealUse;
/**qtRealCost*/
@Excel(name = "qtRealCost", width = 15)
@ApiModelProperty(value = "qtRealCost")
private BigDecimal qtRealCost;
/**qtStdUse*/
@Excel(name = "qtStdUse", width = 15)
@ApiModelProperty(value = "qtStdUse")
private BigDecimal qtStdUse;
/**qtStdCost*/
@Excel(name = "qtStdCost", width = 15)
@ApiModelProperty(value = "qtStdCost")
private BigDecimal qtStdCost;
/**qtUseDiff*/
@Excel(name = "qtUseDiff", width = 15)
@ApiModelProperty(value = "qtUseDiff")
private BigDecimal qtUseDiff;
/**qtCostDiff*/
@Excel(name = "qtCostDiff", width = 15)
@ApiModelProperty(value = "qtCostDiff")
private BigDecimal qtCostDiff;
}
@@ -0,0 +1,67 @@
package com.zzsmart.qomo.kn.cost.manage.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: app_scene_cost_mining_material
* @Author: jeecg-boot
* @Date: 2024-10-15
* @Version: V1.0
*/
@Data
@TableName("app_scene_cost_mining_material")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="app_scene_cost_mining_material对象", description="app_scene_cost_mining_material")
public class AppSceneCostMiningMaterial implements Serializable {
private static final long serialVersionUID = 1L;
/**id*/
@TableId(type = IdType.AUTO)
@ApiModelProperty(value = "id")
private Integer id;
/**resultid*/
@Excel(name = "resultid", width = 15)
@ApiModelProperty(value = "resultid")
private Integer resultid;
/**matnr*/
@Excel(name = "matnr", width = 15)
@ApiModelProperty(value = "matnr")
private String matnr;
/**aufnr*/
@Excel(name = "aufnr", width = 15)
@ApiModelProperty(value = "aufnr")
private String aufnr;
/**version*/
@Excel(name = "version", width = 15)
@ApiModelProperty(value = "version")
private String version;
/**totaldiff*/
@Excel(name = "totaldiff", width = 15)
@ApiModelProperty(value = "totaldiff")
private BigDecimal totaldiff;
/**ratio*/
@Excel(name = "ratio", width = 15)
@ApiModelProperty(value = "ratio")
private BigDecimal ratio;
/**jsondata*/
@Excel(name = "jsondata", width = 15)
@ApiModelProperty(value = "jsondata")
private String jsondata;
}
@@ -19,29 +19,33 @@ import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: sap_subfactory
* @Description: app_scene_cost_mining_reason
* @Author: jeecg-boot
* @Date: 2024-06-11
* @Date: 2024-10-15
* @Version: V1.0
*/
@Data
@TableName("sap_subfactory")
@TableName("app_scene_cost_mining_reason")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="sap_subfactory对象", description="sap_subfactory")
public class SapSubfactory implements Serializable {
@ApiModel(value="app_scene_cost_mining_reason对象", description="app_scene_cost_mining_reason")
public class AppSceneCostMiningReason 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;
/**code*/
@Excel(name = "code", width = 15)
@ApiModelProperty(value = "code")
private String code;
/**reason*/
@Excel(name = "reason", width = 15)
@ApiModelProperty(value = "reason")
private String reason;
/**level*/
@Excel(name = "level", width = 15)
@ApiModelProperty(value = "level")
private Integer level;
/**pcode*/
@Excel(name = "pcode", width = 15)
@ApiModelProperty(value = "pcode")
private String pcode;
}
@@ -0,0 +1,139 @@
package com.zzsmart.qomo.kn.cost.manage.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: app_scene_cost_mining_result
* @Author: jeecg-boot
* @Date: 2024-10-15
* @Version: V1.0
*/
@Data
@TableName("app_scene_cost_mining_result")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="app_scene_cost_mining_result对象", description="app_scene_cost_mining_result")
public class AppSceneCostMiningResult implements Serializable {
private static final long serialVersionUID = 1L;
/**id*/
@TableId(type = IdType.AUTO)
@ApiModelProperty(value = "id")
private Integer id;
/**matnr*/
@Excel(name = "matnr", width = 15)
@ApiModelProperty(value = "matnr")
private String matnr;
/**aufnr*/
@Excel(name = "aufnr", width = 15)
@ApiModelProperty(value = "aufnr")
private String aufnr;
/**version*/
@Excel(name = "version", width = 15)
@ApiModelProperty(value = "version")
private String version;
/**wbs*/
@Excel(name = "wbs", width = 15)
@ApiModelProperty(value = "wbs")
private String wbs;
/**werks*/
@Excel(name = "werks", width = 15)
@ApiModelProperty(value = "werks")
private String werks;
/**totalreal*/
@Excel(name = "totalreal", width = 15)
@ApiModelProperty(value = "totalreal")
private Double totalreal;
/**totalstd*/
@Excel(name = "totalstd", width = 15)
@ApiModelProperty(value = "totalstd")
private Double totalstd;
/**ymonth*/
@Excel(name = "ymonth", width = 15)
@ApiModelProperty(value = "ymonth")
private String ymonth;
/**lgort*/
@Excel(name = "lgort", width = 15)
@ApiModelProperty(value = "lgort")
private String lgort;
/**ppsmng*/
//@Excel(name = "ppsmng", width = 15)
//@ApiModelProperty(value = "ppsmng")
//private Double ppsmng;
/**realmaterial*/
@Excel(name = "realmaterial", width = 15)
@ApiModelProperty(value = "realmaterial")
private Double realmaterial;
/**stdmaterial*/
@Excel(name = "stdmaterial", width = 15)
@ApiModelProperty(value = "stdmaterial")
private Double stdmaterial;
/**reallabor*/
@Excel(name = "reallabor", width = 15)
@ApiModelProperty(value = "reallabor")
private Double reallabor;
/**stdlabor*/
@Excel(name = "stdlabor", width = 15)
@ApiModelProperty(value = "stdlabor")
private Double stdlabor;
/**realproductcost*/
@Excel(name = "realproductcost", width = 15)
@ApiModelProperty(value = "realproductcost")
private Double realproductcost;
/**stdproductcost*/
@Excel(name = "stdproductcost", width = 15)
@ApiModelProperty(value = "stdproductcost")
private Double stdproductcost;
/**status*/
@Excel(name = "status", width = 15)
@ApiModelProperty(value = "status")
private String status;
/**err*/
@Excel(name = "err", width = 15)
@ApiModelProperty(value = "err")
private String err;
/**startdate*/
@Excel(name = "startdate", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "startdate")
private Date startdate;
/**enddate*/
@Excel(name = "enddate", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "enddate")
private Date enddate;
/**batchymonth*/
@Excel(name = "batchymonth", width = 15)
@ApiModelProperty(value = "batchymonth")
private String batchymonth;
/**percent*/
@Excel(name = "percent", width = 15)
@ApiModelProperty(value = "percent")
private Double percent;
/**projectcate*/
@Excel(name = "projectcate", width = 15)
@ApiModelProperty(value = "projectcate")
private String projectcate;
/**hastransfer*/
@Excel(name = "hastransfer", width = 15)
@ApiModelProperty(value = "hastransfer")
private Integer hastransfer;
}
@@ -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;
}
@@ -0,0 +1,61 @@
package com.zzsmart.qomo.kn.cost.manage.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import java.io.Serializable;
/**
* @Description: app_scene_cost_part_missing_info
* @Author: jeecg-boot
* @Date: 2024-08-02
* @Version: V1.0
*/
@Data
@Builder
@TableName("app_scene_cost_part_missing_info")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "app_scene_cost_part_missing_info对象", description = "app_scene_cost_part_missing_info")
public class AppSceneCostPartMissingInfo implements Serializable {
private static final long serialVersionUID = 1L;
/**
* id
*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "id")
private String id;
/**
* 物料号
*/
@Excel(name = "物料号", width = 15)
@ApiModelProperty(value = "物料号")
private String materialNumber;
/**
* 版本号
*/
@Excel(name = "版本号", width = 15)
@ApiModelProperty(value = "版本号")
private String versionNumber;
/**
* 缺失信息
*/
@Excel(name = "缺失信息", width = 15)
@ApiModelProperty(value = "缺失信息")
private String missingInfo;
/**
* 标准成本表主键id
*/
@Excel(name = "标准成本表主键id", width = 15)
@ApiModelProperty(value = "标准成本表主键id")
private String costStandardId;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -0,0 +1,231 @@
package com.zzsmart.qomo.kn.cost.manage.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* @Description: app_scene_cost_result_value
* @Author: jeecg-boot
* @Date: 2024-07-25
* @Version: V1.0
*/
@Data
@Builder
@TableName("app_scene_cost_result_value")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "app_scene_cost_result_value对象", description = "app_scene_cost_result_value")
public class AppSceneCostResultValue implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(type = IdType.AUTO)
@ApiModelProperty(value = "主键")
private Integer id;
/**
* 所属最上级物料号
*/
@Excel(name = "所属最上级物料号", width = 15)
@ApiModelProperty(value = "所属最上级物料号")
private String belongTopMaterialNo;
/**
* 物料编号
*/
@Excel(name = "物料编号", width = 15)
@ApiModelProperty(value = "物料编号")
private String marterialNo;
/**
* 父类物料编号
*/
@Excel(name = "父类物料编号", width = 15)
@ApiModelProperty(value = "父类物料编号")
private String parentMarterialNo;
/**
* 数量
*/
@Excel(name = "数量", width = 15)
@ApiModelProperty(value = "数量")
private BigDecimal num;
/**
* 单位
*/
@Excel(name = "单位", width = 15)
@ApiModelProperty(value = "单位")
private String unit;
/**
* 任务类型
*/
@Excel(name = "任务类型", width = 15)
@ApiModelProperty(value = "任务类型")
private String taskType;
/**
* 任务代码
*/
@Excel(name = "任务代码", width = 15)
@ApiModelProperty(value = "任务代码")
private String taskCode;
/**
* 流程id
*/
@Excel(name = "流程id", width = 15)
@ApiModelProperty(value = "流程id")
private Integer flowInstanceId;
/**
* 本阶成本
*/
@Excel(name = "本阶成本", width = 15)
@ApiModelProperty(value = "本阶成本")
private String countValue;
/**
* 创建时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建时间")
private Date createTime;
/**
* 创建人
*/
@ApiModelProperty(value = "创建人")
private Integer createBy;
/**
* 总计成本
*/
@Excel(name = "总计成本", width = 15)
@ApiModelProperty(value = "总计成本")
private String totalValue;
/**
* 成本类别
*/
@Excel(name = "成本类别", width = 15)
@ApiModelProperty(value = "成本类别")
private String costType;
/**
* 成本明细
*/
@Excel(name = "成本明细", width = 15)
@ApiModelProperty(value = "成本明细")
private String costDetail;
/**
* 单价或费率
*/
@Excel(name = "单价或费率", width = 15)
@ApiModelProperty(value = "单价或费率")
private BigDecimal priceOrRate;
/**
* 工时
*/
@Excel(name = "工时", width = 15)
@ApiModelProperty(value = "工时")
private BigDecimal hour;
/**
* 工时
*/
@Excel(name = "BOM深度", width = 15)
@ApiModelProperty(value = "BOM深度")
private int depth;
/**
* 工时
*/
@Excel(name = "父物料数量", width = 15)
@ApiModelProperty(value = "父物料数量")
private BigDecimal pnum;
/**
* 工时
*/
@Excel(name = "基于最上层物料的用量", width = 15)
@ApiModelProperty(value = "基于最上层物料的用量")
private BigDecimal topnum;
/**
* 工时
*/
@Excel(name = "价格类型", width = 15)
@ApiModelProperty(value = "价格类型")
private String priceType;
/**
* 工时
*/
@Excel(name = "制造类型", width = 15)
@ApiModelProperty(value = "制造类型")
private String manuType;
/**
* 工时
*/
@Excel(name = "材料", width = 15)
@ApiModelProperty(value = "材料")
private BigDecimal material;
/**
* 工时
*/
@Excel(name = "人工", width = 15)
@ApiModelProperty(value = "人工")
private BigDecimal labor;
/**
* 工时
*/
@Excel(name = "设备", width = 15)
@ApiModelProperty(value = "设备")
private BigDecimal equip;
/**
* 工时
*/
@Excel(name = "燃动", width = 15)
@ApiModelProperty(value = "燃动")
private BigDecimal fuel;
/**
* 工时
*/
@Excel(name = "辅料", width = 15)
@ApiModelProperty(value = "辅料")
private BigDecimal auxi;
/**
* 工时
*/
@Excel(name = "其他", width = 15)
@ApiModelProperty(value = "其他")
private BigDecimal other;
@Excel(name = "层级", width = 15)
@ApiModelProperty(value = "层级")
private String layer;
@Excel(name = "工厂", width = 15)
@ApiModelProperty(value = "工厂")
private String werks;
@Excel(name = "供应商", width = 15)
@ApiModelProperty(value = "供应商")
private String supplier;
@Excel(name = "供应商名称", width = 15)
@ApiModelProperty(value = "供应商名称")
private String supplierName;
@Excel(name = "临时合同估价", width = 15)
@ApiModelProperty(value = "临时合同估价")
private BigDecimal ekpoPrice;
@Excel(name = "最新开票价格", width = 15)
@ApiModelProperty(value = "最新开票价格")
private BigDecimal invoicePrice;
@ApiModelProperty(value = "父层级")
private String player;
}
@@ -0,0 +1,159 @@
package com.zzsmart.qomo.kn.cost.manage.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: app_scene_cost_sap_afru
* @Author: jeecg-boot
* @Date: 2024-10-15
* @Version: V1.0
*/
@Data
@TableName("app_scene_cost_sap_afru")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="app_scene_cost_sap_afru对象", description="app_scene_cost_sap_afru")
public class AppSceneCostSapAfru implements Serializable {
private static final long serialVersionUID = 1L;
/**werks*/
@Excel(name = "werks", width = 15)
@ApiModelProperty(value = "werks")
private String werks;
/**aufnr*/
@Excel(name = "aufnr", width = 15)
@ApiModelProperty(value = "aufnr")
private String aufnr;
/**mandt*/
@Excel(name = "mandt", width = 15)
@ApiModelProperty(value = "mandt")
private String mandt;
/**projn*/
@Excel(name = "projn", width = 15)
@ApiModelProperty(value = "projn")
private String projn;
/**erdat*/
@Excel(name = "erdat", width = 15)
@ApiModelProperty(value = "erdat")
private String erdat;
/**gstrp*/
@Excel(name = "gstrp", width = 15)
@ApiModelProperty(value = "gstrp")
private String gstrp;
/**gltri*/
@Excel(name = "gltri", width = 15)
@ApiModelProperty(value = "gltri")
private String gltri;
/**plnbez*/
@Excel(name = "plnbez", width = 15)
@ApiModelProperty(value = "plnbez")
private String plnbez;
/**auart*/
@Excel(name = "auart", width = 15)
@ApiModelProperty(value = "auart")
private String auart;
/**txt*/
@Excel(name = "txt", width = 15)
@ApiModelProperty(value = "txt")
private String txt;
/**vornr*/
@Excel(name = "vornr", width = 15)
@ApiModelProperty(value = "vornr")
private String vornr;
/**aufpl*/
@Excel(name = "aufpl", width = 15)
@ApiModelProperty(value = "aufpl")
private String aufpl;
/**rueck*/
@Excel(name = "rueck", width = 15)
@ApiModelProperty(value = "rueck")
private String rueck;
/**ltxa1*/
@Excel(name = "ltxa1", width = 15)
@ApiModelProperty(value = "ltxa1")
private String ltxa1;
/**kostl*/
@Excel(name = "kostl", width = 15)
@ApiModelProperty(value = "kostl")
private String kostl;
/**budat*/
@Excel(name = "budat", width = 15)
@ApiModelProperty(value = "budat")
private String budat;
/**ism01*/
@Excel(name = "ism01", width = 15)
@ApiModelProperty(value = "ism01")
private BigDecimal ism01;
/**ism02*/
@Excel(name = "ism02", width = 15)
@ApiModelProperty(value = "ism02")
private BigDecimal ism02;
/**ism03*/
@Excel(name = "ism03", width = 15)
@ApiModelProperty(value = "ism03")
private BigDecimal ism03;
/**ism04*/
@Excel(name = "ism04", width = 15)
@ApiModelProperty(value = "ism04")
private BigDecimal ism04;
/**ism05*/
@Excel(name = "ism05", width = 15)
@ApiModelProperty(value = "ism05")
private BigDecimal ism05;
/**ism06*/
@Excel(name = "ism06", width = 15)
@ApiModelProperty(value = "ism06")
private BigDecimal ism06;
/**isdd*/
@Excel(name = "isdd", width = 15)
@ApiModelProperty(value = "isdd")
private String isdd;
/**isdz*/
@Excel(name = "isdz", width = 15)
@ApiModelProperty(value = "isdz")
private String isdz;
/**iedd*/
@Excel(name = "iedd", width = 15)
@ApiModelProperty(value = "iedd")
private String iedd;
/**iedz*/
@Excel(name = "iedz", width = 15)
@ApiModelProperty(value = "iedz")
private String iedz;
/**lmnga*/
@Excel(name = "lmnga", width = 15)
@ApiModelProperty(value = "lmnga")
private BigDecimal lmnga;
/**rmnga*/
@Excel(name = "rmnga", width = 15)
@ApiModelProperty(value = "rmnga")
private BigDecimal rmnga;
/**xmnga*/
@Excel(name = "xmnga", width = 15)
@ApiModelProperty(value = "xmnga")
private BigDecimal xmnga;
/**gamng*/
@Excel(name = "gamng", width = 15)
@ApiModelProperty(value = "gamng")
private BigDecimal gamng;
/**ym*/
@Excel(name = "ym", width = 15)
@ApiModelProperty(value = "ym")
private String ym;
}
@@ -0,0 +1,115 @@
package com.zzsmart.qomo.kn.cost.manage.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: app_scene_cost_sap_eine
* @Author: jeecg-boot
* @Date: 2024-09-21
* @Version: V1.0
*/
@Data
@TableName("app_scene_cost_sap_eine")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="app_scene_cost_sap_eine对象", description="app_scene_cost_sap_eine")
public class AppSceneCostSapEine implements Serializable {
private static final long serialVersionUID = 1L;
/**客户端*/
@Excel(name = "客户端", width = 15)
@ApiModelProperty(value = "客户端")
private String mandt;
/**工厂*/
@Excel(name = "工厂", width = 15)
@ApiModelProperty(value = "工厂")
private String werks;
/**采购组织*/
@Excel(name = "采购组织", width = 15)
@ApiModelProperty(value = "采购组织")
private String ekorg;
/**采购信息记录分类*/
@Excel(name = "采购信息记录分类", width = 15)
@ApiModelProperty(value = "采购信息记录分类")
private String esokz;
/**采购信息记录中的净价*/
@Excel(name = "采购信息记录中的净价", width = 15)
@ApiModelProperty(value = "采购信息记录中的净价")
private BigDecimal netpr;
/**价格单位*/
@Excel(name = "价格单位", width = 15)
@ApiModelProperty(value = "价格单位")
private BigDecimal peinh;
/**货币码*/
@Excel(name = "货币码", width = 15)
@ApiModelProperty(value = "货币码")
private String waers;
/**价格有效至*/
@Excel(name = "价格有效至", width = 15)
@ApiModelProperty(value = "价格有效至")
private String prdat;
/**记录的创建日期*/
@Excel(name = "记录的创建日期", width = 15)
@ApiModelProperty(value = "记录的创建日期")
private String erdat;
/**采购信息: 组织数据标记为删除*/
@Excel(name = "采购信息: 组织数据标记为删除", width = 15)
@ApiModelProperty(value = "采购信息: 组织数据标记为删除")
private String loekz;
/**采购信息记录的编号*/
@Excel(name = "采购信息记录的编号", width = 15)
@ApiModelProperty(value = "采购信息记录的编号")
private String infnr;
/**单价*/
@Excel(name = "单价", width = 15)
@ApiModelProperty(value = "单价")
private BigDecimal price;
/**汇率*/
@Excel(name = "汇率", width = 15)
@ApiModelProperty(value = "汇率")
private BigDecimal ukurs;
/**人民币价格*/
@Excel(name = "人民币价格", width = 15)
@ApiModelProperty(value = "人民币价格")
private BigDecimal cnyPrice;
/**物料编号*/
@Excel(name = "物料编号", width = 15)
@ApiModelProperty(value = "物料编号")
private String matnr;
/**物料组*/
@Excel(name = "物料组", width = 15)
@ApiModelProperty(value = "物料组")
private String matkl;
/**采购类型*/
@Excel(name = "采购类型", width = 15)
@ApiModelProperty(value = "采购类型")
private String beskz;
/**特殊采购类*/
@Excel(name = "特殊采购类", width = 15)
@ApiModelProperty(value = "特殊采购类")
private String sobsl;
/**供应商编码*/
@Excel(name = "供应商编码", width = 15)
@ApiModelProperty(value = "供应商编码")
private String lifnr;
/**供应商名称*/
@Excel(name = "供应商名称", width = 15)
@ApiModelProperty(value = "供应商名称")
private String name1;
}
@@ -0,0 +1,95 @@
package com.zzsmart.qomo.kn.cost.manage.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: app_scene_cost_sap_ekpo
* @Author: jeecg-boot
* @Date: 2024-09-22
* @Version: V1.0
*/
@Data
@TableName("app_scene_cost_sap_ekpo")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="app_scene_cost_sap_ekpo对象", description="app_scene_cost_sap_ekpo")
public class AppSceneCostSapEkpo implements Serializable {
private static final long serialVersionUID = 1L;
/**ebeln*/
@Excel(name = "ebeln", width = 15)
@ApiModelProperty(value = "ebeln")
private String ebeln;
/**ekorg*/
@Excel(name = "ekorg", width = 15)
@ApiModelProperty(value = "ekorg")
private String ekorg;
/**bukrs*/
@Excel(name = "bukrs", width = 15)
@ApiModelProperty(value = "bukrs")
private String bukrs;
/**ebelp*/
@Excel(name = "ebelp", width = 15)
@ApiModelProperty(value = "ebelp")
private String ebelp;
/**matnr*/
@Excel(name = "matnr", width = 15)
@ApiModelProperty(value = "matnr")
private String matnr;
/**werks*/
@Excel(name = "werks", width = 15)
@ApiModelProperty(value = "werks")
private String werks;
/**waers*/
@Excel(name = "waers", width = 15)
@ApiModelProperty(value = "waers")
private String waers;
/**netpr*/
@Excel(name = "netpr", width = 15)
@ApiModelProperty(value = "netpr")
private BigDecimal netpr;
/**kdatb*/
@Excel(name = "kdatb", width = 15)
@ApiModelProperty(value = "kdatb")
private String kdatb;
/**kdate*/
@Excel(name = "kdate", width = 15)
@ApiModelProperty(value = "kdate")
private String kdate;
/**bedat*/
@Excel(name = "bedat", width = 15)
@ApiModelProperty(value = "bedat")
private String bedat;
/**peinh*/
@Excel(name = "peinh", width = 15)
@ApiModelProperty(value = "peinh")
private BigDecimal peinh;
/**pstyp*/
@Excel(name = "pstyp", width = 15)
@ApiModelProperty(value = "pstyp")
private String pstyp;
/**relst*/
@Excel(name = "relst", width = 15)
@ApiModelProperty(value = "relst")
private String relst;
/**loekz*/
@Excel(name = "loekz", width = 15)
@ApiModelProperty(value = "loekz")
private String loekz;
}
@@ -0,0 +1,67 @@
package com.zzsmart.qomo.kn.cost.manage.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: app_scene_cost_sap_hour_rate
* @Author: jeecg-boot
* @Date: 2024-10-15
* @Version: V1.0
*/
@Data
@TableName("app_scene_cost_sap_hour_rate")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="app_scene_cost_sap_hour_rate对象", description="app_scene_cost_sap_hour_rate")
public class AppSceneCostSapHourRate implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private Integer id;
/**年月*/
@Excel(name = "年月", width = 15)
@ApiModelProperty(value = "年月")
private String ym;
/**成本中心代码*/
@Excel(name = "成本中心代码", width = 15)
@ApiModelProperty(value = "成本中心代码")
private String centerCode;
/**人工小时费率*/
@Excel(name = "人工小时费率", width = 15)
@ApiModelProperty(value = "人工小时费率")
private BigDecimal rgfv;
/**设备小时费率*/
@Excel(name = "设备小时费率", width = 15)
@ApiModelProperty(value = "设备小时费率")
private BigDecimal sbfv;
/**燃动小时费率*/
@Excel(name = "燃动小时费率", width = 15)
@ApiModelProperty(value = "燃动小时费率")
private BigDecimal rdfv;
/**辅料小时费率*/
@Excel(name = "辅料小时费率", width = 15)
@ApiModelProperty(value = "辅料小时费率")
private BigDecimal flfv;
/**其他小时费率*/
@Excel(name = "其他小时费率", width = 15)
@ApiModelProperty(value = "其他小时费率")
private BigDecimal qtfv;
}
@@ -0,0 +1,311 @@
package com.zzsmart.qomo.kn.cost.manage.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: app_scene_cost_sap_zcorc
* @Author: jeecg-boot
* @Date: 2024-10-15
* @Version: V1.0
*/
@Data
@TableName("app_scene_cost_sap_zcorc")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="app_scene_cost_sap_zcorc对象", description="app_scene_cost_sap_zcorc")
public class AppSceneCostSapZcorc implements Serializable {
private static final long serialVersionUID = 1L;
/**ymonth*/
@Excel(name = "会计期间", width = 15)
@ApiModelProperty(value = "ymonth")
private String ymonth;
/**layer*/
@Excel(name = "层级", width = 15)
@ApiModelProperty(value = "layer")
private String layer;
/**rlayer*/
@Excel(name = "参考节点", width = 15)
@ApiModelProperty(value = "rlayer")
private String rlayer;
/**werks*/
@Excel(name = "工厂", width = 15)
@ApiModelProperty(value = "werks")
private String werks;
/**matnr*/
@Excel(name = "物料", width = 15)
@ApiModelProperty(value = "matnr")
private String matnr;
/**psPspPnr*/
//@Excel(name = "psPspPnr", width = 15)
@ApiModelProperty(value = "psPspPnr")
private String psPspPnr;
/**aufnr*/
@Excel(name = "订单", width = 15)
@ApiModelProperty(value = "aufnr")
private String aufnr;
/**ppsmng*/
@Excel(name = "订单数量", width = 15)
@ApiModelProperty(value = "ppsmng")
private BigDecimal ppsmng;
/**rpsmng*/
//@Excel(name = "rpsmng", width = 15)
@ApiModelProperty(value = "rpsmng")
private BigDecimal rpsmng;
/**ebeln*/
@Excel(name = "采购凭证", width = 15)
@ApiModelProperty(value = "ebeln")
private String ebeln;
/**ebelp*/
@Excel(name = "项目", width = 15)
@ApiModelProperty(value = "ebelp")
private String ebelp;
/**psmng*/
//@Excel(name = "psmng", width = 15)
@ApiModelProperty(value = "psmng")
private BigDecimal psmng;
/**idnrk*/
@Excel(name = "组件", width = 15)
@ApiModelProperty(value = "idnrk")
private String idnrk;
/**kmonth*/
@Excel(name = "月", width = 15)
@ApiModelProperty(value = "kmonth")
private String kmonth;
/**menge*/
@Excel(name = "数量", width = 15)
@ApiModelProperty(value = "menge")
private BigDecimal menge;
/**unmng*/
@Excel(name = "单位数量", width = 15)
@ApiModelProperty(value = "unmng")
private BigDecimal unmng;
/**kst001*/
@Excel(name = "材料", width = 15)
@ApiModelProperty(value = "kst001")
private BigDecimal kst001;
/**kst003*/
@Excel(name = "人工费用", width = 15)
@ApiModelProperty(value = "kst003")
private BigDecimal kst003;
/**kst005*/
@Excel(name = "制造费用", width = 15)
@ApiModelProperty(value = "kst005")
private BigDecimal kst005;
/**kstsum*/
@Excel(name = "单位实际成本", width = 15)
@ApiModelProperty(value = "kstsum")
private BigDecimal kstsum;
/**RKST001+ RKST003*/
@Excel(name = "实际材料", width = 15)
@ApiModelProperty(value = "实际材料")
private BigDecimal rkst000;
/**rkst100*/
@Excel(name = "rkst100", width = 15)
@ApiModelProperty(value = "rkst100")
private BigDecimal rkst100;
/**rkst001*/
@Excel(name = "rkst001", width = 15)
@ApiModelProperty(value = "rkst001")
private BigDecimal rkst001;
/**rkst003*/
@Excel(name = "rkst003", width = 15)
@ApiModelProperty(value = "rkst003")
private BigDecimal rkst003;
/**rkstlabor*/
@Excel(name = "rkstlabor", width = 15)
@ApiModelProperty(value = "rkstlabor")
private BigDecimal rkstlabor;
/**rkst0051*/
@Excel(name = "rkst0051", width = 15)
@ApiModelProperty(value = "rkst0051")
private BigDecimal rkst0051;
/**rkst301*/
@Excel(name = "rkst301", width = 15)
@ApiModelProperty(value = "rkst301")
private BigDecimal rkst301;
/**rkst302*/
@Excel(name = "rkst302", width = 15)
@ApiModelProperty(value = "rkst302")
private BigDecimal rkst302;
/**rkst303*/
@Excel(name = "rkst303", width = 15)
@ApiModelProperty(value = "rkst303")
private BigDecimal rkst303;
/**rkst304*/
@Excel(name = "rkst304", width = 15)
@ApiModelProperty(value = "rkst304")
private BigDecimal rkst304;
/**bfmenge*/
@Excel(name = "bfmenge", width = 15)
@ApiModelProperty(value = "bfmenge")
private BigDecimal bfmenge;
/**rkstwft*/
@Excel(name = "rkstwft", width = 15)
@ApiModelProperty(value = "rkstwft")
private BigDecimal rkstwft;
/**rkstwft001*/
@Excel(name = "rkstwft001", width = 15)
@ApiModelProperty(value = "rkstwft001")
private BigDecimal rkstwft001;
/**rkstwft003*/
@Excel(name = "rkstwft003", width = 15)
@ApiModelProperty(value = "rkstwft003")
private BigDecimal rkstwft003;
/**rkstwft0051*/
@Excel(name = "rkstwft0051", width = 15)
@ApiModelProperty(value = "rkstwft0051")
private BigDecimal rkstwft0051;
/**rkstwfp*/
@Excel(name = "rkstwfp", width = 15)
@ApiModelProperty(value = "rkstwfp")
private BigDecimal rkstwfp;
/**rkstzfi032*/
@Excel(name = "rkstzfi032", width = 15)
@ApiModelProperty(value = "rkstzfi032")
private BigDecimal rkstzfi032;
/**hrkft*/
@Excel(name = "hrkft", width = 15)
@ApiModelProperty(value = "hrkft")
private String hrkft;
/**rkst101*/
@Excel(name = "rkst101", width = 15)
@ApiModelProperty(value = "rkst101")
private BigDecimal rkst101;
/**posid*/
//@Excel(name = "posid", width = 15)
@ApiModelProperty(value = "posid")
private String posid;
/**version*/
//@Excel(name = "version", width = 15)
@ApiModelProperty(value = "version")
private String version;
/**auart*/
//@Excel(name = "auart", width = 15)
@ApiModelProperty(value = "auart")
private String auart;
/**maktx*/
@Excel(name = "物料描述", width = 15)
@ApiModelProperty(value = "maktx")
private String maktx;
/**ckm3*/
//@Excel(name = "ckm3", width = 15)
@ApiModelProperty(value = "ckm3")
private BigDecimal ckm3;
/**id*/
@TableId(type = IdType.AUTO)
@ApiModelProperty(value = "id")
private Integer id;
/**player*/
@Excel(name = "父层级", width = 15)
@ApiModelProperty(value = "player")
private String player;
/**level*/
//@Excel(name = "level", width = 15)
@ApiModelProperty(value = "level")
private Integer level;
/**ckm3*/
//@Excel(name = "aufnrtotal", width = 15)
@ApiModelProperty(value = "aufnrtotal")
private BigDecimal aufnrtotal;
/**ckm3*/
@Excel(name = "订单数量", width = 15)
@ApiModelProperty(value = "aufnrmng")
private BigDecimal aufnrmng;
@Excel(name = "领用数量", width = 15)
@ApiModelProperty(value = "aufnrmenge")
private BigDecimal aufnrmenge;
@Excel(name = "领用数量", width = 15)
@ApiModelProperty(value = "aufnrnum")
private BigDecimal aufnrnum;
/**ckm3*/
@Excel(name = "加权平均数量", width = 15)
@ApiModelProperty(value = "matnrnum")
private BigDecimal matnrnum;
/**ckm3*/
@Excel(name = "基于成品的结构用量", width = 15)
@ApiModelProperty(value = "pnum")
private BigDecimal pnum;
@Excel(name = "加权平均用量", width = 15)
@ApiModelProperty(value = "avgnum")
private BigDecimal avgnum;
//@Excel(name = "备注", width = 15)
@ApiModelProperty(value = "totalnum")
private BigDecimal totalnum;
@Excel(name = "领用成本", width = 15,type = 4,numFormat = "0.0000")
@ApiModelProperty(value = "avgprice")
private BigDecimal avgprice;
@Excel(name = "加权平均单位成本", width = 15,type = 4,numFormat = "0.0000")
@ApiModelProperty(value = "totalprice")
private BigDecimal totalprice;
@Excel(name = "人工工时", width = 15)
@ApiModelProperty(value = "rggs")
private BigDecimal rggs;
@Excel(name = "加权平均单位成本", width = 15)
@ApiModelProperty(value = "rgfv")
private BigDecimal rgfv;
@Excel(name = "设备工时", width = 15)
@ApiModelProperty(value = "sbgs")
private BigDecimal sbgs;
@Excel(name = "设备费率", width = 15)
@ApiModelProperty(value = "sbfv")
private BigDecimal sbfv;
@Excel(name = "辅料工时", width = 15)
@ApiModelProperty(value = "flgs")
private BigDecimal flgs;
@Excel(name = "辅料费率", width = 15)
@ApiModelProperty(value = "flfv")
private BigDecimal flfv;
@Excel(name = "燃动工时", width = 15)
@ApiModelProperty(value = "rdgs")
private BigDecimal rdgs;
@Excel(name = "燃动费率", width = 15)
@ApiModelProperty(value = "rdfv")
private BigDecimal rdfv;
@Excel(name = "其他工时", width = 15)
@ApiModelProperty(value = "qtgs")
private BigDecimal qtgs;
@Excel(name = "其他费率", width = 15)
@ApiModelProperty(value = "qtfv")
private BigDecimal qtfv;
/**ckm3*/
@Excel(name = "备注", width = 15)
@ApiModelProperty(value = "content")
private String content;
}
@@ -0,0 +1,307 @@
package com.zzsmart.qomo.kn.cost.manage.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: app_scene_cost_sap_ztmmx004
* @Author: jeecg-boot
* @Date: 2024-10-17
* @Version: V1.0
*/
@Data
@TableName("app_scene_cost_sap_ztmmx004")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="app_scene_cost_sap_ztmmx004对象", description="app_scene_cost_sap_ztmmx004")
public class AppSceneCostSapZtmmx004 implements Serializable {
private static final long serialVersionUID = 1L;
/**mandt*/
@Excel(name = "mandt", width = 15)
@ApiModelProperty(value = "mandt")
private String mandt;
/**zjkyld*/
@Excel(name = "zjkyld", width = 15)
@ApiModelProperty(value = "zjkyld")
private String zjkyld;
/**zjkhxm*/
@Excel(name = "zjkhxm", width = 15)
@ApiModelProperty(value = "zjkhxm")
private String zjkhxm;
/**zyllx*/
@Excel(name = "zyllx", width = 15)
@ApiModelProperty(value = "zyllx")
private String zyllx;
/**rsnum*/
@Excel(name = "rsnum", width = 15)
@ApiModelProperty(value = "rsnum")
private String rsnum;
/**rspos*/
@Excel(name = "rspos", width = 15)
@ApiModelProperty(value = "rspos")
private String rspos;
/**matnr*/
@Excel(name = "matnr", width = 15)
@ApiModelProperty(value = "matnr")
private String matnr;
/**werks*/
@Excel(name = "werks", width = 15)
@ApiModelProperty(value = "werks")
private String werks;
/**lgort*/
@Excel(name = "lgort", width = 15)
@ApiModelProperty(value = "lgort")
private String lgort;
/**charg*/
@Excel(name = "charg", width = 15)
@ApiModelProperty(value = "charg")
private String charg;
/**meins*/
@Excel(name = "meins", width = 15)
@ApiModelProperty(value = "meins")
private String meins;
/**bdmng*/
@Excel(name = "bdmng", width = 15)
@ApiModelProperty(value = "bdmng")
private BigDecimal bdmng;
/**enmng*/
@Excel(name = "enmng", width = 15)
@ApiModelProperty(value = "enmng")
private BigDecimal enmng;
/**rsdat*/
@Excel(name = "rsdat", width = 15)
@ApiModelProperty(value = "rsdat")
private String rsdat;
/**bdter*/
@Excel(name = "bdter", width = 15)
@ApiModelProperty(value = "bdter")
private String bdter;
/**bwart*/
@Excel(name = "bwart", width = 15)
@ApiModelProperty(value = "bwart")
private String bwart;
/**sobkz*/
@Excel(name = "sobkz", width = 15)
@ApiModelProperty(value = "sobkz")
private String sobkz;
/**ebeln*/
@Excel(name = "ebeln", width = 15)
@ApiModelProperty(value = "ebeln")
private String ebeln;
/**ebelp*/
@Excel(name = "ebelp", width = 15)
@ApiModelProperty(value = "ebelp")
private String ebelp;
/**aufnr*/
@Excel(name = "aufnr", width = 15)
@ApiModelProperty(value = "aufnr")
private String aufnr;
/**refPosnr*/
@Excel(name = "refPosnr", width = 15)
@ApiModelProperty(value = "refPosnr")
private String refPosnr;
/**refRsnum*/
@Excel(name = "refRsnum", width = 15)
@ApiModelProperty(value = "refRsnum")
private String refRsnum;
/**refRspos*/
@Excel(name = "refRspos", width = 15)
@ApiModelProperty(value = "refRspos")
private String refRspos;
/**zzlwt*/
@Excel(name = "zzlwt", width = 15)
@ApiModelProperty(value = "zzlwt")
private String zzlwt;
/**zcfdh*/
@Excel(name = "zcfdh", width = 15)
@ApiModelProperty(value = "zcfdh")
private String zcfdh;
/**zcfyy*/
@Excel(name = "zcfyy", width = 15)
@ApiModelProperty(value = "zcfyy")
private String zcfyy;
/**kostl*/
@Excel(name = "kostl", width = 15)
@ApiModelProperty(value = "kostl")
private String kostl;
/**umwrk*/
@Excel(name = "umwrk", width = 15)
@ApiModelProperty(value = "umwrk")
private String umwrk;
/**umlgo*/
@Excel(name = "umlgo", width = 15)
@ApiModelProperty(value = "umlgo")
private String umlgo;
/**ummat*/
@Excel(name = "ummat", width = 15)
@ApiModelProperty(value = "ummat")
private String ummat;
/**umcha*/
@Excel(name = "umcha", width = 15)
@ApiModelProperty(value = "umcha")
private String umcha;
/**lifnr*/
@Excel(name = "lifnr", width = 15)
@ApiModelProperty(value = "lifnr")
private String lifnr;
/**kunnr*/
@Excel(name = "kunnr", width = 15)
@ApiModelProperty(value = "kunnr")
private String kunnr;
/**ernam*/
@Excel(name = "ernam", width = 15)
@ApiModelProperty(value = "ernam")
private String ernam;
/**erdat*/
@Excel(name = "erdat", width = 15)
@ApiModelProperty(value = "erdat")
private String erdat;
/**erzet*/
@Excel(name = "erzet", width = 15)
@ApiModelProperty(value = "erzet")
private String erzet;
/**aenam*/
@Excel(name = "aenam", width = 15)
@ApiModelProperty(value = "aenam")
private String aenam;
/**aedat*/
@Excel(name = "aedat", width = 15)
@ApiModelProperty(value = "aedat")
private String aedat;
/**aezet*/
@Excel(name = "aezet", width = 15)
@ApiModelProperty(value = "aezet")
private String aezet;
/**zconf*/
@Excel(name = "zconf", width = 15)
@ApiModelProperty(value = "zconf")
private String zconf;
/**qrnam*/
@Excel(name = "qrnam", width = 15)
@ApiModelProperty(value = "qrnam")
private String qrnam;
/**qrdat*/
@Excel(name = "qrdat", width = 15)
@ApiModelProperty(value = "qrdat")
private String qrdat;
/**qrzet*/
@Excel(name = "qrzet", width = 15)
@ApiModelProperty(value = "qrzet")
private String qrzet;
/**zsfsp*/
@Excel(name = "zsfsp", width = 15)
@ApiModelProperty(value = "zsfsp")
private String zsfsp;
/**zspzt*/
@Excel(name = "zspzt", width = 15)
@ApiModelProperty(value = "zspzt")
private String zspzt;
/**spnam*/
@Excel(name = "spnam", width = 15)
@ApiModelProperty(value = "spnam")
private String spnam;
/**spdat*/
@Excel(name = "spdat", width = 15)
@ApiModelProperty(value = "spdat")
private String spdat;
/**spzet*/
@Excel(name = "spzet", width = 15)
@ApiModelProperty(value = "spzet")
private String spzet;
/**zsfts*/
@Excel(name = "zsfts", width = 15)
@ApiModelProperty(value = "zsfts")
private String zsfts;
/**ztszt*/
@Excel(name = "ztszt", width = 15)
@ApiModelProperty(value = "ztszt")
private String ztszt;
/**zzt*/
@Excel(name = "zzt", width = 15)
@ApiModelProperty(value = "zzt")
private String zzt;
/**zjjcd*/
@Excel(name = "zjjcd", width = 15)
@ApiModelProperty(value = "zjjcd")
private String zjjcd;
/**dele*/
@Excel(name = "dele", width = 15)
@ApiModelProperty(value = "dele")
private String dele;
/**zcfsl*/
@Excel(name = "zcfsl", width = 15)
@ApiModelProperty(value = "zcfsl")
private BigDecimal zcfsl;
/**z2step*/
@Excel(name = "z2step", width = 15)
@ApiModelProperty(value = "z2step")
private String z2step;
/**zretlf*/
@Excel(name = "zretlf", width = 15)
@ApiModelProperty(value = "zretlf")
private String zretlf;
/**bdmngO*/
@Excel(name = "bdmngO", width = 15)
@ApiModelProperty(value = "bdmngO")
private BigDecimal bdmngO;
/**msgty*/
@Excel(name = "msgty", width = 15)
@ApiModelProperty(value = "msgty")
private String msgty;
/**msg*/
@Excel(name = "msg", width = 15)
@ApiModelProperty(value = "msg")
private String msg;
/**zllr*/
@Excel(name = "zllr", width = 15)
@ApiModelProperty(value = "zllr")
private String zllr;
/**zllyy*/
@Excel(name = "zllyy", width = 15)
@ApiModelProperty(value = "zllyy")
private String zllyy;
/**refRsart*/
@Excel(name = "refRsart", width = 15)
@ApiModelProperty(value = "refRsart")
private String refRsart;
/**txt40*/
@Excel(name = "txt40", width = 15)
@ApiModelProperty(value = "txt40")
private String txt40;
/**ktext*/
@Excel(name = "ktext", width = 15)
@ApiModelProperty(value = "ktext")
private String ktext;
/**nodeal*/
@Excel(name = "nodeal", width = 15)
@ApiModelProperty(value = "nodeal")
private String nodeal;
/**zyylbA09*/
@Excel(name = "zyylbA09", width = 15)
@ApiModelProperty(value = "zyylbA09")
private String zyylbA09;
/**zyylbA10*/
@Excel(name = "zyylbA10", width = 15)
@ApiModelProperty(value = "zyylbA10")
private String zyylbA10;
/**zzrbm*/
@Excel(name = "zzrbm", width = 15)
@ApiModelProperty(value = "zzrbm")
private String zzrbm;
}
@@ -0,0 +1,89 @@
package com.zzsmart.qomo.kn.cost.manage.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Builder;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: app_scene_cost_standard_bom
* @Author: jeecg-boot
* @Date: 2024-10-15
* @Version: V1.0
*/
@Data
@Builder
@TableName("app_scene_cost_standard_bom")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="app_scene_cost_standard_bom对象", description="app_scene_cost_standard_bom")
public class AppSceneCostStandardBom implements Serializable {
private static final long serialVersionUID = 1L;
/**matnr*/
@Excel(name = "matnr", width = 15)
@ApiModelProperty(value = "matnr")
private String matnr;
/**versionNumber*/
@Excel(name = "versionNumber", width = 15)
@ApiModelProperty(value = "versionNumber")
private String versionNumber;
/**posnr*/
@Excel(name = "posnr", width = 15)
@ApiModelProperty(value = "posnr")
private String posnr;
/**werks*/
@Excel(name = "werks", width = 15)
@ApiModelProperty(value = "werks")
private String werks;
/**bmeng*/
@Excel(name = "bmeng", width = 15)
@ApiModelProperty(value = "bmeng")
private BigDecimal bmeng;
/**idnrk*/
@Excel(name = "idnrk", width = 15)
@ApiModelProperty(value = "idnrk")
private String idnrk;
/**menge*/
@Excel(name = "menge", width = 15)
@ApiModelProperty(value = "menge")
private BigDecimal menge;
/**oldMaterialGroup*/
@Excel(name = "oldMaterialGroup", width = 15)
@ApiModelProperty(value = "oldMaterialGroup")
private String oldMaterialGroup;
/**manufacturingType*/
@Excel(name = "manufacturingType", width = 15)
@ApiModelProperty(value = "manufacturingType")
private String manufacturingType;
/**sobsl*/
@Excel(name = "sobsl", width = 15)
@ApiModelProperty(value = "sobsl")
private String sobsl;
/**batch*/
@Excel(name = "batch", width = 15)
@ApiModelProperty(value = "batch")
private BigDecimal batch;
/**productName*/
@Excel(name = "productName", width = 15)
@ApiModelProperty(value = "productName")
private String productName;
/**materialType*/
@Excel(name = "materialType", width = 15)
@ApiModelProperty(value = "materialType")
private String materialType;
}
@@ -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;
}
@@ -0,0 +1,117 @@
package com.zzsmart.qomo.kn.cost.manage.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Builder;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: app_scene_cost_standard_productprocess
* @Author: jeecg-boot
* @Date: 2024-10-15
* @Version: V1.0
*/
@Data
@Builder
@TableName("app_scene_cost_standard_productprocess")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="app_scene_cost_standard_productprocess对象", description="app_scene_cost_standard_productprocess")
public class AppSceneCostStandardProductprocess implements Serializable {
private static final long serialVersionUID = 1L;
/**id*/
@TableId(type = IdType.AUTO)
@ApiModelProperty(value = "id")
private Integer id;
/**factory*/
@Excel(name = "factory", width = 15)
@ApiModelProperty(value = "factory")
private String factory;
/**mainPartNumber*/
@Excel(name = "mainPartNumber", width = 15)
@ApiModelProperty(value = "mainPartNumber")
private String mainPartNumber;
/**processRouteNumber*/
@Excel(name = "processRouteNumber", width = 15)
@ApiModelProperty(value = "processRouteNumber")
private String processRouteNumber;
/**serialNumber*/
@Excel(name = "serialNumber", width = 15)
@ApiModelProperty(value = "serialNumber")
private String serialNumber;
/**processName*/
@Excel(name = "processName", width = 15)
@ApiModelProperty(value = "processName")
private String processName;
/**costCenterCode*/
@Excel(name = "costCenterCode", width = 15)
@ApiModelProperty(value = "costCenterCode")
private String costCenterCode;
/**prepareHour*/
@Excel(name = "prepareHour", width = 15)
@ApiModelProperty(value = "prepareHour")
private BigDecimal prepareHour;
/**laborHour*/
@Excel(name = "laborHour", width = 15)
@ApiModelProperty(value = "laborHour")
private BigDecimal laborHour;
/**machineHour*/
@Excel(name = "machineHour", width = 15)
@ApiModelProperty(value = "machineHour")
private BigDecimal machineHour;
/**burningHour*/
@Excel(name = "burningHour", width = 15)
@ApiModelProperty(value = "burningHour")
private BigDecimal burningHour;
/**auxiliaryHour*/
@Excel(name = "auxiliaryHour", width = 15)
@ApiModelProperty(value = "auxiliaryHour")
private BigDecimal auxiliaryHour;
/**otherHour*/
@Excel(name = "otherHour", width = 15)
@ApiModelProperty(value = "otherHour")
private BigDecimal otherHour;
/**versionNumber*/
@Excel(name = "versionNumber", width = 15)
@ApiModelProperty(value = "versionNumber")
private String versionNumber;
/**jobCode*/
@Excel(name = "jobCode", width = 15)
@ApiModelProperty(value = "jobCode")
private String jobCode;
/**laborHourRate*/
@Excel(name = "laborHourRate", width = 15)
@ApiModelProperty(value = "laborHourRate")
private BigDecimal laborHourRate;
/**equipHourRate*/
@Excel(name = "equipHourRate", width = 15)
@ApiModelProperty(value = "equipHourRate")
private BigDecimal equipHourRate;
/**fuelHourRate*/
@Excel(name = "fuelHourRate", width = 15)
@ApiModelProperty(value = "fuelHourRate")
private BigDecimal fuelHourRate;
/**auxiliaryHourRate*/
@Excel(name = "auxiliaryHourRate", width = 15)
@ApiModelProperty(value = "auxiliaryHourRate")
private BigDecimal auxiliaryHourRate;
/**otherHourRate*/
@Excel(name = "otherHourRate", width = 15)
@ApiModelProperty(value = "otherHourRate")
private BigDecimal otherHourRate;
}
@@ -0,0 +1,249 @@
package com.zzsmart.qomo.kn.cost.manage.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
//import javax.persistence.Column;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* @Description: app_scene_cost_standard_result
* @Author: jeecg-boot
* @Date: 2024-09-17
* @Version: V1.0
*/
@Data
@Builder
@TableName("app_scene_cost_standard_result")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="app_scene_cost_standard_result对象", description="app_scene_cost_standard_result")
public class AppSceneCostStandardResult implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.AUTO)
@ApiModelProperty(value = "主键")
private java.lang.Long id;
/**会计期间*/
@Excel(name = "会计期间", width = 15)
@ApiModelProperty(value = "会计期间")
private java.lang.String ymonth;
/**版本号*/
@Excel(name = "版本号", width = 15)
@ApiModelProperty(value = "版本号")
private java.lang.String versionNumber;
/**阶段*/
@Excel(name = "阶段", width = 15)
@ApiModelProperty(value = "阶段")
private java.lang.String stage;
/**工厂*/
@Excel(name = "工厂", width = 15)
@ApiModelProperty(value = "工厂")
private java.lang.String factory;
/**父物料号*/
@Excel(name = "父物料号", width = 15)
@ApiModelProperty(value = "父物料号")
private java.lang.String parentMatnr;
/**低阶码*/
@Excel(name = "层级", width = 15)
@ApiModelProperty(value = "层级")
private java.lang.String lowOrderCode;
/**层级*/
@Excel(name = "展开层", width = 15)
@ApiModelProperty(value = "展开层")
private java.lang.String layer;
/**层级*/
//@Excel(name = "展开层", width = 15)
@ApiModelProperty(value = "父展开层")
private java.lang.String player;
/**物料号*/
@Excel(name = "子物料号", width = 15)
@ApiModelProperty(value = "子物料号")
private java.lang.String materialNumber;
/**物料描述*/
@Excel(name = "物料描述", width = 20)
@ApiModelProperty(value = "子物料描述")
private java.lang.String maktx;
/**数量*/
@Excel(name = "数量", width = 15,type = 4)
@ApiModelProperty(value = "数量")
private java.math.BigDecimal menge;
/**数量*/
@Excel(name = "采购类型", width = 15)
@ApiModelProperty(value = "采购类型")
private java.lang.String manuType;
/**本阶设备成本*/
@Excel(name = "机器工时", width = 15,type = 4)
@ApiModelProperty(value = "机器工时")
private java.math.BigDecimal equipHour;
/**本阶人工成本*/
@Excel(name = "人工工时", width = 15,type = 4)
@ApiModelProperty(value = "人工工时")
private java.math.BigDecimal laborHour;
/**本阶燃动成本*/
@Excel(name = "燃动力工时", width = 15,type = 4)
@ApiModelProperty(value = "燃动力工时")
private java.math.BigDecimal fuelHour;
/**本阶辅料成本*/
@Excel(name = "辅料工时", width = 15,type = 4)
@ApiModelProperty(value = "辅料工时")
private java.math.BigDecimal auxiHour;
/**本阶其他成本*/
@Excel(name = "其他制费工时", width = 15,type = 4)
@ApiModelProperty(value = "其他制费工时")
private java.math.BigDecimal otherHour;
/**总其他成本*/
@Excel(name = "供应商", width = 20)
@ApiModelProperty(value = "供应商")
private String supplier;
/**总其他成本*/
@Excel(name = "供应商描述", width = 20)
@ApiModelProperty(value = "供应商描述")
private String supplierName;
/**总其他成本*/
@Excel(name = "采购信息记录", width = 15,type = 4)
@ApiModelProperty(value = "采购信息记录")
private java.math.BigDecimal purchasePrice;
/**总其他成本*/
@Excel(name = "正式合同价格", width = 20,type = 4)
@ApiModelProperty(value = "正式合同价格")
private java.math.BigDecimal contractPrice;
/**总其他成本*/
@Excel(name = "临时合同估价", width = 20,type = 4)
@ApiModelProperty(value = "临时合同估价")
private java.math.BigDecimal tempContractPrice;
/**总其他成本*/
@Excel(name = "单位材料成本", width = 20,type = 4)
@ApiModelProperty(value = "采购价格(合计)")
private java.math.BigDecimal materialCost;
/**总人工成本*/
@Excel(name = "单位人工", width = 15,type = 4)
@ApiModelProperty(value = "总人工成本")
private java.math.BigDecimal laborCost;
/**总设备成本*/
@Excel(name = "单位折旧", width = 15,type = 4)
@ApiModelProperty(value = "总设备成本")
private java.math.BigDecimal equipCost;
/**总燃动成本*/
@Excel(name = "单位燃动力", width = 15,type = 4)
@ApiModelProperty(value = "总燃动成本")
private java.math.BigDecimal fuelCost;
/**总辅料成本*/
@Excel(name = "单位辅料", width = 15,type = 4)
@ApiModelProperty(value = "总辅料成本")
private java.math.BigDecimal auxiliaryCost;
/**总其他成本*/
@Excel(name = "单位其他费用", width = 15,type = 4)
@ApiModelProperty(value = "总其他成本")
private java.math.BigDecimal otherCost;
/**总标准成本*/
@Excel(name = "单位成本", width = 15,type = 4)
@ApiModelProperty(value = "总标准成本")
private java.math.BigDecimal standardCost;
/**本阶设备成本*/
@Excel(name = "机器工时(累积)", width = 15,type = 4)
@ApiModelProperty(value = "机器工时(累积)")
private java.math.BigDecimal equipHourTotal;
/**本阶人工成本*/
@Excel(name = "人工工时(累积)", width = 15,type = 4)
@ApiModelProperty(value = "人工工时(累积)")
private java.math.BigDecimal laborHourTotal;
/**本阶燃动成本*/
@Excel(name = "燃动力工时(累积)", width = 20,type = 4)
@ApiModelProperty(value = "燃动力工时(累积)")
private java.math.BigDecimal fuelHourTotal;
/**本阶辅料成本*/
@Excel(name = "辅料工时(累积)", width = 15,type = 4)
@ApiModelProperty(value = "辅料工时(累积)")
private java.math.BigDecimal auxiHourTotal;
/**本阶其他成本*/
@Excel(name = "其他制费工时(累积)", width = 20,type = 4)
@ApiModelProperty(value = "其他制费工时(累积)")
private java.math.BigDecimal otherHourTotal;
@Excel(name = "结构单位材料成本(累积)", width = 15,type = 4)
@ApiModelProperty(value = "总材料成本")
private java.math.BigDecimal materialCostTotal;
/**相对人工成本*/
@Excel(name = "结构单位人工(累积)", width = 15)
@ApiModelProperty(value = "相对人工成本")
private java.math.BigDecimal laborCostTotal;
/**相对制费成本*/
@Excel(name = "结构单位折旧(累积)", width = 15)
@ApiModelProperty(value = "相对制费成本")
private java.math.BigDecimal equipCostTotal;
/**相对制费成本*/
@Excel(name = "结构单位燃动力(累积)", width = 15)
@ApiModelProperty(value = "相对制费成本")
private java.math.BigDecimal fuelCostTotal;
/**相对制费成本*/
@Excel(name = "结构单位辅料(累积)", width = 15)
@ApiModelProperty(value = "相对制费成本")
private java.math.BigDecimal auxiliaryCostTotal;
/**相对制费成本*/
@Excel(name = "结构单位其他费用(累积)", width = 15)
@ApiModelProperty(value = "相对制费成本")
private java.math.BigDecimal otherCostTotal;
/**相对制费成本*/
@Excel(name = "单位总成本(累积)", width = 15)
@ApiModelProperty(value = "相对制费成本")
private java.math.BigDecimal totalStandardCost;
// /**总材料成本*/
// @Excel(name = "采购价格(合计)", width = 15,type = 4)
// @ApiModelProperty(value = "总材料成本")
// private java.math.BigDecimal materialCostTotal;
/**总其他成本*/
@Excel(name = "最新开票金额(单价)", width = 20,type = 4)
@ApiModelProperty(value = "最新开票金额(单价)")
private java.math.BigDecimal invoicePrice;
/**总其他成本*/
@Excel(name = "最新开票价格(合计)", width = 20,type = 4)
@ApiModelProperty(value = "最新开票价格(合计)")
private java.math.BigDecimal invoiceTotal;
/**总其他成本*/
@Excel(name = "开票金额合计与采购价格合计之差", width = 20,type = 4)
@ApiModelProperty(value = "开票金额合计与采购价格合计之差")
private java.math.BigDecimal invoiceDiff;
/**相对用量*/
// @Excel(name = "相对用量", width = 15)
// @ApiModelProperty(value = "相对用量")
// private java.math.BigDecimal relativeDosage;
// /**相对材料成本*/
// @Excel(name = "相对材料成本", width = 15)
// @ApiModelProperty(value = "相对材料成本")
// private java.math.BigDecimal materialCostRelative;
/**相对总成本*/
// @Excel(name = "相对总成本", width = 15)
// @ApiModelProperty(value = "相对总成本")
// private java.math.BigDecimal totalCostRelative;
/**创建时间*/
@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建时间")
private java.util.Date createdTime;
/**价格类型*/
//@Excel(name = "价格类型", width = 15)
@ApiModelProperty(value = "价格类型")
private java.lang.String pricetype;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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";
}
@@ -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";
}
@@ -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";
}
@@ -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;
}
@@ -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";
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
}
@@ -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;
}
}
@@ -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;
}
}
@@ -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;
}
}
@@ -8,39 +8,33 @@ package com.zzsmart.qomo.kn.cost.manage.enums;
* @Created wangqiong
*/
public enum StandardStageEnum {
INIT("A", "初始"),
FIRST_BATCH("B", "首批"),
MASS_PRODUCTION("C", "量产"),
;
INIT("A", "初始"), FIRST_BATCH("B", "首批"), MASS_PRODUCTION("C", "量产");
private final String code;
private final String text;
StandardStageEnum(String code, String text)
{
StandardStageEnum(String code, String text) {
this.code = code;
this.text = text;
}
public String getCode()
{
public String getCode() {
return code;
}
public String getText()
{
public String getText() {
return text;
}
/**
* 根据code获取text
*
* @param codeNo
* @return
*/
public static String getTextByCode(String codeNo){
public static String getTextByCode(String codeNo) {
for (StandardStageEnum value : StandardStageEnum.values()) {
if (value.getCode().equals(codeNo)){
if (value.getCode().equals(codeNo)) {
return value.getText();
}
}
@@ -49,12 +43,13 @@ public enum StandardStageEnum {
/**
* 根据text获取code
*
* @param textStr
* @return
*/
public static String getCodeByText(String textStr){
public static String getCodeByText(String textStr) {
for (StandardStageEnum value : StandardStageEnum.values()) {
if (value.getText().equals(textStr)){
if (value.getText().equals(textStr)) {
return value.getText();
}
}
@@ -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;
}
}
@@ -2,17 +2,17 @@ package com.zzsmart.qomo.kn.cost.manage.mapper;
import java.util.List;
import com.zzsmart.qomo.kn.cost.manage.entity.ProduceBatch;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostActual;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: produce_batch
* @Description: app_scene_cost_actual
* @Author: jeecg-boot
* @Date: 2024-06-11
* @Date: 2024-10-15
* @Version: V1.0
*/
public interface ProduceBatchMapper extends BaseMapper<ProduceBatch> {
public interface AppSceneCostActualMapper extends BaseMapper<AppSceneCostActual> {
}
@@ -0,0 +1,17 @@
package com.zzsmart.qomo.kn.cost.manage.mapper;
import java.util.List;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostAufnrMatnr;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: app_scene_cost_aufnr_matnr
* @Author: jeecg-boot
* @Date: 2024-10-05
* @Version: V1.0
*/
public interface AppSceneCostAufnrMatnrMapper extends BaseMapper<AppSceneCostAufnrMatnr> {
}
@@ -0,0 +1,39 @@
package com.zzsmart.qomo.kn.cost.manage.mapper;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostBomRelevancy;
import com.zzsmart.qomo.kn.cost.manage.vo.BomTreeVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
* @Description: app_scene_cost_bom_relevancy
* @Author: jeecg-boot
* @Date: 2024-09-08
* @Version: V1.0
*/
public interface AppSceneCostBomRelevancyMapper extends BaseMapper<AppSceneCostBomRelevancy> {
@Select("WITH RECURSIVE BOM_Tree AS (\n" +
" SELECT werks,matnr, idnrk, menge/bmeng as menge,1.000000 as pmenge,menge/bmeng as topmenge, 1 AS depth,cast( ROW_NUMBER() OVER (partition by matnr ORDER BY posnr ) AS CHAR ) AS layer,'00000000000000000000' as player \n" +
" FROM app_scene_cost_bom_relevancy\n" +
" WHERE matnr = #{parentId} and werks= #{werk}\n" +
" UNION ALL\n" +
" SELECT b.werks,b.matnr, b.idnrk, b.menge/b.bmeng as menge, BOM_Tree.menge as pmenge,BOM_Tree.topmenge*(b.menge/b.bmeng) AS topmenge,BOM_Tree.depth + 1 as depth,concat( BOM_Tree.layer, '.', b.layer ) AS layer,BOM_Tree.layer as player \n" +
" FROM ( SELECT werks,matnr, idnrk, menge, bmeng, cast( ROW_NUMBER() OVER (partition by matnr,werks ORDER BY posnr ) AS CHAR ) AS layer FROM app_scene_cost_bom_relevancy ) b\n" +
" JOIN BOM_Tree ON b.matnr = BOM_Tree.idnrk and b.werks=BOM_Tree.werks \n" +
")\n" +
"SELECT werks,matnr, idnrk, menge,pmenge,topmenge, depth,layer,player FROM BOM_Tree")
List<BomTreeVo> findChildrenByParentId(String parentId,String werk);
@Select("${selectSql}")
JSONObject customSelectOne(@Param("selectSql") String selectSql);
@Select("${SelectBlobModel}")
String customSelectBlobModelJson(@Param("SelectBlobModel") String SelectBlobModel);
}
@@ -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> {
}
@@ -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> {
}
@@ -2,17 +2,16 @@ 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.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostInvoice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: latest_purchase_price
* @Description: app_scene_cost_invoice
* @Author: jeecg-boot
* @Date: 2024-06-11
* @Date: 2024-09-22
* @Version: V1.0
*/
public interface LatestPurchasePriceMapper extends BaseMapper<LatestPurchasePrice> {
public interface AppSceneCostInvoiceMapper extends BaseMapper<AppSceneCostInvoice> {
}
@@ -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> {
}
@@ -0,0 +1,18 @@
package com.zzsmart.qomo.kn.cost.manage.mapper;
import java.util.List;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningAufnr;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: app_scene_cost_mining_aufnr
* @Author: jeecg-boot
* @Date: 2024-10-15
* @Version: V1.0
*/
public interface AppSceneCostMiningAufnrMapper extends BaseMapper<AppSceneCostMiningAufnr> {
}
@@ -0,0 +1,17 @@
package com.zzsmart.qomo.kn.cost.manage.mapper;
import java.util.List;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningDiff;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: app_scene_cost_mining_diff
* @Author: jeecg-boot
* @Date: 2024-10-15
* @Version: V1.0
*/
public interface AppSceneCostMiningDiffMapper extends BaseMapper<AppSceneCostMiningDiff> {
}
@@ -0,0 +1,17 @@
package com.zzsmart.qomo.kn.cost.manage.mapper;
import java.util.List;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningLabor;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: app_scene_cost_mining_labor
* @Author: jeecg-boot
* @Date: 2024-11-05
* @Version: V1.0
*/
public interface AppSceneCostMiningLaborMapper extends BaseMapper<AppSceneCostMiningLabor> {
}

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