| | |
| | | |
| | | int updateVocsName(String table, String id, String vocsName); |
| | | |
| | | SuYuan700 selectSuYuan700ById(String id, String time); |
| | | SuYuan700 selectSuYuan700ById(@Param("id") String id, @Param("time") String time); |
| | | } |
| | |
| | | package com.yssh.entity; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | |
| | | private Long id; |
| | | |
| | | @ApiModelProperty(value = "溯源ID") |
| | | private String su_yuan_id; |
| | | private String suYuanId; |
| | | |
| | | @ApiModelProperty(value = "地址1") |
| | | private String addr1; |
| | |
| | | private Double y3; |
| | | |
| | | @ApiModelProperty(value = "时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | public SuYuan700() { |
| | |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getSu_yuan_id() { |
| | | return su_yuan_id; |
| | | public String getSuYuanId() { |
| | | return suYuanId; |
| | | } |
| | | |
| | | public void setSu_yuan_id(String su_yuan_id) { |
| | | this.su_yuan_id = su_yuan_id; |
| | | public void setSuYuanId(String suYuanId) { |
| | | this.suYuanId = suYuanId; |
| | | } |
| | | |
| | | public String getAddr1() { |
| | |
| | | |
| | | @Override |
| | | public SuYuan700 selectSuYuan700ById(String id, Date date) { |
| | | String time = DateUtils.getYyyyMmDdHhMmSs(date); |
| | | id = id.substring(0, id.lastIndexOf("_") + 1) + "0"; |
| | | String time = DateUtils.getYyyyMmDdHhMmSs(date).substring(0, 13) + ":00:00"; |
| | | |
| | | return null; |
| | | return suYuanMapper.selectSuYuan700ById(id, time); |
| | | } |
| | | } |
| | |
| | | ORDER BY value DESC |
| | | LIMIT 1 |
| | | </select> |
| | | |
| | | <select id="selectSuYuan700ById" resultType="com.yssh.entity.SuYuan700"> |
| | | select * from suyuan_700 |
| | | where su_yuan_id = #{id} and create_time = #{time} |
| | | limit 1; |
| | | </select> |
| | | |
| | | <select id="getTemporary" resultMap="TemporaryResult"> |
| | | SELECT x, y, z, u, v, w, format(c, 2) "c" |