删除无用代码
This commit is contained in:
parent
cf72330320
commit
1b8ed7f033
@ -26,8 +26,8 @@ import static com.xkrs.utils.HttpClientUtils.sendHttpsGet;
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping(value = "/gaode")
|
||||
public class GaodeApiController {
|
||||
private static final Logger log = LoggerFactory.getLogger(GaodeApiController.class);
|
||||
public class GaoDeApiController {
|
||||
private static final Logger log = LoggerFactory.getLogger(GaoDeApiController.class);
|
||||
Locale locale = LocaleContextHolder.getLocale();
|
||||
|
||||
@RequestMapping(value = "/weather", method = RequestMethod.GET)
|
@ -1,11 +0,0 @@
|
||||
package com.xkrs.dao;
|
||||
|
||||
import com.xkrs.model.entity.GlobalSettingEntity;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public interface GlobalSettingDao extends JpaRepository<GlobalSettingEntity, Long>, JpaSpecificationExecutor<GlobalSettingEntity> {
|
||||
|
||||
}
|
@ -1,57 +0,0 @@
|
||||
package com.xkrs.model.entity;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 全局配置表
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "global_setting")
|
||||
public class GlobalSettingEntity implements Serializable {
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "global_setting_seq_gen")
|
||||
@SequenceGenerator(name = "global_setting_seq_gen", sequenceName = "global_setting_id_seq", allocationSize = 1)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 全局配置项的键
|
||||
*/
|
||||
private String key;
|
||||
|
||||
/**
|
||||
* 全局配置项的值
|
||||
*/
|
||||
private Long value;
|
||||
|
||||
public GlobalSettingEntity() {
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
public Long getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(Long value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
@ -13,7 +13,7 @@ public class LandEntity {
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "city_seq_gen")
|
||||
@SequenceGenerator(name = "city_seq_gen", sequenceName = "city_id_seq",allocationSize = 1)
|
||||
@SequenceGenerator(name = "city_seq_gen", sequenceName = "city_id_seq", allocationSize = 1)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
@ -48,9 +48,6 @@ public class LandEntity {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "LandEntity{" +
|
||||
"id=" + id +
|
||||
", landName='" + landName + '\'' +
|
||||
'}';
|
||||
return "LandEntity{" + "id=" + id + ", landName='" + landName + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user