5 changed files with 129 additions and 1 deletions
			
			
		- 
					31storeroom/src/main/java/com/storeroom/modules/device/controller/DeviceController.java
- 
					73storeroom/src/main/java/com/storeroom/modules/device/domain/AlarmDeseCaBinetLog.java
- 
					8storeroom/src/main/java/com/storeroom/modules/device/repository/AlarmDeseCaBinetLogRepository.java
- 
					9storeroom/src/main/java/com/storeroom/modules/device/service/DeviceService.java
- 
					9storeroom/src/main/java/com/storeroom/modules/device/service/impl/DeviceImpl.java
| @ -0,0 +1,73 @@ | |||||
|  | package com.storeroom.modules.device.domain; | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | import com.storeroom.base.BaseEntity; | ||||
|  | import io.swagger.annotations.ApiModelProperty; | ||||
|  | import lombok.Getter; | ||||
|  | import lombok.Setter; | ||||
|  | 
 | ||||
|  | import javax.persistence.Column; | ||||
|  | import javax.persistence.Entity; | ||||
|  | import javax.persistence.Id; | ||||
|  | import javax.persistence.Table; | ||||
|  | import javax.validation.constraints.NotNull; | ||||
|  | import java.io.Serializable; | ||||
|  | import java.util.Objects; | ||||
|  | 
 | ||||
|  | @Entity | ||||
|  | @Getter | ||||
|  | @Setter | ||||
|  | @Table(name = "alarm_desecabinet_log") | ||||
|  | public class AlarmDeseCaBinetLog  implements Serializable { | ||||
|  |     @Id | ||||
|  |     @Column(name = "id") | ||||
|  |     @NotNull(groups = BaseEntity.Update.class) | ||||
|  |     @ApiModelProperty(value = "报警信息id", hidden = true) | ||||
|  |     private String id; | ||||
|  | 
 | ||||
|  |     @Column(name = "store_code") | ||||
|  |     @ApiModelProperty(value = "库房代码") | ||||
|  |     private String storeCode; | ||||
|  | 
 | ||||
|  |     @Column(name = "qu_No") | ||||
|  |     @ApiModelProperty(value = "区号") | ||||
|  |     private String QuNo; | ||||
|  | 
 | ||||
|  |     @Column(name = "ui_log_id") | ||||
|  |     @ApiModelProperty(value = "0") | ||||
|  |     private String uiLogID; | ||||
|  | 
 | ||||
|  | 
 | ||||
|  |     @Column(name = "us_log_type") | ||||
|  |     @ApiModelProperty(value = "1") | ||||
|  |     private String usLogType; | ||||
|  | 
 | ||||
|  |     @Column(name = "us_level") | ||||
|  |     @ApiModelProperty(value = "等级:0为操作 1 为报警") | ||||
|  |     private String usLevel; | ||||
|  | 
 | ||||
|  |     @Column(name = "i64Ts") | ||||
|  |     @ApiModelProperty(value = "时间戳") | ||||
|  |     private String i64Ts; | ||||
|  | 
 | ||||
|  |     @Column(name = "c_context") | ||||
|  |     @ApiModelProperty(value = "日志信息") | ||||
|  |     private String cContext; | ||||
|  | 
 | ||||
|  |     @Column(name = "ipicturedata") | ||||
|  |     @ApiModelProperty(value = "图片路径") | ||||
|  |     private String iPicturedata; | ||||
|  | 
 | ||||
|  |     @Override | ||||
|  |     public boolean equals(Object o) { | ||||
|  |         if (this == o) return true; | ||||
|  |         if (o == null || getClass() != o.getClass()) return false; | ||||
|  |         AlarmDeseCaBinetLog that = (AlarmDeseCaBinetLog) o; | ||||
|  |         return Objects.equals(id, that.id) && Objects.equals(storeCode, that.storeCode) && Objects.equals(QuNo, that.QuNo) && Objects.equals(uiLogID, that.uiLogID) && Objects.equals(usLogType, that.usLogType); | ||||
|  |     } | ||||
|  | 
 | ||||
|  |     @Override | ||||
|  |     public int hashCode() { | ||||
|  |         return Objects.hash(id, storeCode, QuNo, uiLogID, usLogType); | ||||
|  |     } | ||||
|  | } | ||||
| @ -0,0 +1,8 @@ | |||||
|  | package com.storeroom.modules.device.repository; | ||||
|  | 
 | ||||
|  | import com.storeroom.modules.device.domain.AlarmDeseCaBinetLog; | ||||
|  | import org.springframework.data.jpa.repository.JpaRepository; | ||||
|  | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; | ||||
|  | 
 | ||||
|  | public interface AlarmDeseCaBinetLogRepository extends JpaRepository<AlarmDeseCaBinetLog, String>, JpaSpecificationExecutor<AlarmDeseCaBinetLog> { | ||||
|  | } | ||||
						Write
						Preview
					
					
					Loading…
					
					Cancel
						Save
					
		Reference in new issue