diff --git a/src/main/java/com/shxy/i2/dao/Data_YxDao.java b/src/main/java/com/shxy/i2/dao/Data_YxDao.java new file mode 100644 index 0000000..20c2873 --- /dev/null +++ b/src/main/java/com/shxy/i2/dao/Data_YxDao.java @@ -0,0 +1,17 @@ +package com.shxy.i2.dao; + +import com.shxy.i2.dto.Data_YxlDto; +import com.shxy.i2.entity.Data_Yx; +import org.apache.ibatis.annotations.Param; + +import java.math.BigInteger; +import java.util.List; + +public interface Data_YxDao { + + + List selectByPrimaryKey(@Param("maxid") BigInteger maxid); + + + int updateByPrimaryKey(Data_Yx record); +} \ No newline at end of file diff --git a/src/main/java/com/shxy/i2/dao/Upload_checkDao.java b/src/main/java/com/shxy/i2/dao/Upload_checkDao.java new file mode 100644 index 0000000..b5f7aed --- /dev/null +++ b/src/main/java/com/shxy/i2/dao/Upload_checkDao.java @@ -0,0 +1,17 @@ +package com.shxy.i2.dao; + +import com.shxy.i2.entity.Upload_check; + +public interface Upload_checkDao { + int deleteByPrimaryKey(String checkType); + + int insert(Upload_check record); + + int insertSelective(Upload_check record); + + Upload_check selectByPrimaryKey(String checkType); + + int updateByPrimaryKeySelective(Upload_check record); + + int updateByPrimaryKey(Upload_check record); +} \ No newline at end of file diff --git a/src/main/java/com/shxy/i2/entity/Data_Yx.java b/src/main/java/com/shxy/i2/entity/Data_Yx.java new file mode 100644 index 0000000..4459f63 --- /dev/null +++ b/src/main/java/com/shxy/i2/entity/Data_Yx.java @@ -0,0 +1,20 @@ +package com.shxy.i2.entity; + +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +@Data +public class Data_Yx implements Serializable { + private Long id; + + private Integer sadr; + + private Date dTime; + + private Integer ival; + + private static final long serialVersionUID = 1L; + +} \ No newline at end of file diff --git a/src/main/java/com/shxy/i2/entity/Upload_check.java b/src/main/java/com/shxy/i2/entity/Upload_check.java new file mode 100644 index 0000000..e55d339 --- /dev/null +++ b/src/main/java/com/shxy/i2/entity/Upload_check.java @@ -0,0 +1,19 @@ +package com.shxy.i2.entity; + +import lombok.Data; + +import java.io.Serializable; +import java.math.BigInteger; +import java.util.Date; + +@Data +public class Upload_check implements Serializable { + private String checkType; + + private BigInteger value; + + private Date updateTime; + + private static final long serialVersionUID = 1L; + +} \ No newline at end of file diff --git a/src/main/resources/mappers/Data_YxDao.xml b/src/main/resources/mappers/Data_YxDao.xml new file mode 100644 index 0000000..3c26150 --- /dev/null +++ b/src/main/resources/mappers/Data_YxDao.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + sadr, d_time, ival,field,sensor_code,equipment_id,table_name,phase + + + \ No newline at end of file diff --git a/src/main/resources/mappers/Upload_checkDao.xml b/src/main/resources/mappers/Upload_checkDao.xml new file mode 100644 index 0000000..eab90ff --- /dev/null +++ b/src/main/resources/mappers/Upload_checkDao.xml @@ -0,0 +1,24 @@ + + + + + + + + + + check_type, value, update_time + + + + update upload_check + set value = #{value,jdbcType=BIGINT}, + update_time = #{updateTime,jdbcType=TIMESTAMP} + where check_type = #{checkType,jdbcType=VARCHAR} + + \ No newline at end of file