diff --git a/ant-design-vue-jeecg/src/views/device/ZyDeviceList.vue b/ant-design-vue-jeecg/src/views/device/ZyDeviceList.vue index e030efa2..89c59842 100644 --- a/ant-design-vue-jeecg/src/views/device/ZyDeviceList.vue +++ b/ant-design-vue-jeecg/src/views/device/ZyDeviceList.vue @@ -1,302 +1,307 @@ - - - - \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/device/modules/ZyDeviceForm.vue b/ant-design-vue-jeecg/src/views/device/modules/ZyDeviceForm.vue index 159f626c..714ecd32 100644 --- a/ant-design-vue-jeecg/src/views/device/modules/ZyDeviceForm.vue +++ b/ant-design-vue-jeecg/src/views/device/modules/ZyDeviceForm.vue @@ -1,223 +1,228 @@ - - - \ No newline at end of file diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/device/entity/ZyDevice.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/device/entity/ZyDevice.java index d69da413..f3e00375 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/device/entity/ZyDevice.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/device/entity/ZyDevice.java @@ -1,126 +1,129 @@ -package org.jeecg.modules.device.entity; - -import java.io.Serializable; -import java.io.UnsupportedEncodingException; -import java.util.Date; -import java.math.BigDecimal; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import lombok.Data; -import com.fasterxml.jackson.annotation.JsonFormat; -import org.springframework.format.annotation.DateTimeFormat; -import org.jeecgframework.poi.excel.annotation.Excel; -import org.jeecg.common.aspect.annotation.Dict; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.EqualsAndHashCode; -import lombok.experimental.Accessors; - -/** - * @Description: 设备信息 - * @Author: jeecg-boot - * @Date: 2021-11-11 - * @Version: V1.0 - */ -@Data -@TableName("zy_device") -@Accessors(chain = true) -@EqualsAndHashCode(callSuper = false) -@ApiModel(value="zy_device对象", description="设备信息") -public class ZyDevice implements Serializable { - private static final long serialVersionUID = 1L; - - /**主键*/ - @TableId(type = IdType.ASSIGN_ID) - @ApiModelProperty(value = "主键") - private String id; - /**创建人*/ - @ApiModelProperty(value = "创建人") - private String createBy; - /**创建日期*/ - @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") - @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") - @ApiModelProperty(value = "创建日期") - private Date createTime; - /**更新人*/ - @ApiModelProperty(value = "更新人") - private String updateBy; - /**更新日期*/ - @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") - @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") - @ApiModelProperty(value = "更新日期") - private Date updateTime; - /**所属部门*/ - @ApiModelProperty(value = "所属部门") - @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id") - private String orgCode; - /**设备图片*/ - @Excel(name = "设备图片", width = 15) - @ApiModelProperty(value = "设备图片") - private String img; - /**设备类型*/ -// @Excel(name = "设备类型", width = 15, dictTable = "zy_devicetype", dicText = "name", dicCode = "id") -// @Dict(dictTable = "zy_devicetype", dicText = "name", dicCode = "id") -// @ApiModelProperty(value = "设备类型") -// private String typeid; - /**设备编号*/ - @Excel(name = "设备编号", width = 15) - @ApiModelProperty(value = "设备编号") - private String code; - /**购买时间*/ - @Excel(name = "购买时间", width = 15, format = "yyyy-MM-dd") - @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") - @DateTimeFormat(pattern="yyyy-MM-dd") - @ApiModelProperty(value = "购买时间") - private Date buydate; - /**经办人*/ - @Excel(name = "经办人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username") - @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") - @ApiModelProperty(value = "经办人") - private String agent; - /**存放位置*/ -// @Excel(name = "存放位置", width = 15) -// @ApiModelProperty(value = "存放位置") -// private String adress; - /**设备状态*/ - @Excel(name = "设备状态", width = 15) - @ApiModelProperty(value = "设备状态") - @Dict(dicCode = "devicestatus1") - private String status; - /**二维码*/ - @Excel(name = "二维码", width = 15) - @ApiModelProperty(value = "二维码") - private String qrcode; - /**维护周期*/ - @Excel(name = "维护周期", width = 15) - @ApiModelProperty(value = "维护周期") - private Integer maintenancecycle; - /**管理人*/ - @Excel(name = "管理人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username") - @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") - @ApiModelProperty(value = "管理人") - private String administrator; - /**上次维护时间*/ - @Excel(name = "上次维护时间", width = 15, format = "yyyy-MM-dd") - @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") - @DateTimeFormat(pattern="yyyy-MM-dd") - @ApiModelProperty(value = "上次维护时间") - private Date maintenancedate; - /**3d模型*/ - @Excel(name = "3d模型", width = 15) - @ApiModelProperty(value = "3d模型") - private String img3d; -// @Excel(name = "设备品牌", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username") - @Dict(dictTable = "zy_devicebrand", dicText = "brand", dicCode = "id") - @ApiModelProperty(value = "设备品牌") - private String brandId; - @Dict(dictTable = "zy_devicemodel", dicText = "model", dicCode = "id") - @ApiModelProperty(value = "设备型号") - private String modelId; - @ApiModelProperty(value = "设备类型") - private String typeCode; - - @ApiModelProperty(value = "设备名称") - private String name; -} +package org.jeecg.modules.device.entity; + +import java.io.Serializable; +import java.io.UnsupportedEncodingException; +import java.util.Date; +import java.math.BigDecimal; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.springframework.format.annotation.DateTimeFormat; +import org.jeecgframework.poi.excel.annotation.Excel; +import org.jeecg.common.aspect.annotation.Dict; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * @Description: 设备信息 + * @Author: jeecg-boot + * @Date: 2021-11-11 + * @Version: V1.0 + */ +@Data +@TableName("zy_device") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="zy_device对象", description="设备信息") +public class ZyDevice implements Serializable { + private static final long serialVersionUID = 1L; + + /**主键*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "主键") + private String id; + /**创建人*/ + @ApiModelProperty(value = "创建人") + private String createBy; + /**创建日期*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "创建日期") + private Date createTime; + /**更新人*/ + @ApiModelProperty(value = "更新人") + private String updateBy; + /**更新日期*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "更新日期") + private Date updateTime; + /**所属部门*/ + @ApiModelProperty(value = "所属部门") + @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id") + private String orgCode; + /**设备图片*/ + @Excel(name = "设备图片", width = 15) + @ApiModelProperty(value = "设备图片") + private String img; + /**设备类型*/ +// @Excel(name = "设备类型", width = 15, dictTable = "zy_devicetype", dicText = "name", dicCode = "id") +// @Dict(dictTable = "zy_devicetype", dicText = "name", dicCode = "id") +// @ApiModelProperty(value = "设备类型") +// private String typeid; + /**设备编号*/ + @Excel(name = "设备编号", width = 15) + @ApiModelProperty(value = "设备编号") + private String code; + /**购买时间*/ + @Excel(name = "购买时间", width = 15, format = "yyyy-MM-dd") + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") + @DateTimeFormat(pattern="yyyy-MM-dd") + @ApiModelProperty(value = "购买时间") + private Date buydate; + /**经办人*/ + @Excel(name = "经办人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username") + @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") + @ApiModelProperty(value = "经办人") + private String agent; + /**存放位置*/ +// @Excel(name = "存放位置", width = 15) +// @ApiModelProperty(value = "存放位置") +// private String adress; + /**设备状态*/ + @Excel(name = "设备状态", width = 15) + @ApiModelProperty(value = "设备状态") + @Dict(dicCode = "devicestatus1") + private String status; + /**二维码*/ + @Excel(name = "二维码", width = 15) + @ApiModelProperty(value = "二维码") + private String qrcode; + /**维护周期*/ + @Excel(name = "维护周期", width = 15) + @ApiModelProperty(value = "维护周期") + private Integer maintenancecycle; + /**管理人*/ + @Excel(name = "管理人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username") + @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") + @ApiModelProperty(value = "管理人") + private String administrator; + /**上次维护时间*/ + @Excel(name = "上次维护时间", width = 15, format = "yyyy-MM-dd") + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") + @DateTimeFormat(pattern="yyyy-MM-dd") + @ApiModelProperty(value = "上次维护时间") + private Date maintenancedate; + /**3d模型*/ + @Excel(name = "3d模型", width = 15) + @ApiModelProperty(value = "3d模型") + private String img3d; +// @Excel(name = "设备品牌", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username") + @Dict(dictTable = "zy_devicebrand", dicText = "brand", dicCode = "id") + @ApiModelProperty(value = "设备品牌") + private String brandId; + @Dict(dictTable = "zy_devicemodel", dicText = "model", dicCode = "id") + @ApiModelProperty(value = "设备型号") + private String modelId; + @ApiModelProperty(value = "设备类型") + private String typeCode; + + @ApiModelProperty(value = "设备名称") + private String name; + + @ApiModelProperty(value = "设备日负载") + private Integer val; +}