提交 7a4f60b6 编写于 作者: O o2null

Merge branch 'feature/listEntity' into 'develop'

add list entity

See merge request o2oa/o2oa!886
......@@ -17,8 +17,11 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "AttendanceAdmin", description = "考勤管理配置")
@Entity
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Table(name = PersistenceProperties.AttendanceAdmin.table, uniqueConstraints = @UniqueConstraint(name = PersistenceProperties.AttendanceAdmin.table
+ JpaObject.IndexNameMiddle + JpaObject.DefaultUniqueConstraintSuffix, columnNames = { JpaObject.IDCOLUMN,
JpaObject.CREATETIMECOLUMN, JpaObject.UPDATETIMECOLUMN, JpaObject.SEQUENCECOLUMN }))
......
......@@ -19,6 +19,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "AttendanceAppealAuditInfo", description = "考勤申诉审批配置.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.AttendanceAppealAuditInfo.table, uniqueConstraints = @UniqueConstraint(name = PersistenceProperties.AttendanceAppealAuditInfo.table
......@@ -63,96 +66,116 @@ public class AttendanceAppealAuditInfo extends SliceJpaObject {
*/
public static final String detailId_FIELDNAME = "detailId";
@FieldDescribe("申诉的打卡记录ID.")
@Column( length = JpaObject.length_id, name = ColumnNamePrefix + detailId_FIELDNAME)
@Column(length = JpaObject.length_id, name = ColumnNamePrefix + detailId_FIELDNAME)
@CheckPersist(allowEmpty = false)
private String detailId;
public static final String auditFlowType_FIELDNAME = "auditFlowType";
@FieldDescribe("审批方式:WORKFLOW|BUILTIN,使用自定义流程或者使用内置流程")
@Column( length = JpaObject.length_255B, name = ColumnNamePrefix + auditFlowType_FIELDNAME)
@Column(length = JpaObject.length_255B, name = ColumnNamePrefix + auditFlowType_FIELDNAME)
private String auditFlowType = AppealConfig.APPEAL_AUDIFLOWTYPE_BUILTIN;
public static final String workId_FIELDNAME = "workId";
@FieldDescribe("自定义审批流程WorkID")
@Column( length = JpaObject.length_id, name = ColumnNamePrefix + workId_FIELDNAME)
@Column(length = JpaObject.length_id, name = ColumnNamePrefix + workId_FIELDNAME)
private String workId;
public static final String lastFlowSyncTime_FIELDNAME = "lastFlowSyncTime";
@FieldDescribe("上次进行状态同步时间")
@Column( name = ColumnNamePrefix + lastFlowSyncTime_FIELDNAME)
@Column(name = ColumnNamePrefix + lastFlowSyncTime_FIELDNAME)
private Date lastFlowSyncTime;
public static final String currentProcessor_FIELDNAME = "currentProcessor";
@FieldDescribe("当前审核人")
@Column( length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix + currentProcessor_FIELDNAME)
@Column(length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix
+ currentProcessor_FIELDNAME)
private String currentProcessor;
public static final String processPerson1_FIELDNAME = "processPerson1";
@FieldDescribe("审批人一")
@Column( length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix + processPerson1_FIELDNAME)
@Column(length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix
+ processPerson1_FIELDNAME)
private String processPerson1;
public static final String processPersonUnit1_FIELDNAME = "processPersonUnit1";
@FieldDescribe("审批人组织一")
@Column( length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix + processPersonUnit1_FIELDNAME)
@Column(length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix
+ processPersonUnit1_FIELDNAME)
private String processPersonUnit1;
public static final String processPersonTopUnit1_FIELDNAME = "processPersonTopUnit1";
@FieldDescribe("审批人顶层组织一")
@Column( length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix + processPersonTopUnit1_FIELDNAME)
@Column(length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix
+ processPersonTopUnit1_FIELDNAME)
private String processPersonTopUnit1;
public static final String opinion1_FIELDNAME = "opinion1";
@FieldDescribe("审批意见一")
@Column( length = JpaObject.length_255B, name = ColumnNamePrefix + opinion1_FIELDNAME )
@Column(length = JpaObject.length_255B, name = ColumnNamePrefix + opinion1_FIELDNAME)
private String opinion1;
public static final String processTime1_FIELDNAME = "processTime1";
@FieldDescribe("审批日期一")
@Temporal(TemporalType.TIMESTAMP)
@Column( name = ColumnNamePrefix + processTime1_FIELDNAME)
@Column(name = ColumnNamePrefix + processTime1_FIELDNAME)
private Date processTime1;
public static final String processPerson2_FIELDNAME = "processPerson2";
@FieldDescribe("审批人二")
@Column( length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix + processPerson2_FIELDNAME)
@Column(length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix
+ processPerson2_FIELDNAME)
private String processPerson2;
public static final String processPersonUnit2_FIELDNAME = "processPersonUnit2";
@FieldDescribe("审批人组织二")
@Column( length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix + processPersonUnit2_FIELDNAME )
@Column(length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix
+ processPersonUnit2_FIELDNAME)
private String processPersonUnit2;
public static final String processPersonTopUnit2_FIELDNAME = "processPersonTopUnit2";
@FieldDescribe("审批人顶层组织二")
@Column( length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix + processPersonTopUnit2_FIELDNAME )
@Column(length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix
+ processPersonTopUnit2_FIELDNAME)
private String processPersonTopUnit2;
public static final String opinion2_FIELDNAME = "opinion2";
@FieldDescribe("审批意见二")
@Column( length = JpaObject.length_255B, name = ColumnNamePrefix + opinion2_FIELDNAME )
@Column(length = JpaObject.length_255B, name = ColumnNamePrefix + opinion2_FIELDNAME)
private String opinion2;
public static final String processTime2_FIELDNAME = "processTime2";
@FieldDescribe("审批日期二")
@Temporal(TemporalType.TIMESTAMP)
@Column( name = ColumnNamePrefix + processTime2_FIELDNAME )
@Column(name = ColumnNamePrefix + processTime2_FIELDNAME)
private Date processTime2;
public void setCurrentProcessor(String currentProcessor) {
this.currentProcessor = currentProcessor;
}
public void setCurrentProcessor(String currentProcessor) { this.currentProcessor = currentProcessor; }
public String getAuditFlowType() { return auditFlowType; }
public String getAuditFlowType() {
return auditFlowType;
}
public void setAuditFlowType(String auditFlowType) { this.auditFlowType = auditFlowType; }
public void setAuditFlowType(String auditFlowType) {
this.auditFlowType = auditFlowType;
}
public String getWorkId() { return workId; }
public String getWorkId() {
return workId;
}
public void setWorkId(String workId) { this.workId = workId; }
public void setWorkId(String workId) {
this.workId = workId;
}
public Date getLastFlowSyncTime() { return lastFlowSyncTime; }
public Date getLastFlowSyncTime() {
return lastFlowSyncTime;
}
public void setLastFlowSyncTime(Date lastFlowSyncTime) { this.lastFlowSyncTime = lastFlowSyncTime; }
public void setLastFlowSyncTime(Date lastFlowSyncTime) {
this.lastFlowSyncTime = lastFlowSyncTime;
}
public String getDetailId() {
return detailId;
......@@ -182,7 +205,9 @@ public class AttendanceAppealAuditInfo extends SliceJpaObject {
return processPersonTopUnit1;
}
public void setProcessPersonTopUnit1(String processPersonTopUnit1) { this.processPersonTopUnit1 = processPersonTopUnit1; }
public void setProcessPersonTopUnit1(String processPersonTopUnit1) {
this.processPersonTopUnit1 = processPersonTopUnit1;
}
public String getOpinion1() {
return opinion1;
......@@ -220,7 +245,9 @@ public class AttendanceAppealAuditInfo extends SliceJpaObject {
return processPersonTopUnit2;
}
public void setProcessPersonTopUnit2(String processPersonTopUnit2) { this.processPersonTopUnit2 = processPersonTopUnit2; }
public void setProcessPersonTopUnit2(String processPersonTopUnit2) {
this.processPersonTopUnit2 = processPersonTopUnit2;
}
public String getOpinion2() {
return opinion2;
......
......@@ -22,6 +22,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "AttendanceAppealInfo", description = "考勤申诉信息.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.AttendanceAppealInfo.table, uniqueConstraints = @UniqueConstraint(name = PersistenceProperties.AttendanceAppealInfo.table
......
......@@ -24,6 +24,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "AttendanceDetail", description = "考勤信息.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.AttendanceDetail.table, uniqueConstraints = @UniqueConstraint(name = PersistenceProperties.AttendanceDetail.table
......
......@@ -21,6 +21,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "AttendanceDetailMobile", description = "移动端考勤信息.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.AttendanceDetailMobile.table, uniqueConstraints = @UniqueConstraint(name = PersistenceProperties.AttendanceDetailMobile.table
......
......@@ -15,6 +15,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "AttendanceEmployeeConfig", description = "考勤雇员配置.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.AttendanceEmployeeConfig.table, uniqueConstraints = @UniqueConstraint(name = PersistenceProperties.AttendanceEmployeeConfig.table
......
......@@ -24,10 +24,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
/**
* 内容管理应用目录分类信息
*
*/
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "AttendanceImportFileInfo", description = "考勤雇员配置.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.AttendanceImportFileInfo.table, uniqueConstraints = @UniqueConstraint(name = PersistenceProperties.AttendanceImportFileInfo.table
......@@ -72,20 +71,22 @@ public class AttendanceImportFileInfo extends SliceJpaObject {
public static final String lastUpdateTime_FIELDNAME = "lastUpdateTime";
@FieldDescribe("最后更新时间")
@Temporal(TemporalType.TIMESTAMP)
@Column( name = ColumnNamePrefix + lastUpdateTime_FIELDNAME )
@Column(name = ColumnNamePrefix + lastUpdateTime_FIELDNAME)
@Index(name = TABLE + "_lastUpdateTime")
@CheckPersist(allowEmpty = false)
private Date lastUpdateTime;
public static final String fileName_FIELDNAME = "fileName";
@FieldDescribe("文件真实名称")
@Column( length = AbstractPersistenceProperties.processPlatform_name_length, name = ColumnNamePrefix + fileName_FIELDNAME )
@Column(length = AbstractPersistenceProperties.processPlatform_name_length, name = ColumnNamePrefix
+ fileName_FIELDNAME)
@CheckPersist(fileNameString = true, allowEmpty = true)
private String fileName = "";
public static final String name_FIELDNAME = "name";
@FieldDescribe("文件真实名称")
@Column( length = AbstractPersistenceProperties.processPlatform_name_length, name = ColumnNamePrefix + name_FIELDNAME )
@Column(length = AbstractPersistenceProperties.processPlatform_name_length, name = ColumnNamePrefix
+ name_FIELDNAME)
@CheckPersist(fileNameString = true, allowEmpty = true)
private String name = "";
......@@ -93,7 +94,7 @@ public class AttendanceImportFileInfo extends SliceJpaObject {
@Lob
@Basic(fetch = FetchType.EAGER)
@FieldDescribe("文件内容, 10M大约可以存储50万行Excel")
@Column( length = JpaObject.length_10M, name = ColumnNamePrefix + fileBody_FIELDNAME )
@Column(length = JpaObject.length_10M, name = ColumnNamePrefix + fileBody_FIELDNAME)
@CheckPersist(allowEmpty = true)
private byte[] fileBody;
......@@ -101,7 +102,7 @@ public class AttendanceImportFileInfo extends SliceJpaObject {
@Lob
@Basic(fetch = FetchType.EAGER)
@FieldDescribe("文件数据JSON内容, 10M大约可以存储50万行Excel")
@Column( length = JpaObject.length_10M, name = ColumnNamePrefix + dataContent_FIELDNAME )
@Column(length = JpaObject.length_10M, name = ColumnNamePrefix + dataContent_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String dataContent;
......@@ -109,96 +110,96 @@ public class AttendanceImportFileInfo extends SliceJpaObject {
@Lob
@Basic(fetch = FetchType.EAGER)
@FieldDescribe("错误数据JSON内容, 10M大约可以存储50万行Excel")
@Column( length = JpaObject.length_10M, name = ColumnNamePrefix + errorContent_FIELDNAME )
@Column(length = JpaObject.length_10M, name = ColumnNamePrefix + errorContent_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String errorContent;
public static final String description_FIELDNAME = "description";
@FieldDescribe("文件说明")
@Column( length = JpaObject.length_255B, name = ColumnNamePrefix + description_FIELDNAME )
@Column(length = JpaObject.length_255B, name = ColumnNamePrefix + description_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String description = "";
public static final String creatorUid_FIELDNAME = "creatorUid";
@FieldDescribe("创建者UID")
@Column( length = JpaObject.length_64B, name = ColumnNamePrefix + creatorUid_FIELDNAME )
@Column(length = JpaObject.length_64B, name = ColumnNamePrefix + creatorUid_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String creatorUid = "";
public static final String extension_FIELDNAME = "extension";
@FieldDescribe("扩展名")
@Column( length = JpaObject.length_16B, name = ColumnNamePrefix + extension_FIELDNAME )
@Column(length = JpaObject.length_16B, name = ColumnNamePrefix + extension_FIELDNAME)
@CheckPersist(fileNameString = true, allowEmpty = true)
private String extension = "xlsx";
public static final String length_FIELDNAME = "length";
@FieldDescribe("文件大小.")
@Column( name = ColumnNamePrefix + length_FIELDNAME )
@Column(name = ColumnNamePrefix + length_FIELDNAME)
@CheckPersist(allowEmpty = true)
private Long length = 0L;
public static final String rowCount_FIELDNAME = "rowCount";
@FieldDescribe("记录行数.")
@Column( name = ColumnNamePrefix + rowCount_FIELDNAME )
@Column(name = ColumnNamePrefix + rowCount_FIELDNAME)
@CheckPersist(allowEmpty = true)
private Long rowCount = 0L;
public static final String fileStatus_FIELDNAME = "fileStatus";
@FieldDescribe("文件状态:new|imported.")
@Column( length = JpaObject.length_16B, name = ColumnNamePrefix + fileStatus_FIELDNAME )
@Column(length = JpaObject.length_16B, name = ColumnNamePrefix + fileStatus_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String fileStatus = "new";
public static final String tempFilePath_FIELDNAME = "tempFilePath";
@FieldDescribe("临时文件地址")
@Column( length = JpaObject.length_255B, name = ColumnNamePrefix + tempFilePath_FIELDNAME )
@Column(length = JpaObject.length_255B, name = ColumnNamePrefix + tempFilePath_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String tempFilePath = null;
public static final String currentProcessName_FIELDNAME = "currentProcessName";
@FieldDescribe("当前数据处理操作步骤:GETDATA|CHECKDATA|SAVEDATA|SUPPLEMENT|ANALYSIS")
@Column( length = JpaObject.length_32B, name = ColumnNamePrefix + currentProcessName_FIELDNAME )
@Column(length = JpaObject.length_32B, name = ColumnNamePrefix + currentProcessName_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String currentProcessName = "NONE";
public static final String validateOk_FIELDNAME = "validateOk";
@FieldDescribe("数据校验结果")
@Column( name = ColumnNamePrefix + validateOk_FIELDNAME )
@Column(name = ColumnNamePrefix + validateOk_FIELDNAME)
@CheckPersist(allowEmpty = true)
private Boolean validateOk = false;
public static final String processing_FIELDNAME = "processing";
@FieldDescribe("数据操作状态")
@Column( name = ColumnNamePrefix + processing_FIELDNAME )
@Column(name = ColumnNamePrefix + processing_FIELDNAME)
@CheckPersist(allowEmpty = true)
private Boolean processing = false;
public static final String recordTotle_FIELDNAME = "recordTotle";
@FieldDescribe("数据总量")
@Column( name = ColumnNamePrefix + recordTotle_FIELDNAME )
@Column(name = ColumnNamePrefix + recordTotle_FIELDNAME)
private Long recordTotle = 0L;
public static final String processCount_FIELDNAME = "processCount";
@FieldDescribe("当前数据操作数量")
@Column( name = ColumnNamePrefix + processCount_FIELDNAME )
@Column(name = ColumnNamePrefix + processCount_FIELDNAME)
private Long processCount = 0L;
public static final String startDate_FIELDNAME = "startDate";
@FieldDescribe("数据开始日期")
@Temporal(TemporalType.TIMESTAMP)
@Column( name = ColumnNamePrefix + startDate_FIELDNAME )
@Column(name = ColumnNamePrefix + startDate_FIELDNAME)
private Date startDate = null;
public static final String endDate_FIELDNAME = "endDate";
@FieldDescribe("数据结束日期")
@Temporal(TemporalType.TIMESTAMP)
@Column( name = ColumnNamePrefix + endDate_FIELDNAME )
@Column(name = ColumnNamePrefix + endDate_FIELDNAME)
private Date endDate = null;
public static final String site_FIELDNAME = "site";
@FieldDescribe("附件框分类.")
@Column(length = JpaObject.length_64B, name = ColumnNamePrefix + site_FIELDNAME )
@CheckPersist(allowEmpty = true)
@Column(length = JpaObject.length_64B, name = ColumnNamePrefix + site_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String site;
public String getFileName() {
......
......@@ -17,6 +17,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "AttendanceScheduleSetting", description = "考勤定时任务配置.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.AttendanceScheduleSetting.table, uniqueConstraints = @UniqueConstraint(name = PersistenceProperties.AttendanceScheduleSetting.table
......
......@@ -19,6 +19,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "AttendanceSelfHoliday", description = "考勤假日配置.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.AttendanceSelfHoliday.table, uniqueConstraints = @UniqueConstraint(name = PersistenceProperties.AttendanceSelfHoliday.table
......
......@@ -14,6 +14,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "AttendanceSetting", description = "考勤配置.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.AttendanceSetting.table, uniqueConstraints = {
......
......@@ -21,6 +21,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "AttendanceStatisticRequireLog", description = "考勤统计需求日志.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.AttendanceStatisticRequireLog.table, uniqueConstraints = {
......@@ -63,50 +66,50 @@ public class AttendanceStatisticRequireLog extends SliceJpaObject {
*/
public static final String statisticName_FIELDNAME = "statisticName";
@FieldDescribe("统计名称")
@Column( length = JpaObject.length_96B, name = ColumnNamePrefix + statisticName_FIELDNAME )
@Column(length = JpaObject.length_96B, name = ColumnNamePrefix + statisticName_FIELDNAME)
@CheckPersist(allowEmpty = false)
private String statisticName = "";
public static final String statisticType_FIELDNAME = "statisticType";
@FieldDescribe("统计类型:PERSON_PER_MONTH|UNIT_PER_MONTH|TOPUNIT_PER_MONTH|UNIT_PER_DAY|TOPUNIT_PER_DAY")
@Column( length = JpaObject.length_96B, name = ColumnNamePrefix + statisticType_FIELDNAME )
@Column(length = JpaObject.length_96B, name = ColumnNamePrefix + statisticType_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String statisticType = "";
public static final String statisticKey_FIELDNAME = "statisticKey";
@FieldDescribe("统计键值")
@Column( length = JpaObject.length_96B, name = ColumnNamePrefix + statisticKey_FIELDNAME )
@Column(length = JpaObject.length_96B, name = ColumnNamePrefix + statisticKey_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String statisticKey = "";
public static final String statisticYear_FIELDNAME = "statisticYear";
@FieldDescribe("统计年月")
@Column( length = JpaObject.length_96B, name = ColumnNamePrefix + statisticYear_FIELDNAME )
@Column(length = JpaObject.length_96B, name = ColumnNamePrefix + statisticYear_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String statisticYear = "";
public static final String statisticMonth_FIELDNAME = "statisticMonth";
@FieldDescribe("统计月份")
@Column( length = JpaObject.length_96B, name = ColumnNamePrefix + statisticMonth_FIELDNAME )
@Column(length = JpaObject.length_96B, name = ColumnNamePrefix + statisticMonth_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String statisticMonth = "";
public static final String statisticDay_FIELDNAME = "statisticDay";
@FieldDescribe("统计日期")
@Column( length = JpaObject.length_96B, name = ColumnNamePrefix + statisticDay_FIELDNAME )
@Column(length = JpaObject.length_96B, name = ColumnNamePrefix + statisticDay_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String statisticDay = "";
public static final String processTime_FIELDNAME = "processTime";
@FieldDescribe("处理时间")
@Temporal(TemporalType.TIMESTAMP)
@Column( name = ColumnNamePrefix + processTime_FIELDNAME )
@Column(name = ColumnNamePrefix + processTime_FIELDNAME)
@CheckPersist(allowEmpty = true)
private Date processTime = null;
public static final String processStatus_FIELDNAME = "processStatus";
@FieldDescribe("处理状态")
@Column( name = ColumnNamePrefix + processStatus_FIELDNAME )
@Column(name = ColumnNamePrefix + processStatus_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String processStatus = "WAITING";
......@@ -114,7 +117,7 @@ public class AttendanceStatisticRequireLog extends SliceJpaObject {
@Lob
@Basic(fetch = FetchType.EAGER)
@FieldDescribe("说明备注")
@Column( length = JpaObject.length_2K, name = ColumnNamePrefix + description_FIELDNAME )
@Column(length = JpaObject.length_2K, name = ColumnNamePrefix + description_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String description = "";
......
......@@ -19,6 +19,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "AttendanceStatisticalCycle", description = "考勤统计回收.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.AttendanceStatisticalCycle.table, uniqueConstraints = {
......@@ -64,57 +67,59 @@ public class AttendanceStatisticalCycle extends SliceJpaObject {
*/
public static final String topUnitName_FIELDNAME = "topUnitName";
@FieldDescribe("顶层组织名称")
@Column( length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix + topUnitName_FIELDNAME )
@Column(length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix
+ topUnitName_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String topUnitName;
public static final String unitName_FIELDNAME = "unitName";
@FieldDescribe("组织名称")
@Column( length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix + unitName_FIELDNAME )
@Column(length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix
+ unitName_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String unitName;
public static final String cycleYear_FIELDNAME = "cycleYear";
@FieldDescribe("统计周期年份")
@Column( length = JpaObject.length_16B, name = ColumnNamePrefix + cycleYear_FIELDNAME )
@Column(length = JpaObject.length_16B, name = ColumnNamePrefix + cycleYear_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String cycleYear;
public static final String cycleMonth_FIELDNAME = "cycleMonth";
@FieldDescribe("统计周期月份")
@Column( length = JpaObject.length_16B, name = ColumnNamePrefix + cycleMonth_FIELDNAME )
@Column(length = JpaObject.length_16B, name = ColumnNamePrefix + cycleMonth_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String cycleMonth;
public static final String cycleStartDateString_FIELDNAME = "cycleStartDateString";
@FieldDescribe("月周期开始日期")
@Column( length = JpaObject.length_32B, name = ColumnNamePrefix + cycleStartDateString_FIELDNAME )
@Column(length = JpaObject.length_32B, name = ColumnNamePrefix + cycleStartDateString_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String cycleStartDateString;
public static final String cycleEndDateString_FIELDNAME = "cycleEndDateString";
@FieldDescribe("月周期结束日期")
@Column( length = JpaObject.length_32B, name = ColumnNamePrefix + cycleEndDateString_FIELDNAME )
@Column(length = JpaObject.length_32B, name = ColumnNamePrefix + cycleEndDateString_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String cycleEndDateString;
public static final String cycleStartDate_FIELDNAME = "cycleStartDate";
@FieldDescribe("月周期开始日期")
@Temporal(TemporalType.TIMESTAMP)
@Column( name = ColumnNamePrefix + cycleStartDate_FIELDNAME )
@Column(name = ColumnNamePrefix + cycleStartDate_FIELDNAME)
@CheckPersist(allowEmpty = true)
private Date cycleStartDate;
public static final String cycleEndDate_FIELDNAME = "cycleEndDate";
@FieldDescribe("月周期结束日期")
@Temporal(TemporalType.TIMESTAMP)
@Column( name = ColumnNamePrefix + cycleEndDate_FIELDNAME )
@Column(name = ColumnNamePrefix + cycleEndDate_FIELDNAME)
@CheckPersist(allowEmpty = true)
private Date cycleEndDate;
public static final String description_FIELDNAME = "description";
@FieldDescribe("说明备注")
@Column( length = JpaObject.length_255B, name = ColumnNamePrefix + description_FIELDNAME )
@Column(length = JpaObject.length_255B, name = ColumnNamePrefix + description_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String description;
......
......@@ -14,6 +14,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "AttendanceWorkDayConfig", description = "考勤统计需求日志.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.AttendanceWorkDayConfig.table, uniqueConstraints = {
......
......@@ -15,6 +15,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "AttendanceWorkPlace", description = "考勤工作场所配置.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.AttendanceWorkPlace.table, uniqueConstraints = {
......@@ -57,43 +60,46 @@ public class AttendanceWorkPlace extends SliceJpaObject {
*/
public static final String placeName_FIELDNAME = "placeName";
@FieldDescribe("场所名称")
@Column( length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix + placeName_FIELDNAME )
@Column(length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix
+ placeName_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String placeName = "";
public static final String placeAlias_FIELDNAME = "placeAlias";
@FieldDescribe("场所别名")
@Column( length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix + placeAlias_FIELDNAME )
@Column(length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix
+ placeAlias_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String placeAlias = "";
public static final String creator_FIELDNAME = "creator";
@FieldDescribe("创建人")
@Column( length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix + creator_FIELDNAME )
@Column(length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix
+ creator_FIELDNAME)
@CheckPersist(allowEmpty = false)
private String creator = "";
public static final String longitude_FIELDNAME = "longitude";
@FieldDescribe("经度")
@Column( length = JpaObject.length_32B, name = ColumnNamePrefix + longitude_FIELDNAME )
@Column(length = JpaObject.length_32B, name = ColumnNamePrefix + longitude_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String longitude = null;
public static final String latitude_FIELDNAME = "latitude";
@FieldDescribe("纬度")
@Column( length = JpaObject.length_32B, name = ColumnNamePrefix + latitude_FIELDNAME )
@Column(length = JpaObject.length_32B, name = ColumnNamePrefix + latitude_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String latitude = null;
public static final String errorRange_FIELDNAME = "errorRange";
@FieldDescribe("误差范围")
@Column( name = ColumnNamePrefix + errorRange_FIELDNAME )
@Column(name = ColumnNamePrefix + errorRange_FIELDNAME)
@CheckPersist(allowEmpty = true)
private Integer errorRange = 200;
public static final String description_FIELDNAME = "description";
@FieldDescribe("说明备注")
@Column( length = JpaObject.length_255B, name = ColumnNamePrefix + description_FIELDNAME )
@Column(length = JpaObject.length_255B, name = ColumnNamePrefix + description_FIELDNAME)
@CheckPersist(allowEmpty = true)
private String description = null;
......
package com.x.attendance.entity;
import java.util.Date;
import javax.persistence.Column;
......@@ -16,136 +15,137 @@ import com.x.base.core.entity.SliceJpaObject;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "DingdingQywxSyncRecord", description = "考勤钉钉企业微信同步日志.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.DingdingQywxSyncRecord.table, uniqueConstraints = @UniqueConstraint(name = PersistenceProperties.DingdingQywxSyncRecord.table
+ JpaObject.IndexNameMiddle + JpaObject.DefaultUniqueConstraintSuffix, columnNames = { JpaObject.IDCOLUMN,
JpaObject.CREATETIMECOLUMN, JpaObject.UPDATETIMECOLUMN, JpaObject.SEQUENCECOLUMN }))
+ JpaObject.IndexNameMiddle + JpaObject.DefaultUniqueConstraintSuffix, columnNames = { JpaObject.IDCOLUMN,
JpaObject.CREATETIMECOLUMN, JpaObject.UPDATETIMECOLUMN, JpaObject.SEQUENCECOLUMN }))
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class DingdingQywxSyncRecord extends SliceJpaObject {
private static final String TABLE = PersistenceProperties.DingdingQywxSyncRecord.table;
private static final long serialVersionUID = -7473350816056626066L;
@Override
public void onPersist() throws Exception {
}
@Override
public String getId() {
return id;
}
@Override
public void setId(String id) {
this.id = id;
}
@FieldDescribe("数据库主键,自动生成.")
@Id
@Column(length = length_id, name = ColumnNamePrefix + id_FIELDNAME)
private String id = createId();
/*
* =============================================================================
* ===== 以上为 JpaObject 默认字段
* =============================================================================
* =====
*/
public static final String startTime_FIELDNAME = "startTime";
@FieldDescribe("同步开始时间")
@Column( name = ColumnNamePrefix + startTime_FIELDNAME )
private Date startTime;
public static final String endTime_FIELDNAME = "endTime";
@FieldDescribe("同步结束时间")
@Column( name = ColumnNamePrefix + endTime_FIELDNAME )
private Date endTime;
public static final String syncType_qywx = "qywx";
public static final String syncType_dingding = "dingding";
public static final String type_FIELDNAME = "type";
@FieldDescribe("同步类型,qywx(企业微信同步) , dingding(钉钉同步)")
@Column( length = length_32B, name = ColumnNamePrefix + type_FIELDNAME )
private String type;
public static final String dateFrom_FIELDNAME = "dateFrom";
@FieldDescribe("同步打卡记录的开始时间")
@Column( name = ColumnNamePrefix + dateFrom_FIELDNAME )
private long dateFrom;
public static final String dateTo_FIELDNAME = "dateTo";
@FieldDescribe("同步打卡记录的结束时间, 起始与结束工作日最多相隔7天")
@Column( name = ColumnNamePrefix + dateTo_FIELDNAME )
private long dateTo;
public static final String status_loading = "loading";
public static final String status_end = "end";
public static final String status_error = "error";
public static final String status_FIELDNAME = "status";
@FieldDescribe("同步状态,loading(正在进行) , end(结束) , error(执行异常)")
@Column( length = length_32B, name = ColumnNamePrefix + status_FIELDNAME )
private String status;
public static final String exceptionMessage_FIELDNAME = "exceptionMessage";
@FieldDescribe("异常信息")
@Column( length = length_255B, name = ColumnNamePrefix + exceptionMessage_FIELDNAME )
private String exceptionMessage;
public Date getStartTime() {
return startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public Date getEndTime() {
return endTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public long getDateFrom() {
return dateFrom;
}
public void setDateFrom(long dateFrom) {
this.dateFrom = dateFrom;
}
public long getDateTo() {
return dateTo;
}
public void setDateTo(long dateTo) {
this.dateTo = dateTo;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getExceptionMessage() {
return exceptionMessage;
}
public void setExceptionMessage(String exceptionMessage) {
this.exceptionMessage = exceptionMessage;
}
public class DingdingQywxSyncRecord extends SliceJpaObject {
private static final String TABLE = PersistenceProperties.DingdingQywxSyncRecord.table;
private static final long serialVersionUID = -7473350816056626066L;
@Override
public void onPersist() throws Exception {
}
@Override
public String getId() {
return id;
}
@Override
public void setId(String id) {
this.id = id;
}
@FieldDescribe("数据库主键,自动生成.")
@Id
@Column(length = length_id, name = ColumnNamePrefix + id_FIELDNAME)
private String id = createId();
/*
* =============================================================================
* ===== 以上为 JpaObject 默认字段
* =============================================================================
* =====
*/
public static final String startTime_FIELDNAME = "startTime";
@FieldDescribe("同步开始时间")
@Column(name = ColumnNamePrefix + startTime_FIELDNAME)
private Date startTime;
public static final String endTime_FIELDNAME = "endTime";
@FieldDescribe("同步结束时间")
@Column(name = ColumnNamePrefix + endTime_FIELDNAME)
private Date endTime;
public static final String syncType_qywx = "qywx";
public static final String syncType_dingding = "dingding";
public static final String type_FIELDNAME = "type";
@FieldDescribe("同步类型,qywx(企业微信同步) , dingding(钉钉同步)")
@Column(length = length_32B, name = ColumnNamePrefix + type_FIELDNAME)
private String type;
public static final String dateFrom_FIELDNAME = "dateFrom";
@FieldDescribe("同步打卡记录的开始时间")
@Column(name = ColumnNamePrefix + dateFrom_FIELDNAME)
private long dateFrom;
public static final String dateTo_FIELDNAME = "dateTo";
@FieldDescribe("同步打卡记录的结束时间, 起始与结束工作日最多相隔7天")
@Column(name = ColumnNamePrefix + dateTo_FIELDNAME)
private long dateTo;
public static final String status_loading = "loading";
public static final String status_end = "end";
public static final String status_error = "error";
public static final String status_FIELDNAME = "status";
@FieldDescribe("同步状态,loading(正在进行) , end(结束) , error(执行异常)")
@Column(length = length_32B, name = ColumnNamePrefix + status_FIELDNAME)
private String status;
public static final String exceptionMessage_FIELDNAME = "exceptionMessage";
@FieldDescribe("异常信息")
@Column(length = length_255B, name = ColumnNamePrefix + exceptionMessage_FIELDNAME)
private String exceptionMessage;
public Date getStartTime() {
return startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public Date getEndTime() {
return endTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public long getDateFrom() {
return dateFrom;
}
public void setDateFrom(long dateFrom) {
this.dateFrom = dateFrom;
}
public long getDateTo() {
return dateTo;
}
public void setDateTo(long dateTo) {
this.dateTo = dateTo;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getExceptionMessage() {
return exceptionMessage;
}
public void setExceptionMessage(String exceptionMessage) {
this.exceptionMessage = exceptionMessage;
}
}
......@@ -14,6 +14,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "StatisticDingdingPersonForMonth", description = "考勤钉钉人员按月统计.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.StatisticDingdingPersonForMonth.table, uniqueConstraints = {
......
......@@ -14,6 +14,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "StatisticDingdingUnitForDay", description = "考勤钉钉组织按天统计.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.StatisticDingdingUnitForDay.table, uniqueConstraints = {
......@@ -23,8 +26,6 @@ import com.x.base.core.project.annotation.FieldDescribe;
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class StatisticDingdingUnitForDay extends SliceJpaObject {
private static final String TABLE = PersistenceProperties.StatisticDingdingUnitForDay.table;
private static final long serialVersionUID = 2090817422412907325L;
......@@ -58,71 +59,71 @@ public class StatisticDingdingUnitForDay extends SliceJpaObject {
*/
public static final String o2Unit_FIELDNAME = "o2Unit";
@FieldDescribe("O2用户所在的组织")
@Column( length = length_128B, name = ColumnNamePrefix + o2Unit_FIELDNAME )
@Column(length = length_128B, name = ColumnNamePrefix + o2Unit_FIELDNAME)
@CheckPersist(allowEmpty = false)
private String o2Unit;
public static final String statisticYear_FIELDNAME = "statisticYear";
@FieldDescribe("统计年份")
@Column( length = JpaObject.length_16B, name = ColumnNamePrefix + statisticYear_FIELDNAME )
@Column(length = JpaObject.length_16B, name = ColumnNamePrefix + statisticYear_FIELDNAME)
@CheckPersist(allowEmpty = false)
private String statisticYear;
public static final String statisticMonth_FIELDNAME = "statisticMonth";
@FieldDescribe("统计月份")
@Column( length = JpaObject.length_16B, name = ColumnNamePrefix + statisticMonth_FIELDNAME )
@Column(length = JpaObject.length_16B, name = ColumnNamePrefix + statisticMonth_FIELDNAME)
@CheckPersist(allowEmpty = false)
private String statisticMonth;
public static final String statisticDate_FIELDNAME = "statisticDate";
@FieldDescribe("统计日期")
@Column( length = JpaObject.length_16B, name = ColumnNamePrefix + statisticDate_FIELDNAME )
@Column(length = JpaObject.length_16B, name = ColumnNamePrefix + statisticDate_FIELDNAME)
@CheckPersist(allowEmpty = false)
private String statisticDate;
public static final String workDayCount_FIELDNAME = "workDayCount";
@FieldDescribe("出勤人数")
@Column( name = ColumnNamePrefix + workDayCount_FIELDNAME )
@Column(name = ColumnNamePrefix + workDayCount_FIELDNAME)
private Long workDayCount;
public static final String onDutyTimes_FIELDNAME = "onDutyTimes";
@FieldDescribe("上班签到人数")
@Column( name = ColumnNamePrefix + onDutyTimes_FIELDNAME )
@Column(name = ColumnNamePrefix + onDutyTimes_FIELDNAME)
private Long onDutyTimes;
public static final String offDutyTimes_FIELDNAME = "offDutyTimes";
@FieldDescribe("下班签到人数")
@Column( name = ColumnNamePrefix + offDutyTimes_FIELDNAME )
@Column(name = ColumnNamePrefix + offDutyTimes_FIELDNAME)
private Long offDutyTimes;
public static final String resultNormal_FIELDNAME = "resultNormal";
@FieldDescribe("正常签到次数")
@Column( name = ColumnNamePrefix + resultNormal_FIELDNAME )
@Column(name = ColumnNamePrefix + resultNormal_FIELDNAME)
private Long resultNormal;
public static final String lateTimes_FIELDNAME = "lateTimes";
@FieldDescribe("迟到人数")
@Column( name = ColumnNamePrefix + lateTimes_FIELDNAME )
@Column(name = ColumnNamePrefix + lateTimes_FIELDNAME)
private Long lateTimes;
public static final String seriousLateTimes_FIELDNAME = "seriousLateTimes";
@FieldDescribe("严重迟到人数")
@Column( name = ColumnNamePrefix + seriousLateTimes_FIELDNAME )
@Column(name = ColumnNamePrefix + seriousLateTimes_FIELDNAME)
private Long seriousLateTimes;
public static final String leaveEarlyTimes_FIELDNAME = "leaveEarlyTimes";
@FieldDescribe("早退人数")
@Column( name = ColumnNamePrefix + leaveEarlyTimes_FIELDNAME )
@Column(name = ColumnNamePrefix + leaveEarlyTimes_FIELDNAME)
private Long leaveEarlyTimes;
public static final String absenteeismTimes_FIELDNAME = "absenteeismTimes";
@FieldDescribe("旷工人数")
@Column( name = ColumnNamePrefix + absenteeismTimes_FIELDNAME )
@Column(name = ColumnNamePrefix + absenteeismTimes_FIELDNAME)
private Long absenteeismTimes;
public static final String notSignedCount_FIELDNAME = "notSignedCount";
@FieldDescribe("未打卡人数")
@Column( name = ColumnNamePrefix + notSignedCount_FIELDNAME )
@Column(name = ColumnNamePrefix + notSignedCount_FIELDNAME)
private Long notSignedCount;
public Long getResultNormal() {
......
......@@ -14,6 +14,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "StatisticDingdingUnitForMonth", description = "考勤钉钉组织按月统计.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.StatisticDingdingUnitForMonth.table, uniqueConstraints = {
......
......@@ -17,6 +17,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "StatisticPersonForMonth", description = "考勤人员按月统计.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.StatisticPersonForMonth.table, uniqueConstraints = {
......
......@@ -14,6 +14,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "StatisticQywxPersonForMonth", description = "考勤人员按月统计.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.StatisticQywxPersonForMonth.table, uniqueConstraints = {
......
......@@ -14,6 +14,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "StatisticQywxUnitForDay", description = "考勤企业微信人员按月统计.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.StatisticQywxUnitForDay.table, uniqueConstraints = {
......
......@@ -14,6 +14,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "StatisticQywxUnitForMonth", description = "考勤企业微信组织按月统计.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.StatisticQywxUnitForMonth.table, uniqueConstraints = {
......
......@@ -17,6 +17,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "StatisticTopUnitForDay", description = "考勤顶层组织按天统计.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.StatisticTopUnitForDay.table, uniqueConstraints = {
......@@ -66,76 +69,77 @@ public class StatisticTopUnitForDay extends SliceJpaObject {
*/
public static final String topUnitName_FIELDNAME = "topUnitName";
@FieldDescribe("顶层组织名称")
@Column( length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix + topUnitName_FIELDNAME )
@Column(length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix
+ topUnitName_FIELDNAME)
@CheckPersist(allowEmpty = false)
private String topUnitName;
public static final String statisticYear_FIELDNAME = "statisticYear";
@FieldDescribe("统计年份")
@Column( length = JpaObject.length_16B, name = ColumnNamePrefix + statisticYear_FIELDNAME )
@Column(length = JpaObject.length_16B, name = ColumnNamePrefix + statisticYear_FIELDNAME)
@CheckPersist(allowEmpty = false)
private String statisticYear;
public static final String statisticMonth_FIELDNAME = "statisticMonth";
@FieldDescribe("统计月份")
@Column( length = JpaObject.length_16B, name = ColumnNamePrefix + statisticMonth_FIELDNAME )
@Column(length = JpaObject.length_16B, name = ColumnNamePrefix + statisticMonth_FIELDNAME)
@CheckPersist(allowEmpty = false)
private String statisticMonth;
public static final String statisticDate_FIELDNAME = "statisticDate";
@FieldDescribe("统计日期")
@Column( length = JpaObject.length_16B, name = ColumnNamePrefix + statisticDate_FIELDNAME )
@Column(length = JpaObject.length_16B, name = ColumnNamePrefix + statisticDate_FIELDNAME)
@CheckPersist(allowEmpty = false)
private String statisticDate;
public static final String employeeCount_FIELDNAME = "employeeCount";
@FieldDescribe("应出勤人数")
@Column( name = ColumnNamePrefix + employeeCount_FIELDNAME )
@Column(name = ColumnNamePrefix + employeeCount_FIELDNAME)
private Double employeeCount;
public static final String onDutyEmployeeCount_FIELDNAME = "onDutyEmployeeCount";
@FieldDescribe("实际出勤人数")
@Column( name = ColumnNamePrefix + onDutyEmployeeCount_FIELDNAME )
@Column(name = ColumnNamePrefix + onDutyEmployeeCount_FIELDNAME)
private Double onDutyEmployeeCount;
public static final String absenceDayCount_FIELDNAME = "absenceDayCount";
@FieldDescribe("缺勤人数")
@Column( name = ColumnNamePrefix + absenceDayCount_FIELDNAME )
@Column(name = ColumnNamePrefix + absenceDayCount_FIELDNAME)
private Double absenceDayCount;
public static final String onSelfHolidayEmployeeCount_FIELDNAME = "onSelfHolidayEmployeeCount";
@FieldDescribe("休假人数")
@Column( name = ColumnNamePrefix + onSelfHolidayEmployeeCount_FIELDNAME )
@Column(name = ColumnNamePrefix + onSelfHolidayEmployeeCount_FIELDNAME)
private Double onSelfHolidayEmployeeCount;
public static final String onDutyCount_FIELDNAME = "onDutyCount";
@FieldDescribe("签到人数")
@Column( name = ColumnNamePrefix + onDutyCount_FIELDNAME )
@Column(name = ColumnNamePrefix + onDutyCount_FIELDNAME)
private Long onDutyCount;
public static final String offDutyCount_FIELDNAME = "offDutyCount";
@FieldDescribe("签退人数")
@Column( name = ColumnNamePrefix + offDutyCount_FIELDNAME )
@Column(name = ColumnNamePrefix + offDutyCount_FIELDNAME)
private Long offDutyCount;
public static final String lateCount_FIELDNAME = "lateCount";
@FieldDescribe("迟到人数")
@Column( name = ColumnNamePrefix + lateCount_FIELDNAME )
@Column(name = ColumnNamePrefix + lateCount_FIELDNAME)
private Long lateCount;
public static final String leaveEarlyCount_FIELDNAME = "leaveEarlyCount";
@FieldDescribe("早退人数")
@Column( name = ColumnNamePrefix + leaveEarlyCount_FIELDNAME )
@Column(name = ColumnNamePrefix + leaveEarlyCount_FIELDNAME)
private Long leaveEarlyCount;
public static final String lackOfTimeCount_FIELDNAME = "lackOfTimeCount";
@FieldDescribe("工时不足人数")
@Column( name = ColumnNamePrefix + lackOfTimeCount_FIELDNAME )
@Column(name = ColumnNamePrefix + lackOfTimeCount_FIELDNAME)
private Long lackOfTimeCount;
public static final String abNormalDutyCount_FIELDNAME = "abNormalDutyCount";
@FieldDescribe("异常打卡人数")
@Column( name = ColumnNamePrefix + abNormalDutyCount_FIELDNAME )
@Column(name = ColumnNamePrefix + abNormalDutyCount_FIELDNAME)
private Long abNormalDutyCount;
public String getTopUnitName() {
......
......@@ -17,6 +17,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "StatisticTopUnitForMonth", description = "考勤顶层组织按月统计.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.StatisticTopUnitForMonth.table, uniqueConstraints = {
......@@ -44,12 +47,12 @@ public class StatisticTopUnitForMonth extends SliceJpaObject {
public void onPersist() throws Exception {
String topUnitName = null;
if( this.topUnitName != null ) {
if (this.topUnitName != null) {
topUnitName = this.topUnitName.split("@")[0];
}else {
} else {
topUnitName = this.topUnitName;
}
this.setSequence( StringUtils.join(this.statisticYear + this.statisticMonth, topUnitName, this.getId()) );
this.setSequence(StringUtils.join(this.statisticYear + this.statisticMonth, topUnitName, this.getId()));
}
/*
* =============================================================================
......@@ -66,70 +69,71 @@ public class StatisticTopUnitForMonth extends SliceJpaObject {
*/
public static final String topUnitName_FIELDNAME = "topUnitName";
@FieldDescribe("顶层组织名称")
@Column( length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix + topUnitName_FIELDNAME )
@Column(length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix
+ topUnitName_FIELDNAME)
@CheckPersist(allowEmpty = false)
private String topUnitName;
public static final String statisticYear_FIELDNAME = "statisticYear";
@FieldDescribe("统计年份")
@Column( length = JpaObject.length_16B, name = ColumnNamePrefix + statisticYear_FIELDNAME )
@Column(length = JpaObject.length_16B, name = ColumnNamePrefix + statisticYear_FIELDNAME)
@CheckPersist(allowEmpty = false)
private String statisticYear;
public static final String statisticMonth_FIELDNAME = "statisticMonth";
@FieldDescribe("统计月份")
@Column( length = JpaObject.length_16B, name = ColumnNamePrefix + statisticMonth_FIELDNAME )
@Column(length = JpaObject.length_16B, name = ColumnNamePrefix + statisticMonth_FIELDNAME)
@CheckPersist(allowEmpty = false)
private String statisticMonth;
public static final String employeeCount_FIELDNAME = "employeeCount";
@FieldDescribe("应出勤人天数")
@Column( name = ColumnNamePrefix + employeeCount_FIELDNAME )
@Column(name = ColumnNamePrefix + employeeCount_FIELDNAME)
private Double employeeCount;
public static final String onDutyEmployeeCount_FIELDNAME = "onDutyEmployeeCount";
@FieldDescribe("实际出勤人天数")
@Column( name = ColumnNamePrefix + onDutyEmployeeCount_FIELDNAME )
@Column(name = ColumnNamePrefix + onDutyEmployeeCount_FIELDNAME)
private Double onDutyEmployeeCount;
public static final String absenceDayCount_FIELDNAME = "absenceDayCount";
@FieldDescribe("缺勤人天数")
@Column( name = ColumnNamePrefix + absenceDayCount_FIELDNAME )
@Column(name = ColumnNamePrefix + absenceDayCount_FIELDNAME)
private Double absenceDayCount;
public static final String onSelfHolidayCount_FIELDNAME = "onSelfHolidayCount";
@FieldDescribe("休假人天数")
@Column( name = ColumnNamePrefix + onSelfHolidayCount_FIELDNAME )
@Column(name = ColumnNamePrefix + onSelfHolidayCount_FIELDNAME)
private Double onSelfHolidayCount;
public static final String onDutyCount_FIELDNAME = "onDutyCount";
@FieldDescribe("签到人数")
@Column( name = ColumnNamePrefix + onDutyCount_FIELDNAME )
@Column(name = ColumnNamePrefix + onDutyCount_FIELDNAME)
private Long onDutyCount;
public static final String offDutyCount_FIELDNAME = "offDutyCount";
@FieldDescribe("签退人数")
@Column( name = ColumnNamePrefix + offDutyCount_FIELDNAME )
@Column(name = ColumnNamePrefix + offDutyCount_FIELDNAME)
private Long offDutyCount;
public static final String lateCount_FIELDNAME = "lateCount";
@FieldDescribe("迟到人数")
@Column( name = ColumnNamePrefix + lateCount_FIELDNAME )
@Column(name = ColumnNamePrefix + lateCount_FIELDNAME)
private Long lateCount;
public static final String leaveEarlyCount_FIELDNAME = "leaveEarlyCount";
@FieldDescribe("早退人数")
@Column( name = ColumnNamePrefix + leaveEarlyCount_FIELDNAME )
@Column(name = ColumnNamePrefix + leaveEarlyCount_FIELDNAME)
private Long leaveEarlyCount;
public static final String lackOfTimeCount_FIELDNAME = "lackOfTimeCount";
@FieldDescribe("工时不足人次")
@Column( name = ColumnNamePrefix + lackOfTimeCount_FIELDNAME )
@Column(name = ColumnNamePrefix + lackOfTimeCount_FIELDNAME)
private Long lackOfTimeCount;
public static final String abNormalDutyCount_FIELDNAME = "abNormalDutyCount";
@FieldDescribe("异常打卡人次")
@Column( name = ColumnNamePrefix + abNormalDutyCount_FIELDNAME )
@Column(name = ColumnNamePrefix + abNormalDutyCount_FIELDNAME)
private Long abNormalDutyCount;
public String getTopUnitName() {
......
......@@ -17,6 +17,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "StatisticUnitForDay", description = "考勤顶层组织按天统计.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.StatisticUnitForDay.table, uniqueConstraints = {
......
......@@ -17,6 +17,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "StatisticUnitForDay", description = "考勤顶层组织按月统计.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.StatisticUnitForMonth.table, uniqueConstraints = {
......@@ -91,76 +94,78 @@ public class StatisticUnitForMonth extends SliceJpaObject {
*/
public static final String unitName_FIELDNAME = "unitName";
@FieldDescribe("组织名称")
@Column( length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix + unitName_FIELDNAME )
@Column(length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix
+ unitName_FIELDNAME)
@CheckPersist(allowEmpty = false)
private String unitName;
public static final String topUnitName_FIELDNAME = "topUnitName";
@FieldDescribe("顶层组织名称")
@Column( length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix + topUnitName_FIELDNAME )
@Column(length = AbstractPersistenceProperties.organization_name_length, name = ColumnNamePrefix
+ topUnitName_FIELDNAME)
@CheckPersist(allowEmpty = false)
private String topUnitName;
public static final String statisticYear_FIELDNAME = "statisticYear";
@FieldDescribe("统计年份")
@Column( length = JpaObject.length_16B, name = ColumnNamePrefix + statisticYear_FIELDNAME )
@Column(length = JpaObject.length_16B, name = ColumnNamePrefix + statisticYear_FIELDNAME)
@CheckPersist(allowEmpty = false)
private String statisticYear;
public static final String statisticMonth_FIELDNAME = "statisticMonth";
@FieldDescribe("统计月份")
@Column( length = JpaObject.length_16B, name = ColumnNamePrefix + statisticMonth_FIELDNAME )
@Column(length = JpaObject.length_16B, name = ColumnNamePrefix + statisticMonth_FIELDNAME)
@CheckPersist(allowEmpty = false)
private String statisticMonth;
public static final String employeeCount_FIELDNAME = "employeeCount";
@FieldDescribe("应出勤人数")
@Column( name = ColumnNamePrefix + employeeCount_FIELDNAME )
@Column(name = ColumnNamePrefix + employeeCount_FIELDNAME)
private Double employeeCount;
public static final String onDutyEmployeeCount_FIELDNAME = "onDutyEmployeeCount";
@FieldDescribe("实际出勤人数")
@Column( name = ColumnNamePrefix + onDutyEmployeeCount_FIELDNAME )
@Column(name = ColumnNamePrefix + onDutyEmployeeCount_FIELDNAME)
private Double onDutyEmployeeCount;
public static final String absenceDayCount_FIELDNAME = "absenceDayCount";
@FieldDescribe("缺勤人天数")
@Column( name = ColumnNamePrefix + absenceDayCount_FIELDNAME )
@Column(name = ColumnNamePrefix + absenceDayCount_FIELDNAME)
private Double absenceDayCount;
public static final String onSelfHolidayCount_FIELDNAME = "onSelfHolidayCount";
@FieldDescribe("休假人天数")
@Column( name = ColumnNamePrefix + onSelfHolidayCount_FIELDNAME )
@Column(name = ColumnNamePrefix + onSelfHolidayCount_FIELDNAME)
private Double onSelfHolidayCount;
public static final String onDutyCount_FIELDNAME = "onDutyCount";
@FieldDescribe("签到人数")
@Column( name = ColumnNamePrefix + onDutyCount_FIELDNAME )
@Column(name = ColumnNamePrefix + onDutyCount_FIELDNAME)
private Long onDutyCount;
public static final String offDutyCount_FIELDNAME = "offDutyCount";
@FieldDescribe("签退人数")
@Column( name = ColumnNamePrefix + offDutyCount_FIELDNAME )
@Column(name = ColumnNamePrefix + offDutyCount_FIELDNAME)
private Long offDutyCount;
public static final String lateCount_FIELDNAME = "lateCount";
@FieldDescribe("迟到人数")
@Column( name = ColumnNamePrefix + lateCount_FIELDNAME )
@Column(name = ColumnNamePrefix + lateCount_FIELDNAME)
private Long lateCount;
public static final String leaveEarlyCount_FIELDNAME = "leaveEarlyCount";
@FieldDescribe("早退人数")
@Column( name = ColumnNamePrefix + leaveEarlyCount_FIELDNAME )
@Column(name = ColumnNamePrefix + leaveEarlyCount_FIELDNAME)
private Long leaveEarlyCount;
public static final String lackOfTimeCount_FIELDNAME = "lackOfTimeCount";
@FieldDescribe("工时不足人次")
@Column( name = ColumnNamePrefix + lackOfTimeCount_FIELDNAME )
@Column(name = ColumnNamePrefix + lackOfTimeCount_FIELDNAME)
private Long lackOfTimeCount;
public static final String abNormalDutyCount_FIELDNAME = "abNormalDutyCount";
@FieldDescribe("异常打卡人数")
@Column( name = ColumnNamePrefix + abNormalDutyCount_FIELDNAME )
@Column(name = ColumnNamePrefix + abNormalDutyCount_FIELDNAME)
private Long abNormalDutyCount;
public String getUnitName() {
......
......@@ -16,11 +16,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
/**
* 系统配置信息管理实体类
*
* @author LIYI
*/
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "BBSConfigSetting", description = "论坛配置.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.BBSConfigSetting.table, uniqueConstraints = {
......
......@@ -28,11 +28,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
/**
* 论坛信息表
*
* @author LIYI
*/
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "BBSForumInfo", description = "论坛信息.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.BBSForumInfo.table, uniqueConstraints = {
......
......@@ -16,11 +16,14 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 系统操作日志信息表
*
* @author LIYI
*/
@Schema(name = "BBSOperationRecord", description = "论坛操作日志.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.BBSOperationRecord.table, uniqueConstraints = {
......
......@@ -16,11 +16,15 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 论坛权限信息表
*
* @author LIYI
*/
@Schema(name = "BBSPermissionInfo", description = "论坛权限信息.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.BBSPermissionInfo.table, uniqueConstraints = {
......
......@@ -16,11 +16,14 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 论坛权限角色绑定关系表
*
* @author LIYI
*/
@Schema(name = "BBSPermissionRole", description = "论坛权限角色绑定关系.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.BBSPermissionRole.table, uniqueConstraints = {
......
......@@ -19,11 +19,14 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 主题信息表
*
* @author LIYI
*/
@Schema(name = "BBSReplyInfo", description = "论坛权限角色绑定关系.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.BBSReplyInfo.table, uniqueConstraints = {
......
......@@ -16,11 +16,14 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 论坛角色信息表
*
* @author LIYI
*/
@Schema(name = "BBSRoleInfo", description = "论坛角色信息.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.BBSRoleInfo.table, uniqueConstraints = {
......
......@@ -28,11 +28,14 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 版块信息表
*
* @author LIYI
*/
@Schema(name = "BBSSectionInfo", description = "论坛版块信息.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.BBSSectionInfo.table, uniqueConstraints = {
......
......@@ -5,6 +5,9 @@ import com.x.base.core.entity.SliceJpaObject;
import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
import org.apache.openjpa.persistence.jdbc.Index;
import javax.persistence.*;
......@@ -16,6 +19,7 @@ import java.util.Date;
* @author sword
* @date 2022/05/20 10:53
**/
@Schema(name = "BBSShutup", description = "论坛禁言人员.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.BBSShutup.table, uniqueConstraints = {
......
......@@ -26,9 +26,12 @@ import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import com.x.base.core.project.tools.DateTools;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 附件信息管理表
*/
@Schema(name = "BBSSubjectAttachment", description = "论坛附件信息.")
@ContainerEntity(dumpSize = 5, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.BBSSubjectAttachment.table, uniqueConstraints = {
......
......@@ -17,11 +17,14 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 主题信息表
*
* @author LIYI
*/
@Schema(name = "BBSSubjectContent", description = "论坛主题.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.BBSSubjectContent.table, uniqueConstraints = {
......
......@@ -28,11 +28,14 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 主题信息表
*
* @author LIYI
*/
@Schema(name = "BBSSubjectInfo", description = "论坛主题信息.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.BBSSubjectInfo.table, uniqueConstraints = {
......
......@@ -19,11 +19,14 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 主题投票结果表
*
* @author LIYI
*/
@Schema(name = "BBSSubjectVoteResult", description = "论坛投票结果.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.BBSSubjectVoteResult.table, uniqueConstraints = {
......
......@@ -23,11 +23,14 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 论坛用户信息表
*
* @author LIYI
*/
@Schema(name = "BBSUserInfo", description = "论坛用户信息.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.BBSUserInfo.table, uniqueConstraints = {
......
......@@ -16,11 +16,14 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 论坛角色人员信息表
*
* @author LIYI
*/
@Schema(name = "BBSUserRole", description = "论坛角色人员信息.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.BBSUserRole.table, uniqueConstraints = {
......
......@@ -16,11 +16,14 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 投票选项信息表
*
* @author LIYI
*/
@Schema(name = "BBSVoteOption", description = "论坛投票选项信息.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.BBSVoteOption.table, uniqueConstraints = {
......
......@@ -16,11 +16,14 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 投票选项组信息表
*
* @author LIYI
*/
@Schema(name = "BBSVoteOptionGroup", description = "论坛投票选项组信息.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.BBSVoteOptionGroup.table, uniqueConstraints = {
......
......@@ -16,11 +16,14 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 用户投票记录
*
* @author LIYI
*/
@Schema(name = "BBSVoteRecord", description = "论坛用户投票记录.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.BBSVoteRecord.table, uniqueConstraints = {
......
......@@ -26,12 +26,15 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 日历信息
*
* @author O2LEE
*
*/
@Schema(name = "Calendar", description = "日程日历信息.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.Calendar.table, uniqueConstraints = {
......
......@@ -31,6 +31,7 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
import net.fortuna.ical4j.model.DateList;
import net.fortuna.ical4j.model.Recur;
import net.fortuna.ical4j.model.parameter.Value;
......@@ -42,6 +43,7 @@ import net.fortuna.ical4j.model.property.ExDate;
* @author O2LEE
*
*/
@Schema(name = "Calendar_Event", description = "日程事件信息.")
@SuppressWarnings("rawtypes")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
......
......@@ -21,6 +21,8 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 日程事件超长LOB信息
* 如果事件COMMENT超过70个字符时,使用LOB字段进行存储,在COMMENT中使用'CLOB'来标记,在COMMENTID里指定其记录引用
......@@ -28,6 +30,7 @@ import com.x.base.core.project.annotation.FieldDescribe;
* @author O2LEE
*
*/
@Schema(name = "Calendar_EventComment", description = "日程事件长信息.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.Calendar_EventComment.table, uniqueConstraints = {
......
......@@ -35,6 +35,7 @@ import com.x.base.core.project.tools.ListTools;
import com.x.calendar.core.tools.DateOperation;
import com.x.calendar.core.tools.LogUtil;
import io.swagger.v3.oas.annotations.media.Schema;
import net.fortuna.ical4j.model.DateList;
import net.fortuna.ical4j.model.DateTime;
import net.fortuna.ical4j.model.Recur;
......@@ -49,6 +50,7 @@ import net.fortuna.ical4j.model.property.ExDate;
* @author O2LEE
*
*/
@Schema(name = "Calendar_EventRepeatMaster", description = "日程重复日程宿主信息.")
@SuppressWarnings("rawtypes")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
......
......@@ -16,12 +16,15 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 日程管理设置
*
* @author O2LEE
*
*/
@Schema(name = "Calendar_Setting", description = "日程管理设置.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.Calendar_Setting.table, uniqueConstraints = {
......
......@@ -16,12 +16,15 @@ import com.x.base.core.entity.SliceJpaObject;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 日程管理设置(文本数据)
*
* @author O2LEE
*
*/
@Schema(name = "Calendar_SettingLobValue", description = "日程管理设置文本数据.")
@ContainerEntity(dumpSize = 1000, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.Calendar_SettingLobValue.table, uniqueConstraints = {
......
......@@ -31,12 +31,15 @@ import com.x.base.core.entity.annotation.Flag;
import com.x.base.core.project.annotation.FieldDescribe;
import com.x.base.core.project.tools.ListTools;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 栏目信息
*
* @author O2LEE
*
*/
@Schema(name = "AppInfo", description = "内容管理栏目信息.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.AppInfo.table, uniqueConstraints = {
......
......@@ -18,12 +18,15 @@ import com.x.base.core.entity.SliceJpaObject;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 内容管理栏目配置支持信息
* 内容管理栏目配置信息
*
* @author O2LEE
*
*/
@Schema(name = "AppInfoConfig", description = "内容管理栏目配置信息.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.AppInfoConfig.table, uniqueConstraints = {
......
......@@ -16,10 +16,13 @@ import com.x.base.core.entity.SliceJpaObject;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 内容管理应用目录分类扩展信息
*
*/
@Schema(name = "AppInfoConfig", description = "内容管理目录分类信息.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.CategoryExt.table, uniqueConstraints = {
......
......@@ -31,12 +31,15 @@ import com.x.base.core.entity.annotation.Flag;
import com.x.base.core.project.annotation.FieldDescribe;
import com.x.base.core.project.tools.ListTools;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 内容管理栏目目录分类信息
*
* @author O2LEE
*
*/
@Schema(name = "CategoryInfo", description = "内容管理目录分类信息.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.CategoryInfo.table, uniqueConstraints = {
......
......@@ -14,9 +14,12 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 数据指处理,比如修改栏目名称引起的所有分类 和文档别名需要修改
*/
@Schema(name = "CmsBatchOperation", description = "内容管理数据指处理.")
@Entity
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Table(name = PersistenceProperties.CmsBatchOperation.table, uniqueConstraints = {
......
......@@ -6,6 +6,9 @@ import com.x.base.core.entity.SliceJpaObject;
import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
import org.apache.commons.lang3.StringUtils;
import org.apache.openjpa.persistence.Persistent;
import org.apache.openjpa.persistence.PersistentCollection;
......@@ -24,6 +27,7 @@ import java.util.List;
* @author O2LEE
*
*/
@Schema(name = "Document", description = "内容管理文档.")
@Entity
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Table(name = PersistenceProperties.Document.table, uniqueConstraints = {
......
......@@ -16,12 +16,15 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 文档、评论点赞
*
* @author O2LEE
*
*/
@Schema(name = "DocumentCommend", description = "内容管理文档评论.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.DocumentCommend.table, uniqueConstraints = {
......
......@@ -16,12 +16,15 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 文档评论点赞
*
* @author O2LEE
*
*/
@Schema(name = "DocumentCommentCommend", description = "内容管理文档评论点赞.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.DocumentCommentCommend.table, uniqueConstraints = {
......
......@@ -17,9 +17,12 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 信息评论内容表
*/
@Schema(name = "DocumentCommentCommend", description = "内容管理文档评论内容.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.DocumentCommentContent.table, uniqueConstraints = {
......
......@@ -16,9 +16,12 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 信息评论表
*/
@Schema(name = "DocumentCommentInfo", description = "内容管理信息评论.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.DocumentCommentInfo.table, uniqueConstraints = {
......
......@@ -20,10 +20,13 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 内容管理日志信息表
*
*/
@Schema(name = "DocumentViewRecord", description = "内容管理日志信息.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.DocumentViewRecord.table, uniqueConstraints = {
......
......@@ -35,10 +35,9 @@ import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import com.x.base.core.project.tools.DateTools;
/**
* 内容管理应用目录分类信息
*
*/
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "FileInfo", description = "内容管理文件信息.")
@ContainerEntity(dumpSize = 5, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.FileInfo.table, uniqueConstraints = {
......@@ -523,7 +522,7 @@ public class FileInfo extends StorageObject {
}
@Override
public Long getLength() {
public Long getLength() {
return length;
}
......
......@@ -16,10 +16,13 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 内容管理日志信息表
*
*/
@Schema(name = "Log", description = "内容管理日志信息.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.Log.table, uniqueConstraints = {
......
......@@ -21,12 +21,15 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* 文档发布消息提醒信息表
*
* @author O2LEE
*
*/
@Schema(name = "ReadRemind", description = "内容管理文档发布消息提醒信息.")
@Entity
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Table(name = PersistenceProperties.ReadRemind.table, uniqueConstraints = {
......
......@@ -22,6 +22,9 @@ import com.x.base.core.entity.annotation.CheckPersist;
import com.x.base.core.entity.annotation.ContainerEntity;
import com.x.base.core.project.annotation.FieldDescribe;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "Review", description = "内容管理权限.")
@Entity
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Table(name = PersistenceProperties.Review.table, uniqueConstraints = {
......
......@@ -22,6 +22,9 @@ import com.x.base.core.project.annotation.FieldDescribe;
import com.x.cms.core.entity.AppInfo;
import com.x.cms.core.entity.PersistenceProperties;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(name = "AppDict", description = "内容管理字典.")
@ContainerEntity(dumpSize = 200, type = ContainerEntity.Type.content, reference = ContainerEntity.Reference.strong)
@Entity
@Table(name = PersistenceProperties.Element.AppDict.table, uniqueConstraints = {
......
package com.x.program.center.jaxrs.config;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;
import org.apache.commons.collections4.list.TreeList;
import com.x.base.core.project.bean.NameValuePair;
import com.x.base.core.project.config.Config;
import com.x.base.core.project.http.ActionResult;
import com.x.base.core.project.http.EffectivePerson;
import com.x.base.core.project.logger.Logger;
import com.x.base.core.project.logger.LoggerFactory;
import io.swagger.v3.oas.annotations.media.Schema;
public class ActionListEntity extends BaseAction {
private static final Logger LOGGER = LoggerFactory.getLogger(ActionListEntity.class);
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson) throws Exception {
LOGGER.debug("execute:{}.", effectivePerson::getDistinguishedName);
ActionResult<List<Wo>> result = new ActionResult<>();
@SuppressWarnings("unchecked")
List<Wo> wos = ((Map<String, List<String>>) Config.resource(Config.RESOURCE_CONTAINERENTITIES)).values()
.stream().reduce(new TreeList<>(), (o, v) -> {
o.addAll(v);
return o;
}).stream().distinct().sorted().map(mapper).collect(Collectors.toList());
result.setData(wos);
return result;
}
private Function<String, Wo> mapper = s -> {
Wo wo = new Wo();
wo.setValue(s);
try {
Class<?> clz = Class.forName(s);
Schema schema = clz.getAnnotation(Schema.class);
if (null != schema) {
wo.setName(schema.description());
}
} catch (ClassNotFoundException e) {
LOGGER.error(e);
}
return wo;
};
public static class Wo extends NameValuePair {
private static final long serialVersionUID = 1L;
}
}
package com.x.program.center.jaxrs.config;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
......@@ -296,7 +298,7 @@ public class ConfigAction extends StandardJaxrsAction {
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
@Consumes(MediaType.APPLICATION_JSON)
public void openRuntimeConfig(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request,
JsonElement jsonElement) {
JsonElement jsonElement) {
EffectivePerson effectivePerson = this.effectivePerson(request);
ActionResult<ActionOpenRuntimeConfig.Wo> result = new ActionResult<>();
try {
......@@ -380,4 +382,21 @@ public class ConfigAction extends StandardJaxrsAction {
asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result, jsonElement));
}
@JaxrsMethodDescribe(value = "获取所有配置文件信息", action = ActionListEntity.class)
@GET
@Path("list/entity")
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
@Consumes(MediaType.APPLICATION_JSON)
public void listEntity(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request) {
EffectivePerson effectivePerson = this.effectivePerson(request);
ActionResult<List<ActionListEntity.Wo>> result = new ActionResult<>();
try {
result = new ActionListEntity().execute(effectivePerson);
} catch (Exception e) {
e.printStackTrace();
result.error(e);
}
asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册