diff --git a/hzims-biz-common/src/main/java/com/hnac/hzims/common/enums/ExceptionEnum.java b/hzims-biz-common/src/main/java/com/hnac/hzims/common/enums/ExceptionEnum.java
new file mode 100644
index 0000000..9bb7532
--- /dev/null
+++ b/hzims-biz-common/src/main/java/com/hnac/hzims/common/enums/ExceptionEnum.java
@@ -0,0 +1,102 @@
+package com.hnac.hzims.common.enums;
+
+import lombok.AllArgsConstructor;
+import lombok.Getter;
+import org.springblade.core.tool.api.IResultCode;
+
+import javax.servlet.http.HttpServletResponse;
+
+/**
+ * 异常码枚举类
+ */
+@Getter
+@AllArgsConstructor
+public enum ExceptionEnum implements IResultCode {
+
+ /**
+ * 操作成功
+ */
+ SUCCESS(HttpServletResponse.SC_OK, "操作成功"),
+
+ /**
+ * 业务异常
+ */
+ FAILURE(HttpServletResponse.SC_BAD_REQUEST, "业务异常"),
+
+ /**
+ * 请求未授权
+ */
+ UN_AUTHORIZED(HttpServletResponse.SC_UNAUTHORIZED, "请求未授权"),
+
+ /**
+ * 客户端请求未授权
+ */
+ CLIENT_UN_AUTHORIZED(HttpServletResponse.SC_UNAUTHORIZED, "客户端请求未授权"),
+
+ /**
+ * 404 没找到请求
+ */
+ NOT_FOUND(HttpServletResponse.SC_NOT_FOUND, "404 没找到请求"),
+
+ /**
+ * 消息不能读取
+ */
+ MSG_NOT_READABLE(HttpServletResponse.SC_BAD_REQUEST, "消息不能读取"),
+
+ /**
+ * 不支持当前请求方法
+ */
+ METHOD_NOT_SUPPORTED(HttpServletResponse.SC_METHOD_NOT_ALLOWED, "不支持当前请求方法"),
+
+ /**
+ * 不支持当前媒体类型
+ */
+ MEDIA_TYPE_NOT_SUPPORTED(HttpServletResponse.SC_UNSUPPORTED_MEDIA_TYPE, "不支持当前媒体类型"),
+
+ /**
+ * 请求被拒绝
+ */
+ REQ_REJECT(HttpServletResponse.SC_FORBIDDEN, "请求被拒绝"),
+
+ /**
+ * 服务器异常
+ */
+ INTERNAL_SERVER_ERROR(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "服务器异常"),
+
+ /**
+ * 缺少必要的请求参数
+ */
+ PARAM_MISS(HttpServletResponse.SC_BAD_REQUEST, "缺少必要的请求参数"),
+
+ /**
+ * 请求参数类型错误
+ */
+ PARAM_TYPE_ERROR(HttpServletResponse.SC_BAD_REQUEST, "请求参数类型错误"),
+
+ /**
+ * 请求参数绑定错误
+ */
+ PARAM_BIND_ERROR(HttpServletResponse.SC_BAD_REQUEST, "请求参数绑定错误"),
+
+ /**
+ * 参数校验失败
+ */
+ PARAM_VALID_ERROR(HttpServletResponse.SC_BAD_REQUEST, "参数校验失败"),
+
+
+ /**
+ * 模拟数据失败
+ */
+ SIMULATE_ERROR(400, "模拟数据失败"),
+
+ ;
+
+ /**
+ * code编码
+ */
+ final int code;
+ /**
+ * 中文信息描述
+ */
+ final String message;
+}
\ No newline at end of file
diff --git a/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/FunctionConstants.java b/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/FunctionConstants.java
index 7114de1..6a2d62d 100644
--- a/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/FunctionConstants.java
+++ b/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/FunctionConstants.java
@@ -20,7 +20,10 @@ public interface FunctionConstants {
LINK("2"),
/**参数**/
PARAMS("3"),
- CHOOSE("4")
+ /**选项**/
+ CHOOSE("4"),
+ /**确认**/
+ CONFIRM("5")
;
@Getter
private String type;
diff --git a/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/StationSelectionVO.java b/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/StationSelectionVO.java
deleted file mode 100644
index d67a829..0000000
--- a/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/StationSelectionVO.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package com.hnac.hzims.bigmodel.interactive.constants;
-
-import lombok.Data;
-
-/**
- * @Author: huangxing
- * @Date: 2024/05/09 16:32
- */
-@Data
-public class StationSelectionVO extends SelectionVO {
-
-}
diff --git a/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/vo/ExtraVO.java b/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/vo/ExtraVO.java
index cda702f..951bf42 100644
--- a/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/vo/ExtraVO.java
+++ b/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/vo/ExtraVO.java
@@ -1,10 +1,8 @@
package com.hnac.hzims.bigmodel.interactive.vo;
-import com.hnac.hzims.bigmodel.interactive.constants.SelectionVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
-import net.sf.jsqlparser.statement.select.Select;
import java.io.Serializable;
import java.util.List;
diff --git a/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/vo/FaultSelectionVO.java b/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/vo/FaultSelectionVO.java
new file mode 100644
index 0000000..00aa21e
--- /dev/null
+++ b/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/vo/FaultSelectionVO.java
@@ -0,0 +1,16 @@
+package com.hnac.hzims.bigmodel.interactive.vo;
+
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+import java.io.Serializable;
+
+/**
+ * @Author: huangxing
+ * @Date: 2024/05/16 15:10
+ */
+@Data
+@EqualsAndHashCode
+public class FaultSelectionVO extends SelectionVO implements Serializable {
+
+}
diff --git a/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/vo/ScadaSelectionVO.java b/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/vo/ScadaSelectionVO.java
new file mode 100644
index 0000000..b32cca2
--- /dev/null
+++ b/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/vo/ScadaSelectionVO.java
@@ -0,0 +1,16 @@
+package com.hnac.hzims.bigmodel.interactive.vo;
+
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+import java.io.Serializable;
+
+/**
+ * @Author: huangxing
+ * @Date: 2024/05/11 16:21
+ */
+@Data
+@EqualsAndHashCode
+public class ScadaSelectionVO extends SelectionVO implements Serializable {
+
+}
diff --git a/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/SelectionVO.java b/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/vo/SelectionVO.java
similarity index 82%
rename from hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/SelectionVO.java
rename to hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/vo/SelectionVO.java
index a7a271f..57899c9 100644
--- a/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/SelectionVO.java
+++ b/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/vo/SelectionVO.java
@@ -1,4 +1,4 @@
-package com.hnac.hzims.bigmodel.interactive.constants;
+package com.hnac.hzims.bigmodel.interactive.vo;
import lombok.Data;
diff --git a/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/vo/StationSelectionVO.java b/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/vo/StationSelectionVO.java
new file mode 100644
index 0000000..84209d9
--- /dev/null
+++ b/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/vo/StationSelectionVO.java
@@ -0,0 +1,15 @@
+package com.hnac.hzims.bigmodel.interactive.vo;
+
+import com.hnac.hzims.bigmodel.interactive.vo.SelectionVO;
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * @Author: huangxing
+ * @Date: 2024/05/09 16:32
+ */
+@Data
+public class StationSelectionVO extends SelectionVO implements Serializable {
+
+}
diff --git a/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/vo/VideoSelectionVO.java b/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/vo/VideoSelectionVO.java
new file mode 100644
index 0000000..0bcc529
--- /dev/null
+++ b/hzims-service-api/big-model-api/src/main/java/com/hnac/hzims/bigmodel/interactive/vo/VideoSelectionVO.java
@@ -0,0 +1,16 @@
+package com.hnac.hzims.bigmodel.interactive.vo;
+
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+import java.io.Serializable;
+
+/**
+ * @Author: huangxing
+ * @Date: 2024/05/11 16:20
+ */
+@Data
+@EqualsAndHashCode
+public class VideoSelectionVO extends SelectionVO implements Serializable {
+
+}
diff --git a/hzims-service-api/digital-twin-display-api/digital-twin-display-api.iml b/hzims-service-api/digital-twin-display-api/digital-twin-display-api.iml
deleted file mode 100644
index 277c4cb..0000000
--- a/hzims-service-api/digital-twin-display-api/digital-twin-display-api.iml
+++ /dev/null
@@ -1,238 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/hzims-service-api/inspect-api/src/main/java/com/hnac/hzinfo/inspect/task/entity/TaskEntity.java b/hzims-service-api/inspect-api/src/main/java/com/hnac/hzinfo/inspect/task/entity/TaskEntity.java
index df18dbe..6cd2907 100644
--- a/hzims-service-api/inspect-api/src/main/java/com/hnac/hzinfo/inspect/task/entity/TaskEntity.java
+++ b/hzims-service-api/inspect-api/src/main/java/com/hnac/hzinfo/inspect/task/entity/TaskEntity.java
@@ -48,6 +48,14 @@ public class TaskEntity extends TenantEntity {
@ApiModelProperty(value = "计划名称")
@QueryField(condition = SqlCondition.LIKE)
private String planName;
+
+ /**
+ * 路线名称
+ */
+ @ApiModelProperty(value = "路线名称")
+ @QueryField(condition = SqlCondition.LIKE)
+ private String routeName;
+
/**
* 任务批次号
*/
diff --git a/hzims-service-api/pom.xml b/hzims-service-api/pom.xml
index 9974fff..e19eb31 100644
--- a/hzims-service-api/pom.xml
+++ b/hzims-service-api/pom.xml
@@ -16,7 +16,6 @@
assets-api
-
topvision-api
equipment-api
basic-api
diff --git a/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/TestEntity.java b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/TestEntity.java
index 17e5119..0235e18 100644
--- a/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/TestEntity.java
+++ b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/TestEntity.java
@@ -9,6 +9,8 @@ import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;
+import javax.validation.constraints.Max;
+import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
@@ -58,6 +60,12 @@ public class TestEntity extends BaseEntity {
@ApiModelProperty("考试结束时间")
private Date testEndTime;
+// @NotNull
+// @Min(value = 0, message = "及格分必须大于等于0")
+// @Max(value = 100, message = "及格分必须小于等于100")
+// @ApiModelProperty("及格分")
+// private Integer passingScore;
+
@NotNull
@Size(max = 255, message = "考试地点字段长度不能超过255")
@ApiModelProperty("考试地点")
@@ -77,7 +85,6 @@ public class TestEntity extends BaseEntity {
@ApiModelProperty("参考人员")
private String peopleName;
-
@Size(max = 1000, message = "考试图片字段长度不能超过1000")
@ApiModelProperty("考试图片")
private String imgPath;
diff --git a/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/RehearsalRecordDetailImgVO.java b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/RehearsalRecordDetailImgVO.java
new file mode 100644
index 0000000..abb312d
--- /dev/null
+++ b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/RehearsalRecordDetailImgVO.java
@@ -0,0 +1,16 @@
+package com.hnac.hzims.safeproduct.vo;
+
+import cn.afterturn.easypoi.entity.ImageEntity;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.List;
+
+@Data
+@ApiModel(value = "演练记录表VO类")
+public class RehearsalRecordDetailImgVO extends RehearsalRecordDetailVO{
+
+ @ApiModelProperty("图片列表")
+ private List images;
+}
diff --git a/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/RehearsalRecordDetailStrVO.java b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/RehearsalRecordDetailStrVO.java
new file mode 100644
index 0000000..2a7c8bf
--- /dev/null
+++ b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/RehearsalRecordDetailStrVO.java
@@ -0,0 +1,15 @@
+package com.hnac.hzims.safeproduct.vo;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.List;
+
+@Data
+@ApiModel(value = "演练记录表VO类")
+public class RehearsalRecordDetailStrVO extends RehearsalRecordDetailVO{
+
+ @ApiModelProperty("图片列表")
+ private List images;
+}
diff --git a/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/RehearsalRecordDetailVO.java b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/RehearsalRecordDetailVO.java
index e1d414f..545065f 100644
--- a/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/RehearsalRecordDetailVO.java
+++ b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/RehearsalRecordDetailVO.java
@@ -55,9 +55,6 @@ public class RehearsalRecordDetailVO {
@ApiModelProperty("演练科目")
private String subject;
- @ApiModelProperty("图片列表")
- private List images;
-
@ApiModelProperty("年份")
private String year;
diff --git a/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/TestScoreSumVO.java b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/TestScoreSumVO.java
index 518ebb5..7d89726 100644
--- a/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/TestScoreSumVO.java
+++ b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/vo/TestScoreSumVO.java
@@ -13,12 +13,14 @@ import lombok.Data;
public class TestScoreSumVO {
@ApiModelProperty("应考人数")
- private Integer peopleNum=0;
+ private Integer peopleNum = 0;
@ApiModelProperty("实考人数")
- private Integer actualPeopleNum=0;
+ private Integer actualPeopleNum = 0;
@ApiModelProperty("及格率")
- private Double percentage=0.0;
+ private Double percentage = 0.0;
+ @ApiModelProperty("及格分")
+ private Integer passingScore;
}
diff --git a/hzims-service-api/spare-api/pom.xml b/hzims-service-api/spare-api/pom.xml
deleted file mode 100644
index b45831f..0000000
--- a/hzims-service-api/spare-api/pom.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
- hzims-service-api
- com.hnac.hzims
- 4.0.0-SNAPSHOT
-
- 4.0.0
-
- spare-api
- ${project.artifactId}
- jar
-
-
diff --git a/hzims-service-api/spare-api/spare-api.iml b/hzims-service-api/spare-api/spare-api.iml
deleted file mode 100644
index 660192e..0000000
--- a/hzims-service-api/spare-api/spare-api.iml
+++ /dev/null
@@ -1,226 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/hzims-service-api/spare-api/src/main/java/com/hnac/hzims/spare/entity/Notice.java b/hzims-service-api/spare-api/src/main/java/com/hnac/hzims/spare/entity/Notice.java
deleted file mode 100644
index 0c328ed..0000000
--- a/hzims-service-api/spare-api/src/main/java/com/hnac/hzims/spare/entity/Notice.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Copyright (c) 2018-2028, Chill Zhuang 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 dreamlu.net 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: Chill 庄骞 (smallchill@163.com)
- */
-package com.hnac.hzims.spare.entity;
-
-import com.baomidou.mybatisplus.annotation.TableName;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import org.springblade.core.mp.base.BaseEntity;
-
-import java.util.Date;
-
-/**
- * 实体类
- *
- * @author Chill
- */
-@Data
-@TableName("blade_notice")
-@EqualsAndHashCode(callSuper = true)
-public class Notice extends BaseEntity {
-
- private static final long serialVersionUID = 1L;
-
- /**
- * 标题
- */
- @ApiModelProperty(value = "标题")
- private String title;
-
- /**
- * 通知类型
- */
- @ApiModelProperty(value = "通知类型")
- private Integer category;
-
- /**
- * 发布日期
- */
- @ApiModelProperty(value = "发布日期")
- private Date releaseTime;
-
- /**
- * 内容
- */
- @ApiModelProperty(value = "内容")
- private String content;
-
-
-}
diff --git a/hzims-service-api/spare-api/src/main/java/com/hnac/hzims/spare/feign/INoticeClient.java b/hzims-service-api/spare-api/src/main/java/com/hnac/hzims/spare/feign/INoticeClient.java
deleted file mode 100644
index ff3206f..0000000
--- a/hzims-service-api/spare-api/src/main/java/com/hnac/hzims/spare/feign/INoticeClient.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright (c) 2018-2028, Chill Zhuang 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 dreamlu.net 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: Chill 庄骞 (smallchill@163.com)
- */
-package com.hnac.hzims.spare.feign;
-
-import org.springblade.core.launch.constant.AppConstant;
-import org.springblade.core.tool.api.R;
-import com.hnac.hzims.spare.entity.Notice;
-import org.springframework.cloud.openfeign.FeignClient;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestParam;
-
-import java.util.List;
-
-/**
- * Notice Feign接口类
- *
- * @author Chill
- */
-@FeignClient(
- value = AppConstant.APPLICATION_DESK_NAME
-)
-public interface INoticeClient {
-
- String API_PREFIX = "/client";
- String TOP = API_PREFIX + "/top";
-
- /**
- * 获取notice列表
- *
- * @param number
- * @return
- */
- @GetMapping(TOP)
- R> top(@RequestParam("number") Integer number);
-
-}
diff --git a/hzims-service-api/spare-api/src/main/java/com/hnac/hzims/spare/vo/NoticeVO.java b/hzims-service-api/spare-api/src/main/java/com/hnac/hzims/spare/vo/NoticeVO.java
deleted file mode 100644
index e367a45..0000000
--- a/hzims-service-api/spare-api/src/main/java/com/hnac/hzims/spare/vo/NoticeVO.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package com.hnac.hzims.spare.vo;
-
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import com.hnac.hzims.spare.entity.Notice;
-
-/**
- * 通知公告视图类
- *
- * @author Chill
- */
-@Data
-@EqualsAndHashCode(callSuper = true)
-public class NoticeVO extends Notice {
-
- @ApiModelProperty(value = "通知类型名")
- private String categoryName;
-
-}
diff --git a/hzims-service-api/video-image-api/video-image-api.iml b/hzims-service-api/video-image-api/video-image-api.iml
deleted file mode 100644
index 3e0824c..0000000
--- a/hzims-service-api/video-image-api/video-image-api.iml
+++ /dev/null
@@ -1,239 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/hzims-service-api/water-quality-api/water-quality-api.iml b/hzims-service-api/water-quality-api/water-quality-api.iml
deleted file mode 100644
index 3e0824c..0000000
--- a/hzims-service-api/water-quality-api/water-quality-api.iml
+++ /dev/null
@@ -1,239 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/hzims-service-api/water-rain-api/water-rain-api.iml b/hzims-service-api/water-rain-api/water-rain-api.iml
deleted file mode 100644
index 3e0824c..0000000
--- a/hzims-service-api/water-rain-api/water-rain-api.iml
+++ /dev/null
@@ -1,239 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/monitor/service/impl/AlarmSaveServiceImpl.java b/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/monitor/service/impl/AlarmSaveServiceImpl.java
index 15564c3..3bdfb4a 100644
--- a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/monitor/service/impl/AlarmSaveServiceImpl.java
+++ b/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/monitor/service/impl/AlarmSaveServiceImpl.java
@@ -6,6 +6,7 @@ import com.hnac.hzims.alarm.config.constants.AlarmConstants;
import com.hnac.hzims.alarm.config.service.AlarmConfigService;
import com.hnac.hzims.alarm.config.entity.AlarmEntity;
import com.hnac.hzims.alarm.monitor.service.AlarmSaveService;
+import com.hnac.hzims.alarm.show.service.AlarmHandleService;
import com.hnac.hzims.alarm.show.service.AlarmService;
import com.hnac.hzims.alarm.config.vo.AlarmHandleMarkVo;
import com.hnac.hzims.message.entity.MessagePushRecordEntity;
@@ -21,6 +22,7 @@ import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;
import java.util.List;
+import java.util.Optional;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
@@ -35,6 +37,8 @@ public class AlarmSaveServiceImpl implements AlarmSaveService {
private final AlarmService alarmService;
+ private final AlarmHandleService handleService;
+
private final AlarmConfigService alarmConfigService;
private final IStationClient stationClient;
@@ -49,41 +53,55 @@ public class AlarmSaveServiceImpl implements AlarmSaveService {
@Override
public Boolean save(List alarms) {
// 步骤1.查询告警数据对应站点
- R> result = stationClient.querySatationByCodes(alarms.stream().map(AlarmEntity::getStationId).collect(Collectors.toList()));
- if(!result.isSuccess() || CollectionUtil.isEmpty(result.getData())){
+ R> stations = stationClient.querySatationByCodes(alarms.stream().map(AlarmEntity::getStationId).collect(Collectors.toList()));
+ if(!stations.isSuccess() || CollectionUtil.isEmpty(stations.getData())){
log.error("alarm_query_station_is_null : {}",alarms.stream().map(AlarmEntity::getAlarmId).collect(Collectors.toList()));
return false;
}
+ // 步骤2.查询当天处理的告警
+ List handlers = handleService.sameDayContent();
+ // 步骤3.查询延后未完成的告警
+ List delays = handleService.incompleteContent();
+ // 步骤4.近5分钟内告警
Set keys = stringRedisTemplate.keys("hzims:queue:filter:alarm" + "*");
- // 步骤2.遍历保存告警数据
+ // 步骤5.遍历保存告警数据
alarms.forEach(alarm->{
- List stations = result.getData().stream().filter(o->o.getCode().equals(alarm.getStationId())).collect(Collectors.toList());
- if(CollectionUtil.isEmpty(stations)){
+ // 未匹配到站点
+ Optional optional = stations.getData().stream().filter(o->o.getCode().equals(alarm.getStationId())).findFirst();
+ if(!optional.isPresent()){
return;
}
- // 根据最近5分钟的数据,做去重
+ // 告警已处理
+ if(handlers.contains(alarm.getAlarmContext())){
+ return;
+ }
+ // 告警已延后处理
+ if(delays.contains(alarm.getAlarmContext())){
+ return;
+ }
+ // 近5分钟内告警重复
for (String key : keys) {
String value = stringRedisTemplate.opsForValue().get(key);
- if (value.equals(stations.get(0).getName()+alarm.getAlarmContext())){
+ if (value.equals(optional.get().getName()+alarm.getAlarmContext())){
return;
}
}
- // fpd告警拼接
+ // fpd告警拼接站点名称
if(AlarmConstants.EARLY_WARNING.equals(alarm.getAlarmSource())){
- alarm.setAlarmContext(stations.get(0).getName() + "." + alarm.getAlarmContext());
+ alarm.setAlarmContext(optional.get().getName() + "." + alarm.getAlarmContext());
}
- // 步骤3.站点参数设置
- alarm.setCreateDept(stations.get(0).getCreateDept());
- alarm.setStationName(stations.get(0).getName());
- alarm.setTenantId(stations.get(0).getTenantId());
+ // 站点参数设置
+ alarm.setCreateDept(optional.get().getCreateDept());
+ alarm.setStationName(optional.get().getName());
+ alarm.setTenantId(optional.get().getTenantId());
alarm.setStatus(0);
- // 步骤4.根据站点查询配置标识
+ // 根据站点查询配置标识
AlarmHandleMarkVo mark = alarmConfigService.mark(alarm.getStationId(),alarm.getAlarmSource(),alarm.getAlarmType());
if(ObjectUtil.isEmpty(mark)){
log.error("alarm_obtain_mark_is_null : {}",alarm.getAlarmId());
return;
}
- // 步骤5.告警处理标识赋值
+ // 告警处理标识赋值
alarm.setIsRightTabulation(mark.getIsRightTabulation());
alarm.setIsBroadcast(mark.getIsBroadcast());
alarm.setIsMask(mark.getIsMask());
@@ -92,16 +110,16 @@ public class AlarmSaveServiceImpl implements AlarmSaveService {
alarm.setIsSmallBell(mark.getIsSmallBell());
alarm.setIsShortMessage(mark.getIsShortMessage());
alarm.setIsWxMessage(mark.getIsWxMessage());
- // 步骤6.保存当日告警数据
+ // 保存告警
boolean isSave = alarmService.save(alarm);
if(!isSave){
log.error("alarm_save_fail : {}",alarm.getAlarmId());
return;
}
String key="hzims:queue:filter:alarm"+alarm.getAlarmId();
- stringRedisTemplate.opsForValue().set(key,stations.get(0).getName()+alarm.getAlarmContext());
+ stringRedisTemplate.opsForValue().set(key,optional.get().getName()+alarm.getAlarmContext());
stringRedisTemplate.expire(key,5, TimeUnit.MINUTES);
- // 步骤7.发生数据至redis告警队列
+ // 发送告警数据进行消息推送队列
stringRedisTemplate.opsForList().rightPush("hzims:queue:alarm", JSON.toJSONString(alarm));
});
return true;
diff --git a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/AlarmHandleService.java b/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/AlarmHandleService.java
index e196455..f4af51c 100644
--- a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/AlarmHandleService.java
+++ b/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/AlarmHandleService.java
@@ -25,4 +25,8 @@ public interface AlarmHandleService extends BaseService {
List handleUser();
List handles();
+
+ List sameDayContent();
+
+ List incompleteContent();
}
diff --git a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmHandleServiceImpl.java b/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmHandleServiceImpl.java
index 7fd7cb4..b53128a 100644
--- a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmHandleServiceImpl.java
+++ b/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmHandleServiceImpl.java
@@ -170,4 +170,22 @@ public class AlarmHandleServiceImpl extends BaseServiceImpl sameDayContent() {
+ return null;
+ }
+
+ /**
+ * 查询未到延后期限告警的内容
+ * @return
+ */
+ @Override
+ public List incompleteContent() {
+ return null;
+ }
}
diff --git a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmServiceImpl.java b/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmServiceImpl.java
index 2b769ec..1e3838e 100644
--- a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmServiceImpl.java
+++ b/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/service/impl/AlarmServiceImpl.java
@@ -3,15 +3,15 @@ package com.hnac.hzims.alarm.show.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
-import com.hnac.hzims.alarm.config.service.AlarmConfigService;
import com.hnac.hzims.alarm.config.constants.AlarmConstants;
import com.hnac.hzims.alarm.config.entity.AlarmEntity;
+import com.hnac.hzims.alarm.config.service.AlarmConfigService;
+import com.hnac.hzims.alarm.config.vo.AlarmCountVo;
+import com.hnac.hzims.alarm.config.vo.ChildAlarmCountVo;
import com.hnac.hzims.alarm.show.mapper.AlarmMapper;
import com.hnac.hzims.alarm.show.service.AlarmHandleService;
import com.hnac.hzims.alarm.show.service.AlarmService;
import com.hnac.hzims.alarm.source.service.MessageService;
-import com.hnac.hzims.alarm.config.vo.AlarmCountVo;
-import com.hnac.hzims.alarm.config.vo.ChildAlarmCountVo;
import com.hnac.hzims.equipment.entity.EmInfoEntity;
import com.hnac.hzims.equipment.entity.EmVideoBandingEntity;
import com.hnac.hzims.equipment.feign.IEmInfoClient;
@@ -20,10 +20,8 @@ import com.hnac.hzims.message.dto.MailMessageDTO;
import com.hnac.hzims.message.fegin.IMessageClient;
import com.hnac.hzims.operational.station.entity.StationEntity;
import com.hnac.hzims.operational.station.feign.IStationClient;
-import com.hnac.hzinfo.sdk.v5.device.DeviceDataClient;
import com.hnac.hzinfo.sdk.v5.device.client.DeviceClient;
import com.hnac.hzinfo.sdk.v5.device.vo.DeviceInstanceAttrVO;
-import com.hnac.hzinfo.sdk.v5.project.ProjectClient;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.core.log.exception.ServiceException;
diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/configuration/BigModelInvokeUrl.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/configuration/BigModelInvokeUrl.java
index 0456fa2..8179cba 100644
--- a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/configuration/BigModelInvokeUrl.java
+++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/configuration/BigModelInvokeUrl.java
@@ -23,6 +23,9 @@ public class BigModelInvokeUrl {
private String updateVideo;
+ private String updateFault;
+
private String updateCanvas;
+ private String assistantKnowledgeAsk;
}
diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/FuncRouteEnum.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/FuncRouteEnum.java
index 724f97e..4b1d359 100644
--- a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/FuncRouteEnum.java
+++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/FuncRouteEnum.java
@@ -12,19 +12,26 @@ import java.util.Optional;
*/
@AllArgsConstructor
public enum FuncRouteEnum {
- OPEN_SCADA("open_scada","打开实时画面"),
- OPEN_VIDEO("open_video","打开视频监控"),
- DIAGNOSE("diagnose","智能诊断"),
- CHOOSE_STATION("choose_station","选择站点"),
+ OPEN_CANVAS("open_canvas","打开实时画面",null),
+ OPEN_VIDEO("open_video","打开视频监控",null),
+ DIAGNOSE("diagnose","智能诊断",null),
+ CHOOSE_STATION("choose_station","选择站点",null),
+ CHOOSE_VIDEO("choose_video","选择视频",null),
+ CHOOSE_CANVAS("choose_canvas","选择画面",null),
+ CHOOSE_FAULT("choose_fault","选择故障",null),
+ CONFIRM_YK("confirm_yk","遥控确认", FunctionConstants.TypeEnum.PARAMS),
+ SHOW_PARAM("show_param","设备参数查询", FunctionConstants.TypeEnum.PARAMS),
;
@Getter
private String funcCode;
@Getter
private String funcName;
+ @Getter
+ private FunctionConstants.TypeEnum type;
public static FuncRouteEnum getEnumByFuncCode(String funcCode) {
Optional FuncRoute = Arrays.stream(FuncRouteEnum.class.getEnumConstants()).filter(e -> funcCode.equals(e.getFuncCode())).findFirst();
- return FuncRoute.get();
+ return FuncRoute.orElse(null);
}
}
diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/ProjectRemoteTypeEnum.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/ProjectRemoteTypeEnum.java
new file mode 100644
index 0000000..069572a
--- /dev/null
+++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/constants/ProjectRemoteTypeEnum.java
@@ -0,0 +1,22 @@
+package com.hnac.hzims.bigmodel.interactive.constants;
+
+import lombok.AllArgsConstructor;
+import lombok.Getter;
+
+/**
+ * @Author: huangxing
+ * @Date: 2024/05/21 16:34
+ */
+@AllArgsConstructor
+public enum ProjectRemoteTypeEnum {
+ /**不允许发送遥控**/
+ NOT_ALLOW(0),
+ /**运行发送遥控并且需要校验权限**/
+ VALID(1),
+ /**运行发送遥控并免校验权限**/
+ ALLOW(2),
+ ;
+ @Getter
+ private Integer ctrlType;
+
+}
diff --git a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/controller/InteractiveController.java b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/controller/InteractiveController.java
index 7739800..a80b2aa 100644
--- a/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/controller/InteractiveController.java
+++ b/hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/interactive/controller/InteractiveController.java
@@ -1,5 +1,6 @@
package com.hnac.hzims.bigmodel.interactive.controller;
+import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.hnac.hzims.bigmodel.BigModelConstants;
@@ -12,9 +13,12 @@ import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import org.springblade.core.tool.api.R;
+import org.springblade.system.dto.ControlDTO;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
+import java.util.HashMap;
+import java.util.Map;
/**
* @Author: huangxing
@@ -48,8 +52,9 @@ public class InteractiveController {
@RequestMapping(value = "/authentication",method = {RequestMethod.GET,RequestMethod.POST})
public R authentication(@RequestParam(required = false) @ApiParam("站点编号") String stationId,
@RequestParam @ApiParam("用户ID") String userId,
- @RequestParam(required = false) @ApiParam("菜单ID") String funcCode) {
- return R.status(interactiveService.authentication(stationId,userId,funcCode));
+ @RequestParam(required = false) @ApiParam("菜单ID") String func,
+ @RequestParam(required = false) @ApiParam("会话ID")String askId) {
+ return R.status(interactiveService.authentication(stationId,userId,func,askId));
}
@ApiOperation("获取问答sessionId")
@@ -66,5 +71,10 @@ public class InteractiveController {
return R.data(interactiveService.removeSessionId(sessionId));
}
-
+ @ApiOperation("下发遥控指令")
+ @ApiOperationSupport(order = 6)
+ @PostMapping("/sendRemoteControl")
+ public R
diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/RehearsalController.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/RehearsalController.java
index ae78443..14cdc89 100644
--- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/RehearsalController.java
+++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/RehearsalController.java
@@ -82,7 +82,8 @@ public class RehearsalController extends BladeController {
@ApiImplicitParams({
@ApiImplicitParam(name = "unit", value = "单位", dataType = "query", paramType = "string"),
@ApiImplicitParam(name = "scheduledStartTime", value = "计划开始时间", dataType = "query", paramType = "string"),
- @ApiImplicitParam(name = "scheduledEndTime", value = "计划结束时间", dataType = "query", paramType = "string")
+ @ApiImplicitParam(name = "scheduledEndTime", value = "计划结束时间", dataType = "query", paramType = "string"),
+ @ApiImplicitParam(name = "rehearsalStatus", value = "演练状态", dataType = "query", paramType = "string")
})
@ApiOperation(value = "演练计划分页")
@ApiOperationSupport(order = 5)
diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/TrainController.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/TrainController.java
index 57ef4ba..7eda44c 100644
--- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/TrainController.java
+++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/controller/TrainController.java
@@ -91,7 +91,8 @@ public class TrainController extends BladeController {
@ApiImplicitParams({
@ApiImplicitParam(name = "unit", value = "单位", dataType = "query", paramType = "string"),
@ApiImplicitParam(name = "scheduledStartTime", value = "计划开始时间", dataType = "query", paramType = "string"),
- @ApiImplicitParam(name = "scheduledEndTime", value = "计划结束时间", dataType = "query", paramType = "string")
+ @ApiImplicitParam(name = "scheduledEndTime", value = "计划结束时间", dataType = "query", paramType = "string"),
+ @ApiImplicitParam(name = "trainStatus", value = "培训计划状态", dataType = "query", paramType = "string")
})
@ApiOperation(value = "培训计划分页")
@ApiOperationSupport(order = 5)
diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/TrainPlanMapper.xml b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/TrainPlanMapper.xml
index a9ca3f6..19ef188 100644
--- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/TrainPlanMapper.xml
+++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/TrainPlanMapper.xml
@@ -87,6 +87,9 @@
AND scheduled_end_time <= #{param.endTime}
+
+ AND train_status = #{param.trainStatus}
+
ORDER BY
create_time DESC
diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/RehearsalPlanServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/RehearsalPlanServiceImpl.java
index 1714714..9cd63ef 100644
--- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/RehearsalPlanServiceImpl.java
+++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/RehearsalPlanServiceImpl.java
@@ -275,7 +275,8 @@ public class RehearsalPlanServiceImpl extends ServiceImpl queryWrapper = new QueryWrapper<>();
String unit = String.valueOf(param.get("unit"));
String startTime = String.valueOf(param.get("scheduledStartTime"));
- String endTime = String.valueOf((param.get("scheduledEndTime")));
+ String endTime = String.valueOf(param.get("scheduledEndTime"));
+ String rehearsalStatus = String.valueOf(param.get("rehearsalStatus"));
if (!unit.equals("null") && !unit.equals("")) {
queryWrapper.lambda().like(RehearsalPlanEntity::getUnit, unit);
}
@@ -285,6 +286,9 @@ public class RehearsalPlanServiceImpl extends ServiceImpl list = new ArrayList<>();
- if (StringUtils.isNotEmpty(rehearsalRecordDetailVO.getImgPath())) {
- String[] imgArr = rehearsalRecordDetailVO.getImgPath().split(",");
- for (String img : imgArr) {
- ImageEntity imageEntity = new ImageEntity(BaseUtil.imgToByte(savePath +
- BaseUtil.downloadFileByUrl(img, savePath)), 180, 150);
- list.add(imageEntity);
- }
- } else {
- // 添加空的ImageEntity,防止数据填入时显示"{{"
- list.add(new ImageEntity());
- }
- rehearsalRecordDetailVO.setImages(list);
// 记录:换行符使用\r\n
String standardRecord = rehearsalRecordDetailVO.getRecord().replaceAll("\n", "\r\n");
rehearsalRecordDetailVO.setRecord(standardRecord);
@@ -183,7 +172,28 @@ public class RehearsalRecordServiceImpl extends ServiceImpl params = BaseUtil.obj2Map(rehearsalRecordDetailVO);
+ // 图片
+ Map params;
+ if (StringUtils.isNotEmpty(rehearsalRecordDetailVO.getImgPath())) {
+ List list = new ArrayList<>();
+ RehearsalRecordDetailImgVO imgVO = new RehearsalRecordDetailImgVO();
+ BeanUtils.copyProperties(rehearsalRecordDetailVO, imgVO);
+ String[] imgArr = rehearsalRecordDetailVO.getImgPath().split(",");
+ for (String img : imgArr) {
+ ImageEntity imageEntity = new ImageEntity(BaseUtil.imgToByte(savePath +
+ BaseUtil.downloadFileByUrl(img, savePath)), 180, 150);
+ list.add(imageEntity);
+ }
+ imgVO.setImages(list);
+ params = BaseUtil.obj2Map(imgVO);
+ } else {
+ List list = new ArrayList<>();
+ list.add("");
+ RehearsalRecordDetailStrVO strVO = new RehearsalRecordDetailStrVO();
+ BeanUtils.copyProperties(rehearsalRecordDetailVO, strVO);
+ strVO.setImages(list);
+ params = BaseUtil.obj2Map(strVO);
+ }
String templateFile = "template/演练记录表" + SafeProductConstant.DOCX_SUFFIX;
String wordPath = savePath + "/演练记录表" + SafeProductConstant.DOCX_SUFFIX;
String pdfPath = savePath + "/演练记录表" + SafeProductConstant.PDF_SUFFIX;
diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/TestScoreServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/TestScoreServiceImpl.java
index 6145b38..a075bb2 100644
--- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/TestScoreServiceImpl.java
+++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/TestScoreServiceImpl.java
@@ -126,6 +126,7 @@ public class TestScoreServiceImpl extends ServiceImpl iterator = p.getRuns().iterator();
- while (iterator.hasNext()) {
- XWPFRun r = iterator.next();
- String text = r.getText(0);
+ for (int index = 0; index < p.getRuns().size(); index++) {
+ XWPFRun run = p.getRuns().get(index);
+ String text = run.getText(0);
if (findText.equals(text)) {
- r.setText("", 0); // 清除原有文本
- XWPFParagraph paragraph = r.getParagraph();
- for (int i = 0; i < jsonArray.length(); i++) {
- JSONObject jsonObject = jsonArray.getJSONObject(i);
- String name = jsonObject.getString("name");
- String url = jsonObject.getString("url");
- url = URLEncoder.encode(url, "UTF-8");
- String id = paragraph.getDocument().getPackagePart().addExternalRelationship(url, XWPFRelation.HYPERLINK.getRelation()).getId();
- CTHyperlink cLink = paragraph.getCTP().addNewHyperlink();
- cLink.setId(id);
- CTText ctText = CTText.Factory.newInstance();
- ctText.setStringValue(name);
- CTR ctr = CTR.Factory.newInstance();
- ctr.setTArray(new CTText[]{ctText});
- cLink.setRArray(new CTR[]{ctr});
- if (i tableList = xwpfDocument.getTables();
+ if (tableList.size() > 0) {
+ // 循环表格
+ for (XWPFTable table : tableList) {
+ // 获取表格所有行数
+ List rows = table.getRows();
+ // 第五行到倒数第三行为需合并区域
+ for (int row = 5; row < rows.size() - 2;) {
+ XWPFTableCell startCell = rows.get(row).getCell(0);
+ String startText = startCell.getText();
+ int index = row + 1;
+ for (; index < rows.size(); index++) {
+ XWPFTableCell endCell = rows.get(index).getCell(0);
+ String endText = endCell.getText();
+ if (!startText.equals(endText)) {
+ break;
+ }
+ }
+ mergeCellsVertically(table, 0, row, index - 1);
+ row = index;
+ }
+ }
+ }
+ }
+
+ private static void insertJsonArrayIntoParagraph(JSONArray jsonArray, XWPFParagraph paragraph) throws IOException {
+ for (int i = 0; i < jsonArray.length(); i++) {
+ JSONObject jsonObject = jsonArray.getJSONObject(i);
+ String name = jsonObject.getString("name");
+ String url = jsonObject.getString("url");
+ // URL编码格式化
+ String encodeName = URLEncoder.encode(name, "UTF-8").replaceAll("\\+", "%20");
+ String prefixString = url.substring(0, url.lastIndexOf("/") + 1);
+ String encodeUrl = prefixString + encodeName;
+ String id = paragraph.getDocument().getPackagePart().addExternalRelationship(encodeUrl,
+ XWPFRelation.HYPERLINK.getRelation()).getId();
+ CTHyperlink cLink = paragraph.getCTP().addNewHyperlink();
+ cLink.setId(id);
+ CTText ctText = CTText.Factory.newInstance();
+ ctText.setStringValue(name);
+ CTR ctr = CTR.Factory.newInstance();
+ ctr.setTArray(new CTText[]{ctText});
+ cLink.setRArray(new CTR[]{ctr});
+ if (i < jsonArray.length() - 1) {
+ paragraph.createRun().addBreak();
+ }
+ }
+ }
+
+ /**
* 卫生自查表格式处理
* @param xwpfDocument word文件类
*/
diff --git a/hzims-service/safeproduct/src/main/resources/db/2.0.1.sql b/hzims-service/safeproduct/src/main/resources/db/2.0.1.sql
index b1296e1..3730612 100644
--- a/hzims-service/safeproduct/src/main/resources/db/2.0.1.sql
+++ b/hzims-service/safeproduct/src/main/resources/db/2.0.1.sql
@@ -40,4 +40,8 @@ CREATE TABLE IF NOT EXISTS `hzims_hygiene_template_detail` (
`status` int(2) NOT NULL DEFAULT '1' COMMENT '状态',
`is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除',
PRIMARY KEY (`id`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='卫生自查模板详情表';
\ No newline at end of file
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='卫生自查模板详情表';
+
+-- 添加考试及格分字段
+ALTER TABLE hzims_test
+ ADD COLUMN passing_score int(10) NOT NULL DEFAULT 60 COMMENT '考试及格分';
\ No newline at end of file
diff --git a/hzims-service/safeproduct/src/main/resources/template/演练记录表.docx b/hzims-service/safeproduct/src/main/resources/template/演练记录表.docx
index c83a99c..38209f5 100644
Binary files a/hzims-service/safeproduct/src/main/resources/template/演练记录表.docx and b/hzims-service/safeproduct/src/main/resources/template/演练记录表.docx differ
diff --git a/hzims-service/spare/Dockerfile b/hzims-service/spare/Dockerfile
deleted file mode 100644
index 453af19..0000000
--- a/hzims-service/spare/Dockerfile
+++ /dev/null
@@ -1,24 +0,0 @@
-FROM adoptopenjdk/openjdk8-openj9:alpine-slim
-
-MAINTAINER smallchill@163.com
-
-RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
-
-RUN apk add -U tzdata \
- && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
- && echo "Asia/Shanghai" > /etc/timezone \
- && apk add --no-cache bash bash-doc bash-completion \
- && apk del tzdata \
- && rm -rf /var/cache/apk/*
-
-RUN mkdir -p /blade/desk
-
-WORKDIR /blade/desk
-
-EXPOSE 8105
-
-ADD ./target/blade-demo.jar ./app.jar
-
-ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar app.jar
-
-CMD ["--spring.profiles.active=test"]
diff --git a/hzims-service/spare/pom.xml b/hzims-service/spare/pom.xml
deleted file mode 100644
index 88c1e6d..0000000
--- a/hzims-service/spare/pom.xml
+++ /dev/null
@@ -1,96 +0,0 @@
-
-
-
-
- com.hnac.hzims
- hzims-service
- 4.0.0-SNAPSHOT
-
-
- 4.0.0
-
- spare
- ${project.artifactId}
- ${bladex.project.version}
- jar
-
-
-
- org.springblade
- blade-core-boot
-
-
- org.springblade
- blade-starter-swagger
-
-
- org.springblade
- blade-starter-oss-all
-
-
- com.hnac.hzims
- spare-api
- ${hzims.project.version}
-
-
- com.baomidou
- dynamic-datasource-spring-boot-starter
- 2.5.6
-
-
- org.springblade
- blade-core-test
- test
-
-
- org.springblade
- blade-core-auto
- provided
-
-
-
-
-
- com.hnac.hzinfo
- common-asm-api
- 0.0.1-SNAPSHOT
-
-
- com.github.miemiedev
- mybatis-paginator
-
-
- com.sun.media
- jai-codec
-
-
-
-
-
-
-
-
- com.spotify
- dockerfile-maven-plugin
-
- ${docker.username}
- ${docker.password}
- ${docker.registry.url}/${docker.namespace}/${project.artifactId}
- ${project.version}
- true
-
- target/${project.build.finalName}.jar
-
- true
-
-
-
- org.apache.maven.plugins
- maven-antrun-plugin
-
-
-
-
-
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/SpareApplication.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/SpareApplication.java
deleted file mode 100644
index a506e43..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/SpareApplication.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright (c) 2018-2028, Chill Zhuang 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 dreamlu.net 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: Chill 庄骞 (smallchill@163.com)
- */
-package com.hnac.hzims.spare;
-
-import org.mybatis.spring.annotation.MapperScan;
-import org.springblade.core.cloud.feign.EnableBladeFeign;
-import org.springblade.core.launch.BladeApplication;
-import org.springblade.core.launch.constant.AppConstant;
-import org.springframework.cloud.client.SpringCloudApplication;
-
-/**
- * Demo启动器
- *
- * @author Chill
- */
-@EnableBladeFeign
-@SpringCloudApplication
-@MapperScan("com.hnac.hzims.spare.**.mapper.**")
-public class SpareApplication {
-
- public static void main(String[] args) {
- BladeApplication.run("hzims-spare", SpareApplication.class, args);
- }
-
-}
-
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/config/DemoConfiguration.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/config/DemoConfiguration.java
deleted file mode 100644
index 8768e01..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/config/DemoConfiguration.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (c) 2018-2028, Chill Zhuang 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 dreamlu.net 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: Chill 庄骞 (smallchill@163.com)
- */
-package com.hnac.hzims.spare.config;
-
-
-import com.hnac.hzims.spare.props.DemoProperties;
-import org.mybatis.spring.annotation.MapperScan;
-import org.springframework.boot.context.properties.EnableConfigurationProperties;
-import org.springframework.cloud.openfeign.EnableFeignClients;
-import org.springframework.context.annotation.Configuration;
-
-/**
- * 配置feign、mybatis包名、properties
- *
- * @author Chill
- */
-@Configuration
-@EnableFeignClients({"org.springblade", "com.example"})
-@MapperScan({"org.springblade.**.mapper.**", "com.example.**.mapper.**"})
-@EnableConfigurationProperties(DemoProperties.class)
-public class DemoConfiguration {
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/DemoController.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/DemoController.java
deleted file mode 100644
index 46812d9..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/DemoController.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Copyright (c) 2018-2028, Chill Zhuang 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 dreamlu.net 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: Chill 庄骞 (smallchill@163.com)
- */
-package com.hnac.hzims.spare.controller;
-
-import com.hnac.hzims.spare.props.DemoProperties;
-import io.swagger.annotations.Api;
-import org.springframework.beans.factory.annotation.Value;
-import org.springframework.cloud.context.config.annotation.RefreshScope;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-/**
- * Demo控制器
- *
- * @author Chill
- */
-@RefreshScope
-@RestController
-@RequestMapping("demo")
-@Api(value = "配置接口", tags = "即时刷新配置")
-public class DemoController {
-
- @Value("${demo.name}")
- private String name;
-
- private final DemoProperties properties;
-
- public DemoController(DemoProperties properties) {
- this.properties = properties;
- }
-
-
- @GetMapping("name")
- public String getName() {
- return name;
- }
-
- @GetMapping("name-by-props")
- public String getNameByProps() {
- return properties.getName();
- }
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/DynamicController.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/DynamicController.java
deleted file mode 100644
index 2b7e8db..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/DynamicController.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Copyright (c) 2018-2028, Chill Zhuang 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 dreamlu.net 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: Chill 庄骞 (smallchill@163.com)
- */
-package com.hnac.hzims.spare.controller;
-
-import com.hnac.hzims.spare.entity.Notice;
-import com.hnac.hzims.spare.service.IDynamicService;
-import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import lombok.AllArgsConstructor;
-import org.springblade.core.tool.api.R;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-import java.util.List;
-
-/**
- * 多数据源
- *
- * @author Chill
- */
-@RestController
-@AllArgsConstructor
-@RequestMapping("dynamic")
-@Api(value = "多数据源接口", tags = "多数据源")
-public class DynamicController {
-
- private final IDynamicService dynamicService;
-
- /**
- * master列表
- */
- @GetMapping("/master-list")
- @ApiOperationSupport(order = 1)
- @ApiOperation(value = "master列表", notes = "master列表")
- public R> masterList() {
- List list = dynamicService.masterList();
- return R.data(list);
- }
-
- /**
- * slave列表
- */
- @GetMapping("/slave-list")
- @ApiOperationSupport(order = 1)
- @ApiOperation(value = "slave列表", notes = "slave列表")
- public R> slaveList() {
- List list = dynamicService.slaveList();
- return R.data(list);
- }
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpChangeDetailController.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpChangeDetailController.java
deleted file mode 100644
index c159e2a..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpChangeDetailController.java
+++ /dev/null
@@ -1,87 +0,0 @@
-package com.hnac.hzims.spare.controller;
-
-import com.hnac.hzims.spare.service.IHzimsSpChangeDetailService;
-import io.swagger.annotations.Api;
-import lombok.AllArgsConstructor;
-import org.springblade.core.boot.ctrl.BladeController;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-
-/**
- * 备品备件出入库详情 控制器
- *
- * @author Chill
- */
-@RestController
-@AllArgsConstructor
-@RequestMapping("/hzims-spare/spChangeDetail")
-@Api(value = "备品备件出入库详情", tags = "备品备件出入库详情")
-public class HzimsSpChangeDetailController extends BladeController {
-
- private final IHzimsSpChangeDetailService spChangeDetailService;
-/*
- *//**
- * 详情
- *//*
- @GetMapping("/detail")
- @ApiOperationSupport(order = 1)
- @ApiOperation(value = "详情", notes = "传入spChangeDetail")
- public R detail(HzimsSpChangeDetailEntity spChangeDetail) {
- HzimsSpChangeDetailEntity detail = spChangeDetailService.getOne(Condition.getQueryWrapper(spChangeDetail));
- return R.data(detail);
- }
-
- *//**
- * 分页 代码自定义代号
- *//*
- @GetMapping("/list")
- @ApiOperationSupport(order = 2)
- @ApiOperation(value = "分页", notes = "传入spChangeDetail")
- public R> list(HzimsSpChangeDetailEntity spChangeDetail, Query query) {
- IPage pages = spChangeDetailService.page(Condition.getPage(query), Condition.getQueryWrapper(spChangeDetail));
- return R.data(pages);
- }
-
- *//**
- * 新增 代码自定义代号
- *//*
- @PostMapping("/save")
- @ApiOperationSupport(order = 4)
- @ApiOperation(value = "新增", notes = "传入spChangeDetail")
- public R save(@Valid @RequestBody HzimsSpChangeDetailEntity spChangeDetail) {
- return R.status(spChangeDetailService.save(spChangeDetail));
- }
-
- *//**
- * 修改 代码自定义代号
- *//*
- @PostMapping("/update")
- @ApiOperationSupport(order = 5)
- @ApiOperation(value = "修改", notes = "传入spChangeDetail")
- public R update(@Valid @RequestBody HzimsSpChangeDetailEntity spChangeDetail) {
- return R.status(spChangeDetailService.updateById(spChangeDetail));
- }
-
- *//**
- * 新增或修改 代码自定义代号
- *//*
- @PostMapping("/submit")
- @ApiOperationSupport(order = 6)
- @ApiOperation(value = "新增或修改", notes = "传入spChangeDetail")
- public R submit(@Valid @RequestBody HzimsSpChangeDetailEntity spChangeDetail) {
- return R.status(spChangeDetailService.saveOrUpdate(spChangeDetail));
- }
-
-
- *//**
- * 删除 代码自定义代号
- *//*
- @PostMapping("/remove")
- @ApiOperationSupport(order = 7)
- @ApiOperation(value = "逻辑删除", notes = "传入ids")
- public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
- return R.status(spChangeDetailService.deleteLogic(Func.toLongList(ids)));
- }*/
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpChangeRecController.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpChangeRecController.java
deleted file mode 100644
index 7116021..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpChangeRecController.java
+++ /dev/null
@@ -1,111 +0,0 @@
-package com.hnac.hzims.spare.controller;
-
-import com.baomidou.mybatisplus.core.metadata.IPage;
-import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
-import com.github.xiaoymin.knife4j.annotations.ApiSort;
-import com.hnac.hzims.spare.entity.HzimsSpChangeRecEntity;
-import com.hnac.hzims.spare.service.IHzimsSpChangeRecService;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import io.swagger.annotations.ApiParam;
-import lombok.AllArgsConstructor;
-import org.springblade.core.boot.ctrl.BladeController;
-import org.springblade.core.mp.support.Condition;
-import org.springblade.core.mp.support.Query;
-import org.springblade.core.tool.api.R;
-import org.springblade.core.tool.utils.Func;
-import org.springframework.web.bind.annotation.*;
-
-import javax.validation.Valid;
-
-
-/**
- * 备品备件出入库 控制器
- *
- * @author Chill
- */
-@RestController
-@AllArgsConstructor
-@RequestMapping("/spare/spChangeRec")
-@ApiSort(value = 4)
-@Api(value = "备品备件出入库", tags = "备品备件出入库")
-public class HzimsSpChangeRecController extends BladeController {
-
- private final IHzimsSpChangeRecService spChangeRecService;
-
- /**
- * 详情
- */
- @GetMapping("/detail")
- @ApiOperationSupport(order = 3)
- @ApiOperation(value = "详情", notes = "传入spChangeRec")
- public R detail(HzimsSpChangeRecEntity spChangeRec) {
- HzimsSpChangeRecEntity detail = spChangeRecService.getOne(Condition.getQueryWrapper(spChangeRec));
- return R.data(detail);
- }
-
- /**
- * 分页 代码自定义代号
- */
- @GetMapping("/list")
- @ApiOperationSupport(order = 2)
- @ApiOperation(value = "分页", notes = "传入spChangeRec")
- public R> list(HzimsSpChangeRecEntity spChangeRec, Query query) {
- IPage pages = spChangeRecService.page(Condition.getPage(query), Condition.getQueryWrapper(spChangeRec));
- return R.data(pages);
- }
-
- /**
- * 新增 代码自定义代号
- */
- @PostMapping("/save")
- @ApiOperationSupport(order = 10)
- @ApiOperation(value = "新增", notes = "传入spChangeRec")
- public R save(@Valid @RequestBody HzimsSpChangeRecEntity spChangeRec) {
- return R.status(spChangeRecService.save(spChangeRec));
- }
-
- /**
- * 修改 代码自定义代号
- */
- @PostMapping("/update")
- @ApiOperationSupport(order = 11)
- @ApiOperation(value = "修改", notes = "传入spChangeRec")
- public R update(@Valid @RequestBody HzimsSpChangeRecEntity spChangeRec) {
- return R.status(spChangeRecService.updateById(spChangeRec));
- }
-
- /**
- * 新增或修改 代码自定义代号
- */
- @PostMapping("/submit")
- @ApiOperationSupport(order = 1)
- @ApiOperation(value = "新增或修改", notes = "传入spChangeRec")
- public R submit(@Valid @RequestBody HzimsSpChangeRecEntity spChangeRec) {
- return R.status(spChangeRecService.saveOrUpdate(spChangeRec));
- }
-
-
- /**
- * 删除 代码自定义代号
- */
- @PostMapping("/remove")
- @ApiOperationSupport(order = 12)
- @ApiOperation(value = "逻辑删除", notes = "传入ids")
- public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
- return R.status(spChangeRecService.deleteLogic(Func.toLongList(ids)));
- }
-
-
-
- /**
- * 删除 (物理删除)
- */
- @PostMapping("/removeById")
- @ApiOperationSupport(order = 4)
- @ApiOperation(value = "物理删除", notes = "传入id")
- public R removeById(@ApiParam(value = "主键", required = true) @RequestParam Long id) {
- return R.status(spChangeRecService.removeById(id));
- }
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpFileController.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpFileController.java
deleted file mode 100644
index f909dff..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpFileController.java
+++ /dev/null
@@ -1,97 +0,0 @@
-package com.hnac.hzims.spare.controller;
-
-import com.baomidou.mybatisplus.core.metadata.IPage;
-import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
-import com.hnac.hzims.spare.entity.HzimsSpFileEntity;
-import com.hnac.hzims.spare.service.IHzimsSpFileService;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import io.swagger.annotations.ApiParam;
-import lombok.AllArgsConstructor;
-import org.springblade.core.boot.ctrl.BladeController;
-import org.springblade.core.mp.support.Condition;
-import org.springblade.core.mp.support.Query;
-import org.springblade.core.tool.api.R;
-import org.springblade.core.tool.utils.Func;
-import org.springframework.web.bind.annotation.*;
-
-import javax.validation.Valid;
-
-
-/**
- * 备品备件文件表 控制器
- *
- * @author Chill
- */
-@RestController
-@AllArgsConstructor
-@RequestMapping("/hzims-spare/spFile")
-@Api(value = "备品备件文件表", tags = "备品备件文件表")
-public class HzimsSpFileController extends BladeController {
-
- private final IHzimsSpFileService spFileService;
-
- /**
- * 详情
- */
- @GetMapping("/detail")
- @ApiOperationSupport(order = 1)
- @ApiOperation(value = "详情", notes = "传入spFile")
- public R detail(HzimsSpFileEntity spFile) {
- HzimsSpFileEntity detail = spFileService.getOne(Condition.getQueryWrapper(spFile));
- return R.data(detail);
- }
-
- /**
- * 分页 代码自定义代号
- */
- @GetMapping("/list")
- @ApiOperationSupport(order = 2)
- @ApiOperation(value = "分页", notes = "传入spFile")
- public R> list(HzimsSpFileEntity spFile, Query query) {
- IPage pages = spFileService.page(Condition.getPage(query), Condition.getQueryWrapper(spFile));
- return R.data(pages);
- }
-
- /**
- * 新增 代码自定义代号
- */
- @PostMapping("/save")
- @ApiOperationSupport(order = 4)
- @ApiOperation(value = "新增", notes = "传入spFile")
- public R save(@Valid @RequestBody HzimsSpFileEntity spFile) {
- return R.status(spFileService.save(spFile));
- }
-
- /**
- * 修改 代码自定义代号
- */
- @PostMapping("/update")
- @ApiOperationSupport(order = 5)
- @ApiOperation(value = "修改", notes = "传入spFile")
- public R update(@Valid @RequestBody HzimsSpFileEntity spFile) {
- return R.status(spFileService.updateById(spFile));
- }
-
- /**
- * 新增或修改 代码自定义代号
- */
- @PostMapping("/submit")
- @ApiOperationSupport(order = 6)
- @ApiOperation(value = "新增或修改", notes = "传入spFile")
- public R submit(@Valid @RequestBody HzimsSpFileEntity spFile) {
- return R.status(spFileService.saveOrUpdate(spFile));
- }
-
-
- /**
- * 删除 代码自定义代号
- */
- @PostMapping("/remove")
- @ApiOperationSupport(order = 7)
- @ApiOperation(value = "逻辑删除", notes = "传入ids")
- public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
- return R.status(spFileService.deleteLogic(Func.toLongList(ids)));
- }
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpProviderController.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpProviderController.java
deleted file mode 100644
index e06866e..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpProviderController.java
+++ /dev/null
@@ -1,125 +0,0 @@
-package com.hnac.hzims.spare.controller;
-
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
-import com.baomidou.mybatisplus.core.metadata.IPage;
-import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
-import com.github.xiaoymin.knife4j.annotations.ApiSort;
-import com.hnac.hzims.spare.entity.HzimsSpProviderEntity;
-import com.hnac.hzims.spare.service.IHzimsSpProviderService;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import io.swagger.annotations.ApiParam;
-import lombok.AllArgsConstructor;
-import org.apache.commons.lang3.StringUtils;
-import org.springblade.core.boot.ctrl.BladeController;
-import org.springblade.core.mp.support.Condition;
-import org.springblade.core.mp.support.Query;
-import org.springblade.core.tool.api.R;
-import org.springblade.core.tool.utils.Func;
-import org.springframework.web.bind.annotation.*;
-
-import javax.validation.Valid;
-
-
-/**
- * 备品备件供应商 控制器
- *
- * @author Chill
- */
-@RestController
-@AllArgsConstructor
-@RequestMapping("/spare/spProvider")
-@ApiSort(value = 3)
-@Api(value = "备品备件供应商", tags = "备品备件供应商")
-public class HzimsSpProviderController extends BladeController {
-
- private final IHzimsSpProviderService spProviderService;
-
- /**
- * 详情
- */
- @GetMapping("/detail")
- @ApiOperationSupport(order = 3)
- @ApiOperation(value = "详情", notes = "传入spProvider")
- public R detail(HzimsSpProviderEntity spProvider) {
- HzimsSpProviderEntity detail = spProviderService.getOne(Condition.getQueryWrapper(spProvider));
- return R.data(detail);
- }
-
- /**
- * 分页 代码自定义代号
- */
- @GetMapping("/list")
- @ApiOperationSupport(order = 2)
- @ApiOperation(value = "分页", notes = "传入spProvider")
- public R> list(HzimsSpProviderEntity spProvider, Query query) {
- String name = spProvider.getName();
- String legalPerson = spProvider.getLegalPerson();
- spProvider.setName(null);
- spProvider.setLegalPerson(null);
- QueryWrapper queryWrapper = Condition.getQueryWrapper(spProvider);
- if(StringUtils.isNotBlank(name)){
- queryWrapper.like("NAME",name);
- }
- if(StringUtils.isNotBlank(legalPerson)){
- queryWrapper.like("LEGAL_PERSON",legalPerson);
- }
-
- IPage pages = spProviderService.page(Condition.getPage(query), queryWrapper);
- return R.data(pages);
- }
-
- /**
- * 新增 代码自定义代号
- */
- @PostMapping("/save")
- @ApiOperationSupport(order = 10)
- @ApiOperation(value = "新增", notes = "传入spProvider")
- public R save(@Valid @RequestBody HzimsSpProviderEntity spProvider) {
- return R.status(spProviderService.save(spProvider));
- }
-
- /**
- * 修改 代码自定义代号
- */
- @PostMapping("/update")
- @ApiOperationSupport(order = 11)
- @ApiOperation(value = "修改", notes = "传入spProvider")
- public R update(@Valid @RequestBody HzimsSpProviderEntity spProvider) {
- return R.status(spProviderService.updateById(spProvider));
- }
-
- /**
- * 新增或修改 代码自定义代号
- */
- @PostMapping("/submit")
- @ApiOperationSupport(order = 1)
- @ApiOperation(value = "新增或修改", notes = "传入spProvider")
- public R submit(@Valid @RequestBody HzimsSpProviderEntity spProvider) {
- return R.status(spProviderService.saveOrUpdate(spProvider));
- }
-
-
- /**
- * 删除 代码自定义代号
- */
- @PostMapping("/remove")
- @ApiOperationSupport(order = 12)
- @ApiOperation(value = "逻辑删除", notes = "传入ids")
- public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
- return R.status(spProviderService.deleteLogic(Func.toLongList(ids)));
- }
-
-
-
- /**
- * 删除 (物理删除)
- */
- @PostMapping("/removeById")
- @ApiOperationSupport(order = 4)
- @ApiOperation(value = "物理删除", notes = "传入id")
- public R removeById(@ApiParam(value = "主键", required = true) @RequestParam Long id) {
- return R.status(spProviderService.removeById(id));
- }
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpRelevanceFileController.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpRelevanceFileController.java
deleted file mode 100644
index 6bdb69a..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpRelevanceFileController.java
+++ /dev/null
@@ -1,97 +0,0 @@
-package com.hnac.hzims.spare.controller;
-
-import com.baomidou.mybatisplus.core.metadata.IPage;
-import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
-import com.hnac.hzims.spare.entity.HzimsSpRelevanceFileEntity;
-import com.hnac.hzims.spare.service.IHzimsSpRelevanceFileService;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import io.swagger.annotations.ApiParam;
-import lombok.AllArgsConstructor;
-import org.springblade.core.boot.ctrl.BladeController;
-import org.springblade.core.mp.support.Condition;
-import org.springblade.core.mp.support.Query;
-import org.springblade.core.tool.api.R;
-import org.springblade.core.tool.utils.Func;
-import org.springframework.web.bind.annotation.*;
-
-import javax.validation.Valid;
-
-
-/**
- * 备品备件文件关联 控制器
- *
- * @author Chill
- */
-@RestController
-@AllArgsConstructor
-@RequestMapping("/hzims-spare/spRelevanceFile")
-@Api(value = "备品备件文件关联", tags = "备品备件文件关联")
-public class HzimsSpRelevanceFileController extends BladeController {
-
- private final IHzimsSpRelevanceFileService spRelevanceFileService;
-
- /**
- * 详情
- */
- @GetMapping("/detail")
- @ApiOperationSupport(order = 1)
- @ApiOperation(value = "详情", notes = "传入spRelevanceFile")
- public R detail(HzimsSpRelevanceFileEntity spRelevanceFile) {
- HzimsSpRelevanceFileEntity detail = spRelevanceFileService.getOne(Condition.getQueryWrapper(spRelevanceFile));
- return R.data(detail);
- }
-
- /**
- * 分页 代码自定义代号
- */
- @GetMapping("/list")
- @ApiOperationSupport(order = 2)
- @ApiOperation(value = "分页", notes = "传入spRelevanceFile")
- public R> list(HzimsSpRelevanceFileEntity spRelevanceFile, Query query) {
- IPage pages = spRelevanceFileService.page(Condition.getPage(query), Condition.getQueryWrapper(spRelevanceFile));
- return R.data(pages);
- }
-
- /**
- * 新增 代码自定义代号
- */
- @PostMapping("/save")
- @ApiOperationSupport(order = 4)
- @ApiOperation(value = "新增", notes = "传入spRelevanceFile")
- public R save(@Valid @RequestBody HzimsSpRelevanceFileEntity spRelevanceFile) {
- return R.status(spRelevanceFileService.save(spRelevanceFile));
- }
-
- /**
- * 修改 代码自定义代号
- */
- @PostMapping("/update")
- @ApiOperationSupport(order = 5)
- @ApiOperation(value = "修改", notes = "传入spRelevanceFile")
- public R update(@Valid @RequestBody HzimsSpRelevanceFileEntity spRelevanceFile) {
- return R.status(spRelevanceFileService.updateById(spRelevanceFile));
- }
-
- /**
- * 新增或修改 代码自定义代号
- */
- @PostMapping("/submit")
- @ApiOperationSupport(order = 6)
- @ApiOperation(value = "新增或修改", notes = "传入spRelevanceFile")
- public R submit(@Valid @RequestBody HzimsSpRelevanceFileEntity spRelevanceFile) {
- return R.status(spRelevanceFileService.saveOrUpdate(spRelevanceFile));
- }
-
-
- /**
- * 删除 代码自定义代号
- */
- @PostMapping("/remove")
- @ApiOperationSupport(order = 7)
- @ApiOperation(value = "逻辑删除", notes = "传入ids")
- public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
- return R.status(spRelevanceFileService.deleteLogic(Func.toLongList(ids)));
- }
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpTypeController.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpTypeController.java
deleted file mode 100644
index e56573e..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpTypeController.java
+++ /dev/null
@@ -1,151 +0,0 @@
-package com.hnac.hzims.spare.controller;
-
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
-import com.baomidou.mybatisplus.core.metadata.IPage;
-import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
-import com.github.xiaoymin.knife4j.annotations.ApiSort;
-import com.hnac.hzims.spare.entity.HzimsSpTypeEntity;
-import com.hnac.hzims.spare.service.IHzimsSpTypeService;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import io.swagger.annotations.ApiParam;
-import lombok.AllArgsConstructor;
-import org.apache.commons.lang3.StringUtils;
-import org.springblade.core.boot.ctrl.BladeController;
-import org.springblade.core.mp.support.Condition;
-import org.springblade.core.mp.support.Query;
-import org.springblade.core.tool.api.R;
-import org.springblade.core.tool.utils.Func;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.*;
-
-import javax.validation.Valid;
-import java.util.List;
-
-
-/**
- * 备品备件类型 控制器
- *
- * @author Chill
- */
-@RestController
-@AllArgsConstructor
-@RequestMapping("/spare/spType")
-@ApiSort(value = 1)
-@Api(value = "备品备件类型", tags = "备品备件类型")
-public class HzimsSpTypeController extends BladeController {
-
- @Autowired
- private IHzimsSpTypeService spTypeService;
-
- /**
- * 详情
- */
- @GetMapping("/detail")
- @ApiOperationSupport(order = 3)
- @ApiOperation(value = "详情", notes = "传入spType")
- public R detail(@ApiParam(value = "主键", required = true) @RequestParam Long id) {
- HzimsSpTypeEntity spType = new HzimsSpTypeEntity();
- spType.setId(id);
- HzimsSpTypeEntity detail = spTypeService.getOne(Condition.getQueryWrapper(spType));
- return R.data(detail);
- }
-
- /**
- * 分页 代码自定义代号
- */
- @GetMapping("/list")
- @ApiOperationSupport(order = 2)
- @ApiOperation(value = "分页", notes = "传入spType")
- public R> list(HzimsSpTypeEntity spType, Query query) {
- /*QueryWrapper queryWrapper = new QueryWrapper<>();
- queryWrapper.like("NAME",spType.getName());
- IPage pages = spTypeService.page(Condition.getPage(query), queryWrapper);*/
- String name = spType.getName();
- spType.setName(null);
- QueryWrapper queryWrapper = Condition.getQueryWrapper(spType);
- if(StringUtils.isNotBlank(name)){
- queryWrapper.like("NAME",name);
- }
-
- IPage pages = spTypeService.page(Condition.getPage(query), queryWrapper);
- return R.data(pages);
- }
-
- /**
- * 新增 代码自定义代号
- */
- @PostMapping("/save")
- @ApiOperationSupport(order = 10)
- @ApiOperation(value = "新增", notes = "传入spType")
- public R save(@Valid @RequestBody HzimsSpTypeEntity spType) {
- return R.status(spTypeService.save(spType));
- }
-
- /**
- * 修改 代码自定义代号
- */
- @PostMapping("/update")
- @ApiOperationSupport(order = 11)
- @ApiOperation(value = "修改", notes = "传入spType")
- public R update(@Valid @RequestBody HzimsSpTypeEntity spType) {
- return R.status(spTypeService.updateById(spType));
- }
-
- /**
- * 新增或修改 代码自定义代号
- */
- @PostMapping("/submit")
- @ApiOperationSupport(order = 1)
- @ApiOperation(value = "新增或修改", notes = "传入spType")
- public R submit(@Valid @RequestBody HzimsSpTypeEntity spType) {
- return R.status(spTypeService.saveOrUpdate(spType));
- }
-
-
- /**
- * 删除 代码自定义代号
- */
- @PostMapping("/remove")
- @ApiOperationSupport(order = 12)
- @ApiOperation(value = "逻辑删除", notes = "传入ids")
- public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
- return R.status(spTypeService.deleteLogic(Func.toLongList(ids)));
- }
-
-
-
- /**
- * 删除 (物理删除)
- */
- @PostMapping("/removeById")
- @ApiOperationSupport(order = 4)
- @ApiOperation(value = "物理删除", notes = "传入id")
- public R removeById(@ApiParam(value = "主键", required = true) @RequestParam Long id) {
- return R.status(spTypeService.removeById(id));
- }
-
- /**
- * 获取所有备品备件树
- */
- @ApiOperation(value = "获取所有备品备件树", httpMethod = "GET")
- @GetMapping("/getAllSpTypeTree")
- @ApiOperationSupport(order = 5)
- @ResponseBody
- public R getEquipmentTypeTree(){
- return R.data(spTypeService.getSpTypeTree());
- }
-
- /**
- * 获取所有备品类型(不分页)
- */
- @ApiOperation(value = "获取所有备品备件(不分页)", httpMethod = "GET")
- @GetMapping("/getList")
- @ApiOperationSupport(order = 6)
- @ResponseBody
- public R> getList(){
- List list = spTypeService.getList();
- return R.data(list);
- }
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpWareRelatedController.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpWareRelatedController.java
deleted file mode 100644
index 3c6e9e1..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpWareRelatedController.java
+++ /dev/null
@@ -1,87 +0,0 @@
-package com.hnac.hzims.spare.controller;
-
-import com.hnac.hzims.spare.service.IHzimsSpWareRelatedService;
-import io.swagger.annotations.Api;
-import lombok.AllArgsConstructor;
-import org.springblade.core.boot.ctrl.BladeController;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-
-/**
- * 备品备件仓库备件关联表 控制器
- *
- * @author Chill
- */
-@RestController
-@AllArgsConstructor
-@RequestMapping("/hzims-spare/spWareRelated")
-@Api(value = "备品备件仓库备件关联表", tags = "备品备件仓库备件关联表")
-public class HzimsSpWareRelatedController extends BladeController {
-
- private final IHzimsSpWareRelatedService spWareRelatedService;
-/*
- *//**
- * 详情
- *//*
- @GetMapping("/detail")
- @ApiOperationSupport(order = 1)
- @ApiOperation(value = "详情", notes = "传入spWareRelated")
- public R detail(HzimsSpWareRelatedEntity spWareRelated) {
- HzimsSpWareRelatedEntity detail = spWareRelatedService.getOne(Condition.getQueryWrapper(spWareRelated));
- return R.data(detail);
- }
-
- *//**
- * 分页 代码自定义代号
- *//*
- @GetMapping("/list")
- @ApiOperationSupport(order = 2)
- @ApiOperation(value = "分页", notes = "传入spWareRelated")
- public R> list(HzimsSpWareRelatedEntity spWareRelated, Query query) {
- IPage pages = spWareRelatedService.page(Condition.getPage(query), Condition.getQueryWrapper(spWareRelated));
- return R.data(pages);
- }
-
- *//**
- * 新增 代码自定义代号
- *//*
- @PostMapping("/save")
- @ApiOperationSupport(order = 4)
- @ApiOperation(value = "新增", notes = "传入spWareRelated")
- public R save(@Valid @RequestBody HzimsSpWareRelatedEntity spWareRelated) {
- return R.status(spWareRelatedService.save(spWareRelated));
- }
-
- *//**
- * 修改 代码自定义代号
- *//*
- @PostMapping("/update")
- @ApiOperationSupport(order = 5)
- @ApiOperation(value = "修改", notes = "传入spWareRelated")
- public R update(@Valid @RequestBody HzimsSpWareRelatedEntity spWareRelated) {
- return R.status(spWareRelatedService.updateById(spWareRelated));
- }
-
- *//**
- * 新增或修改 代码自定义代号
- *//*
- @PostMapping("/submit")
- @ApiOperationSupport(order = 6)
- @ApiOperation(value = "新增或修改", notes = "传入spWareRelated")
- public R submit(@Valid @RequestBody HzimsSpWareRelatedEntity spWareRelated) {
- return R.status(spWareRelatedService.saveOrUpdate(spWareRelated));
- }
-
-
- *//**
- * 删除 代码自定义代号
- *//*
- @PostMapping("/remove")
- @ApiOperationSupport(order = 7)
- @ApiOperation(value = "逻辑删除", notes = "传入ids")
- public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
- return R.status(spWareRelatedService.deleteLogic(Func.toLongList(ids)));
- }*/
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpWarehouseController.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpWarehouseController.java
deleted file mode 100644
index d5632e2..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSpWarehouseController.java
+++ /dev/null
@@ -1,120 +0,0 @@
-package com.hnac.hzims.spare.controller;
-
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
-import com.baomidou.mybatisplus.core.metadata.IPage;
-import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
-import com.github.xiaoymin.knife4j.annotations.ApiSort;
-import com.hnac.hzims.spare.entity.HzimsSpWarehouseEntity;
-import com.hnac.hzims.spare.service.IHzimsSpWarehouseService;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import io.swagger.annotations.ApiParam;
-import lombok.AllArgsConstructor;
-import org.apache.commons.lang3.StringUtils;
-import org.springblade.core.boot.ctrl.BladeController;
-import org.springblade.core.mp.support.Condition;
-import org.springblade.core.mp.support.Query;
-import org.springblade.core.tool.api.R;
-import org.springblade.core.tool.utils.Func;
-import org.springframework.web.bind.annotation.*;
-
-import javax.validation.Valid;
-
-
-/**
- * 备品备件仓库 控制器
- *
- * @author Chill
- */
-@RestController
-@AllArgsConstructor
-@RequestMapping("/spare/spWarehouse")
-@ApiSort(value = 4)
-@Api(value = "备品备件仓库", tags = "备品备件仓库")
-public class HzimsSpWarehouseController extends BladeController {
-
- private final IHzimsSpWarehouseService spWarehouseService;
-
- /**
- * 详情
- */
- @GetMapping("/detail")
- @ApiOperationSupport(order = 3)
- @ApiOperation(value = "详情", notes = "传入spWarehouse")
- public R detail(HzimsSpWarehouseEntity spWarehouse) {
- HzimsSpWarehouseEntity detail = spWarehouseService.getOne(Condition.getQueryWrapper(spWarehouse));
- return R.data(detail);
- }
-
- /**
- * 分页 代码自定义代号
- */
- @GetMapping("/list")
- @ApiOperationSupport(order = 2)
- @ApiOperation(value = "分页", notes = "传入spWarehouse")
- public R> list(HzimsSpWarehouseEntity spWarehouse, Query query) {
- String name = spWarehouse.getName();
- spWarehouse.setName(null);
- QueryWrapper queryWrapper = Condition.getQueryWrapper(spWarehouse);
- if(StringUtils.isNotBlank(name)){
- queryWrapper.like("NAME",name);
- }
-
- IPage pages = spWarehouseService.page(Condition.getPage(query), queryWrapper);
- return R.data(pages);
- }
-
- /**
- * 新增 代码自定义代号
- */
- @PostMapping("/save")
- @ApiOperationSupport(order = 10)
- @ApiOperation(value = "新增", notes = "传入spWarehouse")
- public R save(@Valid @RequestBody HzimsSpWarehouseEntity spWarehouse) {
- return R.status(spWarehouseService.save(spWarehouse));
- }
-
- /**
- * 修改 代码自定义代号
- */
- @PostMapping("/update")
- @ApiOperationSupport(order = 11)
- @ApiOperation(value = "修改", notes = "传入spWarehouse")
- public R update(@Valid @RequestBody HzimsSpWarehouseEntity spWarehouse) {
- return R.status(spWarehouseService.updateById(spWarehouse));
- }
-
- /**
- * 新增或修改 代码自定义代号
- */
- @PostMapping("/submit")
- @ApiOperationSupport(order = 1)
- @ApiOperation(value = "新增或修改", notes = "传入spWarehouse")
- public R submit(@Valid @RequestBody HzimsSpWarehouseEntity spWarehouse) {
- return R.status(spWarehouseService.saveOrUpdate(spWarehouse));
- }
-
-
- /**
- * 删除 代码自定义代号
- */
- @PostMapping("/remove")
- @ApiOperationSupport(order = 12)
- @ApiOperation(value = "逻辑删除", notes = "传入ids")
- public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
- return R.status(spWarehouseService.deleteLogic(Func.toLongList(ids)));
- }
-
-
-
- /**
- * 删除 (物理删除)
- */
- @PostMapping("/removeById")
- @ApiOperationSupport(order = 4)
- @ApiOperation(value = "物理删除", notes = "传入id")
- public R removeById(@ApiParam(value = "主键", required = true) @RequestParam Long id) {
- return R.status(spWarehouseService.removeById(id));
- }
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSparePartsController.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSparePartsController.java
deleted file mode 100644
index 28e6bd0..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/HzimsSparePartsController.java
+++ /dev/null
@@ -1,123 +0,0 @@
-package com.hnac.hzims.spare.controller;
-
-import com.baomidou.mybatisplus.core.metadata.IPage;
-import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
-import com.github.xiaoymin.knife4j.annotations.ApiSort;
-import com.hnac.hzims.spare.dto.HzimsSpareCountDTO;
-import com.hnac.hzims.spare.entity.HzimsSparePartsEntity;
-import com.hnac.hzims.spare.service.IHzimsSparePartsService;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import io.swagger.annotations.ApiParam;
-import lombok.AllArgsConstructor;
-import org.springblade.core.boot.ctrl.BladeController;
-import org.springblade.core.mp.support.Condition;
-import org.springblade.core.mp.support.Query;
-import org.springblade.core.tool.api.R;
-import org.springblade.core.tool.utils.Func;
-import org.springframework.web.bind.annotation.*;
-
-import javax.validation.Valid;
-
-
-/**
- * 备品备件 控制器
- *
- * @author Chill
- */
-@RestController
-@AllArgsConstructor
-@RequestMapping("/spare/spareParts")
-@ApiSort(value = 2)
-@Api(value = "备品备件", tags = "备品备件")
-public class HzimsSparePartsController extends BladeController {
-
- private final IHzimsSparePartsService sparePartsService;
-
- /**
- * 详情
- */
- @GetMapping("/detail")
- @ApiOperationSupport(order = 3)
- @ApiOperation(value = "详情", notes = "传入spareParts")
- public R detail(HzimsSparePartsEntity spareParts) {
- HzimsSparePartsEntity detail = sparePartsService.getOne(Condition.getQueryWrapper(spareParts));
- return R.data(detail);
- }
-
- /**
- * 分页 代码自定义代号
- */
- @GetMapping("/list")
- @ApiOperationSupport(order = 2)
- @ApiOperation(value = "分页", notes = "传入spareParts")
- public R> list(HzimsSparePartsEntity spareParts, Query query) {
- IPage pages = sparePartsService.page(Condition.getPage(query), Condition.getQueryWrapper(spareParts));
- return R.data(pages);
- }
-
- /**
- * 新增 代码自定义代号
- */
- @PostMapping("/save")
- @ApiOperationSupport(order = 10)
- @ApiOperation(value = "新增", notes = "传入spareParts")
- public R save(@Valid @RequestBody HzimsSparePartsEntity spareParts) {
- return R.status(sparePartsService.save(spareParts));
- }
-
- /**
- * 修改 代码自定义代号
- */
- @PostMapping("/update")
- @ApiOperationSupport(order = 11)
- @ApiOperation(value = "修改", notes = "传入spareParts")
- public R update(@Valid @RequestBody HzimsSparePartsEntity spareParts) {
- return R.status(sparePartsService.updateById(spareParts));
- }
-
- /**
- * 新增或修改 代码自定义代号
- */
- @PostMapping("/submit")
- @ApiOperationSupport(order = 1)
- @ApiOperation(value = "新增或修改", notes = "传入spareParts")
- public R submit(@Valid @RequestBody HzimsSparePartsEntity spareParts) {
- return R.status(sparePartsService.saveOrUpdate(spareParts));
- }
-
- /**
- * 删除 代码自定义代号
- */
- @PostMapping("/remove")
- @ApiOperationSupport(order = 12)
- @ApiOperation(value = "逻辑删除", notes = "传入ids")
- public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
- return R.status(sparePartsService.deleteLogic(Func.toLongList(ids)));
- }
-
-
-
- /**
- * 删除 (物理删除)
- */
- @PostMapping("/removeById")
- @ApiOperationSupport(order = 4)
- @ApiOperation(value = "物理删除", notes = "传入id")
- public R removeById(@ApiParam(value = "主键", required = true) @RequestParam Long id) {
- return R.status(sparePartsService.removeById(id));
- }
-
- /**
- * 查询备件统计信息
- */
- @GetMapping("/selectSpareParts")
- @ApiOperationSupport(order = 5)
- @ApiOperation(value = "查询备件统计信息", notes = "传入spareParts")
- public R> selectSpareParts(Query query,HzimsSparePartsEntity spareParts,String date) {
- R> pages = sparePartsService.pageDTO(spareParts, query,date);
- //List list = sparePartsService.selectSpareParts(typeId,date);
- return pages;
- }
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/NoticeController.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/NoticeController.java
deleted file mode 100644
index b4f39e3..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/NoticeController.java
+++ /dev/null
@@ -1,116 +0,0 @@
-/*
- * Copyright (c) 2018-2028, Chill Zhuang 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 dreamlu.net 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: Chill 庄骞 (smallchill@163.com)
- */
-package com.hnac.hzims.spare.controller;
-
-import com.baomidou.mybatisplus.core.metadata.IPage;
-import com.hnac.hzims.spare.entity.Notice;
-import com.hnac.hzims.spare.service.INoticeService;
-import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
-import io.swagger.annotations.*;
-import lombok.AllArgsConstructor;
-import com.hnac.hzims.common.cache.CacheNames;
-import org.springblade.core.boot.ctrl.BladeController;
-import org.springblade.core.mp.support.Condition;
-import org.springblade.core.mp.support.Query;
-import org.springblade.core.tool.api.R;
-import org.springblade.core.tool.utils.Func;
-import org.springframework.web.bind.annotation.*;
-import springfox.documentation.annotations.ApiIgnore;
-
-import java.util.Map;
-
-/**
- * 控制器
- *
- * @author Chill
- */
-@RestController
-@RequestMapping("notice")
-@AllArgsConstructor
-@Api(value = "用户博客", tags = "博客接口")
-public class NoticeController extends BladeController implements CacheNames {
-
- private final INoticeService noticeService;
-
- /**
- * 详情
- */
- @GetMapping("/detail")
- @ApiOperationSupport(order = 1)
- @ApiOperation(value = "详情", notes = "传入notice")
- public R detail(Notice notice) {
- Notice detail = noticeService.getOne(Condition.getQueryWrapper(notice));
- return R.data(detail);
- }
-
- /**
- * 分页
- */
- @GetMapping("/list")
- @ApiImplicitParams({
- @ApiImplicitParam(name = "category", value = "公告类型", paramType = "query", dataType = "integer"),
- @ApiImplicitParam(name = "title", value = "公告标题", paramType = "query", dataType = "string")
- })
- @ApiOperationSupport(order = 2)
- @ApiOperation(value = "分页", notes = "传入notice")
- public R> list(@ApiIgnore @RequestParam Map notice, Query query) {
- IPage pages = noticeService.page(Condition.getPage(query), Condition.getQueryWrapper(notice, Notice.class));
- return R.data(pages);
- }
-
- /**
- * 新增
- */
- @PostMapping("/save")
- @ApiOperationSupport(order = 3)
- @ApiOperation(value = "新增", notes = "传入notice")
- public R save(@RequestBody Notice notice) {
- return R.status(noticeService.save(notice));
- }
-
- /**
- * 修改
- */
- @PostMapping("/update")
- @ApiOperationSupport(order = 4)
- @ApiOperation(value = "修改", notes = "传入notice")
- public R update(@RequestBody Notice notice) {
- return R.status(noticeService.updateById(notice));
- }
-
- /**
- * 新增或修改
- */
- @PostMapping("/submit")
- @ApiOperationSupport(order = 5)
- @ApiOperation(value = "新增或修改", notes = "传入notice")
- public R submit(@RequestBody Notice notice) {
- return R.status(noticeService.saveOrUpdate(notice));
- }
-
- /**
- * 删除
- */
- @PostMapping("/remove")
- @ApiOperationSupport(order = 6)
- @ApiOperation(value = "逻辑删除", notes = "传入notice")
- public R remove(@ApiParam(value = "主键集合") @RequestParam String ids) {
- boolean temp = noticeService.deleteLogic(Func.toLongList(ids));
- return R.status(temp);
- }
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/UploadController.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/UploadController.java
deleted file mode 100644
index 270098f..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/controller/UploadController.java
+++ /dev/null
@@ -1,41 +0,0 @@
-package com.hnac.hzims.spare.controller;
-
-import io.swagger.annotations.Api;
-import lombok.AllArgsConstructor;
-import lombok.SneakyThrows;
-import org.springblade.core.oss.minio.MinioTemplate;
-import org.springblade.core.oss.model.BladeFile;
-import org.springblade.core.tool.api.R;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestParam;
-import org.springframework.web.bind.annotation.RestController;
-import org.springframework.web.multipart.MultipartFile;
-
-/**
- * UploadController
- *
- * @author Chill
- */
-@RestController
-@AllArgsConstructor
-@RequestMapping("/notice/upload")
-@Api(value = "对象存储接口", tags = "oss上传测试")
-public class UploadController {
-
- private final MinioTemplate minioTemplate;
-
- /**
- * minio上传demo
- *
- * @param file 上传文件
- * @return String
- */
- @SneakyThrows
- @PostMapping("put-object")
- public R putMinioObject(@RequestParam MultipartFile file) {
- BladeFile bladeFile = minioTemplate.putFile(file);
- return R.data(bladeFile);
- }
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpChangeDetailDTO.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpChangeDetailDTO.java
deleted file mode 100644
index 4b47375..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpChangeDetailDTO.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package com.hnac.hzims.spare.dto;
-
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import com.hnac.hzims.spare.entity.HzimsSpChangeDetailEntity;
-
-/**
- * 备品备件出入库详情 模型DTO
- *
- * @author Chill
- */
-@Data
-@EqualsAndHashCode(callSuper = true)
-public class HzimsSpChangeDetailDTO extends HzimsSpChangeDetailEntity {
-
- private static final long serialVersionUID = 1L;
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpChangeRecDTO.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpChangeRecDTO.java
deleted file mode 100644
index f377c6b..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpChangeRecDTO.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package com.hnac.hzims.spare.dto;
-
-import com.hnac.hzims.spare.entity.HzimsSpChangeDetailEntity;
-import com.hnac.hzims.spare.entity.HzimsSpChangeRecEntity;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-
-import java.util.List;
-
-/**
- * 备品备件出入库 模型DTO
- *
- * @author Chill
- */
-@Data
-@EqualsAndHashCode(callSuper = true)
-public class HzimsSpChangeRecDTO extends HzimsSpChangeRecEntity {
-
- private static final long serialVersionUID = 1L;
-
- /**
- * 变更详情(要变更的备件名称、数量、单价等)
- */
- @ApiModelProperty(value = "变更详情(要变更的备件名称、数量、单价等)")
- private List details;
-
- @ApiModelProperty(value = "审核通过标识")
- private boolean checkFlag;
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpFileDTO.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpFileDTO.java
deleted file mode 100644
index ed1a6b8..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpFileDTO.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package com.hnac.hzims.spare.dto;
-
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import com.hnac.hzims.spare.entity.HzimsSpFileEntity;
-
-/**
- * 备品备件文件表 模型DTO
- *
- * @author Chill
- */
-@Data
-@EqualsAndHashCode(callSuper = true)
-public class HzimsSpFileDTO extends HzimsSpFileEntity {
-
- private static final long serialVersionUID = 1L;
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpProviderDTO.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpProviderDTO.java
deleted file mode 100644
index 8067fea..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpProviderDTO.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package com.hnac.hzims.spare.dto;
-
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import com.hnac.hzims.spare.entity.HzimsSpProviderEntity;
-
-/**
- * 备品备件供应商 模型DTO
- *
- * @author Chill
- */
-@Data
-@EqualsAndHashCode(callSuper = true)
-public class HzimsSpProviderDTO extends HzimsSpProviderEntity {
-
- private static final long serialVersionUID = 1L;
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpRelevanceFileDTO.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpRelevanceFileDTO.java
deleted file mode 100644
index 4b49132..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpRelevanceFileDTO.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package com.hnac.hzims.spare.dto;
-
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import com.hnac.hzims.spare.entity.HzimsSpRelevanceFileEntity;
-
-/**
- * 备品备件文件关联 模型DTO
- *
- * @author Chill
- */
-@Data
-@EqualsAndHashCode(callSuper = true)
-public class HzimsSpRelevanceFileDTO extends HzimsSpRelevanceFileEntity {
-
- private static final long serialVersionUID = 1L;
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpTypeDTO.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpTypeDTO.java
deleted file mode 100644
index 775a2e0..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpTypeDTO.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package com.hnac.hzims.spare.dto;
-
-import com.hnac.hzims.spare.entity.HzimsSpTypeEntity;
-import com.hnac.hzims.spare.utils.TreeObject;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-
-import java.io.Serializable;
-import java.util.List;
-
-/**
- * 备品备件类型 模型DTO
- *
- * @author Chill
- */
-@Data
-@EqualsAndHashCode(callSuper = true)
-public class HzimsSpTypeDTO extends HzimsSpTypeEntity implements Serializable, TreeObject {
-
- private static final long serialVersionUID = 1L;
-
- private List children;
-
- /*@Override
- public Long getId(){
- return super.getId();
- }
-
- @Override
- public void setId(Long id) {
- super.setId(id);
- }
-
- @Override
- public Long getParentId() {
- return super.getParentId();
- }
-
- @Override
- public void setParentId(Long parentId) {
- super.setParentId(parentId);
- }
-
- @Override
- public String getName() {
- return super.getName();
- }
-
- @Override
- public void setName(String name) {
- super.setName(name);
- }*/
-
- public List getChildren() {
- return this.children;
- }
-
- public void setChildren(List children) {
- this.children = children;
- }
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpWareRelatedDTO.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpWareRelatedDTO.java
deleted file mode 100644
index 49d7c02..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpWareRelatedDTO.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package com.hnac.hzims.spare.dto;
-
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import com.hnac.hzims.spare.entity.HzimsSpWareRelatedEntity;
-
-/**
- * 备品备件仓库备件关联表 模型DTO
- *
- * @author Chill
- */
-@Data
-@EqualsAndHashCode(callSuper = true)
-public class HzimsSpWareRelatedDTO extends HzimsSpWareRelatedEntity {
-
- private static final long serialVersionUID = 1L;
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpWarehouseDTO.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpWarehouseDTO.java
deleted file mode 100644
index 04926b8..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpWarehouseDTO.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package com.hnac.hzims.spare.dto;
-
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import com.hnac.hzims.spare.entity.HzimsSpWarehouseEntity;
-
-/**
- * 备品备件仓库 模型DTO
- *
- * @author Chill
- */
-@Data
-@EqualsAndHashCode(callSuper = true)
-public class HzimsSpWarehouseDTO extends HzimsSpWarehouseEntity {
-
- private static final long serialVersionUID = 1L;
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpareCountDTO.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpareCountDTO.java
deleted file mode 100644
index 746393f..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSpareCountDTO.java
+++ /dev/null
@@ -1,61 +0,0 @@
-package com.hnac.hzims.spare.dto;
-
-import lombok.Data;
-
-import java.io.Serializable;
-import java.math.BigDecimal;
-
-/**
- * 设备统计DTO
- */
-@Data
-public class HzimsSpareCountDTO implements Serializable {
- private static final long serialVersionUID = -5172898121198875607L;
-
- private Long id;
- /**
- * 备件编号
- */
- private String code;
- /**
- * 备件名称
- */
- private String name;
- /**
- * 规格型号
- */
- private String specification;
- /**
- * 类型ID
- */
- private Long typeId;
- /**
- * 类型名称
- */
- private String typeName;
- /**
- * 单位
- */
- private String unit;
-
- /**
- * 仓库名称
- */
- private String warehouseName;
- /**
- * 入库数量
- */
- private Long inQuantity;
- /**
- * 出库数量
- */
- private Long outQuantity;
- /**
- * 入库总价
- */
- private BigDecimal inPrice;
- /**
- * 出库总价
- */
- private BigDecimal outPrice;
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSparePartsDTO.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSparePartsDTO.java
deleted file mode 100644
index aa1cf78..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/dto/HzimsSparePartsDTO.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package com.hnac.hzims.spare.dto;
-
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import com.hnac.hzims.spare.entity.HzimsSparePartsEntity;
-
-/**
- * 备品备件 模型DTO
- *
- * @author Chill
- */
-@Data
-@EqualsAndHashCode(callSuper = true)
-public class HzimsSparePartsDTO extends HzimsSparePartsEntity {
-
- private static final long serialVersionUID = 1L;
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpChangeDetailEntity.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpChangeDetailEntity.java
deleted file mode 100644
index e09275d..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpChangeDetailEntity.java
+++ /dev/null
@@ -1,89 +0,0 @@
-package com.hnac.hzims.spare.entity;
-
-import com.baomidou.mybatisplus.annotation.TableName;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-
-import java.math.BigDecimal;
-
-
-/**
- * 备品备件出入库详情 实体类
- *
- * @author Chill
- */
-@Data
-@TableName("hz_ims_sp_change_detail")
-@ApiModel(value = "HzimsSpChangeDetail对象", description = "备品备件出入库详情")
-public class HzimsSpChangeDetailEntity {
-
- private static final long serialVersionUID = 1L;
-
- /**
- * 变更记录ID
- */
- @ApiModelProperty(value = "变更记录ID")
- private Long changeId;
- /**
- * 仓库ID
- */
- @ApiModelProperty(value = "仓库ID")
- private Long warehouseId;
- /**
- * 供应商
- */
- @ApiModelProperty(value = "供应商")
- private Long provider;
- /**
- * 备品备件ID
- */
- @ApiModelProperty(value = "备品备件ID")
- private Long spId;
- /**
- * 备件编号
- */
- @ApiModelProperty(value = "备件编号")
- private String code;
- /**
- * 备件名称
- */
- @ApiModelProperty(value = "备件名称")
- private String name;
- /**
- * 规格型号
- */
- @ApiModelProperty(value = "规格型号")
- private String specification;
- /**
- * 类型ID
- */
- @ApiModelProperty(value = "类型ID")
- private Long typeId;
- /**
- * 数量
- */
- @ApiModelProperty(value = "数量")
- private Long quantity;
- /**
- * 单价
- */
- @ApiModelProperty(value = "单价")
- private BigDecimal price;
- /**
- * 备注
- */
- @ApiModelProperty(value = "备注")
- private String remark;
- /**
- * 最低储备量
- */
- @ApiModelProperty(value = "最低储备量")
- private Long minStock;
- /**
- * 最高储备量
- */
- @ApiModelProperty(value = "最高储备量")
- private Long maxStock;
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpChangeRecEntity.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpChangeRecEntity.java
deleted file mode 100644
index 55f143b..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpChangeRecEntity.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package com.hnac.hzims.spare.entity;
-
-import com.baomidou.mybatisplus.annotation.TableName;
-import org.springblade.core.mp.base.BaseEntity;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.util.Date;
-import java.time.LocalDateTime;
-
-
-/**
- * 备品备件出入库 实体类
- *
- * @author Chill
- */
-@Data
-@TableName("hz_ims_sp_change_rec")
-@EqualsAndHashCode(callSuper = true)
-@ApiModel(value = "HzimsSpChangeRec对象", description = "备品备件出入库")
-public class HzimsSpChangeRecEntity extends BaseEntity {
-
- private static final long serialVersionUID = 1L;
-
- /**
- * 流程实例ID
- */
- @ApiModelProperty(value = "流程实例ID")
- private String flowId;
- /**
- * 编号
- */
- @ApiModelProperty(value = "编号")
- private String code;
- /**
- * 变更类型(1采购,2入库,3出库...)
- */
- @ApiModelProperty(value = "变更类型(1采购,2入库,3出库...)")
- private Integer changeType;
- /**
- * 变更时间
- */
- @ApiModelProperty(value = "变更时间")
- private String changeTime;
- /**
- * 办理意见
- */
- @ApiModelProperty(value = "办理意见")
- private Long handleOpinions;
- /**
- * 相关单据
- */
- @ApiModelProperty(value = "相关单据")
- private String relatedCode;
- /**
- * 备注(用途)
- */
- @ApiModelProperty(value = "备注(用途)")
- private String remark;
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpFileEntity.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpFileEntity.java
deleted file mode 100644
index 990e96a..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpFileEntity.java
+++ /dev/null
@@ -1,57 +0,0 @@
-package com.hnac.hzims.spare.entity;
-
-import com.baomidou.mybatisplus.annotation.TableName;
-import org.springblade.core.mp.base.BaseEntity;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.util.Date;
-import java.time.LocalDateTime;
-
-
-/**
- * 备品备件文件表 实体类
- *
- * @author Chill
- */
-@Data
-@TableName("hz_ims_sp_file")
-@EqualsAndHashCode(callSuper = true)
-@ApiModel(value = "HzimsSpFile对象", description = "备品备件文件表")
-public class HzimsSpFileEntity extends BaseEntity {
-
- private static final long serialVersionUID = 1L;
-
- /**
- * 文件类型 1:图片类型 2:视频类型 3:其他
- */
- @ApiModelProperty(value = "文件类型 1:图片类型 2:视频类型 3:其他")
- private String type;
- /**
- * 文件名称
- */
- @ApiModelProperty(value = "文件名称")
- private String name;
- /**
- * 文件大小
- */
- @ApiModelProperty(value = "文件大小")
- private Double size;
- /**
- * 文件工作空间
- */
- @ApiModelProperty(value = "文件工作空间")
- private String workspace;
- /**
- * 文件源文件
- */
- @ApiModelProperty(value = "文件源文件")
- private String fileSource;
- /**
- * 文件缩略图
- */
- @ApiModelProperty(value = "文件缩略图")
- private String fileThumbnail;
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpProviderEntity.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpProviderEntity.java
deleted file mode 100644
index 17ad25a..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpProviderEntity.java
+++ /dev/null
@@ -1,77 +0,0 @@
-package com.hnac.hzims.spare.entity;
-
-import com.baomidou.mybatisplus.annotation.TableName;
-import org.springblade.core.mp.base.BaseEntity;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.util.Date;
-import java.time.LocalDateTime;
-
-
-/**
- * 备品备件供应商 实体类
- *
- * @author Chill
- */
-@Data
-@TableName("hz_ims_sp_provider")
-@EqualsAndHashCode(callSuper = true)
-@ApiModel(value = "HzimsSpProvider对象", description = "备品备件供应商")
-public class HzimsSpProviderEntity extends BaseEntity {
-
- private static final long serialVersionUID = 1L;
-
- /**
- * 名称
- */
- @ApiModelProperty(value = "名称")
- private String name;
- /**
- * 名称缩写
- */
- @ApiModelProperty(value = "名称缩写")
- private String logogram;
- /**
- * 业务联系人
- */
- @ApiModelProperty(value = "业务联系人")
- private String salesman;
- /**
- * 法人代表
- */
- @ApiModelProperty(value = "法人代表")
- private String legalPerson;
- /**
- * 电话
- */
- @ApiModelProperty(value = "电话")
- private String phone;
- /**
- * 手机
- */
- @ApiModelProperty(value = "手机")
- private String mobilePhone;
- /**
- * 网址
- */
- @ApiModelProperty(value = "网址")
- private String website;
- /**
- * 地址
- */
- @ApiModelProperty(value = "地址")
- private String address;
- /**
- * 是否合格(0:否,1:是)
- */
- @ApiModelProperty(value = "是否合格(0:否,1:是)")
- private Integer qualifiedFlag;
- /**
- * 备注
- */
- @ApiModelProperty(value = "备注")
- private String remark;
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpRelevanceFileEntity.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpRelevanceFileEntity.java
deleted file mode 100644
index 21ac13d..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpRelevanceFileEntity.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package com.hnac.hzims.spare.entity;
-
-import com.baomidou.mybatisplus.annotation.TableName;
-import org.springblade.core.mp.base.BaseEntity;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.util.Date;
-import java.time.LocalDateTime;
-
-
-/**
- * 备品备件文件关联 实体类
- *
- * @author Chill
- */
-@Data
-@TableName("hz_ims_sp_relevance_file")
-@EqualsAndHashCode(callSuper = true)
-@ApiModel(value = "HzimsSpRelevanceFile对象", description = "备品备件文件关联")
-public class HzimsSpRelevanceFileEntity extends BaseEntity {
-
- private static final long serialVersionUID = 1L;
-
- /**
- * 业务ID
- */
- @ApiModelProperty(value = "业务ID")
- private Long businessId;
- /**
- * 文件ID
- */
- @ApiModelProperty(value = "文件ID")
- private Long fileId;
- /**
- * 类型
- */
- @ApiModelProperty(value = "类型")
- private String type;
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpTypeEntity.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpTypeEntity.java
deleted file mode 100644
index 8b1b550..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpTypeEntity.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package com.hnac.hzims.spare.entity;
-
-import com.baomidou.mybatisplus.annotation.TableName;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import org.springblade.core.mp.base.BaseEntity;
-
-
-/**
- * 备品备件类型 实体类
- *
- * @author Chill
- */
-@Data
-@TableName("hz_ims_sp_type")
-@EqualsAndHashCode(callSuper = true)
-@ApiModel(value = "HzimsSpType对象", description = "备品备件类型")
-public class HzimsSpTypeEntity extends BaseEntity {
-
- private static final long serialVersionUID = 1L;
-
- /**
- * 编码
- */
- @ApiModelProperty(value = "编码")
- private String code;
- /**
- * 名称
- */
- @ApiModelProperty(value = "名称")
- private String name;
- /**
- * 单位
- */
- @ApiModelProperty(value = "单位")
- private String unit;
- /**
- * 所属父级
- */
- @ApiModelProperty(value = "所属父级")
- private Long parentId;
- /**
- * 排序
- */
- @ApiModelProperty(value = "排序")
- private Integer sort;
- /**
- * 备注
- */
- @ApiModelProperty(value = "备注")
- private String remark;
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpWareRelatedEntity.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpWareRelatedEntity.java
deleted file mode 100644
index 3b44e35..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpWareRelatedEntity.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package com.hnac.hzims.spare.entity;
-
-import com.baomidou.mybatisplus.annotation.TableName;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-
-import java.math.BigDecimal;
-
-
-/**
- * 备品备件仓库备件关联表 实体类
- *
- * @author Chill
- */
-@Data
-@TableName("hz_ims_sp_ware_related")
-@ApiModel(value = "HzimsSpWareRelated对象", description = "备品备件仓库备件关联表")
-public class HzimsSpWareRelatedEntity {
-
- private static final long serialVersionUID = 1L;
-
- /**
- * 仓库ID
- */
- @ApiModelProperty(value = "仓库ID")
- private Long warehouseId;
- /**
- * 备品备件ID
- */
- @ApiModelProperty(value = "备品备件ID")
- private Long spId;
- /**
- * 库存
- */
- @ApiModelProperty(value = "库存")
- private Long stock;
- /**
- * 最新入库单价
- */
- @ApiModelProperty(value = "最新入库单价")
- private BigDecimal inPrice;
- /**
- * 最新出库单价
- */
- @ApiModelProperty(value = "最新出库单价")
- private BigDecimal outPrice;
- /**
- * 出库暂存
- */
- @ApiModelProperty(value = "出库暂存")
- private Long outStock;
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpWarehouseEntity.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpWarehouseEntity.java
deleted file mode 100644
index e67d65f..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSpWarehouseEntity.java
+++ /dev/null
@@ -1,57 +0,0 @@
-package com.hnac.hzims.spare.entity;
-
-import com.baomidou.mybatisplus.annotation.TableName;
-import org.springblade.core.mp.base.BaseEntity;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.util.Date;
-import java.time.LocalDateTime;
-
-
-/**
- * 备品备件仓库 实体类
- *
- * @author Chill
- */
-@Data
-@TableName("hz_ims_sp_warehouse")
-@EqualsAndHashCode(callSuper = true)
-@ApiModel(value = "HzimsSpWarehouse对象", description = "备品备件仓库")
-public class HzimsSpWarehouseEntity extends BaseEntity {
-
- private static final long serialVersionUID = 1L;
-
- /**
- * 编码
- */
- @ApiModelProperty(value = "编码")
- private String code;
- /**
- * 名称
- */
- @ApiModelProperty(value = "名称")
- private String name;
- /**
- * 负责人
- */
- @ApiModelProperty(value = "负责人")
- private Long manager;
- /**
- * 地址
- */
- @ApiModelProperty(value = "地址")
- private String address;
- /**
- * 备注
- */
- @ApiModelProperty(value = "备注")
- private String remark;
- /**
- * 最大存储量
- */
- @ApiModelProperty(value = "最大存储量")
- private Long maxStock;
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSparePartsEntity.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSparePartsEntity.java
deleted file mode 100644
index f6180da..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/entity/HzimsSparePartsEntity.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package com.hnac.hzims.spare.entity;
-
-import com.baomidou.mybatisplus.annotation.TableName;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import org.springblade.core.mp.base.BaseEntity;
-
-import java.math.BigDecimal;
-
-
-/**
- * 备品备件 实体类
- *
- * @author Chill
- */
-@Data
-@TableName("hz_ims_spare_parts")
-@EqualsAndHashCode(callSuper = true)
-@ApiModel(value = "HzimsSpareParts对象", description = "备品备件")
-public class HzimsSparePartsEntity extends BaseEntity {
-
- private static final long serialVersionUID = 1L;
-
- /**
- * 备件编号
- */
- @ApiModelProperty(value = "备件编号")
- private String code;
- /**
- * 备件名称
- */
- @ApiModelProperty(value = "备件名称")
- private String name;
- /**
- * 规格型号
- */
- @ApiModelProperty(value = "规格型号")
- private String specification;
- /**
- * 类型ID
- */
- @ApiModelProperty(value = "类型ID")
- private Long typeId;
- /**
- * 备注
- */
- @ApiModelProperty(value = "备注")
- private String remark;
- /**
- * 最低储备量
- */
- @ApiModelProperty(value = "最低储备量")
- private Long minStock;
- /**
- * 最高储备量
- */
- @ApiModelProperty(value = "最高储备量")
- private Long maxStock;
- /**
- * 库存
- */
- @ApiModelProperty(value = "库存")
- private Long stock;
- /**
- * 最新入库单价
- */
- @ApiModelProperty(value = "最新入库单价")
- private BigDecimal inPrice;
- /**
- * 最新出库单价
- */
- @ApiModelProperty(value = "最新出库单价")
- private BigDecimal outPrice;
- /**
- * 出库暂存
- */
- @ApiModelProperty(value = "出库暂存")
- private Long outStock;
-
-}
diff --git a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/enumeration/ChangeStatusEnum.java b/hzims-service/spare/src/main/java/com/hnac/hzims/spare/enumeration/ChangeStatusEnum.java
deleted file mode 100644
index 2037403..0000000
--- a/hzims-service/spare/src/main/java/com/hnac/hzims/spare/enumeration/ChangeStatusEnum.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package com.hnac.hzims.spare.enumeration;
-
-import java.util.*;
-import java.util.stream.Collectors;
-import java.util.stream.Stream;
-
-/**
- * @author Huj
- * created in 2020/03/16 9:21
- * @description
- **/
-public enum ChangeStatusEnum {
-
- SUBMIT_PENDING(1, "待提交"),
- CHECK_PENDING(2, "待审核"),
- REJECT_SUBMIT_PENDING(3, "驳回待提交"),
- COMPLETED(4, "已完成");
-
- private static final Map DICT = Stream.of(values())
- .collect(Collectors.toMap(ChangeStatusEnum::getCode, t -> t));
-
- private final Integer code;
-
- private final String description;
-
- private ChangeStatusEnum(Integer code, String description) {
- this.code = code;
- this.description = description;
- }
-
- /**
- * 返回编码对应的枚举实例
- * @param code
- * @return
- */
- public static Optional getInstance(String code) {
- return Optional.ofNullable(DICT.get(Integer.parseInt(code)));
- }
-
- public Integer getCode() {
- return code;
- }
-
- public String getDescription() {
- return description;
- }
-
- public static ChangeStatusEnum getEnumByCode(Integer code){
- for(ChangeStatusEnum thisEnum : ChangeStatusEnum.values()){
- if(thisEnum.getCode().equals(code)){
- return thisEnum;
- }
- }
- return null;
- }
-
- public static List