初始化
This commit is contained in:
parent
3ea42901e7
commit
b5668b6f10
47
.gitignore
vendored
Normal file
47
.gitignore
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
######################################################################
|
||||
# Build Tools
|
||||
|
||||
.gradle
|
||||
/build/
|
||||
!gradle/wrapper/gradle-wrapper.jar
|
||||
|
||||
target/
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
|
||||
######################################################################
|
||||
# IDE
|
||||
|
||||
### STS ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
|
||||
### JRebel ###
|
||||
rebel.xml
|
||||
|
||||
### NetBeans ###
|
||||
nbproject/private/
|
||||
build/*
|
||||
nbbuild/
|
||||
dist/
|
||||
nbdist/
|
||||
.nb-gradle/
|
||||
|
||||
######################################################################
|
||||
# Others
|
||||
*.log
|
||||
*.xml.versionsBackup
|
||||
*.swp
|
||||
|
||||
!*/build/*.java
|
||||
!*/build/*.html
|
||||
!*/build/*.xml
|
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"java.compile.nullAnalysis.mode": "automatic"
|
||||
}
|
20
LICENSE
Normal file
20
LICENSE
Normal file
@ -0,0 +1,20 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018 RuoYi
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
12
bin/clean.bat
Normal file
12
bin/clean.bat
Normal file
@ -0,0 +1,12 @@
|
||||
@echo off
|
||||
echo.
|
||||
echo [信息] 清理工程target生成路径。
|
||||
echo.
|
||||
|
||||
%~d0
|
||||
cd %~dp0
|
||||
|
||||
cd ..
|
||||
call mvn clean
|
||||
|
||||
pause
|
12
bin/package.bat
Normal file
12
bin/package.bat
Normal file
@ -0,0 +1,12 @@
|
||||
@echo off
|
||||
echo.
|
||||
echo [信息] 打包Web工程,生成war/jar包文件。
|
||||
echo.
|
||||
|
||||
%~d0
|
||||
cd %~dp0
|
||||
|
||||
cd ..
|
||||
call mvn clean package -Dmaven.test.skip=true
|
||||
|
||||
pause
|
14
bin/run.bat
Normal file
14
bin/run.bat
Normal file
@ -0,0 +1,14 @@
|
||||
@echo off
|
||||
echo.
|
||||
echo [信息] 使用Jar命令运行Web工程。
|
||||
echo.
|
||||
|
||||
cd %~dp0
|
||||
cd ../ruoyi-admin/target
|
||||
|
||||
set JAVA_OPTS=-Xms256m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
||||
|
||||
java -jar %JAVA_OPTS% ruoyi-admin.jar
|
||||
|
||||
cd bin
|
||||
pause
|
96
carbon-admin/pom.xml
Normal file
96
carbon-admin/pom.xml
Normal file
@ -0,0 +1,96 @@
|
||||
<?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">
|
||||
<parent>
|
||||
<groupId>com.zhonghui</groupId>
|
||||
<artifactId>carbon</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>jar</packaging>
|
||||
<artifactId>carbon-admin</artifactId>
|
||||
|
||||
<description>
|
||||
web服务入口
|
||||
</description>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- spring-boot-devtools -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-devtools</artifactId>
|
||||
<optional>true</optional> <!-- 表示依赖不会传递 -->
|
||||
</dependency>
|
||||
|
||||
<!-- swagger3-->
|
||||
<dependency>
|
||||
<groupId>io.springfox</groupId>
|
||||
<artifactId>springfox-boot-starter</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
|
||||
<dependency>
|
||||
<groupId>io.swagger</groupId>
|
||||
<artifactId>swagger-models</artifactId>
|
||||
<version>1.6.2</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Mysql驱动包 -->
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 核心模块-->
|
||||
<dependency>
|
||||
<groupId>com.zhonghui</groupId>
|
||||
<artifactId>carbon-framework</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 定时任务-->
|
||||
<dependency>
|
||||
<groupId>com.zhonghui</groupId>
|
||||
<artifactId>carbon-quartz</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 代码生成-->
|
||||
<dependency>
|
||||
<groupId>com.zhonghui</groupId>
|
||||
<artifactId>carbon-generator</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<version>2.1.1.RELEASE</version>
|
||||
<configuration>
|
||||
<fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>repackage</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-war-plugin</artifactId>
|
||||
<version>3.1.0</version>
|
||||
<configuration>
|
||||
<failOnMissingWebXml>false</failOnMissingWebXml>
|
||||
<warName>${project.artifactId}</warName>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<finalName>carbon</finalName>
|
||||
</build>
|
||||
|
||||
</project>
|
@ -0,0 +1,21 @@
|
||||
package com.zhonghui;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
||||
|
||||
/**
|
||||
* 启动程序
|
||||
*
|
||||
* @author zhonghui
|
||||
*/
|
||||
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
|
||||
public class CarbonApplication
|
||||
{
|
||||
public static void main(String[] args)
|
||||
{
|
||||
// System.setProperty("spring.devtools.restart.enabled", "false");
|
||||
SpringApplication.run(CarbonApplication.class, args);
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.zhonghui;
|
||||
|
||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
||||
|
||||
/**
|
||||
* web容器中进行部署
|
||||
*
|
||||
* @author zhonghui
|
||||
*/
|
||||
public class CarbonServletInitializer extends SpringBootServletInitializer
|
||||
{
|
||||
@Override
|
||||
protected SpringApplicationBuilder configure(SpringApplicationBuilder application)
|
||||
{
|
||||
return application.sources(CarbonApplication.class);
|
||||
}
|
||||
}
|
@ -0,0 +1,325 @@
|
||||
package com.zhonghui.carbonReport.controller;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.NumberUtil;
|
||||
import cn.hutool.core.util.RandomUtil;
|
||||
import com.zhonghui.carbonReport.domain.TmpEnergyConsume;
|
||||
import com.zhonghui.carbonReport.service.ITmpEnergyConsumeService;
|
||||
import com.zhonghui.common.core.controller.BaseController;
|
||||
import com.zhonghui.common.utils.DateUtils;
|
||||
import com.zhonghui.dc.service.IDcChangedCarbonEmissionsService;
|
||||
import com.zhonghui.dc.service.IDcFixedCarbonEmissionsService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.math.RoundingMode;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
public class BaseReportController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private ITmpEnergyConsumeService tmpEnergyConsumeService;
|
||||
|
||||
@Autowired
|
||||
private IDcChangedCarbonEmissionsService dcChangedCarbonEmissionsService;
|
||||
|
||||
@Autowired
|
||||
private IDcFixedCarbonEmissionsService dcFixedCarbonEmissionsService;
|
||||
|
||||
/**
|
||||
* 模拟生产用水年数据
|
||||
*
|
||||
* @param year
|
||||
*/
|
||||
protected double mockPrdWaterConsumeByYear(String year) {
|
||||
double total = 0;
|
||||
for (int i = 1; i < 13; i++) {
|
||||
String month = i < 10 ? ("0" + i) : (i + "");
|
||||
double consume = mockPrdWaterConsumeByMonth(year + "-" + month);
|
||||
total = total + consume;
|
||||
// 只统计到本年月数据
|
||||
if (Integer.parseInt(year) == DateUtil.year(new Date()) && i == DateUtil.month(new Date())) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return total;
|
||||
}
|
||||
|
||||
/**
|
||||
* 模拟办公用水年数据
|
||||
*
|
||||
* @param year
|
||||
*/
|
||||
protected double mockOfficeWaterConsumeByYear(String year) {
|
||||
double total = 0;
|
||||
for (int i = 1; i < 13; i++) {
|
||||
String month = i < 10 ? ("0" + i) : (i + "");
|
||||
double consume = mockOfficeWaterConsumeByMonth(year + "-" + month);
|
||||
total = total + consume;
|
||||
// 只统计到本年月数据
|
||||
if (Integer.parseInt(year) == DateUtil.year(new Date()) && i == DateUtil.month(new Date())) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return total;
|
||||
}
|
||||
|
||||
/**
|
||||
* 模拟办公用电年数据
|
||||
*
|
||||
* @param year
|
||||
*/
|
||||
protected double mockOfficePowerConsumeByYear(String year) {
|
||||
double total = 0;
|
||||
for (int i = 1; i < 13; i++) {
|
||||
String month = i < 10 ? ("0" + i) : (i + "");
|
||||
double consume = mockOfficePowerConsumeByMonth(year + "-" + month);
|
||||
total = total + consume;
|
||||
// 只统计到本年月数据
|
||||
if (Integer.parseInt(year) == DateUtil.year(new Date()) && i == DateUtil.month(new Date())) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return total;
|
||||
}
|
||||
|
||||
/**
|
||||
* 模拟生产用水月数据
|
||||
*
|
||||
* @param yearMonth
|
||||
*/
|
||||
protected double mockPrdWaterConsumeByMonth(String yearMonth) {
|
||||
double total = 0;
|
||||
String fullDate = yearMonth + "-01";
|
||||
TmpEnergyConsume tmpConsume = new TmpEnergyConsume();
|
||||
tmpConsume.setMonth(yearMonth);
|
||||
tmpConsume.setCategory(2);
|
||||
tmpConsume.setType(0);
|
||||
tmpConsume.setItemCategory(3);
|
||||
List<TmpEnergyConsume> prdPwConsumeList = tmpEnergyConsumeService.selectTmpEnergyConsumeList(tmpConsume);
|
||||
if (prdPwConsumeList != null && !prdPwConsumeList.isEmpty()) {
|
||||
TmpEnergyConsume monthSavePw = prdPwConsumeList.get(0);
|
||||
total = monthSavePw.getEnergy();
|
||||
} else {
|
||||
Date first = DateUtil.beginOfMonth(DateUtils.parseDate(fullDate));
|
||||
int year = DateUtil.year(first);
|
||||
double ratio = RandomUtil.randomDouble(0.5, 1, 1, RoundingMode.FLOOR);
|
||||
double consumePw = dcFixedCarbonEmissionsService.getProductWaterConsumeByMonth();
|
||||
total = consumePw * ratio;
|
||||
// 新增一条临时生产用水量数据
|
||||
TmpEnergyConsume newTmpConsume = new TmpEnergyConsume();
|
||||
newTmpConsume.setYear(String.valueOf(year));
|
||||
newTmpConsume.setMonth(yearMonth);
|
||||
newTmpConsume.setCategory(2);
|
||||
newTmpConsume.setType(0);
|
||||
newTmpConsume.setItemCategory(3);
|
||||
newTmpConsume.setEnergy(total);
|
||||
tmpEnergyConsumeService.insertTmpEnergyConsume(newTmpConsume);
|
||||
}
|
||||
return total;
|
||||
}
|
||||
|
||||
/**
|
||||
* 模拟办公用水月数据
|
||||
*
|
||||
* @param yearMonth
|
||||
*/
|
||||
protected double mockOfficeWaterConsumeByMonth(String yearMonth) {
|
||||
double total = 0;
|
||||
String fullDate = yearMonth + "-01";
|
||||
TmpEnergyConsume tmpConsume = new TmpEnergyConsume();
|
||||
tmpConsume.setMonth(yearMonth);
|
||||
tmpConsume.setCategory(2);
|
||||
tmpConsume.setType(0);
|
||||
tmpConsume.setItemCategory(4);
|
||||
List<TmpEnergyConsume> prdPwSaveList = tmpEnergyConsumeService.selectTmpEnergyConsumeList(tmpConsume);
|
||||
if (prdPwSaveList != null && !prdPwSaveList.isEmpty()) {
|
||||
TmpEnergyConsume monthSavePw = prdPwSaveList.get(0);
|
||||
total = monthSavePw.getEnergy();
|
||||
} else {
|
||||
Date first = DateUtil.beginOfMonth(DateUtils.parseDate(fullDate));
|
||||
int year = DateUtil.year(first);
|
||||
double ratio = RandomUtil.randomDouble(0.5, 1, 1, RoundingMode.FLOOR);
|
||||
double consumePw = dcFixedCarbonEmissionsService.getOfficeWaterConsumeByMonth();
|
||||
total = consumePw * ratio;
|
||||
// 新增一条临时办公用水量数据
|
||||
TmpEnergyConsume newTmpConsume = new TmpEnergyConsume();
|
||||
newTmpConsume.setYear(String.valueOf(year));
|
||||
newTmpConsume.setMonth(yearMonth);
|
||||
newTmpConsume.setCategory(2);
|
||||
newTmpConsume.setType(0);
|
||||
newTmpConsume.setItemCategory(4);
|
||||
newTmpConsume.setEnergy(total);
|
||||
tmpEnergyConsumeService.insertTmpEnergyConsume(newTmpConsume);
|
||||
}
|
||||
return total;
|
||||
}
|
||||
|
||||
/**
|
||||
* 模拟办公用电月数据
|
||||
*
|
||||
* @param yearMonth
|
||||
*/
|
||||
protected double mockOfficePowerConsumeByMonth(String yearMonth) {
|
||||
double total = 0;
|
||||
String fullDate = yearMonth + "-01";
|
||||
TmpEnergyConsume tmpConsume = new TmpEnergyConsume();
|
||||
tmpConsume.setMonth(yearMonth);
|
||||
tmpConsume.setCategory(1);
|
||||
tmpConsume.setType(0);
|
||||
tmpConsume.setItemCategory(2);
|
||||
List<TmpEnergyConsume> prdPwSaveList = tmpEnergyConsumeService.selectTmpEnergyConsumeList(tmpConsume);
|
||||
if (prdPwSaveList != null && !prdPwSaveList.isEmpty()) {
|
||||
TmpEnergyConsume monthSavePw = prdPwSaveList.get(0);
|
||||
total = monthSavePw.getEnergy();
|
||||
} else {
|
||||
Date first = DateUtil.beginOfMonth(DateUtils.parseDate(fullDate));
|
||||
int year = DateUtil.year(first);
|
||||
double ratio = RandomUtil.randomDouble(0.5, 1, 1, RoundingMode.FLOOR);
|
||||
double consumePw = dcFixedCarbonEmissionsService.getOfficePowerConsumeByMonth();
|
||||
total = consumePw * ratio;
|
||||
// 新增一条临时办公耗电量数据
|
||||
TmpEnergyConsume newTmpConsume = new TmpEnergyConsume();
|
||||
newTmpConsume.setYear(String.valueOf(year));
|
||||
newTmpConsume.setMonth(yearMonth);
|
||||
newTmpConsume.setCategory(1);
|
||||
newTmpConsume.setType(0);
|
||||
newTmpConsume.setItemCategory(2);
|
||||
newTmpConsume.setEnergy(total);
|
||||
tmpEnergyConsumeService.insertTmpEnergyConsume(newTmpConsume);
|
||||
}
|
||||
return total;
|
||||
}
|
||||
|
||||
/**
|
||||
* 模拟生产节电月数据
|
||||
*
|
||||
* @param yearMonth
|
||||
*/
|
||||
protected double mockPrdPowerSaveByMonth(String yearMonth) {
|
||||
double total = 0;
|
||||
String fullDate = yearMonth + "-01";
|
||||
TmpEnergyConsume tmpConsume = new TmpEnergyConsume();
|
||||
tmpConsume.setMonth(yearMonth);
|
||||
tmpConsume.setCategory(1);
|
||||
tmpConsume.setType(1);
|
||||
tmpConsume.setItemCategory(3);
|
||||
List<TmpEnergyConsume> prdPwSaveList = tmpEnergyConsumeService.selectTmpEnergyConsumeList(tmpConsume);
|
||||
if (prdPwSaveList != null && !prdPwSaveList.isEmpty()) {
|
||||
TmpEnergyConsume monthSavePw = prdPwSaveList.get(0);
|
||||
total = monthSavePw.getEnergy();
|
||||
} else {
|
||||
Date first = DateUtil.beginOfMonth(DateUtils.parseDate(fullDate));
|
||||
Date last = DateUtil.endOfMonth(DateUtils.parseDate(fullDate));
|
||||
int year = DateUtil.year(first);
|
||||
long days = DateUtil.betweenDay(first, last, true) + 1;
|
||||
double ratio = RandomUtil.randomDouble(0.5, 1, 1, RoundingMode.FLOOR);
|
||||
double savePw = dcChangedCarbonEmissionsService.getProductPowerSaveAmount((int) days);
|
||||
total = savePw * ratio;
|
||||
// 新增一条临时生产节电量数据
|
||||
TmpEnergyConsume newTmpConsume = new TmpEnergyConsume();
|
||||
newTmpConsume.setYear(String.valueOf(year));
|
||||
newTmpConsume.setMonth(yearMonth);
|
||||
newTmpConsume.setCategory(1);
|
||||
newTmpConsume.setType(1);
|
||||
newTmpConsume.setItemCategory(3);
|
||||
newTmpConsume.setEnergy(total);
|
||||
tmpEnergyConsumeService.insertTmpEnergyConsume(newTmpConsume);
|
||||
}
|
||||
return total;
|
||||
}
|
||||
|
||||
/**
|
||||
* 模拟办公节电月数据
|
||||
*
|
||||
* @param yearMonth
|
||||
*/
|
||||
protected double mockOfficePowerSaveByMonth(String yearMonth) {
|
||||
double total = 0;
|
||||
String fullDate = yearMonth + "-01";
|
||||
TmpEnergyConsume tmpConsume = new TmpEnergyConsume();
|
||||
tmpConsume.setMonth(yearMonth);
|
||||
tmpConsume.setCategory(1);
|
||||
tmpConsume.setType(1);
|
||||
tmpConsume.setItemCategory(4);
|
||||
List<TmpEnergyConsume> officePwSaveList = tmpEnergyConsumeService.selectTmpEnergyConsumeList(tmpConsume);
|
||||
if (officePwSaveList != null && !officePwSaveList.isEmpty()) {
|
||||
TmpEnergyConsume monthSavePw = officePwSaveList.get(0);
|
||||
total = monthSavePw.getEnergy();
|
||||
} else {
|
||||
Date first = DateUtil.beginOfMonth(DateUtils.parseDate(fullDate));
|
||||
Date last = DateUtil.endOfMonth(DateUtils.parseDate(fullDate));
|
||||
int year = DateUtil.year(first);
|
||||
long days = DateUtil.betweenDay(first, last, true) + 1;
|
||||
double savePw = dcChangedCarbonEmissionsService.getOfficePowerSaveAmount((int) days);
|
||||
double ratio = RandomUtil.randomDouble(0.5, 1, 1, RoundingMode.FLOOR);
|
||||
total = savePw * ratio;
|
||||
// 新增一条临时办公节电量数据
|
||||
TmpEnergyConsume newTmpConsume = new TmpEnergyConsume();
|
||||
newTmpConsume.setYear(String.valueOf(year));
|
||||
newTmpConsume.setMonth(yearMonth);
|
||||
newTmpConsume.setCategory(1);
|
||||
newTmpConsume.setType(1);
|
||||
newTmpConsume.setItemCategory(4);
|
||||
newTmpConsume.setEnergy(total);
|
||||
tmpEnergyConsumeService.insertTmpEnergyConsume(newTmpConsume);
|
||||
}
|
||||
return total;
|
||||
}
|
||||
|
||||
protected double mockOfficePowerSaveByYear(String year) {
|
||||
double total = 0;
|
||||
for (int i = 1; i < 13; i++) {
|
||||
String month = i < 10 ? ("0" + i) : (i + "");
|
||||
double consume = mockOfficePowerSaveByMonth(year + "-" + month);
|
||||
total = total + consume;
|
||||
// 只统计到本年月数据
|
||||
if (Integer.parseInt(year) == DateUtil.year(new Date()) && i == DateUtil.month(new Date())) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return total;
|
||||
}
|
||||
|
||||
protected double mockPrdPowerSaveByYear(String year) {
|
||||
double total = 0;
|
||||
for (int i = 1; i < 13; i++) {
|
||||
String month = i < 10 ? ("0" + i) : (i + "");
|
||||
double consume = mockPrdPowerSaveByMonth(year + "-" + month);
|
||||
total = total + consume;
|
||||
// 只统计到本年月数据
|
||||
if (Integer.parseInt(year) == DateUtil.year(new Date()) && i == DateUtil.month(new Date())) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return total;
|
||||
}
|
||||
|
||||
protected double mockDaysEmission(int days, double monthEmission, Integer itemCategory) {
|
||||
double mockConsume = 0;
|
||||
TmpEnergyConsume tmpConsume = new TmpEnergyConsume();
|
||||
tmpConsume.setDay(DateUtil.today());
|
||||
tmpConsume.setCategory(1);
|
||||
tmpConsume.setType(0);
|
||||
tmpConsume.setItemCategory(itemCategory);
|
||||
List<TmpEnergyConsume> emissionList = tmpEnergyConsumeService.selectTmpEnergyConsumeList(tmpConsume);
|
||||
if (emissionList != null && !emissionList.isEmpty()) {
|
||||
TmpEnergyConsume emission = emissionList.get(0);
|
||||
mockConsume = emission.getEnergy();
|
||||
} else {
|
||||
double ratio = RandomUtil.randomDouble(0.5, 1, 2, RoundingMode.FLOOR);
|
||||
mockConsume = NumberUtil.round((monthEmission / days) * ratio, 2).doubleValue();
|
||||
// 新增一条临时碳排放数据
|
||||
TmpEnergyConsume newTmpConsume = new TmpEnergyConsume();
|
||||
newTmpConsume.setDay(DateUtil.today());
|
||||
newTmpConsume.setCategory(1);
|
||||
newTmpConsume.setType(0);
|
||||
newTmpConsume.setItemCategory(itemCategory);
|
||||
newTmpConsume.setEnergy(mockConsume);
|
||||
tmpEnergyConsumeService.insertTmpEnergyConsume(newTmpConsume);
|
||||
}
|
||||
return mockConsume;
|
||||
}
|
||||
}
|
@ -0,0 +1,102 @@
|
||||
package com.zhonghui.carbonReport.controller;
|
||||
|
||||
import com.zhonghui.carbonReport.service.IViewScmSaleContractService;
|
||||
import com.zhonghui.carbonReport.service.IViewScmSaleScheduleDetailsService;
|
||||
import com.zhonghui.common.core.controller.BaseController;
|
||||
import com.zhonghui.common.utils.DateUtils;
|
||||
import com.zhonghui.response.BaseResult;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
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.RestController;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.RoundingMode;
|
||||
import java.util.*;
|
||||
|
||||
@Api(tags = {"数据可视化图表展示"})
|
||||
@RestController
|
||||
@RequestMapping("/carbonReport")
|
||||
public class BigScreenReportController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private IViewScmSaleContractService viewScmSaleContractService;
|
||||
|
||||
@Autowired
|
||||
private IViewScmSaleScheduleDetailsService viewScmSaleScheduleDetailsService;
|
||||
|
||||
@GetMapping("/saleOverall")
|
||||
@ApiOperation("销售总览:本年、本月、本日销售额")
|
||||
public BaseResult<Map<String, BigDecimal>> saleOverall() {
|
||||
Map<String, BigDecimal> map = viewScmSaleContractService.selectSaleOverall();
|
||||
return BaseResult.success(map);
|
||||
}
|
||||
|
||||
@GetMapping("/saleCustomer/ranking")
|
||||
@ApiOperation("客户销售排名")
|
||||
public BaseResult<List<Map<String, BigDecimal>>> saleCustomerRank() {
|
||||
List<Map<String, BigDecimal>> list = viewScmSaleContractService.selectSaleCustomerRank();
|
||||
return BaseResult.success(list);
|
||||
}
|
||||
|
||||
@GetMapping("/saleStat")
|
||||
@ApiOperation("销售统计")
|
||||
public BaseResult<Map<String, Object>> saleStat() {
|
||||
List<String> dateList = new ArrayList<>();
|
||||
for (int i = 5; i >= 0; i--) {
|
||||
Date month = DateUtils.addMonths(new Date(), -1 * i);
|
||||
dateList.add(DateUtils.parseDateToStr(DateUtils.YYYY_MM, month));
|
||||
}
|
||||
List<BigDecimal> numList = new ArrayList<>();
|
||||
List<BigDecimal> numList2 = new ArrayList<>();
|
||||
for (String month : dateList) {
|
||||
Map<String, BigDecimal> map = viewScmSaleContractService.selectSaleStatByMonth(month);
|
||||
numList.add(map.get("contractTotal").divide(new BigDecimal(10000)).setScale(2, RoundingMode.HALF_UP));
|
||||
numList2.add(map.get("orderTotal").divide(new BigDecimal(10000)).setScale(2, RoundingMode.HALF_UP));
|
||||
}
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
result.put("dateList", dateList);
|
||||
result.put("numList", numList);
|
||||
result.put("numList2", numList2);
|
||||
return BaseResult.success(result);
|
||||
}
|
||||
|
||||
@GetMapping("/salePlan/achieveRate")
|
||||
@ApiOperation("销售计划完成率")
|
||||
public BaseResult<Map<String, Object>> salePlanAchieveRate() {
|
||||
List<String> category = new ArrayList<>();
|
||||
for (int i = 11; i >= 0; i--) {
|
||||
Date month = DateUtils.addMonths(new Date(), -1 * i);
|
||||
category.add(DateUtils.parseDateToStr(DateUtils.YYYY_MM, month));
|
||||
}
|
||||
List<BigDecimal> barData = new ArrayList<>();
|
||||
List<BigDecimal> lineData = new ArrayList<>();
|
||||
List<String> rateData = new ArrayList<>();
|
||||
for (String month : category) {
|
||||
Map<String, BigDecimal> map = viewScmSaleScheduleDetailsService.selectAchieveRateByMonth(month);
|
||||
BigDecimal contractTotal = map.get("contractTotal");
|
||||
BigDecimal planTotal = map.get("planTotal");
|
||||
barData.add(contractTotal.divide(new BigDecimal(10000)).setScale(2, RoundingMode.HALF_UP));
|
||||
lineData.add(planTotal.divide(new BigDecimal(10000)).setScale(2, RoundingMode.HALF_UP));
|
||||
if (planTotal.compareTo(BigDecimal.ZERO) == 0) {
|
||||
if (contractTotal.compareTo(BigDecimal.ZERO) == 0) {
|
||||
rateData.add("0");
|
||||
} else {
|
||||
rateData.add("100");
|
||||
}
|
||||
} else {
|
||||
double rate = (contractTotal.divide(planTotal,RoundingMode.HALF_UP)).doubleValue() * 100;
|
||||
rateData.add(rate >= 100 ? "100" : String.valueOf((int) rate));
|
||||
}
|
||||
}
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
result.put("barData", barData);
|
||||
result.put("lineData", lineData);
|
||||
result.put("rateData", rateData);
|
||||
result.put("category", category);
|
||||
return BaseResult.success(result);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,155 @@
|
||||
package com.zhonghui.carbonReport.controller;
|
||||
|
||||
import cn.hutool.core.date.DateField;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import com.zhonghui.carbonReport.domain.ViewMesProductPowerDetails;
|
||||
import com.zhonghui.carbonReport.service.IViewMesProductPowerDetailsService;
|
||||
import com.zhonghui.common.utils.DateUtils;
|
||||
import com.zhonghui.dc.service.IDcNeutralityCalculationRatioService;
|
||||
import com.zhonghui.response.BaseResult;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
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.RestController;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Api(tags = { "数据中心能耗监控图表" })
|
||||
@RestController
|
||||
@RequestMapping("/carbonReport/emissionChart")
|
||||
public class EmissionChartController extends BaseReportController{
|
||||
|
||||
@Autowired
|
||||
private IViewMesProductPowerDetailsService viewMesProductPowerDetailsService;
|
||||
|
||||
@Autowired
|
||||
private IDcNeutralityCalculationRatioService dcNeutralityCalculationRatioService;
|
||||
|
||||
@ApiOperation("查询综合能耗图表")
|
||||
@GetMapping("/overall")
|
||||
public BaseResult<Map<String, ViewMesProductPowerDetails>> overall() {
|
||||
// 获取前5年的统计数据
|
||||
ViewMesProductPowerDetails vMesProductPowerDetail = new ViewMesProductPowerDetails();
|
||||
// 5年前第一天数据
|
||||
Date fiveYear = DateUtil.offset(new Date(), DateField.YEAR, -5);
|
||||
Date first = DateUtil.beginOfYear(fiveYear);
|
||||
vMesProductPowerDetail.getParams().put("beginManufactureDate", DateUtils.dateTime(first));
|
||||
// 今年最后一天数据
|
||||
Date last = DateUtil.endOfYear(new Date());
|
||||
vMesProductPowerDetail.getParams().put("endManufactureDate", DateUtils.dateTime(last));
|
||||
// 构造图表数据结构
|
||||
Map<String, ViewMesProductPowerDetails> report = new LinkedHashMap<>();
|
||||
int thisYear = DateUtil.year(new Date());
|
||||
for (int i = 0; i < 5; i++) {
|
||||
report.put(String.valueOf(thisYear - i), new ViewMesProductPowerDetails());
|
||||
}
|
||||
List<ViewMesProductPowerDetails> list = viewMesProductPowerDetailsService
|
||||
.selectProductPowerReportByYear(vMesProductPowerDetail);
|
||||
// 获取碳中和耗电计算比例
|
||||
double pwRatio = dcNeutralityCalculationRatioService.getElectricCo2();
|
||||
double waterRatio = dcNeutralityCalculationRatioService.getWaterCo2();
|
||||
list.stream().forEach(power -> {
|
||||
String year = power.getProductYear();
|
||||
|
||||
// 获取该年生产节电数据
|
||||
double prdSaveTotal = mockPrdPowerSaveByYear(year);
|
||||
power.setTotalProductPowerSave(prdSaveTotal);
|
||||
|
||||
// 获取该年办公节电数据
|
||||
double officeSaveTotal = mockOfficePowerSaveByYear(year);
|
||||
power.setTotalOfficePowerSave(officeSaveTotal);
|
||||
|
||||
// 获取生产用水年数据
|
||||
double totalWaterConsume = this.mockPrdWaterConsumeByYear(year);
|
||||
double totalWaterEmission = totalWaterConsume * waterRatio;
|
||||
power.setTotalWaterConsume(totalWaterConsume);
|
||||
|
||||
// 获取办公用水年数据
|
||||
double totalOfficeWaterConsume = this.mockOfficeWaterConsumeByYear(year);
|
||||
double totalOfficeWaterEmission = totalOfficeWaterConsume * waterRatio;
|
||||
power.setTotalOfficeWaterConsume(totalOfficeWaterConsume);
|
||||
|
||||
// 获取办公用电年数据
|
||||
double totalOfficePowerConsume = this.mockOfficePowerConsumeByYear(year);
|
||||
double totalOfficePowerEmission = totalOfficePowerConsume * pwRatio;
|
||||
power.setTotalOfficePowerConsume(totalOfficePowerConsume);
|
||||
|
||||
// 计算碳排放总量
|
||||
double prdPowerConsume = power.getTotalPowerConsume() == null ? 0 : power.getTotalPowerConsume();
|
||||
double totalCarbonEmission = prdPowerConsume * pwRatio;
|
||||
power.setTotalCarbonEmission(
|
||||
totalCarbonEmission + totalWaterEmission + totalOfficeWaterEmission + totalOfficePowerEmission);
|
||||
|
||||
// 计算减少碳排放总量
|
||||
double totalCarbonSave = (power.getTotalProductPowerSave() + power.getTotalOfficePowerSave()) * pwRatio;
|
||||
power.setTotalCarbonSave(totalCarbonSave);
|
||||
|
||||
report.put(year, power);
|
||||
});
|
||||
|
||||
return BaseResult.success(report);
|
||||
}
|
||||
|
||||
@GetMapping("/percent")
|
||||
@ApiOperation("查询今年的能耗占比图表")
|
||||
public BaseResult<List<ViewMesProductPowerDetails>> percent() {
|
||||
// 获取今年的统计数据
|
||||
ViewMesProductPowerDetails vMesProductPowerDetail = new ViewMesProductPowerDetails();
|
||||
// 今年第一天数据
|
||||
Date first = DateUtil.beginOfYear(new Date());
|
||||
vMesProductPowerDetail.getParams().put("beginManufactureDate", DateUtils.dateTime(first));
|
||||
// 今年最后一天数据
|
||||
Date last = DateUtil.endOfYear(new Date());
|
||||
vMesProductPowerDetail.getParams().put("endManufactureDate", DateUtils.dateTime(last));
|
||||
List<ViewMesProductPowerDetails> list = viewMesProductPowerDetailsService
|
||||
.selectProductPowerReportByYear(vMesProductPowerDetail);
|
||||
// 获取碳中和耗电计算比例
|
||||
double pwRatio = dcNeutralityCalculationRatioService.getElectricCo2();
|
||||
double waterRatio = dcNeutralityCalculationRatioService.getWaterCo2();
|
||||
list.stream().forEach(power -> {
|
||||
String year = power.getProductYear();
|
||||
// 获取该年生产节电数据
|
||||
double prdSaveTotal = mockPrdPowerSaveByYear(year);
|
||||
power.setTotalProductPowerSave(prdSaveTotal);
|
||||
|
||||
// 获取该年办公节电数据
|
||||
double officeSaveTotal = mockOfficePowerSaveByYear(year);
|
||||
power.setTotalOfficePowerSave(officeSaveTotal);
|
||||
|
||||
// 获取生产用水年数据
|
||||
double totalWaterConsume = this.mockPrdWaterConsumeByYear(year);
|
||||
double totalWaterEmission = totalWaterConsume * waterRatio;
|
||||
power.setTotalWaterConsume(totalWaterConsume);
|
||||
|
||||
// 获取办公用水年数据
|
||||
double totalOfficeWaterConsume = this.mockOfficeWaterConsumeByYear(year);
|
||||
double totalOfficeWaterEmission = totalOfficeWaterConsume * waterRatio;
|
||||
power.setTotalOfficeWaterConsume(totalOfficeWaterConsume);
|
||||
|
||||
// 获取办公用电年数据
|
||||
double totalOfficePowerConsume = this.mockOfficePowerConsumeByYear(year);
|
||||
double totalOfficePowerEmission = totalOfficePowerConsume * pwRatio;
|
||||
power.setTotalOfficePowerConsume(totalOfficePowerConsume);
|
||||
|
||||
// 计算用碳排放总量
|
||||
double totalEmission = power.getTotalCarbonEmission() == null ? 0 : power.getTotalCarbonEmission();
|
||||
power.setTotalCarbonEmission(
|
||||
totalEmission + totalWaterEmission + totalOfficeWaterEmission + totalOfficePowerEmission);
|
||||
|
||||
// 计算减少碳排放总量
|
||||
double totalCarbonSave = (power.getTotalProductPowerSave() + power.getTotalOfficePowerSave()) * pwRatio;
|
||||
power.setTotalCarbonSave(totalCarbonSave);
|
||||
|
||||
// 计算碳排放总量
|
||||
double totalPower = power.getTotalPowerConsume() == null ? 0:power.getTotalPowerConsume();
|
||||
double totalCarbonEmission = totalPower * pwRatio;
|
||||
power.setTotalCarbonEmission(totalCarbonEmission);
|
||||
});
|
||||
return BaseResult.success(list);
|
||||
}
|
||||
}
|
@ -0,0 +1,100 @@
|
||||
package com.zhonghui.carbonReport.controller;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.TmpEnergyConsume;
|
||||
import com.zhonghui.carbonReport.service.ITmpEnergyConsumeService;
|
||||
import com.zhonghui.common.annotation.Log;
|
||||
import com.zhonghui.common.core.controller.BaseController;
|
||||
import com.zhonghui.common.core.page.TableDataInfo;
|
||||
import com.zhonghui.common.enums.BusinessType;
|
||||
import com.zhonghui.common.utils.poi.ExcelUtil;
|
||||
import com.zhonghui.response.BaseResult;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 能耗临时Controller
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-25
|
||||
*/
|
||||
@Api(tags="能耗临时")
|
||||
@RestController
|
||||
@RequestMapping("/carbonReport/tpmEnergyConsume")
|
||||
public class TmpEnergyConsumeController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ITmpEnergyConsumeService tmpEnergyConsumeService;
|
||||
|
||||
/**
|
||||
* 查询能耗临时列表
|
||||
*/
|
||||
@ApiOperation("查询能耗临时列表")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<List<TmpEnergyConsume>> list(TmpEnergyConsume tmpEnergyConsume)
|
||||
{
|
||||
startPage();
|
||||
List<TmpEnergyConsume> list = tmpEnergyConsumeService.selectTmpEnergyConsumeList(tmpEnergyConsume);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出能耗临时列表
|
||||
*/
|
||||
@ApiOperation("导出能耗临时列表")
|
||||
@Log(title = "能耗临时", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, TmpEnergyConsume tmpEnergyConsume)
|
||||
{
|
||||
List<TmpEnergyConsume> list = tmpEnergyConsumeService.selectTmpEnergyConsumeList(tmpEnergyConsume);
|
||||
ExcelUtil<TmpEnergyConsume> util = new ExcelUtil<TmpEnergyConsume>(TmpEnergyConsume.class);
|
||||
util.exportExcel(response, list, "能耗临时数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取能耗临时详细信息
|
||||
*/
|
||||
@ApiOperation("获取能耗临时详细信息")
|
||||
@GetMapping(value = "/{id}")
|
||||
public BaseResult<TmpEnergyConsume> getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return BaseResult.success(tmpEnergyConsumeService.selectTmpEnergyConsumeById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增能耗临时
|
||||
*/
|
||||
@ApiOperation("新增能耗临时")
|
||||
@Log(title = "能耗临时", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public BaseResult<Integer> add(@RequestBody TmpEnergyConsume tmpEnergyConsume)
|
||||
{
|
||||
return BaseResult.success(tmpEnergyConsumeService.insertTmpEnergyConsume(tmpEnergyConsume));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改能耗临时
|
||||
*/
|
||||
@ApiOperation("修改能耗临时")
|
||||
@Log(title = "能耗临时", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public BaseResult<Integer> edit(@RequestBody TmpEnergyConsume tmpEnergyConsume)
|
||||
{
|
||||
return BaseResult.success(tmpEnergyConsumeService.updateTmpEnergyConsume(tmpEnergyConsume));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除能耗临时
|
||||
*/
|
||||
@ApiOperation("删除能耗临时")
|
||||
@Log(title = "能耗临时", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public BaseResult<Integer> remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return BaseResult.success(tmpEnergyConsumeService.deleteTmpEnergyConsumeByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,164 @@
|
||||
package com.zhonghui.carbonReport.controller;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.date.DateField;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.NumberUtil;
|
||||
import cn.hutool.core.util.RandomUtil;
|
||||
import com.zhonghui.carbonReport.domain.ViewMesDevicePowerDetails;
|
||||
import com.zhonghui.carbonReport.service.IViewMesDevicePowerDetailsService;
|
||||
import com.zhonghui.common.annotation.Log;
|
||||
import com.zhonghui.common.core.controller.BaseController;
|
||||
import com.zhonghui.common.core.page.TableDataInfo;
|
||||
import com.zhonghui.common.enums.BusinessType;
|
||||
import com.zhonghui.common.utils.poi.ExcelUtil;
|
||||
import com.zhonghui.dc.service.IDcNeutralityCalculationRatioService;
|
||||
import com.zhonghui.response.BaseResult;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.math.RoundingMode;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备能耗数据采集Controller
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@Api(tags="智造双碳-设备能耗数据采集")
|
||||
@RestController
|
||||
@RequestMapping("/carbonReport/devicePowerDetails")
|
||||
public class ViewMesDevicePowerDetailsController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IViewMesDevicePowerDetailsService viewMesDevicePowerDetailsService;
|
||||
|
||||
@Autowired
|
||||
private IDcNeutralityCalculationRatioService dcNeutralityCalculationRatioService;
|
||||
|
||||
/**
|
||||
* 查询设备能耗汇总报表
|
||||
*/
|
||||
@ApiOperation("查询设备能耗数据采集报表")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<List<ViewMesDevicePowerDetails>> list(ViewMesDevicePowerDetails viewMesDevicePowerDetails)
|
||||
{
|
||||
startPage();
|
||||
List<ViewMesDevicePowerDetails> list = viewMesDevicePowerDetailsService.selectViewMesDevicePowerDetailsList(viewMesDevicePowerDetails);
|
||||
// 获取碳中和耗电计算比例
|
||||
double electricCo2 = dcNeutralityCalculationRatioService.getElectricCo2();
|
||||
// 计算单位碳排放和总碳排放
|
||||
list.stream().forEach(power -> {
|
||||
// 单位碳排放
|
||||
double carbon = power.getUnitPowerConsumption() == null ? 0 : power.getUnitPowerConsumption() * electricCo2;
|
||||
// 总碳排放
|
||||
double totalCarbon = power.getTotalPowerConsume() == null ? 0 : power.getTotalPowerConsume() * electricCo2;
|
||||
power.setCarbonEmission(carbon);
|
||||
power.setTotalCarbonEmission(totalCarbon);
|
||||
});
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询设备日能耗报表
|
||||
*/
|
||||
@ApiOperation("查询设备日能耗报表")
|
||||
@GetMapping("/day")
|
||||
public TableDataInfo reportByDay(ViewMesDevicePowerDetails viewMesDevicePowerDetails)
|
||||
{
|
||||
startPage();
|
||||
List<ViewMesDevicePowerDetails> list = viewMesDevicePowerDetailsService.selectDevicePowerReportByDay(viewMesDevicePowerDetails);
|
||||
// 获取碳中和耗电计算比例
|
||||
double electricCo2 = dcNeutralityCalculationRatioService.getElectricCo2();
|
||||
// 计算单位碳排放和总碳排放
|
||||
list.stream().forEach(power -> {
|
||||
// 单位碳排放
|
||||
double carbon = power.getUnitPowerConsumption() == null ? 0 : power.getUnitPowerConsumption() * electricCo2;
|
||||
// 总碳排放
|
||||
double totalCarbon = power.getTotalPowerConsume() == null ? 0 : power.getTotalPowerConsume() * electricCo2;
|
||||
power.setCarbonEmission(carbon);
|
||||
power.setTotalCarbonEmission(totalCarbon);
|
||||
});
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询设备小时能耗报表
|
||||
*/
|
||||
@ApiOperation("查询设备小时能耗报表")
|
||||
@GetMapping("/hour")
|
||||
public TableDataInfo reportByHour(ViewMesDevicePowerDetails viewMesDevicePowerDetails)
|
||||
{
|
||||
List<ViewMesDevicePowerDetails> hourList = new ArrayList<ViewMesDevicePowerDetails>();
|
||||
Date date = viewMesDevicePowerDetails.getManufactureDate();
|
||||
String today = DateUtil.today();
|
||||
Date now = DateUtil.parse(today);
|
||||
// 查询日期为空默认查询前一天数据
|
||||
if (date != null) {
|
||||
// 当天以及未来数据不采集
|
||||
if (date.compareTo(now) >= 0) {
|
||||
return getDataTable(hourList);
|
||||
}
|
||||
} else {
|
||||
Date yesterday = DateUtil.offset(DateUtil.parse(today), DateField.DAY_OF_MONTH, -1);
|
||||
viewMesDevicePowerDetails.setManufactureDate(yesterday);
|
||||
}
|
||||
List<ViewMesDevicePowerDetails> list = viewMesDevicePowerDetailsService.selectDevicePowerReportByDay(viewMesDevicePowerDetails);
|
||||
// 获取碳中和耗电计算比例
|
||||
double electricCo2 = dcNeutralityCalculationRatioService.getElectricCo2();
|
||||
for (ViewMesDevicePowerDetails dayPower : list) {
|
||||
// 模拟小时能耗数据
|
||||
Double totalPowerConsume = dayPower.getTotalPowerConsume();
|
||||
for (int i = 0; i < 24; i++) {
|
||||
ViewMesDevicePowerDetails hourPower = new ViewMesDevicePowerDetails();
|
||||
BeanUtil.copyProperties(dayPower, hourPower);
|
||||
hourPower.setHour(String.valueOf(i + 1));
|
||||
double hourConsume = RandomUtil.randomDouble(0, totalPowerConsume / 24, 2, RoundingMode.FLOOR);
|
||||
hourPower.setTotalPowerConsume(hourConsume);
|
||||
hourPower.setCarbonEmission(NumberUtil.round(hourConsume * electricCo2, 2).doubleValue());
|
||||
hourList.add(hourPower);
|
||||
}
|
||||
}
|
||||
return getDataTable(hourList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出设备能耗数据采集列表
|
||||
*/
|
||||
@ApiOperation("导出设备能耗数据采集列表")
|
||||
@Log(title = "设备能耗数据采集", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ViewMesDevicePowerDetails viewMesDevicePowerDetails)
|
||||
{
|
||||
List<ViewMesDevicePowerDetails> list = viewMesDevicePowerDetailsService.selectViewMesDevicePowerDetailsList(viewMesDevicePowerDetails);
|
||||
// 获取碳中和耗电计算比例
|
||||
double electricCo2 = dcNeutralityCalculationRatioService.getElectricCo2();
|
||||
// 计算单位碳排放和总碳排放
|
||||
list.stream().forEach(power -> {
|
||||
// 单位碳排放
|
||||
double carbon = power.getUnitPowerConsumption() * electricCo2;
|
||||
// 总碳排放
|
||||
double totalCarbon = power.getTotalPowerConsume() * electricCo2;
|
||||
power.setCarbonEmission(carbon);
|
||||
power.setTotalCarbonEmission(totalCarbon);
|
||||
});
|
||||
ExcelUtil<ViewMesDevicePowerDetails> util = new ExcelUtil<ViewMesDevicePowerDetails>(ViewMesDevicePowerDetails.class);
|
||||
util.exportExcel(response, list, "设备能耗数据采集数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取设备能耗数据采集详细信息
|
||||
*/
|
||||
@ApiOperation("获取设备能耗数据采集详细信息")
|
||||
@GetMapping(value = "/{deviceId}")
|
||||
public BaseResult<ViewMesDevicePowerDetails> getInfo(@PathVariable("deviceId") Long deviceId)
|
||||
{
|
||||
return BaseResult.success(viewMesDevicePowerDetailsService.selectViewMesDevicePowerDetailsByDeviceId(deviceId));
|
||||
}
|
||||
}
|
@ -0,0 +1,285 @@
|
||||
package com.zhonghui.carbonReport.controller;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.zhonghui.carbonReport.domain.ViewMesProductPowerDetails;
|
||||
import com.zhonghui.carbonReport.service.IViewMesProductPowerDetailsService;
|
||||
import com.zhonghui.common.annotation.Log;
|
||||
import com.zhonghui.common.core.page.TableDataInfo;
|
||||
import com.zhonghui.common.enums.BusinessType;
|
||||
import com.zhonghui.common.utils.DateUtils;
|
||||
import com.zhonghui.common.utils.poi.ExcelUtil;
|
||||
import com.zhonghui.dc.service.IDcNeutralityCalculationRatioService;
|
||||
import com.zhonghui.response.BaseResult;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 生产能耗报表Controller
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@Api(tags="智造双碳-生产能耗报表")
|
||||
@RestController
|
||||
@RequestMapping("/carbonReport/productPowerDetails")
|
||||
public class ViewMesProductPowerDetailsController extends BaseReportController
|
||||
{
|
||||
@Autowired
|
||||
private IViewMesProductPowerDetailsService viewMesProductPowerDetailsService;
|
||||
|
||||
@Autowired
|
||||
private IDcNeutralityCalculationRatioService dcNeutralityCalculationRatioService;
|
||||
|
||||
/**
|
||||
* 查询生产能耗报表列表
|
||||
*/
|
||||
@ApiOperation("查询生产能耗报表列表")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<List<ViewMesProductPowerDetails>> list(ViewMesProductPowerDetails viewMesProductPowerDetails)
|
||||
{
|
||||
startPage();
|
||||
List<ViewMesProductPowerDetails> list = viewMesProductPowerDetailsService.selectViewMesProductPowerDetailsList(viewMesProductPowerDetails);
|
||||
// 获取碳中和耗电计算比例
|
||||
double electricCo2 = dcNeutralityCalculationRatioService.getElectricCo2();
|
||||
list.stream().forEach(power -> {
|
||||
try {
|
||||
// 单位碳排放
|
||||
double carbon = power.getUnitPowerConsumption() * electricCo2;
|
||||
// 计算碳排放总量
|
||||
double totalCarbonEmission = power.getTotalPowerConsume() * electricCo2;
|
||||
power.setCarbonEmission(carbon);
|
||||
power.setTotalCarbonEmission(totalCarbonEmission);
|
||||
}catch (Exception ex) {
|
||||
logger.error(ex.getMessage(),ex);
|
||||
}
|
||||
|
||||
});
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询生产能耗月度报表
|
||||
*/
|
||||
@GetMapping("/month")
|
||||
@ApiOperation("查询生产能耗月度报表")
|
||||
public TableDataInfo reportByMonth(ViewMesProductPowerDetails viewMesProductPowerDetails) {
|
||||
startPage();
|
||||
Object end = viewMesProductPowerDetails.getParams().get("endManufactureDate");
|
||||
Object start = viewMesProductPowerDetails.getParams().get("beginManufactureDate");
|
||||
Date now = DateUtil.date();
|
||||
if (StrUtil.isEmptyIfStr(start)) {
|
||||
// 默认查询本月第一天
|
||||
Date first = DateUtil.beginOfMonth(now);
|
||||
viewMesProductPowerDetails.getParams().put("beginManufactureDate", DateUtils.dateTime(first));
|
||||
}
|
||||
if (!StrUtil.isEmptyIfStr(end)) {
|
||||
// 将查询条件的结束月份转化为该月的最后一天
|
||||
Date date = DateUtils.parseDate(end);
|
||||
if (now.compareTo(date) < 0) {
|
||||
date = now;
|
||||
}
|
||||
Date last = DateUtil.endOfMonth(date);
|
||||
viewMesProductPowerDetails.getParams().put("endManufactureDate", DateUtils.dateTime(last));
|
||||
} else {
|
||||
// 默认查询本月最后一天
|
||||
Date last = DateUtil.endOfMonth(now);
|
||||
viewMesProductPowerDetails.getParams().put("endManufactureDate", DateUtils.dateTime(last));
|
||||
}
|
||||
List<ViewMesProductPowerDetails> list = viewMesProductPowerDetailsService
|
||||
.selectProductPowerReportByMonth(viewMesProductPowerDetails);
|
||||
// 获取碳中和耗电计算比例
|
||||
double pwRatio = dcNeutralityCalculationRatioService.getElectricCo2();
|
||||
double waterRatio = dcNeutralityCalculationRatioService.getWaterCo2();
|
||||
list.stream().forEach(power -> {
|
||||
String yearMonth = power.getProductMonth();
|
||||
// 获取该月份生产节电量
|
||||
double prdSave = mockPrdPowerSaveByMonth(yearMonth);
|
||||
power.setTotalProductPowerSave(prdSave);
|
||||
// 获取该月份办公节电量
|
||||
double officeSave = mockOfficePowerSaveByMonth(yearMonth);
|
||||
power.setTotalOfficePowerSave(officeSave);
|
||||
|
||||
// 获取生产用水月数据
|
||||
double totalWaterConsume = this.mockPrdWaterConsumeByMonth(yearMonth);
|
||||
double totalWaterEmission = totalWaterConsume * waterRatio;
|
||||
power.setTotalWaterConsume(totalWaterConsume);
|
||||
|
||||
// 获取办公用水月数据
|
||||
double totalOfficeWaterConsume = this.mockOfficeWaterConsumeByMonth(yearMonth);
|
||||
double totalOfficeWaterEmission = totalOfficeWaterConsume * waterRatio;
|
||||
power.setTotalOfficeWaterConsume(totalOfficeWaterConsume);
|
||||
|
||||
// 获取办公用电月数据
|
||||
double totalOfficePowerConsume = this.mockOfficePowerConsumeByMonth(yearMonth);
|
||||
double totalOfficePowerEmission = totalOfficePowerConsume * pwRatio;
|
||||
power.setTotalOfficePowerConsume(totalOfficePowerConsume);
|
||||
|
||||
// 计算碳排放总量
|
||||
double prdPowerConsume = power.getTotalPowerConsume() == null ? 0 : power.getTotalPowerConsume();
|
||||
double totalCarbonEmission = prdPowerConsume * pwRatio;
|
||||
power.setTotalCarbonEmission(
|
||||
totalCarbonEmission + totalWaterEmission + totalOfficeWaterEmission + totalOfficePowerEmission);
|
||||
// 计算减少碳排放总量
|
||||
double totalCarbonSave = (power.getTotalProductPowerSave() + power.getTotalOfficePowerSave()) * pwRatio;
|
||||
power.setTotalCarbonSave(totalCarbonSave);
|
||||
});
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询生产能耗年度报表
|
||||
*/
|
||||
@ApiOperation("查询生产能耗年度报表")
|
||||
@GetMapping("/year")
|
||||
public TableDataInfo reportByYear(ViewMesProductPowerDetails viewMesProductPowerDetails) {
|
||||
Object end = viewMesProductPowerDetails.getParams().get("endManufactureDate");
|
||||
Object start = viewMesProductPowerDetails.getParams().get("beginManufactureDate");
|
||||
Date now = DateUtil.date();
|
||||
if (StrUtil.isEmptyIfStr(start)) {
|
||||
// 默认查询今年第一天数据
|
||||
Date first = DateUtil.beginOfYear(new Date());
|
||||
viewMesProductPowerDetails.getParams().put("beginManufactureDate", DateUtils.dateTime(first));
|
||||
}
|
||||
if (!StrUtil.isEmptyIfStr(end)) {
|
||||
// 将查询条件的结束月份转化为该年的最后一天
|
||||
Date date = DateUtils.parseDate(end);
|
||||
if (now.compareTo(date) < 0) {
|
||||
date = now;
|
||||
}
|
||||
Date last = DateUtil.endOfYear(date);
|
||||
viewMesProductPowerDetails.getParams().put("endManufactureDate", DateUtils.dateTime(last));
|
||||
} else {
|
||||
// 默认查询今年最后一天数据
|
||||
Date last = DateUtil.endOfYear(new Date());
|
||||
viewMesProductPowerDetails.getParams().put("endManufactureDate", DateUtils.dateTime(last));
|
||||
}
|
||||
// 获取统计的月份
|
||||
List<ViewMesProductPowerDetails> monthList = viewMesProductPowerDetailsService
|
||||
.selectReportMonth(viewMesProductPowerDetails);
|
||||
List<String> reportMonthList = monthList.stream().map(month -> month.getProductMonth())
|
||||
.collect(Collectors.toList());
|
||||
// 产生模拟月份数据
|
||||
reportMonthList.stream().forEach(month -> {
|
||||
mockPrdPowerSaveByMonth(month);
|
||||
mockOfficePowerSaveByMonth(month);
|
||||
});
|
||||
startPage();
|
||||
List<ViewMesProductPowerDetails> list = viewMesProductPowerDetailsService
|
||||
.selectProductPowerReportByYear(viewMesProductPowerDetails);
|
||||
// 获取碳中和耗电计算比例
|
||||
double pwRatio = dcNeutralityCalculationRatioService.getElectricCo2();
|
||||
double waterRatio = dcNeutralityCalculationRatioService.getWaterCo2();
|
||||
list.stream().forEach(power -> {
|
||||
String year = power.getProductYear();
|
||||
// 获取该年生产节电数据
|
||||
double prdSaveTotal = mockPrdPowerSaveByYear(year);
|
||||
power.setTotalProductPowerSave(prdSaveTotal);
|
||||
|
||||
// 获取该年办公节电数据
|
||||
double officeSaveTotal = mockOfficePowerSaveByYear(year);
|
||||
power.setTotalOfficePowerSave(officeSaveTotal);
|
||||
|
||||
// 获取生产用水年数据
|
||||
double totalWaterConsume = this.mockPrdWaterConsumeByYear(year);
|
||||
double totalWaterEmission = totalWaterConsume * waterRatio;
|
||||
power.setTotalWaterConsume(totalWaterConsume);
|
||||
|
||||
// 获取办公用水年数据
|
||||
double totalOfficeWaterConsume = this.mockOfficeWaterConsumeByYear(year);
|
||||
double totalOfficeWaterEmission = totalOfficeWaterConsume * waterRatio;
|
||||
power.setTotalOfficeWaterConsume(totalOfficeWaterConsume);
|
||||
|
||||
// 获取办公用电年数据
|
||||
double totalOfficePowerConsume = this.mockOfficePowerConsumeByYear(year);
|
||||
double totalOfficePowerEmission = totalOfficePowerConsume * pwRatio;
|
||||
power.setTotalOfficePowerConsume(totalOfficePowerConsume);
|
||||
|
||||
// 计算碳排放总量
|
||||
double prdPowerConsume = power.getTotalPowerConsume() == null ? 0 : power.getTotalPowerConsume();
|
||||
double totalCarbonEmission = prdPowerConsume * pwRatio;
|
||||
power.setTotalCarbonEmission(
|
||||
totalCarbonEmission + totalWaterEmission + totalOfficeWaterEmission + totalOfficePowerEmission);
|
||||
// 计算减少碳排放总量
|
||||
double totalCarbonSave = (power.getTotalProductPowerSave() + power.getTotalOfficePowerSave()) * pwRatio;
|
||||
power.setTotalCarbonSave(totalCarbonSave);
|
||||
});
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询生产能耗日报表
|
||||
*/
|
||||
@ApiOperation("查询生产能耗日报表")
|
||||
@GetMapping("/day")
|
||||
public TableDataInfo reportByDay(ViewMesProductPowerDetails viewMesProductPowerDetails) {
|
||||
startPage();
|
||||
// 默认查询今天数据
|
||||
if (viewMesProductPowerDetails.getManufactureDate() == null) {
|
||||
Date today = DateUtil.parse(DateUtil.today());
|
||||
viewMesProductPowerDetails.setManufactureDate(today);
|
||||
}
|
||||
List<ViewMesProductPowerDetails> list = viewMesProductPowerDetailsService
|
||||
.selectProductPowerReportByDay(viewMesProductPowerDetails);
|
||||
// 获取碳中和耗电计算比例
|
||||
double pwRatio = dcNeutralityCalculationRatioService.getElectricCo2();
|
||||
double waterRatio = dcNeutralityCalculationRatioService.getWaterCo2();
|
||||
list.stream().forEach(power -> {
|
||||
int days = DateUtil.dayOfMonth(DateUtil.endOfMonth(power.getManufactureDate()));
|
||||
String yearMonth = DateUtil.format(power.getManufactureDate(), "yyyy-MM");
|
||||
// 获取生产用水月数据
|
||||
double totalWaterConsume = this.mockPrdWaterConsumeByMonth(yearMonth);
|
||||
double totalWaterEmission = totalWaterConsume * waterRatio;
|
||||
totalWaterEmission = mockDaysEmission(days, totalWaterEmission, 3);
|
||||
power.setTotalWaterConsume(totalWaterConsume);
|
||||
|
||||
// 获取办公用水月数据
|
||||
double totalOfficeWaterConsume = this.mockOfficeWaterConsumeByMonth(yearMonth);
|
||||
double totalOfficeWaterEmission = totalOfficeWaterConsume * waterRatio;
|
||||
totalOfficeWaterEmission = mockDaysEmission(days, totalOfficeWaterEmission, 4);
|
||||
power.setTotalOfficeWaterConsume(totalOfficeWaterConsume);
|
||||
|
||||
// 获取办公用电月数据
|
||||
double totalOfficePowerConsume = this.mockOfficePowerConsumeByMonth(yearMonth);
|
||||
double totalOfficePowerEmission = totalOfficePowerConsume * pwRatio;
|
||||
totalOfficePowerEmission = mockDaysEmission(days, totalOfficePowerEmission, 2);
|
||||
power.setTotalOfficePowerConsume(totalOfficePowerConsume);
|
||||
|
||||
// 计算碳排放总量
|
||||
double prdPowerConsume = power.getTotalPowerConsume() == null ? 0 : power.getTotalPowerConsume();
|
||||
double totalCarbonEmission = prdPowerConsume * pwRatio;
|
||||
power.setTotalCarbonEmission(Math.floor(totalCarbonEmission + totalWaterEmission + totalOfficeWaterEmission + totalOfficePowerEmission));
|
||||
});
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出生产能耗报表列表
|
||||
*/
|
||||
@ApiOperation("导出生产能耗报表列表")
|
||||
@Log(title = "产品能耗报表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ViewMesProductPowerDetails viewMesProductPowerDetails)
|
||||
{
|
||||
List<ViewMesProductPowerDetails> list = viewMesProductPowerDetailsService.selectViewMesProductPowerDetailsList(viewMesProductPowerDetails);
|
||||
ExcelUtil<ViewMesProductPowerDetails> util = new ExcelUtil<ViewMesProductPowerDetails>(ViewMesProductPowerDetails.class);
|
||||
util.exportExcel(response, list, "产品能耗报表数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取生产能耗报表详细信息
|
||||
*/
|
||||
@ApiOperation("获取生产能耗报表详细信息")
|
||||
@GetMapping(value = "/{productionPlanId}")
|
||||
public BaseResult<ViewMesProductPowerDetails> getInfo(@PathVariable("productionPlanId") Long productionPlanId)
|
||||
{
|
||||
return BaseResult.success(viewMesProductPowerDetailsService.selectViewMesProductPowerDetailsByFactoryId(productionPlanId));
|
||||
}
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
package com.zhonghui.carbonReport.controller;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewScmPurchasingArriveDetails;
|
||||
import com.zhonghui.carbonReport.service.IViewScmPurchasingArriveDetailsService;
|
||||
import com.zhonghui.common.annotation.Log;
|
||||
import com.zhonghui.common.core.controller.BaseController;
|
||||
import com.zhonghui.common.core.page.TableDataInfo;
|
||||
import com.zhonghui.common.enums.BusinessType;
|
||||
import com.zhonghui.common.utils.poi.ExcelUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 采购入库统计报表Controller
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@Api(tags="供应链SCM-采购入库统计报表")
|
||||
@RestController
|
||||
@RequestMapping("/carbonReport/purchasingArriveDetails")
|
||||
public class ViewScmPurchasingArriveDetailsController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IViewScmPurchasingArriveDetailsService viewScmPurchasingArriveDetailsService;
|
||||
|
||||
/**
|
||||
* 查询采购入库统计列表
|
||||
*/
|
||||
@ApiOperation("查询采购入库统计列表")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<List<ViewScmPurchasingArriveDetails>> list(ViewScmPurchasingArriveDetails viewScmPurchasingArriveDetails)
|
||||
{
|
||||
startPage();
|
||||
List<ViewScmPurchasingArriveDetails> list = viewScmPurchasingArriveDetailsService.selectViewScmPurchasingArriveDetailsList(viewScmPurchasingArriveDetails);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出采购入库统计列表
|
||||
*/
|
||||
@ApiOperation("导出采购入库统计列表")
|
||||
@Log(title = "采购入库统计列表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ViewScmPurchasingArriveDetails viewScmPurchasingArriveDetails)
|
||||
{
|
||||
List<ViewScmPurchasingArriveDetails> list = viewScmPurchasingArriveDetailsService.selectViewScmPurchasingArriveDetailsList(viewScmPurchasingArriveDetails);
|
||||
ExcelUtil<ViewScmPurchasingArriveDetails> util = new ExcelUtil<ViewScmPurchasingArriveDetails>(ViewScmPurchasingArriveDetails.class);
|
||||
util.exportExcel(response, list, "采购到货详细报表数据");
|
||||
}
|
||||
}
|
@ -0,0 +1,101 @@
|
||||
package com.zhonghui.carbonReport.controller;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewScmPurchasingContract;
|
||||
import com.zhonghui.carbonReport.service.IViewScmPurchasingContractService;
|
||||
import com.zhonghui.common.annotation.Log;
|
||||
import com.zhonghui.common.core.controller.BaseController;
|
||||
import com.zhonghui.common.core.page.TableDataInfo;
|
||||
import com.zhonghui.common.enums.BusinessType;
|
||||
import com.zhonghui.common.utils.poi.ExcelUtil;
|
||||
import com.zhonghui.response.BaseResult;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 采购合同报表Controller
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@Api(tags = {"供应链SCM-采购合同报表"})
|
||||
@RestController
|
||||
@RequestMapping("/carbonReport/purchasingContract")
|
||||
public class ViewScmPurchasingContractController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IViewScmPurchasingContractService viewScmPurchasingContractService;
|
||||
|
||||
/**
|
||||
* 查询采购合同报表列表
|
||||
*/
|
||||
@ApiOperation("查询采购合同报表列表")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<List<ViewScmPurchasingContract>> list(ViewScmPurchasingContract viewScmPurchasingContract)
|
||||
{
|
||||
startPage();
|
||||
List<ViewScmPurchasingContract> list = viewScmPurchasingContractService.selectViewScmPurchasingContractList(viewScmPurchasingContract);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出采购合同报表列表
|
||||
*/
|
||||
@ApiOperation("导出采购合同报表列表")
|
||||
@Log(title = "采购合同报表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ViewScmPurchasingContract viewScmPurchasingContract)
|
||||
{
|
||||
List<ViewScmPurchasingContract> list = viewScmPurchasingContractService.selectViewScmPurchasingContractList(viewScmPurchasingContract);
|
||||
ExcelUtil<ViewScmPurchasingContract> util = new ExcelUtil<ViewScmPurchasingContract>(ViewScmPurchasingContract.class);
|
||||
util.exportExcel(response, list, "采购合同报表数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取采购合同报表详细信息
|
||||
*/
|
||||
@ApiOperation("获取采购合同报表详细信息")
|
||||
@GetMapping(value = "/{contractId}")
|
||||
public BaseResult<ViewScmPurchasingContract> getInfo(@PathVariable("contractId") Long contractId)
|
||||
{
|
||||
return BaseResult.success(viewScmPurchasingContractService.selectViewScmPurchasingContractByContractId(contractId));
|
||||
}
|
||||
|
||||
@GetMapping("/byMonth")
|
||||
@ApiOperation("月份统计采购付款")
|
||||
public TableDataInfo selectMonthReport(ViewScmPurchasingContract viewScmPurchasingContract) {
|
||||
startPage();
|
||||
List<ViewScmPurchasingContract> list = viewScmPurchasingContractService.selectMonthReport(viewScmPurchasingContract);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/byQuarter")
|
||||
@ApiOperation("季度统计采购付款")
|
||||
public TableDataInfo selectQuarterReport(ViewScmPurchasingContract viewScmPurchasingContract) {
|
||||
startPage();
|
||||
List<ViewScmPurchasingContract> list = viewScmPurchasingContractService.selectQuarterReport(viewScmPurchasingContract);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@GetMapping("/supplier/byMonth")
|
||||
@ApiOperation("月份统计供应商对账")
|
||||
public TableDataInfo selectMonthSupplierReport(ViewScmPurchasingContract viewScmPurchasingContract) {
|
||||
startPage();
|
||||
List<ViewScmPurchasingContract> list = viewScmPurchasingContractService.selectMonthSupplierReport(viewScmPurchasingContract);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@GetMapping("/supplier/byQuarter")
|
||||
@ApiOperation("季度统计供应商对账")
|
||||
public TableDataInfo selectQuarterSupplierReport(ViewScmPurchasingContract viewScmPurchasingContract) {
|
||||
startPage();
|
||||
List<ViewScmPurchasingContract> list = viewScmPurchasingContractService.selectQuarterSupplierReport(viewScmPurchasingContract);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,103 @@
|
||||
package com.zhonghui.carbonReport.controller;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ScmContractArriveReturnDetail;
|
||||
import com.zhonghui.carbonReport.domain.ViewScmPurchasingContractDetails;
|
||||
import com.zhonghui.carbonReport.domain.ViewScmPurchasingReturnDetails;
|
||||
import com.zhonghui.carbonReport.service.IViewScmPurchasingContractDetailsService;
|
||||
import com.zhonghui.carbonReport.service.IViewScmPurchasingReturnDetailsService;
|
||||
import com.zhonghui.common.annotation.Log;
|
||||
import com.zhonghui.common.core.controller.BaseController;
|
||||
import com.zhonghui.common.core.domain.AjaxResult;
|
||||
import com.zhonghui.common.core.page.TableDataInfo;
|
||||
import com.zhonghui.common.enums.BusinessType;
|
||||
import com.zhonghui.common.utils.poi.ExcelUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 采购报表统计Controller
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@Api(tags = {"供应链SCM-采购报表统计"})
|
||||
@RestController
|
||||
@RequestMapping("/carbonReport/scmPurchase")
|
||||
public class ViewScmPurchasingReportController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private IViewScmPurchasingContractDetailsService viewScmPurchasingContractDetailsService;
|
||||
|
||||
@Autowired
|
||||
private IViewScmPurchasingReturnDetailsService viewScmPurchasingReturnDetailsService;
|
||||
|
||||
/**
|
||||
* 查询采购物料列表
|
||||
*/
|
||||
@GetMapping("/material/list")
|
||||
@ApiOperation("查询产品统计列表")
|
||||
public TableDataInfo<List<ViewScmPurchasingContractDetails>> list(ViewScmPurchasingContractDetails viewScmPurchasingContractDetails) {
|
||||
startPage();
|
||||
List<ViewScmPurchasingContractDetails> list = viewScmPurchasingContractDetailsService.selectViewScmPurchasingContractDetailsList(viewScmPurchasingContractDetails);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出采购物料列表
|
||||
*/
|
||||
@ApiOperation("导出产品统计列表")
|
||||
@Log(title = "采购物料", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/material/export")
|
||||
public void export(HttpServletResponse response, ViewScmPurchasingContractDetails viewScmPurchasingContractDetails) {
|
||||
List<ViewScmPurchasingContractDetails> list = viewScmPurchasingContractDetailsService.selectViewScmPurchasingContractDetailsList(viewScmPurchasingContractDetails);
|
||||
ExcelUtil<ViewScmPurchasingContractDetails> util = new ExcelUtil<ViewScmPurchasingContractDetails>(ViewScmPurchasingContractDetails.class);
|
||||
util.exportExcel(response, list, "采购物料列表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询采购退货列表
|
||||
*/
|
||||
@GetMapping("/return/list")
|
||||
@ApiOperation("查询采购退货列表")
|
||||
public TableDataInfo list(ViewScmPurchasingReturnDetails viewScmPurchasingContractDetails) {
|
||||
startPage();
|
||||
List<ViewScmPurchasingReturnDetails> list = viewScmPurchasingReturnDetailsService.selectViewScmPurchasingReturnDetailsList(viewScmPurchasingContractDetails);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出采购退货列表
|
||||
*/
|
||||
@ApiOperation("导出采购退货列表")
|
||||
@Log(title = "采购退货", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/return/export")
|
||||
public AjaxResult export(ViewScmPurchasingReturnDetails viewScmPurchasingContractDetails) {
|
||||
List<ViewScmPurchasingReturnDetails> list = viewScmPurchasingReturnDetailsService.selectViewScmPurchasingReturnDetailsList(viewScmPurchasingContractDetails);
|
||||
ExcelUtil<ViewScmPurchasingReturnDetails> util = new ExcelUtil<ViewScmPurchasingReturnDetails>(ViewScmPurchasingReturnDetails.class);
|
||||
return util.exportExcel(list, "采购退货列表");
|
||||
}
|
||||
|
||||
@GetMapping("/contractInWarehouseReturnReport/byMonth")
|
||||
@ApiOperation("按月采购-入库-退货报表")
|
||||
public TableDataInfo selectContractDeliveryReturnMonthReport(ScmContractArriveReturnDetail scmContractArriveReturnDetail) {
|
||||
startPage();
|
||||
List<ScmContractArriveReturnDetail> list = viewScmPurchasingContractDetailsService.selectContractArriveReturnMonthReport(scmContractArriveReturnDetail);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@GetMapping("/contractInWarehouseReturnReport/byQuarter")
|
||||
@ApiOperation("按季度统计采购-入库-退货报表")
|
||||
public TableDataInfo selectContractDeliveryReturnQuarterReport(ScmContractArriveReturnDetail scmContractArriveReturnDetail) {
|
||||
startPage();
|
||||
List<ScmContractArriveReturnDetail> list = viewScmPurchasingContractDetailsService.selectContractArriveReturnQuarterReport(scmContractArriveReturnDetail);
|
||||
return getDataTable(list);
|
||||
}
|
||||
}
|
@ -0,0 +1,126 @@
|
||||
package com.zhonghui.carbonReport.controller;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewScmFinanceReport;
|
||||
import com.zhonghui.carbonReport.domain.ViewScmSaleContract;
|
||||
import com.zhonghui.carbonReport.service.IViewScmSaleContractService;
|
||||
import com.zhonghui.common.annotation.Log;
|
||||
import com.zhonghui.common.core.controller.BaseController;
|
||||
import com.zhonghui.common.core.domain.AjaxResult;
|
||||
import com.zhonghui.common.core.page.TableDataInfo;
|
||||
import com.zhonghui.common.enums.BusinessType;
|
||||
import com.zhonghui.common.utils.poi.ExcelUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 销售合同报表Controller
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@Api(tags="供应链SCM-销售合同报表")
|
||||
@RestController
|
||||
@RequestMapping("/carbonReport/saleContract")
|
||||
public class ViewScmSaleContractController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IViewScmSaleContractService viewScmSaleContractService;
|
||||
|
||||
/**
|
||||
* 查询按月统计销售合同报表列表
|
||||
*/
|
||||
@GetMapping("/byMonth")
|
||||
@ApiOperation("查询按月统计销售合同报表列表")
|
||||
public TableDataInfo<List<ViewScmSaleContract>> listByMonth(ViewScmSaleContract viewScmSaleContract) {
|
||||
startPage();
|
||||
List<ViewScmSaleContract> list = viewScmSaleContractService.selectMonthSaleContractReport(viewScmSaleContract);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询按季度统计销售合同报表列表
|
||||
*/
|
||||
@GetMapping("/byQuarter")
|
||||
@ApiOperation("查询按季度统计销售合同报表列表")
|
||||
public TableDataInfo listByQuarter(ViewScmSaleContract viewScmSaleContract) {
|
||||
startPage();
|
||||
List<ViewScmSaleContract> list = viewScmSaleContractService.selectQuarterSaleContractReport(viewScmSaleContract);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出按月统计销售合同报表列表
|
||||
*/
|
||||
@ApiOperation("导出按月统计销售合同报表列表")
|
||||
@PreAuthorize("@ss.hasPermi('saleReport:saleContractReport:export')")
|
||||
@Log(title = "按月统计销售合同报表列表", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export/byMonth")
|
||||
public AjaxResult exportByMonth(ViewScmSaleContract viewScmSaleContract) {
|
||||
List<ViewScmSaleContract> list = viewScmSaleContractService.selectMonthSaleContractReport(viewScmSaleContract);
|
||||
ExcelUtil<ViewScmSaleContract> util = new ExcelUtil<ViewScmSaleContract>(ViewScmSaleContract.class);
|
||||
return util.exportExcel(list, "月统计销售合同报表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出按季度统计销售合同报表列表
|
||||
*/
|
||||
@ApiOperation("导出按季度统计销售合同报表列表")
|
||||
@Log(title = "按季度统计销售合同报表列表", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export/byQuarter")
|
||||
public AjaxResult exportByQuarter(ViewScmSaleContract viewScmSaleContract) {
|
||||
List<ViewScmSaleContract> list = viewScmSaleContractService.selectQuarterSaleContractReport(viewScmSaleContract);
|
||||
ExcelUtil<ViewScmSaleContract> util = new ExcelUtil<ViewScmSaleContract>(ViewScmSaleContract.class);
|
||||
return util.exportExcel(list, "季度统计销售合同报表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询订单收款月统计
|
||||
*/
|
||||
@GetMapping("/orderStat/byMonth")
|
||||
@ApiOperation("查询订单收款月统计")
|
||||
public TableDataInfo orderStatByMonth(ViewScmSaleContract viewScmSaleContract) {
|
||||
startPage();
|
||||
List<ViewScmSaleContract> list = viewScmSaleContractService.selectMonthOrderStatReport(viewScmSaleContract);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询订单收款季度统计
|
||||
*/
|
||||
@GetMapping("/orderStat/byQuarter")
|
||||
@ApiOperation("查询订单收款季度统计")
|
||||
public TableDataInfo orderStatByQuarter(ViewScmSaleContract viewScmSaleContract) {
|
||||
startPage();
|
||||
List<ViewScmSaleContract> list = viewScmSaleContractService.selectQuarterOrderStatReport(viewScmSaleContract);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 财务收支月份统计
|
||||
*/
|
||||
@GetMapping("/financeReport/byMonth")
|
||||
@ApiOperation("财务收支月份统计")
|
||||
public TableDataInfo financeByMonth(ViewScmFinanceReport viewScmFinanceReport) {
|
||||
startPage();
|
||||
List<ViewScmFinanceReport> list = viewScmSaleContractService.selectMonthFinanceReport(viewScmFinanceReport);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 财务收支季度统计
|
||||
*/
|
||||
@GetMapping("/financeReport/byQuarter")
|
||||
@ApiOperation("财务收支季度统计")
|
||||
public TableDataInfo financeByQuarter(ViewScmFinanceReport viewScmFinanceReport) {
|
||||
startPage();
|
||||
List<ViewScmFinanceReport> list = viewScmSaleContractService.selectQuarterFinanceReport(viewScmFinanceReport);
|
||||
return getDataTable(list);
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
package com.zhonghui.carbonReport.controller;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewScmSaleDeliveryDetails;
|
||||
import com.zhonghui.carbonReport.service.IViewScmSaleDeliveryDetailsService;
|
||||
import com.zhonghui.common.annotation.Log;
|
||||
import com.zhonghui.common.core.controller.BaseController;
|
||||
import com.zhonghui.common.core.page.TableDataInfo;
|
||||
import com.zhonghui.common.enums.BusinessType;
|
||||
import com.zhonghui.common.utils.poi.ExcelUtil;
|
||||
import com.zhonghui.response.BaseResult;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 销售发货退货明细报表Controller
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-25
|
||||
*/
|
||||
@Api(tags = {"供应链SCM-销售发货退货明细报表"})
|
||||
@RestController
|
||||
@RequestMapping("/carbonReport/saleDeliveryDetails")
|
||||
public class ViewScmSaleDeliveryDetailsController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IViewScmSaleDeliveryDetailsService viewScmSaleDeliveryDetailsService;
|
||||
|
||||
/**
|
||||
* 查询销售发货退货明细报表列表
|
||||
*/
|
||||
@ApiOperation("查询销售发货退货明细报表列表")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<List<ViewScmSaleDeliveryDetails>> list(ViewScmSaleDeliveryDetails viewScmSaleDeliveryDetails)
|
||||
{
|
||||
startPage();
|
||||
List<ViewScmSaleDeliveryDetails> list = viewScmSaleDeliveryDetailsService.selectViewScmSaleDeliveryDetailsList(viewScmSaleDeliveryDetails);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出销售发货退货明细报表列表
|
||||
*/
|
||||
@ApiOperation("导出销售发货退货明细报表列表")
|
||||
@Log(title = "销售发货退货明细报表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ViewScmSaleDeliveryDetails viewScmSaleDeliveryDetails)
|
||||
{
|
||||
List<ViewScmSaleDeliveryDetails> list = viewScmSaleDeliveryDetailsService.selectViewScmSaleDeliveryDetailsList(viewScmSaleDeliveryDetails);
|
||||
ExcelUtil<ViewScmSaleDeliveryDetails> util = new ExcelUtil<ViewScmSaleDeliveryDetails>(ViewScmSaleDeliveryDetails.class);
|
||||
util.exportExcel(response, list, "销售发货退货明细报表数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取销售发货退货明细报表详细信息
|
||||
*/
|
||||
@ApiOperation("获取销售发货退货明细报表详细信息")
|
||||
@GetMapping(value = "/{deliveryId}")
|
||||
public BaseResult<ViewScmSaleDeliveryDetails> getInfo(@PathVariable("deliveryId") Long deliveryId)
|
||||
{
|
||||
return BaseResult.success(viewScmSaleDeliveryDetailsService.selectViewScmSaleDeliveryDetailsByDeliveryId(deliveryId));
|
||||
}
|
||||
}
|
@ -0,0 +1,129 @@
|
||||
package com.zhonghui.carbonReport.controller;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.RepContractDeliveryReturnDetail;
|
||||
import com.zhonghui.carbonReport.domain.ViewScmSaleContract;
|
||||
import com.zhonghui.carbonReport.domain.ViewScmSaleContractDetails;
|
||||
import com.zhonghui.carbonReport.service.IViewScmSaleContractDetailsService;
|
||||
import com.zhonghui.carbonReport.service.IViewScmSaleContractService;
|
||||
import com.zhonghui.common.annotation.Log;
|
||||
import com.zhonghui.common.core.controller.BaseController;
|
||||
import com.zhonghui.common.core.domain.AjaxResult;
|
||||
import com.zhonghui.common.core.page.TableDataInfo;
|
||||
import com.zhonghui.common.enums.BusinessType;
|
||||
import com.zhonghui.common.utils.poi.ExcelUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 销售报表统计Controller
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@Api(tags = {"供应链SCM-销售报表统计"})
|
||||
@RestController
|
||||
@RequestMapping("/carbonReport/scmSale")
|
||||
public class ViewScmSaleReportController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IViewScmSaleContractDetailsService viewScmSaleContractDetailsService;
|
||||
|
||||
@Autowired
|
||||
private IViewScmSaleContractService viewScmSaleContractService;
|
||||
|
||||
/**
|
||||
* 查询销售合同明细报表列表
|
||||
*/
|
||||
@ApiOperation("查询销售合同明细列表")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<List<ViewScmSaleContractDetails>> list(ViewScmSaleContractDetails viewScmSaleContractDetails)
|
||||
{
|
||||
startPage();
|
||||
List<ViewScmSaleContractDetails> list = viewScmSaleContractDetailsService.selectViewScmSaleContractDetailsList(viewScmSaleContractDetails);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出销售合同明细报表列表
|
||||
*/
|
||||
@ApiOperation("导出销售合同明细列表")
|
||||
@Log(title = "销售合同明细报表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ViewScmSaleContractDetails viewScmSaleContractDetails)
|
||||
{
|
||||
List<ViewScmSaleContractDetails> list = viewScmSaleContractDetailsService.selectViewScmSaleContractDetailsList(viewScmSaleContractDetails);
|
||||
ExcelUtil<ViewScmSaleContractDetails> util = new ExcelUtil<ViewScmSaleContractDetails>(ViewScmSaleContractDetails.class);
|
||||
util.exportExcel(response, list, "销售合同明细报表数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 销售台账
|
||||
*/
|
||||
@GetMapping("/saleBook/list")
|
||||
@ApiOperation("销售台账")
|
||||
public TableDataInfo saleBookList(ViewScmSaleContractDetails viewScmSaleContractDetails) {
|
||||
startPage();
|
||||
List<ViewScmSaleContractDetails> list = viewScmSaleContractDetailsService.selectSaleBookReport(viewScmSaleContractDetails);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出销售台账
|
||||
*/
|
||||
@ApiOperation("导出销售台账")
|
||||
@Log(title = "销售台账", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/saleBook/export")
|
||||
public void exportSaleBook(HttpServletResponse response, ViewScmSaleContractDetails viewScmSaleContractDetails) {
|
||||
List<ViewScmSaleContractDetails> list = viewScmSaleContractDetailsService.selectSaleBookReport(viewScmSaleContractDetails);
|
||||
ExcelUtil<ViewScmSaleContractDetails> util = new ExcelUtil<ViewScmSaleContractDetails>(ViewScmSaleContractDetails.class);
|
||||
util.exportExcel(response, list, "销售台账");
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询月销售合同报表列表
|
||||
*/
|
||||
@GetMapping("/saleContractReport/byMonth")
|
||||
@ApiOperation("查询销售合同报表列表")
|
||||
public TableDataInfo selectMonthSaleContractReport(ViewScmSaleContract viewScmSaleContract) {
|
||||
startPage();
|
||||
List<ViewScmSaleContract> list = viewScmSaleContractService.selectMonthSaleContractReport(viewScmSaleContract);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出销售合同报表列表
|
||||
*/
|
||||
@ApiOperation("导出销售合同报表列表")
|
||||
@Log(title = "销售合同报表", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/saleContractReport/month/export")
|
||||
public AjaxResult export(ViewScmSaleContract viewScmSaleContract) {
|
||||
List<ViewScmSaleContract> list = viewScmSaleContractService.selectViewScmSaleContractList(viewScmSaleContract);
|
||||
ExcelUtil<ViewScmSaleContract> util = new ExcelUtil<ViewScmSaleContract>(ViewScmSaleContract.class);
|
||||
return util.exportExcel(list, "saleContractReport");
|
||||
}
|
||||
|
||||
@GetMapping("/contractDeliveryReturnReport/byMonth")
|
||||
@ApiOperation("按月份统计销售-发货-退货报表")
|
||||
public TableDataInfo selectContractDeliveryReturnMonthReport(RepContractDeliveryReturnDetail contractDeliveryReturnDetail) {
|
||||
startPage();
|
||||
List<RepContractDeliveryReturnDetail> list = viewScmSaleContractDetailsService.selectContractDeliveryReturnMonthReport(contractDeliveryReturnDetail);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@GetMapping("/contractDeliveryReturnReport/byQuarter")
|
||||
@ApiOperation("按季度统计销售-发货-退货报表")
|
||||
public TableDataInfo selectContractDeliveryReturnQuarterReport(RepContractDeliveryReturnDetail contractDeliveryReturnDetail) {
|
||||
startPage();
|
||||
List<RepContractDeliveryReturnDetail> list = viewScmSaleContractDetailsService.selectContractDeliveryReturnQuarterReport(contractDeliveryReturnDetail);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,91 @@
|
||||
package com.zhonghui.carbonReport.controller;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewScmSaleContractDetails;
|
||||
import com.zhonghui.carbonReport.domain.ViewScmSaleScheduleDetails;
|
||||
import com.zhonghui.carbonReport.service.IViewScmSaleContractDetailsService;
|
||||
import com.zhonghui.carbonReport.service.IViewScmSaleScheduleDetailsService;
|
||||
import com.zhonghui.common.annotation.Log;
|
||||
import com.zhonghui.common.core.controller.BaseController;
|
||||
import com.zhonghui.common.core.domain.AjaxResult;
|
||||
import com.zhonghui.common.core.page.TableDataInfo;
|
||||
import com.zhonghui.common.enums.BusinessType;
|
||||
import com.zhonghui.common.utils.DateUtils;
|
||||
import com.zhonghui.common.utils.poi.ExcelUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
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.RestController;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 销售计划达成率报表Controller
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-25
|
||||
*/
|
||||
@Api(tags = {"供应链SCM-销售计划达成率报表"})
|
||||
@RestController
|
||||
@RequestMapping("/carbonReport/saleScheduleDetails")
|
||||
public class ViewScmSaleScheduleDetailsController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IViewScmSaleScheduleDetailsService viewScmSaleScheduleDetailsService;
|
||||
|
||||
@Autowired
|
||||
private IViewScmSaleContractDetailsService viewScmSaleContractDetailsService;
|
||||
|
||||
/**
|
||||
* 查询销售计划达成率报表列表
|
||||
*/
|
||||
@ApiOperation("查询销售计划达成率报表列表")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<List<ViewScmSaleScheduleDetails>> list(ViewScmSaleScheduleDetails viewScmSaleScheduleDetails)
|
||||
{
|
||||
startPage();
|
||||
List<ViewScmSaleScheduleDetails> list = viewScmSaleScheduleDetailsService.selectViewScmSaleScheduleDetailsList(viewScmSaleScheduleDetails);
|
||||
list.stream().forEach(item -> {
|
||||
ViewScmSaleContractDetails viewScmSaleContractDetails = new ViewScmSaleContractDetails();
|
||||
viewScmSaleContractDetails.getParams().put("beginSignDate", DateUtils.dateTime(item.getStartDate()));
|
||||
viewScmSaleContractDetails.getParams().put("endSignDate", DateUtils.dateTime(item.getEndDate()));
|
||||
viewScmSaleContractDetails.setMaterialId(item.getMaterialId());
|
||||
List<ViewScmSaleContractDetails> detailList = viewScmSaleContractDetailsService.selectViewScmSaleContractDetailsList(viewScmSaleContractDetails);
|
||||
BigDecimal saleAmount = new BigDecimal("0");
|
||||
for (ViewScmSaleContractDetails detail : detailList) {
|
||||
saleAmount = saleAmount.add(detail.getTotalAmount());
|
||||
}
|
||||
item.setSaleAmount(saleAmount);
|
||||
});
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出销售计划达成率报表列表
|
||||
*/
|
||||
@ApiOperation("导出销售计划达成率报表列表")
|
||||
@Log(title = "销售计划达成率报表", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(ViewScmSaleScheduleDetails viewScmSaleScheduleDetails) {
|
||||
List<ViewScmSaleScheduleDetails> list = viewScmSaleScheduleDetailsService.selectViewScmSaleScheduleDetailsList(viewScmSaleScheduleDetails);
|
||||
list.stream().forEach(item -> {
|
||||
ViewScmSaleContractDetails viewScmSaleContractDetails = new ViewScmSaleContractDetails();
|
||||
viewScmSaleContractDetails.getParams().put("beginSignDate", DateUtils.dateTime(item.getStartDate()));
|
||||
viewScmSaleContractDetails.getParams().put("endSignDate", DateUtils.dateTime(item.getEndDate()));
|
||||
viewScmSaleContractDetails.setMaterialId(item.getMaterialId());
|
||||
List<ViewScmSaleContractDetails> detailList = viewScmSaleContractDetailsService.selectViewScmSaleContractDetailsList(viewScmSaleContractDetails);
|
||||
BigDecimal saleAmount = new BigDecimal("0");
|
||||
for (ViewScmSaleContractDetails detail : detailList) {
|
||||
saleAmount = saleAmount.add(detail.getTotalAmount());
|
||||
}
|
||||
item.setSaleAmount(saleAmount);
|
||||
if (saleAmount.compareTo(item.getSales()) >= 0) {
|
||||
item.setStatus("1");
|
||||
}
|
||||
});
|
||||
ExcelUtil<ViewScmSaleScheduleDetails> util = new ExcelUtil<ViewScmSaleScheduleDetails>(ViewScmSaleScheduleDetails.class);
|
||||
return util.exportExcel(list, "saleScheduleDetailsReport");
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
package com.zhonghui.carbonReport.controller;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewWmsInWarehouseDetails;
|
||||
import com.zhonghui.carbonReport.service.IViewWmsInWarehouseDetailsService;
|
||||
import com.zhonghui.common.annotation.Log;
|
||||
import com.zhonghui.common.core.controller.BaseController;
|
||||
import com.zhonghui.common.core.page.TableDataInfo;
|
||||
import com.zhonghui.common.enums.BusinessType;
|
||||
import com.zhonghui.common.utils.poi.ExcelUtil;
|
||||
import com.zhonghui.response.BaseResult;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 入库明细报表Controller
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-29
|
||||
*/
|
||||
@Api(tags = {"智能仓储WMS-入库明细报表"})
|
||||
@RestController
|
||||
@RequestMapping("/carbonReport/inWarehouseDetails")
|
||||
public class ViewWmsInWarehouseDetailsController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IViewWmsInWarehouseDetailsService viewWmsInWarehouseDetailsService;
|
||||
|
||||
/**
|
||||
* 查询入库明细报表列表
|
||||
*/
|
||||
@ApiOperation("查询入库明细报表列表")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<List<ViewWmsInWarehouseDetails>> list(ViewWmsInWarehouseDetails viewWmsInWarehouseDetails)
|
||||
{
|
||||
startPage();
|
||||
List<ViewWmsInWarehouseDetails> list = viewWmsInWarehouseDetailsService.selectViewWmsInWarehouseDetailsList(viewWmsInWarehouseDetails);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出入库明细报表列表
|
||||
*/
|
||||
@ApiOperation("导出入库明细报表列表")
|
||||
@Log(title = "入库明细报表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ViewWmsInWarehouseDetails viewWmsInWarehouseDetails)
|
||||
{
|
||||
List<ViewWmsInWarehouseDetails> list = viewWmsInWarehouseDetailsService.selectViewWmsInWarehouseDetailsList(viewWmsInWarehouseDetails);
|
||||
ExcelUtil<ViewWmsInWarehouseDetails> util = new ExcelUtil<ViewWmsInWarehouseDetails>(ViewWmsInWarehouseDetails.class);
|
||||
util.exportExcel(response, list, "入库明细报表数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取入库明细报表详细信息
|
||||
*/
|
||||
@ApiOperation("获取入库明细报表详细信息")
|
||||
@GetMapping(value = "/{materialId}")
|
||||
public BaseResult<ViewWmsInWarehouseDetails> getInfo(@PathVariable("materialId") Long materialId)
|
||||
{
|
||||
return BaseResult.success(viewWmsInWarehouseDetailsService.selectViewWmsInWarehouseDetailsById(materialId));
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
package com.zhonghui.carbonReport.controller;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewWmsMaterialInventoryDetails;
|
||||
import com.zhonghui.carbonReport.service.IViewWmsMaterialInventoryDetailsService;
|
||||
import com.zhonghui.common.annotation.Log;
|
||||
import com.zhonghui.common.core.controller.BaseController;
|
||||
import com.zhonghui.common.core.page.TableDataInfo;
|
||||
import com.zhonghui.common.enums.BusinessType;
|
||||
import com.zhonghui.common.utils.poi.ExcelUtil;
|
||||
import com.zhonghui.response.BaseResult;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 库存明细报表Controller
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-29
|
||||
*/
|
||||
@Api(tags = {"智能仓储WMS-库存明细报表"})
|
||||
@RestController
|
||||
@RequestMapping("/carbonReport/materialInventoryDetails")
|
||||
public class ViewWmsMaterialInventoryDetailsController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IViewWmsMaterialInventoryDetailsService viewWmsMaterialInventoryDetailsService;
|
||||
|
||||
/**
|
||||
* 查询库存明细报表列表
|
||||
*/
|
||||
@ApiOperation("查询库存明细报表列表")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<List<ViewWmsMaterialInventoryDetails>> list(ViewWmsMaterialInventoryDetails viewWmsMaterialInventoryDetails)
|
||||
{
|
||||
startPage();
|
||||
List<ViewWmsMaterialInventoryDetails> list = viewWmsMaterialInventoryDetailsService.selectViewWmsMaterialInventoryDetailsList(viewWmsMaterialInventoryDetails);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出库存明细报表列表
|
||||
*/
|
||||
@ApiOperation("导出库存明细报表列表")
|
||||
@Log(title = "库存明细报表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ViewWmsMaterialInventoryDetails viewWmsMaterialInventoryDetails)
|
||||
{
|
||||
List<ViewWmsMaterialInventoryDetails> list = viewWmsMaterialInventoryDetailsService.selectViewWmsMaterialInventoryDetailsList(viewWmsMaterialInventoryDetails);
|
||||
ExcelUtil<ViewWmsMaterialInventoryDetails> util = new ExcelUtil<ViewWmsMaterialInventoryDetails>(ViewWmsMaterialInventoryDetails.class);
|
||||
util.exportExcel(response, list, "库存明细报表数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取库存明细报表详细信息
|
||||
*/
|
||||
@ApiOperation("获取库存明细报表详细信息")
|
||||
@GetMapping(value = "/{warehouseId}")
|
||||
public BaseResult<ViewWmsMaterialInventoryDetails> getInfo(@PathVariable("warehouseId") Long warehouseId)
|
||||
{
|
||||
return BaseResult.success(viewWmsMaterialInventoryDetailsService.selectViewWmsMaterialInventoryDetailsById(warehouseId));
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
package com.zhonghui.carbonReport.controller;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewWmsOutWarehouseDetails;
|
||||
import com.zhonghui.carbonReport.service.IViewWmsOutWarehouseDetailsService;
|
||||
import com.zhonghui.common.annotation.Log;
|
||||
import com.zhonghui.common.core.controller.BaseController;
|
||||
import com.zhonghui.common.core.page.TableDataInfo;
|
||||
import com.zhonghui.common.enums.BusinessType;
|
||||
import com.zhonghui.common.utils.poi.ExcelUtil;
|
||||
import com.zhonghui.response.BaseResult;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 物料出库明细报表Controller
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-29
|
||||
*/
|
||||
@Api(tags = {"智能仓储WMS-物料出库明细报表"})
|
||||
@RestController
|
||||
@RequestMapping("/carbonReport/outWarehouseDetails")
|
||||
public class ViewWmsOutWarehouseDetailsController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IViewWmsOutWarehouseDetailsService viewWmsOutWarehouseDetailsService;
|
||||
|
||||
/**
|
||||
* 查询物料出库明细报表列表
|
||||
*/
|
||||
@ApiOperation("查询物料出库明细报表列表")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<List<ViewWmsOutWarehouseDetails>> list(ViewWmsOutWarehouseDetails viewWmsOutWarehouseDetails)
|
||||
{
|
||||
startPage();
|
||||
List<ViewWmsOutWarehouseDetails> list = viewWmsOutWarehouseDetailsService.selectViewWmsOutWarehouseDetailsList(viewWmsOutWarehouseDetails);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出物料出库明细报表列表
|
||||
*/
|
||||
@ApiOperation("导出物料出库明细报表列表")
|
||||
@Log(title = "物料出库明细报表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ViewWmsOutWarehouseDetails viewWmsOutWarehouseDetails)
|
||||
{
|
||||
List<ViewWmsOutWarehouseDetails> list = viewWmsOutWarehouseDetailsService.selectViewWmsOutWarehouseDetailsList(viewWmsOutWarehouseDetails);
|
||||
ExcelUtil<ViewWmsOutWarehouseDetails> util = new ExcelUtil<ViewWmsOutWarehouseDetails>(ViewWmsOutWarehouseDetails.class);
|
||||
util.exportExcel(response, list, "物料出库明细报表数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取物料出库明细报表详细信息
|
||||
*/
|
||||
@ApiOperation("获取物料出库明细报表详细信息")
|
||||
@GetMapping(value = "/{materialId}")
|
||||
public BaseResult<ViewWmsOutWarehouseDetails> getInfo(@PathVariable("materialId") Long materialId)
|
||||
{
|
||||
return BaseResult.success(viewWmsOutWarehouseDetailsService.selectViewWmsOutWarehouseDetailsByMaterialId(materialId));
|
||||
}
|
||||
}
|
@ -0,0 +1,88 @@
|
||||
package com.zhonghui.carbonReport.domain;
|
||||
|
||||
import com.zhonghui.common.annotation.Excel;
|
||||
import com.zhonghui.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 销售-发货-退货报表实体 RepSaleDeliveryReturn
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-29
|
||||
*/
|
||||
@ApiModel("销售-发货-退货报表实体")
|
||||
@Data
|
||||
public class RepContractDeliveryReturnDetail extends BaseEntity {
|
||||
|
||||
/** 客户ID */
|
||||
@ApiModelProperty("客户ID")
|
||||
private Long customId;
|
||||
|
||||
/** 年份 */
|
||||
@ApiModelProperty("年份")
|
||||
private String contractYear;
|
||||
|
||||
/** 季度 */
|
||||
@ApiModelProperty("季度")
|
||||
private String contractQuarter;
|
||||
|
||||
/** 月份 */
|
||||
@ApiModelProperty("月份")
|
||||
private String contractMonth;
|
||||
|
||||
/** 物料id */
|
||||
@ApiModelProperty("物料id")
|
||||
private Long materialId;
|
||||
|
||||
/** 物料编码 */
|
||||
@ApiModelProperty("物料编码")
|
||||
@Excel(name = "物料编码")
|
||||
private String materialCode;
|
||||
|
||||
/** 型号 */
|
||||
@ApiModelProperty("型号")
|
||||
@Excel(name = "型号")
|
||||
private String materialModel;
|
||||
|
||||
/** 规格 */
|
||||
@ApiModelProperty("规格")
|
||||
@Excel(name = "规格")
|
||||
private String materialSpecification;
|
||||
|
||||
/** 单位 */
|
||||
@ApiModelProperty("单位")
|
||||
@Excel(name = "单位")
|
||||
private String materialUnit;
|
||||
|
||||
/** 物料名称 */
|
||||
@ApiModelProperty("物料名称")
|
||||
@Excel(name = "物料名称")
|
||||
private String materialName;
|
||||
|
||||
/** 销售数量 */
|
||||
@ApiModelProperty("销售数量")
|
||||
@Excel(name = "销售数量")
|
||||
private Double saleNum;
|
||||
|
||||
/** 已收金额 */
|
||||
@ApiModelProperty("已收金额")
|
||||
@Excel(name = "已收金额")
|
||||
private Double incomeAmount;
|
||||
|
||||
/** 已发数量 */
|
||||
@ApiModelProperty("已发数量")
|
||||
@Excel(name = "已发数量")
|
||||
private Double deliveryNum;
|
||||
|
||||
/** 退货数量 */
|
||||
@ApiModelProperty("退货数量")
|
||||
@Excel(name = "退货数量")
|
||||
private Double returnNum;
|
||||
|
||||
/** 退款金额 */
|
||||
@ApiModelProperty("退款金额")
|
||||
@Excel(name = "退款金额")
|
||||
private Double returnAmount;
|
||||
}
|
@ -0,0 +1,78 @@
|
||||
package com.zhonghui.carbonReport.domain;
|
||||
|
||||
import com.zhonghui.common.annotation.Excel;
|
||||
import com.zhonghui.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 采购-入库-退货报表实体
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@ApiModel("采购-入库-退货报表实体")
|
||||
@Data
|
||||
public class ScmContractArriveReturnDetail extends BaseEntity {
|
||||
|
||||
/** 供应商ID */
|
||||
@ApiModelProperty("供应商ID")
|
||||
private Long supplierId;
|
||||
|
||||
/** 合同年份 */
|
||||
@ApiModelProperty("合同年份")
|
||||
@Excel(name = "合同年份")
|
||||
private String contractYear;
|
||||
|
||||
/** 合同月份 */
|
||||
@ApiModelProperty("合同月份")
|
||||
@Excel(name = "合同月份")
|
||||
private String contractMonth;
|
||||
|
||||
/** 合同季度 */
|
||||
@ApiModelProperty("合同季度")
|
||||
@Excel(name = "合同季度")
|
||||
private String contractQuarter;
|
||||
|
||||
/** 物料id */
|
||||
@ApiModelProperty("物料id")
|
||||
private Long materialId;
|
||||
|
||||
/** 物料名称 */
|
||||
@ApiModelProperty("物料名称")
|
||||
@Excel(name = "物料名称")
|
||||
private String materialName;
|
||||
|
||||
/** 采购数量 */
|
||||
@ApiModelProperty("采购数量")
|
||||
@Excel(name = "采购数量")
|
||||
private Double purchaseNum;
|
||||
|
||||
/** 到货数量 */
|
||||
@ApiModelProperty("到货数量")
|
||||
@Excel(name = "到货数量")
|
||||
private Double arriveNum;
|
||||
|
||||
/** 退货数量 */
|
||||
@ApiModelProperty("退货数量")
|
||||
@Excel(name = "退货数量")
|
||||
private Double returnNum;
|
||||
|
||||
/** 入库数量 */
|
||||
@ApiModelProperty("入库数量")
|
||||
@Excel(name = "入库数量")
|
||||
private Double inWarehouseNum;
|
||||
|
||||
/** 采购总金额 */
|
||||
@ApiModelProperty("采购总金额")
|
||||
@Excel(name = "采购总金额")
|
||||
private BigDecimal purchaseAmount;
|
||||
|
||||
/** 退款金额 */
|
||||
@ApiModelProperty("退款金额")
|
||||
@Excel(name = "退款金额")
|
||||
private BigDecimal returnAmount;
|
||||
}
|
@ -0,0 +1,146 @@
|
||||
package com.zhonghui.carbonReport.domain;
|
||||
|
||||
import com.zhonghui.common.annotation.Excel;
|
||||
import com.zhonghui.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 能耗临时对象 tmp_energy_consume
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-25
|
||||
*/
|
||||
@ApiModel("能耗临时对象")
|
||||
public class TmpEnergyConsume extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 编号 */
|
||||
@ApiModelProperty("编号")
|
||||
private Long id;
|
||||
|
||||
/** 类型:0消耗1节约 */
|
||||
@Excel(name = "类型:0消耗1节约")
|
||||
@ApiModelProperty("类型:0消耗1节约")
|
||||
private Integer type;
|
||||
|
||||
/** 分类:1电2水 */
|
||||
@Excel(name = "分类:1电2水")
|
||||
@ApiModelProperty("分类:1电2水")
|
||||
private Integer category;
|
||||
|
||||
/** 月份 */
|
||||
@Excel(name = "月份")
|
||||
@ApiModelProperty("月份")
|
||||
private String month;
|
||||
|
||||
/** 日期 */
|
||||
@Excel(name = "日期")
|
||||
@ApiModelProperty("日期")
|
||||
private String day;
|
||||
|
||||
/** 能耗数或节约数 */
|
||||
@Excel(name = "能耗数或节约数")
|
||||
@ApiModelProperty("能耗数或节约数")
|
||||
private Double energy;
|
||||
|
||||
/** 项目类型 */
|
||||
@Excel(name = "项目类型")
|
||||
@ApiModelProperty("项目类型")
|
||||
private Integer itemCategory;
|
||||
|
||||
/** 年份 */
|
||||
@Excel(name = "年份")
|
||||
@ApiModelProperty("年份")
|
||||
private String year;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setType(Integer type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Integer getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
public void setCategory(Integer category)
|
||||
{
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
public Integer getCategory()
|
||||
{
|
||||
return category;
|
||||
}
|
||||
public void setMonth(String month)
|
||||
{
|
||||
this.month = month;
|
||||
}
|
||||
|
||||
public String getMonth()
|
||||
{
|
||||
return month;
|
||||
}
|
||||
public void setDay(String day)
|
||||
{
|
||||
this.day = day;
|
||||
}
|
||||
|
||||
public String getDay()
|
||||
{
|
||||
return day;
|
||||
}
|
||||
public void setEnergy(Double energy)
|
||||
{
|
||||
this.energy = energy;
|
||||
}
|
||||
|
||||
public Double getEnergy()
|
||||
{
|
||||
return energy;
|
||||
}
|
||||
public void setItemCategory(Integer itemCategory)
|
||||
{
|
||||
this.itemCategory = itemCategory;
|
||||
}
|
||||
|
||||
public Integer getItemCategory()
|
||||
{
|
||||
return itemCategory;
|
||||
}
|
||||
public void setYear(String year)
|
||||
{
|
||||
this.year = year;
|
||||
}
|
||||
|
||||
public String getYear()
|
||||
{
|
||||
return year;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("type", getType())
|
||||
.append("category", getCategory())
|
||||
.append("month", getMonth())
|
||||
.append("day", getDay())
|
||||
.append("energy", getEnergy())
|
||||
.append("itemCategory", getItemCategory())
|
||||
.append("year", getYear())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,294 @@
|
||||
package com.zhonghui.carbonReport.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.zhonghui.common.annotation.Excel;
|
||||
import com.zhonghui.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 设备能耗数据采集对象 view_mes_device_power_details
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@ApiModel("设备能耗数据采集对象")
|
||||
public class ViewMesDevicePowerDetails extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 设备ID */
|
||||
@Excel(name = "设备ID")
|
||||
@ApiModelProperty("设备ID")
|
||||
private Long deviceId;
|
||||
|
||||
/** 设备名称 */
|
||||
@Excel(name = "设备名称")
|
||||
@ApiModelProperty("设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/** 工厂id */
|
||||
@Excel(name = "工厂id")
|
||||
@ApiModelProperty("工厂id")
|
||||
private Long factoryId;
|
||||
|
||||
/** 生产计划id */
|
||||
@Excel(name = "生产计划id")
|
||||
@ApiModelProperty("生产计划id")
|
||||
private Long productionPlanId;
|
||||
|
||||
/** 物料id */
|
||||
@Excel(name = "物料id")
|
||||
@ApiModelProperty("物料id")
|
||||
private Long materialId;
|
||||
|
||||
/** bomid */
|
||||
@Excel(name = "bomid")
|
||||
@ApiModelProperty("bomid")
|
||||
private Long bomId;
|
||||
|
||||
/** 工艺id */
|
||||
@Excel(name = "工艺id")
|
||||
@ApiModelProperty("工艺id")
|
||||
private Long technologyId;
|
||||
|
||||
/** 待产数量 */
|
||||
@Excel(name = "待产数量")
|
||||
@ApiModelProperty("待产数量")
|
||||
private Double producedQuantity;
|
||||
|
||||
/** 已产数量 */
|
||||
@Excel(name = "已产数量")
|
||||
@ApiModelProperty("已产数量")
|
||||
private Double quantityProduced;
|
||||
|
||||
/** 生产日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty("生产日期")
|
||||
private Date manufactureDate;
|
||||
|
||||
/** 工艺名称 */
|
||||
@Excel(name = "工艺名称")
|
||||
@ApiModelProperty("工艺名称")
|
||||
private String technologyName;
|
||||
|
||||
/** 单位耗电量 */
|
||||
@Excel(name = "单位耗电量")
|
||||
@ApiModelProperty("单位耗电量")
|
||||
private Double unitPowerConsumption;
|
||||
|
||||
/** 总耗电量 */
|
||||
@Excel(name = "总耗电量")
|
||||
@ApiModelProperty("总耗电量")
|
||||
private Double totalPowerConsume;
|
||||
|
||||
/** 生产线名称 */
|
||||
@Excel(name = "生产线名称")
|
||||
@ApiModelProperty("生产线名称")
|
||||
private String productionLine;
|
||||
|
||||
/** 订单编号 */
|
||||
@Excel(name = "订单编号")
|
||||
@ApiModelProperty("订单编号")
|
||||
private Long saleOrderId;
|
||||
|
||||
/** 单位碳排放量 */
|
||||
@ApiModelProperty("单位碳排放量")
|
||||
@Excel(name = "单位碳排放量")
|
||||
private Double carbonEmission;
|
||||
|
||||
/** 总碳排放量 */
|
||||
@ApiModelProperty("总碳排放量")
|
||||
@Excel(name = "总碳排放量")
|
||||
private Double totalCarbonEmission;
|
||||
|
||||
private String hour;
|
||||
|
||||
public void setDeviceId(Long deviceId)
|
||||
{
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public Long getDeviceId()
|
||||
{
|
||||
return deviceId;
|
||||
}
|
||||
public void setDeviceName(String deviceName)
|
||||
{
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceName()
|
||||
{
|
||||
return deviceName;
|
||||
}
|
||||
public void setFactoryId(Long factoryId)
|
||||
{
|
||||
this.factoryId = factoryId;
|
||||
}
|
||||
|
||||
public Long getFactoryId()
|
||||
{
|
||||
return factoryId;
|
||||
}
|
||||
public void setProductionPlanId(Long productionPlanId)
|
||||
{
|
||||
this.productionPlanId = productionPlanId;
|
||||
}
|
||||
|
||||
public Long getProductionPlanId()
|
||||
{
|
||||
return productionPlanId;
|
||||
}
|
||||
public void setMaterialId(Long materialId)
|
||||
{
|
||||
this.materialId = materialId;
|
||||
}
|
||||
|
||||
public Long getMaterialId()
|
||||
{
|
||||
return materialId;
|
||||
}
|
||||
public void setBomId(Long bomId)
|
||||
{
|
||||
this.bomId = bomId;
|
||||
}
|
||||
|
||||
public Long getBomId()
|
||||
{
|
||||
return bomId;
|
||||
}
|
||||
public void setTechnologyId(Long technologyId)
|
||||
{
|
||||
this.technologyId = technologyId;
|
||||
}
|
||||
|
||||
public Long getTechnologyId()
|
||||
{
|
||||
return technologyId;
|
||||
}
|
||||
public void setProducedQuantity(Double producedQuantity)
|
||||
{
|
||||
this.producedQuantity = producedQuantity;
|
||||
}
|
||||
|
||||
public Double getProducedQuantity()
|
||||
{
|
||||
return producedQuantity;
|
||||
}
|
||||
public void setQuantityProduced(Double quantityProduced)
|
||||
{
|
||||
this.quantityProduced = quantityProduced;
|
||||
}
|
||||
|
||||
public Double getQuantityProduced()
|
||||
{
|
||||
return quantityProduced;
|
||||
}
|
||||
public void setManufactureDate(Date manufactureDate)
|
||||
{
|
||||
this.manufactureDate = manufactureDate;
|
||||
}
|
||||
|
||||
public Date getManufactureDate()
|
||||
{
|
||||
return manufactureDate;
|
||||
}
|
||||
public void setTechnologyName(String technologyName)
|
||||
{
|
||||
this.technologyName = technologyName;
|
||||
}
|
||||
|
||||
public String getTechnologyName()
|
||||
{
|
||||
return technologyName;
|
||||
}
|
||||
public void setUnitPowerConsumption(Double unitPowerConsumption)
|
||||
{
|
||||
this.unitPowerConsumption = unitPowerConsumption;
|
||||
}
|
||||
|
||||
public Double getUnitPowerConsumption()
|
||||
{
|
||||
return unitPowerConsumption;
|
||||
}
|
||||
public void setTotalPowerConsume(Double totalPowerConsume)
|
||||
{
|
||||
this.totalPowerConsume = totalPowerConsume;
|
||||
}
|
||||
|
||||
public Double getTotalPowerConsume()
|
||||
{
|
||||
return totalPowerConsume;
|
||||
}
|
||||
public void setProductionLine(String productionLine)
|
||||
{
|
||||
this.productionLine = productionLine;
|
||||
}
|
||||
|
||||
public String getProductionLine()
|
||||
{
|
||||
return productionLine;
|
||||
}
|
||||
public void setSaleOrderId(Long saleOrderId)
|
||||
{
|
||||
this.saleOrderId = saleOrderId;
|
||||
}
|
||||
|
||||
public Long getSaleOrderId()
|
||||
{
|
||||
return saleOrderId;
|
||||
}
|
||||
public Double getCarbonEmission() {
|
||||
return carbonEmission;
|
||||
}
|
||||
|
||||
public void setCarbonEmission(Double carbonEmission) {
|
||||
this.carbonEmission = carbonEmission;
|
||||
}
|
||||
|
||||
public Double getTotalCarbonEmission() {
|
||||
return totalCarbonEmission;
|
||||
}
|
||||
|
||||
public void setTotalCarbonEmission(Double totalCarbonEmission) {
|
||||
this.totalCarbonEmission = totalCarbonEmission;
|
||||
}
|
||||
|
||||
public String getHour() {
|
||||
return hour;
|
||||
}
|
||||
|
||||
public void setHour(String hour) {
|
||||
this.hour = hour;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("deviceId", getDeviceId())
|
||||
.append("deviceName", getDeviceName())
|
||||
.append("factoryId", getFactoryId())
|
||||
.append("productionPlanId", getProductionPlanId())
|
||||
.append("materialId", getMaterialId())
|
||||
.append("bomId", getBomId())
|
||||
.append("technologyId", getTechnologyId())
|
||||
.append("producedQuantity", getProducedQuantity())
|
||||
.append("quantityProduced", getQuantityProduced())
|
||||
.append("manufactureDate", getManufactureDate())
|
||||
.append("technologyName", getTechnologyName())
|
||||
.append("unitPowerConsumption", getUnitPowerConsumption())
|
||||
.append("totalPowerConsume", getTotalPowerConsume())
|
||||
.append("productionLine", getProductionLine())
|
||||
.append("saleOrderId", getSaleOrderId())
|
||||
.append("carbonEmission", getCarbonEmission())
|
||||
.append("totalCarbonEmission", getTotalCarbonEmission())
|
||||
.append("hour", getHour())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,427 @@
|
||||
package com.zhonghui.carbonReport.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.zhonghui.common.annotation.Excel;
|
||||
import com.zhonghui.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 产品能耗报表对象 view_mes_product_power_details
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@ApiModel("产品能耗报表对象")
|
||||
public class ViewMesProductPowerDetails extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 工厂id */
|
||||
@ApiModelProperty("工厂id")
|
||||
@Excel(name = "工厂id")
|
||||
private Long factoryId;
|
||||
|
||||
/** 生产计划id */
|
||||
@ApiModelProperty("生产计划id")
|
||||
@Excel(name = "生产计划id")
|
||||
private Long productionPlanId;
|
||||
|
||||
/** 物料id */
|
||||
@ApiModelProperty("物料id")
|
||||
@Excel(name = "物料id")
|
||||
private Long materialId;
|
||||
|
||||
/** bomid */
|
||||
@ApiModelProperty("bomid")
|
||||
@Excel(name = "bomid")
|
||||
private Long bomId;
|
||||
|
||||
/** 工艺id */
|
||||
@ApiModelProperty("工艺id")
|
||||
@Excel(name = "工艺id")
|
||||
private Long technologyId;
|
||||
|
||||
/** 待产数量 */
|
||||
@ApiModelProperty("待产数量")
|
||||
@Excel(name = "待产数量")
|
||||
private Double producedQuantity;
|
||||
|
||||
/** 已产数量 */
|
||||
@ApiModelProperty("已产数量")
|
||||
@Excel(name = "已产数量")
|
||||
private Double quantityProduced;
|
||||
|
||||
/** 生产日期 */
|
||||
@ApiModelProperty("生产日期")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date manufactureDate;
|
||||
|
||||
/** 工艺名称 */
|
||||
@ApiModelProperty("工艺名称")
|
||||
@Excel(name = "工艺名称")
|
||||
private String technologyName;
|
||||
|
||||
/** 单位耗电量 */
|
||||
@ApiModelProperty("单位耗电量")
|
||||
@Excel(name = "单位耗电量")
|
||||
private Double unitPowerConsumption;
|
||||
|
||||
/** 总耗电量 */
|
||||
@ApiModelProperty("总耗电量")
|
||||
@Excel(name = "总耗电量")
|
||||
private Double totalPowerConsume;
|
||||
|
||||
/** 物料名称 */
|
||||
@ApiModelProperty("物料名称")
|
||||
@Excel(name = "物料名称")
|
||||
private String materialName;
|
||||
|
||||
/** 型号 */
|
||||
@ApiModelProperty("型号")
|
||||
@Excel(name = "型号")
|
||||
private String materialModel;
|
||||
|
||||
/** 规格 */
|
||||
@ApiModelProperty("规格")
|
||||
@Excel(name = "规格")
|
||||
private String materialSpecifications;
|
||||
|
||||
/** 单位 */
|
||||
@ApiModelProperty("单位")
|
||||
@Excel(name = "单位")
|
||||
private String materialUnit;
|
||||
|
||||
/** 生产线名称 */
|
||||
@ApiModelProperty("生产线名称")
|
||||
@Excel(name = "生产线名称")
|
||||
private String productionLine;
|
||||
|
||||
/** 订单编号 */
|
||||
@ApiModelProperty("订单编号")
|
||||
@Excel(name = "订单编号")
|
||||
private Long saleOrderId;
|
||||
|
||||
/** 总库存 */
|
||||
@ApiModelProperty("总库存")
|
||||
@Excel(name = "总库存")
|
||||
private Double totalInventory;
|
||||
|
||||
/** 生产总节电量 */
|
||||
@ApiModelProperty("生产总节电量")
|
||||
@Excel(name = "生产总节电量")
|
||||
private Double totalProductPowerSave;
|
||||
|
||||
/** 办公总节电量 */
|
||||
@ApiModelProperty("办公总节电量")
|
||||
@Excel(name = "办公总节电量")
|
||||
private Double totalOfficePowerSave;
|
||||
|
||||
@ApiModelProperty("月份")
|
||||
@Excel(name = "月份")
|
||||
private String productMonth;
|
||||
|
||||
@ApiModelProperty("年份")
|
||||
@Excel(name = "年份")
|
||||
private String productYear;
|
||||
|
||||
/** 碳排放总量 */
|
||||
@ApiModelProperty("碳排放总量")
|
||||
@Excel(name = "碳排放总量")
|
||||
private Double totalCarbonEmission;
|
||||
|
||||
/** 减少碳排放总量 */
|
||||
@ApiModelProperty("减少碳排放总量")
|
||||
@Excel(name = "减少碳排放总量")
|
||||
private Double totalCarbonSave;
|
||||
|
||||
/** 单位碳排放量 */
|
||||
@ApiModelProperty("单位碳排放量")
|
||||
@Excel(name = "单位碳排放量")
|
||||
private Double carbonEmission;
|
||||
|
||||
/** 生产总用水量 */
|
||||
@ApiModelProperty("生产总用水量")
|
||||
@Excel(name = "生产总用水量")
|
||||
private Double totalWaterConsume;
|
||||
|
||||
/** 办公总用水量 */
|
||||
@ApiModelProperty("办公总用水量")
|
||||
@Excel(name = "办公总用水量")
|
||||
private Double totalOfficeWaterConsume;
|
||||
|
||||
/** 办公总用电量 */
|
||||
@ApiModelProperty("办公总用电量")
|
||||
@Excel(name = "办公总用电量")
|
||||
private Double totalOfficePowerConsume;
|
||||
|
||||
public void setFactoryId(Long factoryId)
|
||||
{
|
||||
this.factoryId = factoryId;
|
||||
}
|
||||
|
||||
public Long getFactoryId()
|
||||
{
|
||||
return factoryId;
|
||||
}
|
||||
public void setProductionPlanId(Long productionPlanId)
|
||||
{
|
||||
this.productionPlanId = productionPlanId;
|
||||
}
|
||||
|
||||
public Long getProductionPlanId()
|
||||
{
|
||||
return productionPlanId;
|
||||
}
|
||||
public void setMaterialId(Long materialId)
|
||||
{
|
||||
this.materialId = materialId;
|
||||
}
|
||||
|
||||
public Long getMaterialId()
|
||||
{
|
||||
return materialId;
|
||||
}
|
||||
public void setBomId(Long bomId)
|
||||
{
|
||||
this.bomId = bomId;
|
||||
}
|
||||
|
||||
public Long getBomId()
|
||||
{
|
||||
return bomId;
|
||||
}
|
||||
public void setTechnologyId(Long technologyId)
|
||||
{
|
||||
this.technologyId = technologyId;
|
||||
}
|
||||
|
||||
public Long getTechnologyId()
|
||||
{
|
||||
return technologyId;
|
||||
}
|
||||
public void setProducedQuantity(Double producedQuantity)
|
||||
{
|
||||
this.producedQuantity = producedQuantity;
|
||||
}
|
||||
|
||||
public Double getProducedQuantity()
|
||||
{
|
||||
return producedQuantity;
|
||||
}
|
||||
public void setQuantityProduced(Double quantityProduced)
|
||||
{
|
||||
this.quantityProduced = quantityProduced;
|
||||
}
|
||||
|
||||
public Double getQuantityProduced()
|
||||
{
|
||||
return quantityProduced;
|
||||
}
|
||||
public void setManufactureDate(Date manufactureDate)
|
||||
{
|
||||
this.manufactureDate = manufactureDate;
|
||||
}
|
||||
|
||||
public Date getManufactureDate()
|
||||
{
|
||||
return manufactureDate;
|
||||
}
|
||||
public void setTechnologyName(String technologyName)
|
||||
{
|
||||
this.technologyName = technologyName;
|
||||
}
|
||||
|
||||
public String getTechnologyName()
|
||||
{
|
||||
return technologyName;
|
||||
}
|
||||
public void setUnitPowerConsumption(Double unitPowerConsumption)
|
||||
{
|
||||
this.unitPowerConsumption = unitPowerConsumption;
|
||||
}
|
||||
|
||||
public Double getUnitPowerConsumption()
|
||||
{
|
||||
return unitPowerConsumption;
|
||||
}
|
||||
public void setTotalPowerConsume(Double totalPowerConsume)
|
||||
{
|
||||
this.totalPowerConsume = totalPowerConsume;
|
||||
}
|
||||
|
||||
public Double getTotalPowerConsume()
|
||||
{
|
||||
return totalPowerConsume;
|
||||
}
|
||||
public void setMaterialName(String materialName)
|
||||
{
|
||||
this.materialName = materialName;
|
||||
}
|
||||
|
||||
public String getMaterialName()
|
||||
{
|
||||
return materialName;
|
||||
}
|
||||
public void setMaterialModel(String materialModel)
|
||||
{
|
||||
this.materialModel = materialModel;
|
||||
}
|
||||
|
||||
public String getMaterialModel()
|
||||
{
|
||||
return materialModel;
|
||||
}
|
||||
public void setMaterialSpecifications(String materialSpecifications)
|
||||
{
|
||||
this.materialSpecifications = materialSpecifications;
|
||||
}
|
||||
|
||||
public String getMaterialSpecifications()
|
||||
{
|
||||
return materialSpecifications;
|
||||
}
|
||||
public void setMaterialUnit(String materialUnit)
|
||||
{
|
||||
this.materialUnit = materialUnit;
|
||||
}
|
||||
|
||||
public String getMaterialUnit()
|
||||
{
|
||||
return materialUnit;
|
||||
}
|
||||
public void setProductionLine(String productionLine)
|
||||
{
|
||||
this.productionLine = productionLine;
|
||||
}
|
||||
|
||||
public String getProductionLine()
|
||||
{
|
||||
return productionLine;
|
||||
}
|
||||
public void setSaleOrderId(Long saleOrderId)
|
||||
{
|
||||
this.saleOrderId = saleOrderId;
|
||||
}
|
||||
|
||||
public Long getSaleOrderId()
|
||||
{
|
||||
return saleOrderId;
|
||||
}
|
||||
public Double getTotalInventory() {
|
||||
return totalInventory;
|
||||
}
|
||||
|
||||
public void setTotalInventory(Double totalInventory) {
|
||||
this.totalInventory = totalInventory;
|
||||
}
|
||||
public Double getTotalProductPowerSave() {
|
||||
return totalProductPowerSave;
|
||||
}
|
||||
|
||||
public void setTotalProductPowerSave(Double totalProductPowerSave) {
|
||||
this.totalProductPowerSave = totalProductPowerSave;
|
||||
}
|
||||
|
||||
public String getProductMonth() {
|
||||
return productMonth;
|
||||
}
|
||||
|
||||
public void setProductMonth(String productMonth) {
|
||||
this.productMonth = productMonth;
|
||||
}
|
||||
|
||||
public Double getTotalOfficePowerSave() {
|
||||
return totalOfficePowerSave;
|
||||
}
|
||||
|
||||
public void setTotalOfficePowerSave(Double totalOfficePowerSave) {
|
||||
this.totalOfficePowerSave = totalOfficePowerSave;
|
||||
}
|
||||
|
||||
public Double getTotalCarbonEmission() {
|
||||
return totalCarbonEmission;
|
||||
}
|
||||
|
||||
public void setTotalCarbonEmission(Double totalCarbonEmission) {
|
||||
this.totalCarbonEmission = totalCarbonEmission;
|
||||
}
|
||||
|
||||
public Double getTotalCarbonSave() {
|
||||
return totalCarbonSave;
|
||||
}
|
||||
|
||||
public void setTotalCarbonSave(Double totalCarbonSave) {
|
||||
this.totalCarbonSave = totalCarbonSave;
|
||||
}
|
||||
|
||||
public String getProductYear() {
|
||||
return productYear;
|
||||
}
|
||||
|
||||
public void setProductYear(String productYear) {
|
||||
this.productYear = productYear;
|
||||
}
|
||||
|
||||
public Double getCarbonEmission() {
|
||||
return carbonEmission;
|
||||
}
|
||||
|
||||
public void setCarbonEmission(Double carbonEmission) {
|
||||
this.carbonEmission = carbonEmission;
|
||||
}
|
||||
public Double getTotalWaterConsume() {
|
||||
return totalWaterConsume;
|
||||
}
|
||||
|
||||
public void setTotalWaterConsume(Double totalWaterConsume) {
|
||||
this.totalWaterConsume = totalWaterConsume;
|
||||
}
|
||||
|
||||
public Double getTotalOfficeWaterConsume() {
|
||||
return totalOfficeWaterConsume;
|
||||
}
|
||||
|
||||
public void setTotalOfficeWaterConsume(Double totalOfficeWaterConsume) {
|
||||
this.totalOfficeWaterConsume = totalOfficeWaterConsume;
|
||||
}
|
||||
|
||||
public Double getTotalOfficePowerConsume() {
|
||||
return totalOfficePowerConsume;
|
||||
}
|
||||
|
||||
public void setTotalOfficePowerConsume(Double totalOfficePowerConsume) {
|
||||
this.totalOfficePowerConsume = totalOfficePowerConsume;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("factoryId", getFactoryId())
|
||||
.append("productionPlanId", getProductionPlanId())
|
||||
.append("materialId", getMaterialId())
|
||||
.append("bomId", getBomId())
|
||||
.append("technologyId", getTechnologyId())
|
||||
.append("producedQuantity", getProducedQuantity())
|
||||
.append("quantityProduced", getQuantityProduced())
|
||||
.append("manufactureDate", getManufactureDate())
|
||||
.append("technologyName", getTechnologyName())
|
||||
.append("unitPowerConsumption", getUnitPowerConsumption())
|
||||
.append("totalPowerConsume", getTotalPowerConsume())
|
||||
.append("materialName", getMaterialName())
|
||||
.append("materialModel", getMaterialModel())
|
||||
.append("materialSpecifications", getMaterialSpecifications())
|
||||
.append("materialUnit", getMaterialUnit())
|
||||
.append("productionLine", getProductionLine())
|
||||
.append("saleOrderId", getSaleOrderId())
|
||||
.append("totalInventory", getTotalInventory())
|
||||
.append("productMonth", getProductMonth())
|
||||
.append("productYear", getProductYear())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
package com.zhonghui.carbonReport.domain;
|
||||
|
||||
import com.zhonghui.common.annotation.Excel;
|
||||
import com.zhonghui.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 收支统计
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@ApiModel("收支统计")
|
||||
@Data
|
||||
public class ViewScmFinanceReport extends BaseEntity {
|
||||
|
||||
@Excel(name = "年份")
|
||||
@ApiModelProperty("年份")
|
||||
private String year;
|
||||
|
||||
@Excel(name = "季度")
|
||||
@ApiModelProperty("季度")
|
||||
private String quarter;
|
||||
|
||||
@Excel(name = "月份")
|
||||
@ApiModelProperty("月份")
|
||||
private String month;
|
||||
|
||||
@Excel(name = "采购合同金额")
|
||||
@ApiModelProperty("采购合同金额")
|
||||
private BigDecimal purchaseContractTotal;
|
||||
|
||||
@Excel(name = "采购退款金额")
|
||||
@ApiModelProperty("采购退款金额")
|
||||
private BigDecimal purchaseReturnTotal;
|
||||
|
||||
@Excel(name = "销售合同金额")
|
||||
@ApiModelProperty("销售合同金额")
|
||||
private BigDecimal saleContractTotal;
|
||||
|
||||
@Excel(name = "销售退款金额")
|
||||
@ApiModelProperty("销售退款金额")
|
||||
private BigDecimal saleReturnTotal;
|
||||
|
||||
@Excel(name = "收入总金额")
|
||||
@ApiModelProperty("收入总金额")
|
||||
private BigDecimal incomeTotal;
|
||||
|
||||
@Excel(name = "支出总金额")
|
||||
@ApiModelProperty("支出总金额")
|
||||
private BigDecimal outcomeTotal;
|
||||
}
|
@ -0,0 +1,254 @@
|
||||
package com.zhonghui.carbonReport.domain;
|
||||
|
||||
import com.zhonghui.common.annotation.Excel;
|
||||
import com.zhonghui.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 采购到货详细报表对象 view_scm_purchasing_arrive_details
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@ApiModel("采购到货详细报表对象")
|
||||
public class ViewScmPurchasingArriveDetails extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 到货id */
|
||||
@Excel(name = "到货id")
|
||||
@ApiModelProperty("到货id")
|
||||
private Long purchasingArrivalId;
|
||||
|
||||
/** 物料id */
|
||||
@Excel(name = "物料id")
|
||||
@ApiModelProperty("物料id")
|
||||
private Long materialId;
|
||||
|
||||
/** 生产批号 */
|
||||
@Excel(name = "生产批号")
|
||||
@ApiModelProperty("生产批号")
|
||||
private String batchNumber;
|
||||
|
||||
/** 退货数量 */
|
||||
@Excel(name = "退货数量")
|
||||
@ApiModelProperty("退货数量")
|
||||
private Long returnQuantity;
|
||||
|
||||
/** 到货数量 */
|
||||
@Excel(name = "到货数量")
|
||||
@ApiModelProperty("到货数量")
|
||||
private Long arrivalQuantity;
|
||||
|
||||
/** 供应商名称 */
|
||||
@Excel(name = "供应商名称")
|
||||
@ApiModelProperty("供应商名称")
|
||||
private String supplierName;
|
||||
|
||||
/** 物料编码 */
|
||||
@Excel(name = "物料编码")
|
||||
@ApiModelProperty("物料编码")
|
||||
private String materialCode;
|
||||
|
||||
/** 物料名称 */
|
||||
@Excel(name = "物料名称")
|
||||
@ApiModelProperty("物料名称")
|
||||
private String materialName;
|
||||
|
||||
/** 型号 */
|
||||
@Excel(name = "型号")
|
||||
@ApiModelProperty("型号")
|
||||
private String materialModel;
|
||||
|
||||
/** 规格 */
|
||||
@Excel(name = "规格")
|
||||
@ApiModelProperty("规格")
|
||||
private String materialSpecifications;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
@ApiModelProperty("单位")
|
||||
private String materialUnit;
|
||||
|
||||
/** 单价 */
|
||||
@Excel(name = "单价")
|
||||
@ApiModelProperty("单价")
|
||||
private BigDecimal materialPrice;
|
||||
|
||||
/** 合同编号 */
|
||||
@Excel(name = "合同编号")
|
||||
@ApiModelProperty("合同编号")
|
||||
private String contractNo;
|
||||
|
||||
/** 供应商id */
|
||||
@Excel(name = "供应商id")
|
||||
@ApiModelProperty("供应商id")
|
||||
private Long saleSupplierId;
|
||||
|
||||
/** 入库数量 */
|
||||
@Excel(name = "入库数量")
|
||||
@ApiModelProperty("入库数量")
|
||||
private Long inWarehouseQuantity;
|
||||
|
||||
public void setPurchasingArrivalId(Long purchasingArrivalId)
|
||||
{
|
||||
this.purchasingArrivalId = purchasingArrivalId;
|
||||
}
|
||||
|
||||
public Long getPurchasingArrivalId()
|
||||
{
|
||||
return purchasingArrivalId;
|
||||
}
|
||||
public void setMaterialId(Long materialId)
|
||||
{
|
||||
this.materialId = materialId;
|
||||
}
|
||||
|
||||
public Long getMaterialId()
|
||||
{
|
||||
return materialId;
|
||||
}
|
||||
public void setBatchNumber(String batchNumber)
|
||||
{
|
||||
this.batchNumber = batchNumber;
|
||||
}
|
||||
|
||||
public String getBatchNumber()
|
||||
{
|
||||
return batchNumber;
|
||||
}
|
||||
public void setReturnQuantity(Long returnQuantity)
|
||||
{
|
||||
this.returnQuantity = returnQuantity;
|
||||
}
|
||||
|
||||
public Long getReturnQuantity()
|
||||
{
|
||||
return returnQuantity;
|
||||
}
|
||||
public void setArrivalQuantity(Long arrivalQuantity)
|
||||
{
|
||||
this.arrivalQuantity = arrivalQuantity;
|
||||
}
|
||||
|
||||
public Long getArrivalQuantity()
|
||||
{
|
||||
return arrivalQuantity;
|
||||
}
|
||||
public void setSupplierName(String supplierName)
|
||||
{
|
||||
this.supplierName = supplierName;
|
||||
}
|
||||
|
||||
public String getSupplierName()
|
||||
{
|
||||
return supplierName;
|
||||
}
|
||||
public void setMaterialCode(String materialCode)
|
||||
{
|
||||
this.materialCode = materialCode;
|
||||
}
|
||||
|
||||
public String getMaterialCode()
|
||||
{
|
||||
return materialCode;
|
||||
}
|
||||
public void setMaterialName(String materialName)
|
||||
{
|
||||
this.materialName = materialName;
|
||||
}
|
||||
|
||||
public String getMaterialName()
|
||||
{
|
||||
return materialName;
|
||||
}
|
||||
public void setMaterialModel(String materialModel)
|
||||
{
|
||||
this.materialModel = materialModel;
|
||||
}
|
||||
|
||||
public String getMaterialModel()
|
||||
{
|
||||
return materialModel;
|
||||
}
|
||||
public void setMaterialSpecifications(String materialSpecifications)
|
||||
{
|
||||
this.materialSpecifications = materialSpecifications;
|
||||
}
|
||||
|
||||
public String getMaterialSpecifications()
|
||||
{
|
||||
return materialSpecifications;
|
||||
}
|
||||
public void setMaterialUnit(String materialUnit)
|
||||
{
|
||||
this.materialUnit = materialUnit;
|
||||
}
|
||||
|
||||
public String getMaterialUnit()
|
||||
{
|
||||
return materialUnit;
|
||||
}
|
||||
public void setMaterialPrice(BigDecimal materialPrice)
|
||||
{
|
||||
this.materialPrice = materialPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getMaterialPrice()
|
||||
{
|
||||
return materialPrice;
|
||||
}
|
||||
public void setContractNo(String contractNo)
|
||||
{
|
||||
this.contractNo = contractNo;
|
||||
}
|
||||
|
||||
public String getContractNo()
|
||||
{
|
||||
return contractNo;
|
||||
}
|
||||
public void setSaleSupplierId(Long saleSupplierId)
|
||||
{
|
||||
this.saleSupplierId = saleSupplierId;
|
||||
}
|
||||
|
||||
public Long getSaleSupplierId()
|
||||
{
|
||||
return saleSupplierId;
|
||||
}
|
||||
public void setInWarehouseQuantity(Long inWarehouseQuantity)
|
||||
{
|
||||
this.inWarehouseQuantity = inWarehouseQuantity;
|
||||
}
|
||||
|
||||
public Long getInWarehouseQuantity()
|
||||
{
|
||||
return inWarehouseQuantity;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("purchasingArrivalId", getPurchasingArrivalId())
|
||||
.append("materialId", getMaterialId())
|
||||
.append("batchNumber", getBatchNumber())
|
||||
.append("returnQuantity", getReturnQuantity())
|
||||
.append("arrivalQuantity", getArrivalQuantity())
|
||||
.append("supplierName", getSupplierName())
|
||||
.append("materialCode", getMaterialCode())
|
||||
.append("materialName", getMaterialName())
|
||||
.append("materialModel", getMaterialModel())
|
||||
.append("materialSpecifications", getMaterialSpecifications())
|
||||
.append("materialUnit", getMaterialUnit())
|
||||
.append("materialPrice", getMaterialPrice())
|
||||
.append("contractNo", getContractNo())
|
||||
.append("saleSupplierId", getSaleSupplierId())
|
||||
.append("inWarehouseQuantity", getInWarehouseQuantity())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,209 @@
|
||||
package com.zhonghui.carbonReport.domain;
|
||||
|
||||
import com.zhonghui.common.annotation.Excel;
|
||||
import com.zhonghui.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 采购合同报表对象 view_scm_purchasing_contract
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@ApiModel("采购合同报表对象")
|
||||
public class ViewScmPurchasingContract extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 合同id */
|
||||
@Excel(name = "合同id")
|
||||
@ApiModelProperty("合同id")
|
||||
private Long contractId;
|
||||
|
||||
/** 合同编号 */
|
||||
@Excel(name = "合同编号")
|
||||
@ApiModelProperty("合同编号")
|
||||
private String contractNo;
|
||||
|
||||
/** 申请id */
|
||||
@Excel(name = "申请id")
|
||||
@ApiModelProperty("申请id")
|
||||
private Long applicationId;
|
||||
|
||||
/** 供应商id */
|
||||
@Excel(name = "供应商id")
|
||||
@ApiModelProperty("供应商id")
|
||||
private Long saleSupplierId;
|
||||
|
||||
/** 供应商名称 */
|
||||
@Excel(name = "供应商名称")
|
||||
@ApiModelProperty("供应商名称")
|
||||
private String supplierName;
|
||||
|
||||
/** 申请单号 */
|
||||
@Excel(name = "申请单号")
|
||||
@ApiModelProperty("申请单号")
|
||||
private String applicationNo;
|
||||
|
||||
/** 合同金额 */
|
||||
@Excel(name = "合同金额")
|
||||
@ApiModelProperty("合同金额")
|
||||
private BigDecimal contractAmount;
|
||||
|
||||
/** 合同年份 */
|
||||
@Excel(name = "合同年份")
|
||||
@ApiModelProperty("合同年份")
|
||||
private String contractYear;
|
||||
|
||||
/** 合同季度 */
|
||||
@Excel(name = "合同季度")
|
||||
@ApiModelProperty("合同季度")
|
||||
private String contractQuarter;
|
||||
|
||||
/** 合同月份 */
|
||||
@Excel(name = "合同月份")
|
||||
@ApiModelProperty("合同月份")
|
||||
private String contractMonth;
|
||||
|
||||
/** 合同年月 */
|
||||
@Excel(name = "合同年月")
|
||||
@ApiModelProperty("合同年月")
|
||||
private String contractYearMonth;
|
||||
|
||||
/** 合同日期 */
|
||||
@Excel(name = "合同日期")
|
||||
@ApiModelProperty("合同日期")
|
||||
private String contractDate;
|
||||
|
||||
public void setContractId(Long contractId)
|
||||
{
|
||||
this.contractId = contractId;
|
||||
}
|
||||
|
||||
public Long getContractId()
|
||||
{
|
||||
return contractId;
|
||||
}
|
||||
public void setContractNo(String contractNo)
|
||||
{
|
||||
this.contractNo = contractNo;
|
||||
}
|
||||
|
||||
public String getContractNo()
|
||||
{
|
||||
return contractNo;
|
||||
}
|
||||
public void setApplicationId(Long applicationId)
|
||||
{
|
||||
this.applicationId = applicationId;
|
||||
}
|
||||
|
||||
public Long getApplicationId()
|
||||
{
|
||||
return applicationId;
|
||||
}
|
||||
public void setSaleSupplierId(Long saleSupplierId)
|
||||
{
|
||||
this.saleSupplierId = saleSupplierId;
|
||||
}
|
||||
|
||||
public Long getSaleSupplierId()
|
||||
{
|
||||
return saleSupplierId;
|
||||
}
|
||||
public void setSupplierName(String supplierName)
|
||||
{
|
||||
this.supplierName = supplierName;
|
||||
}
|
||||
|
||||
public String getSupplierName()
|
||||
{
|
||||
return supplierName;
|
||||
}
|
||||
public void setApplicationNo(String applicationNo)
|
||||
{
|
||||
this.applicationNo = applicationNo;
|
||||
}
|
||||
|
||||
public String getApplicationNo()
|
||||
{
|
||||
return applicationNo;
|
||||
}
|
||||
public void setContractAmount(BigDecimal contractAmount)
|
||||
{
|
||||
this.contractAmount = contractAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getContractAmount()
|
||||
{
|
||||
return contractAmount;
|
||||
}
|
||||
public void setContractYear(String contractYear)
|
||||
{
|
||||
this.contractYear = contractYear;
|
||||
}
|
||||
|
||||
public String getContractYear()
|
||||
{
|
||||
return contractYear;
|
||||
}
|
||||
public void setContractQuarter(String contractQuarter)
|
||||
{
|
||||
this.contractQuarter = contractQuarter;
|
||||
}
|
||||
|
||||
public String getContractQuarter()
|
||||
{
|
||||
return contractQuarter;
|
||||
}
|
||||
public void setContractMonth(String contractMonth)
|
||||
{
|
||||
this.contractMonth = contractMonth;
|
||||
}
|
||||
|
||||
public String getContractMonth()
|
||||
{
|
||||
return contractMonth;
|
||||
}
|
||||
public void setContractYearMonth(String contractYearMonth)
|
||||
{
|
||||
this.contractYearMonth = contractYearMonth;
|
||||
}
|
||||
|
||||
public String getContractYearMonth()
|
||||
{
|
||||
return contractYearMonth;
|
||||
}
|
||||
public void setContractDate(String contractDate)
|
||||
{
|
||||
this.contractDate = contractDate;
|
||||
}
|
||||
|
||||
public String getContractDate()
|
||||
{
|
||||
return contractDate;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("contractId", getContractId())
|
||||
.append("contractNo", getContractNo())
|
||||
.append("applicationId", getApplicationId())
|
||||
.append("saleSupplierId", getSaleSupplierId())
|
||||
.append("supplierName", getSupplierName())
|
||||
.append("applicationNo", getApplicationNo())
|
||||
.append("contractAmount", getContractAmount())
|
||||
.append("contractYear", getContractYear())
|
||||
.append("contractQuarter", getContractQuarter())
|
||||
.append("contractMonth", getContractMonth())
|
||||
.append("contractYearMonth", getContractYearMonth())
|
||||
.append("contractDate", getContractDate())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,242 @@
|
||||
package com.zhonghui.carbonReport.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.zhonghui.common.annotation.Excel;
|
||||
import com.zhonghui.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 采购合同明细报表对象 view_scm_purchasing_contract_details
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@ApiModel("采购退货统计对象")
|
||||
public class ViewScmPurchasingContractDetails extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 合同Id */
|
||||
@Excel(name = "合同Id")
|
||||
@ApiModelProperty("合同Id")
|
||||
private Long purchasingContractId;
|
||||
|
||||
/** 物料id */
|
||||
@Excel(name = "物料id")
|
||||
@ApiModelProperty("物料id")
|
||||
private Long materialId;
|
||||
|
||||
/** 采购数量 */
|
||||
@Excel(name = "采购数量")
|
||||
@ApiModelProperty("采购数量")
|
||||
private Long purchaseQuantity;
|
||||
|
||||
/** 金额 */
|
||||
@Excel(name = "金额")
|
||||
@ApiModelProperty("金额")
|
||||
private BigDecimal amount;
|
||||
|
||||
/** 物料编码 */
|
||||
@Excel(name = "物料编码")
|
||||
@ApiModelProperty("物料编码")
|
||||
private String materialCode;
|
||||
|
||||
/** 物料名称 */
|
||||
@Excel(name = "物料名称")
|
||||
@ApiModelProperty("物料名称")
|
||||
private String materialName;
|
||||
|
||||
/** 型号 */
|
||||
@Excel(name = "型号")
|
||||
@ApiModelProperty("型号")
|
||||
private String materialModel;
|
||||
|
||||
/** 规格 */
|
||||
@Excel(name = "规格")
|
||||
@ApiModelProperty("规格")
|
||||
private String materialSpecifications;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
@ApiModelProperty("单位")
|
||||
private String materialUnit;
|
||||
|
||||
/** 单价 */
|
||||
@Excel(name = "单价")
|
||||
@ApiModelProperty("单价")
|
||||
private BigDecimal materialPrice;
|
||||
|
||||
/** 合同编号 */
|
||||
@Excel(name = "合同编号")
|
||||
@ApiModelProperty("合同编号")
|
||||
private String contractNo;
|
||||
|
||||
/** 供应商id */
|
||||
@Excel(name = "供应商id")
|
||||
@ApiModelProperty("供应商id")
|
||||
private Long saleSupplierId;
|
||||
|
||||
/** 签约日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@ApiModelProperty("签约日期")
|
||||
@Excel(name = "签约日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date signingDate;
|
||||
|
||||
/** 供应商名称 */
|
||||
@Excel(name = "供应商名称")
|
||||
@ApiModelProperty("供应商名称")
|
||||
private String supplierName;
|
||||
|
||||
public void setPurchasingContractId(Long purchasingContractId)
|
||||
{
|
||||
this.purchasingContractId = purchasingContractId;
|
||||
}
|
||||
|
||||
public Long getPurchasingContractId()
|
||||
{
|
||||
return purchasingContractId;
|
||||
}
|
||||
public void setMaterialId(Long materialId)
|
||||
{
|
||||
this.materialId = materialId;
|
||||
}
|
||||
|
||||
public Long getMaterialId()
|
||||
{
|
||||
return materialId;
|
||||
}
|
||||
public void setPurchaseQuantity(Long purchaseQuantity)
|
||||
{
|
||||
this.purchaseQuantity = purchaseQuantity;
|
||||
}
|
||||
|
||||
public Long getPurchaseQuantity()
|
||||
{
|
||||
return purchaseQuantity;
|
||||
}
|
||||
public void setAmount(BigDecimal amount)
|
||||
{
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
public BigDecimal getAmount()
|
||||
{
|
||||
return amount;
|
||||
}
|
||||
public void setMaterialCode(String materialCode)
|
||||
{
|
||||
this.materialCode = materialCode;
|
||||
}
|
||||
|
||||
public String getMaterialCode()
|
||||
{
|
||||
return materialCode;
|
||||
}
|
||||
public void setMaterialName(String materialName)
|
||||
{
|
||||
this.materialName = materialName;
|
||||
}
|
||||
|
||||
public String getMaterialName()
|
||||
{
|
||||
return materialName;
|
||||
}
|
||||
public void setMaterialModel(String materialModel)
|
||||
{
|
||||
this.materialModel = materialModel;
|
||||
}
|
||||
|
||||
public String getMaterialModel()
|
||||
{
|
||||
return materialModel;
|
||||
}
|
||||
public void setMaterialSpecifications(String materialSpecifications)
|
||||
{
|
||||
this.materialSpecifications = materialSpecifications;
|
||||
}
|
||||
|
||||
public String getMaterialSpecifications()
|
||||
{
|
||||
return materialSpecifications;
|
||||
}
|
||||
public void setMaterialUnit(String materialUnit)
|
||||
{
|
||||
this.materialUnit = materialUnit;
|
||||
}
|
||||
|
||||
public String getMaterialUnit()
|
||||
{
|
||||
return materialUnit;
|
||||
}
|
||||
public void setMaterialPrice(BigDecimal materialPrice)
|
||||
{
|
||||
this.materialPrice = materialPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getMaterialPrice()
|
||||
{
|
||||
return materialPrice;
|
||||
}
|
||||
public void setContractNo(String contractNo)
|
||||
{
|
||||
this.contractNo = contractNo;
|
||||
}
|
||||
|
||||
public String getContractNo()
|
||||
{
|
||||
return contractNo;
|
||||
}
|
||||
public void setSaleSupplierId(Long saleSupplierId)
|
||||
{
|
||||
this.saleSupplierId = saleSupplierId;
|
||||
}
|
||||
|
||||
public Long getSaleSupplierId()
|
||||
{
|
||||
return saleSupplierId;
|
||||
}
|
||||
public void setSigningDate(Date signingDate)
|
||||
{
|
||||
this.signingDate = signingDate;
|
||||
}
|
||||
|
||||
public Date getSigningDate()
|
||||
{
|
||||
return signingDate;
|
||||
}
|
||||
public void setSupplierName(String supplierName)
|
||||
{
|
||||
this.supplierName = supplierName;
|
||||
}
|
||||
|
||||
public String getSupplierName()
|
||||
{
|
||||
return supplierName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("purchasingContractId", getPurchasingContractId())
|
||||
.append("materialId", getMaterialId())
|
||||
.append("purchaseQuantity", getPurchaseQuantity())
|
||||
.append("amount", getAmount())
|
||||
.append("materialCode", getMaterialCode())
|
||||
.append("materialName", getMaterialName())
|
||||
.append("materialModel", getMaterialModel())
|
||||
.append("materialSpecifications", getMaterialSpecifications())
|
||||
.append("materialUnit", getMaterialUnit())
|
||||
.append("materialPrice", getMaterialPrice())
|
||||
.append("contractNo", getContractNo())
|
||||
.append("saleSupplierId", getSaleSupplierId())
|
||||
.append("signingDate", getSigningDate())
|
||||
.append("supplierName", getSupplierName())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,257 @@
|
||||
package com.zhonghui.carbonReport.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.zhonghui.common.annotation.Excel;
|
||||
import com.zhonghui.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 采购退货统计对象 view_scm_purchasing_return_details
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@ApiModel("采购退货统计对象")
|
||||
public class ViewScmPurchasingReturnDetails extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 物料id */
|
||||
@Excel(name = "物料id")
|
||||
@ApiModelProperty("物料id")
|
||||
private Long materialId;
|
||||
|
||||
/** 退货单号 */
|
||||
@Excel(name = "退货单号")
|
||||
@ApiModelProperty("退货单号")
|
||||
private String returnNo;
|
||||
|
||||
/** 生产批号 */
|
||||
@Excel(name = "生产批号")
|
||||
@ApiModelProperty("生产批号")
|
||||
private String batchNumber;
|
||||
|
||||
/** 需求数量 */
|
||||
@Excel(name = "需求数量")
|
||||
@ApiModelProperty("需求数量")
|
||||
private Long demandedQuantity;
|
||||
|
||||
/** 到货数量 */
|
||||
@Excel(name = "到货数量")
|
||||
@ApiModelProperty("到货数量")
|
||||
private Long arrivalQuantity;
|
||||
|
||||
/** 退货数量 */
|
||||
@Excel(name = "退货数量")
|
||||
@ApiModelProperty("退货数量")
|
||||
private Long returnQuantity;
|
||||
|
||||
/** 退货日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "退货日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty("退货日期")
|
||||
private Date returnDate;
|
||||
|
||||
/** 供应商名称 */
|
||||
@Excel(name = "供应商名称")
|
||||
@ApiModelProperty("供应商名称")
|
||||
private String supplierName;
|
||||
|
||||
/** 物料编码 */
|
||||
@Excel(name = "物料编码")
|
||||
@ApiModelProperty("物料编码")
|
||||
private String materialCode;
|
||||
|
||||
/** 物料名称 */
|
||||
@Excel(name = "物料名称")
|
||||
@ApiModelProperty("物料名称")
|
||||
private String materialName;
|
||||
|
||||
/** 型号 */
|
||||
@Excel(name = "型号")
|
||||
@ApiModelProperty("型号")
|
||||
private String materialModel;
|
||||
|
||||
/** 规格 */
|
||||
@Excel(name = "规格")
|
||||
@ApiModelProperty("规格")
|
||||
private String materialSpecifications;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
@ApiModelProperty("单位")
|
||||
private String materialUnit;
|
||||
|
||||
/** 单价 */
|
||||
@Excel(name = "单价")
|
||||
@ApiModelProperty("单价")
|
||||
private BigDecimal materialPrice;
|
||||
|
||||
/** 供应商id */
|
||||
@Excel(name = "供应商id")
|
||||
@ApiModelProperty("供应商id")
|
||||
private Long saleSupplierId;
|
||||
|
||||
public void setMaterialId(Long materialId)
|
||||
{
|
||||
this.materialId = materialId;
|
||||
}
|
||||
|
||||
public Long getMaterialId()
|
||||
{
|
||||
return materialId;
|
||||
}
|
||||
public void setReturnNo(String returnNo)
|
||||
{
|
||||
this.returnNo = returnNo;
|
||||
}
|
||||
|
||||
public String getReturnNo()
|
||||
{
|
||||
return returnNo;
|
||||
}
|
||||
public void setBatchNumber(String batchNumber)
|
||||
{
|
||||
this.batchNumber = batchNumber;
|
||||
}
|
||||
|
||||
public String getBatchNumber()
|
||||
{
|
||||
return batchNumber;
|
||||
}
|
||||
public void setDemandedQuantity(Long demandedQuantity)
|
||||
{
|
||||
this.demandedQuantity = demandedQuantity;
|
||||
}
|
||||
|
||||
public Long getDemandedQuantity()
|
||||
{
|
||||
return demandedQuantity;
|
||||
}
|
||||
public void setArrivalQuantity(Long arrivalQuantity)
|
||||
{
|
||||
this.arrivalQuantity = arrivalQuantity;
|
||||
}
|
||||
|
||||
public Long getArrivalQuantity()
|
||||
{
|
||||
return arrivalQuantity;
|
||||
}
|
||||
public void setReturnQuantity(Long returnQuantity)
|
||||
{
|
||||
this.returnQuantity = returnQuantity;
|
||||
}
|
||||
|
||||
public Long getReturnQuantity()
|
||||
{
|
||||
return returnQuantity;
|
||||
}
|
||||
public void setReturnDate(Date returnDate)
|
||||
{
|
||||
this.returnDate = returnDate;
|
||||
}
|
||||
|
||||
public Date getReturnDate()
|
||||
{
|
||||
return returnDate;
|
||||
}
|
||||
public void setSupplierName(String supplierName)
|
||||
{
|
||||
this.supplierName = supplierName;
|
||||
}
|
||||
|
||||
public String getSupplierName()
|
||||
{
|
||||
return supplierName;
|
||||
}
|
||||
public void setMaterialCode(String materialCode)
|
||||
{
|
||||
this.materialCode = materialCode;
|
||||
}
|
||||
|
||||
public String getMaterialCode()
|
||||
{
|
||||
return materialCode;
|
||||
}
|
||||
public void setMaterialName(String materialName)
|
||||
{
|
||||
this.materialName = materialName;
|
||||
}
|
||||
|
||||
public String getMaterialName()
|
||||
{
|
||||
return materialName;
|
||||
}
|
||||
public void setMaterialModel(String materialModel)
|
||||
{
|
||||
this.materialModel = materialModel;
|
||||
}
|
||||
|
||||
public String getMaterialModel()
|
||||
{
|
||||
return materialModel;
|
||||
}
|
||||
public void setMaterialSpecifications(String materialSpecifications)
|
||||
{
|
||||
this.materialSpecifications = materialSpecifications;
|
||||
}
|
||||
|
||||
public String getMaterialSpecifications()
|
||||
{
|
||||
return materialSpecifications;
|
||||
}
|
||||
public void setMaterialUnit(String materialUnit)
|
||||
{
|
||||
this.materialUnit = materialUnit;
|
||||
}
|
||||
|
||||
public String getMaterialUnit()
|
||||
{
|
||||
return materialUnit;
|
||||
}
|
||||
public void setMaterialPrice(BigDecimal materialPrice)
|
||||
{
|
||||
this.materialPrice = materialPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getMaterialPrice()
|
||||
{
|
||||
return materialPrice;
|
||||
}
|
||||
public void setSaleSupplierId(Long saleSupplierId)
|
||||
{
|
||||
this.saleSupplierId = saleSupplierId;
|
||||
}
|
||||
|
||||
public Long getSaleSupplierId()
|
||||
{
|
||||
return saleSupplierId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("materialId", getMaterialId())
|
||||
.append("returnNo", getReturnNo())
|
||||
.append("batchNumber", getBatchNumber())
|
||||
.append("demandedQuantity", getDemandedQuantity())
|
||||
.append("arrivalQuantity", getArrivalQuantity())
|
||||
.append("returnQuantity", getReturnQuantity())
|
||||
.append("returnDate", getReturnDate())
|
||||
.append("supplierName", getSupplierName())
|
||||
.append("materialCode", getMaterialCode())
|
||||
.append("materialName", getMaterialName())
|
||||
.append("materialModel", getMaterialModel())
|
||||
.append("materialSpecifications", getMaterialSpecifications())
|
||||
.append("materialUnit", getMaterialUnit())
|
||||
.append("materialPrice", getMaterialPrice())
|
||||
.append("saleSupplierId", getSaleSupplierId())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,222 @@
|
||||
package com.zhonghui.carbonReport.domain;
|
||||
|
||||
import com.zhonghui.common.annotation.Excel;
|
||||
import com.zhonghui.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 销售合同报表对象 view_scm_sale_contract
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@ApiModel("销售合同报表对象")
|
||||
public class ViewScmSaleContract extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 合同id */
|
||||
@ApiModelProperty("合同id")
|
||||
private Long contractId;
|
||||
|
||||
/** 合同编号 */
|
||||
@Excel(name = "合同编号")
|
||||
@ApiModelProperty("合同编号")
|
||||
private String contractNumber;
|
||||
|
||||
/** 销售订单id */
|
||||
@Excel(name = "销售订单id")
|
||||
@ApiModelProperty("销售订单id")
|
||||
private Long orderId;
|
||||
|
||||
/** 订单编号 */
|
||||
@Excel(name = "订单编号")
|
||||
@ApiModelProperty("订单编号")
|
||||
private String orderNo;
|
||||
|
||||
/** 客户id */
|
||||
@Excel(name = "客户id")
|
||||
@ApiModelProperty("客户id")
|
||||
private Long customId;
|
||||
|
||||
/** 客户名称 */
|
||||
@Excel(name = "客户名称")
|
||||
@ApiModelProperty("客户名称")
|
||||
private String customName;
|
||||
|
||||
/** 合同金额 */
|
||||
@Excel(name = "合同金额")
|
||||
@ApiModelProperty("合同金额")
|
||||
private BigDecimal contractAmount;
|
||||
|
||||
/** 合同年份 */
|
||||
@Excel(name = "合同年份")
|
||||
@ApiModelProperty("合同年份")
|
||||
private String contractYear;
|
||||
|
||||
/** 合同季度 */
|
||||
@Excel(name = "合同季度")
|
||||
@ApiModelProperty("合同季度")
|
||||
private String contractQuarter;
|
||||
|
||||
/** 合同月份 */
|
||||
@Excel(name = "合同月份")
|
||||
@ApiModelProperty("合同月份")
|
||||
private String contractMonth;
|
||||
|
||||
/** 合同年月 */
|
||||
@Excel(name = "合同年月")
|
||||
@ApiModelProperty("合同年月")
|
||||
private String contractYearMonth;
|
||||
|
||||
/** 合同日期 */
|
||||
@Excel(name = "合同日期")
|
||||
@ApiModelProperty("合同日期")
|
||||
private String contractDate;
|
||||
|
||||
@ApiModelProperty("总金额")
|
||||
@Excel(name = "总金额")
|
||||
private BigDecimal totalAmount;
|
||||
|
||||
public void setContractId(Long contractId)
|
||||
{
|
||||
this.contractId = contractId;
|
||||
}
|
||||
|
||||
public Long getContractId()
|
||||
{
|
||||
return contractId;
|
||||
}
|
||||
public void setContractNumber(String contractNumber)
|
||||
{
|
||||
this.contractNumber = contractNumber;
|
||||
}
|
||||
|
||||
public String getContractNumber()
|
||||
{
|
||||
return contractNumber;
|
||||
}
|
||||
public void setOrderId(Long orderId)
|
||||
{
|
||||
this.orderId = orderId;
|
||||
}
|
||||
|
||||
public Long getOrderId()
|
||||
{
|
||||
return orderId;
|
||||
}
|
||||
public void setOrderNo(String orderNo)
|
||||
{
|
||||
this.orderNo = orderNo;
|
||||
}
|
||||
|
||||
public String getOrderNo()
|
||||
{
|
||||
return orderNo;
|
||||
}
|
||||
public void setCustomId(Long customId)
|
||||
{
|
||||
this.customId = customId;
|
||||
}
|
||||
|
||||
public Long getCustomId()
|
||||
{
|
||||
return customId;
|
||||
}
|
||||
public void setCustomName(String customName)
|
||||
{
|
||||
this.customName = customName;
|
||||
}
|
||||
|
||||
public String getCustomName()
|
||||
{
|
||||
return customName;
|
||||
}
|
||||
public void setContractAmount(BigDecimal contractAmount)
|
||||
{
|
||||
this.contractAmount = contractAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getContractAmount()
|
||||
{
|
||||
return contractAmount;
|
||||
}
|
||||
public void setContractYear(String contractYear)
|
||||
{
|
||||
this.contractYear = contractYear;
|
||||
}
|
||||
|
||||
public String getContractYear()
|
||||
{
|
||||
return contractYear;
|
||||
}
|
||||
public void setContractQuarter(String contractQuarter)
|
||||
{
|
||||
this.contractQuarter = contractQuarter;
|
||||
}
|
||||
|
||||
public String getContractQuarter()
|
||||
{
|
||||
return contractQuarter;
|
||||
}
|
||||
public void setContractMonth(String contractMonth)
|
||||
{
|
||||
this.contractMonth = contractMonth;
|
||||
}
|
||||
|
||||
public String getContractMonth()
|
||||
{
|
||||
return contractMonth;
|
||||
}
|
||||
public void setContractYearMonth(String contractYearMonth)
|
||||
{
|
||||
this.contractYearMonth = contractYearMonth;
|
||||
}
|
||||
|
||||
public String getContractYearMonth()
|
||||
{
|
||||
return contractYearMonth;
|
||||
}
|
||||
public void setContractDate(String contractDate)
|
||||
{
|
||||
this.contractDate = contractDate;
|
||||
}
|
||||
|
||||
public String getContractDate()
|
||||
{
|
||||
return contractDate;
|
||||
}
|
||||
public void setTotalAmount(BigDecimal totalAmount)
|
||||
{
|
||||
this.totalAmount = totalAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getTotalAmount()
|
||||
{
|
||||
return totalAmount;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("contractId", getContractId())
|
||||
.append("contractNumber", getContractNumber())
|
||||
.append("orderId", getOrderId())
|
||||
.append("orderNo", getOrderNo())
|
||||
.append("customId", getCustomId())
|
||||
.append("customName", getCustomName())
|
||||
.append("contractAmount", getContractAmount())
|
||||
.append("contractYear", getContractYear())
|
||||
.append("contractQuarter", getContractQuarter())
|
||||
.append("contractMonth", getContractMonth())
|
||||
.append("contractYearMonth", getContractYearMonth())
|
||||
.append("contractDate", getContractDate())
|
||||
.append("totalAmount", getTotalAmount())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,283 @@
|
||||
package com.zhonghui.carbonReport.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.zhonghui.common.annotation.Excel;
|
||||
import com.zhonghui.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 销售合同明细报表对象 view_scm_sale_contract_details
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@ApiModel("销售合同明细")
|
||||
public class ViewScmSaleContractDetails extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 物料名称 */
|
||||
@ApiModelProperty("物料名称")
|
||||
@Excel(name = "物料名称")
|
||||
private String materialName;
|
||||
|
||||
/** 型号 */
|
||||
@ApiModelProperty("型号")
|
||||
@Excel(name = "型号")
|
||||
private String materialModel;
|
||||
|
||||
/** 规格 */
|
||||
@ApiModelProperty("规格")
|
||||
@Excel(name = "规格")
|
||||
private String materialSpecifications;
|
||||
|
||||
/** 单位 */
|
||||
@ApiModelProperty("单位")
|
||||
@Excel(name = "单位")
|
||||
private String materialUnit;
|
||||
|
||||
/** 单价 */
|
||||
@ApiModelProperty("单价")
|
||||
@Excel(name = "单价")
|
||||
private BigDecimal materialPrice;
|
||||
|
||||
/** 销售合同id */
|
||||
@ApiModelProperty("销售合同id")
|
||||
@Excel(name = "销售合同id")
|
||||
private Long contractId;
|
||||
|
||||
/** 物料id */
|
||||
@ApiModelProperty("物料id")
|
||||
@Excel(name = "物料id")
|
||||
private Long materialId;
|
||||
|
||||
/** 金额 */
|
||||
@ApiModelProperty("金额")
|
||||
@Excel(name = "金额")
|
||||
private BigDecimal amount;
|
||||
|
||||
/** 订货数量 */
|
||||
@ApiModelProperty("订货数量")
|
||||
@Excel(name = "订货数量")
|
||||
private BigDecimal orderQuantity;
|
||||
|
||||
/** 客户名称 */
|
||||
@ApiModelProperty("客户名称")
|
||||
@Excel(name = "客户名称")
|
||||
private String customName;
|
||||
|
||||
/** 合同编号 */
|
||||
@ApiModelProperty("合同编号")
|
||||
@Excel(name = "合同编号")
|
||||
private String contractNumber;
|
||||
|
||||
/** 客户id */
|
||||
@ApiModelProperty("客户id")
|
||||
@Excel(name = "客户id")
|
||||
private Long customId;
|
||||
|
||||
/** 销售订单id */
|
||||
@ApiModelProperty("销售订单id")
|
||||
@Excel(name = "销售订单id")
|
||||
private Long orderId;
|
||||
|
||||
/** 订单编号 */
|
||||
@ApiModelProperty("订单编号")
|
||||
@Excel(name = "订单编号")
|
||||
private String orderNo;
|
||||
|
||||
/** 签订日期 */
|
||||
@ApiModelProperty("签订日期")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "签订日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date signingDate;
|
||||
|
||||
/** 金额合计 */
|
||||
@ApiModelProperty("金额合计")
|
||||
@Excel(name = "金额合计")
|
||||
private BigDecimal totalAmount;
|
||||
|
||||
/** 退款金额 */
|
||||
@ApiModelProperty("退款金额")
|
||||
private BigDecimal returnTotal = new BigDecimal("0");
|
||||
|
||||
public void setMaterialName(String materialName)
|
||||
{
|
||||
this.materialName = materialName;
|
||||
}
|
||||
|
||||
public String getMaterialName()
|
||||
{
|
||||
return materialName;
|
||||
}
|
||||
public void setMaterialModel(String materialModel)
|
||||
{
|
||||
this.materialModel = materialModel;
|
||||
}
|
||||
|
||||
public String getMaterialModel()
|
||||
{
|
||||
return materialModel;
|
||||
}
|
||||
public void setMaterialSpecifications(String materialSpecifications)
|
||||
{
|
||||
this.materialSpecifications = materialSpecifications;
|
||||
}
|
||||
|
||||
public String getMaterialSpecifications()
|
||||
{
|
||||
return materialSpecifications;
|
||||
}
|
||||
public void setMaterialUnit(String materialUnit)
|
||||
{
|
||||
this.materialUnit = materialUnit;
|
||||
}
|
||||
|
||||
public String getMaterialUnit()
|
||||
{
|
||||
return materialUnit;
|
||||
}
|
||||
public void setMaterialPrice(BigDecimal materialPrice)
|
||||
{
|
||||
this.materialPrice = materialPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getMaterialPrice()
|
||||
{
|
||||
return materialPrice;
|
||||
}
|
||||
public void setContractId(Long contractId)
|
||||
{
|
||||
this.contractId = contractId;
|
||||
}
|
||||
|
||||
public Long getContractId()
|
||||
{
|
||||
return contractId;
|
||||
}
|
||||
public void setMaterialId(Long materialId)
|
||||
{
|
||||
this.materialId = materialId;
|
||||
}
|
||||
|
||||
public Long getMaterialId()
|
||||
{
|
||||
return materialId;
|
||||
}
|
||||
public void setAmount(BigDecimal amount)
|
||||
{
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
public BigDecimal getAmount()
|
||||
{
|
||||
return amount;
|
||||
}
|
||||
public void setOrderQuantity(BigDecimal orderQuantity)
|
||||
{
|
||||
this.orderQuantity = orderQuantity;
|
||||
}
|
||||
|
||||
public BigDecimal getOrderQuantity()
|
||||
{
|
||||
return orderQuantity;
|
||||
}
|
||||
public void setCustomName(String customName)
|
||||
{
|
||||
this.customName = customName;
|
||||
}
|
||||
|
||||
public String getCustomName()
|
||||
{
|
||||
return customName;
|
||||
}
|
||||
public void setContractNumber(String contractNumber)
|
||||
{
|
||||
this.contractNumber = contractNumber;
|
||||
}
|
||||
|
||||
public String getContractNumber()
|
||||
{
|
||||
return contractNumber;
|
||||
}
|
||||
public void setCustomId(Long customId)
|
||||
{
|
||||
this.customId = customId;
|
||||
}
|
||||
|
||||
public Long getCustomId()
|
||||
{
|
||||
return customId;
|
||||
}
|
||||
public void setOrderId(Long orderId)
|
||||
{
|
||||
this.orderId = orderId;
|
||||
}
|
||||
|
||||
public Long getOrderId()
|
||||
{
|
||||
return orderId;
|
||||
}
|
||||
public void setOrderNo(String orderNo)
|
||||
{
|
||||
this.orderNo = orderNo;
|
||||
}
|
||||
|
||||
public String getOrderNo()
|
||||
{
|
||||
return orderNo;
|
||||
}
|
||||
public void setSigningDate(Date signingDate)
|
||||
{
|
||||
this.signingDate = signingDate;
|
||||
}
|
||||
|
||||
public Date getSigningDate()
|
||||
{
|
||||
return signingDate;
|
||||
}
|
||||
public void setTotalAmount(BigDecimal totalAmount)
|
||||
{
|
||||
this.totalAmount = totalAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getTotalAmount()
|
||||
{
|
||||
return totalAmount;
|
||||
}
|
||||
public BigDecimal getReturnTotal() {
|
||||
return returnTotal;
|
||||
}
|
||||
|
||||
public void setReturnTotal(BigDecimal returnTotal) {
|
||||
this.returnTotal = returnTotal;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("materialName", getMaterialName())
|
||||
.append("materialModel", getMaterialModel())
|
||||
.append("materialSpecifications", getMaterialSpecifications())
|
||||
.append("materialUnit", getMaterialUnit())
|
||||
.append("materialPrice", getMaterialPrice())
|
||||
.append("contractId", getContractId())
|
||||
.append("materialId", getMaterialId())
|
||||
.append("amount", getAmount())
|
||||
.append("orderQuantity", getOrderQuantity())
|
||||
.append("customName", getCustomName())
|
||||
.append("contractNumber", getContractNumber())
|
||||
.append("customId", getCustomId())
|
||||
.append("orderId", getOrderId())
|
||||
.append("orderNo", getOrderNo())
|
||||
.append("signingDate", getSigningDate())
|
||||
.append("totalAmount", getTotalAmount())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,207 @@
|
||||
package com.zhonghui.carbonReport.domain;
|
||||
|
||||
import com.zhonghui.common.annotation.Excel;
|
||||
import com.zhonghui.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 销售发货退货明细报表对象 view_scm_sale_delivery_details
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-25
|
||||
*/
|
||||
@ApiModel("销售发货退货明细报表对象")
|
||||
public class ViewScmSaleDeliveryDetails extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 销售退货id */
|
||||
@Excel(name = "销售退货id")
|
||||
@ApiModelProperty("销售退货id")
|
||||
private Long deliveryId;
|
||||
|
||||
/** 物料id */
|
||||
@Excel(name = "物料id")
|
||||
@ApiModelProperty("物料id")
|
||||
private Long materialId;
|
||||
|
||||
/** 退货数量 */
|
||||
@Excel(name = "退货数量")
|
||||
@ApiModelProperty("退货数量")
|
||||
private Long returnNum;
|
||||
|
||||
/** 发货数量 */
|
||||
@Excel(name = "发货数量")
|
||||
@ApiModelProperty("发货数量")
|
||||
private Long deliveryNum;
|
||||
|
||||
/** 客户名称 */
|
||||
@Excel(name = "客户名称")
|
||||
@ApiModelProperty("客户名称")
|
||||
private String customName;
|
||||
|
||||
/** 客户id */
|
||||
@Excel(name = "客户id")
|
||||
@ApiModelProperty("客户id")
|
||||
private Long customId;
|
||||
|
||||
/** 物料编码 */
|
||||
@Excel(name = "物料编码")
|
||||
@ApiModelProperty("物料编码")
|
||||
private String materialCode;
|
||||
|
||||
/** 物料名称 */
|
||||
@Excel(name = "物料名称")
|
||||
@ApiModelProperty("物料名称")
|
||||
private String materialName;
|
||||
|
||||
/** 型号 */
|
||||
@Excel(name = "型号")
|
||||
@ApiModelProperty("型号")
|
||||
private String materialModel;
|
||||
|
||||
/** 规格 */
|
||||
@Excel(name = "规格")
|
||||
@ApiModelProperty("规格")
|
||||
private String materialSpecifications;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
@ApiModelProperty("单位")
|
||||
private String materialUnit;
|
||||
|
||||
/** 合同编号 */
|
||||
@Excel(name = "合同编号")
|
||||
@ApiModelProperty("合同编号")
|
||||
private String contractNumber;
|
||||
|
||||
public void setDeliveryId(Long deliveryId)
|
||||
{
|
||||
this.deliveryId = deliveryId;
|
||||
}
|
||||
|
||||
public Long getDeliveryId()
|
||||
{
|
||||
return deliveryId;
|
||||
}
|
||||
public void setMaterialId(Long materialId)
|
||||
{
|
||||
this.materialId = materialId;
|
||||
}
|
||||
|
||||
public Long getMaterialId()
|
||||
{
|
||||
return materialId;
|
||||
}
|
||||
public void setReturnNum(Long returnNum)
|
||||
{
|
||||
this.returnNum = returnNum;
|
||||
}
|
||||
|
||||
public Long getReturnNum()
|
||||
{
|
||||
return returnNum;
|
||||
}
|
||||
public void setDeliveryNum(Long deliveryNum)
|
||||
{
|
||||
this.deliveryNum = deliveryNum;
|
||||
}
|
||||
|
||||
public Long getDeliveryNum()
|
||||
{
|
||||
return deliveryNum;
|
||||
}
|
||||
public void setCustomName(String customName)
|
||||
{
|
||||
this.customName = customName;
|
||||
}
|
||||
|
||||
public String getCustomName()
|
||||
{
|
||||
return customName;
|
||||
}
|
||||
public void setCustomId(Long customId)
|
||||
{
|
||||
this.customId = customId;
|
||||
}
|
||||
|
||||
public Long getCustomId()
|
||||
{
|
||||
return customId;
|
||||
}
|
||||
public void setMaterialCode(String materialCode)
|
||||
{
|
||||
this.materialCode = materialCode;
|
||||
}
|
||||
|
||||
public String getMaterialCode()
|
||||
{
|
||||
return materialCode;
|
||||
}
|
||||
public void setMaterialName(String materialName)
|
||||
{
|
||||
this.materialName = materialName;
|
||||
}
|
||||
|
||||
public String getMaterialName()
|
||||
{
|
||||
return materialName;
|
||||
}
|
||||
public void setMaterialModel(String materialModel)
|
||||
{
|
||||
this.materialModel = materialModel;
|
||||
}
|
||||
|
||||
public String getMaterialModel()
|
||||
{
|
||||
return materialModel;
|
||||
}
|
||||
public void setMaterialSpecifications(String materialSpecifications)
|
||||
{
|
||||
this.materialSpecifications = materialSpecifications;
|
||||
}
|
||||
|
||||
public String getMaterialSpecifications()
|
||||
{
|
||||
return materialSpecifications;
|
||||
}
|
||||
public void setMaterialUnit(String materialUnit)
|
||||
{
|
||||
this.materialUnit = materialUnit;
|
||||
}
|
||||
|
||||
public String getMaterialUnit()
|
||||
{
|
||||
return materialUnit;
|
||||
}
|
||||
public void setContractNumber(String contractNumber)
|
||||
{
|
||||
this.contractNumber = contractNumber;
|
||||
}
|
||||
|
||||
public String getContractNumber()
|
||||
{
|
||||
return contractNumber;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("deliveryId", getDeliveryId())
|
||||
.append("materialId", getMaterialId())
|
||||
.append("returnNum", getReturnNum())
|
||||
.append("deliveryNum", getDeliveryNum())
|
||||
.append("customName", getCustomName())
|
||||
.append("customId", getCustomId())
|
||||
.append("materialCode", getMaterialCode())
|
||||
.append("materialName", getMaterialName())
|
||||
.append("materialModel", getMaterialModel())
|
||||
.append("materialSpecifications", getMaterialSpecifications())
|
||||
.append("materialUnit", getMaterialUnit())
|
||||
.append("contractNumber", getContractNumber())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,182 @@
|
||||
package com.zhonghui.carbonReport.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.zhonghui.common.annotation.Excel;
|
||||
import com.zhonghui.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 销售计划达成率报表对象 view_scm_sale_schedule_details
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-25
|
||||
*/
|
||||
@ApiModel("销售计划达成率报表对象")
|
||||
public class ViewScmSaleScheduleDetails extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 物料id */
|
||||
@Excel(name = "物料id")
|
||||
@ApiModelProperty("物料id")
|
||||
private Long materialId;
|
||||
|
||||
/** 计划销售额 */
|
||||
@Excel(name = "计划销售额")
|
||||
@ApiModelProperty("计划销售额")
|
||||
private BigDecimal sales;
|
||||
|
||||
/** 销售额 */
|
||||
@ApiModelProperty("销售额")
|
||||
@Excel(name = "销售额")
|
||||
private BigDecimal saleAmount;
|
||||
|
||||
/** 计划单号 */
|
||||
@Excel(name = "计划单号")
|
||||
@ApiModelProperty("计划单号")
|
||||
private String scheduleNumber;
|
||||
|
||||
/** 计划标题 */
|
||||
@Excel(name = "计划标题")
|
||||
@ApiModelProperty("计划标题")
|
||||
private String scheduleTitle;
|
||||
|
||||
/** 计划类型 */
|
||||
@Excel(name = "计划类型")
|
||||
@ApiModelProperty("计划类型")
|
||||
private Integer scheduleType;
|
||||
|
||||
/** 起始时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "起始时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty("起始时间")
|
||||
private Date startDate;
|
||||
|
||||
/** 结束时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty("结束时间")
|
||||
private Date endDate;
|
||||
|
||||
/** 物料名称 */
|
||||
@Excel(name = "物料名称")
|
||||
@ApiModelProperty("物料名称")
|
||||
private String materialName;
|
||||
|
||||
/** 达成状态 0未达成 1已达成 */
|
||||
@ApiModelProperty("达成状态 0未达成 1已达成 ")
|
||||
@Excel(name = "达成状态 0未达成 1已达成 ")
|
||||
private String status = "0";
|
||||
|
||||
public void setMaterialId(Long materialId)
|
||||
{
|
||||
this.materialId = materialId;
|
||||
}
|
||||
|
||||
public Long getMaterialId()
|
||||
{
|
||||
return materialId;
|
||||
}
|
||||
public void setSales(BigDecimal sales)
|
||||
{
|
||||
this.sales = sales;
|
||||
}
|
||||
|
||||
public BigDecimal getSales()
|
||||
{
|
||||
return sales;
|
||||
}
|
||||
public void setSaleAmount(BigDecimal saleAmount)
|
||||
{
|
||||
this.saleAmount = saleAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getSaleAmount()
|
||||
{
|
||||
return saleAmount;
|
||||
}
|
||||
public void setScheduleNumber(String scheduleNumber)
|
||||
{
|
||||
this.scheduleNumber = scheduleNumber;
|
||||
}
|
||||
|
||||
public String getScheduleNumber()
|
||||
{
|
||||
return scheduleNumber;
|
||||
}
|
||||
public void setScheduleTitle(String scheduleTitle)
|
||||
{
|
||||
this.scheduleTitle = scheduleTitle;
|
||||
}
|
||||
|
||||
public String getScheduleTitle()
|
||||
{
|
||||
return scheduleTitle;
|
||||
}
|
||||
public void setScheduleType(Integer scheduleType)
|
||||
{
|
||||
this.scheduleType = scheduleType;
|
||||
}
|
||||
|
||||
public Integer getScheduleType()
|
||||
{
|
||||
return scheduleType;
|
||||
}
|
||||
public void setStartDate(Date startDate)
|
||||
{
|
||||
this.startDate = startDate;
|
||||
}
|
||||
|
||||
public Date getStartDate()
|
||||
{
|
||||
return startDate;
|
||||
}
|
||||
public void setEndDate(Date endDate)
|
||||
{
|
||||
this.endDate = endDate;
|
||||
}
|
||||
|
||||
public Date getEndDate()
|
||||
{
|
||||
return endDate;
|
||||
}
|
||||
public void setMaterialName(String materialName)
|
||||
{
|
||||
this.materialName = materialName;
|
||||
}
|
||||
|
||||
public String getMaterialName()
|
||||
{
|
||||
return materialName;
|
||||
}
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("materialId", getMaterialId())
|
||||
.append("sales", getSales())
|
||||
.append("saleAmount", getSaleAmount())
|
||||
.append("scheduleNumber", getScheduleNumber())
|
||||
.append("scheduleTitle", getScheduleTitle())
|
||||
.append("scheduleType", getScheduleType())
|
||||
.append("startDate", getStartDate())
|
||||
.append("endDate", getEndDate())
|
||||
.append("materialName", getMaterialName())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,256 @@
|
||||
package com.zhonghui.carbonReport.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.zhonghui.common.annotation.Excel;
|
||||
import com.zhonghui.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 入库明细报表对象 view_wms_in_warehouse_details
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-29
|
||||
*/
|
||||
@ApiModel("入库明细报表对象")
|
||||
public class ViewWmsInWarehouseDetails extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 物料ID */
|
||||
@Excel(name = "物料ID")
|
||||
@ApiModelProperty("物料ID")
|
||||
private Long materialId;
|
||||
|
||||
/** 仓库ID */
|
||||
@Excel(name = "仓库ID")
|
||||
@ApiModelProperty("仓库ID")
|
||||
private Long warehouseId;
|
||||
|
||||
/** 库区ID */
|
||||
@Excel(name = "库区ID")
|
||||
@ApiModelProperty("库区ID")
|
||||
private Long warehouseAreaId;
|
||||
|
||||
/** 库位ID */
|
||||
@Excel(name = "库位ID")
|
||||
@ApiModelProperty("库位ID")
|
||||
private Long warehouseSeatId;
|
||||
|
||||
/** 生产批号 */
|
||||
@Excel(name = "生产批号")
|
||||
@ApiModelProperty("生产批号")
|
||||
private String batchNumber;
|
||||
|
||||
/** 仓库名称 */
|
||||
@Excel(name = "仓库名称")
|
||||
@ApiModelProperty("仓库名称")
|
||||
private String warehouseName;
|
||||
|
||||
/** 库区名称 */
|
||||
@Excel(name = "库区名称")
|
||||
@ApiModelProperty("库区名称")
|
||||
private String areaName;
|
||||
|
||||
/** 库位名称 */
|
||||
@Excel(name = "库位名称")
|
||||
@ApiModelProperty("库位名称")
|
||||
private String seatName;
|
||||
|
||||
/** 入库数量 */
|
||||
@Excel(name = "入库数量")
|
||||
@ApiModelProperty("入库数量")
|
||||
private Double receiptNum;
|
||||
|
||||
/** 业务类型 */
|
||||
@Excel(name = "业务类型")
|
||||
@ApiModelProperty("业务类型")
|
||||
private Integer businessType;
|
||||
|
||||
/** 申请日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "申请日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty("申请日期")
|
||||
private Date applicationDate;
|
||||
|
||||
/** 物料名称 */
|
||||
@Excel(name = "物料名称")
|
||||
@ApiModelProperty("物料名称")
|
||||
private String materialName;
|
||||
|
||||
/** 型号 */
|
||||
@Excel(name = "型号")
|
||||
@ApiModelProperty("型号")
|
||||
private String materialModel;
|
||||
|
||||
/** 规格 */
|
||||
@Excel(name = "规格")
|
||||
@ApiModelProperty("规格")
|
||||
private String materialSpecifications;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
@ApiModelProperty("单位")
|
||||
private String materialUnit;
|
||||
|
||||
public void setWarehouseId(Long warehouseId)
|
||||
{
|
||||
this.warehouseId = warehouseId;
|
||||
}
|
||||
|
||||
public Long getWarehouseId()
|
||||
{
|
||||
return warehouseId;
|
||||
}
|
||||
public void setWarehouseAreaId(Long warehouseAreaId)
|
||||
{
|
||||
this.warehouseAreaId = warehouseAreaId;
|
||||
}
|
||||
|
||||
public Long getWarehouseAreaId()
|
||||
{
|
||||
return warehouseAreaId;
|
||||
}
|
||||
public void setWarehouseSeatId(Long warehouseSeatId)
|
||||
{
|
||||
this.warehouseSeatId = warehouseSeatId;
|
||||
}
|
||||
|
||||
public Long getWarehouseSeatId()
|
||||
{
|
||||
return warehouseSeatId;
|
||||
}
|
||||
public void setBatchNumber(String batchNumber)
|
||||
{
|
||||
this.batchNumber = batchNumber;
|
||||
}
|
||||
|
||||
public String getBatchNumber()
|
||||
{
|
||||
return batchNumber;
|
||||
}
|
||||
public void setWarehouseName(String warehouseName)
|
||||
{
|
||||
this.warehouseName = warehouseName;
|
||||
}
|
||||
|
||||
public String getWarehouseName()
|
||||
{
|
||||
return warehouseName;
|
||||
}
|
||||
public void setAreaName(String areaName)
|
||||
{
|
||||
this.areaName = areaName;
|
||||
}
|
||||
|
||||
public String getAreaName()
|
||||
{
|
||||
return areaName;
|
||||
}
|
||||
public void setSeatName(String seatName)
|
||||
{
|
||||
this.seatName = seatName;
|
||||
}
|
||||
|
||||
public String getSeatName()
|
||||
{
|
||||
return seatName;
|
||||
}
|
||||
public void setReceiptNum(Double receiptNum)
|
||||
{
|
||||
this.receiptNum = receiptNum;
|
||||
}
|
||||
|
||||
public Double getReceiptNum()
|
||||
{
|
||||
return receiptNum;
|
||||
}
|
||||
public void setBusinessType(Integer businessType)
|
||||
{
|
||||
this.businessType = businessType;
|
||||
}
|
||||
|
||||
public Integer getBusinessType()
|
||||
{
|
||||
return businessType;
|
||||
}
|
||||
public void setApplicationDate(Date applicationDate)
|
||||
{
|
||||
this.applicationDate = applicationDate;
|
||||
}
|
||||
|
||||
public Date getApplicationDate()
|
||||
{
|
||||
return applicationDate;
|
||||
}
|
||||
public void setMaterialName(String materialName)
|
||||
{
|
||||
this.materialName = materialName;
|
||||
}
|
||||
|
||||
public String getMaterialName()
|
||||
{
|
||||
return materialName;
|
||||
}
|
||||
public void setMaterialModel(String materialModel)
|
||||
{
|
||||
this.materialModel = materialModel;
|
||||
}
|
||||
|
||||
public String getMaterialModel()
|
||||
{
|
||||
return materialModel;
|
||||
}
|
||||
public void setMaterialSpecifications(String materialSpecifications)
|
||||
{
|
||||
this.materialSpecifications = materialSpecifications;
|
||||
}
|
||||
|
||||
public String getMaterialSpecifications()
|
||||
{
|
||||
return materialSpecifications;
|
||||
}
|
||||
public void setMaterialUnit(String materialUnit)
|
||||
{
|
||||
this.materialUnit = materialUnit;
|
||||
}
|
||||
|
||||
public String getMaterialUnit()
|
||||
{
|
||||
return materialUnit;
|
||||
}
|
||||
public void setMaterialId(Long materialId)
|
||||
{
|
||||
this.materialId = materialId;
|
||||
}
|
||||
|
||||
public Long getMaterialId()
|
||||
{
|
||||
return materialId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("warehouseId", getWarehouseId())
|
||||
.append("warehouseAreaId", getWarehouseAreaId())
|
||||
.append("warehouseSeatId", getWarehouseSeatId())
|
||||
.append("batchNumber", getBatchNumber())
|
||||
.append("warehouseName", getWarehouseName())
|
||||
.append("areaName", getAreaName())
|
||||
.append("seatName", getSeatName())
|
||||
.append("receiptNum", getReceiptNum())
|
||||
.append("businessType", getBusinessType())
|
||||
.append("applicationDate", getApplicationDate())
|
||||
.append("materialName", getMaterialName())
|
||||
.append("materialModel", getMaterialModel())
|
||||
.append("materialSpecifications", getMaterialSpecifications())
|
||||
.append("materialUnit", getMaterialUnit())
|
||||
.append("materialId", getMaterialId())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,282 @@
|
||||
package com.zhonghui.carbonReport.domain;
|
||||
|
||||
import com.zhonghui.common.annotation.Excel;
|
||||
import com.zhonghui.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 库存明细报表对象 view_wms_material_inventory_details
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-29
|
||||
*/
|
||||
@ApiModel("库存明细报表对象")
|
||||
public class ViewWmsMaterialInventoryDetails extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 仓库id */
|
||||
@Excel(name = "仓库id")
|
||||
@ApiModelProperty("仓库id")
|
||||
private Long warehouseId;
|
||||
|
||||
/** 库区id */
|
||||
@Excel(name = "库区id")
|
||||
@ApiModelProperty("库区id")
|
||||
private Long areaId;
|
||||
|
||||
/** 库位id */
|
||||
@Excel(name = "库位id")
|
||||
@ApiModelProperty("库位id")
|
||||
private Long seatId;
|
||||
|
||||
/** 生产厂家 */
|
||||
@Excel(name = "生产厂家")
|
||||
@ApiModelProperty("生产厂家")
|
||||
private String manufacturer;
|
||||
|
||||
/** 生产批号 */
|
||||
@Excel(name = "生产批号")
|
||||
@ApiModelProperty("生产批号")
|
||||
private String batchNumber;
|
||||
|
||||
/** 锁定库存 */
|
||||
@Excel(name = "锁定库存")
|
||||
@ApiModelProperty("锁定库存")
|
||||
private Double lockInventory;
|
||||
|
||||
/** 现有库存 */
|
||||
@Excel(name = "现有库存")
|
||||
@ApiModelProperty("现有库存")
|
||||
private Double existingInventory;
|
||||
|
||||
/** 仓库名称 */
|
||||
@Excel(name = "仓库名称")
|
||||
@ApiModelProperty("仓库名称")
|
||||
private String warehouseName;
|
||||
|
||||
/** 库区名称 */
|
||||
@Excel(name = "库区名称")
|
||||
@ApiModelProperty("库区名称")
|
||||
private String areaName;
|
||||
|
||||
/** 库位名称 */
|
||||
@Excel(name = "库位名称")
|
||||
@ApiModelProperty("库位名称")
|
||||
private String seatName;
|
||||
|
||||
/** 物料id */
|
||||
@Excel(name = "物料id")
|
||||
@ApiModelProperty("物料id")
|
||||
private Long materialId;
|
||||
|
||||
/** 库存上限 */
|
||||
@Excel(name = "库存上限")
|
||||
@ApiModelProperty("库存上限")
|
||||
private Long inventoryLimit;
|
||||
|
||||
/** 库存下限 */
|
||||
@Excel(name = "库存下限")
|
||||
@ApiModelProperty("库存下限")
|
||||
private Long inventoryLower;
|
||||
|
||||
/** 物料名称 */
|
||||
@Excel(name = "物料名称")
|
||||
@ApiModelProperty("物料名称")
|
||||
private String materialName;
|
||||
|
||||
/** 型号 */
|
||||
@Excel(name = "型号")
|
||||
@ApiModelProperty("型号")
|
||||
private String materialModel;
|
||||
|
||||
/** 规格 */
|
||||
@Excel(name = "规格")
|
||||
@ApiModelProperty("规格")
|
||||
private String materialSpecifications;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
@ApiModelProperty("单位")
|
||||
private String materialUnit;
|
||||
|
||||
public void setAreaId(Long areaId)
|
||||
{
|
||||
this.areaId = areaId;
|
||||
}
|
||||
|
||||
public Long getAreaId()
|
||||
{
|
||||
return areaId;
|
||||
}
|
||||
public void setSeatId(Long seatId)
|
||||
{
|
||||
this.seatId = seatId;
|
||||
}
|
||||
|
||||
public Long getSeatId()
|
||||
{
|
||||
return seatId;
|
||||
}
|
||||
public void setManufacturer(String manufacturer)
|
||||
{
|
||||
this.manufacturer = manufacturer;
|
||||
}
|
||||
|
||||
public String getManufacturer()
|
||||
{
|
||||
return manufacturer;
|
||||
}
|
||||
public void setBatchNumber(String batchNumber)
|
||||
{
|
||||
this.batchNumber = batchNumber;
|
||||
}
|
||||
|
||||
public String getBatchNumber()
|
||||
{
|
||||
return batchNumber;
|
||||
}
|
||||
public void setLockInventory(Double lockInventory)
|
||||
{
|
||||
this.lockInventory = lockInventory;
|
||||
}
|
||||
|
||||
public Double getLockInventory()
|
||||
{
|
||||
return lockInventory;
|
||||
}
|
||||
public void setExistingInventory(Double existingInventory)
|
||||
{
|
||||
this.existingInventory = existingInventory;
|
||||
}
|
||||
|
||||
public Double getExistingInventory()
|
||||
{
|
||||
return existingInventory;
|
||||
}
|
||||
public void setWarehouseId(Long warehouseId)
|
||||
{
|
||||
this.warehouseId = warehouseId;
|
||||
}
|
||||
|
||||
public Long getWarehouseId()
|
||||
{
|
||||
return warehouseId;
|
||||
}
|
||||
public void setWarehouseName(String warehouseName)
|
||||
{
|
||||
this.warehouseName = warehouseName;
|
||||
}
|
||||
|
||||
public String getWarehouseName()
|
||||
{
|
||||
return warehouseName;
|
||||
}
|
||||
public void setAreaName(String areaName)
|
||||
{
|
||||
this.areaName = areaName;
|
||||
}
|
||||
|
||||
public String getAreaName()
|
||||
{
|
||||
return areaName;
|
||||
}
|
||||
public void setSeatName(String seatName)
|
||||
{
|
||||
this.seatName = seatName;
|
||||
}
|
||||
|
||||
public String getSeatName()
|
||||
{
|
||||
return seatName;
|
||||
}
|
||||
public void setMaterialId(Long materialId)
|
||||
{
|
||||
this.materialId = materialId;
|
||||
}
|
||||
|
||||
public Long getMaterialId()
|
||||
{
|
||||
return materialId;
|
||||
}
|
||||
public void setInventoryLimit(Long inventoryLimit)
|
||||
{
|
||||
this.inventoryLimit = inventoryLimit;
|
||||
}
|
||||
|
||||
public Long getInventoryLimit()
|
||||
{
|
||||
return inventoryLimit;
|
||||
}
|
||||
public void setInventoryLower(Long inventoryLower)
|
||||
{
|
||||
this.inventoryLower = inventoryLower;
|
||||
}
|
||||
|
||||
public Long getInventoryLower()
|
||||
{
|
||||
return inventoryLower;
|
||||
}
|
||||
public void setMaterialName(String materialName)
|
||||
{
|
||||
this.materialName = materialName;
|
||||
}
|
||||
|
||||
public String getMaterialName()
|
||||
{
|
||||
return materialName;
|
||||
}
|
||||
public void setMaterialModel(String materialModel)
|
||||
{
|
||||
this.materialModel = materialModel;
|
||||
}
|
||||
|
||||
public String getMaterialModel()
|
||||
{
|
||||
return materialModel;
|
||||
}
|
||||
public void setMaterialSpecifications(String materialSpecifications)
|
||||
{
|
||||
this.materialSpecifications = materialSpecifications;
|
||||
}
|
||||
|
||||
public String getMaterialSpecifications()
|
||||
{
|
||||
return materialSpecifications;
|
||||
}
|
||||
public void setMaterialUnit(String materialUnit)
|
||||
{
|
||||
this.materialUnit = materialUnit;
|
||||
}
|
||||
|
||||
public String getMaterialUnit()
|
||||
{
|
||||
return materialUnit;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("areaId", getAreaId())
|
||||
.append("seatId", getSeatId())
|
||||
.append("manufacturer", getManufacturer())
|
||||
.append("batchNumber", getBatchNumber())
|
||||
.append("lockInventory", getLockInventory())
|
||||
.append("existingInventory", getExistingInventory())
|
||||
.append("warehouseId", getWarehouseId())
|
||||
.append("warehouseName", getWarehouseName())
|
||||
.append("areaName", getAreaName())
|
||||
.append("seatName", getSeatName())
|
||||
.append("materialId", getMaterialId())
|
||||
.append("inventoryLimit", getInventoryLimit())
|
||||
.append("inventoryLower", getInventoryLower())
|
||||
.append("materialName", getMaterialName())
|
||||
.append("materialModel", getMaterialModel())
|
||||
.append("materialSpecifications", getMaterialSpecifications())
|
||||
.append("materialUnit", getMaterialUnit())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,256 @@
|
||||
package com.zhonghui.carbonReport.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.zhonghui.common.annotation.Excel;
|
||||
import com.zhonghui.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 物料出库明细报表对象 view_wms_out_warehouse_details
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-29
|
||||
*/
|
||||
@ApiModel("物料出库明细报表对象")
|
||||
public class ViewWmsOutWarehouseDetails extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 物料id */
|
||||
@Excel(name = "物料id")
|
||||
@ApiModelProperty("物料id")
|
||||
private Long materialId;
|
||||
|
||||
/** 仓库编号 */
|
||||
@Excel(name = "仓库编号")
|
||||
@ApiModelProperty("仓库编号")
|
||||
private Long warehouseId;
|
||||
|
||||
/** 库区编号 */
|
||||
@Excel(name = "库区编号")
|
||||
@ApiModelProperty("库区编号")
|
||||
private Long warehouseAreaId;
|
||||
|
||||
/** 库位编号 */
|
||||
@Excel(name = "库位编号")
|
||||
@ApiModelProperty("库位编号")
|
||||
private Long warehouseSeatId;
|
||||
|
||||
/** 出库数量 */
|
||||
@Excel(name = "出库数量")
|
||||
@ApiModelProperty("出库数量")
|
||||
private Double outboundNumber;
|
||||
|
||||
/** 生产批号 */
|
||||
@Excel(name = "生产批号")
|
||||
@ApiModelProperty("生产批号")
|
||||
private String batchNumber;
|
||||
|
||||
/** 仓库名称 */
|
||||
@Excel(name = "仓库名称")
|
||||
@ApiModelProperty("仓库名称")
|
||||
private String warehouseName;
|
||||
|
||||
/** 库区名称 */
|
||||
@Excel(name = "库区名称")
|
||||
@ApiModelProperty("库区名称")
|
||||
private String areaName;
|
||||
|
||||
/** 库位名称 */
|
||||
@Excel(name = "库位名称")
|
||||
@ApiModelProperty("库位名称")
|
||||
private String seatName;
|
||||
|
||||
/** 物料名称 */
|
||||
@Excel(name = "物料名称")
|
||||
@ApiModelProperty("物料名称")
|
||||
private String materialName;
|
||||
|
||||
/** 型号 */
|
||||
@Excel(name = "型号")
|
||||
@ApiModelProperty("型号")
|
||||
private String materialModel;
|
||||
|
||||
/** 规格 */
|
||||
@Excel(name = "规格")
|
||||
@ApiModelProperty("规格")
|
||||
private String materialSpecifications;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
@ApiModelProperty("单位")
|
||||
private String materialUnit;
|
||||
|
||||
/** 业务类型: */
|
||||
@Excel(name = "业务类型:")
|
||||
@ApiModelProperty("业务类型")
|
||||
private Integer businessType;
|
||||
|
||||
/** 申请日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "申请日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty("申请日期")
|
||||
private Date applicationDate;
|
||||
|
||||
public void setMaterialId(Long materialId)
|
||||
{
|
||||
this.materialId = materialId;
|
||||
}
|
||||
|
||||
public Long getMaterialId()
|
||||
{
|
||||
return materialId;
|
||||
}
|
||||
public void setWarehouseId(Long warehouseId)
|
||||
{
|
||||
this.warehouseId = warehouseId;
|
||||
}
|
||||
|
||||
public Long getWarehouseId()
|
||||
{
|
||||
return warehouseId;
|
||||
}
|
||||
public void setWarehouseAreaId(Long warehouseAreaId)
|
||||
{
|
||||
this.warehouseAreaId = warehouseAreaId;
|
||||
}
|
||||
|
||||
public Long getWarehouseAreaId()
|
||||
{
|
||||
return warehouseAreaId;
|
||||
}
|
||||
public void setWarehouseSeatId(Long warehouseSeatId)
|
||||
{
|
||||
this.warehouseSeatId = warehouseSeatId;
|
||||
}
|
||||
|
||||
public Long getWarehouseSeatId()
|
||||
{
|
||||
return warehouseSeatId;
|
||||
}
|
||||
public void setOutboundNumber(Double outboundNumber)
|
||||
{
|
||||
this.outboundNumber = outboundNumber;
|
||||
}
|
||||
|
||||
public Double getOutboundNumber()
|
||||
{
|
||||
return outboundNumber;
|
||||
}
|
||||
public void setBatchNumber(String batchNumber)
|
||||
{
|
||||
this.batchNumber = batchNumber;
|
||||
}
|
||||
|
||||
public String getBatchNumber()
|
||||
{
|
||||
return batchNumber;
|
||||
}
|
||||
public void setWarehouseName(String warehouseName)
|
||||
{
|
||||
this.warehouseName = warehouseName;
|
||||
}
|
||||
|
||||
public String getWarehouseName()
|
||||
{
|
||||
return warehouseName;
|
||||
}
|
||||
public void setAreaName(String areaName)
|
||||
{
|
||||
this.areaName = areaName;
|
||||
}
|
||||
|
||||
public String getAreaName()
|
||||
{
|
||||
return areaName;
|
||||
}
|
||||
public void setSeatName(String seatName)
|
||||
{
|
||||
this.seatName = seatName;
|
||||
}
|
||||
|
||||
public String getSeatName()
|
||||
{
|
||||
return seatName;
|
||||
}
|
||||
public void setMaterialName(String materialName)
|
||||
{
|
||||
this.materialName = materialName;
|
||||
}
|
||||
|
||||
public String getMaterialName()
|
||||
{
|
||||
return materialName;
|
||||
}
|
||||
public void setMaterialModel(String materialModel)
|
||||
{
|
||||
this.materialModel = materialModel;
|
||||
}
|
||||
|
||||
public String getMaterialModel()
|
||||
{
|
||||
return materialModel;
|
||||
}
|
||||
public void setMaterialSpecifications(String materialSpecifications)
|
||||
{
|
||||
this.materialSpecifications = materialSpecifications;
|
||||
}
|
||||
|
||||
public String getMaterialSpecifications()
|
||||
{
|
||||
return materialSpecifications;
|
||||
}
|
||||
public void setMaterialUnit(String materialUnit)
|
||||
{
|
||||
this.materialUnit = materialUnit;
|
||||
}
|
||||
|
||||
public String getMaterialUnit()
|
||||
{
|
||||
return materialUnit;
|
||||
}
|
||||
public void setBusinessType(Integer businessType)
|
||||
{
|
||||
this.businessType = businessType;
|
||||
}
|
||||
|
||||
public Integer getBusinessType()
|
||||
{
|
||||
return businessType;
|
||||
}
|
||||
public void setApplicationDate(Date applicationDate)
|
||||
{
|
||||
this.applicationDate = applicationDate;
|
||||
}
|
||||
|
||||
public Date getApplicationDate()
|
||||
{
|
||||
return applicationDate;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("materialId", getMaterialId())
|
||||
.append("warehouseId", getWarehouseId())
|
||||
.append("warehouseAreaId", getWarehouseAreaId())
|
||||
.append("warehouseSeatId", getWarehouseSeatId())
|
||||
.append("outboundNumber", getOutboundNumber())
|
||||
.append("batchNumber", getBatchNumber())
|
||||
.append("warehouseName", getWarehouseName())
|
||||
.append("areaName", getAreaName())
|
||||
.append("seatName", getSeatName())
|
||||
.append("materialName", getMaterialName())
|
||||
.append("materialModel", getMaterialModel())
|
||||
.append("materialSpecifications", getMaterialSpecifications())
|
||||
.append("materialUnit", getMaterialUnit())
|
||||
.append("businessType", getBusinessType())
|
||||
.append("applicationDate", getApplicationDate())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package com.zhonghui.carbonReport.mapper;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.TmpEnergyConsume;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 能耗临时Mapper接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-25
|
||||
*/
|
||||
public interface TmpEnergyConsumeMapper
|
||||
{
|
||||
/**
|
||||
* 查询能耗临时
|
||||
*
|
||||
* @param id 能耗临时主键
|
||||
* @return 能耗临时
|
||||
*/
|
||||
public TmpEnergyConsume selectTmpEnergyConsumeById(Long id);
|
||||
|
||||
/**
|
||||
* 查询能耗临时列表
|
||||
*
|
||||
* @param tmpEnergyConsume 能耗临时
|
||||
* @return 能耗临时集合
|
||||
*/
|
||||
public List<TmpEnergyConsume> selectTmpEnergyConsumeList(TmpEnergyConsume tmpEnergyConsume);
|
||||
|
||||
/**
|
||||
* 新增能耗临时
|
||||
*
|
||||
* @param tmpEnergyConsume 能耗临时
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertTmpEnergyConsume(TmpEnergyConsume tmpEnergyConsume);
|
||||
|
||||
/**
|
||||
* 修改能耗临时
|
||||
*
|
||||
* @param tmpEnergyConsume 能耗临时
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateTmpEnergyConsume(TmpEnergyConsume tmpEnergyConsume);
|
||||
|
||||
/**
|
||||
* 删除能耗临时
|
||||
*
|
||||
* @param id 能耗临时主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTmpEnergyConsumeById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除能耗临时
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTmpEnergyConsumeByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
package com.zhonghui.carbonReport.mapper;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewMesDevicePowerDetails;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备能耗数据采集Mapper接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
public interface ViewMesDevicePowerDetailsMapper
|
||||
{
|
||||
/**
|
||||
* 查询设备能耗数据采集
|
||||
*
|
||||
* @param deviceId 设备能耗数据采集主键
|
||||
* @return 设备能耗数据采集
|
||||
*/
|
||||
public ViewMesDevicePowerDetails selectViewMesDevicePowerDetailsByDeviceId(Long deviceId);
|
||||
|
||||
/**
|
||||
* 查询设备能耗数据采集列表
|
||||
*
|
||||
* @param viewMesDevicePowerDetails 设备能耗数据采集
|
||||
* @return 设备能耗数据采集集合
|
||||
*/
|
||||
public List<ViewMesDevicePowerDetails> selectViewMesDevicePowerDetailsList(ViewMesDevicePowerDetails viewMesDevicePowerDetails);
|
||||
|
||||
/**
|
||||
* 查询设备日能耗报表
|
||||
* @param viewMesDevicePowerDetails
|
||||
* @return
|
||||
*/
|
||||
public List<ViewMesDevicePowerDetails> selectDevicePowerReportByDay(ViewMesDevicePowerDetails viewMesDevicePowerDetails);
|
||||
}
|
@ -0,0 +1,58 @@
|
||||
package com.zhonghui.carbonReport.mapper;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewMesProductPowerDetails;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 产品能耗报表Mapper接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
public interface ViewMesProductPowerDetailsMapper
|
||||
{
|
||||
/**
|
||||
* 查询产品能耗报表
|
||||
*
|
||||
* @param productionPlanId 产品能耗报表主键
|
||||
* @return 产品能耗报表
|
||||
*/
|
||||
public ViewMesProductPowerDetails selectViewMesProductPowerDetailsByFactoryId(Long productionPlanId);
|
||||
|
||||
/**
|
||||
* 查询产品能耗报表列表
|
||||
*
|
||||
* @param viewMesProductPowerDetails 产品能耗报表
|
||||
* @return 产品能耗报表集合
|
||||
*/
|
||||
public List<ViewMesProductPowerDetails> selectViewMesProductPowerDetailsList(ViewMesProductPowerDetails viewMesProductPowerDetails);
|
||||
|
||||
/**
|
||||
* 生产能耗月度报表
|
||||
* @param viewMesProductPowerDetails 产品能耗报表
|
||||
* @return 生产能耗月度报表
|
||||
*/
|
||||
public List<ViewMesProductPowerDetails> selectProductPowerReportByMonth(ViewMesProductPowerDetails viewMesProductPowerDetails);
|
||||
|
||||
/**
|
||||
* 生产能耗年度报表
|
||||
* @param viewMesProductPowerDetails 产品能耗报表
|
||||
* @return 生产能耗年度报表
|
||||
*/
|
||||
public List<ViewMesProductPowerDetails> selectProductPowerReportByYear(ViewMesProductPowerDetails viewMesProductPowerDetails);
|
||||
|
||||
/**
|
||||
* 获取统计的月份
|
||||
* @param viewMesProductPowerDetails 产品能耗报表
|
||||
* @return 获取统计的月份
|
||||
*/
|
||||
public List<ViewMesProductPowerDetails> selectReportMonth(ViewMesProductPowerDetails viewMesProductPowerDetails);
|
||||
|
||||
/**
|
||||
* 生产能耗日报表
|
||||
* @param viewMesProductPowerDetails 产品能耗报表
|
||||
* @return 生产能耗日报表
|
||||
*/
|
||||
public List<ViewMesProductPowerDetails> selectProductPowerReportByDay(ViewMesProductPowerDetails viewMesProductPowerDetails);
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.zhonghui.carbonReport.mapper;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewScmPurchasingArriveDetails;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 采购到货详细报表Mapper接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
public interface ViewScmPurchasingArriveDetailsMapper
|
||||
{
|
||||
/**
|
||||
* 查询采购到货详细报表列表
|
||||
*
|
||||
* @param viewScmPurchasingArriveDetails 采购到货详细报表
|
||||
* @return 采购到货详细报表集合
|
||||
*/
|
||||
public List<ViewScmPurchasingArriveDetails> selectViewScmPurchasingArriveDetailsList(ViewScmPurchasingArriveDetails viewScmPurchasingArriveDetails);
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
package com.zhonghui.carbonReport.mapper;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ScmContractArriveReturnDetail;
|
||||
import com.zhonghui.carbonReport.domain.ViewScmPurchasingContractDetails;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 采购合同明细报表Mapper接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
public interface ViewScmPurchasingContractDetailsMapper
|
||||
{
|
||||
/**
|
||||
* 查询采购合同明细报表列表
|
||||
*
|
||||
* @param viewScmPurchasingContractDetails 采购合同明细报表
|
||||
* @return 采购合同明细报表集合
|
||||
*/
|
||||
public List<ViewScmPurchasingContractDetails> selectViewScmPurchasingContractDetailsList(ViewScmPurchasingContractDetails viewScmPurchasingContractDetails);
|
||||
|
||||
/**
|
||||
* 按月份统计采购-入库-退货报表
|
||||
*
|
||||
* @param scmContractArriveReturnDetail 采购-入库-退货报表实体
|
||||
* @return 采购-入库-退货报表实体
|
||||
*/
|
||||
public List<ScmContractArriveReturnDetail> selectContractArriveReturnMonthReport(ScmContractArriveReturnDetail scmContractArriveReturnDetail);
|
||||
|
||||
/**
|
||||
* 按季度统计采购-入库-退货报表
|
||||
*
|
||||
* @param scmContractArriveReturnDetail 采购-入库-退货报表实体
|
||||
* @return 采购-入库-退货报表实体
|
||||
*/
|
||||
public List<ScmContractArriveReturnDetail> selectContractArriveReturnQuarterReport(ScmContractArriveReturnDetail scmContractArriveReturnDetail);
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
package com.zhonghui.carbonReport.mapper;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewScmPurchasingContract;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 采购合同报表Mapper接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
public interface ViewScmPurchasingContractMapper
|
||||
{
|
||||
/**
|
||||
* 查询采购合同报表
|
||||
*
|
||||
* @param contractId 采购合同报表主键
|
||||
* @return 采购合同报表
|
||||
*/
|
||||
public ViewScmPurchasingContract selectViewScmPurchasingContractByContractId(Long contractId);
|
||||
|
||||
/**
|
||||
* 查询采购合同报表列表
|
||||
*
|
||||
* @param viewScmPurchasingContract 采购合同报表
|
||||
* @return 采购合同报表集合
|
||||
*/
|
||||
public List<ViewScmPurchasingContract> selectViewScmPurchasingContractList(ViewScmPurchasingContract viewScmPurchasingContract);
|
||||
|
||||
/**
|
||||
* 采购付款月份统计
|
||||
*
|
||||
* @param viewScmPurchasingContract 采购合同报表
|
||||
* @return 采购合同报表报表集合
|
||||
*/
|
||||
public List<ViewScmPurchasingContract> selectMonthReport(ViewScmPurchasingContract viewScmPurchasingContract);
|
||||
|
||||
|
||||
/**
|
||||
* 采购付款季度统计
|
||||
*
|
||||
* @param viewScmPurchasingContract 采购合同报表
|
||||
* @return 采购合同报表报表集合
|
||||
*/
|
||||
public List<ViewScmPurchasingContract> selectQuarterReport(ViewScmPurchasingContract viewScmPurchasingContract);
|
||||
|
||||
/**
|
||||
* 按月份统计供应商对账
|
||||
*
|
||||
* @param viewScmPurchasingContract 采购合同报表
|
||||
* @return 采购合同报表报表集合
|
||||
*/
|
||||
public List<ViewScmPurchasingContract> selectMonthSupplierReport(ViewScmPurchasingContract viewScmPurchasingContract);
|
||||
|
||||
|
||||
/**
|
||||
* 按季度统计供应商对账
|
||||
*
|
||||
* @param viewScmPurchasingContract 采购合同报表
|
||||
* @return 采购合同报表报表集合
|
||||
*/
|
||||
public List<ViewScmPurchasingContract> selectQuarterSupplierReport(ViewScmPurchasingContract viewScmPurchasingContract);
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.zhonghui.carbonReport.mapper;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewScmPurchasingReturnDetails;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 采购退货统计Mapper接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
public interface ViewScmPurchasingReturnDetailsMapper
|
||||
{
|
||||
/**
|
||||
* 查询采购退货统计列表
|
||||
*
|
||||
* @param viewScmPurchasingReturnDetails 采购退货统计
|
||||
* @return 采购退货统计集合
|
||||
*/
|
||||
public List<ViewScmPurchasingReturnDetails> selectViewScmPurchasingReturnDetailsList(ViewScmPurchasingReturnDetails viewScmPurchasingReturnDetails);
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
package com.zhonghui.carbonReport.mapper;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.RepContractDeliveryReturnDetail;
|
||||
import com.zhonghui.carbonReport.domain.ViewScmSaleContractDetails;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 销售合同明细报表Mapper接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
public interface ViewScmSaleContractDetailsMapper
|
||||
{
|
||||
/**
|
||||
* 查询销售合同明细报表列表
|
||||
*
|
||||
* @param viewScmSaleContractDetails 销售合同明细报表
|
||||
* @return 销售合同明细报表集合
|
||||
*/
|
||||
public List<ViewScmSaleContractDetails> selectViewScmSaleContractDetailsList(ViewScmSaleContractDetails viewScmSaleContractDetails);
|
||||
|
||||
/**
|
||||
* 查询销售合同明细列表
|
||||
*
|
||||
* @param viewScmSaleContractDetails 销售合同明细
|
||||
* @return 销售合同明细集合
|
||||
*/
|
||||
public List<ViewScmSaleContractDetails> selectSaleBookReport(ViewScmSaleContractDetails viewScmSaleContractDetails);
|
||||
|
||||
/**
|
||||
* 按月份统计销售-发货-退货报表
|
||||
*
|
||||
* @param repContractDeliveryReturnDetail 销售-发货-退货报表实体
|
||||
* @return 销售-发货-退货报表实体
|
||||
*/
|
||||
public List<RepContractDeliveryReturnDetail> selectContractDeliveryReturnMonthReport(RepContractDeliveryReturnDetail repContractDeliveryReturnDetail);
|
||||
|
||||
/**
|
||||
* 按季度统计销售-发货-退货报表
|
||||
*
|
||||
* @param repContractDeliveryReturnDetail 销售-发货-退货报表实体
|
||||
* @return 销售-发货-退货报表实体
|
||||
*/
|
||||
public List<RepContractDeliveryReturnDetail> selectContractDeliveryReturnQuarterReport(RepContractDeliveryReturnDetail repContractDeliveryReturnDetail);
|
||||
}
|
@ -0,0 +1,105 @@
|
||||
package com.zhonghui.carbonReport.mapper;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewScmFinanceReport;
|
||||
import com.zhonghui.carbonReport.domain.ViewScmSaleContract;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 销售合同报表Mapper接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
public interface ViewScmSaleContractMapper
|
||||
{
|
||||
/**
|
||||
* 查询销售合同报表
|
||||
*
|
||||
* @param contractId 销售合同报表主键
|
||||
* @return 销售合同报表
|
||||
*/
|
||||
public ViewScmSaleContract selectViewScmSaleContractById(Long contractId);
|
||||
|
||||
/**
|
||||
* 查询销售合同报表列表
|
||||
*
|
||||
* @param viewScmSaleContract 销售合同报表
|
||||
* @return 销售合同报表集合
|
||||
*/
|
||||
public List<ViewScmSaleContract> selectViewScmSaleContractList(ViewScmSaleContract viewScmSaleContract);
|
||||
|
||||
/**
|
||||
* 查询按月统计销售合同报表列表
|
||||
*
|
||||
* @param viewScmSaleContract 销售合同报表
|
||||
* @return 销售合同报表集合
|
||||
*/
|
||||
public List<ViewScmSaleContract> selectMonthSaleContractReport(ViewScmSaleContract viewScmSaleContract);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 查询按月统计销售合同报表列表
|
||||
*
|
||||
* @param viewScmSaleContract 销售合同报表
|
||||
* @return 销售合同报表集合
|
||||
*/
|
||||
public List<ViewScmSaleContract> selectQuarterSaleContractReport(ViewScmSaleContract viewScmSaleContract);
|
||||
|
||||
|
||||
/**
|
||||
* 订单收款月统计
|
||||
*
|
||||
* @param viewScmSaleContract 销售合同报表
|
||||
* @return 销售合同报表集合
|
||||
*/
|
||||
public List<ViewScmSaleContract> selectMonthOrderStatReport(ViewScmSaleContract viewScmSaleContract);
|
||||
|
||||
|
||||
/**
|
||||
* 订单收款季度统计
|
||||
*
|
||||
* @param viewScmSaleContract 销售合同报表
|
||||
* @return 销售合同报表集合
|
||||
*/
|
||||
public List<ViewScmSaleContract> selectQuarterOrderStatReport(ViewScmSaleContract viewScmSaleContract);
|
||||
|
||||
/**
|
||||
* 按季度统计财务报告
|
||||
* @param viewScmFinanceReport
|
||||
* @return
|
||||
*/
|
||||
List<ViewScmFinanceReport> selectMonthFinanceReport(ViewScmFinanceReport viewScmFinanceReport);
|
||||
|
||||
/**
|
||||
* 按月统计财务报告
|
||||
* @param viewScmFinanceReport
|
||||
* @return
|
||||
*/
|
||||
List<ViewScmFinanceReport> selectQuarterFinanceReport(ViewScmFinanceReport viewScmFinanceReport);
|
||||
|
||||
/**
|
||||
* 销售客户榜单
|
||||
* @param
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, BigDecimal>> selectSaleCustomerRank();
|
||||
|
||||
/**
|
||||
* 按月统计销售额
|
||||
* @param month
|
||||
* @return
|
||||
*/
|
||||
Map<String, BigDecimal> selectSaleStatByMonth(@Param("month") String month);
|
||||
|
||||
|
||||
/**
|
||||
* 大屏销售总览
|
||||
* @return
|
||||
*/
|
||||
Map<String,BigDecimal> selectSaleOverall();
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package com.zhonghui.carbonReport.mapper;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewScmSaleDeliveryDetails;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 销售发货退货明细报表Mapper接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-25
|
||||
*/
|
||||
public interface ViewScmSaleDeliveryDetailsMapper
|
||||
{
|
||||
/**
|
||||
* 查询销售发货退货明细报表
|
||||
*
|
||||
* @param deliveryId 销售发货退货明细报表主键
|
||||
* @return 销售发货退货明细报表
|
||||
*/
|
||||
public ViewScmSaleDeliveryDetails selectViewScmSaleDeliveryDetailsByDeliveryId(Long deliveryId);
|
||||
|
||||
/**
|
||||
* 查询销售发货退货明细报表列表
|
||||
*
|
||||
* @param viewScmSaleDeliveryDetails 销售发货退货明细报表
|
||||
* @return 销售发货退货明细报表集合
|
||||
*/
|
||||
public List<ViewScmSaleDeliveryDetails> selectViewScmSaleDeliveryDetailsList(ViewScmSaleDeliveryDetails viewScmSaleDeliveryDetails);
|
||||
|
||||
/**
|
||||
* 新增销售发货退货明细报表
|
||||
*
|
||||
* @param viewScmSaleDeliveryDetails 销售发货退货明细报表
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertViewScmSaleDeliveryDetails(ViewScmSaleDeliveryDetails viewScmSaleDeliveryDetails);
|
||||
|
||||
/**
|
||||
* 修改销售发货退货明细报表
|
||||
*
|
||||
* @param viewScmSaleDeliveryDetails 销售发货退货明细报表
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateViewScmSaleDeliveryDetails(ViewScmSaleDeliveryDetails viewScmSaleDeliveryDetails);
|
||||
|
||||
/**
|
||||
* 删除销售发货退货明细报表
|
||||
*
|
||||
* @param deliveryId 销售发货退货明细报表主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewScmSaleDeliveryDetailsByDeliveryId(Long deliveryId);
|
||||
|
||||
/**
|
||||
* 批量删除销售发货退货明细报表
|
||||
*
|
||||
* @param deliveryIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewScmSaleDeliveryDetailsByDeliveryIds(Long[] deliveryIds);
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.zhonghui.carbonReport.mapper;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewScmSaleScheduleDetails;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 销售计划达成率报表Mapper接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-25
|
||||
*/
|
||||
public interface ViewScmSaleScheduleDetailsMapper
|
||||
{
|
||||
/**
|
||||
* 查询销售计划达成率报表列表
|
||||
*
|
||||
* @param viewScmSaleScheduleDetails 销售计划达成率报表
|
||||
* @return 销售计划达成率报表集合
|
||||
*/
|
||||
public List<ViewScmSaleScheduleDetails> selectViewScmSaleScheduleDetailsList(ViewScmSaleScheduleDetails viewScmSaleScheduleDetails);
|
||||
|
||||
/**
|
||||
* 按月统计计划销售额与实际销售额
|
||||
* @param month
|
||||
* @return
|
||||
*/
|
||||
public Map<String, BigDecimal> selectAchieveRateByMonth(@Param("month") String month);
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.zhonghui.carbonReport.mapper;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewWmsInWarehouseDetails;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 入库明细报表Mapper接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-29
|
||||
*/
|
||||
public interface ViewWmsInWarehouseDetailsMapper
|
||||
{
|
||||
/**
|
||||
* 查询入库明细报表
|
||||
*
|
||||
* @param materialId 入库明细报表主键
|
||||
* @return 入库明细报表
|
||||
*/
|
||||
public ViewWmsInWarehouseDetails selectViewWmsInWarehouseDetailsById(Long materialId);
|
||||
|
||||
/**
|
||||
* 查询入库明细报表列表
|
||||
*
|
||||
* @param viewWmsInWarehouseDetails 入库明细报表
|
||||
* @return 入库明细报表集合
|
||||
*/
|
||||
public List<ViewWmsInWarehouseDetails> selectViewWmsInWarehouseDetailsList(ViewWmsInWarehouseDetails viewWmsInWarehouseDetails);
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.zhonghui.carbonReport.mapper;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewWmsMaterialInventoryDetails;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 库存明细报表Mapper接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-29
|
||||
*/
|
||||
public interface ViewWmsMaterialInventoryDetailsMapper
|
||||
{
|
||||
/**
|
||||
* 查询库存明细报表
|
||||
*
|
||||
* @param warehouseId 库存明细报表主键
|
||||
* @return 库存明细报表
|
||||
*/
|
||||
public ViewWmsMaterialInventoryDetails selectViewWmsMaterialInventoryDetailsById(Long warehouseId);
|
||||
|
||||
/**
|
||||
* 查询库存明细报表列表
|
||||
*
|
||||
* @param viewWmsMaterialInventoryDetails 库存明细报表
|
||||
* @return 库存明细报表集合
|
||||
*/
|
||||
public List<ViewWmsMaterialInventoryDetails> selectViewWmsMaterialInventoryDetailsList(ViewWmsMaterialInventoryDetails viewWmsMaterialInventoryDetails);
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.zhonghui.carbonReport.mapper;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewWmsOutWarehouseDetails;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 物料出库明细报表Mapper接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-29
|
||||
*/
|
||||
public interface ViewWmsOutWarehouseDetailsMapper
|
||||
{
|
||||
/**
|
||||
* 查询物料出库明细报表
|
||||
*
|
||||
* @param materialId 物料出库明细报表主键
|
||||
* @return 物料出库明细报表
|
||||
*/
|
||||
public ViewWmsOutWarehouseDetails selectViewWmsOutWarehouseDetailsByMaterialId(Long materialId);
|
||||
|
||||
/**
|
||||
* 查询物料出库明细报表列表
|
||||
*
|
||||
* @param viewWmsOutWarehouseDetails 物料出库明细报表
|
||||
* @return 物料出库明细报表集合
|
||||
*/
|
||||
public List<ViewWmsOutWarehouseDetails> selectViewWmsOutWarehouseDetailsList(ViewWmsOutWarehouseDetails viewWmsOutWarehouseDetails);
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package com.zhonghui.carbonReport.service;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.TmpEnergyConsume;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 能耗临时Service接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-25
|
||||
*/
|
||||
public interface ITmpEnergyConsumeService
|
||||
{
|
||||
/**
|
||||
* 查询能耗临时
|
||||
*
|
||||
* @param id 能耗临时主键
|
||||
* @return 能耗临时
|
||||
*/
|
||||
public TmpEnergyConsume selectTmpEnergyConsumeById(Long id);
|
||||
|
||||
/**
|
||||
* 查询能耗临时列表
|
||||
*
|
||||
* @param tmpEnergyConsume 能耗临时
|
||||
* @return 能耗临时集合
|
||||
*/
|
||||
public List<TmpEnergyConsume> selectTmpEnergyConsumeList(TmpEnergyConsume tmpEnergyConsume);
|
||||
|
||||
/**
|
||||
* 新增能耗临时
|
||||
*
|
||||
* @param tmpEnergyConsume 能耗临时
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertTmpEnergyConsume(TmpEnergyConsume tmpEnergyConsume);
|
||||
|
||||
/**
|
||||
* 修改能耗临时
|
||||
*
|
||||
* @param tmpEnergyConsume 能耗临时
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateTmpEnergyConsume(TmpEnergyConsume tmpEnergyConsume);
|
||||
|
||||
/**
|
||||
* 批量删除能耗临时
|
||||
*
|
||||
* @param ids 需要删除的能耗临时主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTmpEnergyConsumeByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除能耗临时信息
|
||||
*
|
||||
* @param id 能耗临时主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTmpEnergyConsumeById(Long id);
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
package com.zhonghui.carbonReport.service;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewMesDevicePowerDetails;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备能耗数据采集Service接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
public interface IViewMesDevicePowerDetailsService
|
||||
{
|
||||
/**
|
||||
* 查询设备能耗数据采集
|
||||
*
|
||||
* @param deviceId 设备能耗数据采集主键
|
||||
* @return 设备能耗数据采集
|
||||
*/
|
||||
public ViewMesDevicePowerDetails selectViewMesDevicePowerDetailsByDeviceId(Long deviceId);
|
||||
|
||||
/**
|
||||
* 查询设备能耗数据采集列表
|
||||
*
|
||||
* @param viewMesDevicePowerDetails 设备能耗数据采集
|
||||
* @return 设备能耗数据采集集合
|
||||
*/
|
||||
public List<ViewMesDevicePowerDetails> selectViewMesDevicePowerDetailsList(ViewMesDevicePowerDetails viewMesDevicePowerDetails);
|
||||
|
||||
/**
|
||||
* 查询设备日能耗报表
|
||||
* @param viewMesDevicePowerDetails
|
||||
* @return
|
||||
*/
|
||||
public List<ViewMesDevicePowerDetails> selectDevicePowerReportByDay(ViewMesDevicePowerDetails viewMesDevicePowerDetails);
|
||||
}
|
@ -0,0 +1,58 @@
|
||||
package com.zhonghui.carbonReport.service;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewMesProductPowerDetails;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 产品能耗报表Service接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
public interface IViewMesProductPowerDetailsService
|
||||
{
|
||||
/**
|
||||
* 查询产品能耗报表
|
||||
*
|
||||
* @param productionPlanId 产品能耗报表主键
|
||||
* @return 产品能耗报表
|
||||
*/
|
||||
public ViewMesProductPowerDetails selectViewMesProductPowerDetailsByFactoryId(Long productionPlanId);
|
||||
|
||||
/**
|
||||
* 查询产品能耗报表列表
|
||||
*
|
||||
* @param viewMesProductPowerDetails 产品能耗报表
|
||||
* @return 产品能耗报表集合
|
||||
*/
|
||||
public List<ViewMesProductPowerDetails> selectViewMesProductPowerDetailsList(ViewMesProductPowerDetails viewMesProductPowerDetails);
|
||||
|
||||
/**
|
||||
* 生产能耗月度报表
|
||||
* @param viewMesProductPowerDetails 产品能耗报表
|
||||
* @return 生产能耗月度报表
|
||||
*/
|
||||
public List<ViewMesProductPowerDetails> selectProductPowerReportByMonth(ViewMesProductPowerDetails viewMesProductPowerDetails);
|
||||
|
||||
/**
|
||||
* 生产能耗年度报表
|
||||
* @param viewMesProductPowerDetails 产品能耗报表
|
||||
* @return 生产能耗年度报表
|
||||
*/
|
||||
public List<ViewMesProductPowerDetails> selectProductPowerReportByYear(ViewMesProductPowerDetails viewMesProductPowerDetails);
|
||||
|
||||
/**
|
||||
* 获取统计的月份
|
||||
* @param viewMesProductPowerDetails 产品能耗报表
|
||||
* @return 获取统计的月份
|
||||
*/
|
||||
public List<ViewMesProductPowerDetails> selectReportMonth(ViewMesProductPowerDetails viewMesProductPowerDetails);
|
||||
|
||||
/**
|
||||
* 生产能耗日报表
|
||||
* @param viewMesProductPowerDetails 产品能耗报表
|
||||
* @return 生产能耗日报表
|
||||
*/
|
||||
public List<ViewMesProductPowerDetails> selectProductPowerReportByDay(ViewMesProductPowerDetails viewMesProductPowerDetails);
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.zhonghui.carbonReport.service;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewScmPurchasingArriveDetails;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 采购到货详细报表Service接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
public interface IViewScmPurchasingArriveDetailsService
|
||||
{
|
||||
/**
|
||||
* 查询采购到货详细报表列表
|
||||
*
|
||||
* @param viewScmPurchasingArriveDetails 采购到货详细报表
|
||||
* @return 采购到货详细报表集合
|
||||
*/
|
||||
public List<ViewScmPurchasingArriveDetails> selectViewScmPurchasingArriveDetailsList(ViewScmPurchasingArriveDetails viewScmPurchasingArriveDetails);
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
package com.zhonghui.carbonReport.service;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ScmContractArriveReturnDetail;
|
||||
import com.zhonghui.carbonReport.domain.ViewScmPurchasingContractDetails;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 采购合同明细报表Service接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
public interface IViewScmPurchasingContractDetailsService
|
||||
{
|
||||
/**
|
||||
* 查询采购合同明细报表列表
|
||||
*
|
||||
* @param viewScmPurchasingContractDetails 采购合同明细报表
|
||||
* @return 采购合同明细报表集合
|
||||
*/
|
||||
public List<ViewScmPurchasingContractDetails> selectViewScmPurchasingContractDetailsList(ViewScmPurchasingContractDetails viewScmPurchasingContractDetails);
|
||||
|
||||
/**
|
||||
* 按月份统计采购-入库-退货报表
|
||||
*
|
||||
* @param scmContractArriveReturnDetail 采购-入库-退货报表实体
|
||||
* @return 采购-入库-退货报表实体
|
||||
*/
|
||||
List<ScmContractArriveReturnDetail> selectContractArriveReturnMonthReport(ScmContractArriveReturnDetail scmContractArriveReturnDetail);
|
||||
|
||||
/**
|
||||
* 按季度统计采购-入库-退货报表
|
||||
*
|
||||
* @param scmContractArriveReturnDetail 采购-入库-退货报表实体
|
||||
* @return 采购-入库-退货报表实体
|
||||
*/
|
||||
List<ScmContractArriveReturnDetail> selectContractArriveReturnQuarterReport(ScmContractArriveReturnDetail scmContractArriveReturnDetail);
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package com.zhonghui.carbonReport.service;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewScmPurchasingContract;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 采购合同报表Service接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
public interface IViewScmPurchasingContractService
|
||||
{
|
||||
/**
|
||||
* 查询采购合同报表
|
||||
*
|
||||
* @param contractId 采购合同报表主键
|
||||
* @return 采购合同报表
|
||||
*/
|
||||
public ViewScmPurchasingContract selectViewScmPurchasingContractByContractId(Long contractId);
|
||||
|
||||
/**
|
||||
* 查询采购合同报表列表
|
||||
*
|
||||
* @param viewScmPurchasingContract 采购合同报表
|
||||
* @return 采购合同报表集合
|
||||
*/
|
||||
public List<ViewScmPurchasingContract> selectViewScmPurchasingContractList(ViewScmPurchasingContract viewScmPurchasingContract);
|
||||
|
||||
/**
|
||||
* 按月份统计
|
||||
*
|
||||
* @param viewScmPurchasingContract 采购合同报表
|
||||
* @return 采购合同报表集合
|
||||
*/
|
||||
public List<ViewScmPurchasingContract> selectMonthReport(ViewScmPurchasingContract viewScmPurchasingContract);
|
||||
|
||||
/**
|
||||
* 按季度份统计
|
||||
*
|
||||
* @param viewScmPurchasingContract 采购合同报表
|
||||
* @return 采购合同报表集合
|
||||
*/
|
||||
public List<ViewScmPurchasingContract> selectQuarterReport(ViewScmPurchasingContract viewScmPurchasingContract);
|
||||
|
||||
|
||||
/**
|
||||
* 按月份统计供应商对账
|
||||
*
|
||||
* @param viewScmPurchasingContract 采购合同报表
|
||||
* @return 采购合同报表集合
|
||||
*/
|
||||
public List<ViewScmPurchasingContract> selectMonthSupplierReport(ViewScmPurchasingContract viewScmPurchasingContract);
|
||||
|
||||
/**
|
||||
* 按季度统计供应商对账
|
||||
*
|
||||
* @param viewScmPurchasingContract 采购合同报表
|
||||
* @return 采购合同报表集合
|
||||
*/
|
||||
public List<ViewScmPurchasingContract> selectQuarterSupplierReport(ViewScmPurchasingContract viewScmPurchasingContract);
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.zhonghui.carbonReport.service;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewScmPurchasingReturnDetails;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 采购退货统计Service接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
public interface IViewScmPurchasingReturnDetailsService
|
||||
{
|
||||
/**
|
||||
* 查询采购退货统计列表
|
||||
*
|
||||
* @param viewScmPurchasingReturnDetails 采购退货统计
|
||||
* @return 采购退货统计集合
|
||||
*/
|
||||
public List<ViewScmPurchasingReturnDetails> selectViewScmPurchasingReturnDetailsList(ViewScmPurchasingReturnDetails viewScmPurchasingReturnDetails);
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
package com.zhonghui.carbonReport.service;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.RepContractDeliveryReturnDetail;
|
||||
import com.zhonghui.carbonReport.domain.ViewScmSaleContractDetails;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 销售合同明细报表Service接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
public interface IViewScmSaleContractDetailsService
|
||||
{
|
||||
/**
|
||||
* 查询销售合同明细报表列表
|
||||
*
|
||||
* @param viewScmSaleContractDetails 销售合同明细报表
|
||||
* @return 销售合同明细报表集合
|
||||
*/
|
||||
public List<ViewScmSaleContractDetails> selectViewScmSaleContractDetailsList(ViewScmSaleContractDetails viewScmSaleContractDetails);
|
||||
|
||||
/**
|
||||
* 查询销售台账报表
|
||||
*
|
||||
* @param viewScmSaleContractDetails 销售合同明细
|
||||
* @return 销售合同明细集合
|
||||
*/
|
||||
public List<ViewScmSaleContractDetails> selectSaleBookReport(ViewScmSaleContractDetails viewScmSaleContractDetails);
|
||||
|
||||
|
||||
/**
|
||||
* 按月份统计销售-发货-退货报表
|
||||
*
|
||||
* @param repContractDeliveryReturnDetail 销售-发货-退货报表实体
|
||||
* @return 销售-发货-退货报表实体
|
||||
*/
|
||||
List<RepContractDeliveryReturnDetail> selectContractDeliveryReturnMonthReport(RepContractDeliveryReturnDetail repContractDeliveryReturnDetail);
|
||||
|
||||
/**
|
||||
* 按季度统计销售-发货-退货报表
|
||||
*
|
||||
* @param repContractDeliveryReturnDetail 销售-发货-退货报表实体
|
||||
* @return 销售-发货-退货报表实体
|
||||
*/
|
||||
List<RepContractDeliveryReturnDetail> selectContractDeliveryReturnQuarterReport(RepContractDeliveryReturnDetail repContractDeliveryReturnDetail);
|
||||
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package com.zhonghui.carbonReport.service;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewScmFinanceReport;
|
||||
import com.zhonghui.carbonReport.domain.ViewScmSaleContract;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 销售合同报表Service接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
public interface IViewScmSaleContractService
|
||||
{
|
||||
/**
|
||||
* 查询销售合同报表
|
||||
*
|
||||
* @param contractId 销售合同报表主键
|
||||
* @return 销售合同报表
|
||||
*/
|
||||
public ViewScmSaleContract selectViewScmSaleContractById(Long contractId);
|
||||
|
||||
/**
|
||||
* 查询销售合同报表列表
|
||||
*
|
||||
* @param viewScmSaleContract 销售合同报表
|
||||
* @return 销售合同报表集合
|
||||
*/
|
||||
public List<ViewScmSaleContract> selectViewScmSaleContractList(ViewScmSaleContract viewScmSaleContract);
|
||||
|
||||
/**
|
||||
* 查询按月统计销售合同报表列表
|
||||
*
|
||||
* @param viewScmSaleContract 销售合同报表
|
||||
* @return 销售合同报表集合
|
||||
*/
|
||||
public List<ViewScmSaleContract> selectMonthSaleContractReport(ViewScmSaleContract viewScmSaleContract);
|
||||
|
||||
/**
|
||||
* 查询按季度统计销售合同报表列表
|
||||
*
|
||||
* @param viewScmSaleContract 销售合同报表
|
||||
* @return 销售合同报表集合
|
||||
*/
|
||||
public List<ViewScmSaleContract> selectQuarterSaleContractReport(ViewScmSaleContract viewScmSaleContract);
|
||||
|
||||
|
||||
/**
|
||||
* 订单收款月统计
|
||||
*
|
||||
* @param viewScmSaleContract 销售合同报表
|
||||
* @return 销售合同报表集合
|
||||
*/
|
||||
public List<ViewScmSaleContract> selectMonthOrderStatReport(ViewScmSaleContract viewScmSaleContract);
|
||||
|
||||
/**
|
||||
* 订单收款季度统计
|
||||
*
|
||||
* @param viewScmSaleContract 销售合同报表
|
||||
* @return 销售合同报表集合
|
||||
*/
|
||||
public List<ViewScmSaleContract> selectQuarterOrderStatReport(ViewScmSaleContract viewScmSaleContract);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 财务收支月份统计
|
||||
*
|
||||
* @return 销售合同报表
|
||||
*/
|
||||
public List<ViewScmFinanceReport> selectMonthFinanceReport(ViewScmFinanceReport viewScmFinanceReport);
|
||||
|
||||
|
||||
/**
|
||||
* 财务收支季度统计
|
||||
*
|
||||
* @return 销售合同报表
|
||||
*/
|
||||
public List<ViewScmFinanceReport> selectQuarterFinanceReport(ViewScmFinanceReport viewScmFinanceReport);
|
||||
|
||||
|
||||
/**
|
||||
* 客户销售排名
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, BigDecimal>> selectSaleCustomerRank();
|
||||
|
||||
/**
|
||||
* 按月统计销售额
|
||||
* @param month
|
||||
* @return
|
||||
*/
|
||||
public Map<String, BigDecimal> selectSaleStatByMonth(String month);
|
||||
|
||||
/**
|
||||
* 大屏销售总览
|
||||
* @return
|
||||
*/
|
||||
public Map<String,BigDecimal> selectSaleOverall();
|
||||
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package com.zhonghui.carbonReport.service;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewScmSaleDeliveryDetails;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 销售发货退货明细报表Service接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-25
|
||||
*/
|
||||
public interface IViewScmSaleDeliveryDetailsService
|
||||
{
|
||||
/**
|
||||
* 查询销售发货退货明细报表
|
||||
*
|
||||
* @param deliveryId 销售发货退货明细报表主键
|
||||
* @return 销售发货退货明细报表
|
||||
*/
|
||||
public ViewScmSaleDeliveryDetails selectViewScmSaleDeliveryDetailsByDeliveryId(Long deliveryId);
|
||||
|
||||
/**
|
||||
* 查询销售发货退货明细报表列表
|
||||
*
|
||||
* @param viewScmSaleDeliveryDetails 销售发货退货明细报表
|
||||
* @return 销售发货退货明细报表集合
|
||||
*/
|
||||
public List<ViewScmSaleDeliveryDetails> selectViewScmSaleDeliveryDetailsList(ViewScmSaleDeliveryDetails viewScmSaleDeliveryDetails);
|
||||
|
||||
/**
|
||||
* 新增销售发货退货明细报表
|
||||
*
|
||||
* @param viewScmSaleDeliveryDetails 销售发货退货明细报表
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertViewScmSaleDeliveryDetails(ViewScmSaleDeliveryDetails viewScmSaleDeliveryDetails);
|
||||
|
||||
/**
|
||||
* 修改销售发货退货明细报表
|
||||
*
|
||||
* @param viewScmSaleDeliveryDetails 销售发货退货明细报表
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateViewScmSaleDeliveryDetails(ViewScmSaleDeliveryDetails viewScmSaleDeliveryDetails);
|
||||
|
||||
/**
|
||||
* 批量删除销售发货退货明细报表
|
||||
*
|
||||
* @param deliveryIds 需要删除的销售发货退货明细报表主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewScmSaleDeliveryDetailsByDeliveryIds(Long[] deliveryIds);
|
||||
|
||||
/**
|
||||
* 删除销售发货退货明细报表信息
|
||||
*
|
||||
* @param deliveryId 销售发货退货明细报表主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteViewScmSaleDeliveryDetailsByDeliveryId(Long deliveryId);
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package com.zhonghui.carbonReport.service;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewScmSaleScheduleDetails;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 销售计划达成率报表Service接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-25
|
||||
*/
|
||||
public interface IViewScmSaleScheduleDetailsService
|
||||
{
|
||||
/**
|
||||
* 查询销售计划达成率报表列表
|
||||
*
|
||||
* @param viewScmSaleScheduleDetails 销售计划达成率报表
|
||||
* @return 销售计划达成率报表集合
|
||||
*/
|
||||
public List<ViewScmSaleScheduleDetails> selectViewScmSaleScheduleDetailsList(ViewScmSaleScheduleDetails viewScmSaleScheduleDetails);
|
||||
|
||||
/**
|
||||
* 按月统计计划销售额与实际销售额
|
||||
* @param month
|
||||
* @return
|
||||
*/
|
||||
public Map<String, BigDecimal> selectAchieveRateByMonth(String month);
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.zhonghui.carbonReport.service;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewWmsInWarehouseDetails;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 入库明细报表Service接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-29
|
||||
*/
|
||||
public interface IViewWmsInWarehouseDetailsService
|
||||
{
|
||||
/**
|
||||
* 查询入库明细报表
|
||||
*
|
||||
* @param materialId 入库明细报表主键
|
||||
* @return 入库明细报表
|
||||
*/
|
||||
public ViewWmsInWarehouseDetails selectViewWmsInWarehouseDetailsById(Long materialId);
|
||||
|
||||
/**
|
||||
* 查询入库明细报表列表
|
||||
*
|
||||
* @param viewWmsInWarehouseDetails 入库明细报表
|
||||
* @return 入库明细报表集合
|
||||
*/
|
||||
public List<ViewWmsInWarehouseDetails> selectViewWmsInWarehouseDetailsList(ViewWmsInWarehouseDetails viewWmsInWarehouseDetails);
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.zhonghui.carbonReport.service;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewWmsMaterialInventoryDetails;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 库存明细报表Service接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-29
|
||||
*/
|
||||
public interface IViewWmsMaterialInventoryDetailsService
|
||||
{
|
||||
/**
|
||||
* 查询库存明细报表
|
||||
*
|
||||
* @param warehouseId 库存明细报表主键
|
||||
* @return 库存明细报表
|
||||
*/
|
||||
public ViewWmsMaterialInventoryDetails selectViewWmsMaterialInventoryDetailsById(Long warehouseId);
|
||||
|
||||
/**
|
||||
* 查询库存明细报表列表
|
||||
*
|
||||
* @param viewWmsMaterialInventoryDetails 库存明细报表
|
||||
* @return 库存明细报表集合
|
||||
*/
|
||||
public List<ViewWmsMaterialInventoryDetails> selectViewWmsMaterialInventoryDetailsList(ViewWmsMaterialInventoryDetails viewWmsMaterialInventoryDetails);
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.zhonghui.carbonReport.service;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewWmsOutWarehouseDetails;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 物料出库明细报表Service接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-29
|
||||
*/
|
||||
public interface IViewWmsOutWarehouseDetailsService
|
||||
{
|
||||
/**
|
||||
* 查询物料出库明细报表
|
||||
*
|
||||
* @param materialId 物料出库明细报表主键
|
||||
* @return 物料出库明细报表
|
||||
*/
|
||||
public ViewWmsOutWarehouseDetails selectViewWmsOutWarehouseDetailsByMaterialId(Long materialId);
|
||||
|
||||
/**
|
||||
* 查询物料出库明细报表列表
|
||||
*
|
||||
* @param viewWmsOutWarehouseDetails 物料出库明细报表
|
||||
* @return 物料出库明细报表集合
|
||||
*/
|
||||
public List<ViewWmsOutWarehouseDetails> selectViewWmsOutWarehouseDetailsList(ViewWmsOutWarehouseDetails viewWmsOutWarehouseDetails);
|
||||
}
|
@ -0,0 +1,94 @@
|
||||
package com.zhonghui.carbonReport.service.impl;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.TmpEnergyConsume;
|
||||
import com.zhonghui.carbonReport.mapper.TmpEnergyConsumeMapper;
|
||||
import com.zhonghui.carbonReport.service.ITmpEnergyConsumeService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 能耗临时Service业务层处理
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-25
|
||||
*/
|
||||
@Service
|
||||
public class TmpEnergyConsumeServiceImpl implements ITmpEnergyConsumeService
|
||||
{
|
||||
@Autowired
|
||||
private TmpEnergyConsumeMapper tmpEnergyConsumeMapper;
|
||||
|
||||
/**
|
||||
* 查询能耗临时
|
||||
*
|
||||
* @param id 能耗临时主键
|
||||
* @return 能耗临时
|
||||
*/
|
||||
@Override
|
||||
public TmpEnergyConsume selectTmpEnergyConsumeById(Long id)
|
||||
{
|
||||
return tmpEnergyConsumeMapper.selectTmpEnergyConsumeById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询能耗临时列表
|
||||
*
|
||||
* @param tmpEnergyConsume 能耗临时
|
||||
* @return 能耗临时
|
||||
*/
|
||||
@Override
|
||||
public List<TmpEnergyConsume> selectTmpEnergyConsumeList(TmpEnergyConsume tmpEnergyConsume)
|
||||
{
|
||||
return tmpEnergyConsumeMapper.selectTmpEnergyConsumeList(tmpEnergyConsume);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增能耗临时
|
||||
*
|
||||
* @param tmpEnergyConsume 能耗临时
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertTmpEnergyConsume(TmpEnergyConsume tmpEnergyConsume)
|
||||
{
|
||||
return tmpEnergyConsumeMapper.insertTmpEnergyConsume(tmpEnergyConsume);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改能耗临时
|
||||
*
|
||||
* @param tmpEnergyConsume 能耗临时
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateTmpEnergyConsume(TmpEnergyConsume tmpEnergyConsume)
|
||||
{
|
||||
return tmpEnergyConsumeMapper.updateTmpEnergyConsume(tmpEnergyConsume);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除能耗临时
|
||||
*
|
||||
* @param ids 需要删除的能耗临时主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTmpEnergyConsumeByIds(Long[] ids)
|
||||
{
|
||||
return tmpEnergyConsumeMapper.deleteTmpEnergyConsumeByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除能耗临时信息
|
||||
*
|
||||
* @param id 能耗临时主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTmpEnergyConsumeById(Long id)
|
||||
{
|
||||
return tmpEnergyConsumeMapper.deleteTmpEnergyConsumeById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
package com.zhonghui.carbonReport.service.impl;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewMesDevicePowerDetails;
|
||||
import com.zhonghui.carbonReport.mapper.ViewMesDevicePowerDetailsMapper;
|
||||
import com.zhonghui.carbonReport.service.IViewMesDevicePowerDetailsService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备能耗数据采集Service业务层处理
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@Service
|
||||
public class ViewMesDevicePowerDetailsServiceImpl implements IViewMesDevicePowerDetailsService
|
||||
{
|
||||
@Autowired
|
||||
private ViewMesDevicePowerDetailsMapper viewMesDevicePowerDetailsMapper;
|
||||
|
||||
/**
|
||||
* 查询设备能耗数据采集
|
||||
*
|
||||
* @param deviceId 设备能耗数据采集主键
|
||||
* @return 设备能耗数据采集
|
||||
*/
|
||||
@Override
|
||||
public ViewMesDevicePowerDetails selectViewMesDevicePowerDetailsByDeviceId(Long deviceId)
|
||||
{
|
||||
return viewMesDevicePowerDetailsMapper.selectViewMesDevicePowerDetailsByDeviceId(deviceId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询设备能耗数据采集列表
|
||||
*
|
||||
* @param viewMesDevicePowerDetails 设备能耗数据采集
|
||||
* @return 设备能耗数据采集
|
||||
*/
|
||||
@Override
|
||||
public List<ViewMesDevicePowerDetails> selectViewMesDevicePowerDetailsList(ViewMesDevicePowerDetails viewMesDevicePowerDetails)
|
||||
{
|
||||
return viewMesDevicePowerDetailsMapper.selectViewMesDevicePowerDetailsList(viewMesDevicePowerDetails);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询设备日能耗报表
|
||||
*
|
||||
* @param viewMesDevicePowerDetails 查询设备日能耗报表
|
||||
* @return 设备日能耗报表
|
||||
*/
|
||||
@Override
|
||||
public List<ViewMesDevicePowerDetails> selectDevicePowerReportByDay(ViewMesDevicePowerDetails viewMesDevicePowerDetails) {
|
||||
return viewMesDevicePowerDetailsMapper.selectDevicePowerReportByDay(viewMesDevicePowerDetails);
|
||||
}
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
package com.zhonghui.carbonReport.service.impl;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewMesProductPowerDetails;
|
||||
import com.zhonghui.carbonReport.mapper.ViewMesProductPowerDetailsMapper;
|
||||
import com.zhonghui.carbonReport.service.IViewMesProductPowerDetailsService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 产品能耗报表Service业务层处理
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@Service
|
||||
public class ViewMesProductPowerDetailsServiceImpl implements IViewMesProductPowerDetailsService
|
||||
{
|
||||
@Autowired
|
||||
private ViewMesProductPowerDetailsMapper viewMesProductPowerDetailsMapper;
|
||||
|
||||
/**
|
||||
* 查询产品能耗报表
|
||||
*
|
||||
* @param productionPlanId 产品能耗报表主键
|
||||
* @return 产品能耗报表
|
||||
*/
|
||||
@Override
|
||||
public ViewMesProductPowerDetails selectViewMesProductPowerDetailsByFactoryId(Long productionPlanId)
|
||||
{
|
||||
return viewMesProductPowerDetailsMapper.selectViewMesProductPowerDetailsByFactoryId(productionPlanId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询产品能耗报表列表
|
||||
*
|
||||
* @param viewMesProductPowerDetails 产品能耗报表
|
||||
* @return 产品能耗报表
|
||||
*/
|
||||
@Override
|
||||
public List<ViewMesProductPowerDetails> selectViewMesProductPowerDetailsList(ViewMesProductPowerDetails viewMesProductPowerDetails)
|
||||
{
|
||||
return viewMesProductPowerDetailsMapper.selectViewMesProductPowerDetailsList(viewMesProductPowerDetails);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ViewMesProductPowerDetails> selectProductPowerReportByMonth(ViewMesProductPowerDetails viewMesProductPowerDetails) {
|
||||
return viewMesProductPowerDetailsMapper.selectProductPowerReportByMonth(viewMesProductPowerDetails);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ViewMesProductPowerDetails> selectProductPowerReportByYear(ViewMesProductPowerDetails viewMesProductPowerDetails) {
|
||||
return viewMesProductPowerDetailsMapper.selectProductPowerReportByYear(viewMesProductPowerDetails);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ViewMesProductPowerDetails> selectReportMonth(ViewMesProductPowerDetails viewMesProductPowerDetails) {
|
||||
return viewMesProductPowerDetailsMapper.selectReportMonth(viewMesProductPowerDetails);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ViewMesProductPowerDetails> selectProductPowerReportByDay(ViewMesProductPowerDetails viewMesProductPowerDetails) {
|
||||
return viewMesProductPowerDetailsMapper.selectProductPowerReportByDay(viewMesProductPowerDetails);
|
||||
}
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package com.zhonghui.carbonReport.service.impl;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewScmPurchasingArriveDetails;
|
||||
import com.zhonghui.carbonReport.mapper.ViewScmPurchasingArriveDetailsMapper;
|
||||
import com.zhonghui.carbonReport.service.IViewScmPurchasingArriveDetailsService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 采购到货详细报表Service业务层处理
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@Service
|
||||
public class ViewScmPurchasingArriveDetailsServiceImpl implements IViewScmPurchasingArriveDetailsService
|
||||
{
|
||||
@Autowired
|
||||
private ViewScmPurchasingArriveDetailsMapper viewScmPurchasingArriveDetailsMapper;
|
||||
|
||||
/**
|
||||
* 查询采购到货详细报表列表
|
||||
*
|
||||
* @param viewScmPurchasingArriveDetails 采购到货详细报表
|
||||
* @return 采购到货详细报表
|
||||
*/
|
||||
@Override
|
||||
public List<ViewScmPurchasingArriveDetails> selectViewScmPurchasingArriveDetailsList(ViewScmPurchasingArriveDetails viewScmPurchasingArriveDetails)
|
||||
{
|
||||
return viewScmPurchasingArriveDetailsMapper.selectViewScmPurchasingArriveDetailsList(viewScmPurchasingArriveDetails);
|
||||
}
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
package com.zhonghui.carbonReport.service.impl;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ScmContractArriveReturnDetail;
|
||||
import com.zhonghui.carbonReport.domain.ViewScmPurchasingContractDetails;
|
||||
import com.zhonghui.carbonReport.mapper.ViewScmPurchasingContractDetailsMapper;
|
||||
import com.zhonghui.carbonReport.service.IViewScmPurchasingContractDetailsService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 采购合同明细报表Service业务层处理
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@Service
|
||||
public class ViewScmPurchasingContractDetailsServiceImpl implements IViewScmPurchasingContractDetailsService
|
||||
{
|
||||
@Autowired
|
||||
private ViewScmPurchasingContractDetailsMapper viewScmPurchasingContractDetailsMapper;
|
||||
|
||||
/**
|
||||
* 查询采购合同明细报表列表
|
||||
*
|
||||
* @param viewScmPurchasingContractDetails 采购合同明细报表
|
||||
* @return 采购合同明细报表
|
||||
*/
|
||||
@Override
|
||||
public List<ViewScmPurchasingContractDetails> selectViewScmPurchasingContractDetailsList(ViewScmPurchasingContractDetails viewScmPurchasingContractDetails)
|
||||
{
|
||||
return viewScmPurchasingContractDetailsMapper.selectViewScmPurchasingContractDetailsList(viewScmPurchasingContractDetails);
|
||||
}
|
||||
|
||||
/**
|
||||
* 按月份统计采购-入库-退货报表
|
||||
*
|
||||
* @param scmContractArriveReturnDetail 采购-入库-退货报表实体
|
||||
* @return 采购-入库-退货报表实体
|
||||
*/
|
||||
@Override
|
||||
public List<ScmContractArriveReturnDetail> selectContractArriveReturnMonthReport(ScmContractArriveReturnDetail scmContractArriveReturnDetail) {
|
||||
return viewScmPurchasingContractDetailsMapper.selectContractArriveReturnMonthReport(scmContractArriveReturnDetail);
|
||||
}
|
||||
|
||||
/**
|
||||
* 按季度统计采购-入库-退货报表
|
||||
*
|
||||
* @param scmContractArriveReturnDetail 采购-入库-退货报表实体
|
||||
* @return 采购-入库-退货报表实体
|
||||
*/
|
||||
@Override
|
||||
public List<ScmContractArriveReturnDetail> selectContractArriveReturnQuarterReport(ScmContractArriveReturnDetail scmContractArriveReturnDetail) {
|
||||
return viewScmPurchasingContractDetailsMapper.selectContractArriveReturnQuarterReport(scmContractArriveReturnDetail);
|
||||
}
|
||||
}
|
@ -0,0 +1,89 @@
|
||||
package com.zhonghui.carbonReport.service.impl;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewScmPurchasingContract;
|
||||
import com.zhonghui.carbonReport.mapper.ViewScmPurchasingContractMapper;
|
||||
import com.zhonghui.carbonReport.service.IViewScmPurchasingContractService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 采购合同报表Service业务层处理
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@Service
|
||||
public class ViewScmPurchasingContractServiceImpl implements IViewScmPurchasingContractService
|
||||
{
|
||||
@Autowired
|
||||
private ViewScmPurchasingContractMapper viewScmPurchasingContractMapper;
|
||||
|
||||
/**
|
||||
* 查询采购合同报表
|
||||
*
|
||||
* @param contractId 采购合同报表主键
|
||||
* @return 采购合同报表
|
||||
*/
|
||||
@Override
|
||||
public ViewScmPurchasingContract selectViewScmPurchasingContractByContractId(Long contractId)
|
||||
{
|
||||
return viewScmPurchasingContractMapper.selectViewScmPurchasingContractByContractId(contractId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询采购合同报表列表
|
||||
*
|
||||
* @param viewScmPurchasingContract 采购合同报表
|
||||
* @return 采购合同报表
|
||||
*/
|
||||
@Override
|
||||
public List<ViewScmPurchasingContract> selectViewScmPurchasingContractList(ViewScmPurchasingContract viewScmPurchasingContract)
|
||||
{
|
||||
return viewScmPurchasingContractMapper.selectViewScmPurchasingContractList(viewScmPurchasingContract);
|
||||
}
|
||||
|
||||
/**
|
||||
* 按月份统计
|
||||
*
|
||||
* @param viewScmPurchasingContract 采购合同报表
|
||||
* @return 采购合同报表集合
|
||||
*/
|
||||
@Override
|
||||
public List<ViewScmPurchasingContract> selectMonthReport(ViewScmPurchasingContract viewScmPurchasingContract) {
|
||||
return viewScmPurchasingContractMapper.selectMonthReport(viewScmPurchasingContract);
|
||||
}
|
||||
|
||||
/**
|
||||
* 按季度份统计
|
||||
*
|
||||
* @param viewScmPurchasingContract 采购合同报表
|
||||
* @return 采购合同报表集合
|
||||
*/
|
||||
@Override
|
||||
public List<ViewScmPurchasingContract> selectQuarterReport(ViewScmPurchasingContract viewScmPurchasingContract){
|
||||
return viewScmPurchasingContractMapper.selectQuarterReport(viewScmPurchasingContract);
|
||||
}
|
||||
/**
|
||||
* 按月份统计供应商对账
|
||||
*
|
||||
* @param viewScmPurchasingContract 采购合同报表
|
||||
* @return 采购合同报表集合
|
||||
*/
|
||||
@Override
|
||||
public List<ViewScmPurchasingContract> selectMonthSupplierReport(ViewScmPurchasingContract viewScmPurchasingContract) {
|
||||
return viewScmPurchasingContractMapper.selectMonthSupplierReport(viewScmPurchasingContract);
|
||||
}
|
||||
|
||||
/**
|
||||
* 按季度统计供应商对账
|
||||
*
|
||||
* @param viewScmPurchasingContract 采购合同报表
|
||||
* @return 采购合同报表集合
|
||||
*/
|
||||
@Override
|
||||
public List<ViewScmPurchasingContract> selectQuarterSupplierReport(ViewScmPurchasingContract viewScmPurchasingContract){
|
||||
return viewScmPurchasingContractMapper.selectQuarterSupplierReport(viewScmPurchasingContract);
|
||||
}
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package com.zhonghui.carbonReport.service.impl;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewScmPurchasingReturnDetails;
|
||||
import com.zhonghui.carbonReport.mapper.ViewScmPurchasingReturnDetailsMapper;
|
||||
import com.zhonghui.carbonReport.service.IViewScmPurchasingReturnDetailsService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 采购退货统计Service业务层处理
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@Service
|
||||
public class ViewScmPurchasingReturnDetailsServiceImpl implements IViewScmPurchasingReturnDetailsService
|
||||
{
|
||||
@Autowired
|
||||
private ViewScmPurchasingReturnDetailsMapper viewScmPurchasingReturnDetailsMapper;
|
||||
|
||||
/**
|
||||
* 查询采购退货统计列表
|
||||
*
|
||||
* @param viewScmPurchasingReturnDetails 采购退货统计
|
||||
* @return 采购退货统计
|
||||
*/
|
||||
@Override
|
||||
public List<ViewScmPurchasingReturnDetails> selectViewScmPurchasingReturnDetailsList(ViewScmPurchasingReturnDetails viewScmPurchasingReturnDetails)
|
||||
{
|
||||
return viewScmPurchasingReturnDetailsMapper.selectViewScmPurchasingReturnDetailsList(viewScmPurchasingReturnDetails);
|
||||
}
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
package com.zhonghui.carbonReport.service.impl;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.RepContractDeliveryReturnDetail;
|
||||
import com.zhonghui.carbonReport.domain.ViewScmSaleContractDetails;
|
||||
import com.zhonghui.carbonReport.mapper.ViewScmSaleContractDetailsMapper;
|
||||
import com.zhonghui.carbonReport.service.IViewScmSaleContractDetailsService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 销售合同明细报表Service业务层处理
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@Service
|
||||
public class ViewScmSaleContractDetailsServiceImpl implements IViewScmSaleContractDetailsService
|
||||
{
|
||||
@Autowired
|
||||
private ViewScmSaleContractDetailsMapper viewScmSaleContractDetailsMapper;
|
||||
|
||||
/**
|
||||
* 查询销售合同明细报表列表
|
||||
*
|
||||
* @param viewScmSaleContractDetails 销售合同明细报表
|
||||
* @return 销售合同明细报表
|
||||
*/
|
||||
@Override
|
||||
public List<ViewScmSaleContractDetails> selectViewScmSaleContractDetailsList(ViewScmSaleContractDetails viewScmSaleContractDetails)
|
||||
{
|
||||
return viewScmSaleContractDetailsMapper.selectViewScmSaleContractDetailsList(viewScmSaleContractDetails);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询销售台账报表
|
||||
*
|
||||
* @param viewScmSaleContractDetails 销售合同明细
|
||||
* @return 销售合同明细
|
||||
*/
|
||||
@Override
|
||||
public List<ViewScmSaleContractDetails> selectSaleBookReport(ViewScmSaleContractDetails viewScmSaleContractDetails) {
|
||||
return viewScmSaleContractDetailsMapper.selectSaleBookReport(viewScmSaleContractDetails);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 按月份统计销售-发货-退货报表
|
||||
*
|
||||
* @param repContractDeliveryReturnDetail 销售-发货-退货报表实体
|
||||
* @return 销售-发货-退货报表实体
|
||||
*/
|
||||
@Override
|
||||
public List<RepContractDeliveryReturnDetail> selectContractDeliveryReturnMonthReport(RepContractDeliveryReturnDetail repContractDeliveryReturnDetail){
|
||||
return viewScmSaleContractDetailsMapper.selectContractDeliveryReturnMonthReport(repContractDeliveryReturnDetail);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 按季度统计销售-发货-退货报表
|
||||
*
|
||||
* @param repContractDeliveryReturnDetail 销售-发货-退货报表实体
|
||||
* @return 销售-发货-退货报表实体
|
||||
*/
|
||||
@Override
|
||||
public List<RepContractDeliveryReturnDetail> selectContractDeliveryReturnQuarterReport(RepContractDeliveryReturnDetail repContractDeliveryReturnDetail){
|
||||
return viewScmSaleContractDetailsMapper.selectContractDeliveryReturnQuarterReport(repContractDeliveryReturnDetail);
|
||||
}
|
||||
}
|
@ -0,0 +1,142 @@
|
||||
package com.zhonghui.carbonReport.service.impl;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewScmFinanceReport;
|
||||
import com.zhonghui.carbonReport.domain.ViewScmSaleContract;
|
||||
import com.zhonghui.carbonReport.mapper.ViewScmSaleContractMapper;
|
||||
import com.zhonghui.carbonReport.service.IViewScmSaleContractService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 销售合同报表Service业务层处理
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-28
|
||||
*/
|
||||
@Service
|
||||
public class ViewScmSaleContractServiceImpl implements IViewScmSaleContractService
|
||||
{
|
||||
@Autowired
|
||||
private ViewScmSaleContractMapper viewScmSaleContractMapper;
|
||||
|
||||
/**
|
||||
* 查询销售合同报表
|
||||
*
|
||||
* @param contractId 销售合同报表主键
|
||||
* @return 销售合同报表
|
||||
*/
|
||||
@Override
|
||||
public ViewScmSaleContract selectViewScmSaleContractById(Long contractId)
|
||||
{
|
||||
return viewScmSaleContractMapper.selectViewScmSaleContractById(contractId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询销售合同报表列表
|
||||
*
|
||||
* @param viewScmSaleContract 销售合同报表
|
||||
* @return 销售合同报表
|
||||
*/
|
||||
@Override
|
||||
public List<ViewScmSaleContract> selectViewScmSaleContractList(ViewScmSaleContract viewScmSaleContract)
|
||||
{
|
||||
return viewScmSaleContractMapper.selectViewScmSaleContractList(viewScmSaleContract);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询按月统计销售合同报表列表
|
||||
*
|
||||
* @param viewScmSaleContract 销售合同报表
|
||||
* @return 销售合同报表集合
|
||||
*/
|
||||
@Override
|
||||
public List<ViewScmSaleContract> selectMonthSaleContractReport(ViewScmSaleContract viewScmSaleContract){
|
||||
return viewScmSaleContractMapper.selectMonthSaleContractReport(viewScmSaleContract);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询按季度统计销售合同报表列表
|
||||
*
|
||||
* @param viewScmSaleContract 销售合同报表
|
||||
* @return 销售合同报表集合
|
||||
*/
|
||||
@Override
|
||||
public List<ViewScmSaleContract> selectQuarterSaleContractReport(ViewScmSaleContract viewScmSaleContract){
|
||||
return viewScmSaleContractMapper.selectQuarterSaleContractReport(viewScmSaleContract);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询按季度统计销售合同报表列表
|
||||
*
|
||||
* @param viewScmSaleContract 销售合同报表
|
||||
* @return 销售合同报表集合
|
||||
*/
|
||||
@Override
|
||||
public List<ViewScmSaleContract> selectMonthOrderStatReport(ViewScmSaleContract viewScmSaleContract){
|
||||
return viewScmSaleContractMapper.selectMonthOrderStatReport(viewScmSaleContract);
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单收款季度统计
|
||||
*
|
||||
* @param viewScmSaleContract 销售合同报表
|
||||
* @return 销售合同报表集合
|
||||
*/
|
||||
@Override
|
||||
public List<ViewScmSaleContract> selectQuarterOrderStatReport(ViewScmSaleContract viewScmSaleContract){
|
||||
return viewScmSaleContractMapper.selectQuarterOrderStatReport(viewScmSaleContract);
|
||||
}
|
||||
|
||||
/**
|
||||
* 财务收支统计
|
||||
*
|
||||
* @return 销售合同报表集合
|
||||
*/
|
||||
@Override
|
||||
public List<ViewScmFinanceReport> selectMonthFinanceReport(ViewScmFinanceReport viewScmFinanceReport) {
|
||||
return viewScmSaleContractMapper.selectMonthFinanceReport(viewScmFinanceReport);
|
||||
}
|
||||
|
||||
/**
|
||||
* 财务收支统计
|
||||
*
|
||||
* @return 销售合同报表集合
|
||||
*/
|
||||
@Override
|
||||
public List<ViewScmFinanceReport> selectQuarterFinanceReport(ViewScmFinanceReport viewScmFinanceReport) {
|
||||
return viewScmSaleContractMapper.selectQuarterFinanceReport(viewScmFinanceReport);
|
||||
}
|
||||
|
||||
/**
|
||||
* 客户销售排名
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<Map<String, BigDecimal>> selectSaleCustomerRank() {
|
||||
return viewScmSaleContractMapper.selectSaleCustomerRank();
|
||||
}
|
||||
|
||||
/**
|
||||
* 按月统计销售额
|
||||
* @param month
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public Map<String, BigDecimal> selectSaleStatByMonth(String month) {
|
||||
return viewScmSaleContractMapper.selectSaleStatByMonth(month);
|
||||
}
|
||||
|
||||
/**
|
||||
* 大屏销售总览
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public Map<String, BigDecimal> selectSaleOverall() {
|
||||
return viewScmSaleContractMapper.selectSaleOverall();
|
||||
}
|
||||
}
|
@ -0,0 +1,94 @@
|
||||
package com.zhonghui.carbonReport.service.impl;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewScmSaleDeliveryDetails;
|
||||
import com.zhonghui.carbonReport.mapper.ViewScmSaleDeliveryDetailsMapper;
|
||||
import com.zhonghui.carbonReport.service.IViewScmSaleDeliveryDetailsService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 销售发货退货明细报表Service业务层处理
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-25
|
||||
*/
|
||||
@Service
|
||||
public class ViewScmSaleDeliveryDetailsServiceImpl implements IViewScmSaleDeliveryDetailsService
|
||||
{
|
||||
@Autowired
|
||||
private ViewScmSaleDeliveryDetailsMapper viewScmSaleDeliveryDetailsMapper;
|
||||
|
||||
/**
|
||||
* 查询销售发货退货明细报表
|
||||
*
|
||||
* @param deliveryId 销售发货退货明细报表主键
|
||||
* @return 销售发货退货明细报表
|
||||
*/
|
||||
@Override
|
||||
public ViewScmSaleDeliveryDetails selectViewScmSaleDeliveryDetailsByDeliveryId(Long deliveryId)
|
||||
{
|
||||
return viewScmSaleDeliveryDetailsMapper.selectViewScmSaleDeliveryDetailsByDeliveryId(deliveryId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询销售发货退货明细报表列表
|
||||
*
|
||||
* @param viewScmSaleDeliveryDetails 销售发货退货明细报表
|
||||
* @return 销售发货退货明细报表
|
||||
*/
|
||||
@Override
|
||||
public List<ViewScmSaleDeliveryDetails> selectViewScmSaleDeliveryDetailsList(ViewScmSaleDeliveryDetails viewScmSaleDeliveryDetails)
|
||||
{
|
||||
return viewScmSaleDeliveryDetailsMapper.selectViewScmSaleDeliveryDetailsList(viewScmSaleDeliveryDetails);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增销售发货退货明细报表
|
||||
*
|
||||
* @param viewScmSaleDeliveryDetails 销售发货退货明细报表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertViewScmSaleDeliveryDetails(ViewScmSaleDeliveryDetails viewScmSaleDeliveryDetails)
|
||||
{
|
||||
return viewScmSaleDeliveryDetailsMapper.insertViewScmSaleDeliveryDetails(viewScmSaleDeliveryDetails);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改销售发货退货明细报表
|
||||
*
|
||||
* @param viewScmSaleDeliveryDetails 销售发货退货明细报表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateViewScmSaleDeliveryDetails(ViewScmSaleDeliveryDetails viewScmSaleDeliveryDetails)
|
||||
{
|
||||
return viewScmSaleDeliveryDetailsMapper.updateViewScmSaleDeliveryDetails(viewScmSaleDeliveryDetails);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除销售发货退货明细报表
|
||||
*
|
||||
* @param deliveryIds 需要删除的销售发货退货明细报表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteViewScmSaleDeliveryDetailsByDeliveryIds(Long[] deliveryIds)
|
||||
{
|
||||
return viewScmSaleDeliveryDetailsMapper.deleteViewScmSaleDeliveryDetailsByDeliveryIds(deliveryIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除销售发货退货明细报表信息
|
||||
*
|
||||
* @param deliveryId 销售发货退货明细报表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteViewScmSaleDeliveryDetailsByDeliveryId(Long deliveryId)
|
||||
{
|
||||
return viewScmSaleDeliveryDetailsMapper.deleteViewScmSaleDeliveryDetailsByDeliveryId(deliveryId);
|
||||
}
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package com.zhonghui.carbonReport.service.impl;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewScmSaleScheduleDetails;
|
||||
import com.zhonghui.carbonReport.mapper.ViewScmSaleScheduleDetailsMapper;
|
||||
import com.zhonghui.carbonReport.service.IViewScmSaleScheduleDetailsService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 销售计划达成率报表Service业务层处理
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-25
|
||||
*/
|
||||
@Service
|
||||
public class ViewScmSaleScheduleDetailsServiceImpl implements IViewScmSaleScheduleDetailsService
|
||||
{
|
||||
@Autowired
|
||||
private ViewScmSaleScheduleDetailsMapper viewScmSaleScheduleDetailsMapper;
|
||||
|
||||
/**
|
||||
* 查询销售计划达成率报表列表
|
||||
*
|
||||
* @param viewScmSaleScheduleDetails 销售计划达成率报表
|
||||
* @return 销售计划达成率报表
|
||||
*/
|
||||
@Override
|
||||
public List<ViewScmSaleScheduleDetails> selectViewScmSaleScheduleDetailsList(ViewScmSaleScheduleDetails viewScmSaleScheduleDetails)
|
||||
{
|
||||
return viewScmSaleScheduleDetailsMapper.selectViewScmSaleScheduleDetailsList(viewScmSaleScheduleDetails);
|
||||
}
|
||||
|
||||
/**
|
||||
* 按月统计计划销售额与实际销售额
|
||||
* @param month
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public Map<String, BigDecimal> selectAchieveRateByMonth(String month) {
|
||||
return viewScmSaleScheduleDetailsMapper.selectAchieveRateByMonth(month);
|
||||
}
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package com.zhonghui.carbonReport.service.impl;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewWmsInWarehouseDetails;
|
||||
import com.zhonghui.carbonReport.mapper.ViewWmsInWarehouseDetailsMapper;
|
||||
import com.zhonghui.carbonReport.service.IViewWmsInWarehouseDetailsService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 入库明细报表Service业务层处理
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-29
|
||||
*/
|
||||
@Service
|
||||
public class ViewWmsInWarehouseDetailsServiceImpl implements IViewWmsInWarehouseDetailsService
|
||||
{
|
||||
@Autowired
|
||||
private ViewWmsInWarehouseDetailsMapper viewWmsInWarehouseDetailsMapper;
|
||||
|
||||
/**
|
||||
* 查询入库明细报表
|
||||
*
|
||||
* @param materialId 入库明细报表主键
|
||||
* @return 入库明细报表
|
||||
*/
|
||||
@Override
|
||||
public ViewWmsInWarehouseDetails selectViewWmsInWarehouseDetailsById(Long materialId)
|
||||
{
|
||||
return viewWmsInWarehouseDetailsMapper.selectViewWmsInWarehouseDetailsById(materialId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询入库明细报表列表
|
||||
*
|
||||
* @param viewWmsInWarehouseDetails 入库明细报表
|
||||
* @return 入库明细报表
|
||||
*/
|
||||
@Override
|
||||
public List<ViewWmsInWarehouseDetails> selectViewWmsInWarehouseDetailsList(ViewWmsInWarehouseDetails viewWmsInWarehouseDetails)
|
||||
{
|
||||
return viewWmsInWarehouseDetailsMapper.selectViewWmsInWarehouseDetailsList(viewWmsInWarehouseDetails);
|
||||
}
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package com.zhonghui.carbonReport.service.impl;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewWmsMaterialInventoryDetails;
|
||||
import com.zhonghui.carbonReport.mapper.ViewWmsMaterialInventoryDetailsMapper;
|
||||
import com.zhonghui.carbonReport.service.IViewWmsMaterialInventoryDetailsService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 库存明细报表Service业务层处理
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-29
|
||||
*/
|
||||
@Service
|
||||
public class ViewWmsMaterialInventoryDetailsServiceImpl implements IViewWmsMaterialInventoryDetailsService
|
||||
{
|
||||
@Autowired
|
||||
private ViewWmsMaterialInventoryDetailsMapper viewWmsMaterialInventoryDetailsMapper;
|
||||
|
||||
/**
|
||||
* 查询库存明细报表
|
||||
*
|
||||
* @param warehouseId 库存明细报表主键
|
||||
* @return 库存明细报表
|
||||
*/
|
||||
@Override
|
||||
public ViewWmsMaterialInventoryDetails selectViewWmsMaterialInventoryDetailsById(Long warehouseId)
|
||||
{
|
||||
return viewWmsMaterialInventoryDetailsMapper.selectViewWmsMaterialInventoryDetailsById(warehouseId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询库存明细报表列表
|
||||
*
|
||||
* @param viewWmsMaterialInventoryDetails 库存明细报表
|
||||
* @return 库存明细报表
|
||||
*/
|
||||
@Override
|
||||
public List<ViewWmsMaterialInventoryDetails> selectViewWmsMaterialInventoryDetailsList(ViewWmsMaterialInventoryDetails viewWmsMaterialInventoryDetails)
|
||||
{
|
||||
return viewWmsMaterialInventoryDetailsMapper.selectViewWmsMaterialInventoryDetailsList(viewWmsMaterialInventoryDetails);
|
||||
}
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package com.zhonghui.carbonReport.service.impl;
|
||||
|
||||
import com.zhonghui.carbonReport.domain.ViewWmsOutWarehouseDetails;
|
||||
import com.zhonghui.carbonReport.mapper.ViewWmsOutWarehouseDetailsMapper;
|
||||
import com.zhonghui.carbonReport.service.IViewWmsOutWarehouseDetailsService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 物料出库明细报表Service业务层处理
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-29
|
||||
*/
|
||||
@Service
|
||||
public class ViewWmsOutWarehouseDetailsServiceImpl implements IViewWmsOutWarehouseDetailsService
|
||||
{
|
||||
@Autowired
|
||||
private ViewWmsOutWarehouseDetailsMapper viewWmsOutWarehouseDetailsMapper;
|
||||
|
||||
/**
|
||||
* 查询物料出库明细报表
|
||||
*
|
||||
* @param materialId 物料出库明细报表主键
|
||||
* @return 物料出库明细报表
|
||||
*/
|
||||
@Override
|
||||
public ViewWmsOutWarehouseDetails selectViewWmsOutWarehouseDetailsByMaterialId(Long materialId)
|
||||
{
|
||||
return viewWmsOutWarehouseDetailsMapper.selectViewWmsOutWarehouseDetailsByMaterialId(materialId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询物料出库明细报表列表
|
||||
*
|
||||
* @param viewWmsOutWarehouseDetails 物料出库明细报表
|
||||
* @return 物料出库明细报表
|
||||
*/
|
||||
@Override
|
||||
public List<ViewWmsOutWarehouseDetails> selectViewWmsOutWarehouseDetailsList(ViewWmsOutWarehouseDetails viewWmsOutWarehouseDetails)
|
||||
{
|
||||
return viewWmsOutWarehouseDetailsMapper.selectViewWmsOutWarehouseDetailsList(viewWmsOutWarehouseDetails);
|
||||
}
|
||||
}
|
@ -0,0 +1,102 @@
|
||||
package com.zhonghui.dc.domain;
|
||||
|
||||
import com.zhonghui.common.annotation.Excel;
|
||||
import com.zhonghui.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 变化碳排放对象 dc_changed_carbon_emissions
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-24
|
||||
*/
|
||||
@ApiModel("智造双碳—变化碳排放对象")
|
||||
public class DcChangedCarbonEmissions extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 编号 */
|
||||
@ApiModelProperty("编号")
|
||||
private Long id;
|
||||
|
||||
/** 能耗项 */
|
||||
@Excel(name = "能耗项")
|
||||
@ApiModelProperty("能耗项")
|
||||
private String name;
|
||||
|
||||
/** 项目类型 */
|
||||
@Excel(name = "项目类型")
|
||||
@ApiModelProperty("项目类型")
|
||||
private Integer projectType;
|
||||
|
||||
/** 日节约水 */
|
||||
@Excel(name = "日节约水")
|
||||
@ApiModelProperty("日节约水")
|
||||
private Double daySaveWater;
|
||||
|
||||
/** 日节约电 */
|
||||
@ApiModelProperty("日节约电")
|
||||
@Excel(name = "日节约电")
|
||||
private Double daySaveElectric;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setProjectType(Integer projectType)
|
||||
{
|
||||
this.projectType = projectType;
|
||||
}
|
||||
|
||||
public Integer getProjectType()
|
||||
{
|
||||
return projectType;
|
||||
}
|
||||
public void setDaySaveWater(Double daySaveWater)
|
||||
{
|
||||
this.daySaveWater = daySaveWater;
|
||||
}
|
||||
|
||||
public Double getDaySaveWater()
|
||||
{
|
||||
return daySaveWater;
|
||||
}
|
||||
public void setDaySaveElectric(Double daySaveElectric)
|
||||
{
|
||||
this.daySaveElectric = daySaveElectric;
|
||||
}
|
||||
|
||||
public Double getDaySaveElectric()
|
||||
{
|
||||
return daySaveElectric;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("name", getName())
|
||||
.append("projectType", getProjectType())
|
||||
.append("daySaveWater", getDaySaveWater())
|
||||
.append("daySaveElectric", getDaySaveElectric())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,117 @@
|
||||
package com.zhonghui.dc.domain;
|
||||
|
||||
import com.zhonghui.common.annotation.Excel;
|
||||
import com.zhonghui.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 固定碳排放对象 dc_fixed_carbon_emissions
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-24
|
||||
*/
|
||||
@ApiModel("智造双碳—固定碳排放对象")
|
||||
public class DcFixedCarbonEmissions extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 编号 */
|
||||
@ApiModelProperty("编号")
|
||||
private Long id;
|
||||
|
||||
/** 能耗项 */
|
||||
@Excel(name = "能耗项")
|
||||
@ApiModelProperty("能耗项")
|
||||
private String name;
|
||||
|
||||
/** 项目类型 */
|
||||
@Excel(name = "项目类型")
|
||||
@ApiModelProperty("项目类型")
|
||||
private Integer projectType;
|
||||
|
||||
/** 时间类型 */
|
||||
@Excel(name = "时间类型")
|
||||
@ApiModelProperty("时间类型")
|
||||
private Integer timeType;
|
||||
|
||||
/** 能耗数 */
|
||||
@Excel(name = "能耗数")
|
||||
@ApiModelProperty("能耗数")
|
||||
private Double energyConsumptionAmount;
|
||||
|
||||
/** 预警阈值 */
|
||||
@Excel(name = "预警阈值")
|
||||
@ApiModelProperty("预警阈值")
|
||||
private Double warningThreshold;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setProjectType(Integer projectType)
|
||||
{
|
||||
this.projectType = projectType;
|
||||
}
|
||||
|
||||
public Integer getProjectType()
|
||||
{
|
||||
return projectType;
|
||||
}
|
||||
public void setTimeType(Integer timeType)
|
||||
{
|
||||
this.timeType = timeType;
|
||||
}
|
||||
|
||||
public Integer getTimeType()
|
||||
{
|
||||
return timeType;
|
||||
}
|
||||
public void setEnergyConsumptionAmount(Double energyConsumptionAmount)
|
||||
{
|
||||
this.energyConsumptionAmount = energyConsumptionAmount;
|
||||
}
|
||||
|
||||
public Double getEnergyConsumptionAmount()
|
||||
{
|
||||
return energyConsumptionAmount;
|
||||
}
|
||||
public void setWarningThreshold(Double warningThreshold)
|
||||
{
|
||||
this.warningThreshold = warningThreshold;
|
||||
}
|
||||
|
||||
public Double getWarningThreshold()
|
||||
{
|
||||
return warningThreshold;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("name", getName())
|
||||
.append("projectType", getProjectType())
|
||||
.append("timeType", getTimeType())
|
||||
.append("energyConsumptionAmount", getEnergyConsumptionAmount())
|
||||
.append("warningThreshold", getWarningThreshold())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,116 @@
|
||||
package com.zhonghui.dc.domain;
|
||||
|
||||
import com.zhonghui.common.annotation.Excel;
|
||||
import com.zhonghui.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 碳中和计算比例对象 dc_neutrality_calculation_ratio
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-27
|
||||
*/
|
||||
@ApiModel("智造双碳—碳中和计算比例对象")
|
||||
public class DcNeutralityCalculationRatio extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 编号 */
|
||||
@ApiModelProperty("编号")
|
||||
private Long id;
|
||||
|
||||
/** 1千克标准煤=X(2.5)千克二氧化碳 */
|
||||
@Excel(name = "1千克标准煤=X(2.5)千克二氧化碳")
|
||||
@ApiModelProperty("1千克标准煤=X(2.5)千克二氧化碳")
|
||||
private Double coalCo2;
|
||||
|
||||
/** 1度电=X(0.96)千克二氧化碳 */
|
||||
@Excel(name = "1度电=X(0.96)千克二氧化碳")
|
||||
@ApiModelProperty("1度电=X(0.96)千克二氧化碳")
|
||||
private Double electricCo2;
|
||||
|
||||
/** 1吨水=X(0.19)千克二氧化碳 */
|
||||
@Excel(name = "1吨水=X(0.19)千克二氧化碳")
|
||||
@ApiModelProperty("1吨水=X(0.19)千克二氧化碳")
|
||||
private Double waterCo2;
|
||||
|
||||
/** 1kg汽油产生的热量=X(1.5kg)标准煤产生的热量 */
|
||||
@Excel(name = "1kg汽油产生的热量=X(1.5kg)标准煤产生的热量")
|
||||
@ApiModelProperty("1kg汽油产生的热量=X(1.5kg)标准煤产生的热量")
|
||||
private Double oilCoal;
|
||||
|
||||
/** 二氧化碳与碳的比值=3.7 */
|
||||
@Excel(name = "二氧化碳与碳的比值=3.7")
|
||||
@ApiModelProperty("二氧化碳与碳的比值=3.7")
|
||||
private Double co2Ratio;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCoalCo2(Double coalCo2)
|
||||
{
|
||||
this.coalCo2 = coalCo2;
|
||||
}
|
||||
|
||||
public Double getCoalCo2()
|
||||
{
|
||||
return coalCo2;
|
||||
}
|
||||
public void setElectricCo2(Double electricCo2)
|
||||
{
|
||||
this.electricCo2 = electricCo2;
|
||||
}
|
||||
|
||||
public Double getElectricCo2()
|
||||
{
|
||||
return electricCo2;
|
||||
}
|
||||
public void setWaterCo2(Double waterCo2)
|
||||
{
|
||||
this.waterCo2 = waterCo2;
|
||||
}
|
||||
|
||||
public Double getWaterCo2()
|
||||
{
|
||||
return waterCo2;
|
||||
}
|
||||
public void setOilCoal(Double oilCoal)
|
||||
{
|
||||
this.oilCoal = oilCoal;
|
||||
}
|
||||
|
||||
public Double getOilCoal()
|
||||
{
|
||||
return oilCoal;
|
||||
}
|
||||
public void setCo2Ratio(Double co2Ratio)
|
||||
{
|
||||
this.co2Ratio = co2Ratio;
|
||||
}
|
||||
|
||||
public Double getCo2Ratio()
|
||||
{
|
||||
return co2Ratio;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("coalCo2", getCoalCo2())
|
||||
.append("electricCo2", getElectricCo2())
|
||||
.append("waterCo2", getWaterCo2())
|
||||
.append("oilCoal", getOilCoal())
|
||||
.append("co2Ratio", getCo2Ratio())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.zhonghui.dc.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.zhonghui.dc.domain.DcChangedCarbonEmissions;
|
||||
|
||||
/**
|
||||
* 变化碳排放Mapper接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-24
|
||||
*/
|
||||
public interface DcChangedCarbonEmissionsMapper
|
||||
{
|
||||
/**
|
||||
* 查询变化碳排放
|
||||
*
|
||||
* @param id 变化碳排放主键
|
||||
* @return 变化碳排放
|
||||
*/
|
||||
public DcChangedCarbonEmissions selectDcChangedCarbonEmissionsById(Long id);
|
||||
|
||||
/**
|
||||
* 查询变化碳排放列表
|
||||
*
|
||||
* @param dcChangedCarbonEmissions 变化碳排放
|
||||
* @return 变化碳排放集合
|
||||
*/
|
||||
public List<DcChangedCarbonEmissions> selectDcChangedCarbonEmissionsList(DcChangedCarbonEmissions dcChangedCarbonEmissions);
|
||||
|
||||
/**
|
||||
* 新增变化碳排放
|
||||
*
|
||||
* @param dcChangedCarbonEmissions 变化碳排放
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDcChangedCarbonEmissions(DcChangedCarbonEmissions dcChangedCarbonEmissions);
|
||||
|
||||
/**
|
||||
* 修改变化碳排放
|
||||
*
|
||||
* @param dcChangedCarbonEmissions 变化碳排放
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDcChangedCarbonEmissions(DcChangedCarbonEmissions dcChangedCarbonEmissions);
|
||||
|
||||
/**
|
||||
* 删除变化碳排放
|
||||
*
|
||||
* @param id 变化碳排放主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDcChangedCarbonEmissionsById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除变化碳排放
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDcChangedCarbonEmissionsByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.zhonghui.dc.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.zhonghui.dc.domain.DcFixedCarbonEmissions;
|
||||
|
||||
/**
|
||||
* 固定碳排放Mapper接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-24
|
||||
*/
|
||||
public interface DcFixedCarbonEmissionsMapper
|
||||
{
|
||||
/**
|
||||
* 查询固定碳排放
|
||||
*
|
||||
* @param id 固定碳排放主键
|
||||
* @return 固定碳排放
|
||||
*/
|
||||
public DcFixedCarbonEmissions selectDcFixedCarbonEmissionsById(Long id);
|
||||
|
||||
/**
|
||||
* 查询固定碳排放列表
|
||||
*
|
||||
* @param dcFixedCarbonEmissions 固定碳排放
|
||||
* @return 固定碳排放集合
|
||||
*/
|
||||
public List<DcFixedCarbonEmissions> selectDcFixedCarbonEmissionsList(DcFixedCarbonEmissions dcFixedCarbonEmissions);
|
||||
|
||||
/**
|
||||
* 新增固定碳排放
|
||||
*
|
||||
* @param dcFixedCarbonEmissions 固定碳排放
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDcFixedCarbonEmissions(DcFixedCarbonEmissions dcFixedCarbonEmissions);
|
||||
|
||||
/**
|
||||
* 修改固定碳排放
|
||||
*
|
||||
* @param dcFixedCarbonEmissions 固定碳排放
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDcFixedCarbonEmissions(DcFixedCarbonEmissions dcFixedCarbonEmissions);
|
||||
|
||||
/**
|
||||
* 删除固定碳排放
|
||||
*
|
||||
* @param id 固定碳排放主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDcFixedCarbonEmissionsById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除固定碳排放
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDcFixedCarbonEmissionsByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.zhonghui.dc.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.zhonghui.dc.domain.DcNeutralityCalculationRatio;
|
||||
|
||||
/**
|
||||
* 碳中和计算比例Mapper接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-27
|
||||
*/
|
||||
public interface DcNeutralityCalculationRatioMapper
|
||||
{
|
||||
/**
|
||||
* 查询碳中和计算比例
|
||||
*
|
||||
* @param id 碳中和计算比例主键
|
||||
* @return 碳中和计算比例
|
||||
*/
|
||||
public DcNeutralityCalculationRatio selectDcNeutralityCalculationRatioById(Long id);
|
||||
|
||||
/**
|
||||
* 查询碳中和计算比例列表
|
||||
*
|
||||
* @param dcNeutralityCalculationRatio 碳中和计算比例
|
||||
* @return 碳中和计算比例集合
|
||||
*/
|
||||
public List<DcNeutralityCalculationRatio> selectDcNeutralityCalculationRatioList(DcNeutralityCalculationRatio dcNeutralityCalculationRatio);
|
||||
|
||||
/**
|
||||
* 新增碳中和计算比例
|
||||
*
|
||||
* @param dcNeutralityCalculationRatio 碳中和计算比例
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDcNeutralityCalculationRatio(DcNeutralityCalculationRatio dcNeutralityCalculationRatio);
|
||||
|
||||
/**
|
||||
* 修改碳中和计算比例
|
||||
*
|
||||
* @param dcNeutralityCalculationRatio 碳中和计算比例
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDcNeutralityCalculationRatio(DcNeutralityCalculationRatio dcNeutralityCalculationRatio);
|
||||
|
||||
/**
|
||||
* 删除碳中和计算比例
|
||||
*
|
||||
* @param id 碳中和计算比例主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDcNeutralityCalculationRatioById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除碳中和计算比例
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDcNeutralityCalculationRatioByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,75 @@
|
||||
package com.zhonghui.dc.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.zhonghui.dc.domain.DcChangedCarbonEmissions;
|
||||
|
||||
/**
|
||||
* 变化碳排放Service接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-24
|
||||
*/
|
||||
public interface IDcChangedCarbonEmissionsService
|
||||
{
|
||||
/**
|
||||
* 查询变化碳排放
|
||||
*
|
||||
* @param id 变化碳排放主键
|
||||
* @return 变化碳排放
|
||||
*/
|
||||
public DcChangedCarbonEmissions selectDcChangedCarbonEmissionsById(Long id);
|
||||
|
||||
/**
|
||||
* 查询变化碳排放列表
|
||||
*
|
||||
* @param dcChangedCarbonEmissions 变化碳排放
|
||||
* @return 变化碳排放集合
|
||||
*/
|
||||
public List<DcChangedCarbonEmissions> selectDcChangedCarbonEmissionsList(DcChangedCarbonEmissions dcChangedCarbonEmissions);
|
||||
|
||||
/**
|
||||
* 新增变化碳排放
|
||||
*
|
||||
* @param dcChangedCarbonEmissions 变化碳排放
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDcChangedCarbonEmissions(DcChangedCarbonEmissions dcChangedCarbonEmissions);
|
||||
|
||||
/**
|
||||
* 修改变化碳排放
|
||||
*
|
||||
* @param dcChangedCarbonEmissions 变化碳排放
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDcChangedCarbonEmissions(DcChangedCarbonEmissions dcChangedCarbonEmissions);
|
||||
|
||||
/**
|
||||
* 批量删除变化碳排放
|
||||
*
|
||||
* @param ids 需要删除的变化碳排放主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDcChangedCarbonEmissionsByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除变化碳排放信息
|
||||
*
|
||||
* @param id 变化碳排放主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDcChangedCarbonEmissionsById(Long id);
|
||||
|
||||
/**
|
||||
* 获取生产节电数
|
||||
* @param days
|
||||
* @return
|
||||
*/
|
||||
public double getProductPowerSaveAmount(int days);
|
||||
|
||||
/**
|
||||
* 获取办公节电数
|
||||
* @param days
|
||||
* @return
|
||||
*/
|
||||
public double getOfficePowerSaveAmount(int days);
|
||||
}
|
@ -0,0 +1,79 @@
|
||||
package com.zhonghui.dc.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.zhonghui.dc.domain.DcFixedCarbonEmissions;
|
||||
|
||||
/**
|
||||
* 固定碳排放Service接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-24
|
||||
*/
|
||||
public interface IDcFixedCarbonEmissionsService
|
||||
{
|
||||
/**
|
||||
* 查询固定碳排放
|
||||
*
|
||||
* @param id 固定碳排放主键
|
||||
* @return 固定碳排放
|
||||
*/
|
||||
public DcFixedCarbonEmissions selectDcFixedCarbonEmissionsById(Long id);
|
||||
|
||||
/**
|
||||
* 查询固定碳排放列表
|
||||
*
|
||||
* @param dcFixedCarbonEmissions 固定碳排放
|
||||
* @return 固定碳排放集合
|
||||
*/
|
||||
public List<DcFixedCarbonEmissions> selectDcFixedCarbonEmissionsList(DcFixedCarbonEmissions dcFixedCarbonEmissions);
|
||||
|
||||
/**
|
||||
* 新增固定碳排放
|
||||
*
|
||||
* @param dcFixedCarbonEmissions 固定碳排放
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDcFixedCarbonEmissions(DcFixedCarbonEmissions dcFixedCarbonEmissions);
|
||||
|
||||
/**
|
||||
* 修改固定碳排放
|
||||
*
|
||||
* @param dcFixedCarbonEmissions 固定碳排放
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDcFixedCarbonEmissions(DcFixedCarbonEmissions dcFixedCarbonEmissions);
|
||||
|
||||
/**
|
||||
* 批量删除固定碳排放
|
||||
*
|
||||
* @param ids 需要删除的固定碳排放主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDcFixedCarbonEmissionsByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除固定碳排放信息
|
||||
*
|
||||
* @param id 固定碳排放主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDcFixedCarbonEmissionsById(Long id);
|
||||
|
||||
/**
|
||||
* 获取月度生产用水量
|
||||
* @return
|
||||
*/
|
||||
public double getProductWaterConsumeByMonth();
|
||||
|
||||
/**
|
||||
* 获取月度办公用水量
|
||||
* @return
|
||||
*/
|
||||
public double getOfficeWaterConsumeByMonth();
|
||||
|
||||
/**
|
||||
* 获取月度办公用电量
|
||||
* @return
|
||||
*/
|
||||
public double getOfficePowerConsumeByMonth();
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
package com.zhonghui.dc.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.zhonghui.dc.domain.DcNeutralityCalculationRatio;
|
||||
|
||||
/**
|
||||
* 碳中和计算比例Service接口
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-27
|
||||
*/
|
||||
public interface IDcNeutralityCalculationRatioService
|
||||
{
|
||||
/**
|
||||
* 查询碳中和计算比例
|
||||
*
|
||||
* @param id 碳中和计算比例主键
|
||||
* @return 碳中和计算比例
|
||||
*/
|
||||
public DcNeutralityCalculationRatio selectDcNeutralityCalculationRatioById(Long id);
|
||||
|
||||
/**
|
||||
* 查询碳中和计算比例列表
|
||||
*
|
||||
* @param dcNeutralityCalculationRatio 碳中和计算比例
|
||||
* @return 碳中和计算比例集合
|
||||
*/
|
||||
public List<DcNeutralityCalculationRatio> selectDcNeutralityCalculationRatioList(DcNeutralityCalculationRatio dcNeutralityCalculationRatio);
|
||||
|
||||
/**
|
||||
* 新增碳中和计算比例
|
||||
*
|
||||
* @param dcNeutralityCalculationRatio 碳中和计算比例
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDcNeutralityCalculationRatio(DcNeutralityCalculationRatio dcNeutralityCalculationRatio);
|
||||
|
||||
/**
|
||||
* 修改碳中和计算比例
|
||||
*
|
||||
* @param dcNeutralityCalculationRatio 碳中和计算比例
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDcNeutralityCalculationRatio(DcNeutralityCalculationRatio dcNeutralityCalculationRatio);
|
||||
|
||||
/**
|
||||
* 批量删除碳中和计算比例
|
||||
*
|
||||
* @param ids 需要删除的碳中和计算比例主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDcNeutralityCalculationRatioByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除碳中和计算比例信息
|
||||
*
|
||||
* @param id 碳中和计算比例主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDcNeutralityCalculationRatioById(Long id);
|
||||
|
||||
/**
|
||||
* 获取碳中和耗电计算比例
|
||||
* @return
|
||||
*/
|
||||
public double getElectricCo2();
|
||||
|
||||
/**
|
||||
* 获取碳中和用水计算比例
|
||||
* @return
|
||||
*/
|
||||
public double getWaterCo2();
|
||||
}
|
@ -0,0 +1,141 @@
|
||||
package com.zhonghui.dc.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.zhonghui.dc.mapper.DcChangedCarbonEmissionsMapper;
|
||||
import com.zhonghui.dc.domain.DcChangedCarbonEmissions;
|
||||
import com.zhonghui.dc.service.IDcChangedCarbonEmissionsService;
|
||||
|
||||
/**
|
||||
* 变化碳排放Service业务层处理
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-24
|
||||
*/
|
||||
@Service
|
||||
public class DcChangedCarbonEmissionsServiceImpl implements IDcChangedCarbonEmissionsService
|
||||
{
|
||||
@Autowired
|
||||
private DcChangedCarbonEmissionsMapper dcChangedCarbonEmissionsMapper;
|
||||
|
||||
/**
|
||||
* 查询变化碳排放
|
||||
*
|
||||
* @param id 变化碳排放主键
|
||||
* @return 变化碳排放
|
||||
*/
|
||||
@Override
|
||||
public DcChangedCarbonEmissions selectDcChangedCarbonEmissionsById(Long id)
|
||||
{
|
||||
return dcChangedCarbonEmissionsMapper.selectDcChangedCarbonEmissionsById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询变化碳排放列表
|
||||
*
|
||||
* @param dcChangedCarbonEmissions 变化碳排放
|
||||
* @return 变化碳排放
|
||||
*/
|
||||
@Override
|
||||
public List<DcChangedCarbonEmissions> selectDcChangedCarbonEmissionsList(DcChangedCarbonEmissions dcChangedCarbonEmissions)
|
||||
{
|
||||
return dcChangedCarbonEmissionsMapper.selectDcChangedCarbonEmissionsList(dcChangedCarbonEmissions);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增变化碳排放
|
||||
*
|
||||
* @param dcChangedCarbonEmissions 变化碳排放
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDcChangedCarbonEmissions(DcChangedCarbonEmissions dcChangedCarbonEmissions)
|
||||
{
|
||||
return dcChangedCarbonEmissionsMapper.insertDcChangedCarbonEmissions(dcChangedCarbonEmissions);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改变化碳排放
|
||||
*
|
||||
* @param dcChangedCarbonEmissions 变化碳排放
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDcChangedCarbonEmissions(DcChangedCarbonEmissions dcChangedCarbonEmissions)
|
||||
{
|
||||
return dcChangedCarbonEmissionsMapper.updateDcChangedCarbonEmissions(dcChangedCarbonEmissions);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除变化碳排放
|
||||
*
|
||||
* @param ids 需要删除的变化碳排放主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDcChangedCarbonEmissionsByIds(Long[] ids)
|
||||
{
|
||||
return dcChangedCarbonEmissionsMapper.deleteDcChangedCarbonEmissionsByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除变化碳排放信息
|
||||
*
|
||||
* @param id 变化碳排放主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDcChangedCarbonEmissionsById(Long id)
|
||||
{
|
||||
return dcChangedCarbonEmissionsMapper.deleteDcChangedCarbonEmissionsById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getProductPowerSaveAmount(int days) {
|
||||
return calcSavePower(3, days);
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getOfficePowerSaveAmount(int days) {
|
||||
return calcSavePower(4, days);
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算节约电量
|
||||
* @param category
|
||||
* @param days
|
||||
* @return
|
||||
*/
|
||||
private double calcSavePower(Integer category, int days) {
|
||||
DcChangedCarbonEmissions dcChangedCarbonEmissions = new DcChangedCarbonEmissions();
|
||||
dcChangedCarbonEmissions.setProjectType(category);
|
||||
List<DcChangedCarbonEmissions> cfgList = dcChangedCarbonEmissionsMapper
|
||||
.selectDcChangedCarbonEmissionsList(dcChangedCarbonEmissions);
|
||||
double total = 0;
|
||||
for (DcChangedCarbonEmissions cfg : cfgList) {
|
||||
double daySave = cfg.getDaySaveElectric() == null ? 0 : cfg.getDaySaveElectric();
|
||||
total = total + daySave * days;
|
||||
}
|
||||
return total;
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算节约水量
|
||||
* @param category
|
||||
* @param days
|
||||
* @return
|
||||
*/
|
||||
private double calcSaveWater(Integer category, int days) {
|
||||
DcChangedCarbonEmissions dcChangedCarbonEmissions = new DcChangedCarbonEmissions();
|
||||
dcChangedCarbonEmissions.setProjectType(category);
|
||||
List<DcChangedCarbonEmissions> cfgList = dcChangedCarbonEmissionsMapper
|
||||
.selectDcChangedCarbonEmissionsList(dcChangedCarbonEmissions);
|
||||
double total = 0;
|
||||
for (DcChangedCarbonEmissions cfg : cfgList) {
|
||||
double daySave = cfg.getDaySaveWater() == null ? 0 : cfg.getDaySaveWater();
|
||||
total = total + daySave * days;
|
||||
}
|
||||
return total;
|
||||
}
|
||||
}
|
@ -0,0 +1,138 @@
|
||||
package com.zhonghui.dc.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.zhonghui.dc.mapper.DcFixedCarbonEmissionsMapper;
|
||||
import com.zhonghui.dc.domain.DcFixedCarbonEmissions;
|
||||
import com.zhonghui.dc.service.IDcFixedCarbonEmissionsService;
|
||||
|
||||
/**
|
||||
* 固定碳排放Service业务层处理
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-24
|
||||
*/
|
||||
@Service
|
||||
public class DcFixedCarbonEmissionsServiceImpl implements IDcFixedCarbonEmissionsService
|
||||
{
|
||||
@Autowired
|
||||
private DcFixedCarbonEmissionsMapper dcFixedCarbonEmissionsMapper;
|
||||
|
||||
/**
|
||||
* 查询固定碳排放
|
||||
*
|
||||
* @param id 固定碳排放主键
|
||||
* @return 固定碳排放
|
||||
*/
|
||||
@Override
|
||||
public DcFixedCarbonEmissions selectDcFixedCarbonEmissionsById(Long id)
|
||||
{
|
||||
return dcFixedCarbonEmissionsMapper.selectDcFixedCarbonEmissionsById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询固定碳排放列表
|
||||
*
|
||||
* @param dcFixedCarbonEmissions 固定碳排放
|
||||
* @return 固定碳排放
|
||||
*/
|
||||
@Override
|
||||
public List<DcFixedCarbonEmissions> selectDcFixedCarbonEmissionsList(DcFixedCarbonEmissions dcFixedCarbonEmissions)
|
||||
{
|
||||
return dcFixedCarbonEmissionsMapper.selectDcFixedCarbonEmissionsList(dcFixedCarbonEmissions);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增固定碳排放
|
||||
*
|
||||
* @param dcFixedCarbonEmissions 固定碳排放
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDcFixedCarbonEmissions(DcFixedCarbonEmissions dcFixedCarbonEmissions)
|
||||
{
|
||||
return dcFixedCarbonEmissionsMapper.insertDcFixedCarbonEmissions(dcFixedCarbonEmissions);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改固定碳排放
|
||||
*
|
||||
* @param dcFixedCarbonEmissions 固定碳排放
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDcFixedCarbonEmissions(DcFixedCarbonEmissions dcFixedCarbonEmissions)
|
||||
{
|
||||
return dcFixedCarbonEmissionsMapper.updateDcFixedCarbonEmissions(dcFixedCarbonEmissions);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除固定碳排放
|
||||
*
|
||||
* @param ids 需要删除的固定碳排放主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDcFixedCarbonEmissionsByIds(Long[] ids)
|
||||
{
|
||||
return dcFixedCarbonEmissionsMapper.deleteDcFixedCarbonEmissionsByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除固定碳排放信息
|
||||
*
|
||||
* @param id 固定碳排放主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDcFixedCarbonEmissionsById(Long id)
|
||||
{
|
||||
return dcFixedCarbonEmissionsMapper.deleteDcFixedCarbonEmissionsById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getProductWaterConsumeByMonth() {
|
||||
DcFixedCarbonEmissions dcFixedCarbonEmissions = new DcFixedCarbonEmissions();
|
||||
dcFixedCarbonEmissions.setTimeType(2);
|
||||
dcFixedCarbonEmissions.setProjectType(2);
|
||||
List<DcFixedCarbonEmissions> consumePwList = dcFixedCarbonEmissionsMapper
|
||||
.selectDcFixedCarbonEmissionsList(dcFixedCarbonEmissions);
|
||||
double total = 0;
|
||||
for (DcFixedCarbonEmissions consume : consumePwList) {
|
||||
double energy = consume.getEnergyConsumptionAmount() == null ? 0 : consume.getEnergyConsumptionAmount();
|
||||
total = total + energy;
|
||||
}
|
||||
return total;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getOfficeWaterConsumeByMonth() {
|
||||
DcFixedCarbonEmissions dcFixedCarbonEmissions = new DcFixedCarbonEmissions();
|
||||
dcFixedCarbonEmissions.setTimeType(2);
|
||||
dcFixedCarbonEmissions.setProjectType(3);
|
||||
List<DcFixedCarbonEmissions> consumePwList = dcFixedCarbonEmissionsMapper
|
||||
.selectDcFixedCarbonEmissionsList(dcFixedCarbonEmissions);
|
||||
double total = 0;
|
||||
for (DcFixedCarbonEmissions consume : consumePwList) {
|
||||
double energy = consume.getEnergyConsumptionAmount() == null ? 0 : consume.getEnergyConsumptionAmount();
|
||||
total = total + energy;
|
||||
}
|
||||
return total;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getOfficePowerConsumeByMonth() {
|
||||
DcFixedCarbonEmissions dcFixedCarbonEmissions = new DcFixedCarbonEmissions();
|
||||
dcFixedCarbonEmissions.setTimeType(2);
|
||||
dcFixedCarbonEmissions.setProjectType(1);
|
||||
List<DcFixedCarbonEmissions> consumePwList = dcFixedCarbonEmissionsMapper
|
||||
.selectDcFixedCarbonEmissionsList(dcFixedCarbonEmissions);
|
||||
double total = 0;
|
||||
for (DcFixedCarbonEmissions consume : consumePwList) {
|
||||
double energy = consume.getEnergyConsumptionAmount() == null ? 0 : consume.getEnergyConsumptionAmount();
|
||||
total = total + energy;
|
||||
}
|
||||
return total;
|
||||
}
|
||||
}
|
@ -0,0 +1,117 @@
|
||||
package com.zhonghui.dc.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.zhonghui.dc.mapper.DcNeutralityCalculationRatioMapper;
|
||||
import com.zhonghui.dc.domain.DcNeutralityCalculationRatio;
|
||||
import com.zhonghui.dc.service.IDcNeutralityCalculationRatioService;
|
||||
|
||||
/**
|
||||
* 碳中和计算比例Service业务层处理
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-27
|
||||
*/
|
||||
@Service
|
||||
public class DcNeutralityCalculationRatioServiceImpl implements IDcNeutralityCalculationRatioService
|
||||
{
|
||||
@Autowired
|
||||
private DcNeutralityCalculationRatioMapper dcNeutralityCalculationRatioMapper;
|
||||
|
||||
/**
|
||||
* 查询碳中和计算比例
|
||||
*
|
||||
* @param id 碳中和计算比例主键
|
||||
* @return 碳中和计算比例
|
||||
*/
|
||||
@Override
|
||||
public DcNeutralityCalculationRatio selectDcNeutralityCalculationRatioById(Long id)
|
||||
{
|
||||
return dcNeutralityCalculationRatioMapper.selectDcNeutralityCalculationRatioById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询碳中和计算比例列表
|
||||
*
|
||||
* @param dcNeutralityCalculationRatio 碳中和计算比例
|
||||
* @return 碳中和计算比例
|
||||
*/
|
||||
@Override
|
||||
public List<DcNeutralityCalculationRatio> selectDcNeutralityCalculationRatioList(DcNeutralityCalculationRatio dcNeutralityCalculationRatio)
|
||||
{
|
||||
return dcNeutralityCalculationRatioMapper.selectDcNeutralityCalculationRatioList(dcNeutralityCalculationRatio);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增碳中和计算比例
|
||||
*
|
||||
* @param dcNeutralityCalculationRatio 碳中和计算比例
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDcNeutralityCalculationRatio(DcNeutralityCalculationRatio dcNeutralityCalculationRatio)
|
||||
{
|
||||
return dcNeutralityCalculationRatioMapper.insertDcNeutralityCalculationRatio(dcNeutralityCalculationRatio);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改碳中和计算比例
|
||||
*
|
||||
* @param dcNeutralityCalculationRatio 碳中和计算比例
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDcNeutralityCalculationRatio(DcNeutralityCalculationRatio dcNeutralityCalculationRatio)
|
||||
{
|
||||
return dcNeutralityCalculationRatioMapper.updateDcNeutralityCalculationRatio(dcNeutralityCalculationRatio);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除碳中和计算比例
|
||||
*
|
||||
* @param ids 需要删除的碳中和计算比例主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDcNeutralityCalculationRatioByIds(Long[] ids)
|
||||
{
|
||||
return dcNeutralityCalculationRatioMapper.deleteDcNeutralityCalculationRatioByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除碳中和计算比例信息
|
||||
*
|
||||
* @param id 碳中和计算比例主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDcNeutralityCalculationRatioById(Long id)
|
||||
{
|
||||
return dcNeutralityCalculationRatioMapper.deleteDcNeutralityCalculationRatioById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getElectricCo2() {
|
||||
DcNeutralityCalculationRatio dcNeutralityCalculationRatio = new DcNeutralityCalculationRatio();
|
||||
List<DcNeutralityCalculationRatio> ncList = dcNeutralityCalculationRatioMapper.selectDcNeutralityCalculationRatioList(dcNeutralityCalculationRatio);
|
||||
DcNeutralityCalculationRatio ncConfig = null;
|
||||
if (ncList != null && !ncList.isEmpty()) {
|
||||
ncConfig = ncList.get(0);
|
||||
return ncConfig.getElectricCo2() != null ? ncConfig.getElectricCo2() : 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getWaterCo2() {
|
||||
DcNeutralityCalculationRatio dcNeutralityCalculationRatio = new DcNeutralityCalculationRatio();
|
||||
List<DcNeutralityCalculationRatio> ncList = dcNeutralityCalculationRatioMapper.selectDcNeutralityCalculationRatioList(dcNeutralityCalculationRatio);
|
||||
DcNeutralityCalculationRatio ncConfig = null;
|
||||
if (ncList != null && !ncList.isEmpty()) {
|
||||
ncConfig = ncList.get(0);
|
||||
return ncConfig.getWaterCo2() != null ? ncConfig.getWaterCo2() : 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
@ -0,0 +1,117 @@
|
||||
package com.zhonghui.mes.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.zhonghui.response.BaseResult;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.zhonghui.common.annotation.Log;
|
||||
import com.zhonghui.common.core.controller.BaseController;
|
||||
import com.zhonghui.common.enums.BusinessType;
|
||||
import com.zhonghui.mes.domain.MesDeviceInformation;
|
||||
import com.zhonghui.mes.service.IMesDeviceInformationService;
|
||||
import com.zhonghui.common.utils.poi.ExcelUtil;
|
||||
import com.zhonghui.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 设备信息Controller
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-21
|
||||
*/
|
||||
@Api(tags="制造执行MES-设备信息")
|
||||
@RestController
|
||||
@RequestMapping("/mes/information")
|
||||
public class MesDeviceInformationController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IMesDeviceInformationService mesDeviceInformationService;
|
||||
|
||||
/**
|
||||
* 查询设备信息列表
|
||||
*/
|
||||
@ApiOperation("查询设备信息列表")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<List<MesDeviceInformation>> list(MesDeviceInformation mesDeviceInformation)
|
||||
{
|
||||
startPage();
|
||||
List<MesDeviceInformation> list = mesDeviceInformationService.selectMesDeviceInformationList(mesDeviceInformation);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询设备信息列表(不分页)
|
||||
*/
|
||||
@ApiOperation("查询设备信息列表(不分页)")
|
||||
@GetMapping("/deviceList")
|
||||
public BaseResult<List<MesDeviceInformation>> deviceList(MesDeviceInformation mesDeviceInformation)
|
||||
{
|
||||
return BaseResult.success(mesDeviceInformationService.selectMesDeviceInformationList(mesDeviceInformation));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出设备信息列表
|
||||
*/
|
||||
@ApiOperation("导出设备信息列表")
|
||||
@Log(title = "设备信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, MesDeviceInformation mesDeviceInformation)
|
||||
{
|
||||
List<MesDeviceInformation> list = mesDeviceInformationService.selectMesDeviceInformationList(mesDeviceInformation);
|
||||
ExcelUtil<MesDeviceInformation> util = new ExcelUtil<MesDeviceInformation>(MesDeviceInformation.class);
|
||||
util.exportExcel(response, list, "设备信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取设备信息详细信息
|
||||
*/
|
||||
@ApiOperation("获取设备信息详细信息")
|
||||
@GetMapping(value = "/{id}")
|
||||
public BaseResult<MesDeviceInformation> getInfo(@PathVariable("id") Integer id)
|
||||
{
|
||||
return BaseResult.success(mesDeviceInformationService.selectMesDeviceInformationById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备信息
|
||||
*/
|
||||
@ApiOperation("新增设备信息")
|
||||
@Log(title = "设备信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public BaseResult<Integer> add(@RequestBody MesDeviceInformation mesDeviceInformation)
|
||||
{
|
||||
return BaseResult.success(mesDeviceInformationService.insertMesDeviceInformation(mesDeviceInformation));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设备信息
|
||||
*/
|
||||
@ApiOperation("修改设备信息")
|
||||
@Log(title = "设备信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public BaseResult<Integer> edit(@RequestBody MesDeviceInformation mesDeviceInformation)
|
||||
{
|
||||
return BaseResult.success(mesDeviceInformationService.updateMesDeviceInformation(mesDeviceInformation));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备信息
|
||||
*/
|
||||
@ApiOperation("删除设备信息")
|
||||
@Log(title = "设备信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public BaseResult<Integer> remove(@PathVariable Integer[] ids)
|
||||
{
|
||||
return BaseResult.success(mesDeviceInformationService.deleteMesDeviceInformationByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,118 @@
|
||||
package com.zhonghui.mes.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.zhonghui.mes.domain.vo.MesFactoryVo;
|
||||
import com.zhonghui.response.BaseResult;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.zhonghui.common.annotation.Log;
|
||||
import com.zhonghui.common.core.controller.BaseController;
|
||||
import com.zhonghui.common.enums.BusinessType;
|
||||
import com.zhonghui.mes.domain.MesFactory;
|
||||
import com.zhonghui.mes.service.IMesFactoryService;
|
||||
import com.zhonghui.common.utils.poi.ExcelUtil;
|
||||
import com.zhonghui.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 工厂建模Controller
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-20
|
||||
*/
|
||||
@Api(tags="制造执行MES-工厂建模")
|
||||
@RestController
|
||||
@RequestMapping("/mes/factory")
|
||||
public class MesFactoryController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IMesFactoryService mesFactoryService;
|
||||
|
||||
/**
|
||||
* 查询工厂建模列表
|
||||
*/
|
||||
@ApiOperation("查询工厂建模列表")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<List<MesFactory>> list(MesFactory mesFactory)
|
||||
{
|
||||
startPage();
|
||||
List<MesFactory> list = mesFactoryService.selectMesFactoryList(mesFactory);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询工厂建模列表(不分页)
|
||||
*/
|
||||
@ApiOperation("查询工厂建模列表(不分页)")
|
||||
@GetMapping("/getList")
|
||||
public BaseResult<List<MesFactory>> getList(MesFactory mesFactory)
|
||||
{
|
||||
return BaseResult.success(mesFactoryService.selectMesFactoryList(mesFactory));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出工厂建模列表
|
||||
*/
|
||||
@ApiOperation("导出工厂建模列表")
|
||||
@Log(title = "工厂建模", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, MesFactory mesFactory)
|
||||
{
|
||||
List<MesFactory> list = mesFactoryService.selectMesFactoryList(mesFactory);
|
||||
ExcelUtil<MesFactory> util = new ExcelUtil<MesFactory>(MesFactory.class);
|
||||
util.exportExcel(response, list, "工厂建模数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取工厂建模详细信息
|
||||
*/
|
||||
@ApiOperation("获取工厂建模详细信息")
|
||||
@GetMapping(value = "/{id}")
|
||||
public BaseResult<MesFactoryVo> getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return BaseResult.success(mesFactoryService.selectMesFactoryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增工厂建模
|
||||
*/
|
||||
@ApiOperation("新增工厂建模")
|
||||
@Log(title = "工厂建模", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public BaseResult<Integer> add(@RequestBody MesFactory mesFactory)
|
||||
{
|
||||
return BaseResult.success(mesFactoryService.insertMesFactory(mesFactory));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改工厂建模
|
||||
*/
|
||||
@ApiOperation("修改工厂建模")
|
||||
@Log(title = "工厂建模", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public BaseResult<Integer> edit(@RequestBody MesFactory mesFactory)
|
||||
{
|
||||
return BaseResult.success(mesFactoryService.updateMesFactory(mesFactory));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除工厂建模
|
||||
*/
|
||||
@ApiOperation("删除工厂建模")
|
||||
@Log(title = "工厂建模", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public BaseResult<Integer> remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return BaseResult.success(mesFactoryService.deleteMesFactoryByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,157 @@
|
||||
package com.zhonghui.mes.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.zhonghui.common.utils.DateUtils;
|
||||
import com.zhonghui.common.utils.SecurityUtils;
|
||||
import com.zhonghui.mes.domain.vo.MesProductionPlanVo;
|
||||
import com.zhonghui.response.BaseResult;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.zhonghui.common.annotation.Log;
|
||||
import com.zhonghui.common.core.controller.BaseController;
|
||||
import com.zhonghui.common.enums.BusinessType;
|
||||
import com.zhonghui.mes.domain.MesProductionPlan;
|
||||
import com.zhonghui.mes.service.IMesProductionPlanService;
|
||||
import com.zhonghui.common.utils.poi.ExcelUtil;
|
||||
import com.zhonghui.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 生产计划Controller
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-21
|
||||
*/
|
||||
@Api(tags="制造执行MES-生产计划")
|
||||
@RestController
|
||||
@RequestMapping("/mes/plan")
|
||||
public class MesProductionPlanController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IMesProductionPlanService mesProductionPlanService;
|
||||
|
||||
/**
|
||||
* 查询生产计划列表
|
||||
*/
|
||||
@ApiOperation("查询生产计划列表")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<List<MesProductionPlanVo>> list(MesProductionPlan mesProductionPlan)
|
||||
{
|
||||
startPage();
|
||||
List<MesProductionPlanVo> list = mesProductionPlanService.selectMesProductionPlanList(mesProductionPlan);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出生产计划列表
|
||||
*/
|
||||
@ApiOperation("导出生产计划列表")
|
||||
@Log(title = "生产计划", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, MesProductionPlan mesProductionPlan)
|
||||
{
|
||||
List<MesProductionPlanVo> list = mesProductionPlanService.selectMesProductionPlanList(mesProductionPlan);
|
||||
ExcelUtil<MesProductionPlanVo> util = new ExcelUtil<MesProductionPlanVo>(MesProductionPlanVo.class);
|
||||
util.exportExcel(response, list, "生产计划数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取生产计划详细信息
|
||||
*/
|
||||
@ApiOperation("获取生产计划详细信息")
|
||||
@GetMapping(value = "/{id}")
|
||||
public BaseResult<MesProductionPlanVo> getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return BaseResult.success(mesProductionPlanService.selectMesProductionPlanById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增生产计划
|
||||
*/
|
||||
@ApiOperation("新增生产计划")
|
||||
@Log(title = "生产计划", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public BaseResult<Integer> add(@RequestBody MesProductionPlan mesProductionPlan)
|
||||
{
|
||||
mesProductionPlan.setApplicantStatus(0);
|
||||
return BaseResult.success(mesProductionPlanService.insertMesProductionPlan(mesProductionPlan));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改生产计划
|
||||
*/
|
||||
@ApiOperation("修改生产计划")
|
||||
@Log(title = "生产计划", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public BaseResult<Integer> edit(@RequestBody MesProductionPlan mesProductionPlan)
|
||||
{
|
||||
mesProductionPlan.setApplicantStatus(0);
|
||||
mesProductionPlan.setReviewer(null);
|
||||
mesProductionPlan.setReviewerStatus(null);
|
||||
mesProductionPlan.setReviewerDate(null);
|
||||
mesProductionPlan.setReviewComments("");
|
||||
return BaseResult.success(mesProductionPlanService.updateMesProductionPlan(mesProductionPlan));
|
||||
}
|
||||
|
||||
/**
|
||||
* 提交生产计划
|
||||
*/
|
||||
@ApiOperation("提交生产计划")
|
||||
@Log(title = "生产计划", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/submit")
|
||||
public BaseResult<Integer> submit(@RequestBody MesProductionPlan mesProductionPlan)
|
||||
{
|
||||
// 申请状态 0未提交 1待审核 2已审核
|
||||
mesProductionPlan.setApplicantStatus(1);
|
||||
mesProductionPlan.setApplicantDate(DateUtils.getNowDate());
|
||||
if(mesProductionPlan.getId() != null) {
|
||||
// 修改提交
|
||||
MesProductionPlanVo mesProductionPlanVo = mesProductionPlanService.selectMesProductionPlanById(mesProductionPlan.getId());
|
||||
if (mesProductionPlanVo == null) {
|
||||
return BaseResult.error("此生产计划不存在,不能提交!");
|
||||
}
|
||||
mesProductionPlan.setReviewer(null);
|
||||
mesProductionPlan.setReviewerStatus(null);
|
||||
mesProductionPlan.setReviewerDate(null);
|
||||
mesProductionPlan.setReviewComments("");
|
||||
return BaseResult.success(mesProductionPlanService.updateMesProductionPlan(mesProductionPlan));
|
||||
} else {
|
||||
return BaseResult.success(mesProductionPlanService.insertMesProductionPlan(mesProductionPlan));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 生产计划审核
|
||||
*/
|
||||
@ApiOperation("生产计划审核")
|
||||
@Log(title = "生产计划", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/approve")
|
||||
public BaseResult<Integer> approve(@RequestBody MesProductionPlan mesProductionPlan)
|
||||
{
|
||||
mesProductionPlan.setApplicantStatus(2);
|
||||
mesProductionPlan.setReviewer(SecurityUtils.getUserId());
|
||||
mesProductionPlan.setReviewerDate(DateUtils.getNowDate());
|
||||
return BaseResult.success(mesProductionPlanService.updateMesProductionPlan(mesProductionPlan));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除生产计划
|
||||
*/
|
||||
@ApiOperation("删除生产计划")
|
||||
@Log(title = "生产计划", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public BaseResult<Integer> remove(@PathVariable String[] ids)
|
||||
{
|
||||
return BaseResult.success(mesProductionPlanService.deleteMesProductionPlanByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,110 @@
|
||||
package com.zhonghui.mes.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.zhonghui.mes.domain.vo.MesProductionPlanItemVo;
|
||||
import com.zhonghui.response.BaseResult;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.zhonghui.common.annotation.Log;
|
||||
import com.zhonghui.common.core.controller.BaseController;
|
||||
import com.zhonghui.common.core.domain.AjaxResult;
|
||||
import com.zhonghui.common.enums.BusinessType;
|
||||
import com.zhonghui.mes.domain.MesProductionPlanItem;
|
||||
import com.zhonghui.mes.service.IMesProductionPlanItemService;
|
||||
import com.zhonghui.common.utils.poi.ExcelUtil;
|
||||
import com.zhonghui.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 生产计划明细Controller
|
||||
*
|
||||
* @author zhonghui
|
||||
* @date 2022-05-24
|
||||
*/
|
||||
@Api(tags ="制造执行MES-生产计划明细")
|
||||
@RestController
|
||||
@RequestMapping("/mes/planItem")
|
||||
public class MesProductionPlanItemController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IMesProductionPlanItemService mesProductionPlanItemService;
|
||||
|
||||
/**
|
||||
* 查询生产计划明细列表
|
||||
*/
|
||||
@ApiOperation("查询生产计划明细列表")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<List<MesProductionPlanItemVo>> list(MesProductionPlanItemVo mesProductionPlanItemVo)
|
||||
{
|
||||
startPage();
|
||||
List<MesProductionPlanItemVo> list = mesProductionPlanItemService.selectMesProductionPlanItemList(mesProductionPlanItemVo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出生产计划明细列表
|
||||
*/
|
||||
@ApiOperation("导出生产计划明细列表")
|
||||
@Log(title = "生产计划明细", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, MesProductionPlanItemVo mesProductionPlanItemVo)
|
||||
{
|
||||
List<MesProductionPlanItemVo> list = mesProductionPlanItemService.selectMesProductionPlanItemList(mesProductionPlanItemVo);
|
||||
ExcelUtil<MesProductionPlanItemVo> util = new ExcelUtil<MesProductionPlanItemVo>(MesProductionPlanItemVo.class);
|
||||
util.exportExcel(response, list, "生产计划明细数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取生产计划明细详细信息
|
||||
*/
|
||||
@ApiOperation("获取生产计划明细详细信息")
|
||||
@GetMapping(value = "/{id}")
|
||||
public BaseResult<MesProductionPlanItem> getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return BaseResult.success(mesProductionPlanItemService.selectMesProductionPlanItemById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增生产计划明细
|
||||
*/
|
||||
@ApiOperation("新增生产计划明细")
|
||||
@Log(title = "生产计划明细", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public BaseResult<Integer> add(@RequestBody MesProductionPlanItem mesProductionPlanItem)
|
||||
{
|
||||
return BaseResult.success(mesProductionPlanItemService.insertMesProductionPlanItem(mesProductionPlanItem));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改生产计划明细
|
||||
*/
|
||||
@ApiOperation("修改生产计划明细")
|
||||
@Log(title = "生产计划明细", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public BaseResult<Integer> edit(@RequestBody MesProductionPlanItem mesProductionPlanItem)
|
||||
{
|
||||
return BaseResult.success(mesProductionPlanItemService.updateMesProductionPlanItem(mesProductionPlanItem));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除生产计划明细
|
||||
*/
|
||||
@ApiOperation("删除生产计划明细")
|
||||
@Log(title = "生产计划明细", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public BaseResult<Integer> remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return BaseResult.success(mesProductionPlanItemService.deleteMesProductionPlanItemByIds(ids));
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user