feat(PMS):设备管理
This commit is contained in:
commit
f111d49332
37
.gitignore
vendored
Normal file
37
.gitignore
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
HELP.md
|
||||
target/
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
!**/src/main/**
|
||||
!**/src/test/**
|
||||
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
.sts4-cache
|
||||
|
||||
.idea
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
|
||||
/nbproject/private/
|
||||
/nbbuild/
|
||||
/dist/
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
build/
|
||||
|
||||
.vscode/
|
||||
|
||||
|
||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
||||
hs_err_pid*
|
||||
|
||||
# Others
|
||||
*.log
|
||||
logs/
|
||||
*.log.gz
|
||||
*.xml.versionsBackup
|
||||
28
.gitlab-ci.yml
Normal file
28
.gitlab-ci.yml
Normal file
@ -0,0 +1,28 @@
|
||||
|
||||
## GitLab CI/CD Config File
|
||||
|
||||
## https://ewiki.semi-tech.com/STC/CICD/index.md
|
||||
## https://docs.gitlab.com/ee/ci/index.html
|
||||
## https://docs.gitlab.com/ee/ci/yaml/index.html
|
||||
|
||||
---
|
||||
|
||||
variables:
|
||||
## `BOT_ALIAS` and `TEMPLATE_ALIAS` can be set here, or defined in your Group/Project > Settings > CI/CD > Variables
|
||||
## !!!: Project variables > Group variables > Instance(GitLab) variables > .yml job variables > .yml global variables
|
||||
## CI/CD variable precedence: https://docs.gitlab.com/ee/ci/variables/index.html#cicd-variable-precedence
|
||||
BOT_ALIAS: "iep_cicd_notify_robot"
|
||||
TEMPLATE_ALIAS: "sonar"
|
||||
VERBOSE: "false"
|
||||
JAVA_VERSION: "8"
|
||||
|
||||
default:
|
||||
tags:
|
||||
## public runners
|
||||
- public
|
||||
|
||||
include:
|
||||
## https://gitlab.semi-tech.com/stc/cicd/cicd-config
|
||||
- project: stc/cicd/cicd-config
|
||||
ref: master
|
||||
file: java.yml
|
||||
11
README.md
Normal file
11
README.md
Normal file
@ -0,0 +1,11 @@
|
||||
# nlv-print
|
||||
|
||||
#### 介绍
|
||||
打印模块
|
||||
|
||||
|
||||
#### 软件架构
|
||||
+ print-api
|
||||
+ print-db
|
||||
+ print-core
|
||||
+ print-app
|
||||
207
db/createTable.sql
Normal file
207
db/createTable.sql
Normal file
@ -0,0 +1,207 @@
|
||||
CREATE TABLE `print_fields_custom_logic` (
|
||||
`HANDLE` varchar(412) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'FieldCustomLogicBO:SITE,FIELD_NUMBER',
|
||||
`SITE` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '工厂',
|
||||
`FIELD_NUMBER` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '字段编号',
|
||||
`FUNCTION_NAME` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '方法名',
|
||||
PRIMARY KEY (`HANDLE`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='字段与方法绑定';
|
||||
|
||||
|
||||
CREATE TABLE `print_label_category` (
|
||||
`HANDLE` varchar(412) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'LabelCategoryBO:SITE,LABEL_CATEGORY_ID',
|
||||
`SITE` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '站点',
|
||||
`LABEL_CATEGORY_ID` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '标签类别编号',
|
||||
`LABEL_CATEGORY_NAME` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '标签类别名称',
|
||||
`MODIFY_DATE_TIME` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
`MODIFY_USER` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新人员',
|
||||
PRIMARY KEY (`HANDLE`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='标签类别维护表';
|
||||
|
||||
|
||||
|
||||
CREATE TABLE `print_label_field_allocation` (
|
||||
`HANDLE` varchar(412) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'LabelFieldAllocationBO:SITE,LABEL_NUMBER,LABEL_TYPE',
|
||||
`SITE` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '工厂',
|
||||
`LABEL_NUMBER` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '标签编号',
|
||||
`LABEL_DESCRIPTION` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '标签编号描述',
|
||||
`LABEL_TYPE` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '标签类型',
|
||||
`MODIFY_DATE_TIME` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
`MODIFY_USER` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新人员',
|
||||
PRIMARY KEY (`HANDLE`),
|
||||
KEY `SITE_LABEL_NUMBER` (`SITE`,`LABEL_NUMBER`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='标签字段分配主表';
|
||||
|
||||
|
||||
|
||||
CREATE TABLE `print_label_field_allocation_detail` (
|
||||
`HANDLE` varchar(412) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'LabelFieldAllocationDetailBO:SITE,LABEL_NUMBER,LABEL_TYPE,LABEL_FIELD',
|
||||
`Z_LABEL_FIELD_ALLOCATION_BO` varchar(412) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '标签字段分配HANDLE',
|
||||
`SEQ` int DEFAULT NULL,
|
||||
`LABEL_FIELD` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '标签字段',
|
||||
`FIELD_NUMBER` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '字段编号',
|
||||
`MODIFY_DATE_TIME` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
`MODIFY_USER` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新人员',
|
||||
PRIMARY KEY (`HANDLE`),
|
||||
KEY `Z_LABEL_FIELD_ALLOCATION_BO` (`Z_LABEL_FIELD_ALLOCATION_BO`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='标签字段分配明细表';
|
||||
|
||||
|
||||
|
||||
CREATE TABLE `print_printer` (
|
||||
`HANDLE` varchar(412) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'UUID',
|
||||
`SITE` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '站点',
|
||||
`PRINTER_ID` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '打印机编号',
|
||||
`OPERATION_TYPE` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '工序类型',
|
||||
`OPERATION` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '工序',
|
||||
`PRINT_SCENARIO` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '打印场景',
|
||||
`LOCATION_DESC` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '位置说明',
|
||||
`RESOURCE` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '关联资源',
|
||||
`IP_ADDRESS` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'IP地址',
|
||||
`MODIFY_DATE_TIME` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
`MODIFY_USER` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新人员',
|
||||
PRIMARY KEY (`HANDLE`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='打印机注册表';
|
||||
|
||||
|
||||
|
||||
CREATE TABLE `print_label_template` (
|
||||
`HANDLE` varchar(412) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'PrintLabelTemplateBO:SITE,TEMPLATE_CODE',
|
||||
`SITE` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '站点',
|
||||
`TEMPLATE_CODE` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '模板编码',
|
||||
`TEMPLATE_NAME` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '模板名称',
|
||||
`TEMPLATE_CATEGORY` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '模板类别',
|
||||
`EXTERNAL_RULES` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '是否外部规则',
|
||||
`CUSTOMER_CODE` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '客户编码',
|
||||
`STATUS` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '状态',
|
||||
`CREATED_DATE_TIME` timestamp NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`CREATED_USER` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建人',
|
||||
PRIMARY KEY (`HANDLE`),
|
||||
KEY `SITE_TEMPLATE_CODE` (`SITE`,`TEMPLATE_CODE`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='打印标签模板维护';
|
||||
|
||||
|
||||
CREATE TABLE `print_record` (
|
||||
`HANDLE` varchar(412) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '主键',
|
||||
`SITE` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '站点',
|
||||
`SHOP_ORDER` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '工单编号',
|
||||
`BARCODE_NUMBER` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '打印条码序列号',
|
||||
`BARCODE_TYPE` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '条码类型:工序打印,条码补打印等',
|
||||
`PRINT_TIMES` int DEFAULT NULL COMMENT '打印次数',
|
||||
`COPIES` int DEFAULT '0' COMMENT '打印副本数(总计)',
|
||||
`LAST_PRINT_TIME` datetime NOT NULL COMMENT '打印时间',
|
||||
`PRINT_TMPL` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '打印模板',
|
||||
`PRINT_CONTENT` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin COMMENT '打印内容',
|
||||
`BASEDATA_CONTENT` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin COMMENT '打印基本参考数据',
|
||||
`PRINTER_NAME` varchar(412) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '打印机名称',
|
||||
`OPERATION_TYPE` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '工序类型',
|
||||
`OPERATION` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '工序',
|
||||
`PRINT_SCENARIO` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '打印场景',
|
||||
`CREATED_USER` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '创建人ID',
|
||||
`MODIFIED_USER` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '修改人ID',
|
||||
`CREATED_DATE_TIME` datetime NOT NULL COMMENT '创建时间',
|
||||
`MODIFIED_DATE_TIME` datetime DEFAULT NULL COMMENT '修改时间',
|
||||
PRIMARY KEY (`HANDLE`),
|
||||
KEY `SITE_BARCODE_NUMBER` (`SITE`,`BARCODE_NUMBER`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='打印记录表';
|
||||
|
||||
|
||||
CREATE TABLE `print_rule` (
|
||||
`HANDLE` varchar(412) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'PrintRuleBO:SITE,CUSTOMER_CODE,OPERATION',
|
||||
`SITE` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '站点',
|
||||
`CUSTOMER_CODE` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '客户编码',
|
||||
`OPERATION` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '对应工序',
|
||||
`STATUS` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '规则状态',
|
||||
`RULE1` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '规则公式1',
|
||||
`PRINT_NUMBER1` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '规则公式1打印次数',
|
||||
`RULE2` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '规则公式2',
|
||||
`PRINT_NUMBER2` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '规则公式2打印次数',
|
||||
`RULE3` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '规则公式3',
|
||||
`PRINT_NUMBER3` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '规则公式3打印次数',
|
||||
`CREATED_DATE_TIME` timestamp NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`CREATED_USER` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建人',
|
||||
PRIMARY KEY (`HANDLE`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='客户打印规则维护';
|
||||
|
||||
|
||||
|
||||
CREATE TABLE `print_field` (
|
||||
`HANDLE` varchar(412) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'SystemLabelBO:SITE,FIELD_NUMBER',
|
||||
`SITE` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '工厂',
|
||||
`FIELD_NUMBER` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '字段编号',
|
||||
`FIELD_DESCRIPTION` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '字段描述',
|
||||
`TYPE` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '类型',
|
||||
`GET_VALUE_CONTEXT` varchar(5001) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '例:SQL语句,自定义格式内容等',
|
||||
`MODIFY_DATE_TIME` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
`MODIFY_USER` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新人员',
|
||||
PRIMARY KEY (`HANDLE`),
|
||||
KEY `SITE_FIELD_NUMBER` (`SITE`,`FIELD_NUMBER`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='系统字段定义表';
|
||||
|
||||
|
||||
CREATE TABLE Z_SALES_ORDER_LINE_LABEL_VALUE_CONFIG (
|
||||
HANDLE varchar(412) PRIMARY KEY NOT NULL COMMENT '主键',
|
||||
SITE varchar(10) NOT NULL COMMENT '工厂',
|
||||
SALES_ORDER_LINE_BO varchar(412) NOT NULL COMMENT '关联销售订单行handle',
|
||||
SALES_ORDER varchar(100) NOT NULL COMMENT '销售订单',
|
||||
SALES_ORDER_LINE varchar(20) NOT NULL COMMENT '销售订单行',
|
||||
LABEL_TEMPLE_TYPE varchar(64) DEFAULT NULL COMMENT '标签模版类别',
|
||||
LABEL_TEMPLE_CODE varchar(64) DEFAULT NULL COMMENT '标签模版编号',
|
||||
LABEL_TEMPLE_BO varchar(412) DEFAULT NULL COMMENT '标签模版handle',
|
||||
LABEL_FIELD_CODE varchar(64) DEFAULT NULL COMMENT '标签字段编号',
|
||||
FIELD_VALUE_TYPE varchar(32) DEFAULT NULL COMMENT '标签取值类型(固定值/自定义值集等)',
|
||||
FIELD_VALUE_RULES varchar(100) DEFAULT NULL COMMENT '标签字段取值规则(取值逻辑的字段,例如SERIAL_NUMBER)',
|
||||
CONFIG_ITEM varchar(100) NOT NULL COMMENT 'SO配置项',
|
||||
COFIG_STATUS varchar(6) NOT NULL COMMENT '值集配置状态(0:未配置,1:已配置)',
|
||||
REMARKS varchar(40) DEFAULT NULL COMMENT '备注说明',
|
||||
CREATOR varchar(20) NOT NULL COMMENT '创建人',
|
||||
UPDATER varchar(20) DEFAULT NULL COMMENT '更新人员',
|
||||
DATE_CREATE datetime NOT NULL COMMENT '创建时间',
|
||||
DATE_UPDATE datetime DEFAULT NULL COMMENT '更新时间'
|
||||
) COMMENT='销售订单行标签模版取值配置表';
|
||||
CREATE INDEX SALES_ORDER_LINE_LABEL_VALUE_CONFIG_IDX1 ON Z_SALES_ORDER_LINE_LABEL_VALUE_CONFIG (SITE, SALES_ORDER);
|
||||
CREATE INDEX SALES_ORDER_LINE_LABEL_VALUE_CONFIG_IDX2 ON Z_SALES_ORDER_LINE_LABEL_VALUE_CONFIG (SALES_ORDER_LINE_BO);
|
||||
|
||||
CREATE TABLE Z_SALES_ORDER_LINE_LABEL_VALUE_SET (
|
||||
HANDLE varchar(412) PRIMARY KEY NOT NULL COMMENT '主键',
|
||||
SITE varchar(10) NOT NULL COMMENT '工厂',
|
||||
SALES_ORDER_LINE_LABEL_VALUE_COFIG_BO varchar(412) NOT NULL COMMENT '关联销售订单配置项',
|
||||
SEQ DECIMAL(38, 0) NOT NULL COMMENT '序号',
|
||||
FIELD_VALUE varchar(50) NOT NULL COMMENT '标签值',
|
||||
FIELD_VALUE_STATUS varchar(6) DEFAULT NULL COMMENT '标签值状态(0:未使用,1:已使用)',
|
||||
CREATOR varchar(20) NOT NULL COMMENT '创建人',
|
||||
UPDATER varchar(20) DEFAULT NULL COMMENT '更新人员',
|
||||
DATE_CREATE datetime NOT NULL COMMENT '创建时间',
|
||||
DATE_UPDATE datetime DEFAULT NULL COMMENT '更新时间'
|
||||
) COMMENT='销售订单行标签模版字段取值';
|
||||
CREATE INDEX SALES_ORDER_LINE_LABEL_VALUE_SET_IDX1 ON Z_SALES_ORDER_LINE_LABEL_VALUE_SET (SALES_ORDER_LINE_LABEL_VALUE_COFIG_BO);
|
||||
|
||||
ALTER TABLE print_rule CHANGE RULE1 FAB_NO varchar(64) COMMENT '车间代码';
|
||||
ALTER TABLE print_rule DROP COLUMN PRINT_NUMBER1;
|
||||
ALTER TABLE print_rule DROP COLUMN PRINT_NUMBER2;
|
||||
ALTER TABLE print_rule DROP COLUMN PRINT_NUMBER3;
|
||||
ALTER TABLE print_rule DROP COLUMN RULE2;
|
||||
ALTER TABLE print_rule DROP COLUMN RULE3;
|
||||
ALTER TABLE print_rule MODIFY FAB_NO varchar(64) DEFAULT NULL COMMENT '车间代码';
|
||||
ALTER TABLE print_printer ADD COLUMN OPERATION varchar(64) COMMENT '工序';
|
||||
ALTER TABLE print_record ADD COLUMN OPERATION varchar(64) COMMENT '工序';
|
||||
ALTER TABLE print_printer CHANGE OPERATION OPERATION_TYPE varchar(64) COMMENT '工序类型';
|
||||
ALTER TABLE z_external_lot_record ADD COLUMN SALES_ORDER varchar(100) COMMENT '工序';
|
||||
ALTER TABLE z_external_lot_record ADD COLUMN SALES_ORDER_LINE varchar(20) COMMENT '销售订单行';
|
||||
ALTER TABLE z_external_lot_record ADD COLUMN LABEL_TEMPLATE_CODE varchar(64) COMMENT '标签模板编号';
|
||||
ALTER TABLE z_external_lot_record ADD COLUMN LABEL_FIELD_CODE varchar(64) COMMENT '标签模板字段';
|
||||
ALTER TABLE z_external_lot_record ADD COLUMN SALES_ORDER_LINE_LABEL_VALUE_CONFIG_BO varchar(412) COMMENT '关联销售订单行标签模版取值配置';
|
||||
|
||||
CREATE TABLE PRINT_PAGES (
|
||||
HANDLE varchar(412) PRIMARY KEY NOT NULL COMMENT '主键',
|
||||
SITE varchar(10) NOT NULL COMMENT '工厂',
|
||||
PRINT_RULE_BO varchar(412) NOT NULL COMMENT '关联打印规则',
|
||||
LABEL_CATEGORY varchar(64) DEFAULT NULL COMMENT '标签类别',
|
||||
TEMPLATE_CODE varchar(64) DEFAULT NULL COMMENT '标签编号',
|
||||
PRINT_SCENARIO varchar(36) DEFAULT NULL COMMENT '打印场景',
|
||||
PRINT_PAGES DECIMAL(38, 0) NOT NULL COMMENT '打印份数',
|
||||
CREATOR varchar(20) NOT NULL COMMENT '创建人',
|
||||
UPDATER varchar(20) DEFAULT NULL COMMENT '更新人员',
|
||||
DATE_CREATE datetime NOT NULL COMMENT '创建时间',
|
||||
DATE_UPDATE datetime DEFAULT NULL COMMENT '更新时间'
|
||||
) COMMENT='打印份数';
|
||||
CREATE INDEX PRINT_PAGES_IDX1 ON PRINT_PAGES (PRINT_RULE_BO);
|
||||
46
mom-pms-api/pom.xml
Normal file
46
mom-pms-api/pom.xml
Normal file
@ -0,0 +1,46 @@
|
||||
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.foreverwin</groupId>
|
||||
<artifactId>mom-pms</artifactId>
|
||||
<version>4.5.0</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>mom-pms-api</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<!--core 工具类-->
|
||||
<dependency>
|
||||
<groupId>com.foreverwin</groupId>
|
||||
<artifactId>mom-common-core</artifactId>
|
||||
</dependency>
|
||||
<!--mybatis plus extension,包含了mybatis plus core-->
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-extension</artifactId>
|
||||
</dependency>
|
||||
<!--feign 工具类-->
|
||||
<dependency>
|
||||
<groupId>com.foreverwin</groupId>
|
||||
<artifactId>mom-common-feign</artifactId>
|
||||
</dependency>
|
||||
<!-- excel 导入导出 -->
|
||||
<dependency>
|
||||
<groupId>com.foreverwin</groupId>
|
||||
<artifactId>mom-common-excel</artifactId>
|
||||
</dependency>
|
||||
<!-- mom通用工具包 -->
|
||||
<dependency>
|
||||
<groupId>com.foreverwin</groupId>
|
||||
<artifactId>mes-common</artifactId>
|
||||
</dependency>
|
||||
<!-- 自定义组件 -->
|
||||
<dependency>
|
||||
<groupId>com.foreverwin</groupId>
|
||||
<artifactId>mes-api</artifactId>
|
||||
<version>4.5.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@ -0,0 +1,14 @@
|
||||
package com.foreverwin.mom.pms.api.feign;
|
||||
|
||||
import com.foreverwin.mom.pms.entity.PmsSpareInventory;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@FeignClient(contextId = "remoteCreateSpareInventoryService", value = "mom-pms-biz")
|
||||
public interface RemoteCreateSpareInventoryService {
|
||||
@PostMapping("/pms_spare_inventory/createInventoryOrUpdate")
|
||||
void createSpareInventory(@RequestBody List<PmsSpareInventory> pmsSpareInventory);
|
||||
}
|
||||
@ -0,0 +1,129 @@
|
||||
package com.foreverwin.mom.pms.common;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class ConstantUtil {
|
||||
|
||||
public static final String BO_RESOURCE = "ResourceBO:";
|
||||
public static final String BO_RESOURCE_TYPE = "ResourceTypeBO:";
|
||||
public static final String BO_RESOURCE_TYPE_RESOURCE = "ResourceTypeResourceBO:";
|
||||
public static final String BO_STATUS = "StatusBO:";
|
||||
public static final String BO_BROKEN = "BrokenCodeBO:";
|
||||
public static final String BO_SPARE_GROUP = "SpareGroupBO:";
|
||||
public static final String BO_SPARE = "SpareBO:";
|
||||
public static final String BO_SPARE_GROUP_SPARE = "SpareGroupSpareBO:";
|
||||
public static final String BO_USER = "UserBO:";
|
||||
public static final String BO_MAINTAIN_INSP_LIST = "MaintainInspectListBO:";
|
||||
public static final String BO_MAINTAIN_INSP_LIST_ITEM = "MaintainInspectListItemBO:";
|
||||
|
||||
public static final String KEYWORD_TRUE = "Y";
|
||||
public static final String KEYWORD_FALSE = "N";
|
||||
|
||||
public static final String ATTACHED_EQUIP = "1";
|
||||
public static final String ATTACHED_EQUIP_TYPE = "2"
|
||||
;
|
||||
public static final String MAINTAIN_PLAN_UNIT_1 = "1";
|
||||
public static final String MAINTAIN_PLAN_UNIT_2 = "2";
|
||||
public static final String MAINTAIN_PLAN_UNIT_3 = "3";
|
||||
public static final String MAINTAIN_PLAN_UNIT_4 = "4";
|
||||
public static final String MAINTAIN_PLAN_UNIT_5 = "5";
|
||||
|
||||
public static final String ACTION_NAME_CYCLE = "1";
|
||||
public static final String ACTION_NAME_INTERVAL = "2";
|
||||
|
||||
public static final String LIST_TYPE_INSPECT = "I";
|
||||
public static final String LIST_TYPE_MAINTAIN = "M";
|
||||
|
||||
public static final String TOOL_MAINTAIN_LIST_RESULT_TYPE_BOOL = "1";
|
||||
public static final String TOOL_MAINTAIN_LIST_RESULT_TYPE_TEXT = "2";
|
||||
public static final String TOOL_MAINTAIN_LIST_RESULT_TYPE_NUMBER = "3";
|
||||
|
||||
public static final Integer EXT_POSITION_1 = 1;
|
||||
public static final Integer EXT_POSITION_2 = 2;
|
||||
public static final Integer EXT_POSITION_3 = 3;
|
||||
|
||||
public static final String STATUS_ENABLED = "301";
|
||||
public static final String STATUS_DISABLED = "302";
|
||||
public static final String STATUS_NEW = "401";
|
||||
public static final String STATUS_IN_QUEUE = "402";
|
||||
|
||||
public static final String TASK_STATUS_1 = "1";
|
||||
public static final String TASK_STATUS_2 = "2";
|
||||
public static final String TASK_STATUS_3 = "3";
|
||||
public static final String TASK_STATUS_4 = "4";
|
||||
|
||||
public static final String REPAIR_STATUS_1 = "1";
|
||||
public static final String REPAIR_STATUS_2 = "2";
|
||||
public static final String REPAIR_STATUS_3 = "3";
|
||||
public static final String REPAIR_STATUS_4 = "4";
|
||||
public static final String REPAIR_STATUS_5 = "5";
|
||||
public static final String REPAIR_STATUS_6 = "6";
|
||||
public static final String REPAIR_STATUS_7 = "7";
|
||||
public static final String REPAIR_STATUS_8 = "8";
|
||||
public static final String REPAIR_STATUS_9 = "9";
|
||||
public static final String REPAIR_STATUS_10 = "10";
|
||||
public static final String REPAIR_STATUS_11 = "11";
|
||||
|
||||
public static final String MAINTAIN_TASK_TYPE_1 = "1";
|
||||
public static final String MAINTAIN_TASK_TYPE_2 = "2";
|
||||
public static final String MAINTAIN_TASK_TYPE_3 = "3";
|
||||
public static final String MAINTAIN_TASK_TYPE_4 = "4";
|
||||
public static final String MAINTAIN_TASK_TYPE_5 = "5";
|
||||
|
||||
public static final String INSPECT_TASK_TYPE_1 = "I1";
|
||||
public static final String INSPECT_TASK_TYPE_2 = "I2";
|
||||
public static final String INSPECT_TASK_TYPE_3 = "I3";
|
||||
|
||||
public static final Map<String, String> MAINTAIN_PLAN_UNITS = new LinkedHashMap<String, String>();
|
||||
public static final Map<String, String> TASK_STATUSES = new LinkedHashMap<String, String>();
|
||||
public static final Map<String, String> TOOL_MAINTAIN_LIST_RESULT_TYPES = new LinkedHashMap<String, String>();
|
||||
public static final Map<String, String> REPAIR_STATUS = new LinkedHashMap<String, String>();
|
||||
public static final Map<String, String> MAINTAIN_TASK_TYPE = new LinkedHashMap<String, String>();
|
||||
public static final Map<String, String> INSPECT_TASK_TYPE = new LinkedHashMap<String, String>();
|
||||
public static final Map<String, String> PLAN_STATUS = new LinkedHashMap<String, String>();
|
||||
|
||||
static {
|
||||
//----------------------------------------------------------------------------------------------------------------------------------
|
||||
MAINTAIN_PLAN_UNITS.put(MAINTAIN_PLAN_UNIT_1, "小时");
|
||||
MAINTAIN_PLAN_UNITS.put(MAINTAIN_PLAN_UNIT_2, "日");
|
||||
MAINTAIN_PLAN_UNITS.put(MAINTAIN_PLAN_UNIT_3, "周");
|
||||
MAINTAIN_PLAN_UNITS.put(MAINTAIN_PLAN_UNIT_4, "月");
|
||||
MAINTAIN_PLAN_UNITS.put(MAINTAIN_PLAN_UNIT_5, "年");
|
||||
//----------------------------------------------------------------------------------------------------------------------------------
|
||||
TASK_STATUSES.put(TASK_STATUS_1, "未开始");
|
||||
TASK_STATUSES.put(TASK_STATUS_2, "进行中");
|
||||
TASK_STATUSES.put(TASK_STATUS_3, "关闭");
|
||||
TASK_STATUSES.put(TASK_STATUS_4, "完成");
|
||||
//----------------------------------------------------------------------------------------------------------------------------------
|
||||
TOOL_MAINTAIN_LIST_RESULT_TYPES.put(TOOL_MAINTAIN_LIST_RESULT_TYPE_BOOL, "布尔值");
|
||||
TOOL_MAINTAIN_LIST_RESULT_TYPES.put(TOOL_MAINTAIN_LIST_RESULT_TYPE_TEXT, "文本");
|
||||
TOOL_MAINTAIN_LIST_RESULT_TYPES.put(TOOL_MAINTAIN_LIST_RESULT_TYPE_NUMBER, "数字");
|
||||
//----------------------------------------------------------------------------------------------------------------
|
||||
REPAIR_STATUS.put(REPAIR_STATUS_1,"新建");
|
||||
REPAIR_STATUS.put(REPAIR_STATUS_2,"已报修");
|
||||
REPAIR_STATUS.put(REPAIR_STATUS_3,"维修中");
|
||||
REPAIR_STATUS.put(REPAIR_STATUS_4,"维修完成");
|
||||
REPAIR_STATUS.put(REPAIR_STATUS_5,"待生产确认");
|
||||
REPAIR_STATUS.put(REPAIR_STATUS_6,"待品质确认");
|
||||
REPAIR_STATUS.put(REPAIR_STATUS_7,"确认完成");
|
||||
REPAIR_STATUS.put(REPAIR_STATUS_8,"关闭");//取消或者重修的任务状态
|
||||
REPAIR_STATUS.put(REPAIR_STATUS_9,"待关闭确认");
|
||||
REPAIR_STATUS.put(REPAIR_STATUS_10,"待维修");
|
||||
REPAIR_STATUS.put(REPAIR_STATUS_11,"待工艺确认");
|
||||
//-------------------------------------------------------------------------------------------------------------------
|
||||
MAINTAIN_TASK_TYPE.put(MAINTAIN_TASK_TYPE_1,"周保养");
|
||||
MAINTAIN_TASK_TYPE.put(MAINTAIN_TASK_TYPE_2,"月保养");
|
||||
MAINTAIN_TASK_TYPE.put(MAINTAIN_TASK_TYPE_3,"季保养");
|
||||
MAINTAIN_TASK_TYPE.put(MAINTAIN_TASK_TYPE_4,"半年保养");
|
||||
MAINTAIN_TASK_TYPE.put(MAINTAIN_TASK_TYPE_5,"年保养");
|
||||
//-------------------------------------------------------------------------------------------------------------------
|
||||
INSPECT_TASK_TYPE.put(INSPECT_TASK_TYPE_1,"日点检");
|
||||
INSPECT_TASK_TYPE.put(INSPECT_TASK_TYPE_2,"开机检");
|
||||
INSPECT_TASK_TYPE.put(INSPECT_TASK_TYPE_3,"巡检");
|
||||
//-------------------------------------------------------------------------------------------------------------------
|
||||
PLAN_STATUS.put( STATUS_ENABLED,"启动" );
|
||||
PLAN_STATUS.put( STATUS_DISABLED,"禁止" );
|
||||
PLAN_STATUS.put( STATUS_NEW,"新建" );
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,727 @@
|
||||
package com.foreverwin.mom.pms.common;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.time.Instant;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.ZoneId;
|
||||
import java.time.ZonedDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.SimpleTimeZone;
|
||||
import java.util.TimeZone;
|
||||
|
||||
public class DateUtil
|
||||
{
|
||||
public static final String[] YEARS = {"2017年", "2018年", "2019年", "2020年", "2021年", "2022年", "2023年", "2024年", "2025年", "2026年", "2027年"};
|
||||
public static final String[] YEARS_SHORT = {"2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027"};
|
||||
public static final String[] MONTHS = {"01月", "02月", "03月", "04月", "05月", "06月", "07月", "08月", "09月", "10月", "11月", "12月"};
|
||||
public static final String[] MONTHS_SHORT = {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"};
|
||||
public static final String[] DAYS = {"0天", "1天", "2天", "3天", "4天", "5天", "6天", "7天", "8天", "9天", "10天",
|
||||
"11天", "12天", "13天", "14天", "15天", "16天", "17天", "18天", "19天", "20天",
|
||||
"21天", "22天", "23天", "24天", "25天", "26天", "27天", "28天", "29天", "30天", "31天"};
|
||||
|
||||
public static final short DATE_TYPE_MILLISECOND = 0;
|
||||
public static final short DATE_TYPE_SECOND = 1;
|
||||
public static final short DATE_TYPE_MINUTE = 2;
|
||||
public static final short DATE_TYPE_HOUR = 3;
|
||||
public static final short DATE_TYPE_DAY = 4;
|
||||
|
||||
private static final String[] WEEK_DAYS = {"星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"};
|
||||
|
||||
private static final SimpleDateFormat FORMATTER = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
private static final SimpleDateFormat FORMATTER2 = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
|
||||
private static final SimpleDateFormat FORMATTER_SERIAL = new SimpleDateFormat("yyyyMMddHHmmss");
|
||||
private static final SimpleDateFormat FORMATTER_SHORT = new SimpleDateFormat("yyyy-MM-dd");
|
||||
private static final SimpleDateFormat FORMATTER_SHORT_GMT = new SimpleDateFormat("yyyy-MM-dd");
|
||||
private static final SimpleDateFormat FORMATTER_SHORT_SLASH = new SimpleDateFormat("yyyy/MM/dd");
|
||||
private static final SimpleDateFormat FORMATTER_SHORT_SERIAL = new SimpleDateFormat("yyyyMMdd");
|
||||
private static final SimpleDateFormat FORMATTER_MIDDLE = new SimpleDateFormat("yyyy-MM-dd HH:mm");
|
||||
private static final SimpleDateFormat FORMATTER_LONG = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS");
|
||||
private static final SimpleDateFormat FORMATTER_NUMBER = new SimpleDateFormat("yyMMddHHmmss");
|
||||
private static final SimpleDateFormat FORMATTER_YEAR = new SimpleDateFormat("yyyy");
|
||||
private static final SimpleDateFormat FORMATTER_MONTH = new SimpleDateFormat("MM");
|
||||
private static final SimpleDateFormat FORMATTER_DAY = new SimpleDateFormat("dd");
|
||||
private static final SimpleDateFormat FORMATTER_YEAR_MONTH = new SimpleDateFormat("yyyy-MM");
|
||||
private static final SimpleDateFormat FORMATTER_YEAR_MONTH_SERIAL = new SimpleDateFormat("yyyyMM");
|
||||
|
||||
public static Date toDate(LocalDate localDate) {
|
||||
if (localDate == null) return null;
|
||||
|
||||
return Date.from(localDate.atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
|
||||
}
|
||||
|
||||
public static Date toDate(LocalDateTime localDateTime)
|
||||
{
|
||||
if (localDateTime == null) return null;
|
||||
|
||||
return Date.from(localDateTime.atZone(ZoneId.systemDefault()).toInstant());
|
||||
}
|
||||
|
||||
//Date -> LocalDate
|
||||
public static LocalDate toLocalDate(Date date)
|
||||
{
|
||||
if (date == null) return null;
|
||||
|
||||
return Instant.ofEpochMilli(date.getTime()).atZone(ZoneId.systemDefault()).toLocalDate();
|
||||
}
|
||||
|
||||
//Date -> LocalDateTime
|
||||
public static LocalDateTime toLocalDateTime(Date date)
|
||||
{
|
||||
if (date == null) return null;
|
||||
|
||||
return Instant.ofEpochMilli(date.getTime()).atZone(ZoneId.systemDefault()).toLocalDateTime();
|
||||
}
|
||||
|
||||
public static Date parseDate(String str)
|
||||
{
|
||||
str = StringUtil.toString(str);
|
||||
if (!str.equals(""))
|
||||
{
|
||||
try
|
||||
{
|
||||
return FORMATTER.parse(str);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.printStackTrace();
|
||||
return parseDateShort(str);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static Date parseDateShort(String str)
|
||||
{
|
||||
str = StringUtil.toString(str);
|
||||
if (!str.equals(""))
|
||||
{
|
||||
try
|
||||
{
|
||||
return FORMATTER_SHORT.parse(str);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static Date parseDateLong(String str)
|
||||
{
|
||||
str = StringUtil.toString(str);
|
||||
if (!str.equals(""))
|
||||
{
|
||||
try
|
||||
{
|
||||
return FORMATTER_LONG.parse(str);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static Date parseDateYearMonth(String str)
|
||||
{
|
||||
str = StringUtil.toString(str);
|
||||
if (!str.equals(""))
|
||||
{
|
||||
try
|
||||
{
|
||||
return FORMATTER_YEAR_MONTH.parse(str);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String formatDate(Date date)
|
||||
{
|
||||
if (date != null)
|
||||
{
|
||||
return FORMATTER.format(date);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String formatDate2(Date date)
|
||||
{
|
||||
if (date != null)
|
||||
{
|
||||
return FORMATTER2.format(date);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static String formatDateSerial(Date date)
|
||||
{
|
||||
if (date != null)
|
||||
{
|
||||
return FORMATTER_SERIAL.format(date);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String formatDateShort(Date date)
|
||||
{
|
||||
if (date != null)
|
||||
{
|
||||
return FORMATTER_SHORT.format(date);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String formatDateShortSlash(Date date)
|
||||
{
|
||||
if (date != null)
|
||||
{
|
||||
return FORMATTER_SHORT_SLASH.format(date);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String formatDateShortSerial(Date date)
|
||||
{
|
||||
if (date != null)
|
||||
{
|
||||
return FORMATTER_SHORT_SERIAL.format(date);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String formatDateMiddle(Date date)
|
||||
{
|
||||
if (date != null)
|
||||
{
|
||||
return FORMATTER_MIDDLE.format(date);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String formatDateLong(Date date)
|
||||
{
|
||||
if (date != null)
|
||||
{
|
||||
return FORMATTER_LONG.format(date);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String formatDateNumber(Date date)
|
||||
{
|
||||
if (date != null)
|
||||
{
|
||||
return FORMATTER_NUMBER.format(date);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String formatDateYear(Date date)
|
||||
{
|
||||
if (date != null)
|
||||
{
|
||||
return FORMATTER_YEAR.format(date);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String formatDateMonth(Date date)
|
||||
{
|
||||
if (date != null)
|
||||
{
|
||||
return FORMATTER_MONTH.format(date);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String formatDateDay(Date date)
|
||||
{
|
||||
if (date != null)
|
||||
{
|
||||
return FORMATTER_DAY.format(date);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String formatDateYearMonth(Date date)
|
||||
{
|
||||
if (date != null)
|
||||
{
|
||||
return FORMATTER_YEAR_MONTH.format(date);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String formatDateYearMonthSerial(Date date)
|
||||
{
|
||||
if (date != null)
|
||||
{
|
||||
return FORMATTER_YEAR_MONTH_SERIAL.format(date);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String formatGMTShort()
|
||||
{
|
||||
Calendar calendar = Calendar.getInstance(new SimpleTimeZone(0, "GMT"));
|
||||
FORMATTER_SHORT_GMT.setCalendar(calendar);
|
||||
return FORMATTER_SHORT_GMT.format(new Date());
|
||||
}
|
||||
|
||||
public static String formatGMTShort(Date date)
|
||||
{
|
||||
Calendar calendar = Calendar.getInstance(new SimpleTimeZone(0, "GMT"));
|
||||
FORMATTER_SHORT_GMT.setCalendar(calendar);
|
||||
return FORMATTER_SHORT_GMT.format(date);
|
||||
}
|
||||
|
||||
public static String formatTime(long seconds)
|
||||
{
|
||||
String result = "00:00";
|
||||
if (seconds > 0)
|
||||
{
|
||||
long minute = seconds / 60;
|
||||
if (minute < 60)
|
||||
{
|
||||
long second = seconds % 60;
|
||||
result = formatterTime(minute) + ":" + formatterTime(second);
|
||||
}
|
||||
else
|
||||
{
|
||||
long hour = minute / 60;
|
||||
if (hour <= 99)
|
||||
{
|
||||
minute = minute % 60;
|
||||
long second = seconds - hour * 3600 - minute * 60;
|
||||
result = formatterTime(hour) + ":" + formatterTime(minute) + ":" + formatterTime(second);
|
||||
}
|
||||
else
|
||||
{
|
||||
result = "99:59:59";
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
private static String formatterTime(long time)
|
||||
{
|
||||
String result = null;
|
||||
if ((time >= 0) && (time < 10))
|
||||
{
|
||||
result = "0" + Long.toString(time);
|
||||
}
|
||||
else
|
||||
{
|
||||
result = time + "";
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public static boolean largeThan(Date date)
|
||||
{
|
||||
return date.compareTo(new Date()) > 0;
|
||||
}
|
||||
|
||||
public static boolean largeThan(Date date1, Date date2)
|
||||
{
|
||||
return date1.compareTo(date2) > 0;
|
||||
}
|
||||
|
||||
public static boolean largeEqual(Date date)
|
||||
{
|
||||
return date.compareTo(new Date()) >= 0;
|
||||
}
|
||||
|
||||
public static boolean largeEqual(Date date1, Date date2)
|
||||
{
|
||||
return date1.compareTo(date2) >= 0;
|
||||
}
|
||||
|
||||
public static boolean lessThan(Date date)
|
||||
{
|
||||
return date.compareTo(new Date()) < 0;
|
||||
}
|
||||
|
||||
public static boolean lessThan(Date date1, Date date2)
|
||||
{
|
||||
return date1.compareTo(date2) < 0;
|
||||
}
|
||||
|
||||
public static boolean lessEqual(Date date)
|
||||
{
|
||||
return date.compareTo(new Date()) <= 0;
|
||||
}
|
||||
|
||||
public static boolean lessEqual(Date date1, Date date2)
|
||||
{
|
||||
return date1.compareTo(date2) <= 0;
|
||||
}
|
||||
|
||||
public static Date getCurrentDate()
|
||||
{
|
||||
return new Date();
|
||||
}
|
||||
|
||||
public static Date getBeginDateByDay()
|
||||
{
|
||||
return getBeginDateByDay(new Date());
|
||||
}
|
||||
|
||||
public static Date getBeginDateByDay(Date date)
|
||||
{
|
||||
if (date != null)
|
||||
{
|
||||
String _date = formatDateShort(date);
|
||||
String beginDate = _date.substring(0, 10) + " 00:00:00";
|
||||
return parseDate(beginDate);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static Date getBeginDateByWeek()
|
||||
{
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
int dayOfWeek = calendar.get(Calendar.DAY_OF_WEEK) - 2;
|
||||
calendar.add(Calendar.DATE, - dayOfWeek);
|
||||
|
||||
return getBeginDateByDay(calendar.getTime());
|
||||
}
|
||||
|
||||
public static Date getBeginDateByMonth()
|
||||
{
|
||||
return getBeginDateByMonth(null, 0);
|
||||
}
|
||||
|
||||
public static Date getBeginDateByMonth(Date date)
|
||||
{
|
||||
return getBeginDateByMonth(date, 0);
|
||||
}
|
||||
|
||||
public static Date getBeginDateByMonth(int count)
|
||||
{
|
||||
return getBeginDateByMonth(null, count);
|
||||
}
|
||||
|
||||
public static Date getBeginDateByMonth(Date date, int count)
|
||||
{
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
if (date != null)
|
||||
{
|
||||
calendar.setTime(date);
|
||||
}
|
||||
calendar.add(Calendar.MONTH, count);
|
||||
calendar.set(Calendar.DAY_OF_MONTH, 1);
|
||||
|
||||
return getBeginDateByDay(calendar.getTime());
|
||||
}
|
||||
|
||||
public static Date getEndDateByDay()
|
||||
{
|
||||
return getEndDateByDay(new Date());
|
||||
}
|
||||
|
||||
public static Date getEndDateByDay(Date date)
|
||||
{
|
||||
if (date != null)
|
||||
{
|
||||
String _date = formatDateShort(date);
|
||||
String endDate = _date.substring(0, 10) + " 23:59:59";
|
||||
return parseDate(endDate);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static Date getEndDateByWeek()
|
||||
{
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
int dayOfWeek = calendar.get(Calendar.DAY_OF_WEEK) - 2;
|
||||
calendar.add(Calendar.DATE, -dayOfWeek);
|
||||
calendar.add(Calendar.DATE, 6);
|
||||
|
||||
return getEndDateByDay(calendar.getTime());
|
||||
}
|
||||
|
||||
public static Date getEndDateByMonth()
|
||||
{
|
||||
return getEndDateByMonth(null, 0);
|
||||
}
|
||||
|
||||
public static Date getEndDateByMonth(Date date)
|
||||
{
|
||||
return getEndDateByMonth(date, 0);
|
||||
}
|
||||
|
||||
public static Date getEndDateByMonth(int count)
|
||||
{
|
||||
return getEndDateByMonth(null, count);
|
||||
}
|
||||
|
||||
public static Date getEndDateByMonth(Date date, int count)
|
||||
{
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
if (date != null)
|
||||
{
|
||||
calendar.setTime(date);
|
||||
}
|
||||
calendar.add(Calendar.MONTH, count);
|
||||
calendar.set(Calendar.DAY_OF_MONTH, calendar.getActualMaximum(Calendar.DAY_OF_MONTH));
|
||||
|
||||
return getEndDateByDay(calendar.getTime());
|
||||
}
|
||||
|
||||
public static Date getDateByHour(Date date, int count)
|
||||
{
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.setTime(date);
|
||||
calendar.add(Calendar.HOUR, count);
|
||||
return calendar.getTime();
|
||||
}
|
||||
|
||||
public static Date getDateByDay(Date date, int count)
|
||||
{
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.setTime(date);
|
||||
calendar.add(Calendar.DAY_OF_MONTH, count);
|
||||
return calendar.getTime();
|
||||
}
|
||||
|
||||
public static Date getDateByWeek(Date date, int count)
|
||||
{
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.setTime(date);
|
||||
calendar.add(Calendar.WEEK_OF_YEAR, count);
|
||||
return calendar.getTime();
|
||||
}
|
||||
|
||||
public static Date getDateByMonth(Date date, int count)
|
||||
{
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.setTime(date);
|
||||
calendar.add(Calendar.MONTH, count);
|
||||
return calendar.getTime();
|
||||
}
|
||||
|
||||
public static Date getDateByYear(Date date, int count)
|
||||
{
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.setTime(date);
|
||||
calendar.add(Calendar.YEAR, count);
|
||||
return calendar.getTime();
|
||||
}
|
||||
|
||||
public static long getTimeInMillis(String str)
|
||||
{
|
||||
return getTimeInMillis(parseDate(str));
|
||||
}
|
||||
|
||||
public static long getTimeInMillis(Date date)
|
||||
{
|
||||
if (date != null)
|
||||
{
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.setTime(date);
|
||||
return calendar.getTimeInMillis();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static long getTimestamp()
|
||||
{
|
||||
return System.currentTimeMillis() / 1000;
|
||||
}
|
||||
|
||||
public static long getIntervalTime(Date beginDate, Date endDate)
|
||||
{
|
||||
return getIntervalTime(beginDate, endDate, DATE_TYPE_MILLISECOND);
|
||||
}
|
||||
|
||||
public static long getIntervalTime(Date beginDate, short dateType)
|
||||
{
|
||||
return getIntervalTime(beginDate, new Date(), dateType);
|
||||
}
|
||||
|
||||
public static long getIntervalTime(Date beginDate, Date endDate, short dateType)
|
||||
{
|
||||
long times = endDate.getTime() - beginDate.getTime();
|
||||
if (dateType == DATE_TYPE_SECOND)
|
||||
{
|
||||
return times / 1000;
|
||||
}
|
||||
if (dateType == DATE_TYPE_MINUTE)
|
||||
{
|
||||
return times / 1000 / 60;
|
||||
}
|
||||
else if (dateType == DATE_TYPE_HOUR)
|
||||
{
|
||||
return times / 1000 / 60 / 60;
|
||||
}
|
||||
else if (dateType == DATE_TYPE_DAY)
|
||||
{
|
||||
return times / 1000 / 60 / 60 / 24;
|
||||
}
|
||||
else
|
||||
{
|
||||
return times;
|
||||
}
|
||||
}
|
||||
|
||||
public static List<Date> getIntervalDates(Date beginDate, Date endDate)
|
||||
{
|
||||
List<Date> dates = new ArrayList<Date>();
|
||||
Calendar startCalendar = Calendar.getInstance();
|
||||
startCalendar.setTime(beginDate);
|
||||
|
||||
Calendar endCalendar = Calendar.getInstance();
|
||||
endCalendar.setTime(endDate);
|
||||
|
||||
while (startCalendar.before(endCalendar) || startCalendar.equals(endCalendar))
|
||||
{
|
||||
dates.add(startCalendar.getTime());
|
||||
startCalendar.add(Calendar.DAY_OF_YEAR, 1);
|
||||
}
|
||||
return dates;
|
||||
}
|
||||
|
||||
public static String getWeekDay(Date date)
|
||||
{
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.setTime(date);
|
||||
int index = calendar.get(Calendar.DAY_OF_WEEK) - 1;
|
||||
if (index < 0)
|
||||
{
|
||||
index = 0;
|
||||
}
|
||||
return WEEK_DAYS[index];
|
||||
}
|
||||
|
||||
public static long getMonthDayCount(Date date)
|
||||
{
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.setTime(date);
|
||||
|
||||
return calendar.getActualMaximum(Calendar.DAY_OF_MONTH);
|
||||
}
|
||||
|
||||
public static String parseDiff(Date begin, Date end)
|
||||
{
|
||||
long diff = end.getTime() - begin.getTime();//这样得到的差值是毫秒级别
|
||||
long days = diff / (1000 * 60 * 60 * 24);
|
||||
|
||||
long hours = (diff-days*(1000 * 60 * 60 * 24))/(1000* 60 * 60);
|
||||
long minutes = (diff-days*(1000 * 60 * 60 * 24)-hours*(1000* 60 * 60))/(1000* 60);
|
||||
long seconds = (diff-days*(1000 * 60 * 60 * 24)-hours*(1000* 60 * 60)-minutes*(1000*60))/1000;
|
||||
|
||||
return days+"天"+hours+"小时"+minutes+"分"+seconds+"秒";
|
||||
}
|
||||
|
||||
public static Date nowDate(){
|
||||
Date date = new Date();
|
||||
/*LocalDateTime now = LocalDateTime.now(Clock.system(ZoneId.of("UTC")));
|
||||
DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
||||
String strDate = df.format(now);
|
||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
try {
|
||||
date = simpleDateFormat.parse( strDate );
|
||||
} catch (ParseException e) {
|
||||
e.printStackTrace();
|
||||
}*/
|
||||
return date;
|
||||
}
|
||||
/***
|
||||
* 判断两日期是否同一天
|
||||
* @param d1
|
||||
* @param d2
|
||||
* @return
|
||||
*/
|
||||
public static boolean sameDate(Date d1, Date d2) {
|
||||
LocalDate localDate1 = ZonedDateTime.ofInstant(d1.toInstant(), ZoneId.systemDefault()).toLocalDate();
|
||||
LocalDate localDate2 = ZonedDateTime.ofInstant(d2.toInstant(), ZoneId.systemDefault()).toLocalDate();
|
||||
return localDate1.isEqual(localDate2);
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断两日期是否同一周
|
||||
*
|
||||
* @param date1
|
||||
* @param date2
|
||||
* @return
|
||||
*/
|
||||
public static boolean sameWeek(Date date1, Date date2) {
|
||||
Calendar cal1 = Calendar.getInstance();
|
||||
Calendar cal2 = Calendar.getInstance();
|
||||
cal1.setTime(date1);
|
||||
cal2.setTime(date2);
|
||||
int subYear = cal1.get(Calendar.YEAR) - cal2.get(Calendar.YEAR);
|
||||
//subYear==0,说明是同一年
|
||||
if (subYear == 0) {
|
||||
if (cal1.get(Calendar.WEEK_OF_YEAR) == cal2.get(Calendar.WEEK_OF_YEAR)) {
|
||||
return true;
|
||||
}
|
||||
} else if (subYear == 1 && cal2.get(Calendar.MONTH) == 11) {
|
||||
if (cal1.get(Calendar.WEEK_OF_YEAR) == cal2.get(Calendar.WEEK_OF_YEAR))
|
||||
return true;
|
||||
} else if (subYear == -1 && cal1.get(Calendar.MONTH) == 11) {
|
||||
if (cal1.get(Calendar.WEEK_OF_YEAR) == cal2.get(Calendar.WEEK_OF_YEAR))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断两日期是否同一月
|
||||
*
|
||||
* @param date1
|
||||
* @param date2
|
||||
* @return
|
||||
*/
|
||||
public static boolean sameMonth(Date date1, Date date2) {
|
||||
Calendar cal1 = Calendar.getInstance();
|
||||
Calendar cal2 = Calendar.getInstance();
|
||||
cal1.setTime(date1);
|
||||
cal2.setTime(date2);
|
||||
|
||||
int year1 = cal1.get(Calendar.YEAR);
|
||||
int year2 = cal2.get(Calendar.YEAR);
|
||||
int month1 = cal1.get(Calendar.MONTH);
|
||||
int month2 = cal2.get(Calendar.MONTH);
|
||||
|
||||
String m1 = "" + year1 + month1;
|
||||
String m2 = "" + year2 + month2;
|
||||
|
||||
return m1.equals(m2);
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断两日期是否同一年
|
||||
*
|
||||
* @param date1
|
||||
* @param date2
|
||||
* @return
|
||||
*/
|
||||
public static boolean sameYear(Date date1, Date date2) {
|
||||
Calendar cal1 = Calendar.getInstance();
|
||||
Calendar cal2 = Calendar.getInstance();
|
||||
cal1.setTime(date1);
|
||||
cal2.setTime(date2);
|
||||
return cal1.get(Calendar.YEAR) == cal2.get(Calendar.YEAR);
|
||||
}
|
||||
public static Timestamp getGmtTime() {
|
||||
SimpleDateFormat gmtDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:sss.SSS");
|
||||
gmtDateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
|
||||
return Timestamp.valueOf(gmtDateFormat.format(new Date()));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,70 @@
|
||||
package com.foreverwin.mom.pms.common;
|
||||
|
||||
public class HandleUtil {
|
||||
public static String buildResourceHandle(String site, String resource) {
|
||||
return ConstantUtil.BO_RESOURCE + site + "," + resource;
|
||||
}
|
||||
|
||||
public static String buildResourceTypeHandle(String site, String resource) {
|
||||
return ConstantUtil.BO_RESOURCE_TYPE + site + "," + resource;
|
||||
}
|
||||
|
||||
public static String buildResourceTypeResourceHandle(String resourceTypeBo, String resourceBo) {
|
||||
return ConstantUtil.BO_RESOURCE_TYPE_RESOURCE + "," + resourceTypeBo + "," + resourceBo;
|
||||
}
|
||||
|
||||
public static String buildStatusHandle(String site, String status) {
|
||||
return ConstantUtil.BO_STATUS + site + "," + status;
|
||||
}
|
||||
|
||||
public static String buildBrokenHandle(String site, String broken) {
|
||||
return ConstantUtil.BO_BROKEN + site + "," + broken;
|
||||
}
|
||||
|
||||
public static String buildSpareGroupHandle(String site, String spareGroup) {
|
||||
return ConstantUtil.BO_SPARE_GROUP + site + "," + spareGroup;
|
||||
}
|
||||
|
||||
public static String buildSpareHandle(String site, String spare) {
|
||||
return ConstantUtil.BO_SPARE + site + "," + spare;
|
||||
}
|
||||
|
||||
public static String buildSpareGroupSpareHandle(String spareGroupBo, String spareBo) {
|
||||
return ConstantUtil.BO_SPARE_GROUP_SPARE + spareGroupBo + "," + spareBo;
|
||||
}
|
||||
|
||||
public static String buildConfigFieldsHandle(String fieldType, String fieldValue) {
|
||||
return fieldType + "," + fieldValue;
|
||||
}
|
||||
|
||||
public static String buildUserHandle(String site, String user) {
|
||||
return ConstantUtil.BO_USER + site + "," + user;
|
||||
}
|
||||
|
||||
public static String buildMaintainInspectListHandle(String site, String listType, String listNo, String listVersion) {
|
||||
return ConstantUtil.BO_MAINTAIN_INSP_LIST + site + "," + listType + "," + listNo + "," + listVersion;
|
||||
}
|
||||
|
||||
public static String buildMaintainInspectListItemHandle(String site, String maintainInspectListHandle, String itemSeq, String itemNo) {
|
||||
return ConstantUtil.BO_MAINTAIN_INSP_LIST_ITEM + site + "," + maintainInspectListHandle + "," + itemSeq + "," + itemNo;
|
||||
}
|
||||
|
||||
public static String getPart(String handle, int position) {
|
||||
String prefix = "";
|
||||
int index = StringUtil.toString(handle).indexOf(":");
|
||||
if (index > -1) prefix = StringUtil.toString(handle).substring(0, index + 1);
|
||||
//----------------------------------------------------------------------------------------------------------------------------------
|
||||
String handleParts = handle.replace(prefix, "");
|
||||
String[] parts = handleParts.split(",");
|
||||
//----------------------------------------------------------------------------------------------------------------------------------
|
||||
if (position >= parts.length) {
|
||||
return "";
|
||||
} else {
|
||||
return parts[position];
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println(HandleUtil.getPart("ResourceTypeBO:B20,EQTYPE01", 1));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,410 @@
|
||||
package com.foreverwin.mom.pms.common;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.text.DecimalFormat;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.Random;
|
||||
import java.util.Set;
|
||||
import java.util.TreeSet;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
public class NumberUtil
|
||||
{
|
||||
public static final double EARTH_RADIUS = 6378.137;
|
||||
|
||||
public static final DecimalFormat FORMATTER_DECIMAL = new DecimalFormat("0.00");
|
||||
public static final DecimalFormat FORMATTER_DECIMAL_4 = new DecimalFormat("0.0000");
|
||||
public static final DecimalFormat FORMATTER_DECIMAL_5 = new DecimalFormat("0.00000");
|
||||
public static final DecimalFormat FORMATTER_DECIMAL_7 = new DecimalFormat("0.0000000");
|
||||
public static final DecimalFormat FORMATTER_DECIMAL_SHORT = new DecimalFormat("0.0");
|
||||
public static final DecimalFormat FORMATTER_DECIMAL_LOCATION = new DecimalFormat("0.000000000000000");
|
||||
|
||||
public static double add(Object obj1, Object obj2)
|
||||
{
|
||||
return add(obj1, obj2, FORMATTER_DECIMAL);
|
||||
}
|
||||
|
||||
public static double add(Object obj1, Object obj2, DecimalFormat formatter)
|
||||
{
|
||||
BigDecimal decimal1 = new BigDecimal(toDouble(obj1));
|
||||
BigDecimal decimal2 = new BigDecimal(toDouble(obj2));
|
||||
double result = decimal1.add(decimal2).doubleValue();
|
||||
return Double.valueOf(formatter.format(result)).doubleValue();
|
||||
}
|
||||
|
||||
public static double subtract(Object obj1, Object obj2)
|
||||
{
|
||||
return subtract(obj1, obj2, FORMATTER_DECIMAL);
|
||||
}
|
||||
|
||||
public static double subtract(Object obj1, Object obj2, DecimalFormat formatter)
|
||||
{
|
||||
BigDecimal decimal1 = new BigDecimal(toDouble(obj1));
|
||||
BigDecimal decimal2 = new BigDecimal(toDouble(obj2));
|
||||
double result = decimal1.subtract(decimal2).doubleValue();
|
||||
return Double.valueOf(formatter.format(result)).doubleValue();
|
||||
}
|
||||
|
||||
public static double multiply(Object obj1, Object obj2)
|
||||
{
|
||||
return multiply(obj1, obj2, FORMATTER_DECIMAL);
|
||||
}
|
||||
|
||||
public static double multiply(Object obj1, Object obj2, DecimalFormat formatter)
|
||||
{
|
||||
BigDecimal decimal1 = new BigDecimal(toDouble(obj1));
|
||||
BigDecimal decimal2 = new BigDecimal(toDouble(obj2));
|
||||
double result = decimal1.multiply(decimal2).doubleValue();
|
||||
return Double.valueOf(formatter.format(result)).doubleValue();
|
||||
}
|
||||
|
||||
public static double divide(Object obj1, Object obj2)
|
||||
{
|
||||
return divide(obj1, obj2, FORMATTER_DECIMAL);
|
||||
}
|
||||
|
||||
public static double divide(Object obj1, Object obj2, DecimalFormat formatter)
|
||||
{
|
||||
double result = 0.0D;
|
||||
BigDecimal decimal1 = new BigDecimal(toDouble(obj1));
|
||||
BigDecimal decimal2 = new BigDecimal(toDouble(obj2));
|
||||
if (toDouble(decimal2) > 0.0D)
|
||||
{
|
||||
result = decimal1.divide(decimal2, 3, 1).doubleValue();
|
||||
}
|
||||
return Double.valueOf(formatter.format(result)).doubleValue();
|
||||
}
|
||||
|
||||
public static double divide(Object obj1, Object obj2, DecimalFormat formatter, int scale)
|
||||
{
|
||||
double result = 0.0D;
|
||||
BigDecimal decimal1 = new BigDecimal(toDouble(obj1));
|
||||
BigDecimal decimal2 = new BigDecimal(toDouble(obj2));
|
||||
if (toDouble(decimal2) > 0.0D)
|
||||
{
|
||||
result = decimal1.divide(decimal2, scale, 1).doubleValue();
|
||||
}
|
||||
return Double.valueOf(formatter.format(result)).doubleValue();
|
||||
}
|
||||
|
||||
public static long round(Object obj)
|
||||
{
|
||||
BigDecimal decimal = new BigDecimal(toDouble(obj));
|
||||
return decimal.setScale(0, BigDecimal.ROUND_HALF_UP).longValue();
|
||||
}
|
||||
|
||||
public static double round2(Object obj)
|
||||
{
|
||||
BigDecimal decimal = new BigDecimal(toDouble(obj));
|
||||
return decimal.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
|
||||
}
|
||||
|
||||
public static int random(int length)
|
||||
{
|
||||
double number1 = Math.random();
|
||||
if (number1 < 0.1)
|
||||
{
|
||||
number1 = number1 + 0.1;
|
||||
}
|
||||
|
||||
int number2 = 1;
|
||||
for (int i = 0; i < length; i++)
|
||||
{
|
||||
number2 = number2 * 10;
|
||||
}
|
||||
|
||||
return (int)((number1 * number2));
|
||||
}
|
||||
|
||||
public static Set<Integer> random(int number, int length)
|
||||
{
|
||||
int size = length;
|
||||
if (length > number)
|
||||
{
|
||||
size = number;
|
||||
}
|
||||
|
||||
Random random = new Random();
|
||||
Set<Integer> numbers = new TreeSet<Integer>();
|
||||
while (numbers.size() < size)
|
||||
{
|
||||
numbers.add(Integer.valueOf(random.nextInt(number)));
|
||||
}
|
||||
return numbers;
|
||||
}
|
||||
|
||||
public static double random(double minNumber, double maxNumber)
|
||||
{
|
||||
double randomNumber = new Random().nextDouble() * (maxNumber - minNumber) + minNumber;
|
||||
return formatDouble(randomNumber, 2);
|
||||
}
|
||||
|
||||
public static double formatDouble(Object obj, int length)
|
||||
{
|
||||
String formatter = "0.0";
|
||||
for (int i = 1; i < length; i++)
|
||||
{
|
||||
formatter = formatter + "0";
|
||||
}
|
||||
|
||||
DecimalFormat decimalFormat = new DecimalFormat(formatter);
|
||||
return Double.valueOf(decimalFormat.format(obj)).doubleValue();
|
||||
}
|
||||
|
||||
public static short toShort(Object obj)
|
||||
{
|
||||
String str = StringUtil.toString(obj);
|
||||
if (!str.equals(""))
|
||||
{
|
||||
try
|
||||
{
|
||||
return Short.parseShort(str);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int toInt(Object obj)
|
||||
{
|
||||
String str = StringUtil.toString(obj);
|
||||
if (!str.equals(""))
|
||||
{
|
||||
try
|
||||
{
|
||||
return Integer.parseInt(str);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int toInt1(Object obj)
|
||||
{
|
||||
String str = StringUtil.toString(obj);
|
||||
if (!str.equals(""))
|
||||
{
|
||||
try
|
||||
{
|
||||
return Integer.parseInt(str);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
public static int toPage(Object obj)
|
||||
{
|
||||
String str = StringUtil.toString(obj);
|
||||
if (!str.equals(""))
|
||||
{
|
||||
try
|
||||
{
|
||||
int page = Integer.parseInt(str);
|
||||
if (page > 0)
|
||||
{
|
||||
return page;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
public static long toLong(Object obj)
|
||||
{
|
||||
String str = StringUtil.toString(obj);
|
||||
if (!str.equals(""))
|
||||
{
|
||||
try
|
||||
{
|
||||
return Long.parseLong(str);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
//ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static float toFloat(Object obj)
|
||||
{
|
||||
String str = StringUtil.toString(obj);
|
||||
if (!str.equals(""))
|
||||
{
|
||||
try
|
||||
{
|
||||
return Float.parseFloat(str);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static double toDouble(Object obj)
|
||||
{
|
||||
String str = StringUtil.toString(obj);
|
||||
if (!str.equals(""))
|
||||
{
|
||||
try
|
||||
{
|
||||
return Double.parseDouble(str);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int[] toIntArray(char[] chars)
|
||||
{
|
||||
int i = 0;
|
||||
int[] numbers = new int[chars.length];
|
||||
for (char _char : chars)
|
||||
{
|
||||
numbers[i++] = Integer.parseInt(String.valueOf(_char));
|
||||
}
|
||||
return numbers;
|
||||
}
|
||||
|
||||
public static boolean inIntArray(int number, String numbers)
|
||||
{
|
||||
boolean inFlag = false;
|
||||
String[] _numbers = numbers.split(",");
|
||||
for (String _number : _numbers)
|
||||
{
|
||||
if (number == toInt(_number))
|
||||
{
|
||||
inFlag = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return inFlag;
|
||||
}
|
||||
|
||||
public static boolean isNumber(String str)
|
||||
{
|
||||
if (!StringUtil.toString(str).equals(""))
|
||||
{
|
||||
return str.matches("^[0-9]*$");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static String toPlainString(Object number)
|
||||
{
|
||||
BigDecimal result = new BigDecimal(FORMATTER_DECIMAL.format(number));
|
||||
return result.toPlainString();
|
||||
}
|
||||
|
||||
public static String toPlainString(double number, DecimalFormat formatter)
|
||||
{
|
||||
BigDecimal result = new BigDecimal(formatter.format(number));
|
||||
return result.toPlainString();
|
||||
}
|
||||
|
||||
public static Set<Long> toIds(String str)
|
||||
{
|
||||
Set<Long> ids = new LinkedHashSet<Long>();
|
||||
String[] elements = str.split(",");
|
||||
for (String element : elements)
|
||||
{
|
||||
long id = toLong(element);
|
||||
if (id > 0)
|
||||
{
|
||||
ids.add(id);
|
||||
}
|
||||
}
|
||||
return ids;
|
||||
}
|
||||
|
||||
public static int setBit(int value, int index)
|
||||
{
|
||||
value |= 0x0001 << index;
|
||||
return value;
|
||||
}
|
||||
|
||||
public static int restBit(int value, int index)
|
||||
{
|
||||
value &= ~(0x0001 << index);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static int getBit(int value, int index)
|
||||
{
|
||||
int mark = 0x0001 << index;
|
||||
if ((value & mark) != 0)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static double getMapDistance(double latitude1, double latitude2, double longitude1, double longitude2)
|
||||
{
|
||||
double radLatitude1 = rad(latitude1);
|
||||
double radLatitude2 = rad(latitude2);
|
||||
double latitudeGap = radLatitude1 - radLatitude2;
|
||||
double longitudeGap = rad(longitude1) - rad(longitude2);
|
||||
|
||||
double result = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(latitudeGap / 2), 2) + Math.cos(radLatitude1) * Math.cos(radLatitude2) * Math.pow(Math.sin(longitudeGap / 2), 2)));
|
||||
result = result * EARTH_RADIUS;
|
||||
result = Math.round(result * 10000D) / 10000D;
|
||||
result = result * 1000;
|
||||
return result;
|
||||
}
|
||||
|
||||
private static double rad(double number)
|
||||
{
|
||||
return number * Math.PI / 180.0;
|
||||
}
|
||||
|
||||
public static int getIntMax(int length)
|
||||
{
|
||||
return (int)toLong(length);
|
||||
}
|
||||
|
||||
public static long getLongMax(int length)
|
||||
{
|
||||
String temp = "";
|
||||
for (int i = 0; i<length; i++)
|
||||
{
|
||||
temp = temp + 9;
|
||||
}
|
||||
return toLong(temp);
|
||||
}
|
||||
|
||||
public static boolean isPositiveInteger(String str)
|
||||
{
|
||||
if (str == null || "".equals(str.trim())) return false;
|
||||
|
||||
Pattern pattern = Pattern.compile("[0-9]*");
|
||||
Matcher matcher = pattern.matcher(str);
|
||||
|
||||
return matcher.matches();
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,473 @@
|
||||
package com.foreverwin.mom.pms.common;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Random;
|
||||
import java.util.Set;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
public class StringUtil
|
||||
{
|
||||
public static final String SPLITOR_COMMON = "_#,#_";
|
||||
public static final String NUMBER_CHARS = "0123456789";
|
||||
public static final String UPPER_ALPHA_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
public static final String UPPER_ALPHA_NUMBER_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
public static final String ALPHA_NUMBER_CHARS = "0123456789abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
|
||||
private static final String[] CHINESE_MONEY_NUMBERS = {"零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"};
|
||||
private static final String[] CHINESE_MONEY_INTEGER = {"元", "拾", "佰", "仟", "万", "拾", "佰", "仟", "亿", "拾", "佰", "仟", "万", "拾", "佰", "仟"};
|
||||
private static final String[] CHINESE_MONEY_DECIMAL = {"角", "分", "厘"};
|
||||
|
||||
private static char[] QUID_ALPHA_NUMBER = {
|
||||
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
|
||||
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J',
|
||||
'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T',
|
||||
'U', 'V', 'W', 'X', 'Y', 'Z' };
|
||||
|
||||
private static char[] QUID_ALPHA = {
|
||||
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J',
|
||||
'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T',
|
||||
'U', 'V', 'W', 'X', 'Y', 'Z' };
|
||||
|
||||
public static String createQUID()
|
||||
{
|
||||
return createAlphaNumericText(32);
|
||||
}
|
||||
|
||||
public static String createAlphaNumericText(int length)
|
||||
{
|
||||
Random random = new Random();
|
||||
StringBuilder str_builer = new StringBuilder();
|
||||
char c = '\000';
|
||||
|
||||
c = QUID_ALPHA[random.nextInt(QUID_ALPHA.length)];
|
||||
str_builer.append(c);
|
||||
|
||||
for (int i = 0; i < length - 1; i++)
|
||||
{
|
||||
c = QUID_ALPHA_NUMBER[random.nextInt(QUID_ALPHA_NUMBER.length)];
|
||||
str_builer.append(c);
|
||||
}
|
||||
|
||||
return str_builer.toString();
|
||||
}
|
||||
|
||||
public static String append(String str, String appender, int position)
|
||||
{
|
||||
if (toString(str).equals(""))
|
||||
{
|
||||
return appender;
|
||||
}
|
||||
else if (toString(appender).equals(""))
|
||||
{
|
||||
return str;
|
||||
}
|
||||
else if (position <= 0)
|
||||
{
|
||||
return appender + str;
|
||||
}
|
||||
else if (position > str.length())
|
||||
{
|
||||
return str + appender;
|
||||
}
|
||||
|
||||
String substr1 = str.substring(0, position);
|
||||
String substr2 = str.substring(position, str.length());
|
||||
return substr1 + appender + substr2;
|
||||
}
|
||||
|
||||
public static int indexOf(String str, String substr)
|
||||
{
|
||||
if (!toString(str).equals(""))
|
||||
{
|
||||
return str.indexOf(substr);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
public static int lastIndexOf(String str, String substr)
|
||||
{
|
||||
if (!toString(str).equals(""))
|
||||
{
|
||||
return str.lastIndexOf(substr);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
public static boolean isEmpty(String str)
|
||||
{
|
||||
if (toString(str).equals(""))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static boolean notEmpty(String str)
|
||||
{
|
||||
return !isEmpty(str);
|
||||
}
|
||||
|
||||
public static String random(int length)
|
||||
{
|
||||
return random(length, ALPHA_NUMBER_CHARS);
|
||||
}
|
||||
|
||||
public static String random(int length, String seed)
|
||||
{
|
||||
if (length < 1)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
Random random = new Random();
|
||||
char[] chars = new char[length];
|
||||
char[] letters = seed.toCharArray();
|
||||
for (int i = 0; i < chars.length; i++)
|
||||
{
|
||||
chars[i] = letters[random.nextInt(seed.length())];
|
||||
}
|
||||
return new String(chars);
|
||||
}
|
||||
|
||||
public static String space(String str, char spacer, int slotter)
|
||||
{
|
||||
if (!toString(str).equals(""))
|
||||
{
|
||||
if (str.length() >= slotter)
|
||||
{
|
||||
return str;
|
||||
}
|
||||
else
|
||||
{
|
||||
String result = str;
|
||||
slotter = slotter - str.length();
|
||||
for (int i = 0; i < slotter; i++)
|
||||
{
|
||||
result = spacer + result;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static Map<Integer, String> split(String str)
|
||||
{
|
||||
Map<Integer, String> strs = new HashMap<Integer, String>();
|
||||
if (!toString(str).equals(""))
|
||||
{
|
||||
String[] _strs = str.split(SPLITOR_COMMON);
|
||||
for (int i = 0; i < _strs.length; i++)
|
||||
{
|
||||
strs.put(i, _strs[i]);
|
||||
}
|
||||
}
|
||||
return strs;
|
||||
}
|
||||
|
||||
public static String[] split(String str, String splitter)
|
||||
{
|
||||
if (!toString(str).equals(""))
|
||||
{
|
||||
return str.split(splitter);
|
||||
}
|
||||
return new String[0];
|
||||
}
|
||||
|
||||
public static int splitLength(String str, String splitter)
|
||||
{
|
||||
return split(str, splitter).length;
|
||||
}
|
||||
|
||||
public static String substring(String str, int limit)
|
||||
{
|
||||
if (!toString(str).equals(""))
|
||||
{
|
||||
if (str.length() <= limit)
|
||||
{
|
||||
return str;
|
||||
}
|
||||
else
|
||||
{
|
||||
return str.substring(0, limit) + "...";
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String hide(String str, int headLength, int tailLength)
|
||||
{
|
||||
if (!toString(str).equals(""))
|
||||
{
|
||||
if ((str.length() < headLength) || (str.length() < tailLength))
|
||||
{
|
||||
headLength = 1;
|
||||
tailLength = 1;
|
||||
}
|
||||
|
||||
String head = str.substring(0, headLength);
|
||||
String tail = str.substring(str.length() - tailLength, str.length());
|
||||
return head + "***" + tail;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String filterHtml(String html)
|
||||
{
|
||||
Pattern scriptPattern = Pattern.compile("<[//s]*?script[^>]*?>[//s//S]*?<[//s]*?///[//s]*?script[//s]*?>", 2);
|
||||
Matcher scriptMatcher = scriptPattern.matcher(html);
|
||||
html = scriptMatcher.replaceAll("");
|
||||
|
||||
Pattern cssPattern = Pattern.compile("<[//s]*?style[^>]*?>[//s//S]*?<[//s]*?///[//s]*?style[//s]*?>", 2);
|
||||
Matcher cssMatcher = cssPattern.matcher(html);
|
||||
html = cssMatcher.replaceAll("");
|
||||
|
||||
Pattern htmlPattern1 = Pattern.compile("<[^>]+>", 2);
|
||||
Matcher htmlMatcher1 = htmlPattern1.matcher(html);
|
||||
html = htmlMatcher1.replaceAll("");
|
||||
|
||||
Pattern htmlPattern2 = Pattern.compile("<[^>]+", 2);
|
||||
Matcher htmlMatcher2 = htmlPattern2.matcher(html);
|
||||
html = htmlMatcher2.replaceAll("");
|
||||
return html;
|
||||
}
|
||||
|
||||
public static String wrapHtml(String str)
|
||||
{
|
||||
String result = "";
|
||||
if (!toString(str).equals(""))
|
||||
{
|
||||
for (int i = 0; i < str.length(); i++)
|
||||
{
|
||||
char _char = str.charAt(i);
|
||||
result += _char + "<br/>";
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public static String toString(Object obj)
|
||||
{
|
||||
if (obj != null)
|
||||
{
|
||||
return obj.toString().trim();
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String toUpperCase(Object obj)
|
||||
{
|
||||
return toString(obj).toUpperCase();
|
||||
}
|
||||
|
||||
public static String toLowerCase(Object obj)
|
||||
{
|
||||
return toString(obj).toLowerCase();
|
||||
}
|
||||
|
||||
public static Set<String> toSet(String str)
|
||||
{
|
||||
return toSet(str, ",");
|
||||
}
|
||||
|
||||
public static Set<String> toSet(String str, String split)
|
||||
{
|
||||
Set<String> strings = new LinkedHashSet<String>();
|
||||
if (isEmpty(str)) return strings;
|
||||
|
||||
String[] elements = str.split(",");
|
||||
for (String element : elements)
|
||||
{
|
||||
String string = toString(element);
|
||||
if (!string.equals(""))
|
||||
{
|
||||
strings.add(string);
|
||||
}
|
||||
}
|
||||
return strings;
|
||||
}
|
||||
|
||||
public static List<String> toList(String str)
|
||||
{
|
||||
List<String> list = new ArrayList<String>();
|
||||
String[] elements = str.split(",");
|
||||
for (String element : elements)
|
||||
{
|
||||
String string = toString(element);
|
||||
list.add(string);
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
public static String toChineseMoney(String str)
|
||||
{
|
||||
String integerStr;
|
||||
String decimalStr;
|
||||
str = toString(str);
|
||||
str = str.replaceAll(",", "");
|
||||
if (str.indexOf(".") > 0)
|
||||
{
|
||||
integerStr = str.substring(0, str.indexOf("."));
|
||||
decimalStr = str.substring(str.indexOf(".") + 1);
|
||||
}
|
||||
else if (str.indexOf(".") == 0)
|
||||
{
|
||||
integerStr = "";
|
||||
decimalStr = str.substring(1);
|
||||
}
|
||||
else
|
||||
{
|
||||
integerStr = str;
|
||||
decimalStr = "";
|
||||
}
|
||||
|
||||
if (!integerStr.equals(""))
|
||||
{
|
||||
integerStr = Long.toString(Long.parseLong(integerStr));
|
||||
if (integerStr.equals("0"))
|
||||
{
|
||||
integerStr = "";
|
||||
}
|
||||
}
|
||||
|
||||
if (integerStr.length() > CHINESE_MONEY_INTEGER.length)
|
||||
{
|
||||
return str;
|
||||
}
|
||||
|
||||
int[] integers = new int[integerStr.length()];
|
||||
for (int i = 0; i < integerStr.length(); i++)
|
||||
{
|
||||
integers[i] = Integer.parseInt(integerStr.substring(i, i + 1));
|
||||
}
|
||||
|
||||
boolean isMust5 = false;
|
||||
int length = integerStr.length();
|
||||
if (length > 4)
|
||||
{
|
||||
String subInteger = "";
|
||||
if (length > 8)
|
||||
{
|
||||
subInteger = integerStr.substring(length - 8, length - 4);
|
||||
}
|
||||
else
|
||||
{
|
||||
subInteger = integerStr.substring(0, length - 4);
|
||||
}
|
||||
|
||||
if (Integer.parseInt(subInteger) > 0)
|
||||
{
|
||||
isMust5 = true;
|
||||
}
|
||||
}
|
||||
|
||||
int[] decimals = new int[decimalStr.length()];
|
||||
for (int i = 0; i < decimalStr.length(); i++)
|
||||
{
|
||||
decimals[i] = Integer.parseInt(decimalStr.substring(i, i + 1));
|
||||
}
|
||||
|
||||
StringBuffer chineseInteger = new StringBuffer("");
|
||||
length = integers.length;
|
||||
for (int i = 0; i < length; i++)
|
||||
{
|
||||
String key = "";
|
||||
if (integers[i] == 0)
|
||||
{
|
||||
if ((length - i) == 13)
|
||||
{
|
||||
key = CHINESE_MONEY_INTEGER[4];
|
||||
}
|
||||
else if ((length - i) == 9)
|
||||
{
|
||||
key = CHINESE_MONEY_INTEGER[8];
|
||||
}
|
||||
else if ((length - i) == 5 && isMust5)
|
||||
{
|
||||
key = CHINESE_MONEY_INTEGER[4];
|
||||
}
|
||||
else if ((length - i) == 1)
|
||||
{
|
||||
key = CHINESE_MONEY_INTEGER[0];
|
||||
}
|
||||
|
||||
if ((length - i) > 1 && integers[i + 1] != 0)
|
||||
{
|
||||
key += CHINESE_MONEY_NUMBERS[0];
|
||||
}
|
||||
}
|
||||
|
||||
chineseInteger.append(integers[i] == 0 ? key : (CHINESE_MONEY_NUMBERS[integers[i]] + CHINESE_MONEY_INTEGER[length - i - 1]));
|
||||
}
|
||||
|
||||
StringBuffer chineseDecimal = new StringBuffer("");
|
||||
for (int i = 0; i < decimals.length; i++)
|
||||
{
|
||||
if (i == 3)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
chineseDecimal.append((decimals[i] == 0) ? "" : (CHINESE_MONEY_NUMBERS[decimals[i]] + CHINESE_MONEY_DECIMAL[i]));
|
||||
}
|
||||
|
||||
return chineseInteger.toString() + chineseDecimal.toString();
|
||||
}
|
||||
|
||||
public static boolean toBoolean(Object value)
|
||||
{
|
||||
try {
|
||||
if (value == null) return false;
|
||||
|
||||
return toBoolean(value.toString());
|
||||
}
|
||||
catch (Exception localException)
|
||||
{
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static boolean toBoolean(String str)
|
||||
{
|
||||
try {
|
||||
if (str == null) return false;
|
||||
if (str.equalsIgnoreCase("TRUE")) return true;
|
||||
if (str.equalsIgnoreCase("Y")) return true;
|
||||
if (str.equalsIgnoreCase("YES")) return true;
|
||||
if (Integer.parseInt(str) > 0) return true;
|
||||
}
|
||||
catch (Exception localException)
|
||||
{
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static String leftPad(String s, String padChar, int l)
|
||||
{
|
||||
while (s.length() < l) {
|
||||
s = padChar + s;
|
||||
}
|
||||
return s;
|
||||
}
|
||||
public static String removeSuffix(String str)
|
||||
{
|
||||
int position = str.lastIndexOf(".");
|
||||
if (position > -1)
|
||||
{
|
||||
str = str.substring(0, position);
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
System.out.println(StringUtil.createQUID());
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,45 @@
|
||||
package com.foreverwin.mom.pms.common;
|
||||
|
||||
import java.util.Timer;
|
||||
import java.util.TimerTask;
|
||||
|
||||
public class ThreadUtil
|
||||
{
|
||||
public static void run(final ThreadRunable runnable)
|
||||
{
|
||||
new Thread(runnable).start();
|
||||
}
|
||||
|
||||
public abstract static class ThreadRunable implements Runnable
|
||||
{
|
||||
private long delayMillis;
|
||||
|
||||
public ThreadRunable()
|
||||
{
|
||||
this(0);
|
||||
}
|
||||
|
||||
public ThreadRunable(long delayMillis)
|
||||
{
|
||||
this.delayMillis = delayMillis;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
final Object result = handleRequest();
|
||||
final Timer timer = new Timer();
|
||||
timer.schedule(new TimerTask() {
|
||||
public void run()
|
||||
{
|
||||
timer.cancel();
|
||||
handleResponse(result);
|
||||
}
|
||||
}, delayMillis);
|
||||
}
|
||||
|
||||
public abstract Object handleRequest();
|
||||
|
||||
public abstract void handleResponse(Object result);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class AOITracingDto {
|
||||
@ApiModelProperty("设备")
|
||||
private String resrce;
|
||||
@ApiModelProperty("卷号")
|
||||
private String lotId;
|
||||
|
||||
private String productionEnd;
|
||||
private String productionStart;
|
||||
private String defectType;
|
||||
private String rollLength;
|
||||
private String defectLength;
|
||||
private String defectWide;
|
||||
private String subRollWidth;
|
||||
private String maxBrightness;
|
||||
private String type;
|
||||
private String subLotId;
|
||||
private String resource;
|
||||
private String defectArea;
|
||||
private String defectTime;
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Data
|
||||
public class DayEnergyDto {
|
||||
private String typeId;
|
||||
private String nowDate;
|
||||
private String beforeDate;
|
||||
private String eqNameD;
|
||||
private String eqNameQ;
|
||||
private List<Map<String, Object>> edcList;
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
|
||||
/**
|
||||
* @author zhaofeng_cheng
|
||||
* @date 2024/5/23 10:48
|
||||
* @description 设备数据采集结果返回
|
||||
*/
|
||||
public class EdcInfoDto {
|
||||
|
||||
private String K;
|
||||
private String T;
|
||||
private String V;
|
||||
|
||||
public String getK() {
|
||||
return K;
|
||||
}
|
||||
|
||||
public void setK(String k) {
|
||||
K = k;
|
||||
}
|
||||
|
||||
public String getT() {
|
||||
return T;
|
||||
}
|
||||
|
||||
public void setT(String t) {
|
||||
T = t;
|
||||
}
|
||||
|
||||
public String getV() {
|
||||
return V;
|
||||
}
|
||||
|
||||
public void setV(String v) {
|
||||
V = v;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ElectricEnergyAnalysisDto {
|
||||
@ApiModelProperty("设备")
|
||||
private String typeId;
|
||||
@ApiModelProperty("时间A")
|
||||
private String date;
|
||||
@ApiModelProperty("查询类型")
|
||||
private String type;
|
||||
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
public class ElectricityFlowDto {
|
||||
private String K;
|
||||
private String V_1;
|
||||
private String V_2;
|
||||
|
||||
public String getK() {
|
||||
return K;
|
||||
}
|
||||
|
||||
public void setK(String k) {
|
||||
K = k;
|
||||
}
|
||||
|
||||
public String getV_1() {
|
||||
return V_1;
|
||||
}
|
||||
|
||||
public void setV_1(String v_1) {
|
||||
V_1 = v_1;
|
||||
}
|
||||
|
||||
public String getV_2() {
|
||||
return V_2;
|
||||
}
|
||||
|
||||
public void setV_2(String v_2) {
|
||||
V_2 = v_2;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
|
||||
public class EnergyPoolDto {
|
||||
private String K;
|
||||
private String V_1;
|
||||
private String V_2;
|
||||
private String V_3;
|
||||
|
||||
private int V_4;
|
||||
private BigDecimal v3;
|
||||
private BigDecimal v1;
|
||||
private BigDecimal v2;
|
||||
|
||||
public String getK() {
|
||||
return K;
|
||||
}
|
||||
|
||||
public void setK(String k) {
|
||||
K = k;
|
||||
}
|
||||
|
||||
public String getV_1() {
|
||||
return V_1;
|
||||
}
|
||||
|
||||
public void setV_1(String v_1) {
|
||||
V_1 = v_1;
|
||||
}
|
||||
|
||||
public String getV_2() {
|
||||
return V_2;
|
||||
}
|
||||
|
||||
public void setV_2(String v_2) {
|
||||
V_2 = v_2;
|
||||
}
|
||||
|
||||
public BigDecimal getV3() {
|
||||
return v3;
|
||||
}
|
||||
|
||||
public void setV3(BigDecimal v3) {
|
||||
this.v3 = v3;
|
||||
}
|
||||
|
||||
public BigDecimal getV1() {
|
||||
return v1;
|
||||
}
|
||||
|
||||
public void setV1(BigDecimal v1) {
|
||||
this.v1 = v1;
|
||||
}
|
||||
|
||||
public BigDecimal getV2() {
|
||||
return v2;
|
||||
}
|
||||
|
||||
public void setV2(BigDecimal v2) {
|
||||
this.v2 = v2;
|
||||
}
|
||||
|
||||
public String getV_3() {
|
||||
return V_3;
|
||||
}
|
||||
|
||||
public void setV_3(String v_3) {
|
||||
V_3 = v_3;
|
||||
}
|
||||
|
||||
public int getV_4() {
|
||||
return V_4;
|
||||
}
|
||||
|
||||
public void setV_4(int v_4) {
|
||||
V_4 = v_4;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode
|
||||
@ApiModel("设备历史数据传输对象")
|
||||
public class EnergyPoolingReportDto {
|
||||
@ApiModelProperty("设备")
|
||||
private String resource;
|
||||
|
||||
@ApiModelProperty("开始时间")
|
||||
private String startTime;
|
||||
|
||||
@ApiModelProperty("结束时间")
|
||||
private String endTime;
|
||||
|
||||
@ApiModelProperty("")
|
||||
private List<String> list;
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import com.foreverwin.mom.pms.entity.PmsEquipDataDetail;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode
|
||||
public class EnergyYieldDto extends PmsEquipDataDetail {
|
||||
private String date;
|
||||
private String operation;
|
||||
private String type;
|
||||
private String k;
|
||||
private String v;
|
||||
private String t;
|
||||
private String days;
|
||||
private String operations;
|
||||
}
|
||||
@ -0,0 +1,51 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class GenerateNextNumberResponse {
|
||||
|
||||
private String nextNumberHandle;
|
||||
|
||||
private Boolean genereateWarning;
|
||||
|
||||
private String currentSequence;
|
||||
|
||||
private List<String> ids;
|
||||
|
||||
public GenerateNextNumberResponse() {
|
||||
this.ids = new ArrayList<String>();
|
||||
}
|
||||
|
||||
public Boolean getGenereateWarning() {
|
||||
return genereateWarning;
|
||||
}
|
||||
|
||||
public void setGenereateWarning(Boolean genereateWarning) {
|
||||
this.genereateWarning = genereateWarning;
|
||||
}
|
||||
|
||||
public List<String> getIds() {
|
||||
return ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public String getNextNumberHandle() {
|
||||
return nextNumberHandle;
|
||||
}
|
||||
|
||||
public void setNextNumberHandle(String nextNumberHandle) {
|
||||
this.nextNumberHandle = nextNumberHandle;
|
||||
}
|
||||
|
||||
public String getCurrentSequence() {
|
||||
return currentSequence;
|
||||
}
|
||||
|
||||
public void setCurrentSequence(String currentSequence) {
|
||||
this.currentSequence = currentSequence;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,60 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import com.foreverwin.mom.pms.entity.MaintainInspectTask;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class MaintainInspectTaskDto extends MaintainInspectTask {
|
||||
|
||||
/**
|
||||
* 部门
|
||||
* 2021/08/09
|
||||
*/
|
||||
private String department;
|
||||
/**
|
||||
* 打印机名称
|
||||
*/
|
||||
private String printer;
|
||||
/**
|
||||
* 保养任务集合
|
||||
*/
|
||||
private List<MaintainInspectTask> maintainInspectTaskList;
|
||||
|
||||
/**
|
||||
* 保养计划描述
|
||||
* @return
|
||||
*/
|
||||
private String description;
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getDepartment() {
|
||||
return department;
|
||||
}
|
||||
|
||||
public void setDepartment(String department) {
|
||||
this.department = department;
|
||||
}
|
||||
|
||||
public String getPrinter() {
|
||||
return printer;
|
||||
}
|
||||
|
||||
public void setPrinter(String printer) {
|
||||
this.printer = printer;
|
||||
}
|
||||
|
||||
public List<MaintainInspectTask> getMaintainInspectTaskList() {
|
||||
return maintainInspectTaskList;
|
||||
}
|
||||
|
||||
public void setMaintainInspectTaskList(List<MaintainInspectTask> maintainInspectTaskList) {
|
||||
this.maintainInspectTaskList = maintainInspectTaskList;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
public class PdaMessage {
|
||||
String appKey ;
|
||||
String masterSecret;
|
||||
|
||||
public String getAppKey() {
|
||||
return appKey;
|
||||
}
|
||||
|
||||
public void setAppKey(String appKey) {
|
||||
this.appKey = appKey;
|
||||
}
|
||||
|
||||
public String getMasterSecret() {
|
||||
return masterSecret;
|
||||
}
|
||||
|
||||
public void setMasterSecret(String masterSecret) {
|
||||
this.masterSecret = masterSecret;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class PmsRepairOutSourceExport {
|
||||
@ExcelProperty("备品")
|
||||
private String spare;
|
||||
@ExcelProperty("描述")
|
||||
private String description;
|
||||
@ExcelProperty("备品类别")
|
||||
private String spareType;
|
||||
@ExcelProperty("存放位置")
|
||||
private String storageLocation;
|
||||
@ExcelProperty("数量")
|
||||
private BigDecimal qty;
|
||||
@ExcelProperty("单位")
|
||||
private String unit;
|
||||
@ExcelProperty("状态")
|
||||
private String statusBo;
|
||||
|
||||
public String getSpare() {
|
||||
return spare;
|
||||
}
|
||||
|
||||
public void setSpare(String spare) {
|
||||
this.spare = spare;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getSpareType() {
|
||||
return spareType;
|
||||
}
|
||||
|
||||
public void setSpareType(String spareType) {
|
||||
this.spareType = spareType;
|
||||
}
|
||||
|
||||
public String getStorageLocation() {
|
||||
return storageLocation;
|
||||
}
|
||||
|
||||
public void setStorageLocation(String storageLocation) {
|
||||
this.storageLocation = storageLocation;
|
||||
}
|
||||
|
||||
public BigDecimal getQty() {
|
||||
return qty;
|
||||
}
|
||||
|
||||
public void setQty(BigDecimal qty) {
|
||||
this.qty = qty;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return unit;
|
||||
}
|
||||
|
||||
public void setUnit(String unit) {
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public String getStatusBo() {
|
||||
return statusBo;
|
||||
}
|
||||
|
||||
public void setStatusBo(String statusBo) {
|
||||
this.statusBo = statusBo;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.alibaba.excel.annotation.write.style.ColumnWidth;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* @author Yohann
|
||||
* @since 2024/9/25
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode
|
||||
public class PmsResrceQDTO {
|
||||
|
||||
@ColumnWidth(20)
|
||||
@ExcelProperty("蒸汽设备编号")
|
||||
private String resrce;
|
||||
|
||||
@ColumnWidth(20)
|
||||
@ExcelProperty("蒸汽设备描述")
|
||||
private String description;
|
||||
|
||||
@ColumnWidth(20)
|
||||
@ExcelProperty("日期")
|
||||
private String steamDate;
|
||||
|
||||
@ColumnWidth(20)
|
||||
@ExcelProperty("值")
|
||||
private String value;
|
||||
}
|
||||
@ -0,0 +1,63 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import com.foreverwin.mom.pms.entity.PmsSpareInventory;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class PmsSpareInventoryDto extends PmsSpareInventory {
|
||||
private String spareType;
|
||||
private String spareBo;
|
||||
private boolean sequence;
|
||||
private String statusBo;
|
||||
private String storageLocationDesc;
|
||||
|
||||
public String getStorageLocationDesc() {
|
||||
return storageLocationDesc;
|
||||
}
|
||||
|
||||
public void setStorageLocationDesc(String storageLocationDesc) {
|
||||
this.storageLocationDesc = storageLocationDesc;
|
||||
}
|
||||
|
||||
public boolean isSequence() {
|
||||
return sequence;
|
||||
}
|
||||
|
||||
public void setSequence(boolean sequence) {
|
||||
this.sequence = sequence;
|
||||
}
|
||||
|
||||
private List<PmsSpareInventoryDto> pmsSpareInventoryList;
|
||||
|
||||
public String getSpareBo() {
|
||||
return spareBo;
|
||||
}
|
||||
|
||||
public void setSpareBo(String spareBo) {
|
||||
this.spareBo = spareBo;
|
||||
}
|
||||
|
||||
public String getSpareType() {
|
||||
return spareType;
|
||||
}
|
||||
|
||||
public void setSpareType(String spareType) {
|
||||
this.spareType = spareType;
|
||||
}
|
||||
|
||||
public List<PmsSpareInventoryDto> getPmsSpareInventoryList() {
|
||||
return pmsSpareInventoryList;
|
||||
}
|
||||
|
||||
public void setPmsSpareInventoryList(List<PmsSpareInventoryDto> pmsSpareInventoryList) {
|
||||
this.pmsSpareInventoryList = pmsSpareInventoryList;
|
||||
}
|
||||
|
||||
public String getStatusBo() {
|
||||
return statusBo;
|
||||
}
|
||||
|
||||
public void setStatusBo(String statusBo) {
|
||||
this.statusBo = statusBo;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,79 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
|
||||
public class PmsSpareInventoryExport {
|
||||
@ExcelProperty("备品")
|
||||
private String spare;
|
||||
@ExcelProperty("描述")
|
||||
private String description;
|
||||
@ExcelProperty("备品类别")
|
||||
private String spareType;
|
||||
@ExcelProperty("存放位置")
|
||||
private String storageLocation;
|
||||
@ExcelProperty("数量")
|
||||
private BigDecimal qty;
|
||||
@ExcelProperty("单位")
|
||||
private String unit;
|
||||
@ExcelProperty("状态")
|
||||
private String statusBo;
|
||||
|
||||
public String getSpare() {
|
||||
return spare;
|
||||
}
|
||||
|
||||
public void setSpare(String spare) {
|
||||
this.spare = spare;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getSpareType() {
|
||||
return spareType;
|
||||
}
|
||||
|
||||
public void setSpareType(String spareType) {
|
||||
this.spareType = spareType;
|
||||
}
|
||||
|
||||
public String getStorageLocation() {
|
||||
return storageLocation;
|
||||
}
|
||||
|
||||
public void setStorageLocation(String storageLocation) {
|
||||
this.storageLocation = storageLocation;
|
||||
}
|
||||
|
||||
public BigDecimal getQty() {
|
||||
return qty;
|
||||
}
|
||||
|
||||
public void setQty(BigDecimal qty) {
|
||||
this.qty = qty;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return unit;
|
||||
}
|
||||
|
||||
public void setUnit(String unit) {
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public String getStatusBo() {
|
||||
return statusBo;
|
||||
}
|
||||
|
||||
public void setStatusBo(String statusBo) {
|
||||
this.statusBo = statusBo;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,28 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
@Data
|
||||
@EqualsAndHashCode
|
||||
public class PowerDataReportDto {
|
||||
@ApiModelProperty("电力类型")
|
||||
private String type;
|
||||
|
||||
@ApiModelProperty("配电室")
|
||||
private String typeId;
|
||||
|
||||
@ApiModelProperty("开始时间")
|
||||
private String startTime;
|
||||
|
||||
@ApiModelProperty("结束时间")
|
||||
private String endTime;
|
||||
|
||||
@ApiModelProperty("")
|
||||
private List<String> list;
|
||||
|
||||
@ApiModelProperty("配电室")
|
||||
private String edcSearch;
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class ProductionElectricityFlowMonitorRequestDto {
|
||||
private String date;
|
||||
private List<String> dateRange;
|
||||
private String operation;
|
||||
private String searchType;
|
||||
private String shift;
|
||||
private String resourceStr;
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class ProductionElectricityFlowMonitorResponseDto {
|
||||
private List<SankeyDataDto> data;
|
||||
private List<SankeyLinksDto> links;
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
public class RepairOrderUser {
|
||||
private String userName;
|
||||
private String name;
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,8 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class SankeyDataDto {
|
||||
private String name;
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class SankeyLinksDto {
|
||||
private String source;
|
||||
private String target;
|
||||
private String value;
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import com.foreverwin.mom.pms.entity.Spare;
|
||||
|
||||
public class SpareDto extends Spare {
|
||||
private String spareGroupDesc;
|
||||
|
||||
public String getSpareGroupDesc() {
|
||||
return spareGroupDesc;
|
||||
}
|
||||
|
||||
public void setSpareGroupDesc(String spareGroupDesc) {
|
||||
this.spareGroupDesc = spareGroupDesc;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class SteamEnergyReportDto {
|
||||
private String k;
|
||||
private BigDecimal v_1;
|
||||
private BigDecimal v_2;
|
||||
private BigDecimal todayEnergy;
|
||||
private BigDecimal yesterdayEnergy;
|
||||
private String resource;
|
||||
private String startTime1;
|
||||
private String endTime1;
|
||||
private String startTime2;
|
||||
private String endTime2;
|
||||
private List<String> list;
|
||||
}
|
||||
@ -0,0 +1,82 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 作业规则
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2021-04-08
|
||||
*/
|
||||
|
||||
@TableName("ACTIVITY_OPTION")
|
||||
|
||||
public class ActivityOption extends Model<ActivityOption> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("ACTIVITY_BO")
|
||||
private String activityBo;
|
||||
@TableField("EXEC_UNIT_OPTION")
|
||||
private String execUnitOption;
|
||||
@TableField("SETTING")
|
||||
private String setting;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getActivityBo() {
|
||||
return activityBo;
|
||||
}
|
||||
|
||||
public void setActivityBo(String activityBo) {
|
||||
this.activityBo = activityBo;
|
||||
}
|
||||
|
||||
public String getExecUnitOption() {
|
||||
return execUnitOption;
|
||||
}
|
||||
|
||||
public void setExecUnitOption(String execUnitOption) {
|
||||
this.execUnitOption = execUnitOption;
|
||||
}
|
||||
|
||||
public String getSetting() {
|
||||
return setting;
|
||||
}
|
||||
|
||||
public void setSetting(String setting) {
|
||||
this.setting = setting;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ActivityOption{" +
|
||||
"handle = " + handle +
|
||||
", activityBo = " + activityBo +
|
||||
", execUnitOption = " + execUnitOption +
|
||||
", setting = " + setting +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,116 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
|
||||
@TableName("PMS_BROKEN")
|
||||
|
||||
public class Broken extends Model<Broken> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
@TableField("BROKEN_CODE")
|
||||
private String brokenCode;
|
||||
@TableField("DESCRIPTION")
|
||||
private String description;
|
||||
@TableField("STATUS_BO")
|
||||
private String statusBo;
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private Date createdDateTime;
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getBrokenCode() {
|
||||
return brokenCode;
|
||||
}
|
||||
|
||||
public void setBrokenCode(String brokenCode) {
|
||||
this.brokenCode = brokenCode;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getStatusBo() {
|
||||
return statusBo;
|
||||
}
|
||||
|
||||
public void setStatusBo(String statusBo) {
|
||||
this.statusBo = statusBo;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Broken{" +
|
||||
"handle = " + handle +
|
||||
", site = " + site +
|
||||
", brokenCode = " + brokenCode +
|
||||
", description = " + description +
|
||||
", statusBo = " + statusBo +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", modifiedDateTime = " + modifiedDateTime +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,116 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
|
||||
@TableName("PMS_BROKEN_ATTACHED")
|
||||
|
||||
public class BrokenAttached extends Model<BrokenAttached> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("BROKEN_BO")
|
||||
private String brokenBo;
|
||||
@TableField("ITEM_SEQ")
|
||||
private String itemSeq;
|
||||
@TableField("ATTACHED_TYPE")
|
||||
private String attachedType;
|
||||
@TableField("ATTACHED_BO")
|
||||
private String attachedBo;
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private Date createdDateTime;
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getBrokenBo() {
|
||||
return brokenBo;
|
||||
}
|
||||
|
||||
public void setBrokenBo(String brokenBo) {
|
||||
this.brokenBo = brokenBo;
|
||||
}
|
||||
|
||||
public String getItemSeq() {
|
||||
return itemSeq;
|
||||
}
|
||||
|
||||
public void setItemSeq(String itemSeq) {
|
||||
this.itemSeq = itemSeq;
|
||||
}
|
||||
|
||||
public String getAttachedType() {
|
||||
return attachedType;
|
||||
}
|
||||
|
||||
public void setAttachedType(String attachedType) {
|
||||
this.attachedType = attachedType;
|
||||
}
|
||||
|
||||
public String getAttachedBo() {
|
||||
return attachedBo;
|
||||
}
|
||||
|
||||
public void setAttachedBo(String attachedBo) {
|
||||
this.attachedBo = attachedBo;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "BrokenAttached{" +
|
||||
"handle = " + handle +
|
||||
", brokenBo = " + brokenBo +
|
||||
", itemSeq = " + itemSeq +
|
||||
", attachedType = " + attachedType +
|
||||
", attachedBo = " + attachedBo +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", modifiedDateTime = " + modifiedDateTime +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,138 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-13
|
||||
*/
|
||||
|
||||
@TableName("PMS_CONFIG_FIELDS")
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class ConfigFields extends Model<ConfigFields> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("FIELD_TYPE")
|
||||
private String fieldType;
|
||||
@TableField("FIELD_NAME")
|
||||
private String fieldName;
|
||||
@TableField("FIELD_VALUE")
|
||||
private String fieldValue;
|
||||
@TableField("CREATE_USER")
|
||||
private String createUser;
|
||||
@TableField( exist = false )
|
||||
private List<ConfigFields> configFieldsList;
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private Date createdDateTime;
|
||||
@TableField("MODIFY_USER")
|
||||
private String modifyUser;
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getFieldType() {
|
||||
return fieldType;
|
||||
}
|
||||
|
||||
public void setFieldType(String fieldType) {
|
||||
this.fieldType = fieldType;
|
||||
}
|
||||
|
||||
public String getFieldName() {
|
||||
return fieldName;
|
||||
}
|
||||
|
||||
public void setFieldName(String fieldName) {
|
||||
this.fieldName = fieldName;
|
||||
}
|
||||
|
||||
public String getFieldValue() {
|
||||
return fieldValue;
|
||||
}
|
||||
|
||||
public void setFieldValue(String fieldValue) {
|
||||
this.fieldValue = fieldValue;
|
||||
}
|
||||
|
||||
public List<ConfigFields> getConfigFieldsList() {
|
||||
return configFieldsList;
|
||||
}
|
||||
|
||||
public void setConfigFieldsList(List<ConfigFields> configFieldsList) {
|
||||
this.configFieldsList = configFieldsList;
|
||||
}
|
||||
|
||||
public String getCreateUser() {
|
||||
return createUser;
|
||||
}
|
||||
|
||||
public void setCreateUser(String createUser) {
|
||||
this.createUser = createUser;
|
||||
}
|
||||
|
||||
public String getModifyUser() {
|
||||
return modifyUser;
|
||||
}
|
||||
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ConfigFields{" +
|
||||
"handle = " + handle +
|
||||
", fieldType = " + fieldType +
|
||||
", fieldName = " + fieldName +
|
||||
", fieldValue = " + fieldValue +
|
||||
", createUser = " + createUser +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", modifyUser = " + modifyUser +
|
||||
", modifiedDateTime = " + modifiedDateTime +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,112 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author syngna123
|
||||
* @since 2018-10-12
|
||||
*/
|
||||
@TableName("CUSTOM_FIELDS")
|
||||
public class CustomFields extends Model<CustomFields> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("ATTRIBUTE")
|
||||
private String attribute;
|
||||
@TableField("VALUE")
|
||||
private String value;
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private Date createdDateTime;
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
|
||||
|
||||
public CustomFields () {
|
||||
|
||||
}
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getAttribute() {
|
||||
return attribute;
|
||||
}
|
||||
|
||||
public void setAttribute(String attribute) {
|
||||
this.attribute = attribute;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
public static final String HANDLE = "HANDLE";
|
||||
|
||||
public static final String ATTRIBUTE = "ATTRIBUTE";
|
||||
|
||||
public static final String VALUE = "VALUE";
|
||||
|
||||
public static final String CREATED_DATE_TIME = "CREATED_DATE_TIME";
|
||||
|
||||
public static final String MODIFIED_DATE_TIME = "MODIFIED_DATE_TIME";
|
||||
|
||||
public static final String ATTR_TBR_RESOURCE_GROUP = "TBR_RESOURCE_GROUP";
|
||||
|
||||
public static final String ATTR_PCR_RESOURCE_GROUP = "PCR_RESOURCE_GROUP";
|
||||
|
||||
public static final String ATTR_SHOP_ORDER_CATEGORY = "SHOP_ORDER_CATEGORY";
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "CustomFields{" +
|
||||
"handle = " + handle +
|
||||
", attribute = " + attribute +
|
||||
", value = " + value +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", modifiedDateTime = " + modifiedDateTime +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* demo 表
|
||||
*
|
||||
* @author syngna
|
||||
* @date 2022-05-18 02:08:59
|
||||
*/
|
||||
@Data
|
||||
@TableName("demo")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "demo 表")
|
||||
public class Demo extends Model<Demo> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Integer id;
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
@ApiModelProperty(value = "用户名")
|
||||
private String username;
|
||||
/**
|
||||
* 密码
|
||||
*/
|
||||
@ApiModelProperty(value = "密码")
|
||||
private String password;
|
||||
}
|
||||
@ -0,0 +1,123 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2021-03-11
|
||||
*/
|
||||
|
||||
@TableName("PMS_EMAIL_GROUP")
|
||||
|
||||
public class EmailGroup extends Model<EmailGroup> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* EmailGroupBO:SITE,EMAIL_GROUP
|
||||
*/
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
/**
|
||||
* 工厂
|
||||
*/
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
/**
|
||||
* 邮箱群组
|
||||
*/
|
||||
@TableField("EMAIL_GROUP")
|
||||
private String emailGroup;
|
||||
/**
|
||||
* 邮箱群组描述
|
||||
*/
|
||||
@TableField("DESCRIPTION")
|
||||
private String description;
|
||||
/**
|
||||
* 维护时间
|
||||
*/
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private LocalDateTime createdDateTime;
|
||||
/**
|
||||
* 维护人员
|
||||
*/
|
||||
@TableField("CREATED_USER")
|
||||
private String createdUser;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getEmailGroup() {
|
||||
return emailGroup;
|
||||
}
|
||||
|
||||
public void setEmailGroup(String emailGroup) {
|
||||
this.emailGroup = emailGroup;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public LocalDateTime getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(LocalDateTime createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public String getCreatedUser() {
|
||||
return createdUser;
|
||||
}
|
||||
|
||||
public void setCreatedUser(String createdUser) {
|
||||
this.createdUser = createdUser;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "EmailGroup{" +
|
||||
"handle = " + handle +
|
||||
", site = " + site +
|
||||
", emailGroup = " + emailGroup +
|
||||
", description = " + description +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", createdUser = " + createdUser +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,219 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
|
||||
@TableName("PMS_EQUIP")
|
||||
|
||||
public class Equip extends Model<Equip> implements Comparable<Equip> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
@TableField("RESRCE")
|
||||
private String resrce;
|
||||
@TableField("DESCRIPTION")
|
||||
private String description;
|
||||
@TableField("STATUS_BO")
|
||||
private String statusBo;
|
||||
@TableField("EQUIP_TYPE")
|
||||
private String equipType;
|
||||
@TableField("DEPARTMENT")
|
||||
private String department;
|
||||
@TableField("SERIAL_NUMBER")
|
||||
private String serialNumber;
|
||||
@TableField("SUPPLIER")
|
||||
private String supplier;//厂商 2021/08/12
|
||||
@TableField("VALID_FROM")
|
||||
private Date validFrom;
|
||||
@TableField("VALID_TO")
|
||||
private Date validTo;
|
||||
@TableField("DATE_CREATE")
|
||||
private Date dateCreate;
|
||||
@TableField("DATE_UPDATE")
|
||||
private Date dateUpdate;
|
||||
|
||||
@TableField("CREATOR")
|
||||
private String creator;
|
||||
@TableField("UPDATER")
|
||||
private String updater;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String status;
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getResrce() {
|
||||
return resrce;
|
||||
}
|
||||
|
||||
public void setResrce(String resrce) {
|
||||
this.resrce = resrce;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getStatusBo() {
|
||||
return statusBo;
|
||||
}
|
||||
|
||||
public void setStatusBo(String statusBo) {
|
||||
this.statusBo = statusBo;
|
||||
}
|
||||
|
||||
public String getEquipType() {
|
||||
return equipType;
|
||||
}
|
||||
|
||||
public void setEquipType(String equipType) {
|
||||
this.equipType = equipType;
|
||||
}
|
||||
|
||||
public String getDepartment() {
|
||||
return department;
|
||||
}
|
||||
|
||||
public void setDepartment(String department) {
|
||||
this.department = department;
|
||||
}
|
||||
|
||||
public String getSerialNumber() {
|
||||
return serialNumber;
|
||||
}
|
||||
|
||||
public void setSerialNumber(String serialNumber) {
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
public String getSupplier() {
|
||||
return supplier;
|
||||
}
|
||||
|
||||
public void setSupplier(String supplier) {
|
||||
this.supplier = supplier;
|
||||
}
|
||||
|
||||
public Date getValidFrom() {
|
||||
return validFrom;
|
||||
}
|
||||
|
||||
public void setValidFrom(Date validFrom) {
|
||||
this.validFrom = validFrom;
|
||||
}
|
||||
|
||||
public Date getValidTo() {
|
||||
return validTo;
|
||||
}
|
||||
|
||||
public void setValidTo(Date validTo) {
|
||||
this.validTo = validTo;
|
||||
}
|
||||
|
||||
public Date getDateCreate() {
|
||||
return dateCreate;
|
||||
}
|
||||
|
||||
public void setDateCreate(Date dateCreate) {
|
||||
this.dateCreate = dateCreate;
|
||||
}
|
||||
|
||||
public Date getDateUpdate() {
|
||||
return dateUpdate;
|
||||
}
|
||||
|
||||
public void setDateUpdate(Date dateUpdate) {
|
||||
this.dateUpdate = dateUpdate;
|
||||
}
|
||||
|
||||
public String getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public String getUpdater() {
|
||||
return updater;
|
||||
}
|
||||
|
||||
public void setUpdater(String updater) {
|
||||
this.updater = updater;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Equip{" +
|
||||
"handle='" + handle + '\'' +
|
||||
", site='" + site + '\'' +
|
||||
", resrce='" + resrce + '\'' +
|
||||
", description='" + description + '\'' +
|
||||
", statusBo='" + statusBo + '\'' +
|
||||
", equipType='" + equipType + '\'' +
|
||||
", department='" + department + '\'' +
|
||||
", serialNumber='" + serialNumber + '\'' +
|
||||
", supplier='" + supplier + '\'' +
|
||||
", validFrom=" + validFrom +
|
||||
", validTo=" + validTo +
|
||||
", dateCreate=" + dateCreate +
|
||||
", dateUpdate=" + dateUpdate +
|
||||
", status='" + status + '\'' +
|
||||
'}';
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(Equip o) {
|
||||
return this.getResrce().compareTo(o.getResrce());
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,105 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
|
||||
@TableName("PMS_EQUIP_TYPE")
|
||||
|
||||
public class EquipType extends Model<EquipType> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
@TableField("EQUIP_TYPE")
|
||||
private String equipType;
|
||||
@TableField("DESCRIPTION")
|
||||
private String description;
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private Date createdDateTime;
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getEquipType() {
|
||||
return equipType;
|
||||
}
|
||||
|
||||
public void setEquipType(String equipType) {
|
||||
this.equipType = equipType;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "EquipType{" +
|
||||
"handle = " + handle +
|
||||
", site = " + site +
|
||||
", equipType = " + equipType +
|
||||
", description = " + description +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", modifiedDateTime = " + modifiedDateTime +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,71 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
|
||||
@TableName("PMS_EQUIP_TYPE_EQUIP")
|
||||
|
||||
public class EquipTypeEquip extends Model<EquipTypeEquip> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("EQUIP_TYPE_BO")
|
||||
private String equipTypeBo;
|
||||
@TableField("EQUIP_BO")
|
||||
private String equipBo;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getEquipTypeBo() {
|
||||
return equipTypeBo;
|
||||
}
|
||||
|
||||
public void setEquipTypeBo(String equipTypeBo) {
|
||||
this.equipTypeBo = equipTypeBo;
|
||||
}
|
||||
|
||||
public String getEquipBo() {
|
||||
return equipBo;
|
||||
}
|
||||
|
||||
public void setEquipBo(String equipBo) {
|
||||
this.equipBo = equipBo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "EquipTypeEquip{" +
|
||||
"handle = " + handle +
|
||||
", equipTypeBo = " + equipTypeBo +
|
||||
", equipBo = " + equipBo +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,123 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2021-04-02
|
||||
*/
|
||||
|
||||
@TableName("FAST_CODE")
|
||||
|
||||
public class FastCode extends Model<FastCode> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* FastCodeBO:SITE,FASTCODE
|
||||
*/
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
/**
|
||||
* 工厂
|
||||
*/
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
/**
|
||||
* Fast Code编号
|
||||
*/
|
||||
@TableField("FAST_CODE")
|
||||
private String fastCode;
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
@TableField("DESCRIPTION")
|
||||
private String description;
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField("MODIFY_DATE_TIME")
|
||||
private LocalDateTime modifyDateTime;
|
||||
/**
|
||||
* 更新人员
|
||||
*/
|
||||
@TableField("MODIFY_USER")
|
||||
private String modifyUser;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getFastCode() {
|
||||
return fastCode;
|
||||
}
|
||||
|
||||
public void setFastCode(String fastCode) {
|
||||
this.fastCode = fastCode;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public LocalDateTime getModifyDateTime() {
|
||||
return modifyDateTime;
|
||||
}
|
||||
|
||||
public void setModifyDateTime(LocalDateTime modifyDateTime) {
|
||||
this.modifyDateTime = modifyDateTime;
|
||||
}
|
||||
|
||||
public String getModifyUser() {
|
||||
return modifyUser;
|
||||
}
|
||||
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "FastCode{" +
|
||||
"handle = " + handle +
|
||||
", site = " + site +
|
||||
", fastCode = " + fastCode +
|
||||
", description = " + description +
|
||||
", modifyDateTime = " + modifyDateTime +
|
||||
", modifyUser = " + modifyUser +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,123 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2021-04-02
|
||||
*/
|
||||
|
||||
@TableName("FAST_CODE_DETAIL")
|
||||
@Data
|
||||
@EqualsAndHashCode
|
||||
public class FastCodeDetail extends Model<FastCodeDetail> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* FastCodeDetailBO:SITE,FAST_CODE,CODE
|
||||
*/
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
/**
|
||||
* 工厂
|
||||
*/
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
/**
|
||||
* Fast Code 的HANDLE
|
||||
*/
|
||||
@TableField("FAST_CODE_BO")
|
||||
private String fastCodeBo;
|
||||
/**
|
||||
* Code
|
||||
*/
|
||||
@TableField("CODE")
|
||||
private String code;
|
||||
/**
|
||||
* Meaning
|
||||
*/
|
||||
@TableField("MEANING")
|
||||
private String meaning;
|
||||
/**
|
||||
* Code描述
|
||||
*/
|
||||
@TableField("DESCRIPTION")
|
||||
private String description;
|
||||
/**
|
||||
* TAG
|
||||
*/
|
||||
@TableField("TAG")
|
||||
private String tag;
|
||||
/**
|
||||
* Y:是;N:否
|
||||
*/
|
||||
@TableField("ENABLED")
|
||||
private String enabled;
|
||||
/**
|
||||
* ef1
|
||||
*/
|
||||
@TableField("EF1")
|
||||
private String ef1;
|
||||
/**
|
||||
* ef2
|
||||
*/
|
||||
@TableField("EF2")
|
||||
private String ef2;
|
||||
/**
|
||||
* ef3
|
||||
*/
|
||||
@TableField("EF3")
|
||||
private String ef3;
|
||||
/**
|
||||
* ef4
|
||||
*/
|
||||
@TableField("EF4")
|
||||
private String ef4;
|
||||
/**
|
||||
* ef5
|
||||
*/
|
||||
@TableField("EF5")
|
||||
private String ef5;
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField("MODIFY_DATE_TIME")
|
||||
private LocalDateTime modifyDateTime;
|
||||
/**
|
||||
* 更新人员
|
||||
*/
|
||||
@TableField("MODIFY_USER")
|
||||
private String modifyUser;
|
||||
/**
|
||||
* ef6
|
||||
*/
|
||||
@TableField("EF6")
|
||||
private String ef6;
|
||||
|
||||
@TableField("EF7")
|
||||
private String ef7;
|
||||
@TableField("EF8")
|
||||
private String ef8;
|
||||
@TableField("EF9")
|
||||
private String ef9;
|
||||
@TableField("EF10")
|
||||
private String ef10;
|
||||
@TableField("EF11")
|
||||
private String ef11;
|
||||
@TableField("EF12")
|
||||
private String ef12;
|
||||
|
||||
}
|
||||
@ -0,0 +1,94 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
|
||||
@TableName("PMS_LOCATION_AREA")
|
||||
|
||||
public class LocationArea extends Model<LocationArea> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
@TableField("AREA")
|
||||
private String area;
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private Date createdDateTime;
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getArea() {
|
||||
return area;
|
||||
}
|
||||
|
||||
public void setArea(String area) {
|
||||
this.area = area;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "LocationArea{" +
|
||||
"handle = " + handle +
|
||||
", site = " + site +
|
||||
", area = " + area +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", modifiedDateTime = " + modifiedDateTime +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,130 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2021-03-11
|
||||
*/
|
||||
|
||||
@TableName("PMS_MACHINE_STATUS")
|
||||
|
||||
public class MachineStatus extends Model<MachineStatus> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
/**
|
||||
* 设备
|
||||
*/
|
||||
@TableField("RESOURCE")
|
||||
private String resource;
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
@TableField("STATUS")
|
||||
private String status;
|
||||
/**
|
||||
* 子状态
|
||||
*/
|
||||
@TableField("SUB_STATUS")
|
||||
private String subStatus;
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private LocalDateTime createdDateTime;
|
||||
@TableField("MODIFY_DATE_TIME")
|
||||
private LocalDateTime modifyDateTime;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getResource() {
|
||||
return resource;
|
||||
}
|
||||
|
||||
public void setResource(String resource) {
|
||||
this.resource = resource;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getSubStatus() {
|
||||
return subStatus;
|
||||
}
|
||||
|
||||
public void setSubStatus(String subStatus) {
|
||||
this.subStatus = subStatus;
|
||||
}
|
||||
|
||||
public LocalDateTime getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(LocalDateTime createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public LocalDateTime getModifyDateTime() {
|
||||
return modifyDateTime;
|
||||
}
|
||||
|
||||
public void setModifyDateTime(LocalDateTime modifyDateTime) {
|
||||
this.modifyDateTime = modifyDateTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "MachineStatus{" +
|
||||
"handle = " + handle +
|
||||
", resource = " + resource +
|
||||
", status = " + status +
|
||||
", subStatus = " + subStatus +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", modifyDateTime = " + modifyDateTime +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,159 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
|
||||
@TableName("PMS_MAINTAIN_INSPECT_LIST")
|
||||
|
||||
public class MaintainInspectList extends Model<MaintainInspectList> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
@TableField("LIST_TYPE")
|
||||
private String listType;
|
||||
@TableField("LIST_NO")
|
||||
private String listNo;
|
||||
@TableField("LIST_VERSION")
|
||||
private String listVersion;
|
||||
@TableField("DESCRIPTION")
|
||||
private String description;
|
||||
@TableField("EQUIP_TYPE_BO")
|
||||
private String equipTypeBo;
|
||||
@TableField("MAINTAIN_INSPECT_TYPE")
|
||||
private String maintainInspectType;
|
||||
@TableField("CURRENT_VERSION")
|
||||
private String currentVersion;
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private Date createdDateTime;
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getListType() {
|
||||
return listType;
|
||||
}
|
||||
|
||||
public void setListType(String listType) {
|
||||
this.listType = listType;
|
||||
}
|
||||
|
||||
public String getListNo() {
|
||||
return listNo;
|
||||
}
|
||||
|
||||
public void setListNo(String listNo) {
|
||||
this.listNo = listNo;
|
||||
}
|
||||
|
||||
public String getListVersion() {
|
||||
return listVersion;
|
||||
}
|
||||
|
||||
public void setListVersion(String listVersion) {
|
||||
this.listVersion = listVersion;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getEquipTypeBo() {
|
||||
return equipTypeBo;
|
||||
}
|
||||
|
||||
public void setEquipTypeBo(String equipTypeBo) {
|
||||
this.equipTypeBo = equipTypeBo;
|
||||
}
|
||||
|
||||
public String getMaintainInspectType() {
|
||||
return maintainInspectType;
|
||||
}
|
||||
|
||||
public void setMaintainInspectType(String maintainInspectType) {
|
||||
this.maintainInspectType = maintainInspectType;
|
||||
}
|
||||
|
||||
public String getCurrentVersion() {
|
||||
return currentVersion;
|
||||
}
|
||||
|
||||
public void setCurrentVersion(String currentVersion) {
|
||||
this.currentVersion = currentVersion;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "MaintainInspectList{" +
|
||||
"handle = " + handle +
|
||||
", site = " + site +
|
||||
", listType = " + listType +
|
||||
", listNo = " + listNo +
|
||||
", listVersion = " + listVersion +
|
||||
", description = " + description +
|
||||
", maintainInspectType = " + maintainInspectType +
|
||||
", currentVersion = " + currentVersion +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", modifiedDateTime = " + modifiedDateTime +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,171 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
|
||||
@TableName("PMS_MAINTAIN_INSPECT_LIST_ITEM")
|
||||
|
||||
public class MaintainInspectListItem extends Model<MaintainInspectListItem> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("MAINTAIN_INSPECT_LIST_BO")
|
||||
private String maintainInspectListBo;
|
||||
@TableField("ITEM_SEQ")
|
||||
private String itemSeq;
|
||||
@TableField("ITEM_NO")
|
||||
private String itemNo;
|
||||
@TableField("ITEM_DESCRIPTION")
|
||||
private String itemDescription;
|
||||
@TableField("RESULT_TYPE")
|
||||
private String resultType;
|
||||
@TableField("STANDARD_VALUE")
|
||||
private String standardValue;
|
||||
@TableField("UNIT")
|
||||
private String unit;
|
||||
@TableField("MAX_VALUE")
|
||||
private Double maxValue;
|
||||
@TableField("MIN_VALUE")
|
||||
private Double minValue;
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private Date createdDateTime;
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getMaintainInspectListBo() {
|
||||
return maintainInspectListBo;
|
||||
}
|
||||
|
||||
public void setMaintainInspectListBo(String maintainInspectListBo) {
|
||||
this.maintainInspectListBo = maintainInspectListBo;
|
||||
}
|
||||
|
||||
public String getItemSeq() {
|
||||
return itemSeq;
|
||||
}
|
||||
|
||||
public void setItemSeq(String itemSeq) {
|
||||
this.itemSeq = itemSeq;
|
||||
}
|
||||
|
||||
public String getItemNo() {
|
||||
return itemNo;
|
||||
}
|
||||
|
||||
public void setItemNo(String itemNo) {
|
||||
this.itemNo = itemNo;
|
||||
}
|
||||
|
||||
public String getItemDescription() {
|
||||
return itemDescription;
|
||||
}
|
||||
|
||||
public void setItemDescription(String itemDescription) {
|
||||
this.itemDescription = itemDescription;
|
||||
}
|
||||
|
||||
public String getResultType() {
|
||||
return resultType;
|
||||
}
|
||||
|
||||
public void setResultType(String resultType) {
|
||||
this.resultType = resultType;
|
||||
}
|
||||
|
||||
public String getStandardValue() {
|
||||
return standardValue;
|
||||
}
|
||||
|
||||
public void setStandardValue(String standardValue) {
|
||||
this.standardValue = standardValue;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return unit;
|
||||
}
|
||||
|
||||
public void setUnit(String unit) {
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public Double getMaxValue() {
|
||||
return maxValue;
|
||||
}
|
||||
|
||||
public void setMaxValue(Double maxValue) {
|
||||
this.maxValue = maxValue;
|
||||
}
|
||||
|
||||
public Double getMinValue() {
|
||||
return minValue;
|
||||
}
|
||||
|
||||
public void setMinValue(Double minValue) {
|
||||
this.minValue = minValue;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "MaintainInspectListItem{" +
|
||||
"handle = " + handle +
|
||||
", maintainInspectListBo = " + maintainInspectListBo +
|
||||
", itemSeq = " + itemSeq +
|
||||
", itemNo = " + itemNo +
|
||||
", itemDescription = " + itemDescription +
|
||||
", resultType = " + resultType +
|
||||
", standardValue = " + standardValue +
|
||||
", unit = " + unit +
|
||||
", maxValue = " + maxValue +
|
||||
", minValue = " + minValue +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", modifiedDateTime = " + modifiedDateTime +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,364 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnore;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.alibaba.excel.annotation.write.style.ColumnWidth;
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
|
||||
@TableName("PMS_MAINTAIN_INSPECT_TASK")
|
||||
|
||||
public class MaintainInspectTask extends Model<MaintainInspectTask> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ExcelIgnore
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
|
||||
@ExcelIgnore
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
|
||||
@ExcelProperty(value = "任务编号", order = 1)
|
||||
@TableField("TASK_NO")
|
||||
private String taskNo;
|
||||
|
||||
@ExcelIgnore
|
||||
@ExcelProperty("任务类型")
|
||||
@TableField("LIST_TYPE")
|
||||
private String listType;
|
||||
|
||||
@ExcelProperty(value = "保养/点检方式", order = 8)
|
||||
@TableField("MAINTAIN_INSPECT_TYPE")
|
||||
private String maintainInspectType;
|
||||
|
||||
@ExcelProperty(value = "设备类别", order = 5)
|
||||
@TableField("RESRCE_TYPE")
|
||||
private String resrceType;
|
||||
|
||||
@ExcelProperty(value = "设备", order = 3)
|
||||
@TableField("RESRCE")
|
||||
private String resrce;
|
||||
|
||||
@ExcelProperty(value = "设备描述", order = 4)
|
||||
@TableField("RESRCE_DESC")
|
||||
private String resrceDesc;
|
||||
|
||||
@ExcelProperty(value = "周期", order = 9)
|
||||
@TableField("MAINTAIN_INSPECT_LIST_BO")
|
||||
private String maintainInspectListBo;
|
||||
|
||||
@ExcelIgnore
|
||||
@TableField("PLAN_BO")
|
||||
private String planBo;
|
||||
|
||||
@ExcelProperty(value = "保养计划", order = 11)
|
||||
@TableField("PLAN_NO")
|
||||
private String planNo;
|
||||
|
||||
@ExcelIgnore
|
||||
@ExcelProperty("任务描述")
|
||||
@TableField("PLAN_DESC")
|
||||
private String planDesc;
|
||||
|
||||
@ExcelProperty(value = "状态", order = 2)
|
||||
@TableField("STATUS_BO")
|
||||
private String statusBo;
|
||||
|
||||
@ExcelIgnore
|
||||
@TableField("ACCESS_STATUS")
|
||||
private String accessStatus;
|
||||
|
||||
@ColumnWidth(20)
|
||||
@ExcelProperty(value = "计划开始时间", order = 6)
|
||||
@TableField("PLAN_START_TIME")
|
||||
private Date planStartTime;
|
||||
|
||||
@ColumnWidth(20)
|
||||
@ExcelProperty(value = "实际开始时间", order = 7)
|
||||
//@TableField("ACTUAL_START_TIME")
|
||||
@TableField(fill = FieldFill.UPDATE)
|
||||
private Date actualStartTime;
|
||||
|
||||
@ExcelIgnore
|
||||
@ExcelProperty("实际结束时间")
|
||||
@TableField("ACTUAL_END_TIME")
|
||||
private Date actualEndTime;
|
||||
|
||||
@ExcelProperty(value = "执行人", order = 10)
|
||||
@TableField("EXECUTOR")
|
||||
private String executor;
|
||||
|
||||
@ExcelIgnore
|
||||
@TableField("CANCELL_INFO")
|
||||
private String cancellInfo;
|
||||
|
||||
@ExcelIgnore
|
||||
@TableField("CREATE_USER")
|
||||
private String createUser;
|
||||
|
||||
@ExcelIgnore
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private Date createdDateTime;
|
||||
|
||||
@ExcelIgnore
|
||||
@TableField("MODIFY_USER")
|
||||
private String modifyUser;
|
||||
|
||||
@ExcelIgnore
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
|
||||
@TableField("EXTENSION_TIME")
|
||||
private Date extensionTime;
|
||||
|
||||
@TableField("EXTENSION_DESC")
|
||||
private String extensionDesc;
|
||||
|
||||
|
||||
public String getResrceDesc() {
|
||||
return resrceDesc;
|
||||
}
|
||||
|
||||
public void setResrceDesc(String resrceDesc) {
|
||||
this.resrceDesc = resrceDesc;
|
||||
}
|
||||
|
||||
public String getPlanDesc() {
|
||||
return planDesc;
|
||||
}
|
||||
|
||||
public void setPlanDesc(String planDesc) {
|
||||
this.planDesc = planDesc;
|
||||
}
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getTaskNo() {
|
||||
return taskNo;
|
||||
}
|
||||
|
||||
public void setTaskNo(String taskNo) {
|
||||
this.taskNo = taskNo;
|
||||
}
|
||||
|
||||
public String getListType() {
|
||||
return listType;
|
||||
}
|
||||
|
||||
public void setListType(String listType) {
|
||||
this.listType = listType;
|
||||
}
|
||||
|
||||
public String getMaintainInspectType() {
|
||||
return maintainInspectType;
|
||||
}
|
||||
|
||||
public void setMaintainInspectType(String maintainInspectType) {
|
||||
this.maintainInspectType = maintainInspectType;
|
||||
}
|
||||
|
||||
public String getResrceType() {
|
||||
return resrceType;
|
||||
}
|
||||
|
||||
public void setResrceType(String resrceType) {
|
||||
this.resrceType = resrceType;
|
||||
}
|
||||
|
||||
public String getResrce() {
|
||||
return resrce;
|
||||
}
|
||||
|
||||
public void setResrce(String resrce) {
|
||||
this.resrce = resrce;
|
||||
}
|
||||
|
||||
public String getMaintainInspectListBo() {
|
||||
return maintainInspectListBo;
|
||||
}
|
||||
|
||||
public void setMaintainInspectListBo(String maintainInspectListBo) {
|
||||
this.maintainInspectListBo = maintainInspectListBo;
|
||||
}
|
||||
|
||||
public String getPlanBo() {
|
||||
return planBo;
|
||||
}
|
||||
|
||||
public void setPlanBo(String planBo) {
|
||||
this.planBo = planBo;
|
||||
}
|
||||
|
||||
public String getPlanNo() {
|
||||
return planNo;
|
||||
}
|
||||
|
||||
public void setPlanNo(String planNo) {
|
||||
this.planNo = planNo;
|
||||
}
|
||||
|
||||
public String getStatusBo() {
|
||||
return statusBo;
|
||||
}
|
||||
|
||||
public void setStatusBo(String statusBo) {
|
||||
this.statusBo = statusBo;
|
||||
}
|
||||
|
||||
public String getAccessStatus() {
|
||||
return accessStatus;
|
||||
}
|
||||
|
||||
public void setAccessStatus(String accessStatus) {
|
||||
this.accessStatus = accessStatus;
|
||||
}
|
||||
|
||||
public Date getPlanStartTime() {
|
||||
return planStartTime;
|
||||
}
|
||||
|
||||
public void setPlanStartTime(Date planStartTime) {
|
||||
this.planStartTime = planStartTime;
|
||||
}
|
||||
|
||||
public Date getActualStartTime() {
|
||||
return actualStartTime;
|
||||
}
|
||||
|
||||
public void setActualStartTime(Date actualStartTime) {
|
||||
this.actualStartTime = actualStartTime;
|
||||
}
|
||||
|
||||
public Date getActualEndTime() {
|
||||
return actualEndTime;
|
||||
}
|
||||
|
||||
public void setActualEndTime(Date actualEndTime) {
|
||||
this.actualEndTime = actualEndTime;
|
||||
}
|
||||
|
||||
public String getExecutor() {
|
||||
return executor;
|
||||
}
|
||||
|
||||
public void setExecutor(String executor) {
|
||||
this.executor = executor;
|
||||
}
|
||||
|
||||
public String getCancellInfo() {
|
||||
return cancellInfo;
|
||||
}
|
||||
|
||||
public void setCancellInfo(String cancellInfo) {
|
||||
this.cancellInfo = cancellInfo;
|
||||
}
|
||||
|
||||
public String getCreateUser() {
|
||||
return createUser;
|
||||
}
|
||||
|
||||
public void setCreateUser(String createUser) {
|
||||
this.createUser = createUser;
|
||||
}
|
||||
|
||||
public String getModifyUser() {
|
||||
return modifyUser;
|
||||
}
|
||||
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
public Date getExtensionTime() {
|
||||
return extensionTime;
|
||||
}
|
||||
|
||||
public void setExtensionTime(Date extensionTime) {
|
||||
this.extensionTime = extensionTime;
|
||||
}
|
||||
|
||||
public String getExtensionDesc() {
|
||||
return extensionDesc;
|
||||
}
|
||||
|
||||
public void setExtensionDesc(String extensionDesc) {
|
||||
this.extensionDesc = extensionDesc;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "MaintainInspectTask{" +
|
||||
"handle = " + handle +
|
||||
", site = " + site +
|
||||
", taskNo = " + taskNo +
|
||||
", listType = " + listType +
|
||||
", resrce = " + resrce +
|
||||
", maintainInspectListBo = " + maintainInspectListBo +
|
||||
", planBo = " + planBo +
|
||||
", planNo = " + planNo +
|
||||
", statusBo = " + statusBo +
|
||||
", planStartTime = " + planStartTime +
|
||||
", actualStartTime = " + actualStartTime +
|
||||
", actualEndTime = " + actualEndTime +
|
||||
", executor = " + executor +
|
||||
", cancellInfo = " + cancellInfo +
|
||||
", createUser = " + createUser +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", modifyUser = " + modifyUser +
|
||||
", modifiedDateTime = " + modifiedDateTime +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
|
||||
@TableName("PMS_MAINTAIN_INSPECT_TASK_ITEM")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class MaintainInspectTaskItem extends Model<MaintainInspectTaskItem> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("MAINTAIN_INSPECT_TASK_BO")
|
||||
private String maintainInspectTaskBo;
|
||||
@TableField("ITEM_SEQ")
|
||||
private String itemSeq;
|
||||
@TableField("ITEM_NO")
|
||||
private String itemNo;
|
||||
@TableField("ITEM_DESCRIPTION")
|
||||
private String itemDescription;
|
||||
@TableField("RESULT_TYPE")
|
||||
private String resultType;
|
||||
@TableField("STANDARD_VALUE")
|
||||
private String standardValue;
|
||||
@TableField("RESULT")
|
||||
private String result;
|
||||
@TableField("RESULT_DETERMINE")
|
||||
private String resultDetermine;
|
||||
@TableField("UNIT")
|
||||
private String unit;
|
||||
@TableField("MAX_VALUE")
|
||||
private Double maxValue;
|
||||
@TableField("MIN_VALUE")
|
||||
private Double minValue;
|
||||
@TableField("SPARE")
|
||||
private String spare;
|
||||
@TableField("QTY")
|
||||
private Long qty;
|
||||
@TableField("COMMENTS")
|
||||
private String comments;
|
||||
@TableField("IS_MAINTENANCE")
|
||||
private String isMaintenance;
|
||||
@TableField("IS_INSPECT")
|
||||
private String isInspect;
|
||||
@TableField(exist = false)
|
||||
private Boolean inputFlag;
|
||||
@TableField(exist = false)
|
||||
private Boolean switchFlag;
|
||||
}
|
||||
@ -0,0 +1,114 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2021-01-08
|
||||
*/
|
||||
|
||||
@TableName("PMS_MAINTAIN_INSPECT_TASK_SPARE")
|
||||
|
||||
public class MaintainInspectTaskSpare extends Model<MaintainInspectTaskSpare> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("MAINTAIN_INSPECT_TASK_BO")
|
||||
private String maintainInspectTaskBo;
|
||||
@TableField("SEQ")
|
||||
private String seq;
|
||||
@TableField("SPARE")
|
||||
private String spare;
|
||||
@TableField("SPARE_DESC")
|
||||
private String spareDesc;
|
||||
@TableField("QTY")
|
||||
private Long qty;
|
||||
@TableField("UNIT")
|
||||
private String unit;
|
||||
@TableField("COMMENTS")
|
||||
private String comments;
|
||||
@TableField("PMS_SPARE_INVENTORY_BO")
|
||||
private String pmsSpareInventoryBo;
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getMaintainInspectTaskBo() {
|
||||
return maintainInspectTaskBo;
|
||||
}
|
||||
|
||||
public void setMaintainInspectTaskBo(String maintainInspectTaskBo) {
|
||||
this.maintainInspectTaskBo = maintainInspectTaskBo;
|
||||
}
|
||||
|
||||
public String getSeq() {
|
||||
return seq;
|
||||
}
|
||||
|
||||
public void setSeq(String seq) {
|
||||
this.seq = seq;
|
||||
}
|
||||
|
||||
public String getSpare() {
|
||||
return spare;
|
||||
}
|
||||
|
||||
public void setSpare(String spare) {
|
||||
this.spare = spare;
|
||||
}
|
||||
|
||||
public String getSpareDesc() {
|
||||
return spareDesc;
|
||||
}
|
||||
|
||||
public void setSpareDesc(String spareDesc) {
|
||||
this.spareDesc = spareDesc;
|
||||
}
|
||||
|
||||
public Long getQty() {
|
||||
return qty;
|
||||
}
|
||||
|
||||
public void setQty(Long qty) {
|
||||
this.qty = qty;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return unit;
|
||||
}
|
||||
|
||||
public void setUnit(String unit) {
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public String getComments() {
|
||||
return comments;
|
||||
}
|
||||
|
||||
public void setComments(String comments) {
|
||||
this.comments = comments;
|
||||
}
|
||||
|
||||
public String getPmsSpareInventoryBo() {
|
||||
return pmsSpareInventoryBo;
|
||||
}
|
||||
|
||||
public void setPmsSpareInventoryBo(String pmsSpareInventoryBo) {
|
||||
this.pmsSpareInventoryBo = pmsSpareInventoryBo;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,308 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
|
||||
@TableName("PMS_MAINTAIN_PLAN")
|
||||
public class MaintainPlan extends Model<MaintainPlan> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
@TableField("REVISION")
|
||||
private String revision;
|
||||
@TableField("DESCRIPTION")
|
||||
private String description;
|
||||
@TableField("CURRENT_REVISION")
|
||||
private String currentRevision;
|
||||
@TableField("NEED_TASK_NUM")
|
||||
private Long needTaskNum;
|
||||
@TableField("STATUS_BO")
|
||||
private String statusBo;
|
||||
@TableField("PLAN_NO")
|
||||
private String planNo;
|
||||
@TableField("MAINTAIN_TYPE")
|
||||
private String maintainType;
|
||||
@TableField("SCHEDULE_START_TIME")
|
||||
private Date scheduleStartTime;
|
||||
@TableField("SCHEDULE_END_TIME")
|
||||
private Date scheduleEndTime;
|
||||
@TableField("EARLY_TIME")
|
||||
private BigDecimal earlyTime;
|
||||
@TableField("LATE_TIME")
|
||||
private BigDecimal lateTime;
|
||||
@TableField("ACTION_NAME")
|
||||
private String actionName;
|
||||
@TableField("UNIT")
|
||||
private String unit;
|
||||
@TableField("PLAN_PEROID")
|
||||
private Long planPeriod;
|
||||
@TableField("MAINTAIN_INSPECT_LIST_BO")
|
||||
private String maintainInspectListBo;
|
||||
@TableField("FILE_NUMBER")
|
||||
private String fileNumber;
|
||||
@TableField("EMAIL_GROUP")
|
||||
private String emailGroup;
|
||||
@TableField("CREATE_USER")
|
||||
private String createUser;
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private Date createdDateTime;
|
||||
@TableField("MODIFY_USER")
|
||||
private String modifyUser;
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
@TableField(exist = false)
|
||||
private List<MaintainPlanEquip> maintainPlanEquips = new ArrayList<>();
|
||||
@TableField(exist = false)
|
||||
private List<MaintainPlanItem> maintainPlanItems = new ArrayList<>();
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getRevision() {
|
||||
return revision;
|
||||
}
|
||||
|
||||
public void setRevision(String revision) {
|
||||
this.revision = revision;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getCurrentRevision() {
|
||||
return currentRevision;
|
||||
}
|
||||
|
||||
public void setCurrentRevision(String currentRevision) {
|
||||
this.currentRevision = currentRevision;
|
||||
}
|
||||
|
||||
public Long getNeedTaskNum() {
|
||||
return needTaskNum;
|
||||
}
|
||||
|
||||
public void setNeedTaskNum(Long needTaskNum) {
|
||||
this.needTaskNum = needTaskNum;
|
||||
}
|
||||
|
||||
public String getStatusBo() {
|
||||
return statusBo;
|
||||
}
|
||||
|
||||
public void setStatusBo(String statusBo) {
|
||||
this.statusBo = statusBo;
|
||||
}
|
||||
|
||||
public String getPlanNo() {
|
||||
return planNo;
|
||||
}
|
||||
|
||||
public void setPlanNo(String planNo) {
|
||||
this.planNo = planNo;
|
||||
}
|
||||
|
||||
public String getMaintainType() {
|
||||
return maintainType;
|
||||
}
|
||||
|
||||
public void setMaintainType(String maintainType) {
|
||||
this.maintainType = maintainType;
|
||||
}
|
||||
|
||||
public Date getScheduleStartTime() {
|
||||
return scheduleStartTime;
|
||||
}
|
||||
|
||||
public void setScheduleStartTime(Date scheduleStartTime) {
|
||||
this.scheduleStartTime = scheduleStartTime;
|
||||
}
|
||||
|
||||
public Date getScheduleEndTime() {
|
||||
return scheduleEndTime;
|
||||
}
|
||||
|
||||
public void setScheduleEndTime(Date scheduleEndTime) {
|
||||
this.scheduleEndTime = scheduleEndTime;
|
||||
}
|
||||
|
||||
public BigDecimal getEarlyTime() {
|
||||
return earlyTime;
|
||||
}
|
||||
|
||||
public void setEarlyTime(BigDecimal earlyTime) {
|
||||
this.earlyTime = earlyTime;
|
||||
}
|
||||
|
||||
public BigDecimal getLateTime() {
|
||||
return lateTime;
|
||||
}
|
||||
|
||||
public void setLateTime(BigDecimal lateTime) {
|
||||
this.lateTime = lateTime;
|
||||
}
|
||||
|
||||
public String getActionName() {
|
||||
return actionName;
|
||||
}
|
||||
|
||||
public void setActionName(String actionName) {
|
||||
this.actionName = actionName;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return unit;
|
||||
}
|
||||
|
||||
public void setUnit(String unit) {
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public Long getPlanPeriod() {
|
||||
return planPeriod;
|
||||
}
|
||||
|
||||
public void setPlanPeriod(Long planPeriod) {
|
||||
this.planPeriod = planPeriod;
|
||||
}
|
||||
|
||||
public String getMaintainInspectListBo() {
|
||||
return maintainInspectListBo;
|
||||
}
|
||||
|
||||
public void setMaintainInspectListBo(String maintainInspectListBo) {
|
||||
this.maintainInspectListBo = maintainInspectListBo;
|
||||
}
|
||||
|
||||
public String getCreateUser() {
|
||||
return createUser;
|
||||
}
|
||||
|
||||
public void setCreateUser(String createUser) {
|
||||
this.createUser = createUser;
|
||||
}
|
||||
|
||||
public String getModifyUser() {
|
||||
return modifyUser;
|
||||
}
|
||||
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
public List<MaintainPlanEquip> getMaintainPlanEquips() {
|
||||
return maintainPlanEquips;
|
||||
}
|
||||
|
||||
public void setMaintainPlanEquips(List<MaintainPlanEquip> maintainPlanEquips) {
|
||||
this.maintainPlanEquips = maintainPlanEquips;
|
||||
}
|
||||
|
||||
public List<MaintainPlanItem> getMaintainPlanItems() {
|
||||
return maintainPlanItems;
|
||||
}
|
||||
|
||||
public void setMaintainPlanItems(List<MaintainPlanItem> maintainPlanItems) {
|
||||
this.maintainPlanItems = maintainPlanItems;
|
||||
}
|
||||
|
||||
public String getFileNumber() {
|
||||
return fileNumber;
|
||||
}
|
||||
|
||||
public void setFileNumber(String fileNumber) {
|
||||
this.fileNumber = fileNumber;
|
||||
}
|
||||
|
||||
public String getEmailGroup() {
|
||||
return emailGroup;
|
||||
}
|
||||
|
||||
public void setEmailGroup(String emailGroup) {
|
||||
this.emailGroup = emailGroup;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "MaintainPlan{" +
|
||||
"handle = " + handle +
|
||||
", site = " + site +
|
||||
", revision = " + revision +
|
||||
", description = " + description +
|
||||
", currentRevision = " + currentRevision +
|
||||
", statusBo = " + statusBo +
|
||||
", planNo = " + planNo +
|
||||
", maintainType = " + maintainType +
|
||||
", scheduleStartTime = " + scheduleStartTime +
|
||||
", scheduleEndTime = " + scheduleEndTime +
|
||||
", earlyTime = " + earlyTime +
|
||||
", lateTime = " + lateTime +
|
||||
", actionName = " + actionName +
|
||||
", unit = " + unit +
|
||||
", maintainInspectListBo = " + maintainInspectListBo +
|
||||
", createUser = " + createUser +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", modifyUser = " + modifyUser +
|
||||
", modifiedDateTime = " + modifiedDateTime +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,149 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-12-31
|
||||
*/
|
||||
|
||||
@TableName("PMS_MAINTAIN_PLAN_EQUIP")
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class MaintainPlanEquip extends Model<MaintainPlanEquip> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("MAINTAIN_PLAN_BO")
|
||||
private String maintainPlanBo;
|
||||
@TableField("RESRCE")
|
||||
private String resrce;
|
||||
@TableField("RESRCE_DESC")
|
||||
private String resrceDesc;
|
||||
@TableField("NEXT_TIME")
|
||||
private Date nextTime;
|
||||
@TableField("IS_ENABLE")
|
||||
private String isEnable;
|
||||
@TableField("CREATE_USER")
|
||||
private String createUser;
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private Date createdDateTime;
|
||||
@TableField("MODIFY_USER")
|
||||
private String modifyUser;
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getMaintainPlanBo() {
|
||||
return maintainPlanBo;
|
||||
}
|
||||
|
||||
public void setMaintainPlanBo(String maintainPlanBo) {
|
||||
this.maintainPlanBo = maintainPlanBo;
|
||||
}
|
||||
|
||||
public String getResrce() {
|
||||
return resrce;
|
||||
}
|
||||
|
||||
public void setResrce(String resrce) {
|
||||
this.resrce = resrce;
|
||||
}
|
||||
|
||||
public String getResrceDesc() {
|
||||
return resrceDesc;
|
||||
}
|
||||
|
||||
public void setResrceDesc(String resrceDesc) {
|
||||
this.resrceDesc = resrceDesc;
|
||||
}
|
||||
|
||||
public Date getNextTime() {
|
||||
return nextTime;
|
||||
}
|
||||
|
||||
public void setNextTime(Date nextTime) {
|
||||
this.nextTime = nextTime;
|
||||
}
|
||||
|
||||
public String getIsEnable() {
|
||||
return isEnable;
|
||||
}
|
||||
|
||||
public void setIsEnable(String isEnable) {
|
||||
this.isEnable = isEnable;
|
||||
}
|
||||
|
||||
public String getCreateUser() {
|
||||
return createUser;
|
||||
}
|
||||
|
||||
public void setCreateUser(String createUser) {
|
||||
this.createUser = createUser;
|
||||
}
|
||||
|
||||
public String getModifyUser() {
|
||||
return modifyUser;
|
||||
}
|
||||
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "MaintainPlanEquip{" +
|
||||
"handle = " + handle +
|
||||
", maintainPlanBo = " + maintainPlanBo +
|
||||
", resrce = " + resrce +
|
||||
", resrceDesc = " + resrceDesc +
|
||||
", nextTime = " + nextTime +
|
||||
", isEnable = " + isEnable +
|
||||
", createUser = " + createUser +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", modifyUser = " + modifyUser +
|
||||
", modifiedDateTime = " + modifiedDateTime +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,170 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-12-29
|
||||
*/
|
||||
|
||||
@TableName("PMS_MAINTAIN_PLAN_ITEM")
|
||||
|
||||
public class MaintainPlanItem extends Model<MaintainPlanItem> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("MAINTAIN_PLAN_BO")
|
||||
private String maintainPlanBo;
|
||||
@TableField("ITEM_SEQ")
|
||||
private String itemSeq;
|
||||
@TableField("ITEM_NO")
|
||||
private String itemNo;
|
||||
@TableField("ITEM_DESCRIPTION")
|
||||
private String itemDescription;
|
||||
@TableField("RESULT_TYPE")
|
||||
private String resultType;
|
||||
@TableField("STANDARD_VALUE")
|
||||
private String standardValue;
|
||||
@TableField("UNIT")
|
||||
private String unit;
|
||||
@TableField("MAX_VALUE")
|
||||
private Double maxValue;
|
||||
@TableField("MIN_VALUE")
|
||||
private Double minValue;
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private Date createdDateTime;
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getMaintainPlanBo() {
|
||||
return maintainPlanBo;
|
||||
}
|
||||
|
||||
public void setMaintainPlanBo(String maintainPlanBo) {
|
||||
this.maintainPlanBo = maintainPlanBo;
|
||||
}
|
||||
|
||||
public String getItemSeq() {
|
||||
return itemSeq;
|
||||
}
|
||||
|
||||
public void setItemSeq(String itemSeq) {
|
||||
this.itemSeq = itemSeq;
|
||||
}
|
||||
|
||||
public String getItemNo() {
|
||||
return itemNo;
|
||||
}
|
||||
|
||||
public void setItemNo(String itemNo) {
|
||||
this.itemNo = itemNo;
|
||||
}
|
||||
|
||||
public String getItemDescription() {
|
||||
return itemDescription;
|
||||
}
|
||||
|
||||
public void setItemDescription(String itemDescription) {
|
||||
this.itemDescription = itemDescription;
|
||||
}
|
||||
|
||||
public String getResultType() {
|
||||
return resultType;
|
||||
}
|
||||
|
||||
public void setResultType(String resultType) {
|
||||
this.resultType = resultType;
|
||||
}
|
||||
|
||||
public String getStandardValue() {
|
||||
return standardValue;
|
||||
}
|
||||
|
||||
public void setStandardValue(String standardValue) {
|
||||
this.standardValue = standardValue;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return unit;
|
||||
}
|
||||
|
||||
public void setUnit(String unit) {
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public Double getMaxValue() {
|
||||
return maxValue;
|
||||
}
|
||||
|
||||
public void setMaxValue(Double maxValue) {
|
||||
this.maxValue = maxValue;
|
||||
}
|
||||
|
||||
public Double getMinValue() {
|
||||
return minValue;
|
||||
}
|
||||
|
||||
public void setMinValue(Double minValue) {
|
||||
this.minValue = minValue;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "MaintainInspectListItem{" +
|
||||
"handle = " + handle +
|
||||
", itemSeq = " + itemSeq +
|
||||
", itemNo = " + itemNo +
|
||||
", itemDescription = " + itemDescription +
|
||||
", resultType = " + resultType +
|
||||
", standardValue = " + standardValue +
|
||||
", unit = " + unit +
|
||||
", maxValue = " + maxValue +
|
||||
", minValue = " + minValue +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", modifiedDateTime = " + modifiedDateTime +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,215 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2021-09-24
|
||||
*/
|
||||
|
||||
@TableName("PMS_MAINTAIN_PLAN_TRIGGER_LOG")
|
||||
|
||||
public class MaintainPlanTriggerLog extends Model<MaintainPlanTriggerLog> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
@TableField("MAINTAIN_PLAN_BO")
|
||||
private String maintainPlanBo;
|
||||
@TableField("PLAN_NO")
|
||||
private String planNo;
|
||||
@TableField("FORMER_STATUS")
|
||||
private String formerStatus;
|
||||
@TableField("TRIGGER_BY")
|
||||
private String triggerBy;
|
||||
@TableField("MESSAGE")
|
||||
private String message;
|
||||
@TableField("FORMER_RESRCE_ENABLE")
|
||||
private String formerResrceEnable;
|
||||
@TableField("NOW_RESRCE_ENABLE")
|
||||
private String nowResrceEnable;
|
||||
@TableField("RESRCE_TIME_CHANGE")
|
||||
private String resrceTimeChange;
|
||||
@TableField("RESRCE")
|
||||
private String resrce;
|
||||
@TableField("NEXT_TIME")
|
||||
private Date nextTime;
|
||||
@TableField("CREATE_USER")
|
||||
private String createUser;
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private Date createdDateTime;
|
||||
@TableField("MODIFY_USER")
|
||||
private String modifyUser;
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getMaintainPlanBo() {
|
||||
return maintainPlanBo;
|
||||
}
|
||||
|
||||
public void setMaintainPlanBo(String maintainPlanBo) {
|
||||
this.maintainPlanBo = maintainPlanBo;
|
||||
}
|
||||
|
||||
public String getPlanNo() {
|
||||
return planNo;
|
||||
}
|
||||
|
||||
public void setPlanNo(String planNo) {
|
||||
this.planNo = planNo;
|
||||
}
|
||||
|
||||
public String getFormerStatus() {
|
||||
return formerStatus;
|
||||
}
|
||||
|
||||
public void setFormerStatus(String formerStatus) {
|
||||
this.formerStatus = formerStatus;
|
||||
}
|
||||
|
||||
public String getTriggerBy() {
|
||||
return triggerBy;
|
||||
}
|
||||
|
||||
public void setTriggerBy(String triggerBy) {
|
||||
this.triggerBy = triggerBy;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public String getFormerResrceEnable() {
|
||||
return formerResrceEnable;
|
||||
}
|
||||
|
||||
public void setFormerResrceEnable(String formerResrceEnable) {
|
||||
this.formerResrceEnable = formerResrceEnable;
|
||||
}
|
||||
|
||||
public String getNowResrceEnable() {
|
||||
return nowResrceEnable;
|
||||
}
|
||||
|
||||
public void setNowResrceEnable(String nowResrceEnable) {
|
||||
this.nowResrceEnable = nowResrceEnable;
|
||||
}
|
||||
|
||||
public String getResrceTimeChange() {
|
||||
return resrceTimeChange;
|
||||
}
|
||||
|
||||
public void setResrceTimeChange(String resrceTimeChange) {
|
||||
this.resrceTimeChange = resrceTimeChange;
|
||||
}
|
||||
|
||||
public String getResrce() {
|
||||
return resrce;
|
||||
}
|
||||
|
||||
public void setResrce(String resrce) {
|
||||
this.resrce = resrce;
|
||||
}
|
||||
|
||||
public String getCreateUser() {
|
||||
return createUser;
|
||||
}
|
||||
|
||||
public void setCreateUser(String createUser) {
|
||||
this.createUser = createUser;
|
||||
}
|
||||
|
||||
public String getModifyUser() {
|
||||
return modifyUser;
|
||||
}
|
||||
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
public Date getNextTime() {
|
||||
return nextTime;
|
||||
}
|
||||
|
||||
public void setNextTime(Date nextTime) {
|
||||
this.nextTime = nextTime;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "MaintainPlanTriggerLog{" +
|
||||
"handle = " + handle +
|
||||
", site = " + site +
|
||||
", maintainPlanBo = " + maintainPlanBo +
|
||||
", planNo = " + planNo +
|
||||
", formerStatus = " + formerStatus +
|
||||
", triggerBy = " + triggerBy +
|
||||
", message = " + message +
|
||||
", formerResrceEnable = " + formerResrceEnable +
|
||||
", nowResrceEnable = " + nowResrceEnable +
|
||||
", resrceTimeChange = " + resrceTimeChange +
|
||||
", resrce = " + resrce +
|
||||
", nextTime = " + nextTime +
|
||||
", createUser = " + createUser +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", modifyUser = " + modifyUser +
|
||||
", modifiedDateTime = " + modifiedDateTime +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,342 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author syngna
|
||||
* @since 2019-01-10
|
||||
*/
|
||||
@TableName("PMS_NEXT_NUMBER")
|
||||
public class NextNumber extends Model<NextNumber> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
/**
|
||||
* 更新时间戳
|
||||
*/
|
||||
@TableField("CHANGE_STAMP")
|
||||
private String changeStamp;
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
/**
|
||||
* 跳过
|
||||
*/
|
||||
@TableField("SKIP_SEQ")
|
||||
private String skipSeq;
|
||||
/**
|
||||
* 下一编号类别,用于区分不同编号规则
|
||||
*/
|
||||
@TableField("NEXT_NUMBER_TYPE")
|
||||
private String nextNumberType;
|
||||
/**
|
||||
* 下一编号描述
|
||||
*/
|
||||
@TableField("DESCRIPTION")
|
||||
private String description;
|
||||
/**
|
||||
* 前缀
|
||||
*/
|
||||
@TableField("PREFIX")
|
||||
private String prefix;
|
||||
/**
|
||||
* 后缀
|
||||
*/
|
||||
@TableField("SUFFIX")
|
||||
private String suffix;
|
||||
/**
|
||||
* 序列号进制数
|
||||
*/
|
||||
@TableField("SEQUENCE_BASE")
|
||||
private String sequenceBase;
|
||||
/**
|
||||
* 最大序列号
|
||||
*/
|
||||
@TableField("MAX_SEQUENCE")
|
||||
private String maxSequence;
|
||||
/**
|
||||
* 序列号长度
|
||||
*/
|
||||
@TableField("SEQUENCE_LENGTH")
|
||||
private String sequenceLength;
|
||||
/**
|
||||
* 当前序列号,根据当前编号以此生成
|
||||
*/
|
||||
@TableField("CURRENT_SEQUENCE")
|
||||
private String currentSequence;
|
||||
/**
|
||||
* 暂未使用
|
||||
*/
|
||||
@TableField("NEXT_NUMBER_FORMAT")
|
||||
private String nextNumberFormat;
|
||||
/**
|
||||
* 最小序列号,重置序列号时的初始序号
|
||||
*/
|
||||
@TableField("MIN_SEQUENCE")
|
||||
private String minSequence;
|
||||
/**
|
||||
* 序号增长步长
|
||||
*/
|
||||
@TableField("INCR")
|
||||
private String incr;
|
||||
/**
|
||||
* 报警阈值
|
||||
*/
|
||||
@TableField("WARNING_THRESHOLD")
|
||||
private String warningThreshold;
|
||||
/**
|
||||
* 重置规则
|
||||
* * N: 从不
|
||||
* * A: 总是
|
||||
* * D: 每天
|
||||
* * W: 每周
|
||||
* * M: 每月
|
||||
* * Y: 每年
|
||||
* * E: 每周 - 星期日
|
||||
* * F: 每周 - 星期一
|
||||
* * G: 每周 - 星期二
|
||||
* * H: 每周 - 星期三
|
||||
* * I: 每周 - 星期四
|
||||
* * J; 每周 - 星期五
|
||||
* * K: 每周 - 星期六
|
||||
*/
|
||||
@TableField("`RESET`")
|
||||
private String reset;
|
||||
/**
|
||||
* 自定义编号绑定的作业
|
||||
*/
|
||||
@TableField("ACTIVITY")
|
||||
private String activity;
|
||||
/**
|
||||
* 是否立即提交,暂未使用
|
||||
*/
|
||||
@TableField("COMMIT_IMMEDIATELY")
|
||||
private String commitImmediately;
|
||||
/**
|
||||
* 编号规则创建时间
|
||||
*/
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
/**
|
||||
* 编号规则更新时间
|
||||
*/
|
||||
private Date createdDateTime;
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getChangeStamp() {
|
||||
return changeStamp;
|
||||
}
|
||||
|
||||
public void setChangeStamp(String changeStamp) {
|
||||
this.changeStamp = changeStamp;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public String getSkipSeq() {
|
||||
return skipSeq;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public void setSkipSeq(String skipSeq) {
|
||||
this.skipSeq = skipSeq;
|
||||
}
|
||||
|
||||
public String getNextNumberType() {
|
||||
return nextNumberType;
|
||||
}
|
||||
|
||||
public void setNextNumberType(String nextNumberType) {
|
||||
this.nextNumberType = nextNumberType;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getPrefix() {
|
||||
return prefix;
|
||||
}
|
||||
|
||||
public void setPrefix(String prefix) {
|
||||
this.prefix = prefix;
|
||||
}
|
||||
|
||||
public String getSuffix() {
|
||||
return suffix;
|
||||
}
|
||||
|
||||
public void setSuffix(String suffix) {
|
||||
this.suffix = suffix;
|
||||
}
|
||||
|
||||
public String getSequenceBase() {
|
||||
return sequenceBase;
|
||||
}
|
||||
|
||||
public void setSequenceBase(String sequenceBase) {
|
||||
this.sequenceBase = sequenceBase;
|
||||
}
|
||||
|
||||
public String getMaxSequence() {
|
||||
return maxSequence;
|
||||
}
|
||||
|
||||
public void setMaxSequence(String maxSequence) {
|
||||
this.maxSequence = maxSequence;
|
||||
}
|
||||
|
||||
public String getSequenceLength() {
|
||||
return sequenceLength;
|
||||
}
|
||||
|
||||
public void setSequenceLength(String sequenceLength) {
|
||||
this.sequenceLength = sequenceLength;
|
||||
}
|
||||
|
||||
public String getCurrentSequence() {
|
||||
return currentSequence;
|
||||
}
|
||||
|
||||
public void setCurrentSequence(String currentSequence) {
|
||||
this.currentSequence = currentSequence;
|
||||
}
|
||||
|
||||
public String getNextNumberFormat() {
|
||||
return nextNumberFormat;
|
||||
}
|
||||
|
||||
public void setNextNumberFormat(String nextNumberFormat) {
|
||||
this.nextNumberFormat = nextNumberFormat;
|
||||
}
|
||||
|
||||
public String getMinSequence() {
|
||||
return minSequence;
|
||||
}
|
||||
|
||||
public void setMinSequence(String minSequence) {
|
||||
this.minSequence = minSequence;
|
||||
}
|
||||
|
||||
public String getIncr() {
|
||||
return incr;
|
||||
}
|
||||
|
||||
public void setIncr(String incr) {
|
||||
this.incr = incr;
|
||||
}
|
||||
|
||||
public String getWarningThreshold() {
|
||||
return warningThreshold;
|
||||
}
|
||||
|
||||
public void setWarningThreshold(String warningThreshold) {
|
||||
this.warningThreshold = warningThreshold;
|
||||
}
|
||||
|
||||
public String getReset() {
|
||||
return reset;
|
||||
}
|
||||
|
||||
public void setReset(String reset) {
|
||||
this.reset = reset;
|
||||
}
|
||||
|
||||
public String getActivity() {
|
||||
return activity;
|
||||
}
|
||||
|
||||
public void setActivity(String activity) {
|
||||
this.activity = activity;
|
||||
}
|
||||
|
||||
public String getCommitImmediately() {
|
||||
return commitImmediately;
|
||||
}
|
||||
|
||||
public void setCommitImmediately(String commitImmediately) {
|
||||
this.commitImmediately = commitImmediately;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "NextNumber{" +
|
||||
"handle='" + handle + '\'' +
|
||||
", changeStamp='" + changeStamp + '\'' +
|
||||
", site='" + site + '\'' +
|
||||
", skip='" + skipSeq + '\'' +
|
||||
", nextNumberType='" + nextNumberType + '\'' +
|
||||
", description='" + description + '\'' +
|
||||
", prefix='" + prefix + '\'' +
|
||||
", suffix='" + suffix + '\'' +
|
||||
", sequenceBase='" + sequenceBase + '\'' +
|
||||
", maxSequence='" + maxSequence + '\'' +
|
||||
", sequenceLength='" + sequenceLength + '\'' +
|
||||
", currentSequence='" + currentSequence + '\'' +
|
||||
", nextNumberFormat='" + nextNumberFormat + '\'' +
|
||||
", minSequence='" + minSequence + '\'' +
|
||||
", incr='" + incr + '\'' +
|
||||
", warningThreshold='" + warningThreshold + '\'' +
|
||||
", reset='" + reset + '\'' +
|
||||
", activity='" + activity + '\'' +
|
||||
", commitImmediately='" + commitImmediately + '\'' +
|
||||
", createdDateTime=" + createdDateTime +
|
||||
", modifiedDateTime=" + modifiedDateTime +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
public class NextNumberBOHandle {
|
||||
|
||||
protected String value;
|
||||
|
||||
public NextNumberBOHandle(String site, String idType)
|
||||
{
|
||||
StringBuffer sb = new StringBuffer();
|
||||
sb.append("NextNumberBO").append(":").append(site).append(",").append(idType);
|
||||
setValue(sb.toString());
|
||||
}
|
||||
|
||||
public String getValue()
|
||||
{
|
||||
return this.value;
|
||||
}
|
||||
|
||||
public void setValue(String value)
|
||||
{
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,107 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2025, mom All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the foreverwin.com developer nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
* Author: mom
|
||||
*/
|
||||
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author mom code generator
|
||||
* @date 2024-04-28 11:19:48
|
||||
*/
|
||||
@Data
|
||||
@TableName("pms_equip_data")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "")
|
||||
public class PmsEquipData extends Model<PmsEquipData> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 类型编号
|
||||
*/
|
||||
@ApiModelProperty(value="类型编号")
|
||||
private String typeId;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
@ApiModelProperty(value="描述")
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 编号类型
|
||||
*/
|
||||
@ApiModelProperty(value="编号类型")
|
||||
private String type;
|
||||
|
||||
|
||||
/**
|
||||
* dateCreate
|
||||
*/
|
||||
@ApiModelProperty(value="dateCreate")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* dateUpdate
|
||||
*/
|
||||
@ApiModelProperty(value="dateUpdate")
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
/**
|
||||
* creator
|
||||
*/
|
||||
@ApiModelProperty(value="creator")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* updater
|
||||
*/
|
||||
@ApiModelProperty(value="updater")
|
||||
private String updater;
|
||||
|
||||
@TableField(exist = false)
|
||||
private List<PmsEquipDataDetail> dataDetailList;
|
||||
|
||||
}
|
||||
@ -0,0 +1,143 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2025, mom All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the foreverwin.com developer nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
* Author: mom
|
||||
*/
|
||||
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author mom code generator
|
||||
* @date 2024-04-28 13:15:25
|
||||
*/
|
||||
@Data
|
||||
@TableName("pms_equip_data_detail")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "")
|
||||
public class PmsEquipDataDetail extends Model<PmsEquipDataDetail> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 主表主键
|
||||
*/
|
||||
@ApiModelProperty(value="主表主键")
|
||||
private String equipDataBo;
|
||||
|
||||
/**
|
||||
* 字段代码
|
||||
*/
|
||||
@ApiModelProperty(value="字段代码")
|
||||
private String equipId;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
@ApiModelProperty(value="描述")
|
||||
private String equipDescription;
|
||||
|
||||
/**
|
||||
* 扩展字段1
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段1")
|
||||
private String extend1;
|
||||
|
||||
/**
|
||||
* 扩展字段2
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段2")
|
||||
private String extend2;
|
||||
|
||||
/**
|
||||
* 扩展字段3
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段3")
|
||||
private String extend3;
|
||||
|
||||
/**
|
||||
* 扩展字段4
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段4")
|
||||
private String extend4;
|
||||
|
||||
/**
|
||||
* 扩展字段5
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段5")
|
||||
private String extend5;
|
||||
|
||||
/**
|
||||
* 扩展字段6
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段6")
|
||||
private String extend6;
|
||||
|
||||
/**
|
||||
* 是否生效
|
||||
*/
|
||||
@ApiModelProperty(value="是否生效")
|
||||
private String isUsed;
|
||||
|
||||
/**
|
||||
* dateCreate
|
||||
*/
|
||||
@ApiModelProperty(value="dateCreate")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* dateUpdate
|
||||
*/
|
||||
@ApiModelProperty(value="dateUpdate")
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
/**
|
||||
* creator
|
||||
*/
|
||||
@ApiModelProperty(value="creator")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* updater
|
||||
*/
|
||||
@ApiModelProperty(value="updater")
|
||||
private String updater;
|
||||
|
||||
}
|
||||
@ -0,0 +1,108 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2025, mom All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the foreverwin.com developer nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
* Author: mom
|
||||
*/
|
||||
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 设备警报表
|
||||
*
|
||||
* @author mom code generator
|
||||
* @date 2024-10-09 14:17:17
|
||||
*/
|
||||
@Data
|
||||
@TableName("pms_equipment_alarm_record")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "设备警报表")
|
||||
public class PmsEquipmentAlarmRecord extends Model<PmsEquipmentAlarmRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 设备
|
||||
*/
|
||||
@ApiModelProperty(value="设备")
|
||||
private String equipment;
|
||||
|
||||
/**
|
||||
* 警报描述
|
||||
*/
|
||||
@ApiModelProperty(value="警报描述")
|
||||
private String alarmMsg;
|
||||
|
||||
/**
|
||||
* 是否关闭
|
||||
*/
|
||||
@ApiModelProperty(value="是否关闭")
|
||||
private String isClose;
|
||||
|
||||
/**
|
||||
* 警报次数
|
||||
*/
|
||||
@ApiModelProperty(value="警报次数")
|
||||
private BigDecimal alarmQty;
|
||||
|
||||
/**
|
||||
* 警报开始时间
|
||||
*/
|
||||
@ApiModelProperty(value="警报开始时间")
|
||||
private String startTime;
|
||||
|
||||
/**
|
||||
* 警报结束时间
|
||||
*/
|
||||
@ApiModelProperty(value="警报结束时间")
|
||||
private String endTime;
|
||||
|
||||
/**
|
||||
* 创建人员
|
||||
*/
|
||||
@ApiModelProperty(value="创建人员")
|
||||
private String createUser;
|
||||
|
||||
/**
|
||||
* 创建日期
|
||||
*/
|
||||
@ApiModelProperty(value="创建日期")
|
||||
private LocalDateTime createDateTime;
|
||||
|
||||
}
|
||||
@ -0,0 +1,138 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author syngna
|
||||
* @since 2021-07-15
|
||||
*/
|
||||
|
||||
@TableName("PMS_FILE_UPLOAD")
|
||||
|
||||
public class PmsFileUpload extends Model<PmsFileUpload> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
@TableField("ACTIVITY")
|
||||
private String activity;
|
||||
@TableField("FILE_NAME")
|
||||
private String fileName;
|
||||
@TableField("INTERNAL_FILE_NAME")
|
||||
private String internalFileName;
|
||||
@TableField("FILE_TYPE")
|
||||
private String fileType;
|
||||
@TableField("URL")
|
||||
private String url;
|
||||
@TableField("MODIFY_USER")
|
||||
private String modifyUser;
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private LocalDateTime modifiedDateTime;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getActivity() {
|
||||
return activity;
|
||||
}
|
||||
|
||||
public void setActivity(String activity) {
|
||||
this.activity = activity;
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public String getInternalFileName() {
|
||||
return internalFileName;
|
||||
}
|
||||
|
||||
public void setInternalFileName(String internalFileName) {
|
||||
this.internalFileName = internalFileName;
|
||||
}
|
||||
|
||||
public String getFileType() {
|
||||
return fileType;
|
||||
}
|
||||
|
||||
public void setFileType(String fileType) {
|
||||
this.fileType = fileType;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getModifyUser() {
|
||||
return modifyUser;
|
||||
}
|
||||
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
public LocalDateTime getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(LocalDateTime modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "FileUpload{" +
|
||||
"handle = " + handle +
|
||||
", site = " + site +
|
||||
", activity = " + activity +
|
||||
", fileName = " + fileName +
|
||||
", fileType = " + fileType +
|
||||
", url = " + url +
|
||||
", modifyUser = " + modifyUser +
|
||||
", modifiedDateTime = " + modifiedDateTime +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2025, mom All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the foreverwin.com developer nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
* Author: mom
|
||||
*/
|
||||
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import com.foreverwin.iep.common.utils.HandleBoProcessor;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 点检控制表
|
||||
*
|
||||
* @author mom code generator
|
||||
* @date 2024-09-23 13:44:01
|
||||
*/
|
||||
@Data
|
||||
@TableName("pms_inspect_control")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "点检控制表")
|
||||
public class PmsInspectControl extends Model<PmsInspectControl> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 设备
|
||||
*/
|
||||
@ApiModelProperty(value="设备")
|
||||
private String resrce;
|
||||
|
||||
/**
|
||||
* 清单编号
|
||||
*/
|
||||
@ApiModelProperty(value="清单编号")
|
||||
private String listNo;
|
||||
|
||||
/**
|
||||
* 项目编号
|
||||
*/
|
||||
@ApiModelProperty(value="项目编号")
|
||||
private String itemNo;
|
||||
|
||||
/**
|
||||
* 是否点检
|
||||
*/
|
||||
@ApiModelProperty(value="是否点检")
|
||||
private String isInspect;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty(value="备注")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 创建日期
|
||||
*/
|
||||
@ApiModelProperty(value="创建日期")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 更新日期
|
||||
*/
|
||||
@ApiModelProperty(value="更新日期")
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
/**
|
||||
* 创建人员
|
||||
*/
|
||||
@ApiModelProperty(value="创建人员")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 更新人员
|
||||
*/
|
||||
@ApiModelProperty(value="更新人员")
|
||||
private String updater;
|
||||
|
||||
public static String genHandle(String site, String resrce, String listNo, String itemNo) {
|
||||
return HandleBoProcessor.genHandle("PmsInspectControlBO", site, resrce, listNo, itemNo);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,196 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2025, mom All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the foreverwin.com developer nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
* Author: mom
|
||||
*/
|
||||
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author mom code generator
|
||||
* @date 2024-05-16 16:29:26
|
||||
*/
|
||||
@Data
|
||||
@TableName("pms_oee_report")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "")
|
||||
public class PmsOeeReport extends Model<PmsOeeReport> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 年月
|
||||
*/
|
||||
@ApiModelProperty(value="年月")
|
||||
private String date;
|
||||
|
||||
/**
|
||||
* 设备
|
||||
*/
|
||||
@ApiModelProperty(value = "设备")
|
||||
private String device;
|
||||
|
||||
/**
|
||||
* 设备描述
|
||||
*/
|
||||
@ApiModelProperty(value="设备描述")
|
||||
private String deviceDescription;
|
||||
|
||||
/**
|
||||
* 总时间
|
||||
*/
|
||||
@ApiModelProperty(value="总时间")
|
||||
private String totalTime;
|
||||
|
||||
/**
|
||||
* 负荷时间
|
||||
*/
|
||||
@ApiModelProperty(value="负荷时间")
|
||||
private String loadTime;
|
||||
|
||||
/**
|
||||
* 开动时间
|
||||
*/
|
||||
@ApiModelProperty(value="开动时间")
|
||||
private String startupTime;
|
||||
|
||||
/**
|
||||
* 停机时间
|
||||
*/
|
||||
@ApiModelProperty(value="停机时间")
|
||||
private String downtime;
|
||||
|
||||
/**
|
||||
* 开停机时间
|
||||
*/
|
||||
@ApiModelProperty(value="开停机时间")
|
||||
private String startupAnddowntime;
|
||||
|
||||
/**
|
||||
* 转产换型时间
|
||||
*/
|
||||
@ApiModelProperty(value="转产换型时间")
|
||||
private String changeoverTime;
|
||||
|
||||
/**
|
||||
* 工艺调试时间
|
||||
*/
|
||||
@ApiModelProperty(value="工艺调试时间")
|
||||
private String processCommissioningTime;
|
||||
|
||||
/**
|
||||
* 工艺异常断膜停机时间
|
||||
*/
|
||||
@ApiModelProperty(value="工艺异常断膜停机时间")
|
||||
private String processExceptionTime;
|
||||
|
||||
/**
|
||||
* 设备故障停机时间
|
||||
*/
|
||||
@ApiModelProperty(value="设备故障停机时间")
|
||||
private String equipmentDowntime;
|
||||
|
||||
/**
|
||||
* 其他(故障)停机时间
|
||||
*/
|
||||
@ApiModelProperty(value="其他(故障)停机时间")
|
||||
private String qiDowntime;
|
||||
|
||||
/**
|
||||
* 理论生产速度
|
||||
*/
|
||||
@ApiModelProperty(value="理论生产速度")
|
||||
private String theoreticalProductionSpeed;
|
||||
|
||||
/**
|
||||
* 实际生产速度
|
||||
*/
|
||||
@ApiModelProperty(value="实际生产速度")
|
||||
private String actualProductionSpeed;
|
||||
|
||||
/**
|
||||
* 半成品总面积(万平方)
|
||||
*/
|
||||
@ApiModelProperty(value="半成品总面积(万平方)")
|
||||
private String totalArea;
|
||||
|
||||
/**
|
||||
* 半成品合格面积(万平方)
|
||||
*/
|
||||
@ApiModelProperty(value="半成品合格面积(万平方)")
|
||||
private String eligibleArea;
|
||||
|
||||
/**
|
||||
* 时间开动率
|
||||
*/
|
||||
@ApiModelProperty(value="时间开动率")
|
||||
private String timeUtilizationRate;
|
||||
|
||||
/**
|
||||
* 性能开动率
|
||||
*/
|
||||
@ApiModelProperty(value="性能开动率")
|
||||
private String performanceUtilizationRate;
|
||||
|
||||
/**
|
||||
* 合格率
|
||||
*/
|
||||
@ApiModelProperty(value="合格率")
|
||||
private String rate;
|
||||
|
||||
/**
|
||||
* OEE
|
||||
*/
|
||||
@ApiModelProperty(value="OEE")
|
||||
private String oee;
|
||||
|
||||
/**
|
||||
* dateCreate
|
||||
*/
|
||||
@ApiModelProperty(value="dateCreate")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* creator
|
||||
*/
|
||||
@ApiModelProperty(value="creator")
|
||||
private String creator;
|
||||
|
||||
@TableField(exist = false)
|
||||
private List<PmsOeeReport> tableList;
|
||||
|
||||
}
|
||||
@ -0,0 +1,101 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2025, mom All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the foreverwin.com developer nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
* Author: mom
|
||||
*/
|
||||
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 蒸汽数据表
|
||||
*
|
||||
* @author mom code generator
|
||||
* @date 2024-09-25 11:17:16
|
||||
*/
|
||||
@Data
|
||||
@TableName("pms_resrce_q")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "蒸汽数据表")
|
||||
public class PmsResrceQ extends Model<PmsResrceQ> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 设备编号
|
||||
*/
|
||||
@ApiModelProperty(value="设备编号")
|
||||
private String resrce;
|
||||
|
||||
/**
|
||||
* 设备描述
|
||||
*/
|
||||
@ApiModelProperty(value="设备描述")
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 日期
|
||||
*/
|
||||
@ApiModelProperty(value="日期")
|
||||
private String steamDate;
|
||||
|
||||
/**
|
||||
* 值
|
||||
*/
|
||||
@ApiModelProperty(value="值")
|
||||
private String value;
|
||||
|
||||
/**
|
||||
* 创建日期
|
||||
*/
|
||||
@ApiModelProperty(value="创建日期")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 创建人员
|
||||
*/
|
||||
@ApiModelProperty(value="创建人员")
|
||||
private String creator;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String startDate;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String endDate;
|
||||
}
|
||||
@ -0,0 +1,124 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2025, mom All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the foreverwin.com developer nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
* Author: mom
|
||||
*/
|
||||
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 备品库存表
|
||||
*
|
||||
* @author mom code generator
|
||||
* @date 2024-03-04 13:24:51
|
||||
*/
|
||||
@Data
|
||||
@TableName("pms_spare_inventory")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "备品库存表")
|
||||
public class PmsSpareInventory extends Model<PmsSpareInventory> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 物料
|
||||
*/
|
||||
@ApiModelProperty(value="备品")
|
||||
private String spare;
|
||||
|
||||
/**
|
||||
* 物料描述
|
||||
*/
|
||||
@ApiModelProperty(value="物料描述")
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 存放位置
|
||||
*/
|
||||
@ApiModelProperty(value="存放位置")
|
||||
private String storageLocation;
|
||||
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
@ApiModelProperty(value="数量")
|
||||
private BigDecimal qty;
|
||||
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
@ApiModelProperty(value="单位")
|
||||
private String unit;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
@ApiModelProperty(value="状态")
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value="创建人")
|
||||
private String createUser;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
private LocalDateTime createDateTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@ApiModelProperty(value="更新时间")
|
||||
private LocalDateTime modifyDateTime;
|
||||
|
||||
/**
|
||||
* 更新人员
|
||||
*/
|
||||
@ApiModelProperty(value="更新人员")
|
||||
private String modifyUser;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String type;
|
||||
|
||||
}
|
||||
@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2025, mom All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the foreverwin.com developer nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
* Author: mom
|
||||
*/
|
||||
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 存放位置表
|
||||
*
|
||||
* @author mom code generator
|
||||
* @date 2024-03-06 09:36:50
|
||||
*/
|
||||
@Data
|
||||
@TableName("pms_storage_location")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "存放位置表")
|
||||
public class PmsStorageLocation extends Model<PmsStorageLocation> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 存放位置
|
||||
*/
|
||||
@ApiModelProperty(value="存放位置")
|
||||
private String storageLocation;
|
||||
|
||||
/**
|
||||
* 存放位置描述
|
||||
*/
|
||||
@ApiModelProperty(value="存放位置描述")
|
||||
private String description;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,496 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
|
||||
@TableName("PMS_REPAIR_ORDER")
|
||||
|
||||
public class RepairOrder extends Model<RepairOrder> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
@TableField("RESRCE")
|
||||
private String resrce;
|
||||
@TableField("RESRCE_DESC")
|
||||
private String resrceDesc;
|
||||
@TableField("REPAIR_NO")
|
||||
private String repairNo;
|
||||
@TableField("STOP_MACHINE")
|
||||
private String stopMachine;
|
||||
@TableField("STATUS_BO")
|
||||
private String statusBo;
|
||||
@TableField("CREATOR")
|
||||
private String reportMan;
|
||||
@TableField("CREATED_TIME")
|
||||
private Date reportTime;
|
||||
@TableField("CLOSED_TIME")
|
||||
private Date closedTime;
|
||||
@TableField("BROKEN_CODE")
|
||||
private String brokenCode;
|
||||
@TableField("BROKEN_TIME")
|
||||
private Date brokenTime;
|
||||
@TableField("BROKEN_DESC")
|
||||
private String phenomenonDesc;
|
||||
@TableField("REPAIR_GROUP")
|
||||
private String repairGroup;
|
||||
@TableField("REPAIR_GROUP2")
|
||||
private String repairGroup2;
|
||||
@TableField("PLAN_REPAIR_TIME")
|
||||
private Date adviseRepairTime;
|
||||
@TableField("START_REPAIR_TIME")
|
||||
private Date startRepairTime;
|
||||
@TableField("END_REPAIR_TIME")
|
||||
private Date endRepairTime;
|
||||
@TableField("REPAIR_DURATION")
|
||||
private String repairDuration;
|
||||
@TableField("REPAIR_MAN")
|
||||
private String repairMan;
|
||||
@TableField("REPAIRED_NUM")
|
||||
private Long repairedNum;
|
||||
@TableField("START_REPAIR_MAN")
|
||||
private String startRepairMan;
|
||||
@TableField("END_REPAIR_MAN")
|
||||
private String endRepairMan;
|
||||
@TableField(fill = FieldFill.UPDATE)
|
||||
private String roGroup;
|
||||
@TableField(fill = FieldFill.UPDATE)
|
||||
private String qaGroup;
|
||||
@TableField(fill = FieldFill.UPDATE)
|
||||
private String pdGroup;
|
||||
@TableField("PARENT_BO")
|
||||
private String parentBo;
|
||||
@TableField("FILE_UPLOAD_BO")
|
||||
private String fileUploadBo;
|
||||
@TableField("FILE")
|
||||
private String file;
|
||||
@TableField("CREATE_USER")
|
||||
private String createUser;
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private Date createdDateTime;
|
||||
@TableField("MODIFY_USER")
|
||||
private String modifyUser;
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
@TableField("REPAIR_COMMENT")
|
||||
private String repairComment;
|
||||
@TableField("REPAIR_USER")
|
||||
private String repairUser;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String url;
|
||||
@TableField(exist = false)
|
||||
private Long times;
|
||||
@TableField(exist = false)
|
||||
private Boolean roGroupChecked;
|
||||
@TableField(exist = false)
|
||||
private Boolean qaGroupChecked;
|
||||
@TableField(exist = false)
|
||||
private Boolean pdGroupChecked;
|
||||
@TableField(exist = false)
|
||||
private LocalDateTime confirmTime;
|
||||
@TableField(exist = false)
|
||||
private Long confirmTimes;
|
||||
|
||||
public LocalDateTime getConfirmTime() {
|
||||
return confirmTime;
|
||||
}
|
||||
|
||||
public void setConfirmTime(LocalDateTime confirmTime) {
|
||||
this.confirmTime = confirmTime;
|
||||
}
|
||||
|
||||
public Long getConfirmTimes() {
|
||||
return confirmTimes;
|
||||
}
|
||||
|
||||
public void setConfirmTimes(Long confirmTimes) {
|
||||
this.confirmTimes = confirmTimes;
|
||||
}
|
||||
|
||||
public String getRepairDuration() {
|
||||
return repairDuration;
|
||||
}
|
||||
|
||||
public void setRepairDuration(String repairDuration) {
|
||||
this.repairDuration = repairDuration;
|
||||
}
|
||||
|
||||
public String getRepairComment() {
|
||||
return repairComment;
|
||||
}
|
||||
|
||||
public void setRepairComment(String repairComment) {
|
||||
this.repairComment = repairComment;
|
||||
}
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getResrce() {
|
||||
return resrce;
|
||||
}
|
||||
|
||||
public void setResrce(String resrce) {
|
||||
this.resrce = resrce;
|
||||
}
|
||||
|
||||
public String getResrceDesc() {
|
||||
return resrceDesc;
|
||||
}
|
||||
|
||||
public void setResrceDesc(String resrceDesc) {
|
||||
this.resrceDesc = resrceDesc;
|
||||
}
|
||||
|
||||
public String getRepairNo() {
|
||||
return repairNo;
|
||||
}
|
||||
|
||||
public void setRepairNo(String repairNo) {
|
||||
this.repairNo = repairNo;
|
||||
}
|
||||
|
||||
public String getStopMachine() {
|
||||
return stopMachine;
|
||||
}
|
||||
|
||||
public void setStopMachine(String stopMachine) {
|
||||
this.stopMachine = stopMachine;
|
||||
}
|
||||
|
||||
public String getStatusBo() {
|
||||
return statusBo;
|
||||
}
|
||||
|
||||
public void setStatusBo(String statusBo) {
|
||||
this.statusBo = statusBo;
|
||||
}
|
||||
|
||||
public String getReportMan() {
|
||||
return reportMan;
|
||||
}
|
||||
|
||||
public void setReportMan(String reportMan) {
|
||||
this.reportMan = reportMan;
|
||||
}
|
||||
|
||||
public String getRepairGroup() {
|
||||
return repairGroup;
|
||||
}
|
||||
|
||||
public void setRepairGroup(String repairGroup) {
|
||||
this.repairGroup = repairGroup;
|
||||
}
|
||||
|
||||
public String getRepairGroup2() {
|
||||
return repairGroup2;
|
||||
}
|
||||
|
||||
public void setRepairGroup2(String repairGroup2) {
|
||||
this.repairGroup2 = repairGroup2;
|
||||
}
|
||||
|
||||
public Date getReportTime() {
|
||||
return reportTime;
|
||||
}
|
||||
|
||||
public void setReportTime(Date reportTime) {
|
||||
this.reportTime = reportTime;
|
||||
}
|
||||
|
||||
public Date getClosedTime() {
|
||||
return closedTime;
|
||||
}
|
||||
|
||||
public void setClosedTime(Date closedTime) {
|
||||
this.closedTime = closedTime;
|
||||
}
|
||||
|
||||
public String getBrokenCode() {
|
||||
return brokenCode;
|
||||
}
|
||||
|
||||
public void setBrokenCode(String brokenCode) {
|
||||
this.brokenCode = brokenCode;
|
||||
}
|
||||
|
||||
public Date getBrokenTime() {
|
||||
return brokenTime;
|
||||
}
|
||||
|
||||
public void setBrokenTime(Date brokenTime) {
|
||||
this.brokenTime = brokenTime;
|
||||
}
|
||||
|
||||
public String getPhenomenonDesc() {
|
||||
return phenomenonDesc;
|
||||
}
|
||||
|
||||
public void setPhenomenonDesc(String phenomenonDesc) {
|
||||
this.phenomenonDesc = phenomenonDesc;
|
||||
}
|
||||
|
||||
public Date getAdviseRepairTime() {
|
||||
return adviseRepairTime;
|
||||
}
|
||||
|
||||
public void setAdviseRepairTime(Date adviseRepairTime) {
|
||||
this.adviseRepairTime = adviseRepairTime;
|
||||
}
|
||||
|
||||
public Date getStartRepairTime() {
|
||||
return startRepairTime;
|
||||
}
|
||||
|
||||
public void setStartRepairTime(Date startRepairTime) {
|
||||
this.startRepairTime = startRepairTime;
|
||||
}
|
||||
|
||||
public Date getEndRepairTime() {
|
||||
return endRepairTime;
|
||||
}
|
||||
|
||||
public void setEndRepairTime(Date endRepairTime) {
|
||||
this.endRepairTime = endRepairTime;
|
||||
}
|
||||
|
||||
public String getRepairMan() {
|
||||
return repairMan;
|
||||
}
|
||||
|
||||
public void setRepairMan(String repairMan) {
|
||||
this.repairMan = repairMan;
|
||||
}
|
||||
|
||||
public Long getRepairedNum() {
|
||||
return repairedNum;
|
||||
}
|
||||
|
||||
public void setRepairedNum(Long repairedNum) {
|
||||
this.repairedNum = repairedNum;
|
||||
}
|
||||
|
||||
public String getStartRepairMan() {
|
||||
return startRepairMan;
|
||||
}
|
||||
|
||||
public void setStartRepairMan(String startRepairMan) {
|
||||
this.startRepairMan = startRepairMan;
|
||||
}
|
||||
|
||||
public String getEndRepairMan() {
|
||||
return endRepairMan;
|
||||
}
|
||||
|
||||
public void setEndRepairMan(String endRepairMan) {
|
||||
this.endRepairMan = endRepairMan;
|
||||
}
|
||||
|
||||
public String getRoGroup() {
|
||||
return roGroup;
|
||||
}
|
||||
|
||||
public void setRoGroup(String roGroup) {
|
||||
this.roGroup = roGroup;
|
||||
}
|
||||
|
||||
public String getQaGroup() {
|
||||
return qaGroup;
|
||||
}
|
||||
|
||||
public void setQaGroup(String qaGroup) {
|
||||
this.qaGroup = qaGroup;
|
||||
}
|
||||
|
||||
public String getPdGroup() {
|
||||
return pdGroup;
|
||||
}
|
||||
|
||||
public void setPdGroup(String pdGroup) {
|
||||
this.pdGroup = pdGroup;
|
||||
}
|
||||
|
||||
public String getParentBo() {
|
||||
return parentBo;
|
||||
}
|
||||
|
||||
public void setParentBo(String parentBo) {
|
||||
this.parentBo = parentBo;
|
||||
}
|
||||
|
||||
public String getFileUploadBo() {
|
||||
return fileUploadBo;
|
||||
}
|
||||
|
||||
public void setFileUploadBo(String fileUploadBo) {
|
||||
this.fileUploadBo = fileUploadBo;
|
||||
}
|
||||
|
||||
public String getFile() {
|
||||
return file;
|
||||
}
|
||||
|
||||
public void setFile(String file) {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public String getCreateUser() {
|
||||
return createUser;
|
||||
}
|
||||
|
||||
public void setCreateUser(String createUser) {
|
||||
this.createUser = createUser;
|
||||
}
|
||||
|
||||
public String getModifyUser() {
|
||||
return modifyUser;
|
||||
}
|
||||
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
public String getRepairUser() {
|
||||
return repairUser;
|
||||
}
|
||||
|
||||
public void setRepairUser(String repairUser) {
|
||||
this.repairUser = repairUser;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public Long getTimes() {
|
||||
return times;
|
||||
}
|
||||
|
||||
public void setTimes(Long times) {
|
||||
this.times = times;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
public Boolean getRoGroupChecked() {
|
||||
return roGroupChecked;
|
||||
}
|
||||
|
||||
public void setRoGroupChecked(Boolean roGroupChecked) {
|
||||
this.roGroupChecked = roGroupChecked;
|
||||
}
|
||||
|
||||
public Boolean getQaGroupChecked() {
|
||||
return qaGroupChecked;
|
||||
}
|
||||
|
||||
public void setQaGroupChecked(Boolean qaGroupChecked) {
|
||||
this.qaGroupChecked = qaGroupChecked;
|
||||
}
|
||||
|
||||
public Boolean getPdGroupChecked() {
|
||||
return pdGroupChecked;
|
||||
}
|
||||
|
||||
public void setPdGroupChecked(Boolean pdGroupChecked) {
|
||||
this.pdGroupChecked = pdGroupChecked;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "RepairOrder{" +
|
||||
"handle='" + handle + '\'' +
|
||||
", site='" + site + '\'' +
|
||||
", resrce='" + resrce + '\'' +
|
||||
", resrceDesc='" + resrceDesc + '\'' +
|
||||
", repairNo='" + repairNo + '\'' +
|
||||
", stopMachine='" + stopMachine + '\'' +
|
||||
", statusBo='" + statusBo + '\'' +
|
||||
", reportMan='" + reportMan + '\'' +
|
||||
", reportTime=" + reportTime +
|
||||
", closedTime=" + closedTime +
|
||||
", brokenCode='" + brokenCode + '\'' +
|
||||
", brokenTime=" + brokenTime +
|
||||
", phenomenonDesc='" + phenomenonDesc + '\'' +
|
||||
", repairGroup='" + repairGroup + '\'' +
|
||||
", repairGroup2='" + repairGroup2 + '\'' +
|
||||
", adviseRepairTime=" + adviseRepairTime +
|
||||
", startRepairTime=" + startRepairTime +
|
||||
", endRepairTime=" + endRepairTime +
|
||||
", repairDuration='" + repairDuration + '\'' +
|
||||
", repairMan='" + repairMan + '\'' +
|
||||
", repairedNum=" + repairedNum +
|
||||
", startRepairMan='" + startRepairMan + '\'' +
|
||||
", endRepairMan='" + endRepairMan + '\'' +
|
||||
", roGroup='" + roGroup + '\'' +
|
||||
", qaGroup='" + qaGroup + '\'' +
|
||||
", pdGroup='" + pdGroup + '\'' +
|
||||
", parentBo='" + parentBo + '\'' +
|
||||
", fileUploadBo='" + fileUploadBo + '\'' +
|
||||
", file='" + file + '\'' +
|
||||
", createUser='" + createUser + '\'' +
|
||||
", createdDateTime=" + createdDateTime +
|
||||
", modifyUser='" + modifyUser + '\'' +
|
||||
", modifiedDateTime=" + modifiedDateTime +
|
||||
", repairComment='" + repairComment + '\'' +
|
||||
", url='" + url + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,244 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-14
|
||||
*/
|
||||
|
||||
@TableName("PMS_REPAIR_ORDER_CONFIRM")
|
||||
|
||||
public class RepairOrderConfirm extends Model<RepairOrderConfirm> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
@TableField("REPAIR_ORDER_BO")
|
||||
private String repairOrderBo;
|
||||
@TableField("PD_MAN")
|
||||
private String pdMan;
|
||||
@TableField("PD_CONFIRM_TIME")
|
||||
private LocalDateTime pdConfirmTime;
|
||||
@TableField("PD_COMMENTS")
|
||||
private String pdComments;
|
||||
@TableField("QA_MAN")
|
||||
private String qaMan;
|
||||
@TableField("QA_CONFIRM_TIME")
|
||||
private LocalDateTime qaConfirmTime;
|
||||
@TableField("QA_COMMENTS")
|
||||
private String qaComments;
|
||||
@TableField("RO_MAN")
|
||||
private String roMan;
|
||||
@TableField("RO_CONFIRM_TIME")
|
||||
private LocalDateTime roConfirmTime;
|
||||
@TableField("RO_COMMENTS")
|
||||
private String roComments;
|
||||
@TableField("CANCEL_MAN")
|
||||
private String cancelMan;
|
||||
@TableField("CANCEL_TIME")
|
||||
private LocalDateTime cancelTime;
|
||||
@TableField("CANCEL_REASON")
|
||||
private String cancelReason;
|
||||
@TableField("FILE_UPLOAD_BO")
|
||||
private String fileUploadBo;
|
||||
@TableField("FILE")
|
||||
private String file;
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private Date createdDateTime;
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getRepairOrderBo() {
|
||||
return repairOrderBo;
|
||||
}
|
||||
|
||||
public void setRepairOrderBo(String repairOrderBo) {
|
||||
this.repairOrderBo = repairOrderBo;
|
||||
}
|
||||
|
||||
public String getPdMan() {
|
||||
return pdMan;
|
||||
}
|
||||
|
||||
public void setPdMan(String pdMan) {
|
||||
this.pdMan = pdMan;
|
||||
}
|
||||
|
||||
public LocalDateTime getPdConfirmTime() {
|
||||
return pdConfirmTime;
|
||||
}
|
||||
|
||||
public void setPdConfirmTime(LocalDateTime pdConfirmTime) {
|
||||
this.pdConfirmTime = pdConfirmTime;
|
||||
}
|
||||
|
||||
public String getPdComments() {
|
||||
return pdComments;
|
||||
}
|
||||
|
||||
public void setPdComments(String pdComments) {
|
||||
this.pdComments = pdComments;
|
||||
}
|
||||
|
||||
public String getQaMan() {
|
||||
return qaMan;
|
||||
}
|
||||
|
||||
public void setQaMan(String qaMan) {
|
||||
this.qaMan = qaMan;
|
||||
}
|
||||
|
||||
public LocalDateTime getQaConfirmTime() {
|
||||
return qaConfirmTime;
|
||||
}
|
||||
|
||||
public void setQaConfirmTime(LocalDateTime qaConfirmTime) {
|
||||
this.qaConfirmTime = qaConfirmTime;
|
||||
}
|
||||
|
||||
public String getQaComments() {
|
||||
return qaComments;
|
||||
}
|
||||
|
||||
public void setQaComments(String qaComments) {
|
||||
this.qaComments = qaComments;
|
||||
}
|
||||
|
||||
public String getRoMan() {
|
||||
return roMan;
|
||||
}
|
||||
|
||||
public void setRoMan(String roMan) {
|
||||
this.roMan = roMan;
|
||||
}
|
||||
|
||||
public LocalDateTime getRoConfirmTime() {
|
||||
return roConfirmTime;
|
||||
}
|
||||
|
||||
public void setRoConfirmTime(LocalDateTime roConfirmTime) {
|
||||
this.roConfirmTime = roConfirmTime;
|
||||
}
|
||||
|
||||
public String getRoComments() {
|
||||
return roComments;
|
||||
}
|
||||
|
||||
public void setRoComments(String roComments) {
|
||||
this.roComments = roComments;
|
||||
}
|
||||
|
||||
public String getCancelMan() {
|
||||
return cancelMan;
|
||||
}
|
||||
|
||||
public void setCancelMan(String cancelMan) {
|
||||
this.cancelMan = cancelMan;
|
||||
}
|
||||
|
||||
public LocalDateTime getCancelTime() {
|
||||
return cancelTime;
|
||||
}
|
||||
|
||||
public void setCancelTime(LocalDateTime cancelTime) {
|
||||
this.cancelTime = cancelTime;
|
||||
}
|
||||
|
||||
public String getCancelReason() {
|
||||
return cancelReason;
|
||||
}
|
||||
|
||||
public void setCancelReason(String cancelReason) {
|
||||
this.cancelReason = cancelReason;
|
||||
}
|
||||
|
||||
public String getFileUploadBo() {
|
||||
return fileUploadBo;
|
||||
}
|
||||
|
||||
public void setFileUploadBo(String fileUploadBo) {
|
||||
this.fileUploadBo = fileUploadBo;
|
||||
}
|
||||
|
||||
public String getFile() {
|
||||
return file;
|
||||
}
|
||||
|
||||
public void setFile(String file) {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "RepairOrderConfirm{" +
|
||||
"handle = " + handle +
|
||||
", site = " + site +
|
||||
", repairOrderBo = " + repairOrderBo +
|
||||
", pdMan = " + pdMan +
|
||||
", pdConfirmTime = " + pdConfirmTime +
|
||||
", pdComments = " + pdComments +
|
||||
", qaMan = " + qaMan +
|
||||
", qaConfirmTime = " + qaConfirmTime +
|
||||
", qaComments = " + qaComments +
|
||||
", cancelMan = " + cancelMan +
|
||||
", cancelTime = " + cancelTime +
|
||||
", cancelReason = " + cancelReason +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", modifiedDateTime = " + modifiedDateTime +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,160 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
|
||||
@TableName("PMS_REPAIR_ORDER_ITEM")
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class RepairOrderItem extends Model<RepairOrderItem> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("REPAIR_ORDER_BO")
|
||||
private String repairOrderBo;
|
||||
@TableField("BROKEN_CODE")
|
||||
private String brokenCode;
|
||||
@TableField("SPARE")
|
||||
private String spare;
|
||||
@TableField("SPARE_DESC")
|
||||
private String spareDesc;
|
||||
@TableField("QTY")
|
||||
private BigDecimal qty;
|
||||
@TableField("UNIT")
|
||||
private String unit;
|
||||
@TableField("COMMENTS")
|
||||
private String comment;
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private Date createdDateTime;
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
@TableField("PMS_SPARE_INVENTORY_BO")
|
||||
private String pmsSpareInventoryBo;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getRepairOrderBo() {
|
||||
return repairOrderBo;
|
||||
}
|
||||
|
||||
public void setRepairOrderBo(String repairOrderBo) {
|
||||
this.repairOrderBo = repairOrderBo;
|
||||
}
|
||||
|
||||
public String getBrokenCode() {
|
||||
return brokenCode;
|
||||
}
|
||||
|
||||
public void setBrokenCode(String brokenCode) {
|
||||
this.brokenCode = brokenCode;
|
||||
}
|
||||
|
||||
public String getSpare() {
|
||||
return spare;
|
||||
}
|
||||
|
||||
public void setSpare(String spare) {
|
||||
this.spare = spare;
|
||||
}
|
||||
|
||||
public String getSpareDesc() {
|
||||
return spareDesc;
|
||||
}
|
||||
|
||||
public void setSpareDesc(String spareDesc) {
|
||||
this.spareDesc = spareDesc;
|
||||
}
|
||||
|
||||
public BigDecimal getQty() {
|
||||
return qty;
|
||||
}
|
||||
|
||||
public void setQty(BigDecimal qty) {
|
||||
this.qty = qty;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return unit;
|
||||
}
|
||||
|
||||
public void setUnit(String unit) {
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public String getComment() {
|
||||
return comment;
|
||||
}
|
||||
|
||||
public void setComment(String comment) {
|
||||
this.comment = comment;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
public String getPmsSpareInventoryBo() {
|
||||
return pmsSpareInventoryBo;
|
||||
}
|
||||
|
||||
public void setPmsSpareInventoryBo(String pmsSpareInventoryBo) {
|
||||
this.pmsSpareInventoryBo = pmsSpareInventoryBo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "RepairOrderItem{" +
|
||||
"handle = " + handle +
|
||||
", repairOrderBo = " + repairOrderBo +
|
||||
", brokenCode = " + brokenCode +
|
||||
", spare = " + spare +
|
||||
", spareDesc = " + spareDesc +
|
||||
", qyt = " + qty +
|
||||
", unit = " + unit +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", modifiedDateTime = " + modifiedDateTime +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,200 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author helios
|
||||
* @since 2020-09-17
|
||||
*/
|
||||
@TableName("site")
|
||||
public class Site extends Model<Site> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("CHANGE_STAMP")
|
||||
private Long changeStamp;
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
@TableField("DESCRIPTION")
|
||||
private String description;
|
||||
@TableField("TYPE")
|
||||
private String type;
|
||||
@TableField("IS_LOCAL")
|
||||
private String isLocal;
|
||||
@TableField("URL")
|
||||
private String url;
|
||||
@TableField("SERVER")
|
||||
private String server;
|
||||
@TableField("PORT")
|
||||
private Long port;
|
||||
@TableField("LOGON_ID")
|
||||
private String logonId;
|
||||
@TableField("PASSWORD")
|
||||
private String password;
|
||||
@TableField("TIME_ZONE")
|
||||
private String timeZone;
|
||||
@TableField("SITE_LOCALE")
|
||||
private String siteLocale;
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private Date createdDateTime;
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public Long getChangeStamp() {
|
||||
return changeStamp;
|
||||
}
|
||||
|
||||
public void setChangeStamp(Long changeStamp) {
|
||||
this.changeStamp = changeStamp;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getIsLocal() {
|
||||
return isLocal;
|
||||
}
|
||||
|
||||
public void setIsLocal(String isLocal) {
|
||||
this.isLocal = isLocal;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getServer() {
|
||||
return server;
|
||||
}
|
||||
|
||||
public void setServer(String server) {
|
||||
this.server = server;
|
||||
}
|
||||
|
||||
public Long getPort() {
|
||||
return port;
|
||||
}
|
||||
|
||||
public void setPort(Long port) {
|
||||
this.port = port;
|
||||
}
|
||||
|
||||
public String getLogonId() {
|
||||
return logonId;
|
||||
}
|
||||
|
||||
public void setLogonId(String logonId) {
|
||||
this.logonId = logonId;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getTimeZone() {
|
||||
return timeZone;
|
||||
}
|
||||
|
||||
public void setTimeZone(String timeZone) {
|
||||
this.timeZone = timeZone;
|
||||
}
|
||||
|
||||
public String getSiteLocale() {
|
||||
return siteLocale;
|
||||
}
|
||||
|
||||
public void setSiteLocale(String siteLocale) {
|
||||
this.siteLocale = siteLocale;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Site{" +
|
||||
"handle = " + handle +
|
||||
", changeStamp = " + changeStamp +
|
||||
", site = " + site +
|
||||
", description = " + description +
|
||||
", type = " + type +
|
||||
", isLocal = " + isLocal +
|
||||
", url = " + url +
|
||||
", server = " + server +
|
||||
", port = " + port +
|
||||
", logonId = " + logonId +
|
||||
", password = " + password +
|
||||
", timeZone = " + timeZone +
|
||||
", siteLocale = " + siteLocale +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", modifiedDateTime = " + modifiedDateTime +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,138 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
|
||||
@TableName("PMS_SPARE")
|
||||
|
||||
public class Spare extends Model<Spare> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
@TableField("SPARE")
|
||||
private String spare;
|
||||
@TableField("DESCRIPTION")
|
||||
private String description;
|
||||
@TableField("STATUS_BO")
|
||||
private String statusBo;
|
||||
@TableField("SPARE_GROUP_BO")
|
||||
private String spareGroupBo;
|
||||
@TableField("UNIT")
|
||||
private String unit;
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private Date createdDateTime;
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getSpare() {
|
||||
return spare;
|
||||
}
|
||||
|
||||
public void setSpare(String spare) {
|
||||
this.spare = spare;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getStatusBo() {
|
||||
return statusBo;
|
||||
}
|
||||
|
||||
public void setStatusBo(String statusBo) {
|
||||
this.statusBo = statusBo;
|
||||
}
|
||||
|
||||
public String getSpareGroupBo() {
|
||||
return spareGroupBo;
|
||||
}
|
||||
|
||||
public void setSpareGroupBo(String spareGroupBo) {
|
||||
this.spareGroupBo = spareGroupBo;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return unit;
|
||||
}
|
||||
|
||||
public void setUnit(String unit) {
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Spare{" +
|
||||
"handle = " + handle +
|
||||
", site = " + site +
|
||||
", spare = " + spare +
|
||||
", description = " + description +
|
||||
", statusBo = " + statusBo +
|
||||
", spareGroupBo = " + spareGroupBo +
|
||||
", unit = " + unit +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", modifiedDateTime = " + modifiedDateTime +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,106 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
|
||||
@TableName("PMS_SPARE_GROUP")
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class SpareGroup extends Model<SpareGroup> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
@TableField("SPARE_GROUP")
|
||||
private String spareGroup;
|
||||
@TableField("DESCRIPTION")
|
||||
private String description;
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private Date createdDateTime;
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getSpareGroup() {
|
||||
return spareGroup;
|
||||
}
|
||||
|
||||
public void setSpareGroup(String spareGroup) {
|
||||
this.spareGroup = spareGroup;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SpareGroup{" +
|
||||
"handle = " + handle +
|
||||
", site = " + site +
|
||||
", spareGroup = " + spareGroup +
|
||||
", description = " + description +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", modifiedDateTime = " + modifiedDateTime +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,71 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-10-10
|
||||
*/
|
||||
|
||||
@TableName("PMS_SPARE_GROUP_SPARE")
|
||||
|
||||
public class SpareGroupSpare extends Model<SpareGroupSpare> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("SPARE_BO")
|
||||
private String spareBo;
|
||||
@TableField("SPARE_GROUP_BO")
|
||||
private String spareGroupBo;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getSpareBo() {
|
||||
return spareBo;
|
||||
}
|
||||
|
||||
public void setSpareBo(String spareBo) {
|
||||
this.spareBo = spareBo;
|
||||
}
|
||||
|
||||
public String getSpareGroupBo() {
|
||||
return spareGroupBo;
|
||||
}
|
||||
|
||||
public void setSpareGroupBo(String spareGroupBo) {
|
||||
this.spareGroupBo = spareGroupBo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SpareGroupSpare{" +
|
||||
"handle = " + handle +
|
||||
", spareBo = " + spareBo +
|
||||
", spareGroupBo = " + spareGroupBo +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 系统属性配置
|
||||
*
|
||||
* @author aaron
|
||||
* @date 2022-10-29 14:31:26
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_sys_config")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "系统属性配置")
|
||||
public class SysConfig extends Model<SysConfig> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 属性组
|
||||
*/
|
||||
@ApiModelProperty(value="属性组")
|
||||
private String attrGroup;
|
||||
|
||||
/**
|
||||
* 属性
|
||||
*/
|
||||
@ApiModelProperty(value="属性")
|
||||
private String attr;
|
||||
|
||||
/**
|
||||
* 属性值
|
||||
*/
|
||||
@ApiModelProperty(value="属性值")
|
||||
private String value;
|
||||
|
||||
}
|
||||
@ -0,0 +1,166 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 用户组
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2020-03-27
|
||||
*/
|
||||
@TableName("USER_GROUP")
|
||||
public class UserGroup extends Model<UserGroup> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
/**
|
||||
* 放行原因
|
||||
*/
|
||||
@TableField("CHANGE_STAMP")
|
||||
private BigDecimal changeStamp;
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
/**
|
||||
* 用户组
|
||||
*/
|
||||
@TableField("USER_GROUP")
|
||||
private String userGroup;
|
||||
/**
|
||||
* 用户组描述
|
||||
*/
|
||||
@TableField("DESCRIPTION")
|
||||
private String description;
|
||||
/**
|
||||
* 工站外键
|
||||
*/
|
||||
@TableField("WORKSTATION_BO")
|
||||
private String workstationBo;
|
||||
/**
|
||||
* 创建日期
|
||||
*/
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private Date createdDateTime;
|
||||
/**
|
||||
* 创建日期
|
||||
*/
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public BigDecimal getChangeStamp() {
|
||||
return changeStamp;
|
||||
}
|
||||
|
||||
public void setChangeStamp(BigDecimal changeStamp) {
|
||||
this.changeStamp = changeStamp;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getUserGroup() {
|
||||
return userGroup;
|
||||
}
|
||||
|
||||
public void setUserGroup(String userGroup) {
|
||||
this.userGroup = userGroup;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getWorkstationBo() {
|
||||
return workstationBo;
|
||||
}
|
||||
|
||||
public void setWorkstationBo(String workstationBo) {
|
||||
this.workstationBo = workstationBo;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
public static final String HANDLE = "HANDLE";
|
||||
|
||||
public static final String CHANGE_STAMP = "CHANGE_STAMP";
|
||||
|
||||
public static final String SITE = "SITE";
|
||||
|
||||
public static final String USER_GROUP = "USER_GROUP";
|
||||
|
||||
public static final String DESCRIPTION = "DESCRIPTION";
|
||||
|
||||
public static final String WORKSTATION_BO = "WORKSTATION_BO";
|
||||
|
||||
public static final String CREATED_DATE_TIME = "CREATED_DATE_TIME";
|
||||
|
||||
public static final String MODIFIED_DATE_TIME = "MODIFIED_DATE_TIME";
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "UserGroup{" +
|
||||
"handle = " + handle +
|
||||
", changeStamp = " + changeStamp +
|
||||
", site = " + site +
|
||||
", userGroup = " + userGroup +
|
||||
", description = " + description +
|
||||
", workstationBo = " + workstationBo +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", modifiedDateTime = " + modifiedDateTime +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
282
mom-pms-api/src/main/java/com/foreverwin/mom/pms/entity/Usr.java
Normal file
282
mom-pms-api/src/main/java/com/foreverwin/mom/pms/entity/Usr.java
Normal file
@ -0,0 +1,282 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author Max
|
||||
* @since 2021-03-04
|
||||
*/
|
||||
|
||||
@TableName("USR")
|
||||
|
||||
public class Usr extends Model<Usr> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "HANDLE", type = IdType.INPUT)
|
||||
private String handle;
|
||||
@TableField("CHANGE_STAMP")
|
||||
private Long changeStamp;
|
||||
@TableField("SITE")
|
||||
private String site;
|
||||
@TableField("USER_ID")
|
||||
private String userId;
|
||||
@TableField("CURRENT_OPERATION_BO")
|
||||
private String currentOperationBo;
|
||||
@TableField("CURRENT_RESOURCE_BO")
|
||||
private String currentResourceBo;
|
||||
@TableField("CREATED_DATE_TIME")
|
||||
private Date createdDateTime;
|
||||
@TableField("MODIFIED_DATE_TIME")
|
||||
private Date modifiedDateTime;
|
||||
@TableField("BADGE_NUMBER")
|
||||
private String badgeNumber;
|
||||
@TableField("EMPLOYEE_NUMBER")
|
||||
private String employeeNumber;
|
||||
@TableField("HIRE_DATE")
|
||||
private String hireDate;
|
||||
@TableField("TERMINATION_DATE")
|
||||
private String terminationDate;
|
||||
@TableField("ALLOW_CLOCK_IN_NON_PROD")
|
||||
private String allowClockInNonProd;
|
||||
@TableField("ACTION_CLOCK_OUT_SFC")
|
||||
private String actionClockOutSfc;
|
||||
@TableField("CLOCK_IN_OUT_RANGE")
|
||||
private String clockInOutRange;
|
||||
@TableField("ALLOW_SUP_TIME_EDIT_APPR")
|
||||
private String allowSupTimeEditAppr;
|
||||
@TableField("APPR_REQ_FOR_EXPORT")
|
||||
private String apprReqForExport;
|
||||
@TableField("AUTO_CLOCK_OUT")
|
||||
private String autoClockOut;
|
||||
@TableField("CLOCK_IN_CONTROL")
|
||||
private String clockInControl;
|
||||
@TableField("DEFAULT_WORK_CENTER_BO")
|
||||
private String defaultWorkCenterBo;
|
||||
@TableField("ERP_PERSONNEL_NUMBER")
|
||||
private String erpPersonnelNumber;
|
||||
@TableField("ERP_USER")
|
||||
private String erpUser;
|
||||
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public Long getChangeStamp() {
|
||||
return changeStamp;
|
||||
}
|
||||
|
||||
public void setChangeStamp(Long changeStamp) {
|
||||
this.changeStamp = changeStamp;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getCurrentOperationBo() {
|
||||
return currentOperationBo;
|
||||
}
|
||||
|
||||
public void setCurrentOperationBo(String currentOperationBo) {
|
||||
this.currentOperationBo = currentOperationBo;
|
||||
}
|
||||
|
||||
public String getCurrentResourceBo() {
|
||||
return currentResourceBo;
|
||||
}
|
||||
|
||||
public void setCurrentResourceBo(String currentResourceBo) {
|
||||
this.currentResourceBo = currentResourceBo;
|
||||
}
|
||||
|
||||
public Date getCreatedDateTime() {
|
||||
return createdDateTime;
|
||||
}
|
||||
|
||||
public void setCreatedDateTime(Date createdDateTime) {
|
||||
this.createdDateTime = createdDateTime;
|
||||
}
|
||||
|
||||
public Date getModifiedDateTime() {
|
||||
return modifiedDateTime;
|
||||
}
|
||||
|
||||
public void setModifiedDateTime(Date modifiedDateTime) {
|
||||
this.modifiedDateTime = modifiedDateTime;
|
||||
}
|
||||
|
||||
public String getBadgeNumber() {
|
||||
return badgeNumber;
|
||||
}
|
||||
|
||||
public void setBadgeNumber(String badgeNumber) {
|
||||
this.badgeNumber = badgeNumber;
|
||||
}
|
||||
|
||||
public String getEmployeeNumber() {
|
||||
return employeeNumber;
|
||||
}
|
||||
|
||||
public void setEmployeeNumber(String employeeNumber) {
|
||||
this.employeeNumber = employeeNumber;
|
||||
}
|
||||
|
||||
public String getHireDate() {
|
||||
return hireDate;
|
||||
}
|
||||
|
||||
public void setHireDate(String hireDate) {
|
||||
this.hireDate = hireDate;
|
||||
}
|
||||
|
||||
public String getTerminationDate() {
|
||||
return terminationDate;
|
||||
}
|
||||
|
||||
public void setTerminationDate(String terminationDate) {
|
||||
this.terminationDate = terminationDate;
|
||||
}
|
||||
|
||||
public String getAllowClockInNonProd() {
|
||||
return allowClockInNonProd;
|
||||
}
|
||||
|
||||
public void setAllowClockInNonProd(String allowClockInNonProd) {
|
||||
this.allowClockInNonProd = allowClockInNonProd;
|
||||
}
|
||||
|
||||
public String getActionClockOutSfc() {
|
||||
return actionClockOutSfc;
|
||||
}
|
||||
|
||||
public void setActionClockOutSfc(String actionClockOutSfc) {
|
||||
this.actionClockOutSfc = actionClockOutSfc;
|
||||
}
|
||||
|
||||
public String getClockInOutRange() {
|
||||
return clockInOutRange;
|
||||
}
|
||||
|
||||
public void setClockInOutRange(String clockInOutRange) {
|
||||
this.clockInOutRange = clockInOutRange;
|
||||
}
|
||||
|
||||
public String getAllowSupTimeEditAppr() {
|
||||
return allowSupTimeEditAppr;
|
||||
}
|
||||
|
||||
public void setAllowSupTimeEditAppr(String allowSupTimeEditAppr) {
|
||||
this.allowSupTimeEditAppr = allowSupTimeEditAppr;
|
||||
}
|
||||
|
||||
public String getApprReqForExport() {
|
||||
return apprReqForExport;
|
||||
}
|
||||
|
||||
public void setApprReqForExport(String apprReqForExport) {
|
||||
this.apprReqForExport = apprReqForExport;
|
||||
}
|
||||
|
||||
public String getAutoClockOut() {
|
||||
return autoClockOut;
|
||||
}
|
||||
|
||||
public void setAutoClockOut(String autoClockOut) {
|
||||
this.autoClockOut = autoClockOut;
|
||||
}
|
||||
|
||||
public String getClockInControl() {
|
||||
return clockInControl;
|
||||
}
|
||||
|
||||
public void setClockInControl(String clockInControl) {
|
||||
this.clockInControl = clockInControl;
|
||||
}
|
||||
|
||||
public String getDefaultWorkCenterBo() {
|
||||
return defaultWorkCenterBo;
|
||||
}
|
||||
|
||||
public void setDefaultWorkCenterBo(String defaultWorkCenterBo) {
|
||||
this.defaultWorkCenterBo = defaultWorkCenterBo;
|
||||
}
|
||||
|
||||
public String getErpPersonnelNumber() {
|
||||
return erpPersonnelNumber;
|
||||
}
|
||||
|
||||
public void setErpPersonnelNumber(String erpPersonnelNumber) {
|
||||
this.erpPersonnelNumber = erpPersonnelNumber;
|
||||
}
|
||||
|
||||
public String getErpUser() {
|
||||
return erpUser;
|
||||
}
|
||||
|
||||
public void setErpUser(String erpUser) {
|
||||
this.erpUser = erpUser;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable pkVal() {
|
||||
return this.handle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Usr{" +
|
||||
"handle = " + handle +
|
||||
", changeStamp = " + changeStamp +
|
||||
", site = " + site +
|
||||
", userId = " + userId +
|
||||
", currentOperationBo = " + currentOperationBo +
|
||||
", currentResourceBo = " + currentResourceBo +
|
||||
", createdDateTime = " + createdDateTime +
|
||||
", modifiedDateTime = " + modifiedDateTime +
|
||||
", badgeNumber = " + badgeNumber +
|
||||
", employeeNumber = " + employeeNumber +
|
||||
", hireDate = " + hireDate +
|
||||
", terminationDate = " + terminationDate +
|
||||
", allowClockInNonProd = " + allowClockInNonProd +
|
||||
", actionClockOutSfc = " + actionClockOutSfc +
|
||||
", clockInOutRange = " + clockInOutRange +
|
||||
", allowSupTimeEditAppr = " + allowSupTimeEditAppr +
|
||||
", apprReqForExport = " + apprReqForExport +
|
||||
", autoClockOut = " + autoClockOut +
|
||||
", clockInControl = " + clockInControl +
|
||||
", defaultWorkCenterBo = " + defaultWorkCenterBo +
|
||||
", erpPersonnelNumber = " + erpPersonnelNumber +
|
||||
", erpUser = " + erpUser +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2025, mom All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the foreverwin.com developer nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
* Author: mom
|
||||
*/
|
||||
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author mom code generator
|
||||
* @date 2024-07-11 15:05:56
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_energy")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "")
|
||||
public class ZEnergy extends Model<ZEnergy> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 设备
|
||||
*/
|
||||
@ApiModelProperty(value="设备")
|
||||
private String resource;
|
||||
|
||||
/**
|
||||
* 点位ID
|
||||
*/
|
||||
@ApiModelProperty(value="点位ID")
|
||||
private String edcId;
|
||||
|
||||
/**
|
||||
* 值
|
||||
*/
|
||||
@ApiModelProperty(value="值")
|
||||
private String edcValue;
|
||||
|
||||
/**
|
||||
* date
|
||||
*/
|
||||
@ApiModelProperty(value="date")
|
||||
private LocalDateTime date;
|
||||
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2025, mom All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the foreverwin.com developer nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
* Author: mom
|
||||
*/
|
||||
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author mom code generator
|
||||
* @date 2024-07-11 15:03:49
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_resource_point")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "")
|
||||
public class ZResourcePoint extends Model<ZResourcePoint> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 设备
|
||||
*/
|
||||
@ApiModelProperty(value="设备")
|
||||
private String resource;
|
||||
|
||||
/**
|
||||
* 点位ID
|
||||
*/
|
||||
@ApiModelProperty(value="点位ID")
|
||||
private String edcId;
|
||||
|
||||
/**
|
||||
* 值
|
||||
*/
|
||||
@ApiModelProperty(value="值")
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private String edcValue;
|
||||
|
||||
/**
|
||||
* insertTime
|
||||
*/
|
||||
@ApiModelProperty(value="insertTime")
|
||||
private LocalDateTime insertTime;
|
||||
|
||||
}
|
||||
@ -0,0 +1,6 @@
|
||||
package com.foreverwin.mom.pms.idGen;
|
||||
|
||||
public interface IdGen {
|
||||
|
||||
public String generate(String postFix,String userId);
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package com.foreverwin.mom.pms.idGen;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
public class InspOrderIdGen implements IdGen {
|
||||
|
||||
private final SimpleDateFormat fmt;
|
||||
|
||||
public InspOrderIdGen() {
|
||||
this.fmt = new SimpleDateFormat("yyMMdd-HHmmss");
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized String generate( String postFix, String userId) {
|
||||
return "INSP-OD-" + this.fmt.format(new Date())+ "-" + userId + "-" + postFix ;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package com.foreverwin.mom.pms.idGen;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
public class InspScheduleIdGen implements IdGen {
|
||||
|
||||
private final SimpleDateFormat fmt;
|
||||
|
||||
public InspScheduleIdGen() {
|
||||
this.fmt = new SimpleDateFormat("yyMMdd-HHmmss");
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized String generate( String postFix,String userId) {
|
||||
return "INSP-SCH-" + this.fmt.format(new Date()) + "-" + postFix;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package com.foreverwin.mom.pms.idGen;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
public class MaOrderIdGen implements IdGen {
|
||||
|
||||
private final SimpleDateFormat fmt;
|
||||
|
||||
public MaOrderIdGen() {
|
||||
this.fmt = new SimpleDateFormat("yyMMdd-HHmmssSSS");
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized String generate( String postFix,String userId) {
|
||||
return "MA-OD-" + this.fmt.format(new Date()) + "-" + postFix;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package com.foreverwin.mom.pms.idGen;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
public class MaScheduleIdGen implements IdGen {
|
||||
|
||||
private final SimpleDateFormat fmt;
|
||||
|
||||
public MaScheduleIdGen() {
|
||||
this.fmt = new SimpleDateFormat("yyMMdd-HHmmss");
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized String generate( String postFix,String userId) {
|
||||
return "MA-SCH-" + this.fmt.format(new Date()) + "-" + postFix;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package com.foreverwin.mom.pms.idGen;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
public class RepairReportIdGen implements IdGen {
|
||||
|
||||
private final SimpleDateFormat fmt;
|
||||
|
||||
public RepairReportIdGen() {
|
||||
this.fmt = new SimpleDateFormat("yyMMdd-HHmmss");
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized String generate( String postFix,String userId) {
|
||||
return "RPR-OD-" + this.fmt.format(new Date()) + "-" + postFix;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package com.foreverwin.mom.pms.vo;
|
||||
|
||||
import com.foreverwin.mom.pms.entity.Broken;
|
||||
import com.foreverwin.mom.pms.entity.BrokenAttached;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class BrokenVo extends Broken {
|
||||
private List<BrokenAttached> brokenAttachedList;
|
||||
|
||||
public List<BrokenAttached> getBrokenAttachedList() {
|
||||
return brokenAttachedList;
|
||||
}
|
||||
|
||||
public void setBrokenAttachedList(List<BrokenAttached> brokenAttachedList) {
|
||||
this.brokenAttachedList = brokenAttachedList;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package com.foreverwin.mom.pms.vo;
|
||||
|
||||
import com.foreverwin.mom.pms.entity.MaintainInspectList;
|
||||
import com.foreverwin.mom.pms.entity.MaintainInspectListItem;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class MaintainInspectListVo extends MaintainInspectList {
|
||||
private List<MaintainInspectListItem> maintainInspectListItemList;
|
||||
|
||||
public List<MaintainInspectListItem> getMaintainInspectListItemList() {
|
||||
return maintainInspectListItemList;
|
||||
}
|
||||
|
||||
public void setMaintainInspectListItemList(List<MaintainInspectListItem> maintainInspectListItemList) {
|
||||
this.maintainInspectListItemList = maintainInspectListItemList;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
package com.foreverwin.mom.pms.vo;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.foreverwin.mom.pms.entity.MaintainInspectTask;
|
||||
import com.foreverwin.mom.pms.entity.MaintainInspectTaskItem;
|
||||
import com.foreverwin.mom.pms.entity.MaintainInspectTaskSpare;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class MaintainInspectTaskVo extends MaintainInspectTask {
|
||||
private String maintainInspectListHandle;
|
||||
private String maintainInspectListNo;
|
||||
private String maintainInspectListNoDesc;
|
||||
@TableField(exist = false)
|
||||
private String status;
|
||||
private List<MaintainInspectTaskVo> maintainInspectList;
|
||||
private List<SpotCheckListVo> spotCheckList;
|
||||
private List<MaintainInspectTaskVo> maintainInspectTaskList;
|
||||
private List<MaintainInspectTaskItem> maintainInspectTaskItemList;
|
||||
private List<MaintainInspectTaskSpare> maintainInspectTaskSpareList;
|
||||
}
|
||||
@ -0,0 +1,51 @@
|
||||
package com.foreverwin.mom.pms.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import com.foreverwin.mom.pms.dto.RepairOrderUser;
|
||||
import com.foreverwin.mom.pms.entity.RepairOrder;
|
||||
import com.foreverwin.mom.pms.entity.RepairOrderConfirm;
|
||||
import com.foreverwin.mom.pms.entity.RepairOrderItem;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class RepairOrderVo extends RepairOrder {
|
||||
private String type;
|
||||
private List<RepairOrderItem> repairOrderItemList;
|
||||
|
||||
private RepairOrderConfirm repairOrderConfirm;
|
||||
|
||||
private List<RepairOrderUser> repairUserList;
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public RepairOrderConfirm getRepairOrderConfirm() {
|
||||
return repairOrderConfirm;
|
||||
}
|
||||
|
||||
public void setRepairOrderConfirm(RepairOrderConfirm repairOrderConfirm) {
|
||||
this.repairOrderConfirm = repairOrderConfirm;
|
||||
}
|
||||
|
||||
public List<RepairOrderItem> getRepairOrderItemList() {
|
||||
return repairOrderItemList;
|
||||
}
|
||||
|
||||
public void setRepairOrderItemList(List<RepairOrderItem> repairOrderItemList) {
|
||||
this.repairOrderItemList = repairOrderItemList;
|
||||
}
|
||||
|
||||
public List<RepairOrderUser> getRepairUserList() {
|
||||
return repairUserList;
|
||||
}
|
||||
|
||||
public void setRepairUserList(List<RepairOrderUser> repairUserList) {
|
||||
this.repairUserList = repairUserList;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package com.foreverwin.mom.pms.vo;
|
||||
|
||||
import com.foreverwin.mom.pms.entity.Spare;
|
||||
import com.foreverwin.mom.pms.entity.SpareGroup;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class SpareVo extends Spare {
|
||||
private List<SpareGroup> spareGroupList;
|
||||
|
||||
public List<SpareGroup> getSpareGroupList() {
|
||||
return spareGroupList;
|
||||
}
|
||||
|
||||
public void setSpareGroupList(List<SpareGroup> spareGroupList) {
|
||||
this.spareGroupList = spareGroupList;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
package com.foreverwin.mom.pms.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author zhaofeng_cheng
|
||||
* @date 2024/8/23 11:01
|
||||
* @description
|
||||
*/
|
||||
@Data
|
||||
public class SpotCheckListVo {
|
||||
private String handle;
|
||||
private String maintainInspectListBo;
|
||||
private String maintainInspectListHandle;
|
||||
private String description;
|
||||
private String resrce;
|
||||
private String resrceDesc;
|
||||
private String resrceType;
|
||||
private String taskNo;
|
||||
private String statusBo;
|
||||
private String status;
|
||||
}
|
||||
2
mom-pms-api/src/main/resources/META-INF/spring.factories
Normal file
2
mom-pms-api/src/main/resources/META-INF/spring.factories
Normal file
@ -0,0 +1,2 @@
|
||||
# 配置 feignclient 的全类名路径, 避免包名不规范无法扫描问题
|
||||
com.foreverwin.mom.common.feign.MomFeignAutoConfiguration=
|
||||
13
mom-pms-app/Dockerfile
Normal file
13
mom-pms-app/Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
FROM moxm/java:1.8-full
|
||||
|
||||
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||
|
||||
RUN mkdir -p /nlv-print
|
||||
|
||||
WORKDIR /nlv-print
|
||||
|
||||
EXPOSE 6066
|
||||
|
||||
ADD ./target/nlv-print.jar ./
|
||||
|
||||
CMD java -Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom -jar nlv-print.jar
|
||||
39
mom-pms-app/pom.xml
Normal file
39
mom-pms-app/pom.xml
Normal file
@ -0,0 +1,39 @@
|
||||
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.foreverwin</groupId>
|
||||
<artifactId>mom-pms</artifactId>
|
||||
<version>4.5.0</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>mom-pms-app</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.foreverwin</groupId>
|
||||
<artifactId>mom-pms-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.foreverwin</groupId>
|
||||
<artifactId>mom-pms-core</artifactId>
|
||||
<version>4.5.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<finalName>mom-pms</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>io.fabric8</groupId>
|
||||
<artifactId>docker-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
@ -0,0 +1,29 @@
|
||||
package com.foreverwin.mom.pms;
|
||||
|
||||
import com.foreverwin.mom.common.feign.annotation.EnableMomFeignClients;
|
||||
import com.foreverwin.mom.common.security.annotation.EnableMomResourceServer;
|
||||
import com.foreverwin.mom.common.swagger.annotation.EnableMomSwagger2;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||
import org.springframework.scheduling.annotation.EnableAsync;
|
||||
|
||||
@EnableMomSwagger2
|
||||
@EnableMomFeignClients(basePackages = {"com.foreverwin.mom", "com.foreverwin.iep"})
|
||||
@EnableDiscoveryClient
|
||||
@EnableMomResourceServer
|
||||
@SpringBootApplication(scanBasePackages = {"com.foreverwin.mom", "com.foreverwin.iep"})
|
||||
// 需配置不然扫不到mes-db的mapper
|
||||
@MapperScan({"com.foreverwin.**.mapper"})
|
||||
@EnableAsync
|
||||
public class Application {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication springApplication = new SpringApplication(Application.class);
|
||||
// 启用循环引用
|
||||
springApplication.setAllowCircularReferences(Boolean.TRUE);
|
||||
springApplication.run(args);
|
||||
}
|
||||
|
||||
}
|
||||
29
mom-pms-app/src/main/resources/application.yml
Normal file
29
mom-pms-app/src/main/resources/application.yml
Normal file
@ -0,0 +1,29 @@
|
||||
server:
|
||||
port: 6076
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: mom-pms-biz
|
||||
version: @project.version@
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: ${NACOS_HOST:mom-register}:${NACOS_PORT:8848}
|
||||
namespace: ${NACOS_NAMESPACE:}
|
||||
config:
|
||||
server-addr: ${spring.cloud.nacos.discovery.server-addr}
|
||||
namespace: ${NACOS_NAMESPACE:}
|
||||
username: ${NACOS_USERNAME:nacos}
|
||||
password: ${NACOS_PASSWORD:nacos}
|
||||
config:
|
||||
import:
|
||||
- optional:nacos:application-@profiles.active@.yml
|
||||
- optional:nacos:${spring.application.name}-@profiles.active@.yml
|
||||
jackson:
|
||||
serialization:
|
||||
# 懒加载前台序列化报错问题
|
||||
FAIL_ON_EMPTY_BEANS: false
|
||||
|
||||
seata:
|
||||
data-source-proxy-mode: XA
|
||||
|
||||
71
mom-pms-app/src/main/resources/logback-spring.xml
Normal file
71
mom-pms-app/src/main/resources/logback-spring.xml
Normal file
@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
小技巧: 在根pom里面设置统一存放路径,统一管理方便维护
|
||||
<properties>
|
||||
<log-path>/Users/mom</log-path>
|
||||
</properties>
|
||||
1. 其他模块加日志输出,直接copy本文件放在resources 目录即可
|
||||
2. 注意修改 <property name="${log-path}/log.path" value=""/> 的value模块
|
||||
-->
|
||||
<configuration debug="false" scan="false">
|
||||
<springProperty name="logPath" source="spring.application.name" defaultValue="${project.artifactId}"/>
|
||||
<property name="log.path" value="logs/${logPath}"/>
|
||||
<!-- 彩色日志格式 -->
|
||||
<property name="CONSOLE_LOG_PATTERN"
|
||||
value="${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"/>
|
||||
<!-- 彩色日志依赖的渲染类 -->
|
||||
<conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter"/>
|
||||
<conversionRule conversionWord="wex"
|
||||
converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter"/>
|
||||
<conversionRule conversionWord="wEx"
|
||||
converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter"/>
|
||||
<!-- Console log output -->
|
||||
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- Log file debug output -->
|
||||
<appender name="debug" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/debug.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<fileNamePattern>${log.path}/%d{yyyy-MM, aux}/debug.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
|
||||
<maxFileSize>50MB</maxFileSize>
|
||||
<maxHistory>30</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>%date [%thread] %-5level [%logger{50}] %file:%line - %msg%n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- Log file error output -->
|
||||
<appender name="error" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/error.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<fileNamePattern>${log.path}/%d{yyyy-MM}/error.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
|
||||
<maxFileSize>50MB</maxFileSize>
|
||||
<maxHistory>30</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>%date [%thread] %-5level [%logger{50}] %file:%line - %msg%n</pattern>
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>ERROR</level>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<logger name="org.activiti.engine.impl.db" level="DEBUG">
|
||||
<appender-ref ref="debug"/>
|
||||
</logger>
|
||||
|
||||
<!--nacos 心跳 INFO 屏蔽-->
|
||||
<logger name="com.alibaba.nacos" level="OFF">
|
||||
<appender-ref ref="error"/>
|
||||
</logger>
|
||||
<!-- Level: FATAL 0 ERROR 3 WARN 4 INFO 6 DEBUG 7 -->
|
||||
<root level="INFO">
|
||||
<appender-ref ref="console"/>
|
||||
<appender-ref ref="debug"/>
|
||||
</root>
|
||||
</configuration>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user