Merge branch 'test' of http://git.estsh.com/i3-IMPP/i3plus-pojo into test
commit
2c55439d4a
@ -0,0 +1,55 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.bean;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import org.hibernate.annotations.DynamicInsert;
|
||||||
|
import org.hibernate.annotations.DynamicUpdate;
|
||||||
|
|
||||||
|
import javax.persistence.*;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: wangjie
|
||||||
|
* @CreateDate: 2019/12/4 1:28 下午
|
||||||
|
* @Description:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Inheritance(strategy = InheritanceType.JOINED)
|
||||||
|
@Table(name = "ANDON_FILE")
|
||||||
|
@Api("文件表")
|
||||||
|
public class AndonFile extends BaseBean implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 5743291150478737944L;
|
||||||
|
|
||||||
|
@Column(name = "FILE_NAME")
|
||||||
|
@ApiParam("文件名称")
|
||||||
|
private String fileName;
|
||||||
|
|
||||||
|
@Column(name = "FILE_URL")
|
||||||
|
@ApiParam("文件URL")
|
||||||
|
private String fileUrl;
|
||||||
|
|
||||||
|
@Column(name = "GROUP_NAME")
|
||||||
|
@ApiParam("组名")
|
||||||
|
private String groupName;
|
||||||
|
|
||||||
|
@Column(name = "FILE_ORIGIN_NAME")
|
||||||
|
@ApiParam("文件原名")
|
||||||
|
private String fileOriginName;
|
||||||
|
|
||||||
|
@Column(name = "FILE_SIZE")
|
||||||
|
@ApiParam("文件大小")
|
||||||
|
private String fileSize;
|
||||||
|
|
||||||
|
@Column(name = "FILE_TYPE")
|
||||||
|
@ApiParam("文件类型名称")
|
||||||
|
private String fileType;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,50 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.bean;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import org.hibernate.annotations.DynamicInsert;
|
||||||
|
import org.hibernate.annotations.DynamicUpdate;
|
||||||
|
|
||||||
|
import javax.persistence.*;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: wangjie
|
||||||
|
* @CreateDate: 2019/7/30 9:30 AM
|
||||||
|
* @Description:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Inheritance(strategy = InheritanceType.JOINED)
|
||||||
|
@Table(name = "ANDON_MODULE_EXCEL_MANAGE", indexes = {
|
||||||
|
@Index(columnList = "MODULE_CODE"),
|
||||||
|
@Index(columnList = "MODULE_NAME")
|
||||||
|
})
|
||||||
|
@Api("模块EXCEL管理表")
|
||||||
|
public class AndonModuleExcelManage extends BaseBean implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -4174331010179941394L;
|
||||||
|
|
||||||
|
@Column(name = "MODULE_CODE")
|
||||||
|
@ApiParam("模块代码")
|
||||||
|
private String moduleCode;
|
||||||
|
|
||||||
|
@Column(name = "MODULE_NAME")
|
||||||
|
@ApiParam("模块名称")
|
||||||
|
private String moduleName;
|
||||||
|
|
||||||
|
@Column(name = "FILE_ID")
|
||||||
|
@ApiParam("文件id")
|
||||||
|
private Long fileId;
|
||||||
|
|
||||||
|
@Transient
|
||||||
|
@ApiParam("文件URL")
|
||||||
|
private String fileUrl;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,68 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.model;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author wangjie
|
||||||
|
* @version 1.0
|
||||||
|
* @date 2021/1/15 15:32
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@ApiModel("模块EXCEL管理")
|
||||||
|
public class AndonConfigModel implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -3904799282814930138L;
|
||||||
|
|
||||||
|
@ApiParam("id")
|
||||||
|
private String idStr;
|
||||||
|
|
||||||
|
@ApiParam("id")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@ApiParam(value ="名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
@ApiParam(value ="参数代码")
|
||||||
|
private String configCode;
|
||||||
|
|
||||||
|
@ApiParam(value ="参数描述")
|
||||||
|
private String configDescription;
|
||||||
|
|
||||||
|
@ApiParam(value ="参数键")
|
||||||
|
private String configKey;
|
||||||
|
|
||||||
|
@ApiParam(value ="参数键描述")
|
||||||
|
private String configKeyName;
|
||||||
|
|
||||||
|
@ApiParam(value ="参数值类型")
|
||||||
|
private String configValueType;
|
||||||
|
|
||||||
|
@ApiParam(value ="参数值类型描述")
|
||||||
|
private String configValueTypeName;
|
||||||
|
|
||||||
|
@ApiParam(value ="参数值")
|
||||||
|
private String configValue;
|
||||||
|
|
||||||
|
@ApiParam(value ="参数值描述")
|
||||||
|
private String configValueDesc;
|
||||||
|
|
||||||
|
@ApiParam("组织代码")
|
||||||
|
private String organizeCode;
|
||||||
|
|
||||||
|
@ApiParam("创建用户")
|
||||||
|
private String createUser;
|
||||||
|
|
||||||
|
@ApiParam("创建日期")
|
||||||
|
private String createDatetime;
|
||||||
|
|
||||||
|
@ApiParam("修改人")
|
||||||
|
private String modifyUser;
|
||||||
|
|
||||||
|
@ApiParam("修改日期")
|
||||||
|
private String modifyDatetime;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,73 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.model;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author wangjie
|
||||||
|
* @version 1.0
|
||||||
|
* @date 2021/1/15 15:32
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@ApiModel("模块EXCEL管理")
|
||||||
|
public class AndonModuleExcelManageModel implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 5632288300819137538L;
|
||||||
|
|
||||||
|
@ApiParam("id")
|
||||||
|
private String idStr;
|
||||||
|
|
||||||
|
@ApiParam("id")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@ApiParam("模块代码")
|
||||||
|
private String moduleCode;
|
||||||
|
|
||||||
|
@ApiParam("模块名称")
|
||||||
|
private String moduleName;
|
||||||
|
|
||||||
|
@ApiParam("文件ID")
|
||||||
|
private Long fileId;
|
||||||
|
|
||||||
|
@ApiParam("文件URL")
|
||||||
|
private String fileUrl;
|
||||||
|
|
||||||
|
@ApiParam("文件原名")
|
||||||
|
private String fileOriginName;
|
||||||
|
|
||||||
|
@ApiParam("组织代码")
|
||||||
|
private String organizeCode;
|
||||||
|
|
||||||
|
@ApiParam("创建用户")
|
||||||
|
private String createUser;
|
||||||
|
|
||||||
|
@ApiParam("创建日期")
|
||||||
|
private String createDatetime;
|
||||||
|
|
||||||
|
@ApiParam("修改人")
|
||||||
|
private String modifyUser;
|
||||||
|
|
||||||
|
@ApiParam("修改日期")
|
||||||
|
private String modifyDatetime;
|
||||||
|
|
||||||
|
public AndonModuleExcelManageModel() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public AndonModuleExcelManageModel(Long id, String moduleCode, String moduleName, Long fileId, String fileUrl, String fileOriginName,
|
||||||
|
String organizeCode, String createUser, String createDatetime, String modifyUser, String modifyDatetime) {
|
||||||
|
this.id = id;
|
||||||
|
this.moduleCode = moduleCode;
|
||||||
|
this.moduleName = moduleName;
|
||||||
|
this.fileId = fileId;
|
||||||
|
this.fileUrl = fileUrl;
|
||||||
|
this.fileOriginName = fileOriginName;
|
||||||
|
this.organizeCode = organizeCode;
|
||||||
|
this.createUser = createUser;
|
||||||
|
this.createDatetime = createDatetime;
|
||||||
|
this.modifyUser = modifyUser;
|
||||||
|
this.modifyDatetime = modifyDatetime;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,35 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.model;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: wangjie
|
||||||
|
* @CreateDate: 2019/8/21 9:19 AM
|
||||||
|
* @Description:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
@Api("andon导入异常结果model")
|
||||||
|
public class ExcelImportErrorModel implements Serializable {
|
||||||
|
|
||||||
|
@ApiParam("错误的行号")
|
||||||
|
private int rowNum;
|
||||||
|
|
||||||
|
@ApiParam("错误数量")
|
||||||
|
private int errorNum;
|
||||||
|
|
||||||
|
@ApiParam("错误列号")
|
||||||
|
private String cellNum;
|
||||||
|
|
||||||
|
@ApiParam("错误描述")
|
||||||
|
private String errorInfo;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,44 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.model;
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: wangjie
|
||||||
|
* @CreateDate: 2019/8/21 9:19 AM
|
||||||
|
* @Description:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
@Api("andon导入结果model")
|
||||||
|
public class ExcelImportResultModel<T> implements Serializable {
|
||||||
|
|
||||||
|
@ApiParam("结果")
|
||||||
|
private boolean result;
|
||||||
|
|
||||||
|
@ApiParam("成功行数量")
|
||||||
|
private int successRowNum;
|
||||||
|
|
||||||
|
@ApiParam("失败行数量")
|
||||||
|
private int failRowNum;
|
||||||
|
|
||||||
|
@ApiParam("错误信息集合")
|
||||||
|
private List<ExcelImportErrorModel> excelImportErrorModels;
|
||||||
|
|
||||||
|
@ApiParam("错误的行号")
|
||||||
|
private String errorRows;
|
||||||
|
|
||||||
|
@ApiParam("导入数据集合")
|
||||||
|
private List<T> excelList;
|
||||||
|
|
||||||
|
@ApiParam("导入进度")
|
||||||
|
private String importSpeed;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.andon.bean.AndonFile;
|
||||||
|
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : wangjie
|
||||||
|
* @CreateDate : 2019-07-30
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Repository
|
||||||
|
public interface IAndonFileRepository extends BaseRepository<AndonFile, Long> {
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.andon.bean.AndonModuleExcelManage;
|
||||||
|
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author wangjie
|
||||||
|
* @version 1.0
|
||||||
|
* @date 2021/1/29 15:02
|
||||||
|
**/
|
||||||
|
@Repository
|
||||||
|
public interface IAndonModuleExcelManageRepository extends BaseRepository<AndonModuleExcelManage, Long> {
|
||||||
|
}
|
Loading…
Reference in New Issue