Browse Source

Merge branch 'master' of http://116.63.33.55/git/nazw

MS-FUUVYHVOEAYJ\Administrator 7 months ago
parent
commit
685d8d8df8
100 changed files with 2918 additions and 19 deletions
  1. 15 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/base/BaseQuery.java
  2. 38 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/base/BusinessException.java
  3. 17 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/base/GlobalExceptionHandler.java
  4. 55 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/controller/ExperienceApplyController.java
  5. 54 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/controller/ParkActivityController.java
  6. 56 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/controller/ParkDataController.java
  7. 57 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/controller/ParkDataDetailsController.java
  8. 56 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/controller/ProxyDemandController.java
  9. 62 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/controller/ReserveOvertimeController.java
  10. 51 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/controller/SellBuildController.java
  11. 68 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/controller/sellLandController.java
  12. 34 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/dao/ExperienceApplyDao.java
  13. 40 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/dao/ParkActivityDao.java
  14. 25 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/dao/ParkDataDao.java
  15. 22 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/dao/ParkDataDetailsDao.java
  16. 32 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/dao/ProxyDemandDao.java
  17. 32 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/dao/ReserveOvertimeDao.java
  18. 36 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/dao/SellBuildDao.java
  19. 41 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/dao/SellLandDao.java
  20. 56 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/entity/ExperienceApply.java
  21. 45 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/entity/ParkActivity.java
  22. 18 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/entity/ParkData.java
  23. 19 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/entity/ParkDataDetails.java
  24. 83 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/entity/ProxyDemand.java
  25. 45 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/entity/ReserveOvertime.java
  26. 127 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/entity/SellBuild.java
  27. 106 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/entity/SellLand.java
  28. 13 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/entity/dtos/ExperienceVerifyDTO.java
  29. 13 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/entity/dtos/OvertimeVerifyDTO.java
  30. 14 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/entity/dtos/ProxyVerifyDTO.java
  31. 15 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/mapper/ParkActivityMapper.java
  32. 6 6
      nngkxxdp/src/main/java/com/example/nngkxxdp/program/controller/GzwController.java
  33. 9 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/query/ParkActivityQuery.java
  34. 9 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/query/SellBuildQuery.java
  35. 9 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/query/SellLandQuery.java
  36. 19 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/query/pageResult.java
  37. 29 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/service/ExperienceApplyService.java
  38. 35 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/service/ParkActivityService.java
  39. 22 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/service/ParkDataDetailsService.java
  40. 25 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/service/ParkDataService.java
  41. 31 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/service/ProxyDemandService.java
  42. 34 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/service/ReserveOvertimeService.java
  43. 31 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/service/SellBuildService.java
  44. 35 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/service/SellLandService.java
  45. 75 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/service/impl/ExperienceApplyServiceImpl.java
  46. 66 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/service/impl/ParkActivityServiceImpl.java
  47. 46 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/service/impl/ParkDataDetailsServiceImpl.java
  48. 53 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/service/impl/ParkDataServiceImpl.java
  49. 80 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/service/impl/ProxyDemandServiceImpl.java
  50. 89 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/service/impl/ReserveOvertimeServiceImpl.java
  51. 60 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/service/impl/SellBuildServiceImpl.java
  52. 73 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/service/impl/SellLandServiceImpl.java
  53. 6 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/util/BaseResult.java
  54. 228 0
      nngkxxdp/src/main/java/com/example/nngkxxdp/util/VerifyCodeUtils.java
  55. 4 3
      nngkxxdp/src/main/resources/application-dev.yml
  56. 3 3
      nngkxxdp/src/main/resources/application-prod.yml
  57. 3 3
      nngkxxdp/src/main/resources/application-test.yml
  58. 2 2
      nngkxxdp/src/main/resources/application-test116.yml
  59. 2 2
      nngkxxdp/src/main/resources/application.yml
  60. 46 0
      nngkxxdp/src/main/resources/mapper/ExperienceApplyDao.xml
  61. 59 0
      nngkxxdp/src/main/resources/mapper/ParkActivityMapper.xml
  62. 43 0
      nngkxxdp/src/main/resources/mapper/ParkDataDao.xml
  63. 38 0
      nngkxxdp/src/main/resources/mapper/ParkDataDetailsDao.xml
  64. 61 0
      nngkxxdp/src/main/resources/mapper/ProxyDemandDao.xml
  65. 53 0
      nngkxxdp/src/main/resources/mapper/ReserveOvertimeDao.xml
  66. 93 0
      nngkxxdp/src/main/resources/mapper/SellBuildDao.xml
  67. 96 0
      nngkxxdp/src/main/resources/mapper/SellLandDao.xml
  68. 0 0
      nngkxxdp/src/main/resources/page/.well-known/pki-validation/fileauth.txt
  69. 0 0
      nngkxxdp/src/main/resources/page/css/dataAll.css
  70. 0 0
      nngkxxdp/src/main/resources/page/css/demo.css
  71. 0 0
      nngkxxdp/src/main/resources/page/css/font/demo.css
  72. 0 0
      nngkxxdp/src/main/resources/page/css/font/demo_index.html
  73. 0 0
      nngkxxdp/src/main/resources/page/css/font/iconfont.css
  74. 0 0
      nngkxxdp/src/main/resources/page/css/font/iconfont.js
  75. 0 0
      nngkxxdp/src/main/resources/page/css/font/iconfont.json
  76. 0 0
      nngkxxdp/src/main/resources/page/css/font/iconfont.ttf
  77. 0 0
      nngkxxdp/src/main/resources/page/css/font/iconfont.woff
  78. 0 0
      nngkxxdp/src/main/resources/page/css/font/iconfont.woff2
  79. 0 0
      nngkxxdp/src/main/resources/page/css/idangerous.swiper.3dflow.css
  80. 0 0
      nngkxxdp/src/main/resources/page/css/idangerous.swiper.css
  81. 0 0
      nngkxxdp/src/main/resources/page/css/index.css
  82. 0 0
      nngkxxdp/src/main/resources/page/css/letterBox.css
  83. 0 0
      nngkxxdp/src/main/resources/page/css/login.css
  84. 0 0
      nngkxxdp/src/main/resources/page/css/lr_index.css
  85. 0 0
      nngkxxdp/src/main/resources/page/css/na_index.css
  86. 0 0
      nngkxxdp/src/main/resources/page/css/publicStatis.css
  87. 0 0
      nngkxxdp/src/main/resources/page/css/style.css
  88. 0 0
      nngkxxdp/src/main/resources/page/css/swiper.min.css
  89. 0 0
      nngkxxdp/src/main/resources/page/css/webStatis.css
  90. 0 0
      nngkxxdp/src/main/resources/page/css/welcome.css
  91. 0 0
      nngkxxdp/src/main/resources/page/enter_webStatis.html
  92. 0 0
      nngkxxdp/src/main/resources/page/fbtx1.html
  93. 0 0
      nngkxxdp/src/main/resources/page/fbtx2.html
  94. 0 0
      nngkxxdp/src/main/resources/page/font/iconfont.eot
  95. 0 0
      nngkxxdp/src/main/resources/page/font/iconfont.svg
  96. 0 0
      nngkxxdp/src/main/resources/page/font/iconfont.ttf
  97. 0 0
      nngkxxdp/src/main/resources/page/font/iconfont.woff
  98. 0 0
      nngkxxdp/src/main/resources/page/font/iconfont.woff2
  99. 0 0
      nngkxxdp/src/main/resources/page/font/yszt.TTF
  100. 0 0
      nngkxxdp/src/main/resources/page/fonts/demo.css

+ 15 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/base/BaseQuery.java

@@ -0,0 +1,15 @@
+package com.example.nngkxxdp.base;
+
+import lombok.Data;
+
+@Data
+public class BaseQuery {
+    private Integer currentPage = 1;
+    private Integer pageSize = 10;
+
+
+    public Integer getBegin(){
+        return (this.currentPage-1)*this.pageSize;
+    }
+
+}

+ 38 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/base/BusinessException.java

@@ -0,0 +1,38 @@
+package com.example.nngkxxdp.base;
+
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+public class BusinessException extends RuntimeException{
+    private  int code;
+    //private  String message;
+
+    /**
+     * 各种构造函数,供我们灵活的使用
+     */
+
+    public BusinessException(String message) {
+        super(message);
+    }
+
+    public BusinessException(String message, int code) {
+        super(message);
+        this.code = code;
+    }
+
+
+
+    public int getCode() {
+        return code;
+    }
+
+//    public String getMessage() {
+//        return message;
+//    }
+
+
+}

+ 17 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/base/GlobalExceptionHandler.java

@@ -0,0 +1,17 @@
+package com.example.nngkxxdp.base;
+
+import com.example.nngkxxdp.util.BaseResult;
+import org.springframework.http.HttpStatus;
+import org.springframework.web.bind.annotation.ExceptionHandler;
+import org.springframework.web.bind.annotation.ResponseStatus;
+import org.springframework.web.bind.annotation.RestControllerAdvice;
+
+@RestControllerAdvice
+public class GlobalExceptionHandler {
+
+    @ExceptionHandler(BusinessException.class)
+    @ResponseStatus(HttpStatus.BAD_REQUEST)
+    public BaseResult handleBusinessException(BusinessException e) {
+        return BaseResult.notOk(e.getMessage());
+    }
+}

+ 55 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/controller/ExperienceApplyController.java

@@ -0,0 +1,55 @@
+package com.example.nngkxxdp.controller;
+
+import com.example.nngkxxdp.base.BusinessException;
+import com.example.nngkxxdp.entity.ExperienceApply;
+import com.example.nngkxxdp.entity.dtos.ExperienceVerifyDTO;
+import com.example.nngkxxdp.service.ExperienceApplyService;
+import com.example.nngkxxdp.util.BaseResult;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@RestController
+@RequestMapping("/experienceApply")
+public class ExperienceApplyController {
+    @Autowired
+    private ExperienceApplyService experienceApplyService;
+
+    // 添加或修改
+    @PutMapping
+    public void update(@RequestBody ExperienceApply experienceApply){
+        experienceApplyService.update(experienceApply);
+    }
+
+    //添加
+    @PostMapping()
+    public BaseResult insert(@RequestBody ExperienceVerifyDTO experienceVerifyDTO){
+        try {
+            experienceApplyService.insert(experienceVerifyDTO);
+            return BaseResult.ok();
+        } catch (BusinessException e) {
+            return BaseResult.notOk(e.getMessage());
+        }
+    }
+
+    //查询全部
+    @GetMapping
+    public List<ExperienceApply> findAll(){
+        return experienceApplyService.findAll();
+    }
+
+
+    //查询单条数据
+    @GetMapping("/{id}")
+    public ExperienceApply findById(@PathVariable("id")Long id){
+        return experienceApplyService.findById(id);
+    }
+
+    //删除
+    @DeleteMapping("/{id}")
+    public String deleteById(@PathVariable("id")Long id){
+        experienceApplyService.deleteById(id);
+        return "删除成功";
+    }
+}

+ 54 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/controller/ParkActivityController.java

@@ -0,0 +1,54 @@
+package com.example.nngkxxdp.controller;
+
+import com.example.nngkxxdp.entity.ParkActivity;
+import com.example.nngkxxdp.query.ParkActivityQuery;
+import com.example.nngkxxdp.query.pageResult;
+import com.example.nngkxxdp.service.ParkActivityService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@RestController
+@RequestMapping("/parkActivity")
+public class ParkActivityController {
+    @Autowired
+    private ParkActivityService parkActivityService;
+
+    @GetMapping
+    public List<ParkActivity> findAll() {
+        return parkActivityService.findAll();
+    }
+
+    //根据id查询
+    @GetMapping("/{id}")
+    public ParkActivity findById(@PathVariable("id")Long id) {
+        return parkActivityService.findById(id);
+    }
+
+    //添加或修改
+    @PutMapping
+    public void addOrUpdate(@RequestBody ParkActivity parkActivity) {
+        if( parkActivity.getId()==null){
+            parkActivityService.insert(parkActivity);
+        }else{
+            parkActivityService.update(parkActivity);
+        }
+    }
+
+    //根据id删除数据
+    @DeleteMapping("/{id}")
+    public String deleteById(@PathVariable("id")Long id) {
+        parkActivityService.deleteById(id);
+        return "删除成功";
+    }
+
+    //分页
+    @PostMapping
+    public pageResult<ParkActivity> queryPage(@RequestBody ParkActivityQuery query){
+        return parkActivityService.queryPage(query);
+    }
+
+
+
+}

+ 56 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/controller/ParkDataController.java

@@ -0,0 +1,56 @@
+package com.example.nngkxxdp.controller;
+
+import com.example.nngkxxdp.entity.ParkData;
+import com.example.nngkxxdp.entity.ParkDataDetails;
+import com.example.nngkxxdp.service.ParkDataService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.transaction.annotation.Transactional;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@RestController
+@Transactional
+@RequestMapping("/parkData")
+public class ParkDataController {
+    @Autowired
+    private ParkDataService parkDataService;
+
+    //查询全部
+    @GetMapping
+    public List<ParkData> findAll() {
+        return parkDataService.findAll();
+    }
+
+    //根据id查询
+    @GetMapping("/{id}")
+    public ParkData findById(@PathVariable("id")Long id) {
+        return parkDataService.findById(id);
+    }
+
+    //添加或修改
+    @PutMapping
+    public void addOrUpdate(@RequestBody ParkData parkData) {
+        if( parkData.getId()==null){
+            parkDataService.insert(parkData);
+        }else{
+            parkDataService.update(parkData);
+        }
+    }
+
+    //根据id删除数据
+    @DeleteMapping("/{id}")
+    public String deleteById(@PathVariable("id")Long id) {
+            parkDataService.deleteById(id);
+            return "删除成功";
+    }
+
+    //根据parkdataID查询parkdatadetails数据
+    @GetMapping("/details/{pid}")
+    public List<ParkDataDetails> findByParkDataId(@PathVariable("pid")Long id) {
+        return parkDataService.findDetailsByParkDataId(id);
+    }
+
+
+
+}

+ 57 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/controller/ParkDataDetailsController.java

@@ -0,0 +1,57 @@
+package com.example.nngkxxdp.controller;
+
+import com.example.nngkxxdp.base.Json;
+import com.example.nngkxxdp.entity.ParkDataDetails;
+import com.example.nngkxxdp.service.ParkDataDetailsService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.transaction.annotation.Transactional;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@RestController
+@Transactional
+@RequestMapping("/parkDataDetails")
+public class ParkDataDetailsController {
+    @Autowired
+    private ParkDataDetailsService parkDataDetailsService;
+
+    //查询全部
+    @GetMapping
+    public List<ParkDataDetails> findAll() {
+        return parkDataDetailsService.findAll();
+    }
+
+
+    @GetMapping("/list")
+    public Json findAlls() {
+        return new Json(true, "查询成功", parkDataDetailsService.findAll());
+    }
+
+    //根据id查询
+    @GetMapping("/{id}")
+    public ParkDataDetails findById(@PathVariable("id")Long id) {
+        return parkDataDetailsService.findById(id);
+    }
+
+
+
+    @PutMapping()
+    public void addOrUpdate(@RequestBody ParkDataDetails parkDataDetails) {
+        if (parkDataDetails.getId() == null) {
+            parkDataDetailsService.insert(parkDataDetails);
+        } else {
+            parkDataDetailsService.update(parkDataDetails);
+        }
+    }
+
+    //根据id删除数据
+    @DeleteMapping("/{id}")
+    public String deleteById(@PathVariable("id")Long id) {
+            parkDataDetailsService.deleteById(id);
+            return "删除成功";
+    }
+
+
+
+}

+ 56 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/controller/ProxyDemandController.java

@@ -0,0 +1,56 @@
+package com.example.nngkxxdp.controller;
+
+import com.example.nngkxxdp.base.BusinessException;
+import com.example.nngkxxdp.entity.ProxyDemand;
+import com.example.nngkxxdp.entity.dtos.ProxyVerifyDTO;
+import com.example.nngkxxdp.service.ProxyDemandService;
+import com.example.nngkxxdp.util.BaseResult;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@RestController
+@RequestMapping("/proxyDemand")
+public class ProxyDemandController {
+    @Autowired
+    private ProxyDemandService proxyDemandService;
+
+
+    // 添加或修改
+    @PutMapping
+    public void update(@RequestBody ProxyDemand proxyDemand){
+            proxyDemandService.update(proxyDemand);
+    }
+
+    //添加
+    @PostMapping()
+    public BaseResult insert(@RequestBody ProxyVerifyDTO proxyVerifyDTO){
+        try {
+            proxyDemandService.insert(proxyVerifyDTO);
+            return BaseResult.ok();
+        } catch (BusinessException e) {
+            return BaseResult.notOk(e.getMessage());
+        }
+    }
+
+    //查询全部
+    @GetMapping
+    public List<ProxyDemand> findAll(){
+        return proxyDemandService.findAll();
+    }
+
+
+    //查询单条数据
+    @GetMapping("/{id}")
+    public ProxyDemand findById(@PathVariable("id")Long id){
+        return proxyDemandService.findById(id);
+    }
+
+    //删除
+    @DeleteMapping("/{id}")
+    public String deleteById(@PathVariable("id")Long id){
+        proxyDemandService.deleteById(id);
+        return "删除成功";
+    }
+}

+ 62 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/controller/ReserveOvertimeController.java

@@ -0,0 +1,62 @@
+package com.example.nngkxxdp.controller;
+
+import com.example.nngkxxdp.base.BusinessException;
+import com.example.nngkxxdp.entity.ReserveOvertime;
+import com.example.nngkxxdp.entity.dtos.OvertimeVerifyDTO;
+import com.example.nngkxxdp.service.ReserveOvertimeService;
+import com.example.nngkxxdp.util.BaseResult;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@RestController
+@RequestMapping("/reserveOvertime")
+public class ReserveOvertimeController {
+    @Autowired
+    private ReserveOvertimeService reserveOvertimeService;
+
+    // 修改
+    @PutMapping()
+    public void Update(@RequestBody ReserveOvertime reserveOvertime) {
+        reserveOvertimeService.update(reserveOvertime);
+    }
+
+    //添加数据
+    @PostMapping
+    public BaseResult insert(@RequestBody OvertimeVerifyDTO overtimeVerifyDTO) {
+        try {
+            reserveOvertimeService.insert(overtimeVerifyDTO);
+            return BaseResult.ok();
+        } catch (BusinessException e) {
+            return BaseResult.notOk(e.getMessage());
+        }
+    }
+
+    //查询全部
+    @GetMapping
+    public List<ReserveOvertime> findAll() {
+        return reserveOvertimeService.findAll();
+    }
+
+    //查询单条数据
+    @GetMapping("/{id}")
+    public ReserveOvertime findById(@PathVariable("id")Long id){
+        return reserveOvertimeService.findById(id);
+    }
+
+    //删除
+    @DeleteMapping("/{id}")
+    public String deleteById(@PathVariable("id")Long id){
+        reserveOvertimeService.deleteById(id);
+        return "删除成功";
+    }
+
+    //点击获取图形验证码
+    @PostMapping("/code/{key}")
+    public BaseResult getCaptchaCodeKey(@PathVariable("key") String key) {
+        return reserveOvertimeService.verifyCode(key);
+    }
+
+
+}

+ 51 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/controller/SellBuildController.java

@@ -0,0 +1,51 @@
+package com.example.nngkxxdp.controller;
+
+import com.example.nngkxxdp.entity.SellBuild;
+import com.example.nngkxxdp.query.SellBuildQuery;
+import com.example.nngkxxdp.query.pageResult;
+import com.example.nngkxxdp.service.SellBuildService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@RestController
+@RequestMapping("/sellBuild")
+public class SellBuildController {
+    @Autowired
+    private SellBuildService sellBuildService;
+
+    @GetMapping
+    public List<SellBuild> findAll() {
+        return sellBuildService.findAll();
+    }
+
+    //根据id查询
+    @GetMapping("/{id}")
+    public SellBuild findById(@PathVariable("id")Long id) {
+        return sellBuildService.findById(id);
+    }
+
+    //添加或修改
+    @PutMapping
+    public void addOrUpdate(@RequestBody SellBuild sellBuild) {
+        if( sellBuild.getId()==null){
+            sellBuildService.insert(sellBuild);
+        }else{
+            sellBuildService.update(sellBuild);
+        }
+    }
+
+    //根据id删除数据
+    @DeleteMapping("/{id}")
+    public String deleteById(@PathVariable("id")Long id) {
+        sellBuildService.deleteById(id);
+        return "删除成功";
+    }
+    //分页查询
+    @PostMapping
+    public pageResult<SellBuild> queryPage(@RequestBody SellBuildQuery query){
+        return sellBuildService.queryPage(query);
+    }
+
+}

+ 68 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/controller/sellLandController.java

@@ -0,0 +1,68 @@
+package com.example.nngkxxdp.controller;
+
+import cn.hutool.db.PageResult;
+import com.example.nngkxxdp.entity.SellLand;
+import com.example.nngkxxdp.query.SellLandQuery;
+import com.example.nngkxxdp.query.pageResult;
+import com.example.nngkxxdp.service.SellLandService;
+import com.example.nngkxxdp.util.BaseResult;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@RestController
+@RequestMapping("/sellLand")
+public class sellLandController {
+    @Autowired
+    private SellLandService sellLandService;
+
+    @GetMapping
+    public List<SellLand> findAll() {
+        return sellLandService.findAll();
+    }
+
+    //根据id查询
+    @GetMapping("/{id}")
+    public BaseResult findById(@PathVariable("id")Long id) {
+        try {
+            return BaseResult.ok(sellLandService.findById(id));
+        }catch (Exception e){
+            //返回空数组   TODO
+            //return BaseResult.returnArray();
+            return BaseResult.notOk();
+        }
+    }
+
+    //添加或修改
+    @PutMapping
+    public void addOrUpdate(@RequestBody SellLand sellLand) {
+        if( sellLand.getId()==null){
+            sellLandService.insert(sellLand);
+        }else{
+            sellLandService.update(sellLand);
+        }
+    }
+
+    //根据id删除数据
+    @DeleteMapping("/{id}")
+    public String deleteById(@PathVariable("id")Long id) {
+        sellLandService.deleteById(id);
+        return "删除成功";
+    }
+
+    //分页查询
+    @PostMapping
+    public pageResult<SellLand> queryPage(@RequestBody SellLandQuery query){
+        return sellLandService.queryPage(query);
+    }
+
+
+    @GetMapping("/queryPage")
+    public PageResult getEntitiesWithPaging(@RequestParam(value = "pageNum", defaultValue = "1") int pageNum, @RequestParam(value = "pageSize", defaultValue = "10") int pageSize) {
+        return sellLandService.getEntitiesWithPaging(pageNum, pageSize);
+    }
+
+
+
+}

+ 34 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/dao/ExperienceApplyDao.java

@@ -0,0 +1,34 @@
+package com.example.nngkxxdp.dao;
+
+
+import com.example.nngkxxdp.entity.ExperienceApply;
+
+import java.util.List;
+
+/**
+* @author zhao
+* @description 针对表【t_experience_apply】的数据库操作Mapper
+* @createDate 2024-09-12 10:59:20
+* @Entity com.example.nngkxxdp.entity.ExperienceApply
+*/
+public interface ExperienceApplyDao {
+    //查询全部
+    List<ExperienceApply> findAll();
+
+    //根据id查询
+    ExperienceApply findById(Long id);
+
+    //添加
+    void insert(ExperienceApply experienceApply);
+
+    //修改
+    void update(ExperienceApply experienceApply);
+
+    //根据Id删除一条数据
+    void deleteById(Long id);
+
+}
+
+
+
+

+ 40 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/dao/ParkActivityDao.java

@@ -0,0 +1,40 @@
+package com.example.nngkxxdp.dao;
+
+import com.example.nngkxxdp.entity.ParkActivity;
+import com.example.nngkxxdp.query.ParkActivityQuery;
+
+import java.util.List;
+
+/**
+* @author zhao
+* @description 针对表【t_park_activity】的数据库操作Mapper
+* @createDate 2024-09-14 15:51:37
+* @Entity com.example.nngkxxdp.entity.ParkActivity
+*/
+public interface ParkActivityDao {
+    List<ParkActivity> findAll();
+
+    //根据id查询
+    ParkActivity findById(Long id);
+
+    //添加
+    void insert(ParkActivity parkActivity);
+
+    //修改
+    void update(ParkActivity parkActivity);
+
+    //根据Id删除一条数据
+    void deleteById(Long id);
+
+    List<ParkActivity> findByParkId(Long parkId);
+
+    Integer queryCount(ParkActivityQuery query);
+
+    List<ParkActivity> queryData(ParkActivityQuery query);
+
+
+}
+
+
+
+

+ 25 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/dao/ParkDataDao.java

@@ -0,0 +1,25 @@
+package com.example.nngkxxdp.dao;
+
+import com.example.nngkxxdp.entity.ParkData;
+import com.example.nngkxxdp.entity.ParkDataDetails;
+
+import java.util.List;
+
+public interface ParkDataDao {
+    //查询全部
+    List<ParkData> findAll();
+
+    //根据id查询
+    ParkData findById(Long id);
+
+    //添加
+    void insert(ParkData parkData);
+
+    //修改
+    void update(ParkData parkData);
+
+    //根据Id删除一条数据
+    void deleteById(Long id);
+
+    List<ParkDataDetails> findDetailsByParkDataId(Long id);
+}

+ 22 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/dao/ParkDataDetailsDao.java

@@ -0,0 +1,22 @@
+package com.example.nngkxxdp.dao;
+
+import com.example.nngkxxdp.entity.ParkDataDetails;
+
+import java.util.List;
+
+public interface ParkDataDetailsDao {
+    //查询全部
+    List<ParkDataDetails> findAll();
+
+    //根据id查询
+    ParkDataDetails findById(Long  id);
+
+    //添加
+    void insert(ParkDataDetails parkDataDetails);
+
+    //修改
+    void update(ParkDataDetails parkDataDetails);
+
+    //根据Id删除一条数据
+    void deleteById(Long id);
+}

+ 32 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/dao/ProxyDemandDao.java

@@ -0,0 +1,32 @@
+package com.example.nngkxxdp.dao;
+
+import com.example.nngkxxdp.entity.ProxyDemand;
+
+import java.util.List;
+
+/**
+* @author zhao
+* @description 针对表【t_proxy_demand】的数据库操作Mapper
+* @createDate 2024-09-11 22:01:19
+* @Entity com/example/nngkxxdp.entity.ProxyDemand
+*/
+public interface ProxyDemandDao {
+    //查询全部
+    List<ProxyDemand> findAll();
+
+    //根据id查询
+    ProxyDemand findById(Long id);
+
+    //添加
+    void insert(ProxyDemand proxyDemand);
+
+    //修改
+    void update(ProxyDemand proxyDemand);
+
+    //根据Id删除一条数据
+    void deleteById(Long id);
+}
+
+
+
+

+ 32 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/dao/ReserveOvertimeDao.java

@@ -0,0 +1,32 @@
+package com.example.nngkxxdp.dao;
+
+import com.example.nngkxxdp.entity.ReserveOvertime;
+
+import java.util.List;
+
+/**
+* @author zhao
+* @description 针对表【t_reserve_overtime】的数据库操作Mapper
+* @createDate 2024-09-11 11:44:37
+* @Entity com.example.nngkxxdp.entity.ReserveOvertime
+*/
+public interface ReserveOvertimeDao{
+    //查询全部
+    List<ReserveOvertime> findAll();
+
+    //根据id查询
+    ReserveOvertime findById(Long id);
+
+    //添加
+    void insert(ReserveOvertime reserveOvertime);
+
+    //修改
+    void update(ReserveOvertime reserveOvertime);
+
+    //根据Id删除一条数据
+    void deleteById(Long id);
+}
+
+
+
+

+ 36 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/dao/SellBuildDao.java

@@ -0,0 +1,36 @@
+package com.example.nngkxxdp.dao;
+
+import com.example.nngkxxdp.entity.SellBuild;
+import com.example.nngkxxdp.query.SellBuildQuery;
+
+import java.util.List;
+
+/**
+* @author zhao
+* @description 针对表【t_sell_build】的数据库操作Mapper
+* @createDate 2024-09-14 10:17:20
+* @Entity com.example.nngkxxdp.entity.SellBuild
+*/
+public interface SellBuildDao {
+    //查询全部
+    List<SellBuild> findAll();
+
+    //根据id查询
+    SellBuild findById(Long id);
+
+    //添加
+    void insert(SellBuild sellBuild);
+
+    //修改
+    void update(SellBuild sellBuild);
+
+    //根据Id删除一条数据
+    void deleteById(Long id);
+
+    Integer queryCount(SellBuildQuery query);
+    List<SellBuild> queryData(SellBuildQuery query);
+}
+
+
+
+

+ 41 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/dao/SellLandDao.java

@@ -0,0 +1,41 @@
+package com.example.nngkxxdp.dao;
+
+import com.example.nngkxxdp.entity.SellLand;
+import com.example.nngkxxdp.query.SellLandQuery;
+
+import java.util.List;
+
+/**
+* @author zhao
+* @description 针对表【t_sell_land】的数据库操作Mapper
+* @createDate 2024-09-14 10:38:38
+* @Entity com.example.nngkxxdp.entity.SellLand
+*/
+public interface SellLandDao {
+    //查询全部
+    List<SellLand> findAll();
+
+    //根据id查询
+    SellLand findById(Long id);
+
+    //添加
+    void insert(SellLand sellLand);
+
+    //修改
+    void update(SellLand sellLand);
+
+    //根据Id删除一条数据
+    void deleteById(Long id);
+
+    Integer queryCount(SellLandQuery query);
+
+    List<SellLand> queryData(SellLandQuery query);
+
+    List<SellLand> findPagedEntities(int offset, int pageSize);
+
+    long countAll();
+}
+
+
+
+

+ 56 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/entity/ExperienceApply.java

@@ -0,0 +1,56 @@
+package com.example.nngkxxdp.entity;
+
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * 
+ * @TableName t_experience_apply
+ */
+@Data
+public class ExperienceApply implements Serializable {
+    /**
+     * 政务服务体验员报名表id
+     */
+    private Long id;
+
+    /**
+     * 体验员姓名
+     */
+    private String experienceName;
+
+    /**
+     * 体验员年龄
+     */
+    private String experienceAge;
+
+    /**
+     * 体验员单位
+     */
+    private String workunit;
+
+    /**
+     * 体验员职务
+     */
+    private String duty;
+
+    /**
+     * 体验员手机号
+     */
+    private String experiencePhone;
+
+    /**
+     * 办理业务
+     */
+    private String business;
+
+    /**
+     * 创建时间
+     */
+    private Date creatTime;
+
+    private static final long serialVersionUID = 1L;
+}

+ 45 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/entity/ParkActivity.java

@@ -0,0 +1,45 @@
+package com.example.nngkxxdp.entity;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * 
+ * @TableName t_park_activity
+ */
+@Data
+public class ParkActivity implements Serializable {
+    /**
+     * 园区活动表id
+     */
+    private Integer id;
+
+    /**
+     * 大标题
+     */
+    private String title;
+
+    /**
+     * 小标题
+     */
+    private String subtitle;
+
+    /**
+     * 所属园区
+     */
+    private Integer belongPark;
+
+    /**
+     * 备注
+     */
+    private String remark;
+
+    /**
+     * 创建时间
+     */
+    private Date createTime;
+
+    private static final long serialVersionUID = 1L;
+}

+ 18 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/entity/ParkData.java

@@ -0,0 +1,18 @@
+package com.example.nngkxxdp.entity;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+@Data
+public class ParkData implements Serializable {
+    private Long id;
+    private String title;
+    private String subtitle;
+    private String totalArea;
+    private String buildArea;
+    private String industry;
+    private String addr;
+    private Date creatTime;
+}

+ 19 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/entity/ParkDataDetails.java

@@ -0,0 +1,19 @@
+package com.example.nngkxxdp.entity;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+@Data
+public class ParkDataDetails implements Serializable {
+    private Long id;
+    private String title;
+    private String subtitle;
+    private String link;
+    private String logo;
+    private String moduleType;
+    private Date creatTime;
+    private Long parkdataId;
+    private String remarks;
+}

+ 83 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/entity/ProxyDemand.java

@@ -0,0 +1,83 @@
+package com.example.nngkxxdp.entity;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * 
+ * @TableName t_proxy_demand
+ */
+
+@Data
+public class ProxyDemand implements Serializable {
+    /**
+     * 南岸区重庆经开区帮办代办需求表id
+     */
+
+    private Long id;
+
+    /**
+     * 项目单位名称
+     */
+    private String unitName;
+
+    /**
+     * 项目编码(可选)
+     */
+    private String projectCoding;
+
+    /**
+     * 是否重点项目(1:是     0:否)
+     */
+    private Integer keyProject;
+
+    /**
+     * 项目单位地址
+     */
+    private String projectAddr;
+
+    /**
+     * 项目单位负责人姓名
+     */
+    private String chargeName;
+
+    /**
+     * 项目单位负责人联系电话
+     */
+    private String chargePhone;
+
+    /**
+     * 项目单位经办人姓名
+     */
+    private String handlerName;
+
+    /**
+     * 项目单位经办人联系电话
+     */
+    private String handlerPhone;
+
+    /**
+     * 帮办代办姓名
+     */
+    private String proxyName;
+
+    /**
+     * 帮办代办联络人电话
+     */
+    private String proxyPhone;
+
+    /**
+     * 需代办帮办具体注意事项
+     */
+    private String proxyMatters;
+
+    /**
+     * 创建时间
+     */
+    private Date creatTime;
+
+
+    private static final long serialVersionUID = 1L;
+}

+ 45 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/entity/ReserveOvertime.java

@@ -0,0 +1,45 @@
+package com.example.nngkxxdp.entity;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * 
+ * @TableName t_reserve_overtime
+ */
+@Data
+public class ReserveOvertime implements Serializable {
+    /**
+     * 周六预约"加班办"报名表id
+     */
+    private Long id;
+
+    /**
+     * 加班表姓名
+     */
+    private String overtimeName;
+
+    /**
+     * 加班表年龄
+     */
+    private String overtimeAge;
+
+    /**
+     * 加班表手机号
+     */
+    private String overtimePhone;
+
+    /**
+     * 办理业务
+     */
+    private String business;
+
+    /**
+     * 创建时间
+     */
+    private Date creatTime;
+
+    private static final long serialVersionUID = 1L;
+}

+ 127 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/entity/SellBuild.java

@@ -0,0 +1,127 @@
+package com.example.nngkxxdp.entity;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+* 
+* @TableName t_sell_build
+*/
+@Data
+public class SellBuild implements Serializable {
+    private ParkData parkData;
+    /**
+    * 载体出让Id
+    */
+
+    private Long id;
+    /**
+    * 片区
+    */
+
+    private String area;
+    /**
+    * 面积(平方米)
+    */
+
+    private String space;
+    /**
+    * 用途
+    */
+
+    private String application;
+    /**
+    * 载体名称
+    */
+
+    private String carrierName;
+    /**
+    * 副标题
+    */
+
+    private String subtitle;
+    /**
+    * 可用情况
+    */
+
+    private String situationState;
+    /**
+    * 产业模块
+    */
+
+    private String productModule;
+    /**
+    * 所属园区
+    */
+
+    private Long belong;
+    /**
+    * 经纬度
+    */
+
+    private String point;
+    /**
+    * 图片
+    */
+
+    private String imgUrl;
+    /**
+    * 卖点框
+    */
+
+    private String tag;
+    /**
+    * 基础配套设施
+    */
+
+    private String basicConfiguration;
+    /**
+    * 可招商面积(平方米)
+    */
+
+    private String usableArea;
+    /**
+    * 详细地址
+    */
+
+    private String addr;
+    /**
+    * 联系人
+    */
+
+    private String contactName;
+    /**
+    * 联系人电话
+    */
+
+    private String contactPhone;
+    /**
+    * 概况
+    */
+
+    private String introduce;
+    /**
+    * 要素成本
+    */
+
+    private String cost;
+    /**
+    * 入住要求
+    */
+
+    private String checkin;
+    /**
+    * 备注
+    */
+
+    private String remark;
+    /**
+    * 创建时间
+    */
+
+    private Date createTime;
+
+
+}

+ 106 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/entity/SellLand.java

@@ -0,0 +1,106 @@
+package com.example.nngkxxdp.entity;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * 
+ * @TableName t_sell_land
+ */
+@Data
+public class SellLand implements Serializable {
+    /**
+     * 土地出让表Id
+     */
+    private Integer id;
+
+    /**
+     * 土地标号
+     */
+    private String landName;
+
+    /**
+     * 占地面积(亩)
+     */
+    private String landArea;
+
+    /**
+     * 土地用途
+     */
+    private String landFunction;
+
+    /**
+     * 基础配套设施
+     */
+    private String basicConfiguration;
+
+    /**
+     * 可招商面积(平方米)
+     */
+    private String usableArea;
+
+    /**
+     * 详细地址
+     */
+    private String addr;
+
+    /**
+     * 联系人
+     */
+    private String contactName;
+
+    /**
+     * 联系电话
+     */
+    private String contactPhone;
+
+    /**
+     * 地块概况
+     */
+    private String introduce;
+
+    /**
+     * 水价
+     */
+    private String water;
+
+    /**
+     * 电价
+     */
+    private String electricity;
+
+    /**
+     * 天然气价
+     */
+    private String naturalGas;
+
+    /**
+     * 土地成本
+     */
+    private String cost;
+
+    /**
+     * 劳动力成本
+     */
+    private String labour;
+
+    /**
+     * 土地图片
+     */
+    private String imgUrl;
+
+    /**
+     * 创建时间
+     */
+    private Date createTime;
+
+    //备注
+    private String remark;
+    //经纬度
+    private String point;
+
+    private ParkData parkData;
+    private static final long serialVersionUID = 1L;
+}

+ 13 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/entity/dtos/ExperienceVerifyDTO.java

@@ -0,0 +1,13 @@
+package com.example.nngkxxdp.entity.dtos;
+
+import com.example.nngkxxdp.entity.ExperienceApply;
+import lombok.Data;
+
+import javax.validation.constraints.NotBlank;
+@Data
+public class ExperienceVerifyDTO extends ExperienceApply {
+    @NotBlank(message = "验证码不能为空")
+    private String imgKey;
+    @NotBlank(message = "非法请求")
+    private String imgCode;
+}

+ 13 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/entity/dtos/OvertimeVerifyDTO.java

@@ -0,0 +1,13 @@
+package com.example.nngkxxdp.entity.dtos;
+
+import com.example.nngkxxdp.entity.ReserveOvertime;
+import lombok.Data;
+
+import javax.validation.constraints.NotBlank;
+@Data
+public class OvertimeVerifyDTO extends ReserveOvertime {
+    @NotBlank(message = "验证码不能为空")
+    private String imgKey;
+    @NotBlank(message = "非法请求")
+    private String imgCode;
+}

+ 14 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/entity/dtos/ProxyVerifyDTO.java

@@ -0,0 +1,14 @@
+package com.example.nngkxxdp.entity.dtos;
+
+import com.example.nngkxxdp.entity.ProxyDemand;
+import lombok.Data;
+
+import javax.validation.constraints.NotBlank;
+
+@Data
+public class ProxyVerifyDTO extends ProxyDemand {
+    @NotBlank(message = "验证码不能为空")
+    private String imgCode;
+    @NotBlank(message = "非法请求")
+    private String imgKey;
+}

+ 15 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/mapper/ParkActivityMapper.java

@@ -0,0 +1,15 @@
+//package com.example.nngkxxdp.mapper;
+//
+///**
+//* @author zhao
+//* @description 针对表【t_park_activity】的数据库操作Mapper
+//* @createDate 2024-09-14 15:51:37
+//* @Entity com.example.nngkxxdp.entity.ParkActivity
+//*/
+//public interface ParkActivityMapper {
+//
+//}
+//
+//
+//
+//

+ 6 - 6
nngkxxdp/src/main/java/com/example/nngkxxdp/program/controller/GzwController.java

@@ -36,7 +36,7 @@ import java.util.Map;
 public class GzwController {
     @PostMapping("/emptyAreaList")
     public String getAllLeader( Integer page, Integer size){
-        String s = "http://219.152.50.209:81/api/app/asLeaseDispositionIndex/emptyAreaList?page="+page+"&size="+size;
+        String s = "https://219.152.50.209:81/api/app/asLeaseDispositionIndex/emptyAreaList?page="+page+"&size="+size;
         String post = HttpUtil.post(s, new HashMap<>());
         System.out.println(post);
         JSONObject entries = JSONUtil.parseObj(post);
@@ -47,7 +47,7 @@ public class GzwController {
     @PostMapping("/voPage")
     public String voPage(@RequestBody String json){
 
-        String s = "http://219.152.50.209:81/api/app/official/asLeaseDispositionInfo/voPage";
+        String s = "https://219.152.50.209:81/api/app/official/asLeaseDispositionInfo/voPage";
         System.out.println(json);
         String result2 = HttpRequest.post(s)
                 .header("Content-Type","application/json")
@@ -63,14 +63,14 @@ public class GzwController {
 
     @PostMapping("/info")
     public String info(@RequestBody String json){
-        String s = "http://219.152.50.209:81/api/app/official/asLeaseDispositionInfo/getVo";
-        System.out.println(json);
+        String s = "https://219.152.50.209:81/api/app/official/asLeaseDispositionInfo/getVo";
+//        System.out.println(json);
         String result2 = HttpRequest.post(s)
                 .header("Content-Type","application/json")
                 .body(json)
                 .execute().body();
 
-        System.out.println(result2);
+//        System.out.println(result2);
 //        JSONObject entries = JSONUtil.parseObj(post);
 
         return result2 ;
@@ -79,7 +79,7 @@ public class GzwController {
 
     @PostMapping("/contactList")
     public String contactList(Integer page, Integer size){
-        String s = "http://219.152.50.209:81/api/app/asLeaseDispositionIndex/contactList?page="+page+"&size="+size;
+        String s = "https://219.152.50.209:81/api/app/asLeaseDispositionIndex/contactList?page="+page+"&size="+size;
         String post = HttpUtil.post(s, new HashMap<>());
         System.out.println(post);
         JSONObject entries = JSONUtil.parseObj(post);

+ 9 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/query/ParkActivityQuery.java

@@ -0,0 +1,9 @@
+package com.example.nngkxxdp.query;
+
+import com.example.nngkxxdp.base.BaseQuery;
+import lombok.Data;
+
+@Data
+public class ParkActivityQuery extends BaseQuery {
+    private Long parkId;
+}

+ 9 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/query/SellBuildQuery.java

@@ -0,0 +1,9 @@
+package com.example.nngkxxdp.query;
+
+import com.example.nngkxxdp.base.BaseQuery;
+import lombok.Data;
+
+@Data
+public class SellBuildQuery extends BaseQuery {
+    private Long parkId;
+}

+ 9 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/query/SellLandQuery.java

@@ -0,0 +1,9 @@
+package com.example.nngkxxdp.query;
+
+import com.example.nngkxxdp.base.BaseQuery;
+import lombok.Data;
+
+@Data
+public class SellLandQuery extends BaseQuery {
+    private Long parkId;
+}

+ 19 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/query/pageResult.java

@@ -0,0 +1,19 @@
+package com.example.nngkxxdp.query;
+
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.util.List;
+
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+public class pageResult<T>{
+    private Integer totals;
+    private List<T> list;
+
+
+
+
+}

+ 29 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/service/ExperienceApplyService.java

@@ -0,0 +1,29 @@
+package com.example.nngkxxdp.service;
+
+import com.example.nngkxxdp.entity.ExperienceApply;
+import com.example.nngkxxdp.entity.dtos.ExperienceVerifyDTO;
+import com.example.nngkxxdp.util.BaseResult;
+
+import java.util.List;
+
+/**
+* @author zhao
+* @description 针对表【t_experience_apply】的数据库操作Service
+* @createDate 2024-09-12 10:59:20
+*/
+public interface ExperienceApplyService{
+    //查询全部
+    List<ExperienceApply> findAll();
+
+    //根据id查询
+    ExperienceApply findById(Long id);
+
+    //添加
+    BaseResult insert(ExperienceVerifyDTO experienceVerifyDTO);
+
+    //修改
+    void update(ExperienceApply experienceApply);
+
+    //根据Id删除一条数据
+    void deleteById(Long id);
+}

+ 35 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/service/ParkActivityService.java

@@ -0,0 +1,35 @@
+package com.example.nngkxxdp.service;
+
+import com.example.nngkxxdp.entity.ParkActivity;
+import com.example.nngkxxdp.query.ParkActivityQuery;
+import com.example.nngkxxdp.query.pageResult;
+
+import java.util.List;
+
+/**
+* @author zhao
+* @description 针对表【t_park_activity】的数据库操作Service
+* @createDate 2024-09-14 15:51:37
+*/
+public interface ParkActivityService {
+    List<ParkActivity> findAll();
+
+    //根据id查询
+    ParkActivity findById(Long id);
+
+    //添加
+    void insert(ParkActivity parkActivity);
+
+    //修改
+    void update(ParkActivity parkActivity);
+
+    //根据Id删除一条数据
+    void deleteById(Long id);
+
+    //根据园区ID查询
+    List<ParkActivity> findByParkId(Long parkId);
+
+    pageResult<ParkActivity> queryPage(ParkActivityQuery query);
+
+
+}

+ 22 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/service/ParkDataDetailsService.java

@@ -0,0 +1,22 @@
+package com.example.nngkxxdp.service;
+
+import com.example.nngkxxdp.entity.ParkDataDetails;
+
+import java.util.List;
+
+public interface ParkDataDetailsService {
+    //查询全部
+    List<ParkDataDetails> findAll();
+
+    //根据id查询
+    ParkDataDetails findById(Long id);
+
+    //添加
+    void insert(ParkDataDetails parkDataDetails);
+
+    //修改
+    void update(ParkDataDetails parkDataDetails);
+
+    //根据Id删除一条数据
+    void deleteById(Long id);
+}

+ 25 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/service/ParkDataService.java

@@ -0,0 +1,25 @@
+package com.example.nngkxxdp.service;
+
+import com.example.nngkxxdp.entity.ParkData;
+import com.example.nngkxxdp.entity.ParkDataDetails;
+
+import java.util.List;
+
+public interface ParkDataService {
+    //查询全部
+    List<ParkData> findAll();
+
+    //根据id查询
+    ParkData findById(Long id);
+
+    //添加
+    void insert(ParkData parkData);
+
+    //修改
+    void update(ParkData parkData);
+
+    //根据Id删除一条数据
+    void deleteById(Long id);
+
+    List<ParkDataDetails> findDetailsByParkDataId(Long id);
+}

+ 31 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/service/ProxyDemandService.java

@@ -0,0 +1,31 @@
+package com.example.nngkxxdp.service;
+
+
+import com.example.nngkxxdp.entity.ProxyDemand;
+import com.example.nngkxxdp.entity.dtos.ProxyVerifyDTO;
+import com.example.nngkxxdp.util.BaseResult;
+
+import java.util.List;
+
+/**
+* @author zhao
+* @description 针对表【t_proxy_demand】的数据库操作Service
+* @createDate 2024-09-11 22:01:20
+*/
+public interface ProxyDemandService {
+    //查询全部
+    List<ProxyDemand> findAll();
+
+    //根据id查询
+    ProxyDemand findById(Long id);
+
+    //添加
+    BaseResult insert(ProxyVerifyDTO proxyVerifyDTO);
+
+    //修改
+    void update(ProxyDemand proxyDemand);
+
+    //根据Id删除一条数据
+    void deleteById(Long id);
+
+}

+ 34 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/service/ReserveOvertimeService.java

@@ -0,0 +1,34 @@
+package com.example.nngkxxdp.service;
+
+import com.example.nngkxxdp.entity.ReserveOvertime;
+import com.example.nngkxxdp.entity.dtos.OvertimeVerifyDTO;
+import com.example.nngkxxdp.util.BaseResult;
+
+import java.util.List;
+
+/**
+* @author zhao
+* @description 针对表【t_reserve_overtime】的数据库操作Service
+* @createDate 2024-09-11 11:44:37
+*/
+public interface ReserveOvertimeService  {
+    //查询全部
+    List<ReserveOvertime> findAll();
+
+    //根据id查询
+    ReserveOvertime findById(Long id);
+
+    //添加
+    BaseResult insert(OvertimeVerifyDTO overtimeVerifyDTO);
+
+    //修改
+    void update(ReserveOvertime reserveOvertime);
+
+    //根据Id删除一条数据
+    void deleteById(Long id);
+
+
+    BaseResult verifyCode(String key);
+
+
+}

+ 31 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/service/SellBuildService.java

@@ -0,0 +1,31 @@
+package com.example.nngkxxdp.service;
+
+import com.example.nngkxxdp.entity.SellBuild;
+import com.example.nngkxxdp.query.SellBuildQuery;
+import com.example.nngkxxdp.query.pageResult;
+
+import java.util.List;
+
+/**
+* @author zhao
+* @description 针对表【t_sell_build】的数据库操作Service
+* @createDate 2024-09-14 10:17:20
+*/
+public interface SellBuildService {
+    //查询全部
+    List<SellBuild> findAll();
+
+    //根据id查询
+    SellBuild findById(Long id);
+
+    //添加
+    void insert(SellBuild sellBuild);
+
+    //修改
+    void update(SellBuild sellBuild);
+
+    //根据Id删除一条数据
+    void deleteById(Long id);
+
+    pageResult<SellBuild>queryPage(SellBuildQuery query);
+}

+ 35 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/service/SellLandService.java

@@ -0,0 +1,35 @@
+package com.example.nngkxxdp.service;
+
+import cn.hutool.db.PageResult;
+import com.example.nngkxxdp.entity.SellLand;
+import com.example.nngkxxdp.query.SellLandQuery;
+import com.example.nngkxxdp.query.pageResult;
+
+import java.util.List;
+
+/**
+* @author zhao
+* @description 针对表【t_sell_land】的数据库操作Service
+* @createDate 2024-09-14 10:38:38
+*/
+public interface SellLandService{
+    //查询全部
+    List<SellLand> findAll();
+
+    //根据id查询
+    SellLand findById(Long id);
+
+    //添加
+    void insert(SellLand sellLand);
+
+    //修改
+    void update(SellLand sellLand);
+
+    //根据Id删除一条数据
+    void deleteById(Long id);
+    pageResult<SellLand> queryPage(SellLandQuery query);
+
+    PageResult getEntitiesWithPaging(int pageNum, int pageSize);
+
+
+}

+ 75 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/service/impl/ExperienceApplyServiceImpl.java

@@ -0,0 +1,75 @@
+package com.example.nngkxxdp.service.impl;
+
+import com.example.nngkxxdp.base.BusinessException;
+import com.example.nngkxxdp.dao.ExperienceApplyDao;
+import com.example.nngkxxdp.entity.ExperienceApply;
+import com.example.nngkxxdp.entity.dtos.ExperienceVerifyDTO;
+import com.example.nngkxxdp.service.ExperienceApplyService;
+import com.example.nngkxxdp.util.BaseResult;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.data.redis.core.RedisTemplate;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import java.util.Date;
+import java.util.List;
+
+/**
+* @author zhao
+* @description 针对表【t_experience_apply】的数据库操作Service实现
+* @createDate 2024-09-12 10:59:20
+*/
+@Service
+@Transactional
+public class ExperienceApplyServiceImpl implements ExperienceApplyService{
+    @Autowired
+    private ExperienceApplyDao experienceApplyDao;
+    @Autowired
+    private RedisTemplate redisTemplate;
+
+
+    @Override
+    public List<ExperienceApply> findAll() {
+        return experienceApplyDao.findAll();
+    }
+
+    @Override
+    public ExperienceApply findById(Long id) {
+        return experienceApplyDao.findById(id);
+    }
+
+    @Override
+    public BaseResult insert(ExperienceVerifyDTO experienceVerifyDTO) {
+        Object o = redisTemplate.opsForValue().get(experienceVerifyDTO.getImgKey());
+        if(o==null){
+            throw new BusinessException("验证码已过期");
+        }
+        if(!o.toString().equals(experienceVerifyDTO.getImgCode())){
+            throw new BusinessException("验证码错误");
+        }
+        ExperienceApply experienceApply = new ExperienceApply();
+        experienceApply.setCreatTime(new Date());
+        experienceApply.setExperienceName(experienceVerifyDTO.getExperienceName());
+        experienceApply.setExperienceAge(experienceVerifyDTO.getExperienceAge());
+        experienceApply.setWorkunit(experienceVerifyDTO.getWorkunit());
+        experienceApply.setDuty(experienceVerifyDTO.getDuty());
+        experienceApply.setExperiencePhone(experienceVerifyDTO.getExperiencePhone());
+        experienceApply.setBusiness(experienceVerifyDTO.getBusiness());
+        experienceApplyDao.insert(experienceApply);
+        return BaseResult.ok();
+    }
+
+    @Override
+    public void update(ExperienceApply experienceApply) {
+        experienceApplyDao.update(experienceApply);
+    }
+
+    @Override
+    public void deleteById(Long id) {
+        experienceApplyDao.deleteById(id);
+    }
+}
+
+
+
+

+ 66 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/service/impl/ParkActivityServiceImpl.java

@@ -0,0 +1,66 @@
+package com.example.nngkxxdp.service.impl;
+
+import com.example.nngkxxdp.dao.ParkActivityDao;
+import com.example.nngkxxdp.entity.ParkActivity;
+import com.example.nngkxxdp.query.ParkActivityQuery;
+import com.example.nngkxxdp.query.pageResult;
+import com.example.nngkxxdp.service.ParkActivityService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+* @author zhao
+* @description 针对表【t_park_activity】的数据库操作Service实现
+* @createDate 2024-09-14 15:51:37
+*/
+@Service
+public class ParkActivityServiceImpl implements ParkActivityService{
+    @Autowired
+    private ParkActivityDao parkActivityDao;
+
+    @Override
+    public List<ParkActivity> findAll() {
+        return parkActivityDao.findAll();
+    }
+
+    @Override
+    public ParkActivity findById(Long id) {
+        return parkActivityDao.findById(id);
+    }
+
+    @Override
+    public void insert(ParkActivity parkActivity) {
+        parkActivityDao.insert(parkActivity);
+    }
+
+    @Override
+    public void update(ParkActivity parkActivity) {
+        parkActivityDao.update(parkActivity);
+    }
+
+    @Override
+    public void deleteById(Long id) {
+        parkActivityDao.deleteById(id);
+    }
+
+    //根据园区id查询活动信息
+    @Override
+    public List<ParkActivity> findByParkId(Long parkId) {
+        return parkActivityDao.findByParkId(parkId);
+    }
+
+    @Override
+    public pageResult<ParkActivity> queryPage(ParkActivityQuery query) {
+        Integer totals = parkActivityDao.queryCount(query);
+        List<ParkActivity> list = parkActivityDao.queryData(query);
+        return new pageResult<>(totals,list);
+    }
+
+
+}
+
+
+
+

+ 46 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/service/impl/ParkDataDetailsServiceImpl.java

@@ -0,0 +1,46 @@
+package com.example.nngkxxdp.service.impl;
+
+import com.example.nngkxxdp.dao.ParkDataDetailsDao;
+import com.example.nngkxxdp.entity.ParkDataDetails;
+import com.example.nngkxxdp.service.ParkDataDetailsService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import java.util.Date;
+import java.util.List;
+
+@Service
+public class ParkDataDetailsServiceImpl implements ParkDataDetailsService {
+    @Autowired
+    private ParkDataDetailsDao parkDataDetailsDao;
+
+    @Override
+    public List<ParkDataDetails> findAll() {
+        return parkDataDetailsDao.findAll();
+    }
+
+    @Override
+    public ParkDataDetails findById(Long id) {
+        return parkDataDetailsDao.findById(id);
+    }
+
+    @Override
+    @Transactional
+    public void insert(ParkDataDetails parkDataDetails) {
+        parkDataDetails.setCreatTime(new Date());
+        parkDataDetailsDao.insert(parkDataDetails);
+    }
+
+    @Override
+    @Transactional
+    public void update(ParkDataDetails parkDataDetails) {
+        parkDataDetailsDao.update(parkDataDetails);
+    }
+
+    @Override
+    @Transactional
+    public void deleteById(Long id) {
+        parkDataDetailsDao.deleteById(id);
+    }
+}

+ 53 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/service/impl/ParkDataServiceImpl.java

@@ -0,0 +1,53 @@
+package com.example.nngkxxdp.service.impl;
+
+import com.example.nngkxxdp.dao.ParkDataDao;
+import com.example.nngkxxdp.entity.ParkData;
+import com.example.nngkxxdp.entity.ParkDataDetails;
+import com.example.nngkxxdp.service.ParkDataService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import java.util.Date;
+import java.util.List;
+
+
+@Service
+public class ParkDataServiceImpl implements ParkDataService {
+    @Autowired
+    private ParkDataDao parkDataDao;
+
+    @Override
+    public List<ParkData> findAll() {
+         return parkDataDao.findAll();
+    }
+
+    @Override
+    public ParkData findById(Long id) {
+          return parkDataDao.findById(id);
+    }
+
+    @Override
+    @Transactional
+    public void insert(ParkData parkData) {
+        parkData.setCreatTime(new Date());
+        parkDataDao.insert(parkData);
+    }
+
+    @Override
+    @Transactional
+    public void update(ParkData parkData) {
+        parkDataDao.update(parkData);
+    }
+
+    @Override
+    @Transactional
+    public void deleteById(Long id) {
+        parkDataDao.deleteById(id);
+    }
+
+    @Override
+    public List<ParkDataDetails> findDetailsByParkDataId(Long id) {
+        return parkDataDao.findDetailsByParkDataId(id);
+    }
+}

+ 80 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/service/impl/ProxyDemandServiceImpl.java

@@ -0,0 +1,80 @@
+package com.example.nngkxxdp.service.impl;
+
+
+import com.example.nngkxxdp.base.BusinessException;
+import com.example.nngkxxdp.dao.ProxyDemandDao;
+import com.example.nngkxxdp.entity.ProxyDemand;
+import com.example.nngkxxdp.entity.dtos.ProxyVerifyDTO;
+import com.example.nngkxxdp.service.ProxyDemandService;
+import com.example.nngkxxdp.util.BaseResult;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.data.redis.core.RedisTemplate;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import java.util.Date;
+import java.util.List;
+
+/**
+* @author zhao
+* @description 针对表【t_proxy_demand】的数据库操作Service实现
+* @createDate 2024-09-11 22:01:20
+*/
+@Service
+@Transactional
+public class ProxyDemandServiceImpl implements ProxyDemandService {
+    @Autowired
+    private ProxyDemandDao proxyDemandDao;
+    @Autowired
+    private RedisTemplate redisTemplate;
+
+    @Override
+    public List<ProxyDemand> findAll() {
+        return proxyDemandDao.findAll();
+    }
+
+    @Override
+    public ProxyDemand findById(Long id) {
+        return proxyDemandDao.findById(id);
+    }
+
+    @Override
+    public BaseResult insert(ProxyVerifyDTO proxyVerifyDTO) {
+        Object o = redisTemplate.opsForValue().get(proxyVerifyDTO.getImgKey());
+        if(o==null){
+            throw new BusinessException("验证码已过期");
+        }
+        if(!o.toString().equals(proxyVerifyDTO.getImgCode())){
+            throw new BusinessException("验证码错误");
+        }
+        ProxyDemand proxyDemand = new ProxyDemand();
+        proxyDemand.setCreatTime(new Date());
+        proxyDemand.setUnitName(proxyVerifyDTO.getUnitName());
+        proxyDemand.setProjectCoding(proxyVerifyDTO.getProjectCoding());
+        proxyDemand.setKeyProject(proxyVerifyDTO.getKeyProject());
+        proxyDemand.setProjectAddr(proxyVerifyDTO.getProjectAddr());
+        proxyDemand.setChargeName(proxyVerifyDTO.getChargeName());
+        proxyDemand.setChargePhone(proxyVerifyDTO.getChargePhone());
+        proxyDemand.setHandlerName(proxyVerifyDTO.getHandlerName());
+        proxyDemand.setHandlerPhone(proxyVerifyDTO.getHandlerPhone());
+        proxyDemand.setProxyName(proxyVerifyDTO.getProxyName());
+        proxyDemand.setProxyPhone(proxyVerifyDTO.getProxyPhone());
+        proxyDemand.setProxyMatters(proxyVerifyDTO.getProxyMatters());
+        proxyDemandDao.insert(proxyDemand);
+        return BaseResult.ok();
+    }
+
+    @Override
+    public void update(ProxyDemand proxyDemand) {
+        proxyDemandDao.update(proxyDemand);
+    }
+
+    @Override
+    public void deleteById(Long id) {
+        proxyDemandDao.deleteById(id);
+    }
+}
+
+
+
+

+ 89 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/service/impl/ReserveOvertimeServiceImpl.java

@@ -0,0 +1,89 @@
+package com.example.nngkxxdp.service.impl;
+
+import com.example.nngkxxdp.base.BusinessException;
+import com.example.nngkxxdp.dao.ReserveOvertimeDao;
+import com.example.nngkxxdp.entity.ReserveOvertime;
+import com.example.nngkxxdp.entity.dtos.OvertimeVerifyDTO;
+import com.example.nngkxxdp.service.ReserveOvertimeService;
+import com.example.nngkxxdp.util.BaseResult;
+import com.example.nngkxxdp.util.VerifyCodeUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.data.redis.core.RedisTemplate;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import java.util.Date;
+import java.util.List;
+import java.util.concurrent.TimeUnit;
+
+/**
+* @author zhao
+* @description 针对表【t_reserve_overtime】的数据库操作Service实现
+* @createDate 2024-09-11 11:44:37
+*/
+@Service
+@Transactional
+public class ReserveOvertimeServiceImpl implements ReserveOvertimeService {
+    @Autowired
+    private ReserveOvertimeDao reserveOvertimeDao;
+    @Autowired
+    private RedisTemplate redisTemplate;
+
+    @Override
+    public List<ReserveOvertime> findAll() {
+        return reserveOvertimeDao.findAll();
+    }
+
+    @Override
+    public ReserveOvertime findById(Long id) {
+        return reserveOvertimeDao.findById(id);
+    }
+
+    @Override
+    public BaseResult insert(OvertimeVerifyDTO overtimeVerifyDTO) {
+        Object o = redisTemplate.opsForValue().get(overtimeVerifyDTO.getImgKey());
+        if(o==null){
+            throw new BusinessException("验证码已过期");
+        }
+        if(!o.toString().equals(overtimeVerifyDTO.getImgCode())){
+            throw new BusinessException("验证码错误");
+        }
+        ReserveOvertime reserveOvertime = new ReserveOvertime();
+        reserveOvertime.setOvertimeAge(overtimeVerifyDTO.getOvertimeAge());
+        reserveOvertime.setOvertimeName(overtimeVerifyDTO.getOvertimeName());
+        reserveOvertime.setOvertimePhone(overtimeVerifyDTO.getOvertimePhone());
+        reserveOvertime.setBusiness(overtimeVerifyDTO.getBusiness());
+        reserveOvertime.setCreatTime(new Date());
+        reserveOvertimeDao.insert(reserveOvertime);
+        return BaseResult.ok();
+    }
+
+    @Override
+    public void update(ReserveOvertime reserveOvertime) {
+        reserveOvertimeDao.update(reserveOvertime);
+    }
+
+    @Override
+    public void deleteById(Long id) {
+        reserveOvertimeDao.deleteById(id);
+    }
+
+    //获取验证码
+    @Override
+    public BaseResult verifyCode(String key) {
+        // 生成一个四位数的随机数
+        int randomNumber = (int)(Math.random() * 9000) + 1000;
+        //生成图形验证码
+        String imgCode = VerifyCodeUtils.verifyCode(115, 44, String.valueOf(randomNumber));
+        //将随机数存redis  5分钟过期
+        redisTemplate.opsForValue().set(key, String.valueOf(randomNumber), 5, TimeUnit.MINUTES);
+        return BaseResult.ok(imgCode);
+    }
+
+
+
+}
+
+
+
+

+ 60 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/service/impl/SellBuildServiceImpl.java

@@ -0,0 +1,60 @@
+package com.example.nngkxxdp.service.impl;
+
+import com.example.nngkxxdp.dao.SellBuildDao;
+import com.example.nngkxxdp.entity.SellBuild;
+import com.example.nngkxxdp.query.SellBuildQuery;
+import com.example.nngkxxdp.query.pageResult;
+import com.example.nngkxxdp.service.SellBuildService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.Date;
+import java.util.List;
+
+/**
+* @author zhao
+* @description 针对表【t_sell_build】的数据库操作Service实现
+* @createDate 2024-09-14 10:17:20
+*/
+@Service
+public class SellBuildServiceImpl implements SellBuildService{
+    @Autowired
+    private SellBuildDao sellBuildDao;
+
+    @Override
+    public List<SellBuild> findAll() {
+        return sellBuildDao.findAll();
+    }
+
+    @Override
+    public SellBuild findById(Long id) {
+        return sellBuildDao.findById(id);
+    }
+
+    @Override
+    public void insert(SellBuild sellBuild) {
+        sellBuild.setCreateTime(new Date());
+         sellBuildDao.insert(sellBuild);
+    }
+
+    @Override
+    public void update(SellBuild sellBuild) {
+        sellBuildDao.update(sellBuild);
+    }
+
+    @Override
+    public void deleteById(Long id) {
+        sellBuildDao.deleteById(id);
+    }
+
+    @Override
+    public pageResult<SellBuild> queryPage(SellBuildQuery query) {
+        Integer totals = sellBuildDao.queryCount(query);
+        List<SellBuild> list = sellBuildDao.queryData(query);
+        return new pageResult<>(totals,list);
+    }
+}
+
+
+
+

+ 73 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/service/impl/SellLandServiceImpl.java

@@ -0,0 +1,73 @@
+package com.example.nngkxxdp.service.impl;
+
+import cn.hutool.db.PageResult;
+import com.example.nngkxxdp.dao.SellLandDao;
+import com.example.nngkxxdp.entity.SellLand;
+import com.example.nngkxxdp.query.SellLandQuery;
+import com.example.nngkxxdp.query.pageResult;
+import com.example.nngkxxdp.service.SellLandService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.Date;
+import java.util.List;
+
+/**
+* @author zhao
+* @description 针对表【t_sell_land】的数据库操作Service实现
+* @createDate 2024-09-14 10:38:38
+*/
+@Service
+public class SellLandServiceImpl implements SellLandService{
+    @Autowired
+    private SellLandDao sellLandDao;
+
+    @Override
+    public List<SellLand> findAll() {
+        return sellLandDao.findAll();
+    }
+
+    @Override
+    public SellLand findById(Long id) {
+        return sellLandDao.findById(id);
+    }
+
+    @Override
+    public void insert(SellLand sellLand) {
+        sellLand.setCreateTime(new Date());
+        sellLandDao.insert(sellLand);
+    }
+
+    @Override
+    public void update(SellLand sellLand) {
+        sellLandDao.update(sellLand);
+    }
+
+    @Override
+    public void deleteById(Long id) {
+        sellLandDao.deleteById(id);
+    }
+
+
+
+    @Override
+    public pageResult<SellLand> queryPage(SellLandQuery query) {
+        Integer totals = sellLandDao.queryCount(query);
+        List<SellLand> list = sellLandDao.queryData(query);
+        return new pageResult<>(totals,list);
+    }
+
+    @Override
+    public PageResult getEntitiesWithPaging(int pageNum, int pageSize) {
+        int offset = (pageNum - 1) * pageSize;
+        List<SellLand> list = sellLandDao.findPagedEntities(offset, pageSize);
+        long total = sellLandDao.countAll();
+        return new PageResult();
+    }
+
+
+}
+
+
+
+

+ 6 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/util/BaseResult.java

@@ -66,6 +66,12 @@ public class BaseResult implements Serializable {
         return createResult("not_ok", null, "");
     }
 
+    public static BaseResult notOk(String success) {
+        return createResult("not_ok", null, success);
+    }
+
+
+
     private static BaseResult createResult(String result, Object data, String success) {
         BaseResult baseResult = new BaseResult();
         baseResult.setResult(result);

+ 228 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/util/VerifyCodeUtils.java

@@ -0,0 +1,228 @@
+package com.example.nngkxxdp.util;
+
+
+import sun.misc.BASE64Encoder;
+ 
+import javax.imageio.ImageIO;
+import java.awt.*;
+import java.awt.geom.AffineTransform;
+import java.awt.image.BufferedImage;
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+import java.io.OutputStream;
+import java.util.Arrays;
+import java.util.Random;
+ 
+/**
+ * Created by
+ * on 2024/9/11
+ */
+public class VerifyCodeUtils {
+    //使用到Algerian字体,系统里没有的话需要安装字体,字体只显示大写,去掉了1,0,i,o几个容易混淆的字符
+    public static final String VERIFY_CODES = "23456789ABCDEFGHJKLMNPQRSTUVWXYZ";
+    private static Random random = new Random();
+ 
+ 
+    /**
+     * 使用系统默认字符源生成验证码
+     *
+     * @param verifySize 验证码长度
+     * @return
+     */
+    public static String generateVerifyCode(int verifySize) {
+        return generateVerifyCode(verifySize, VERIFY_CODES);
+    }
+ 
+    /**
+     * 使用指定源生成验证码
+     *
+     * @param verifySize 验证码长度
+     * @param sources    验证码字符源
+     * @return
+     */
+    public static String generateVerifyCode(int verifySize, String sources) {
+        if (sources == null || sources.length() == 0) {
+            sources = VERIFY_CODES;
+        }
+        int codesLen = sources.length();
+        Random rand = new Random(System.currentTimeMillis());
+        StringBuilder verifyCode = new StringBuilder(verifySize);
+        for (int i = 0; i < verifySize; i++) {
+            verifyCode.append(sources.charAt(rand.nextInt(codesLen - 1)));
+        }
+        return verifyCode.toString();
+    }
+ 
+    /**
+     * 输出指定验证码图片流
+     *
+     */
+    public static void outputImage(int w, int h, OutputStream os, String code) throws IOException {
+        int verifySize = code.length();
+        BufferedImage image = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);
+        Random rand = new Random();
+        Graphics2D g2 = image.createGraphics();
+        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
+        Color[] colors = new Color[5];
+        Color[] colorSpaces = new Color[]{Color.WHITE, Color.CYAN,
+                Color.GRAY, Color.LIGHT_GRAY, Color.MAGENTA, Color.ORANGE,
+                Color.PINK, Color.YELLOW};
+        float[] fractions = new float[colors.length];
+        for (int i = 0; i < colors.length; i++) {
+            colors[i] = colorSpaces[rand.nextInt(colorSpaces.length)];
+            fractions[i] = rand.nextFloat();
+        }
+        Arrays.sort(fractions);
+ 
+        g2.setColor(Color.GRAY);// 设置边框色
+        g2.fillRect(0, 0, w, h);
+ 
+        Color c = getRandColor(200, 250);
+        g2.setColor(c);// 设置背景色
+        g2.fillRect(0, 2, w, h - 4);
+ 
+        //绘制干扰线
+        Random random = new Random();
+        g2.setColor(getRandColor(160, 200));// 设置线条的颜色
+        for (int i = 0; i < 20; i++) {
+            int x = random.nextInt(w - 1);
+            int y = random.nextInt(h - 1);
+            int xl = random.nextInt(6) + 1;
+            int yl = random.nextInt(12) + 1;
+            g2.drawLine(x, y, x + xl + 40, y + yl + 20);
+        }
+ 
+        // 添加噪点
+        float yawpRate = 0.05f;// 噪声率
+        int area = (int) (yawpRate * w * h);
+        for (int i = 0; i < area; i++) {
+            int x = random.nextInt(w);
+            int y = random.nextInt(h);
+            int rgb = getRandomIntColor();
+            image.setRGB(x, y, rgb);
+        }
+ 
+        shear(g2, w, h, c);// 使图片扭曲
+ 
+        g2.setColor(getRandColor(100, 160));
+        int fontSize = h - 4;
+        Font font = new Font("Algerian", Font.ITALIC, fontSize);
+        g2.setFont(font);
+        char[] chars = code.toCharArray();
+        for (int i = 0; i < verifySize; i++) {
+            AffineTransform affine = new AffineTransform();
+            affine.setToRotation(Math.PI / 4 * rand.nextDouble() * (rand.nextBoolean() ? 1 : -1), (w / verifySize) * i + fontSize / 2, h / 2);
+            g2.setTransform(affine);
+            g2.drawChars(chars, i, 1, ((w - 10) / verifySize) * i + 5, h / 2 + fontSize / 2 - 10);
+        }
+ 
+        g2.dispose();
+        ImageIO.write(image, "jpg", os);
+    }
+ 
+    private static Color getRandColor(int fc, int bc) {
+        if (fc > 255)
+            fc = 255;
+        if (bc > 255)
+            bc = 255;
+        int r = fc + random.nextInt(bc - fc);
+        int g = fc + random.nextInt(bc - fc);
+        int b = fc + random.nextInt(bc - fc);
+        return new Color(r, g, b);
+    }
+ 
+    private static int getRandomIntColor() {
+        int[] rgb = getRandomRgb();
+        int color = 0;
+        for (int c : rgb) {
+            color = color << 8;
+            color = color | c;
+        }
+        return color;
+    }
+ 
+    private static int[] getRandomRgb() {
+        int[] rgb = new int[3];
+        for (int i = 0; i < 3; i++) {
+            rgb[i] = random.nextInt(255);
+        }
+        return rgb;
+    }
+ 
+    private static void shear(Graphics g, int w1, int h1, Color color) {
+        shearX(g, w1, h1, color);
+        shearY(g, w1, h1, color);
+    }
+ 
+    private static void shearX(Graphics g, int w1, int h1, Color color) {
+ 
+        int period = random.nextInt(2);
+ 
+        boolean borderGap = true;
+        int frames = 1;
+        int phase = random.nextInt(2);
+ 
+        for (int i = 0; i < h1; i++) {
+            double d = (double) (period >> 1)
+                    * Math.sin((double) i / (double) period
+                    + (6.2831853071795862D * (double) phase)
+                    / (double) frames);
+            g.copyArea(0, i, w1, 1, (int) d, 0);
+            if (borderGap) {
+                g.setColor(color);
+                g.drawLine((int) d, i, 0, i);
+                g.drawLine((int) d + w1, i, w1, i);
+            }
+        }
+ 
+    }
+ 
+    private static void shearY(Graphics g, int w1, int h1, Color color) {
+ 
+        int period = random.nextInt(40) + 10; // 50;
+ 
+        boolean borderGap = true;
+        int frames = 20;
+        int phase = 7;
+        for (int i = 0; i < w1; i++) {
+            double d = (double) (period >> 1)
+                    * Math.sin((double) i / (double) period
+                    + (6.2831853071795862D * (double) phase)
+                    / (double) frames);
+            g.copyArea(i, 0, 1, h1, 0, (int) d);
+            if (borderGap) {
+                g.setColor(color);
+                g.drawLine(i, (int) d, i, 0);
+                g.drawLine(i, (int) d + h1, i, h1);
+            }
+ 
+        }
+ 
+    }
+ 
+    /**
+     * 获取随机验证码及其加密图片
+     *
+     */
+    public static String verifyCode(int w, int h, String code){
+        try {
+            //base64编码器
+            BASE64Encoder encoder = new BASE64Encoder();
+            //准备输出流
+            ByteArrayOutputStream data = new ByteArrayOutputStream();
+            //使用code生成w宽 h高的图片,并将结果图片存入data流中
+            outputImage(w, h, data, code);
+            //使用base64编码成String
+            return encoder.encode(data.toByteArray());
+        } catch (IOException e) {
+            e.printStackTrace();
+            //throw new BusinessException("生成验证码失败!");
+            throw new RuntimeException("生成验证码失败!");
+        }
+    }
+
+    public static void main(String[] args) throws  Exception{
+        System.out.println(verifyCode(100, 30, "1234"));
+
+    }
+}

+ 4 - 3
nngkxxdp/src/main/resources/application-dev.yml

@@ -14,9 +14,9 @@ spring:
   datasource:
     driver-class-name: com.mysql.cj.jdbc.Driver
     #    本地192.168.1.226
-    url: jdbc:mysql://192.168.1.253:3306/nazw?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
+    url: jdbc:mysql://116.63.33.55:3306/nazw?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
     username: root
-    password: jd@2021
+    password: cqjd2021!
   resources:
     static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${file.path},file:${file.location}
   #  mvc:
@@ -27,8 +27,9 @@ spring:
 #    host: 116.63.49.144
 #    port: 6380
 #    password: '@jvdong_2022'
-    host: 192.168.0.40
+    host: localhost
     port: 6379
+    password: 123456
     jedis:
       pool:
         max-active: 50

+ 3 - 3
nngkxxdp/src/main/resources/application-prod.yml

@@ -19,9 +19,9 @@ spring:
     driver-class-name: com.mysql.cj.jdbc.Driver
 
 #    线上
-    url: jdbc:mysql://localhost:3306/nazw?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
-    username: nanan_hospital
-    password: WArNNbSUVaxM7sB2
+    url: jdbc:mysql://116.63.33.55:3306/nazw?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
+    username: root
+    password: cqjd2021!
   resources:
     static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${file.path},file:${file.location}
 #        url: jdbc:mysql://42.193.98.201:3306/wxdzs?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8

+ 3 - 3
nngkxxdp/src/main/resources/application-test.yml

@@ -2,7 +2,7 @@ server:
   port: 7654
   ssl:
     key-store-password: k5bwkmot
-    key-store: classpath:data.cqna.gov.cn.pfx
+    key-store: classpath:www.cqna.gov.cn/data.pfx
     key-store-type: PKCS12
 http:
   port: 7777
@@ -19,9 +19,9 @@ spring:
     driver-class-name: com.mysql.cj.jdbc.Driver
 
     #    线上
-    url: jdbc:mysql://192.168.1.253:3306/nazw?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
+    url: jdbc:mysql://116.63.33.55:3306/nazw?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
     username: root
-    password: jd@2021
+    password: cqjd2021!
   resources:
     static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${file.path},file:${file.location}
 #        url: jdbc:mysql://42.193.98.201:3306/wxdzs?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8

+ 2 - 2
nngkxxdp/src/main/resources/application-test116.yml

@@ -12,12 +12,12 @@ spring:
   datasource:
     driver-class-name: com.mysql.cj.jdbc.Driver
     #    本地192.168.1.226
-    url: jdbc:mysql://10.110.76.122:3306/nazw?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
+    url: jdbc:mysql://116.63.33.55:3306/nazw?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
     #url: jdbc:mysql://192.168.1.253:3306/nazw?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
     #username: root
     #password: jd@2021
     username: root
-    password: 'Cqnamysql!123'
+    password: cqjd2021!
   resources:
     static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${file.path},file:${file.location}
   #  mvc:

+ 2 - 2
nngkxxdp/src/main/resources/application.yml

@@ -24,9 +24,9 @@ login:
 
 sms:
   # 上升
-  up: http://data.cqna.gov.cn/app/evaluation.html
+  up: http://www.cqna.gov.cn/data/app/evaluation.html
   # 下降
-  down: http://data.cqna.gov.cn/app/evaluation.html
+  down: http://www.cqna.gov.cn/data/app/evaluation.html
   #自定义短信接口
   custom: http://localhost:8081/sms/sendSms
 huaweiAddress:

+ 46 - 0
nngkxxdp/src/main/resources/mapper/ExperienceApplyDao.xml

@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.example.nngkxxdp.dao.ExperienceApplyDao">
+
+    <resultMap id="BaseResultMap" type="com.example.nngkxxdp.entity.ExperienceApply">
+            <id property="id" column="id" jdbcType="INTEGER"/>
+            <result property="experienceName" column="experience_name" jdbcType="VARCHAR"/>
+            <result property="experienceAge" column="experience_age" jdbcType="VARCHAR"/>
+            <result property="workunit" column="workunit" jdbcType="VARCHAR"/>
+            <result property="duty" column="duty" jdbcType="VARCHAR"/>
+            <result property="experiencePhone" column="experience_phone" jdbcType="VARCHAR"/>
+            <result property="business" column="business" jdbcType="VARCHAR"/>
+            <result property="creatTime" column="creat_time" jdbcType="TIMESTAMP"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,experience_name,experience_age,
+        workunit,duty,experience_phone,
+        business,creat_time
+    </sql>
+    <insert id="insert" parameterType="com.example.nngkxxdp.entity.ExperienceApply" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
+        insert into t_experience_apply (experience_name,experience_age,workunit,duty,experience_phone,business,creat_time)
+        values (#{experienceName},#{experienceAge},#{workunit},#{duty},#{experiencePhone},#{business},#{creatTime})
+    </insert>
+    <update id="update">
+        update t_experience_apply
+        set experience_name = #{experienceName},
+            experience_age = #{experienceAge},
+            workunit = #{workunit},
+            duty = #{duty},
+            experience_phone = #{experiencePhone},
+            business = #{business}
+        where id = #{id}
+    </update>
+    <delete id="deleteById">
+        delete from t_experience_apply where id = #{id}
+    </delete>
+    <select id="findAll" resultType="com.example.nngkxxdp.entity.ExperienceApply">
+        select * from t_experience_apply
+    </select>
+    <select id="findById" resultType="com.example.nngkxxdp.entity.ExperienceApply">
+        select * from t_experience_apply where id = #{id}
+    </select>
+</mapper>

+ 59 - 0
nngkxxdp/src/main/resources/mapper/ParkActivityMapper.xml

@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.example.nngkxxdp.dao.ParkActivityDao">
+
+    <resultMap id="BaseResultMap" type="com.example.nngkxxdp.entity.ParkActivity">
+            <id property="id" column="id" jdbcType="INTEGER"/>
+            <result property="title" column="title" jdbcType="VARCHAR"/>
+            <result property="subtitle" column="subtitle" jdbcType="VARCHAR"/>
+            <result property="belongPark" column="belong_park" jdbcType="INTEGER"/>
+            <result property="remark" column="remark" jdbcType="VARCHAR"/>
+            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,title,subtitle,
+        belong_park,remark,create_time
+    </sql>
+    <insert id="insert">
+        insert into t_park_activity(title,subtitle,belong_park,remark,create_time)
+        values(#{title},#{subtitle},#{belongPark},#{remark},#{createTime})
+    </insert>
+    <update id="update">
+        update t_park_activity
+        set title = #{title},
+            subtitle = #{subtitle},
+            belong_park = #{belongPark},
+            remark = #{remark},
+            create_time = #{createTime}
+        where id = #{id}
+    </update>
+    <delete id="deleteById">
+        delete from t_park_activity where id = #{id}
+    </delete>
+    <select id="findAll" resultType="com.example.nngkxxdp.entity.ParkActivity">
+        select * from t_park_activity
+    </select>
+    <select id="findById" resultType="com.example.nngkxxdp.entity.ParkActivity">
+        select * from t_park_activity where id = #{id}
+    </select>
+    <select id="findByParkId" resultType="com.example.nngkxxdp.entity.ParkActivity">
+        select * from t_park_activity where belong_park = #{parkId}
+    </select>
+    <select id="queryCount" resultType="java.lang.Integer">
+        select count(*) from t_park_activity
+            <if test="parkId != null">
+                where belong_park = #{parkId}
+            </if>
+    </select>
+    <select id="queryData" resultType="com.example.nngkxxdp.entity.ParkActivity">
+        select * from t_park_activity
+         <if test="parkId != null">
+            where belong_park = #{parkId}
+        </if>
+        limit #{begin},#{pageSize}
+    </select>
+
+</mapper>

+ 43 - 0
nngkxxdp/src/main/resources/mapper/ParkDataDao.xml

@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.example.nngkxxdp.dao.ParkDataDao">
+
+    <!-- 查询首页全部数据 -->
+    <select id="findAll" resultType="com.example.nngkxxdp.entity.ParkData">
+        select * from t_park_data
+    </select>
+
+    <!-- 根据id查询数据 -->
+    <select id="findById" resultType="com.example.nngkxxdp.entity.ParkData">
+        select * from t_park_data where id = #{id}
+    </select>
+
+    <!--根据parkdataId查询details数据-->
+    <select id="findDetailsByParkDataId" resultType="com.example.nngkxxdp.entity.ParkDataDetails">
+        select * from t_park_data_details where parkdataId = #{parkdataId}
+    </select>
+
+
+    <!-- 添加首页展示数据 -->
+    <insert id="insert" parameterType="com.example.nngkxxdp.entity.ParkData" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
+        insert into t_park_data(title, subtitle, total_area, build_area, industry, addr, creat_time)
+        values (#{title}, #{subtitle}, #{totalArea}, #{buildArea}, #{industry}, #{addr}, #{creatTime})
+    </insert>
+
+    <!-- 更新首页展示数据 -->
+    <update id="update" parameterType="com.example.nngkxxdp.entity.ParkData">
+        update t_park_data
+        set title = #{title},
+            subtitle = #{subtitle},
+            total_area = #{totalArea},
+            build_area = #{buildArea},
+            industry = #{industry},
+            addr = #{addr}
+        where id = #{id}
+    </update>
+
+    <!-- 删除首页展示数据 -->
+    <delete id="deleteById" parameterType="long">
+        delete from t_park_data where id = #{id}
+    </delete>
+</mapper>

+ 38 - 0
nngkxxdp/src/main/resources/mapper/ParkDataDetailsDao.xml

@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.example.nngkxxdp.dao.ParkDataDetailsDao">
+
+    <!-- 查询首页全部数据 -->
+    <select id="findAll" resultType="com.example.nngkxxdp.entity.ParkDataDetails">
+        select * from t_park_data_details
+    </select>
+
+    <!-- 根据id查询数据 -->
+    <select id="findById" resultType="com.example.nngkxxdp.entity.ParkDataDetails">
+        select * from t_park_data_details where id = #{id}
+    </select>
+
+    <!-- 添加首页展示数据 -->
+    <insert id="insert" parameterType="com.example.nngkxxdp.entity.ParkDataDetails" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
+        insert into t_park_data_details (title, subtitle, link, logo, module_type, creat_time, parkdataId, remarks)
+        values (#{title}, #{subtitle}, #{link}, #{logo},  #{moduleType}, #{creatTime}, #{parkdataId}, #{remarks})
+    </insert>
+
+    <!-- 更新首页展示数据 -->
+    <update id="update" parameterType="com.example.nngkxxdp.entity.ParkDataDetails">
+        update t_park_data_details
+        set title = #{title},
+            subtitle = #{subtitle},
+            link = #{link},
+            logo = #{logo},
+            module_type = #{moduleType},
+            parkdataId = #{parkdataId},
+            remarks = #{remarks}
+        where id = #{id}
+    </update>
+
+    <!-- 删除首页展示数据 -->
+    <delete id="deleteById" parameterType="long">
+        delete from t_park_data_details where id = #{id}
+    </delete>
+</mapper>

+ 61 - 0
nngkxxdp/src/main/resources/mapper/ProxyDemandDao.xml

@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.example.nngkxxdp.dao.ProxyDemandDao">
+
+    <resultMap id="BaseResultMap" type="com.example.nngkxxdp.entity.ProxyDemand">
+            <id property="id" column="id" jdbcType="INTEGER"/>
+            <result property="unitName" column="unit_name" jdbcType="VARCHAR"/>
+            <result property="projectCoding" column="project_coding" jdbcType="VARCHAR"/>
+            <result property="keyProject" column="key_project" jdbcType="TINYINT"/>
+            <result property="projectAddr" column="project_addr" jdbcType="VARCHAR"/>
+            <result property="chargeName" column="charge_name" jdbcType="VARCHAR"/>
+            <result property="chargePhone" column="charge_phone" jdbcType="VARCHAR"/>
+            <result property="handlerName" column="handler_name" jdbcType="VARCHAR"/>
+            <result property="handlerPhone" column="handler_phone" jdbcType="VARCHAR"/>
+            <result property="proxyName" column="proxy_name" jdbcType="VARCHAR"/>
+            <result property="proxyPhone" column="proxy_phone" jdbcType="VARCHAR"/>
+            <result property="proxyMatters" column="proxy_matters" jdbcType="VARCHAR"/>
+            <result property="creatTime" column="creat_time" jdbcType="TIMESTAMP"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,unit_name,project_coding,
+        key_project,project_addr,charge_name,
+        charge_phone,handler_name,handler_phone,
+        proxy_name,proxy_phone,proxy_matters,
+        creat_time
+    </sql>
+    <insert id="insert">
+        insert into t_proxy_demand(unit_name,project_coding,key_project,project_addr,charge_name,charge_phone,handler_name,handler_phone,proxy_name,proxy_phone,proxy_matters,creat_time)
+        values(#{unitName},#{projectCoding},#{keyProject},#{projectAddr},#{chargeName},#{chargePhone},#{handlerName},#{handlerPhone},#{proxyName},#{proxyPhone},#{proxyMatters},#{creatTime})
+    </insert>
+    <update id="update">
+        update t_proxy_demand
+        set unit_name = #{unitName},
+            project_coding = #{projectCoding},
+            key_project = #{keyProject},
+            project_addr = #{projectAddr},
+            charge_name = #{chargeName},
+            charge_phone = #{chargePhone},
+            handler_name = #{handlerName},
+            handler_phone = #{handlerPhone},
+            proxy_name = #{proxyName},
+            proxy_phone = #{proxyPhone},
+            proxy_matters = #{proxyMatters}
+        where id = #{id}
+    </update>
+    <delete id="deleteById">
+        delete from t_proxy_demand where id = #{id}
+    </delete>
+
+    <select id="findAll" resultType="com.example.nngkxxdp.entity.ProxyDemand">
+        select *  from t_proxy_demand
+    </select>
+    <select id="findById" resultType="com.example.nngkxxdp.entity.ProxyDemand">
+        select * from t_proxy_demand where id = #{id}
+    </select>
+
+
+</mapper>

+ 53 - 0
nngkxxdp/src/main/resources/mapper/ReserveOvertimeDao.xml

@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.example.nngkxxdp.dao.ReserveOvertimeDao">
+
+    <resultMap id="BaseResultMap" type="com.example.nngkxxdp.entity.ReserveOvertime">
+            <id property="id" column="id" jdbcType="INTEGER"/>
+            <result property="overtimeName" column="overtime_name" jdbcType="VARCHAR"/>
+            <result property="overtimeAge" column="overtime_age" jdbcType="VARCHAR"/>
+            <result property="overtimePhone" column="overtime_phone" jdbcType="VARCHAR"/>
+            <result property="business" column="business" jdbcType="VARCHAR"/>
+            <result property="creatTime" column="creat_time" jdbcType="TIMESTAMP"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,overtime_name,overtime_age,
+        overtime_phone,business,creat_time
+    </sql>
+
+    <!-- 删除-->
+    <delete id="deleteById">
+        delete from t_reserve_overtime where id = #{id}
+    </delete>
+
+
+    <!--查询全部-->
+    <select id="findAll" resultType="com.example.nngkxxdp.entity.ReserveOvertime">
+        select * from t_reserve_overtime
+    </select>
+
+    <!-- 根据id查询-->
+    <select id="findById" resultType="com.example.nngkxxdp.entity.ReserveOvertime">
+        select * from t_reserve_overtime where id = #{id}
+    </select>
+
+    <!-- 添加信息-->
+    <insert id="insert" parameterType="com.example.nngkxxdp.entity.ReserveOvertime" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
+        insert into t_reserve_overtime (overtime_name,overtime_age,overtime_phone,business,creat_time)
+        values (#{overtimeName},#{overtimeAge},#{overtimePhone},#{business},#{creatTime})
+    </insert>
+
+    <!-- 修改信息-->
+    <update id="update" parameterType="com.example.nngkxxdp.entity.ReserveOvertime">
+        update t_reserve_overtime
+        set overtime_name = #{overtimeName},
+            overtime_age = #{overtimeAge},
+            overtime_phone = #{overtimePhone},
+            business = #{business}
+        where id = #{id}
+    </update>
+
+</mapper>

+ 93 - 0
nngkxxdp/src/main/resources/mapper/SellBuildDao.xml

@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.example.nngkxxdp.dao.SellBuildDao">
+
+    <resultMap id="BaseResultMap" type="com.example.nngkxxdp.entity.SellBuild">
+            <id property="id" column="id" jdbcType="INTEGER"/>
+            <result property="area" column="area" jdbcType="VARCHAR"/>
+            <result property="space" column="space" jdbcType="VARCHAR"/>
+            <result property="application" column="application" jdbcType="VARCHAR"/>
+            <result property="carrierName" column="carrier_name" jdbcType="VARCHAR"/>
+            <result property="subtitle" column="subtitle" jdbcType="VARCHAR"/>
+            <result property="situationState" column="situation_state" jdbcType="VARCHAR"/>
+            <result property="productModule" column="product_module" jdbcType="VARCHAR"/>
+            <result property="belong" column="belong" jdbcType="INTEGER"/>
+            <result property="point" column="point" jdbcType="VARCHAR"/>
+            <result property="imgUrl" column="img_url" jdbcType="VARCHAR"/>
+            <result property="tag" column="tag" jdbcType="VARCHAR"/>
+            <result property="basicConfiguration" column="basic_configuration" jdbcType="VARCHAR"/>
+            <result property="usableArea" column="usable_area" jdbcType="VARCHAR"/>
+            <result property="addr" column="addr" jdbcType="VARCHAR"/>
+            <result property="contactName" column="contact_name" jdbcType="VARCHAR"/>
+            <result property="contactPhone" column="contact_phone" jdbcType="VARCHAR"/>
+            <result property="introduce" column="introduce" jdbcType="VARCHAR"/>
+            <result property="cost" column="cost" jdbcType="VARCHAR"/>
+            <result property="checkin" column="checkin" jdbcType="VARCHAR"/>
+            <result property="remark" column="remark" jdbcType="VARCHAR"/>
+            <result property="createTime" column="create_time" jdbcType="VARCHAR"/>
+         <association property="parkData" javaType="com.example.nngkxxdp.entity.ParkData">
+            <result column="title" property="title"/>
+            <result column="id" property="id"/>
+             <result column="industry" property="industry"/>
+            <result column="parkAddr" property="addr"/>
+           </association>
+    </resultMap>
+
+
+
+    <insert id="insert" parameterType="com.example.nngkxxdp.entity.SellBuild" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
+        insert into t_sell_build (area,space,application,carrier_name,subtitle,situation_state,product_module,belong,point,img_url,tag,basic_configuration,usable_area,addr,contact_name,contact_phone,introduce,cost,checkin,remark,create_time)
+        values(#{area},#{space},#{application},#{carrierName},#{subtitle},#{situationState},#{productModule},#{belong},#{point},#{imgUrl},#{tag},#{basicConfiguration},#{usableArea},#{addr},#{contactName},#{contactPhone},#{introduce},#{cost},#{checkin},#{remark},#{createTime})
+    </insert>
+    <update id="update">
+        update t_sell_build
+        set area = #{area},
+             space = #{space},
+             application = #{application},
+             carrier_name = #{carrierName},
+             subtitle = #{subtitle},
+             situation_state = #{situationState},
+             product_module = #{productModule},
+             belong = #{belong},
+             point = #{point},
+             img_url = #{imgUrl},
+             tag = #{tag},
+             basic_configuration = #{basicConfiguration},
+             usable_area = #{usableArea},
+             addr = #{addr},
+            contact_name = #{contactName},
+            contact_phone = #{contactPhone},
+             introduce = #{introduce},
+             cost = #{cost},
+             checkin = #{checkin},
+             remark = #{remark}
+        where id = #{id}
+    </update>
+    <delete id="deleteById">
+        delete from t_sell_build where id = #{id}
+    </delete>
+    <select id="findAll" resultType="com.example.nngkxxdp.entity.SellBuild">
+        select * from t_sell_build
+    </select>
+    <select id="findById" resultType="com.example.nngkxxdp.entity.SellBuild" resultMap="BaseResultMap">
+        select sb.*, sb.addr as landAddr,pd.title,pd.industry, pd.addr as parkAddr
+        from t_sell_build  sb
+        left join t_park_data pd on pd.id=sb.belong
+        where sb.id =#{id}
+    </select>
+    <select id="queryCount" resultType="java.lang.Integer">
+        select count(*) from t_sell_build
+        <if test="parkId != null">
+            where belong = #{parkId}
+        </if>
+    </select>
+    <select id="queryData" resultType="com.example.nngkxxdp.entity.SellBuild">
+        select * from t_sell_build
+        <if test="parkId != null">
+            where belong = #{parkId}
+        </if>
+        limit #{begin},#{pageSize}
+    </select>
+</mapper>

+ 96 - 0
nngkxxdp/src/main/resources/mapper/SellLandDao.xml

@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.example.nngkxxdp.dao.SellLandDao">
+
+    <resultMap id="BaseResultMap" type="com.example.nngkxxdp.entity.SellLand">
+            <id property="id" column="id" jdbcType="INTEGER"/>
+            <result property="landName" column="land_name" jdbcType="VARCHAR"/>
+            <result property="landArea" column="land_area" jdbcType="VARCHAR"/>
+            <result property="landFunction" column="land_function" jdbcType="VARCHAR"/>
+            <result property="basicConfiguration" column="basic_configuration" jdbcType="VARCHAR"/>
+            <result property="usableArea" column="usable_area" jdbcType="VARCHAR"/>
+            <result property="addr" column="addr" jdbcType="VARCHAR"/>
+            <result property="contactName" column="contact_name" jdbcType="VARCHAR"/>
+            <result property="contactPhone" column="contact_phone" jdbcType="VARCHAR"/>
+            <result property="introduce" column="introduce" jdbcType="VARCHAR"/>
+            <result property="cost" column="cost" jdbcType="VARCHAR"/>
+            <result property="imgUrl" column="img_url" jdbcType="VARCHAR"/>
+           <result property="point" column="point" jdbcType="VARCHAR"/>
+            <result property="createTime" column="create_time" jdbcType="VARCHAR"/>
+           <association property="parkData" javaType="com.example.nngkxxdp.entity.ParkData">
+            <result column="title" property="title"/>
+            <result column="id" property="id"/>
+            <result column="parkAddr" property="addr"/>
+           </association>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,land_name,land_area,
+        land_function,basic_configuration,usable_area,
+        addr,contact_name,contact_phone,
+        introduce,water,electricity,
+        natural_gas,cost,labour,
+        img_url,create_time
+    </sql>
+    <insert id="insert" parameterType="com.example.nngkxxdp.entity.SellLand" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
+        insert into t_sell_land(land_name,land_area,land_function,basic_configuration,usable_area,addr,contact_name,contact_phone,introduce,water,electricity,natural_gas,cost,labour,img_url,remark,belong_park,point,create_time)
+        values(#{landName},#{landArea},#{landFunction},#{basicConfiguration},#{usableArea},#{addr},#{contactName},#{contactPhone},#{introduce},#{water},#{electricity},#{naturalGas},#{cost},#{labour},#{imgUrl},#{remark},#{belongPark},#{point},#{createTime})
+    </insert>
+    <insert id="countAll">
+        select count(*) from t_sell_land
+    </insert>
+    <update id="update">
+        update t_sell_land
+        set land_name = #{landName},
+            land_area = #{landArea},
+            land_function = #{landFunction},
+            basic_configuration = #{basicConfiguration},
+            usable_area = #{usableArea},
+            addr = #{addr},
+            contact_name = #{contactName},
+            contact_phone = #{contactPhone},
+            introduce = #{introduce},
+            water = #{water},
+            electricity = #{electricity},
+            natural_gas = #{naturalGas},
+            cost = #{cost},
+            labour = #{labour},
+            img_url = #{imgUrl},
+            remark = #{remark},
+            point = #{point},
+            belong_park=#{belongPark}
+        where id = #{id}
+    </update>
+    <delete id="deleteById">
+        delete from t_sell_land where id = #{id}
+    </delete>
+    <select id="findAll" resultType="com.example.nngkxxdp.entity.SellLand">
+        select * from t_sell_land
+    </select>
+    <select id="findById" resultType="com.example.nngkxxdp.entity.SellLand" resultMap="BaseResultMap">
+        select ts.*, ts.addr as landAddr,pd.title,pd.id,pd.addr as parkAddr
+        from t_sell_land ts
+        left join t_park_data pd on pd.id=ts.belong_park
+        where ts.id = #{id}
+    </select>
+    <select id="queryCount" resultType="java.lang.Integer">
+        select count(*) from t_sell_land
+        <if test="parkId != null">
+            where belong_park = #{parkId}
+        </if>
+    </select>
+    <select id="queryData" resultType="com.example.nngkxxdp.entity.SellLand">
+        select * from t_sell_land
+        <if test="parkId != null">
+            where belong_park = #{parkId}
+        </if>
+        limit #{begin},#{pageSize}
+    </select>
+    <select id="findPagedEntities" resultType="com.example.nngkxxdp.entity.SellLand">
+        SELECT *
+        FROM t_sell_land
+        LIMIT ${offset}, ${limit}
+    </select>
+</mapper>

+ 0 - 0
nngkxxdp/src/main/resources/static/page/.well-known/pki-validation/fileauth.txt → nngkxxdp/src/main/resources/page/.well-known/pki-validation/fileauth.txt


+ 0 - 0
nngkxxdp/src/main/resources/static/page/css/dataAll.css → nngkxxdp/src/main/resources/page/css/dataAll.css


+ 0 - 0
nngkxxdp/src/main/resources/static/page/css/demo.css → nngkxxdp/src/main/resources/page/css/demo.css


+ 0 - 0
nngkxxdp/src/main/resources/static/page/css/font/demo.css → nngkxxdp/src/main/resources/page/css/font/demo.css


+ 0 - 0
nngkxxdp/src/main/resources/static/page/css/font/demo_index.html → nngkxxdp/src/main/resources/page/css/font/demo_index.html


+ 0 - 0
nngkxxdp/src/main/resources/static/page/css/font/iconfont.css → nngkxxdp/src/main/resources/page/css/font/iconfont.css


+ 0 - 0
nngkxxdp/src/main/resources/static/page/css/font/iconfont.js → nngkxxdp/src/main/resources/page/css/font/iconfont.js


+ 0 - 0
nngkxxdp/src/main/resources/static/page/css/font/iconfont.json → nngkxxdp/src/main/resources/page/css/font/iconfont.json


+ 0 - 0
nngkxxdp/src/main/resources/static/page/css/font/iconfont.ttf → nngkxxdp/src/main/resources/page/css/font/iconfont.ttf


+ 0 - 0
nngkxxdp/src/main/resources/static/page/css/font/iconfont.woff → nngkxxdp/src/main/resources/page/css/font/iconfont.woff


+ 0 - 0
nngkxxdp/src/main/resources/static/page/css/font/iconfont.woff2 → nngkxxdp/src/main/resources/page/css/font/iconfont.woff2


+ 0 - 0
nngkxxdp/src/main/resources/static/page/css/idangerous.swiper.3dflow.css → nngkxxdp/src/main/resources/page/css/idangerous.swiper.3dflow.css


+ 0 - 0
nngkxxdp/src/main/resources/static/page/css/idangerous.swiper.css → nngkxxdp/src/main/resources/page/css/idangerous.swiper.css


+ 0 - 0
nngkxxdp/src/main/resources/static/page/css/index.css → nngkxxdp/src/main/resources/page/css/index.css


+ 0 - 0
nngkxxdp/src/main/resources/static/page/css/letterBox.css → nngkxxdp/src/main/resources/page/css/letterBox.css


+ 0 - 0
nngkxxdp/src/main/resources/static/page/css/login.css → nngkxxdp/src/main/resources/page/css/login.css


+ 0 - 0
nngkxxdp/src/main/resources/static/page/css/lr_index.css → nngkxxdp/src/main/resources/page/css/lr_index.css


+ 0 - 0
nngkxxdp/src/main/resources/static/page/css/na_index.css → nngkxxdp/src/main/resources/page/css/na_index.css


+ 0 - 0
nngkxxdp/src/main/resources/static/page/css/publicStatis.css → nngkxxdp/src/main/resources/page/css/publicStatis.css


+ 0 - 0
nngkxxdp/src/main/resources/static/page/css/style.css → nngkxxdp/src/main/resources/page/css/style.css


+ 0 - 0
nngkxxdp/src/main/resources/static/page/css/swiper.min.css → nngkxxdp/src/main/resources/page/css/swiper.min.css


+ 0 - 0
nngkxxdp/src/main/resources/static/page/css/webStatis.css → nngkxxdp/src/main/resources/page/css/webStatis.css


+ 0 - 0
nngkxxdp/src/main/resources/static/page/css/welcome.css → nngkxxdp/src/main/resources/page/css/welcome.css


+ 0 - 0
nngkxxdp/src/main/resources/static/page/enter_webStatis.html → nngkxxdp/src/main/resources/page/enter_webStatis.html


+ 0 - 0
nngkxxdp/src/main/resources/static/page/fbtx1.html → nngkxxdp/src/main/resources/page/fbtx1.html


+ 0 - 0
nngkxxdp/src/main/resources/static/page/fbtx2.html → nngkxxdp/src/main/resources/page/fbtx2.html


+ 0 - 0
nngkxxdp/src/main/resources/static/page/font/iconfont.eot → nngkxxdp/src/main/resources/page/font/iconfont.eot


+ 0 - 0
nngkxxdp/src/main/resources/static/page/font/iconfont.svg → nngkxxdp/src/main/resources/page/font/iconfont.svg


+ 0 - 0
nngkxxdp/src/main/resources/static/page/font/iconfont.ttf → nngkxxdp/src/main/resources/page/font/iconfont.ttf


+ 0 - 0
nngkxxdp/src/main/resources/static/page/font/iconfont.woff → nngkxxdp/src/main/resources/page/font/iconfont.woff


+ 0 - 0
nngkxxdp/src/main/resources/static/page/font/iconfont.woff2 → nngkxxdp/src/main/resources/page/font/iconfont.woff2


+ 0 - 0
nngkxxdp/src/main/resources/static/page/font/yszt.TTF → nngkxxdp/src/main/resources/page/font/yszt.TTF


+ 0 - 0
nngkxxdp/src/main/resources/static/page/fonts/demo.css → nngkxxdp/src/main/resources/page/fonts/demo.css


Some files were not shown because too many files changed in this diff