zhangqiyang
11 months ago
66 changed files with 778 additions and 509 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,2 @@ |
|||||||
|
#Wed Nov 22 10:53:06 CST 2023 |
||||||
|
gradle.version=6.3 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,8 @@ |
|||||||
|
# Default ignored files |
||||||
|
/shelf/ |
||||||
|
/workspace.xml |
||||||
|
# Editor-based HTTP Client requests |
||||||
|
/httpRequests/ |
||||||
|
# Datasource local storage ignored files |
||||||
|
/dataSources/ |
||||||
|
/dataSources.local.xml |
@ -0,0 +1,6 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project version="4"> |
||||||
|
<component name="CompilerConfiguration"> |
||||||
|
<bytecodeTargetLevel target="1.8" /> |
||||||
|
</component> |
||||||
|
</project> |
@ -0,0 +1,12 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project version="4"> |
||||||
|
<component name="DataSourceManagerImpl" format="xml" multifile-model="true"> |
||||||
|
<data-source source="LOCAL" name="app_zhangqiyang_app_master_pre@117.78.10.170" uuid="0afdf45d-3976-4f45-b194-8b4474b07a61"> |
||||||
|
<driver-ref>mysql.8</driver-ref> |
||||||
|
<synchronize>true</synchronize> |
||||||
|
<jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver> |
||||||
|
<jdbc-url>jdbc:mysql://117.78.10.170:3006/app_zhangqiyang_app_master_pre</jdbc-url> |
||||||
|
<working-dir>$ProjectFileDir$</working-dir> |
||||||
|
</data-source> |
||||||
|
</component> |
||||||
|
</project> |
@ -0,0 +1,22 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project version="4"> |
||||||
|
<component name="GradleMigrationSettings" migrationVersion="1" /> |
||||||
|
<component name="GradleSettings"> |
||||||
|
<option name="linkedExternalProjectsSettings"> |
||||||
|
<GradleProjectSettings> |
||||||
|
<option name="delegatedBuild" value="false" /> |
||||||
|
<option name="testRunner" value="PLATFORM" /> |
||||||
|
<option name="externalProjectPath" value="$PROJECT_DIR$" /> |
||||||
|
<option name="gradleHome" value="$PROJECT_DIR$/../../gradle-8.4" /> |
||||||
|
<option name="gradleJvm" value="#JAVA_HOME" /> |
||||||
|
<option name="modules"> |
||||||
|
<set> |
||||||
|
<option value="$PROJECT_DIR$" /> |
||||||
|
<option value="$PROJECT_DIR$/modules" /> |
||||||
|
<option value="$PROJECT_DIR$/modules/test" /> |
||||||
|
</set> |
||||||
|
</option> |
||||||
|
</GradleProjectSettings> |
||||||
|
</option> |
||||||
|
</component> |
||||||
|
</project> |
@ -0,0 +1,25 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project version="4"> |
||||||
|
<component name="RemoteRepositoriesConfiguration"> |
||||||
|
<remote-repository> |
||||||
|
<option name="id" value="central" /> |
||||||
|
<option name="name" value="Maven Central repository" /> |
||||||
|
<option name="url" value="https://repo1.maven.org/maven2" /> |
||||||
|
</remote-repository> |
||||||
|
<remote-repository> |
||||||
|
<option name="id" value="jboss.community" /> |
||||||
|
<option name="name" value="JBoss Community repository" /> |
||||||
|
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" /> |
||||||
|
</remote-repository> |
||||||
|
<remote-repository> |
||||||
|
<option name="id" value="maven" /> |
||||||
|
<option name="name" value="maven" /> |
||||||
|
<option name="url" value="http://192.168.0.201:8081/repository/GradleRep/" /> |
||||||
|
</remote-repository> |
||||||
|
<remote-repository> |
||||||
|
<option name="id" value="maven" /> |
||||||
|
<option name="name" value="maven" /> |
||||||
|
<option name="url" value="http://139.9.112.197:3081/repository/GradleRep/" /> |
||||||
|
</remote-repository> |
||||||
|
</component> |
||||||
|
</project> |
@ -0,0 +1,7 @@ |
|||||||
|
<project version="4"> |
||||||
|
<component name="ExternalStorageConfigurationManager" enabled="true" /> |
||||||
|
<component name="FrameworkDetectionExcludesConfiguration"> |
||||||
|
<file type="web" url="file://$PROJECT_DIR$" /> |
||||||
|
</component> |
||||||
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK" /> |
||||||
|
</project> |
@ -0,0 +1,6 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project version="4"> |
||||||
|
<component name="VcsDirectoryMappings"> |
||||||
|
<mapping directory="" vcs="Git" /> |
||||||
|
</component> |
||||||
|
</project> |
@ -1,372 +0,0 @@ |
|||||||
package Log; |
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects; |
|
||||||
import com.hypaas.auth.db.AuditableModel; |
|
||||||
import com.hypaas.db.annotations.ActField; |
|
||||||
import com.hypaas.db.annotations.Widget; |
|
||||||
import java.time.LocalDateTime; |
|
||||||
import java.util.Objects; |
|
||||||
import javax.persistence.Basic; |
|
||||||
import javax.persistence.Cacheable; |
|
||||||
import javax.persistence.Column; |
|
||||||
import javax.persistence.Entity; |
|
||||||
import javax.persistence.FetchType; |
|
||||||
import javax.persistence.GeneratedValue; |
|
||||||
import javax.persistence.GenerationType; |
|
||||||
import javax.persistence.Id; |
|
||||||
import javax.persistence.Inheritance; |
|
||||||
import javax.persistence.InheritanceType; |
|
||||||
import javax.persistence.SequenceGenerator; |
|
||||||
import javax.persistence.Table; |
|
||||||
import module.AlarmLevel; |
|
||||||
import module.OperateType; |
|
||||||
import module.UserAuth; |
|
||||||
import org.hibernate.annotations.Type; |
|
||||||
|
|
||||||
@Entity |
|
||||||
@Cacheable(false) |
|
||||||
@Table(name = "sys_log") |
|
||||||
@Inheritance(strategy = InheritanceType.SINGLE_TABLE) |
|
||||||
public class LogEntity extends AuditableModel { |
|
||||||
|
|
||||||
@Id |
|
||||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sys_log_SEQ") |
|
||||||
@SequenceGenerator(name = "sys_log_SEQ", sequenceName = "sys_log_SEQ", allocationSize = 1) |
|
||||||
private Long id; |
|
||||||
|
|
||||||
@Widget(massUpdate = false, copyable = true) |
|
||||||
@Column(name = "CONTENT") |
|
||||||
@ActField(isJudg = false) |
|
||||||
private String content; |
|
||||||
|
|
||||||
@Widget(massUpdate = false, copyable = true) |
|
||||||
@Column(name = "DEPT", nullable = true) |
|
||||||
@ActField(isJudg = false) |
|
||||||
private String dept; |
|
||||||
|
|
||||||
@Widget(massUpdate = false, copyable = true) |
|
||||||
@Column(name = "EXMSG", nullable = true) |
|
||||||
@ActField(isJudg = false) |
|
||||||
private String exceptionMessage; |
|
||||||
|
|
||||||
@Widget(massUpdate = false, copyable = true) |
|
||||||
@Column(name = "EXSTACK", nullable = true) |
|
||||||
@ActField(isJudg = false) |
|
||||||
private String exceptionStackTrace; |
|
||||||
|
|
||||||
@Widget(massUpdate = false, copyable = true) |
|
||||||
@Column(name = "EXTYPE", nullable = true) |
|
||||||
@ActField(isJudg = false) |
|
||||||
private String exceptionType; |
|
||||||
|
|
||||||
@Widget(massUpdate = false, copyable = true) |
|
||||||
@Column(name = "HASHVALUE", nullable = true) |
|
||||||
@ActField(isJudg = false) |
|
||||||
private Long hashValue; |
|
||||||
|
|
||||||
@Widget(massUpdate = false, copyable = true) |
|
||||||
@Column(name = "LEVELDESC", nullable = true) |
|
||||||
@ActField(isJudg = false) |
|
||||||
private String levelDesc; |
|
||||||
|
|
||||||
@Widget(massUpdate = false, copyable = true) |
|
||||||
@Basic |
|
||||||
@Type(type = "com.hypaas.db.hibernate.type.ValueEnumType") |
|
||||||
@Column(name = "LEVELNUM") |
|
||||||
private AlarmLevel levelNum; |
|
||||||
|
|
||||||
@Widget(massUpdate = false, copyable = true) |
|
||||||
@Column(name = "MODULE") |
|
||||||
@ActField(isJudg = false) |
|
||||||
private String module; |
|
||||||
|
|
||||||
@Widget(massUpdate = false, copyable = true) |
|
||||||
@Column(name = "OBJECTNAME") |
|
||||||
@ActField(isJudg = false) |
|
||||||
private String objectName; |
|
||||||
|
|
||||||
@Widget(massUpdate = false, copyable = true) |
|
||||||
@Basic |
|
||||||
@Type(type = "com.hypaas.db.hibernate.type.ValueEnumType") |
|
||||||
@Column(name = "OPTYPE") |
|
||||||
private OperateType opType; |
|
||||||
|
|
||||||
@Widget(massUpdate = false, copyable = true) |
|
||||||
@Column(name = "PROGRAM", nullable = true) |
|
||||||
@ActField(isJudg = false) |
|
||||||
private String program; |
|
||||||
|
|
||||||
@Widget(massUpdate = false, copyable = true) |
|
||||||
@Column(name = "RESULT", nullable = true) |
|
||||||
@ActField(isJudg = false) |
|
||||||
private Integer result; |
|
||||||
|
|
||||||
@Widget(massUpdate = false, copyable = true) |
|
||||||
@Column(name = "RESULTDESC", nullable = true) |
|
||||||
@ActField(isJudg = false) |
|
||||||
private String resultDesc; |
|
||||||
|
|
||||||
@Widget(massUpdate = false, copyable = true) |
|
||||||
@Column(name = "STATUS", nullable = true) |
|
||||||
@ActField(isJudg = false) |
|
||||||
private Integer status; |
|
||||||
|
|
||||||
@Widget(massUpdate = false, copyable = true) |
|
||||||
@Column(name = "TIME", nullable = true) |
|
||||||
@ActField(isJudg = false) |
|
||||||
private LocalDateTime time; |
|
||||||
|
|
||||||
@Widget(massUpdate = false, copyable = true) |
|
||||||
@Basic |
|
||||||
@Type(type = "com.hypaas.db.hibernate.type.ValueEnumType") |
|
||||||
@Column(name = "USERAUTH") |
|
||||||
private UserAuth userAuth; |
|
||||||
|
|
||||||
@Widget(massUpdate = false, copyable = true) |
|
||||||
@Column(name = "USERAUTHDESC", nullable = true) |
|
||||||
@ActField(isJudg = false) |
|
||||||
private String userAuthDesc; |
|
||||||
|
|
||||||
@Widget(massUpdate = false, copyable = true) |
|
||||||
@Column(name = "USERID") |
|
||||||
@ActField(isJudg = false) |
|
||||||
private String userId; |
|
||||||
|
|
||||||
@Widget(massUpdate = false, copyable = true) |
|
||||||
@ActField(isJudg = false) |
|
||||||
private String address; |
|
||||||
|
|
||||||
@Widget(selection = "secret.level.things") |
|
||||||
private String secretLevel; |
|
||||||
|
|
||||||
@Widget(title = "Attributes") |
|
||||||
@Basic(fetch = FetchType.LAZY) |
|
||||||
@Type(type = "json") |
|
||||||
private String attrs; |
|
||||||
|
|
||||||
public LogEntity() {} |
|
||||||
|
|
||||||
@Override |
|
||||||
public Long getId() { |
|
||||||
return id; |
|
||||||
} |
|
||||||
|
|
||||||
@Override |
|
||||||
public void setId(Long id) { |
|
||||||
this.id = id; |
|
||||||
} |
|
||||||
|
|
||||||
public String getContent() { |
|
||||||
return content; |
|
||||||
} |
|
||||||
|
|
||||||
public void setContent(String content) { |
|
||||||
this.content = content; |
|
||||||
} |
|
||||||
|
|
||||||
public String getDept() { |
|
||||||
return dept; |
|
||||||
} |
|
||||||
|
|
||||||
public void setDept(String dept) { |
|
||||||
this.dept = dept; |
|
||||||
} |
|
||||||
|
|
||||||
public String getExceptionMessage() { |
|
||||||
return exceptionMessage; |
|
||||||
} |
|
||||||
|
|
||||||
public void setExceptionMessage(String exceptionMessage) { |
|
||||||
this.exceptionMessage = exceptionMessage; |
|
||||||
} |
|
||||||
|
|
||||||
public String getExceptionStackTrace() { |
|
||||||
return exceptionStackTrace; |
|
||||||
} |
|
||||||
|
|
||||||
public void setExceptionStackTrace(String exceptionStackTrace) { |
|
||||||
this.exceptionStackTrace = exceptionStackTrace; |
|
||||||
} |
|
||||||
|
|
||||||
public String getExceptionType() { |
|
||||||
return exceptionType; |
|
||||||
} |
|
||||||
|
|
||||||
public void setExceptionType(String exceptionType) { |
|
||||||
this.exceptionType = exceptionType; |
|
||||||
} |
|
||||||
|
|
||||||
public Long getHashValue() { |
|
||||||
return hashValue; |
|
||||||
} |
|
||||||
|
|
||||||
public void setHashValue(Long hashValue) { |
|
||||||
this.hashValue = hashValue; |
|
||||||
} |
|
||||||
|
|
||||||
public String getLevelDesc() { |
|
||||||
return levelDesc; |
|
||||||
} |
|
||||||
|
|
||||||
public void setLevelDesc(String levelDesc) { |
|
||||||
this.levelDesc = levelDesc; |
|
||||||
} |
|
||||||
|
|
||||||
public AlarmLevel getLevelNum() { |
|
||||||
return levelNum; |
|
||||||
} |
|
||||||
|
|
||||||
public void setLevelNum(AlarmLevel levelNum) { |
|
||||||
this.levelNum = levelNum; |
|
||||||
} |
|
||||||
|
|
||||||
public String getModule() { |
|
||||||
return module; |
|
||||||
} |
|
||||||
|
|
||||||
public void setModule(String module) { |
|
||||||
this.module = module; |
|
||||||
} |
|
||||||
|
|
||||||
public String getObjectName() { |
|
||||||
return objectName; |
|
||||||
} |
|
||||||
|
|
||||||
public void setObjectName(String objectName) { |
|
||||||
this.objectName = objectName; |
|
||||||
} |
|
||||||
|
|
||||||
public OperateType getOpType() { |
|
||||||
return opType; |
|
||||||
} |
|
||||||
|
|
||||||
public void setOpType(OperateType opType) { |
|
||||||
this.opType = opType; |
|
||||||
} |
|
||||||
|
|
||||||
public String getProgram() { |
|
||||||
return program; |
|
||||||
} |
|
||||||
|
|
||||||
public void setProgram(String program) { |
|
||||||
this.program = program; |
|
||||||
} |
|
||||||
|
|
||||||
public Integer getResult() { |
|
||||||
return result; |
|
||||||
} |
|
||||||
|
|
||||||
public void setResult(Integer result) { |
|
||||||
this.result = result; |
|
||||||
} |
|
||||||
|
|
||||||
public String getResultDesc() { |
|
||||||
return resultDesc; |
|
||||||
} |
|
||||||
|
|
||||||
public void setResultDesc(String resultDesc) { |
|
||||||
this.resultDesc = resultDesc; |
|
||||||
} |
|
||||||
|
|
||||||
public Integer getStatus() { |
|
||||||
return status; |
|
||||||
} |
|
||||||
|
|
||||||
public void setStatus(Integer status) { |
|
||||||
this.status = status; |
|
||||||
} |
|
||||||
|
|
||||||
public LocalDateTime getTime() { |
|
||||||
return time; |
|
||||||
} |
|
||||||
|
|
||||||
public void setTime(LocalDateTime time) { |
|
||||||
this.time = time; |
|
||||||
} |
|
||||||
|
|
||||||
public UserAuth getUserAuth() { |
|
||||||
return userAuth; |
|
||||||
} |
|
||||||
|
|
||||||
public void setUserAuth(UserAuth userAuth) { |
|
||||||
this.userAuth = userAuth; |
|
||||||
} |
|
||||||
|
|
||||||
public String getUserAuthDesc() { |
|
||||||
return userAuthDesc; |
|
||||||
} |
|
||||||
|
|
||||||
public void setUserAuthDesc(String userAuthDesc) { |
|
||||||
this.userAuthDesc = userAuthDesc; |
|
||||||
} |
|
||||||
|
|
||||||
public String getUserId() { |
|
||||||
return userId; |
|
||||||
} |
|
||||||
|
|
||||||
public void setUserId(String userId) { |
|
||||||
this.userId = userId; |
|
||||||
} |
|
||||||
|
|
||||||
public String getAddress() { |
|
||||||
return address; |
|
||||||
} |
|
||||||
|
|
||||||
public void setAddress(String address) { |
|
||||||
this.address = address; |
|
||||||
} |
|
||||||
|
|
||||||
public String getSecretLevel() { |
|
||||||
return secretLevel; |
|
||||||
} |
|
||||||
|
|
||||||
public void setSecretLevel(String secretLevel) { |
|
||||||
this.secretLevel = secretLevel; |
|
||||||
} |
|
||||||
|
|
||||||
public String getAttrs() { |
|
||||||
return attrs; |
|
||||||
} |
|
||||||
|
|
||||||
public void setAttrs(String attrs) { |
|
||||||
this.attrs = attrs; |
|
||||||
} |
|
||||||
|
|
||||||
@Override |
|
||||||
public boolean equals(Object obj) { |
|
||||||
if (obj == null) return false; |
|
||||||
if (this == obj) return true; |
|
||||||
if (!(obj instanceof LogEntity)) return false; |
|
||||||
|
|
||||||
final LogEntity other = (LogEntity) obj; |
|
||||||
if (this.getId() != null || other.getId() != null) { |
|
||||||
return Objects.equals(this.getId(), other.getId()); |
|
||||||
} |
|
||||||
|
|
||||||
return false; |
|
||||||
} |
|
||||||
|
|
||||||
@Override |
|
||||||
public int hashCode() { |
|
||||||
return 31; |
|
||||||
} |
|
||||||
|
|
||||||
@Override |
|
||||||
public String toString() { |
|
||||||
return MoreObjects.toStringHelper(this) |
|
||||||
.add("id", getId()) |
|
||||||
.add("content", getContent()) |
|
||||||
.add("dept", getDept()) |
|
||||||
.add("exceptionMessage", getExceptionMessage()) |
|
||||||
.add("exceptionStackTrace", getExceptionStackTrace()) |
|
||||||
.add("exceptionType", getExceptionType()) |
|
||||||
.add("hashValue", getHashValue()) |
|
||||||
.add("levelDesc", getLevelDesc()) |
|
||||||
.add("levelNum", getLevelNum()) |
|
||||||
.add("module", getModule()) |
|
||||||
.add("objectName", getObjectName()) |
|
||||||
.add("opType", getOpType()) |
|
||||||
.omitNullValues() |
|
||||||
.toString(); |
|
||||||
} |
|
||||||
} |
|
@ -1,11 +0,0 @@ |
|||||||
package Log.repo; |
|
||||||
|
|
||||||
import Log.LogEntity; |
|
||||||
import com.hypaas.db.JpaRepository; |
|
||||||
|
|
||||||
public class LogEntityRepository extends JpaRepository<LogEntity> { |
|
||||||
|
|
||||||
public LogEntityRepository() { |
|
||||||
super(LogEntity.class); |
|
||||||
} |
|
||||||
} |
|
@ -1,29 +0,0 @@ |
|||||||
package module; |
|
||||||
|
|
||||||
import com.hypaas.db.ValueEnum; |
|
||||||
import java.util.Objects; |
|
||||||
|
|
||||||
public enum AlarmLevel implements ValueEnum<Integer> { |
|
||||||
P0(1), |
|
||||||
|
|
||||||
P1(2), |
|
||||||
|
|
||||||
P2(4), |
|
||||||
|
|
||||||
P3(8), |
|
||||||
|
|
||||||
P4(16), |
|
||||||
|
|
||||||
P5(32); |
|
||||||
|
|
||||||
private final Integer value; |
|
||||||
|
|
||||||
private AlarmLevel(Integer value) { |
|
||||||
this.value = Objects.requireNonNull(value); |
|
||||||
} |
|
||||||
|
|
||||||
@Override |
|
||||||
public Integer getValue() { |
|
||||||
return value; |
|
||||||
} |
|
||||||
} |
|
@ -1,25 +0,0 @@ |
|||||||
package module; |
|
||||||
|
|
||||||
import com.hypaas.db.ValueEnum; |
|
||||||
import java.util.Objects; |
|
||||||
|
|
||||||
public enum Module implements ValueEnum<String> { |
|
||||||
WMM("处理器管理模块"), |
|
||||||
|
|
||||||
SMM("存储器管理模块"), |
|
||||||
|
|
||||||
DEMM("设备管理模块"), |
|
||||||
|
|
||||||
DMM("文件管理模块"); |
|
||||||
|
|
||||||
private final String value; |
|
||||||
|
|
||||||
private Module(String value) { |
|
||||||
this.value = Objects.requireNonNull(value); |
|
||||||
} |
|
||||||
|
|
||||||
@Override |
|
||||||
public String getValue() { |
|
||||||
return value; |
|
||||||
} |
|
||||||
} |
|
@ -1,42 +0,0 @@ |
|||||||
package module; |
|
||||||
|
|
||||||
import com.hypaas.db.ValueEnum; |
|
||||||
import com.hypaas.db.annotations.Widget; |
|
||||||
import java.util.Objects; |
|
||||||
|
|
||||||
public enum OperateType implements ValueEnum<String> { |
|
||||||
@Widget(title = "登录") |
|
||||||
Login("Login"), |
|
||||||
|
|
||||||
@Widget(title = "退出") |
|
||||||
Exit("Exit"), |
|
||||||
|
|
||||||
@Widget(title = "新建") |
|
||||||
New("New"), |
|
||||||
|
|
||||||
@Widget(title = "修改") |
|
||||||
Update("Update"), |
|
||||||
|
|
||||||
@Widget(title = "删除") |
|
||||||
Delete("Delete"), |
|
||||||
|
|
||||||
@Widget(title = "查询") |
|
||||||
Select("Select"), |
|
||||||
|
|
||||||
@Widget(title = "批量导入") |
|
||||||
BatchImport("BatchImport"), |
|
||||||
|
|
||||||
@Widget(title = "批量导出") |
|
||||||
BatchExport("BatchExport"); |
|
||||||
|
|
||||||
private final String value; |
|
||||||
|
|
||||||
private OperateType(String value) { |
|
||||||
this.value = Objects.requireNonNull(value); |
|
||||||
} |
|
||||||
|
|
||||||
@Override |
|
||||||
public String getValue() { |
|
||||||
return value; |
|
||||||
} |
|
||||||
} |
|
@ -1,30 +0,0 @@ |
|||||||
package module; |
|
||||||
|
|
||||||
import com.hypaas.db.ValueEnum; |
|
||||||
import com.hypaas.db.annotations.Widget; |
|
||||||
import java.util.Objects; |
|
||||||
|
|
||||||
public enum UserAuth implements ValueEnum<String> { |
|
||||||
@Widget(title = "系统管理员") |
|
||||||
SystemManageUser("0"), |
|
||||||
|
|
||||||
@Widget(title = "安全保密员") |
|
||||||
SecurityUser("1"), |
|
||||||
|
|
||||||
@Widget(title = "安全审计员") |
|
||||||
SecurityAuditUser("2"), |
|
||||||
|
|
||||||
@Widget(title = "业务用户") |
|
||||||
ServiceUser("3"); |
|
||||||
|
|
||||||
private final String value; |
|
||||||
|
|
||||||
private UserAuth(String value) { |
|
||||||
this.value = Objects.requireNonNull(value); |
|
||||||
} |
|
||||||
|
|
||||||
@Override |
|
||||||
public String getValue() { |
|
||||||
return value; |
|
||||||
} |
|
||||||
} |
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,12 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<domain-models xmlns="http://hypaas.com/xml/ns/domain-models" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/domain-models http://hypaas.com/xml/ns/domain-models/domain-models_5.2.xsd"> |
||||||
|
<module name="com.module.enmus" package="module"/> |
||||||
|
<enum name="AlarmLevel" numeric="true"> |
||||||
|
<item name="P0" value="1"/> |
||||||
|
<item name="P1" value="2"/> |
||||||
|
<item name="P2" value="4"/> |
||||||
|
<item name="P3" value="8"/> |
||||||
|
<item name="P4" value="16"/> |
||||||
|
<item name="P5" value="32"/> |
||||||
|
</enum> |
||||||
|
</domain-models> |
@ -0,0 +1,26 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<domain-models xmlns="http://hypaas.com/xml/ns/domain-models" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/domain-models http://hypaas.com/xml/ns/domain-models/domain-models_5.2.xsd"> |
||||||
|
<module name="Log" package="Log"/> |
||||||
|
<entity hashAll="false" logUpdates="true" persistable="true" name="LogEntity" cacheable="false" lang="java" strategy="SINGLE" table="sys_log"> |
||||||
|
<string actOverwrite="false" copy="true" column="CONTENT" massUpdate="false" name="content" isJudg="false"/> |
||||||
|
<string nullable="true" actOverwrite="false" copy="true" column="DEPT" massUpdate="false" name="dept" isJudg="false"/> |
||||||
|
<string nullable="true" actOverwrite="false" copy="true" column="EXMSG" massUpdate="false" name="exceptionMessage" isJudg="false"/> |
||||||
|
<string nullable="true" actOverwrite="false" copy="true" column="EXSTACK" massUpdate="false" name="exceptionStackTrace" isJudg="false"/> |
||||||
|
<string nullable="true" actOverwrite="false" copy="true" column="EXTYPE" massUpdate="false" name="exceptionType" isJudg="false"/> |
||||||
|
<long nullable="true" column="HASHVALUE" actOverwrite="false" massUpdate="false" name="hashValue" copy="true" isJudg="false"/> |
||||||
|
<string nullable="true" actOverwrite="false" copy="true" column="LEVELDESC" massUpdate="false" name="levelDesc" isJudg="false"/> |
||||||
|
<enum column="LEVELNUM" massUpdate="false" ref="module.AlarmLevel" name="levelNum" copy="true"/> |
||||||
|
<string actOverwrite="false" copy="true" column="MODULE" massUpdate="false" name="module" isJudg="false"/> |
||||||
|
<string actOverwrite="false" copy="true" column="OBJECTNAME" massUpdate="false" name="objectName" isJudg="false"/> |
||||||
|
<enum column="OPTYPE" massUpdate="false" ref="module.OperateType" name="opType" copy="true"/> |
||||||
|
<string nullable="true" actOverwrite="false" copy="true" column="PROGRAM" massUpdate="false" name="program" isJudg="false"/> |
||||||
|
<integer nullable="true" column="RESULT" actOverwrite="false" massUpdate="false" name="result" copy="true" isJudg="false"/> |
||||||
|
<string nullable="true" actOverwrite="false" copy="true" column="RESULTDESC" massUpdate="false" name="resultDesc" isJudg="false"/> |
||||||
|
<integer nullable="true" column="STATUS" actOverwrite="false" massUpdate="false" name="status" copy="true" isJudg="false"/> |
||||||
|
<datetime nullable="true" tz="false" column="TIME" actOverwrite="false" massUpdate="false" name="time" copy="true" isJudg="false"/> |
||||||
|
<enum column="USERAUTH" required="false" massUpdate="false" ref="module.UserAuth" name="userAuth" copy="true"/> |
||||||
|
<string nullable="true" actOverwrite="false" copy="true" column="USERAUTHDESC" massUpdate="false" name="userAuthDesc" isJudg="false"/> |
||||||
|
<string actOverwrite="false" copy="true" column="USERID" massUpdate="false" name="userId" isJudg="false"/> |
||||||
|
<string actOverwrite="false" copy="true" massUpdate="false" name="address" isJudg="false"/> |
||||||
|
</entity> |
||||||
|
</domain-models> |
@ -0,0 +1,10 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<domain-models xmlns="http://hypaas.com/xml/ns/domain-models" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/domain-models http://hypaas.com/xml/ns/domain-models/domain-models_5.2.xsd"> |
||||||
|
<module name="com.module.enmus" package="module"/> |
||||||
|
<enum name="Module"> |
||||||
|
<item name="WMM" value="处理器管理模块"/> |
||||||
|
<item name="SMM" value="存储器管理模块"/> |
||||||
|
<item name="DEMM" value="设备管理模块"/> |
||||||
|
<item name="DMM" value="文件管理模块"/> |
||||||
|
</enum> |
||||||
|
</domain-models> |
@ -0,0 +1,14 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<domain-models xmlns="http://hypaas.com/xml/ns/domain-models" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/domain-models http://hypaas.com/xml/ns/domain-models/domain-models_5.2.xsd"> |
||||||
|
<module name="com.module.enmus" package="module"/> |
||||||
|
<enum name="OperateType"> |
||||||
|
<item name="Login" title="登录" value="Login"/> |
||||||
|
<item name="Exit" title="退出" value="Exit"/> |
||||||
|
<item name="New" title="新建" value="New"/> |
||||||
|
<item name="Update" title="修改" value="Update"/> |
||||||
|
<item name="Delete" title="删除" value="Delete"/> |
||||||
|
<item name="Select" title="查询" value="Select"/> |
||||||
|
<item name="BatchImport" title="批量导入" value="BatchImport"/> |
||||||
|
<item name="BatchExport" title="批量导出" value="BatchExport"/> |
||||||
|
</enum> |
||||||
|
</domain-models> |
@ -0,0 +1,10 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<domain-models xmlns="http://hypaas.com/xml/ns/domain-models" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/domain-models http://hypaas.com/xml/ns/domain-models/domain-models_5.2.xsd"> |
||||||
|
<module name="com.module.enmus" package="module"/> |
||||||
|
<enum name="UserAuth"> |
||||||
|
<item name="SystemManageUser" title="系统管理员" value="0"/> |
||||||
|
<item name="SecurityUser" title="安全保密员" value="1"/> |
||||||
|
<item name="SecurityAuditUser" title="安全审计员" value="2"/> |
||||||
|
<item name="ServiceUser" title="业务用户" value="3"/> |
||||||
|
</enum> |
||||||
|
</domain-models> |
|
|
|
@ -0,0 +1,16 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<object-views xmlns="http://hypaas.com/xml/ns/object-views" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/object-views http://hypaas.com/xml/ns/object-views/object-views_5.3.xsd"> |
||||||
|
<form title="安全审计员操作日志表单" model="Log.LogEntity" name="SecurityAuditUser-form" width="large"> |
||||||
|
<panel title="安全审计员操作日志" itemSpan="6" showFrame="true" name="panel_5"> |
||||||
|
<field canSuggest="true" name="userId" title="用户id"/> |
||||||
|
<field canSuggest="true" name="objectName" title="客体"/> |
||||||
|
<field canSuggest="true" name="content" title="操作内容"/> |
||||||
|
<field canSuggest="true" name="address" title="IP地址"/> |
||||||
|
<field canSuggest="true" name="levelNum" title="告警级别"/> |
||||||
|
<field canSuggest="true" name="module" title="操作模块"/> |
||||||
|
<field canSuggest="true" name="opType" title="操作类型"/> |
||||||
|
<field canSuggest="true" name="time" title="操作时间"/> |
||||||
|
<field canSuggest="true" name="userAuth" title="用户权限"/> |
||||||
|
</panel> |
||||||
|
</form> |
||||||
|
</object-views> |
@ -0,0 +1,13 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<object-views xmlns="http://hypaas.com/xml/ns/object-views" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/object-views http://hypaas.com/xml/ns/object-views/object-views_5.3.xsd"> |
||||||
|
<grid title="安全审计员操作日志" model="Log.LogEntity" edit-icon="true" freeSearch="all" name="SecurityAuditUser-grid" width="large"> |
||||||
|
<field search-field="true" canSuggest="true" name="userId" title="用户ID"/> |
||||||
|
<field search-field="true" canSuggest="true" name="levelNum" title="告警级别"/> |
||||||
|
<field search-field="true" canSuggest="true" name="time" title="操作时间"/> |
||||||
|
<field search-field="true" canSuggest="true" name="address" title="IP"/> |
||||||
|
<field search-field="true" canSuggest="true" name="objectName" title="客体"/> |
||||||
|
<field search-field="true" canSuggest="true" name="module" title="操作模块"/> |
||||||
|
<field search-field="true" canSuggest="true" name="opType" title="操作类型"/> |
||||||
|
<field search-field="true" canSuggest="true" name="content" title="操作内容"/> |
||||||
|
</grid> |
||||||
|
</object-views> |
@ -0,0 +1,16 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<object-views xmlns="http://hypaas.com/xml/ns/object-views" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/object-views http://hypaas.com/xml/ns/object-views/object-views_5.3.xsd"> |
||||||
|
<form title="安全保密员操作日志表单" model="Log.LogEntity" name="SecurityUser-form" width="large"> |
||||||
|
<panel title="安全保密员操作日志" itemSpan="6" showFrame="true" name="panel_15"> |
||||||
|
<field canSuggest="true" name="userId" title="用户id"/> |
||||||
|
<field canSuggest="true" name="objectName" title="客体"/> |
||||||
|
<field canSuggest="true" name="content" title="操作内容"/> |
||||||
|
<field canSuggest="true" name="address" title="IP地址"/> |
||||||
|
<field canSuggest="true" name="levelNum" title="日志级别"/> |
||||||
|
<field canSuggest="true" name="module" title="操作模块"/> |
||||||
|
<field canSuggest="true" name="opType" title="操作类型"/> |
||||||
|
<field canSuggest="true" name="time" title="操作时间"/> |
||||||
|
<field canSuggest="true" name="userAuth" title="用户权限"/> |
||||||
|
</panel> |
||||||
|
</form> |
||||||
|
</object-views> |
@ -0,0 +1,13 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<object-views xmlns="http://hypaas.com/xml/ns/object-views" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/object-views http://hypaas.com/xml/ns/object-views/object-views_5.3.xsd"> |
||||||
|
<grid title="安全保密员操作日志" model="Log.LogEntity" edit-icon="true" freeSearch="all" name="SecurityUser-grid" width="large"> |
||||||
|
<field search-field="true" canSuggest="true" name="userId" title="用户ID"/> |
||||||
|
<field search-field="true" canSuggest="true" name="levelNum" title="告警级别"/> |
||||||
|
<field search-field="true" canSuggest="true" name="time" title="操作时间"/> |
||||||
|
<field search-field="true" canSuggest="true" name="address" title="IP"/> |
||||||
|
<field search-field="true" canSuggest="true" name="objectName" title="客体"/> |
||||||
|
<field search-field="true" canSuggest="true" name="module" title="操作模块"/> |
||||||
|
<field search-field="true" canSuggest="true" name="opType" title="操作类型"/> |
||||||
|
<field search-field="true" canSuggest="true" name="content" title="操作内容"/> |
||||||
|
</grid> |
||||||
|
</object-views> |
@ -0,0 +1,16 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<object-views xmlns="http://hypaas.com/xml/ns/object-views" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/object-views http://hypaas.com/xml/ns/object-views/object-views_5.3.xsd"> |
||||||
|
<form title="业务用户操作日志表单" model="Log.LogEntity" name="ServiceUser-form" width="large"> |
||||||
|
<panel title="业务用户操作日志" itemSpan="6" showFrame="true" name="panel_6"> |
||||||
|
<field canSuggest="true" name="userId" title="用户id"/> |
||||||
|
<field canSuggest="true" name="objectName" title="客体"/> |
||||||
|
<field canSuggest="true" name="content" title="操作内容"/> |
||||||
|
<field canSuggest="true" name="address" title="IP地址"/> |
||||||
|
<field canSuggest="true" name="levelNum" title="日志级别"/> |
||||||
|
<field canSuggest="true" name="module" title="操作模块"/> |
||||||
|
<field canSuggest="true" name="opType" title="操作类型"/> |
||||||
|
<field canSuggest="true" name="time" title="操作时间"/> |
||||||
|
<field canSuggest="true" name="userAuth" title="用户权限"/> |
||||||
|
</panel> |
||||||
|
</form> |
||||||
|
</object-views> |
@ -0,0 +1,13 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<object-views xmlns="http://hypaas.com/xml/ns/object-views" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/object-views http://hypaas.com/xml/ns/object-views/object-views_5.3.xsd"> |
||||||
|
<grid canMove="false" canNew="true" title="业务用户操作日志" model="Log.LogEntity" canDelete="true" edit-icon="true" canArchive="false" editable="false" canSave="false" freeSearch="all" name="ServiceUser-grid" width="large" customSearch="true"> |
||||||
|
<field type="string" search-field="true" canSuggest="true" name="userId" title="用户ID"/> |
||||||
|
<field search-field="true" canSuggest="true" name="levelNum" title="告警级别"/> |
||||||
|
<field type="datetime" search-field="true" canSuggest="true" name="time" title="操作时间"/> |
||||||
|
<field type="string" search-field="true" canSuggest="true" name="address" title="IP"/> |
||||||
|
<field type="string" search-field="true" canSuggest="true" name="objectName" title="客体"/> |
||||||
|
<field type="enum" search-field="true" canSuggest="true" name="module" canNew="false" title="操作模块" canView="false"/> |
||||||
|
<field type="enum" search-field="true" canSuggest="true" name="opType" title="操作类型"/> |
||||||
|
<field canRemove="false" search-field="true" canSuggest="true" name="content" canEdit="false" canNew="false" title="操作内容"/> |
||||||
|
</grid> |
||||||
|
</object-views> |
@ -0,0 +1,16 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<object-views xmlns="http://hypaas.com/xml/ns/object-views" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/object-views http://hypaas.com/xml/ns/object-views/object-views_5.3.xsd"> |
||||||
|
<form title="系统管理员操作日志表单" model="Log.LogEntity" name="SystemManageUser-form" width="large"> |
||||||
|
<panel title="系统管理员操作日志" itemSpan="6" showFrame="true" name="panel_3"> |
||||||
|
<field canSuggest="true" name="userId" title="用户id"/> |
||||||
|
<field canSuggest="true" name="objectName" title="客体"/> |
||||||
|
<field canSuggest="true" name="content" title="操作类型"/> |
||||||
|
<field canSuggest="true" name="address" title="IP地址"/> |
||||||
|
<field canSuggest="true" name="levelNum" title="告警级别"/> |
||||||
|
<field canSuggest="true" name="module" title="操作模块"/> |
||||||
|
<field canSuggest="true" name="opType" title="操作类型"/> |
||||||
|
<field canSuggest="true" name="time" title="操作时间"/> |
||||||
|
<field canSuggest="true" name="userAuth" title="用户权限"/> |
||||||
|
</panel> |
||||||
|
</form> |
||||||
|
</object-views> |
@ -0,0 +1,13 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<object-views xmlns="http://hypaas.com/xml/ns/object-views" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/object-views http://hypaas.com/xml/ns/object-views/object-views_5.3.xsd"> |
||||||
|
<grid title="系统管理员操作日志" model="Log.LogEntity" edit-icon="true" freeSearch="all" name="SystemManageUser-grid" width="large"> |
||||||
|
<field search-field="true" canSuggest="true" name="userId" title="用户ID"/> |
||||||
|
<field search-field="true" canSuggest="true" name="levelNum" title="告警级别"/> |
||||||
|
<field search-field="true" canSuggest="true" name="time" title="操作时间"/> |
||||||
|
<field search-field="true" canSuggest="true" name="address" title="IP"/> |
||||||
|
<field search-field="true" canSuggest="true" name="objectName" title="客体"/> |
||||||
|
<field search-field="true" canSuggest="true" name="module" title="操作模块"/> |
||||||
|
<field search-field="true" canSuggest="true" name="opType" title="操作类型"/> |
||||||
|
<field search-field="true" canSuggest="true" name="content" title="操作内容"/> |
||||||
|
</grid> |
||||||
|
</object-views> |
@ -0,0 +1,23 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<object-views xmlns="http://hypaas.com/xml/ns/object-views" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/object-views http://hypaas.com/xml/ns/object-views/object-views_5.3.xsd"> |
||||||
|
<action-view name="action.view.ServiceUser.Log" model="Log.LogEntity" title="业务用户动作"> |
||||||
|
<view name="ServiceUser-grid" type="grid"/> |
||||||
|
<view name="ServiceUser-form" type="form"/> |
||||||
|
<domain>self.userAuth=3</domain> |
||||||
|
</action-view> |
||||||
|
<action-view name="action.view.SecurityUser.Log" model="Log.LogEntity" title="安全保密员动作"> |
||||||
|
<view name="SecurityUser-grid" type="grid"/> |
||||||
|
<view name="SecurityUser-form" type="form"/> |
||||||
|
<domain>self.userAuth=1</domain> |
||||||
|
</action-view> |
||||||
|
<action-view name="action.view.SecurityAuditUser.Log" model="Log.LogEntity" title="安全审计员动作"> |
||||||
|
<view name="SecurityAuditUser-grid" type="grid"/> |
||||||
|
<view name="SecurityAuditUser-form" type="form"/> |
||||||
|
<domain>self.userAuth=2</domain> |
||||||
|
</action-view> |
||||||
|
<action-view name="action.view.SystemManageUser.Log" model="Log.LogEntity" title="系统管理员动作"> |
||||||
|
<view name="SystemManageUser-grid" type="grid"/> |
||||||
|
<view name="SystemManageUser-form" type="form"/> |
||||||
|
<domain>self.userAuth=0</domain> |
||||||
|
</action-view> |
||||||
|
</object-views> |
@ -0,0 +1,8 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<object-views xmlns="http://hypaas.com/xml/ns/object-views" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hypaas.com/xml/ns/object-views http://hypaas.com/xml/ns/object-views/object-views_5.3.xsd"> |
||||||
|
<menuitem title="日志管理" left="true" name="menu-LogManage"/> |
||||||
|
<menuitem parent="menu-LogManage" title="业务用户操作日志" left="true" name="menu-ServiceUser-Log" action="action.view.ServiceUser.Log"/> |
||||||
|
<menuitem parent="menu-LogManage" title="安全审计员操作日志" left="true" name="menu-SecurityAuditUser-Log" action="action.view.SecurityAuditUser.Log"/> |
||||||
|
<menuitem parent="menu-LogManage" title="系统管理员操作日志" left="true" name="menu-SystemManageUser-Log" action="action.view.SystemManageUser.Log"/> |
||||||
|
<menuitem parent="menu-LogManage" title="安全保密员操作日志" left="true" name="menu-SecurityUser-Log" action="action.view.SecurityUser.Log"/> |
||||||
|
</object-views> |
@ -0,0 +1,3 @@ |
|||||||
|
interfaceList: |
||||||
|
- "/ws/register/register/face" |
||||||
|
- "/ws/register/login/face" |
@ -0,0 +1,39 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
||||||
|
<persistence version="2.1" |
||||||
|
xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||||
|
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"> |
||||||
|
<persistence-unit name="persistenceUnit" transaction-type="RESOURCE_LOCAL"> |
||||||
|
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> |
||||||
|
<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode> |
||||||
|
<properties> |
||||||
|
<!-- |
||||||
|
<property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" /> |
||||||
|
<property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost:5432/hypaas-app" /> |
||||||
|
<property name="javax.persistence.jdbc.driver" value="org.hsqldb.jdbcDriver" /> |
||||||
|
<property name="javax.persistence.jdbc.url" value="jdbc:hsqldb:mem:test" /> |
||||||
|
--> |
||||||
|
<!-- |
||||||
|
<property name="javax.persistence.jdbc.driver" value="com.mysql.cj.jdbc.Driver" /> |
||||||
|
<property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/hypaas-erp?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false" /> |
||||||
|
<property name="javax.persistence.jdbc.user" value="hypaas" /> |
||||||
|
<property name="javax.persistence.jdbc.password" value="hypaas" /> |
||||||
|
--> |
||||||
|
<!-- value="create" to build a new database on each run; |
||||||
|
value="update" to modify an existing database; |
||||||
|
value="create-drop" means the same as "create" but also drops tables when Hibernate closes; |
||||||
|
value="validate" makes no changes to the database --> |
||||||
|
<!-- |
||||||
|
<property name="hibernate.hbm2ddl.auto" value="update" /> |
||||||
|
--> |
||||||
|
<!-- connection pooling --> |
||||||
|
|
||||||
|
<property name="hibernate.connection.provider_class" |
||||||
|
value="org.hibernate.hikaricp.internal.HikariCPConnectionProvider" /> |
||||||
|
|
||||||
|
<property name="hibernate.hikari.minimumIdle" value="10" /> |
||||||
|
<property name="hibernate.hikari.maximumPoolSize" value="200" /> |
||||||
|
<property name="hibernate.hikari.idleTimeout" value="30000" /> |
||||||
|
|
||||||
|
</properties> |
||||||
|
</persistence-unit> |
||||||
|
</persistence> |
@ -0,0 +1,388 @@ |
|||||||
|
# Application Information |
||||||
|
# ~~~~~ |
||||||
|
application.name=\u004c\u006f\u0067\u004d\u0061\u006e\u0061\u0067\u0065 |
||||||
|
application.id= |
||||||
|
application.sid=1719173642480254976 |
||||||
|
application.callback.url=http://117.78.10.170:3000/api/v1/message/preview/ |
||||||
|
application.description= |
||||||
|
application.version=1.0.0 |
||||||
|
# Author/Company |
||||||
|
# ~~~~~ |
||||||
|
application.author=Sunwiseinfo |
||||||
|
application.copyright=Copyright (c) {year} Sunwise. All Rights Reserved. |
||||||
|
# Header Logo |
||||||
|
# ~~~~~ |
||||||
|
# width 237.07mm height 35.28mm |
||||||
|
application.logo =img/logo.png |
||||||
|
# width 334.43mm height 163.69mm |
||||||
|
application.login.logo =img/login.png |
||||||
|
# Home Website |
||||||
|
# ~~~~~ |
||||||
|
# Link to be used with header logo |
||||||
|
application.home=http://www.sunwiseinfo.com |
||||||
|
# Link to the online help |
||||||
|
# ~~~~~ |
||||||
|
application.help=http://docs.sunwiseinfo.com |
||||||
|
# Application deployment mode |
||||||
|
# ~~~~~ |
||||||
|
# Set to 'dev' for development mode else 'prod' |
||||||
|
application.mode=dev |
||||||
|
# CSS Theme |
||||||
|
# ~~~~~ |
||||||
|
# Set default CSS theme, for example `blue` |
||||||
|
application.theme=hypaas-sunwise |
||||||
|
# Default Locale (language) |
||||||
|
# ~~~~~ |
||||||
|
# Set default application locale (en, fr, fr_FR, en_US) |
||||||
|
application.locale=zh_CN |
||||||
|
|
||||||
|
#context.app = com.hypaas.apps.base.service.app.AppService |
||||||
|
#context.appLogo = com.hypaas.apps.base.service.user.UserService:getUserActiveCompanyLogoLink |
||||||
|
|
||||||
|
# Encryption |
||||||
|
# ~~~~~ |
||||||
|
# Set encryption password |
||||||
|
#encryption.password = MySuperSecretKey |
||||||
|
# Set encryption algorithm (CBC or GCM) |
||||||
|
#encryption.algorithm = CBC |
||||||
|
# Database settings |
||||||
|
# ~~~~~ |
||||||
|
# See hibernate documentation for connection parameters |
||||||
|
|
||||||
|
#local logout config |
||||||
|
auth.logout.local=true |
||||||
|
#multi_tenancy config |
||||||
|
#application.multi_tenancy=true |
||||||
|
|
||||||
|
# PostgreSQL |
||||||
|
#db.default.driver = org.postgresql.Driver |
||||||
|
#db.default.ddl = update |
||||||
|
#db.default.url = jdbc:postgresql://localhost:5432/hypaas-erp |
||||||
|
#db.default.user = hypaas |
||||||
|
#db.default.password = hypaas |
||||||
|
|
||||||
|
# MySQL |
||||||
|
#db.default.driver = com.mysql.jdbc.Driver |
||||||
|
#db.default.visible=false |
||||||
|
db.default.driver=com.mysql.cj.jdbc.Driver |
||||||
|
db.default.ddl=update |
||||||
|
db.default.url=jdbc:mysql://117.78.10.170:3006/app_zhangqiyang_app_master_pre?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false&nullCatalogMeansCurrent=true |
||||||
|
db.default.user=app_zhangqiyang |
||||||
|
db.default.password=Asdf123!@# |
||||||
|
|
||||||
|
#db.company1.name=Company 1 |
||||||
|
#db.company1.driver=com.mysql.cj.jdbc.Driver |
||||||
|
#db.company1.url=jdbc:mysql://localhost:3306/hy_iot_paas2?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false |
||||||
|
#db.company1.user=hypaas |
||||||
|
#db.company1.password=hypaas |
||||||
|
# |
||||||
|
#db.company2.name=Company 2 |
||||||
|
#db.company2.driver=com.mysql.cj.jdbc.Driver |
||||||
|
#db.company2.url=jdbc:mysql://localhost:3306/hy_iot_paas3?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false |
||||||
|
#db.company2.user=hypaas |
||||||
|
#db.company2.password=hypaas |
||||||
|
|
||||||
|
# Oracle |
||||||
|
#db.default.driver = oracle.jdbc.OracleDriver |
||||||
|
#db.default.ddl = update |
||||||
|
#db.default.url = jdbc:oracle:thin:@localhost:1521:oracle |
||||||
|
#db.default.user = hypaas |
||||||
|
#db.default.password = |
||||||
|
#Datasource |
||||||
|
jdbc.filters=stat,wall |
||||||
|
jdbc.maxActive=20 |
||||||
|
jdbc.initialSize=5 |
||||||
|
jdbc.maxWait=60000 |
||||||
|
jdbc.minIdle=10 |
||||||
|
jdbc.timeBetweenEvictionRunsMillis=60000 |
||||||
|
jdbc.minEvictableIdleTimeMillis=300000 |
||||||
|
jdbc.validationQuery=SELECT 1 |
||||||
|
jdbc.testWhileIdle=true |
||||||
|
jdbc.testOnBorrow=false |
||||||
|
jdbc.testOnReturn=false |
||||||
|
jdbc.maxOpenPreparedStatements=20 |
||||||
|
jdbc.removeAbandoned=true |
||||||
|
jdbc.removeAbandonedTimeout=1800 |
||||||
|
jdbc.logAbandoned=true |
||||||
|
#0:NONE,1:read_uncommitted,2:read_committed,4:REPEATABLE_READ,8:SERIALIZABLE |
||||||
|
jdbc.transactionIsolation=2 |
||||||
|
jdbc.cache_mode=ENABLE_SELECTIVE |
||||||
|
#jdbc.cache_mode = ALL |
||||||
|
jdbc.fetch_size=20 |
||||||
|
jdbc.batch_size=20 |
||||||
|
mybatis.environment.id=dev |
||||||
|
# Date Format |
||||||
|
# ~~~~~ |
||||||
|
date.format=dd/MM/yyyy |
||||||
|
# Timezone |
||||||
|
# ~~~~~ |
||||||
|
date.timezone=Asia/Shanghai |
||||||
|
# Session timeout (in minutes) |
||||||
|
# ~~~~~ |
||||||
|
session.timeout=60 |
||||||
|
# Storage path for upload files (attachments) |
||||||
|
# ~~~~~ |
||||||
|
# use {user.home} key to save files under user home directory, or |
||||||
|
# use absolute path where server user have write permission. |
||||||
|
file.upload.dir={user.home}/.hypaas/attachments |
||||||
|
# Upload filename pattern, default is auto where file is save with same name |
||||||
|
# in the given upload dir, if file is already there, a count number is |
||||||
|
# appended to file name. |
||||||
|
# |
||||||
|
# This can be overridden by providing custom name pattern, for example: |
||||||
|
# |
||||||
|
# file.upload.filename.pattern = {year}-{month}/{day}/{name} |
||||||
|
# file.upload.filename.pattern = {AA}/{name} |
||||||
|
# |
||||||
|
# Following placeholders can be used: |
||||||
|
# |
||||||
|
# {year} - current year |
||||||
|
# {month} - current month |
||||||
|
# {day} - current day |
||||||
|
# {name} - file name |
||||||
|
# {A} - first letter from file name |
||||||
|
# {AA} - first 2 letter from file name |
||||||
|
# {AAA} - first 3 letter from file name |
||||||
|
# |
||||||
|
#file.upload.filename.pattern = {year}-{month}/{day}/{name} |
||||||
|
# Maximum upload size (in MB) |
||||||
|
# ~~~~~ |
||||||
|
file.upload.size=5 |
||||||
|
|
||||||
|
#视频文件代理全路径 |
||||||
|
nginx.proxy.path = |
||||||
|
|
||||||
|
#自动任务调度目标接口路径 |
||||||
|
scheduling.url = |
||||||
|
|
||||||
|
#序列化字段,逗号分开 |
||||||
|
serialize.keys = |
||||||
|
|
||||||
|
# Whitelist pattern can be used to allow file upload with matching names. |
||||||
|
# |
||||||
|
# For example: \\.(xml|html|jpg|png|pdf|xsl)$ |
||||||
|
# |
||||||
|
# Regular expression |
||||||
|
# ~~~~~ |
||||||
|
#file.upload.whitelist.pattern = |
||||||
|
# Blacklist pattern can be used to block file upload with matching names. |
||||||
|
# |
||||||
|
# Regular expression |
||||||
|
# ~~~~~ |
||||||
|
#file.upload.blacklist.pattern = |
||||||
|
# Whitelist content type can be used to allow file upload with matching content. |
||||||
|
# |
||||||
|
# List of mime-types (plain/text,image/*,video/webm) |
||||||
|
# ~~~~~ |
||||||
|
#file.upload.whitelist.types = |
||||||
|
# Blacklist content type can be used to block file upload with matching content. |
||||||
|
# |
||||||
|
# List of mime-types (plain/text,image/*,video/webm) |
||||||
|
# ~~~~~ |
||||||
|
#file.upload.blacklist.types = |
||||||
|
# The external report design directory |
||||||
|
# ~~~~~ |
||||||
|
# this directory is searched for the rptdesign files |
||||||
|
# (fallbacks to designs provided by modules) |
||||||
|
reports.design.dir={user.home}/.hypaas/reports |
||||||
|
# Storage path for report outputs |
||||||
|
reports.output.dir={user.home}/.hypaas/reports-gen |
||||||
|
# Data export (csv) encoding |
||||||
|
# ~~~~ |
||||||
|
# Use Windows-1252, ISO-8859-1 or ISO-8859-15 if targeting ms excel |
||||||
|
# (excel does not recognize utf8 encoded csv) |
||||||
|
data.export.encoding=UTF-8 |
||||||
|
# Storage path for export action |
||||||
|
# ~~~~~ |
||||||
|
data.export.dir={user.home}/.hypaas/data-export |
||||||
|
# Specify whether to import demo data |
||||||
|
# ~~~~~ |
||||||
|
data.import.hypaas-data=false |
||||||
|
# Storage path for templates |
||||||
|
# ~~~~~ |
||||||
|
template.search.dir={user.home}/.hypaas/templates |
||||||
|
# LDAP Configuration |
||||||
|
# ~~~~~ |
||||||
|
#ldap.server.url = ldap://localhost:10389 |
||||||
|
# can be "simple" or "CRAM-MD5" |
||||||
|
ldap.auth.type=simple |
||||||
|
ldap.system.user=uid=admin,ou=system |
||||||
|
ldap.system.password=secret |
||||||
|
# group search base |
||||||
|
ldap.group.base=ou=groups,dc=example,dc=com |
||||||
|
# if set, create groups on ldap server under ldap.group.base |
||||||
|
#ldap.group.object.class = groupOfUniqueNames |
||||||
|
# a template to search groups by user login id |
||||||
|
ldap.group.filter=(uniqueMember=uid={0}) |
||||||
|
# user search base |
||||||
|
ldap.user.base=ou=users,dc=example,dc=com |
||||||
|
# a template to search user by user login id |
||||||
|
ldap.user.filter=(uid={0}) |
||||||
|
# CAS configuration |
||||||
|
# ~~~~~ |
||||||
|
#auth.cas.server.url.prefix = http://localhost:8081/cas |
||||||
|
# use public accessible url |
||||||
|
#auth.cas.service = http://localhost:8080/hy-iot-paas/callback |
||||||
|
# login url, if not given prepared from server & service url |
||||||
|
#auth.cas.login.url = http://localhost:8081/cas/login?service=http://localhost:8080/hy-iot-paas/callback?client_name=CasClient |
||||||
|
# logout url, if not given prepared from server & service url |
||||||
|
#auth.cas.logout.url = http://localhost:8081/cas/logout?service=http://localhost:8080/hy-iot-paas |
||||||
|
# CAS validation protocol (CAS, SAML) |
||||||
|
#auth.cas.protocol = CAS10 |
||||||
|
# the attribute to map to user display name |
||||||
|
#auth.cas.attrs.user.name = name |
||||||
|
# the attribute to map to user email |
||||||
|
#auth.cas.attrs.user.email = mail |
||||||
|
# Quartz Scheduler |
||||||
|
# ~~~~~ |
||||||
|
# quartz job scheduler |
||||||
|
# Specify whether to enable quartz scheduler |
||||||
|
quartz.enable=false |
||||||
|
# total number of threads in quartz thread pool |
||||||
|
# the number of jobs that can run simultaneously |
||||||
|
quartz.threadCount=3 |
||||||
|
# SMPT configuration |
||||||
|
# ~~~~~ |
||||||
|
# SMTP server configuration |
||||||
|
#mail.smtp.host = smtp.gmail.com |
||||||
|
#mail.smtp.port = 587 |
||||||
|
#mail.smtp.channel = starttls |
||||||
|
#mail.smtp.user = user@gmail.com |
||||||
|
#mail.smtp.pass = secret |
||||||
|
# timeout settings |
||||||
|
#mail.smtp.timeout = 60000 |
||||||
|
#mail.smtp.connectionTimeout = 60000 |
||||||
|
# IMAP configuration |
||||||
|
# ~~~~~ |
||||||
|
# IMAP server configuration |
||||||
|
# (quartz scheduler should be enabled for fetching stream replies) |
||||||
|
#mail.imap.host = imap.gmail.com |
||||||
|
#mail.imap.port = 993 |
||||||
|
#mail.imap.channel = ssl |
||||||
|
#mail.imap.user = user@gmail.com |
||||||
|
#mail.imap.pass = secret |
||||||
|
# timeout settings |
||||||
|
#mail.imap.timeout = 60000 |
||||||
|
#mail.imap.connectionTimeout = 60000 |
||||||
|
# CORS configuration |
||||||
|
# ~~~~~ |
||||||
|
# CORS settings to allow cross origin requests |
||||||
|
# regular expression to test allowed origin or * to allow all (not recommended) |
||||||
|
#cors.allow.origin = * |
||||||
|
#cors.allow.credentials = true |
||||||
|
#cors.allow.methods = GET,PUT,POST,DELETE,HEAD,OPTIONS |
||||||
|
#cors.allow.headers = Origin,Accept,X-Requested-With,Content-Type,Access-Control-Request-Method,Access-Control-Request-Headers |
||||||
|
# View configuration |
||||||
|
# ~~~~~ |
||||||
|
# Set to true to enable single view mode |
||||||
|
view.single.tab=false |
||||||
|
# Set menu style (left, top, both) |
||||||
|
view.menubar.location=both |
||||||
|
# Advance Filter Sharing |
||||||
|
# ~~~~~ |
||||||
|
# Set to false to hide advance search filter share option, or set to list of |
||||||
|
# role names to enable share for those roles only. |
||||||
|
#view.adv-search.share = share-filter,can-share-filter |
||||||
|
# Logging |
||||||
|
# ~~~~~ |
||||||
|
# Custom logback configuration can be provided with `logging.config` property pointing |
||||||
|
# to a custom `logback.xml`. In this case, all the logging configuration provided here |
||||||
|
# will be ignored. |
||||||
|
# |
||||||
|
# Following settings can be used to configure logging system automatically. |
||||||
|
# |
||||||
|
#logging.path = {user.home}/.hypaas/logs |
||||||
|
#logging.pattern.file = %d{yyyy-MM-dd HH:mm:ss.SSS} %5p ${PID:- } --- [%t] %-40.40logger{39} : %m%n |
||||||
|
#logging.pattern.console = %clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n |
||||||
|
# Global logging |
||||||
|
logging.level.root=ERROR |
||||||
|
# Hypaas logging |
||||||
|
# Log everything. |
||||||
|
logging.level.com.hypaas=INFO |
||||||
|
# Hibernate logging |
||||||
|
# Log everything. Good for troubleshooting |
||||||
|
#logging.level.org.hibernate = INFO |
||||||
|
# Log all SQL DML statements as they are executed |
||||||
|
#logging.level.org.hibernate.SQL = DEBUG |
||||||
|
#logging.level.org.hibernate.engine.jdbc = DEBUG |
||||||
|
# Log all SQL DDL statements as they are executed |
||||||
|
#logging.level.org.hibernate.tool.hbm2ddl = INFO |
||||||
|
# Log all JDBC parameters |
||||||
|
#logging.level.org.hibernate.type = ALL |
||||||
|
# Log transactions |
||||||
|
#logging.level.org.hibernate.transaction = DEBUG |
||||||
|
# Log L2-Cache |
||||||
|
#logging.level.org.hibernate.cache = DEBUG |
||||||
|
# Log JDBC resource acquisition |
||||||
|
#logging.level.org.hibernate.jdbc = TRACE |
||||||
|
#logging.level.org.hibernate.service.jdbc = TRACE |
||||||
|
# Log connection pooling |
||||||
|
#logging.level.com.zaxxer.hikari = INFO |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
|
|
|
@ -0,0 +1,25 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<object-views xmlns="http://hypaas.com/xml/ns/object-views" |
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||||
|
xsi:schemaLocation="http://hypaas.com/xml/ns/object-views http://hypaas.com/xml/ns/object-views/object-views_5.3.xsd"> |
||||||
|
|
||||||
|
<dashboard name="welcome.dashboard11" title="Welcome!"> |
||||||
|
<dashlet action="custom:report-tasks-today" colSpan="4"/> |
||||||
|
<dashlet action="custom:report-sales-today" colSpan="4"/> |
||||||
|
<dashlet action="custom:report-sales-month" colSpan="4"/> |
||||||
|
<dashlet action="chart:chart.sales.per.month"/> |
||||||
|
<dashlet action="chart:chart.sales.per.month.pie"/> |
||||||
|
<dashlet colSpan="12" action="sale.orders"/> |
||||||
|
</dashboard> |
||||||
|
|
||||||
|
<action-view name="welcome11" title="Welcome!"> |
||||||
|
<view type="dashboard" name="welcome.dashboard11"/> |
||||||
|
</action-view> |
||||||
|
|
||||||
|
<!-- <menuitem name="menu-dashboards" order="-101" |
||||||
|
title="Dashboards" icon="fa-dashboard" icon-background="blue"/> |
||||||
|
|
||||||
|
<menuitem name="menu-welcome" parent="menu-dashboards" |
||||||
|
title="Welcome!" action="welcome"/>--> |
||||||
|
|
||||||
|
</object-views> |
Loading…
Reference in new issue