删除无用代码

This commit is contained in:
liuchengqian 2023-03-01 17:52:01 +08:00
parent cf72330320
commit 1b8ed7f033
4 changed files with 4 additions and 75 deletions

View File

@ -26,8 +26,8 @@ import static com.xkrs.utils.HttpClientUtils.sendHttpsGet;
*/ */
@RestController @RestController
@RequestMapping(value = "/gaode") @RequestMapping(value = "/gaode")
public class GaodeApiController { public class GaoDeApiController {
private static final Logger log = LoggerFactory.getLogger(GaodeApiController.class); private static final Logger log = LoggerFactory.getLogger(GaoDeApiController.class);
Locale locale = LocaleContextHolder.getLocale(); Locale locale = LocaleContextHolder.getLocale();
@RequestMapping(value = "/weather", method = RequestMethod.GET) @RequestMapping(value = "/weather", method = RequestMethod.GET)

View File

@ -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> {
}

View File

@ -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;
}
}

View File

@ -13,7 +13,7 @@ public class LandEntity {
*/ */
@Id @Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "city_seq_gen") @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; private Integer id;
/** /**
@ -48,9 +48,6 @@ public class LandEntity {
@Override @Override
public String toString() { public String toString() {
return "LandEntity{" + return "LandEntity{" + "id=" + id + ", landName='" + landName + '\'' + '}';
"id=" + id +
", landName='" + landName + '\'' +
'}';
} }
} }