From 2c7e5527ac84695c4c662eee8d66204e3dfedd1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E5=BA=8F=E6=8C=AF?= Date: Fri, 27 Oct 2023 17:37:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8A=B1=E8=8D=89=E6=A4=8D=E7=89=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- God-Vue-master/dump.rdb | Bin 26409 -> 26491 bytes .../BjdfDiseasePestPreventionController.java | 104 ++++++ .../BjdfEventReportingController.java | 104 ++++++ .../BjdfPlantMonitoringController.java | 104 ++++++ .../BjdfWildPlantReportingController.java | 104 ++++++ .../domain/BjdfDiseasePestPrevention.java | 122 +++++++ .../wildPlant/domain/BjdfEventReporting.java | 136 ++++++++ .../wildPlant/domain/BjdfPlantMonitoring.java | 122 +++++++ .../domain/BjdfWildPlantReporting.java | 136 ++++++++ .../BjdfDiseasePestPreventionMapper.java | 61 ++++ .../mapper/BjdfEventReportingMapper.java | 61 ++++ .../mapper/BjdfPlantMonitoringMapper.java | 61 ++++ .../mapper/BjdfWildPlantReportingMapper.java | 64 ++++ .../IBjdfDiseasePestPreventionService.java | 61 ++++ .../service/IBjdfEventReportingService.java | 61 ++++ .../service/IBjdfPlantMonitoringService.java | 61 ++++ .../IBjdfWildPlantReportingService.java | 61 ++++ .../BjdfDiseasePestPreventionServiceImpl.java | 96 ++++++ .../impl/BjdfEventReportingServiceImpl.java | 96 ++++++ .../impl/BjdfPlantMonitoringServiceImpl.java | 96 ++++++ .../BjdfWildPlantReportingServiceImpl.java | 104 ++++++ .../BjdfDiseasePestPreventionMapper.xml | 132 +++++++ .../wildPlant/BjdfEventReportingMapper.xml | 146 ++++++++ .../wildPlant/BjdfPlantMonitoringMapper.xml | 134 ++++++++ .../BjdfWildPlantReportingMapper.xml | 151 ++++++++ god-ui/dump.rdb | Bin 13444 -> 13801 bytes .../wildPlant/bjdfDiseasePestPrevention.js | 44 +++ .../src/api/wildPlant/bjdfEventReporting.js | 44 +++ .../src/api/wildPlant/bjdfPlantMonitoring.js | 44 +++ .../api/wildPlant/bjdfWildPlantReporting.js | 44 +++ .../bjdfDiseasePestPrevention/index.vue | 313 +++++++++++++++++ .../wildPlant/bjdfEventReporting/index.vue | 317 +++++++++++++++++ .../wildPlant/bjdfPlantMonitoring/index.vue | 321 ++++++++++++++++++ .../bjdfWildPlantReporting/index.vue | 316 +++++++++++++++++ 34 files changed, 3821 insertions(+) create mode 100644 God-Vue-master/god-admin/src/main/java/com/god/web/controller/wildPlant/BjdfDiseasePestPreventionController.java create mode 100644 God-Vue-master/god-admin/src/main/java/com/god/web/controller/wildPlant/BjdfEventReportingController.java create mode 100644 God-Vue-master/god-admin/src/main/java/com/god/web/controller/wildPlant/BjdfPlantMonitoringController.java create mode 100644 God-Vue-master/god-admin/src/main/java/com/god/web/controller/wildPlant/BjdfWildPlantReportingController.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wildPlant/domain/BjdfDiseasePestPrevention.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wildPlant/domain/BjdfEventReporting.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wildPlant/domain/BjdfPlantMonitoring.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wildPlant/domain/BjdfWildPlantReporting.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wildPlant/mapper/BjdfDiseasePestPreventionMapper.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wildPlant/mapper/BjdfEventReportingMapper.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wildPlant/mapper/BjdfPlantMonitoringMapper.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wildPlant/mapper/BjdfWildPlantReportingMapper.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/IBjdfDiseasePestPreventionService.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/IBjdfEventReportingService.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/IBjdfPlantMonitoringService.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/IBjdfWildPlantReportingService.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/impl/BjdfDiseasePestPreventionServiceImpl.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/impl/BjdfEventReportingServiceImpl.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/impl/BjdfPlantMonitoringServiceImpl.java create mode 100644 God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/impl/BjdfWildPlantReportingServiceImpl.java create mode 100644 God-Vue-master/god-system/src/main/resources/mapper/wildPlant/BjdfDiseasePestPreventionMapper.xml create mode 100644 God-Vue-master/god-system/src/main/resources/mapper/wildPlant/BjdfEventReportingMapper.xml create mode 100644 God-Vue-master/god-system/src/main/resources/mapper/wildPlant/BjdfPlantMonitoringMapper.xml create mode 100644 God-Vue-master/god-system/src/main/resources/mapper/wildPlant/BjdfWildPlantReportingMapper.xml create mode 100644 god-ui/src/api/wildPlant/bjdfDiseasePestPrevention.js create mode 100644 god-ui/src/api/wildPlant/bjdfEventReporting.js create mode 100644 god-ui/src/api/wildPlant/bjdfPlantMonitoring.js create mode 100644 god-ui/src/api/wildPlant/bjdfWildPlantReporting.js create mode 100644 god-ui/src/views/wildPlant/bjdfDiseasePestPrevention/index.vue create mode 100644 god-ui/src/views/wildPlant/bjdfEventReporting/index.vue create mode 100644 god-ui/src/views/wildPlant/bjdfPlantMonitoring/index.vue create mode 100644 god-ui/src/views/wildPlant/bjdfWildPlantReporting/index.vue diff --git a/God-Vue-master/dump.rdb b/God-Vue-master/dump.rdb index 546ba5b55b4b4dc50f86a6f2da370dd22bf9a92b..7ad3a493137b2bbba2f2dfd55fa78bb0b48dcff4 100644 GIT binary patch delta 1107 zcmZXTe@q)?7{~9qQUYbJlQQVKmcA6hFktIldo8_IR|?zIpx`LDnXL4uTVr8ee@IFs z>oju`0@J-ZbXnY*#osPWAJJ%x!c5d)vN)ALot{Yt{3Dtejn1goLI}qD=S?nmPu|b> z^L<{w2Dh%kGZw}3C!EjP2x|uXO1l8qU-cBQ458O`I{d+t0~}T!222D;0hd~QKws81 zXNQNFcKsEWjD{iar07k@$8#!JGqnXJ(?hGjQL^%*@KM+fk zUND)7nvEtqXH#H$fT$^Ve{}^DCwrMeQYpa}n%mLnw@Q63u<+!Pq;WBhT=kqwxtu+> z^vNl=Rbm_rchMy2<%5Wl#!-??heDCM4(SC42sZhbN(Uoc?U{3!9+OlqhL`GH?Qh9* zl;Ob8;Yfl^{n(VIcQrQ=-8y+-C^{I34FnUBNO+Ci?#UF`RlJ>WW>FACD?N6bKBnLV z%LaaBeqv_vxeIP9xuXa#$nYi^9yk4Gr2q45`zro^FmY@6$s&GPESgMp!~)4AQO{14 zwwU6wgklnEISB(b-d;{DQlFC%q#7q<&1vVH?9!8ylFiBRbz7xwCyX9?`@lM5WrAuTqvj{-g8GtK&-EI$W(AAZPl4{zozoSC=JD)1-Ymq5QWwbB)z3YV>?0M9f{15R_V0kRq|;F$g# zpr#}Y`s#HjkH{{9fzYFCKJN7l7kpF{x@Z>#PBfe8FPpb_%R;yfLJEb~(y zvTS{%|Ff)n)yIR3$sI4YF;UQAl-o$?AFZ|Y;~nKYd8tnX-ce|w$nd$UIg!o3|BfVx za`WQyyS3(ZO3k8d0iW1CE-#<%138ubR{&ovzYNO1Rkw5u?Xu|cZtpzcO6WzP)VHgc z;&rVYx2A3$V8fagHk4lVwSs}(Fjdo!bXCPQrQcf(*w8-=behxQuRX_sj_D0pb?Er2 zc^Yi1#mR#w0T=eov&Af_yKx)lBJ!8siW;1`FI|w|iC_EE8*iE4^K-#@2Fm{lfB4O= IOpUMQUzGHR82|tP delta 1480 zcmajf|4$QV0LSrrdK3g8nxzK)*#+<381l+ z#{hygLjWBs+6U07mrnx#RYT1hG}6!x&%Yh-}_toQ+_A7z%Jv98Ym%5j|m=yPKXpey6SA0( z1B5nx2vpy89V)dC0`yYxQGlkX;Z(o#c+G--Ys-Q@K%WplrW%cF(U-aX0BtFdQ|D7* z_CDFPB^-P{mXhRdG29uGdxdb+?IbBK$XPj)(^lp(+4uluayhIvlbvR{phK|Qf_CQ( z->!0)tCIG0iIB_-lDT@m&=?gI!bk)Zc{h`p)6jdmiN|bJ14P?y^%>%1DS2mgkv`X%y`=lMpZ)F^TESsFpc4Cdy&hk}-Q^ zVD8$m|24RyOPACn{2JQj9PlBCR$a5rqq;1q$43EsW%%AuCYWrva&!ML<0 ziZoFU_`TL`x4CU)kT4v^DX~~UvFl8Fm=mHgS%JT&5u}kK8QfE)Q?Tb8@xX{c<<^2Tn?hvX{9WcG~W6l`)jVY9`LZU|c(2 zz28xej&0~m!L)t^6g`=^^Y+dcFx53L{K21QJ=S3uRL8q?=sSEIJa list = bjdfDiseasePestPreventionService.selectBjdfDiseasePestPreventionList(bjdfDiseasePestPrevention); + return getDataTable(list); + } + + /** + * 导出野生植物病虫害防控措施列表 + */ + @PreAuthorize("@ss.hasPermi('wildPlant:bjdfDiseasePestPrevention:export')") + @Log(title = "野生植物病虫害防控措施", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BjdfDiseasePestPrevention bjdfDiseasePestPrevention) + { + List list = bjdfDiseasePestPreventionService.selectBjdfDiseasePestPreventionList(bjdfDiseasePestPrevention); + ExcelUtil util = new ExcelUtil(BjdfDiseasePestPrevention.class); + util.exportExcel(response, list, "野生植物病虫害防控措施数据"); + } + + /** + * 获取野生植物病虫害防控措施详细信息 + */ + @PreAuthorize("@ss.hasPermi('wildPlant:bjdfDiseasePestPrevention:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") String id) + { + return success(bjdfDiseasePestPreventionService.selectBjdfDiseasePestPreventionById(id)); + } + + /** + * 新增野生植物病虫害防控措施 + */ + @PreAuthorize("@ss.hasPermi('wildPlant:bjdfDiseasePestPrevention:add')") + @Log(title = "野生植物病虫害防控措施", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BjdfDiseasePestPrevention bjdfDiseasePestPrevention) + { + return toAjax(bjdfDiseasePestPreventionService.insertBjdfDiseasePestPrevention(bjdfDiseasePestPrevention)); + } + + /** + * 修改野生植物病虫害防控措施 + */ + @PreAuthorize("@ss.hasPermi('wildPlant:bjdfDiseasePestPrevention:edit')") + @Log(title = "野生植物病虫害防控措施", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BjdfDiseasePestPrevention bjdfDiseasePestPrevention) + { + return toAjax(bjdfDiseasePestPreventionService.updateBjdfDiseasePestPrevention(bjdfDiseasePestPrevention)); + } + + /** + * 删除野生植物病虫害防控措施 + */ + @PreAuthorize("@ss.hasPermi('wildPlant:bjdfDiseasePestPrevention:remove')") + @Log(title = "野生植物病虫害防控措施", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable String[] ids) + { + return toAjax(bjdfDiseasePestPreventionService.deleteBjdfDiseasePestPreventionByIds(ids)); + } +} diff --git a/God-Vue-master/god-admin/src/main/java/com/god/web/controller/wildPlant/BjdfEventReportingController.java b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/wildPlant/BjdfEventReportingController.java new file mode 100644 index 00000000..143ce611 --- /dev/null +++ b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/wildPlant/BjdfEventReportingController.java @@ -0,0 +1,104 @@ +package com.god.web.controller.wildPlant; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.god.common.annotation.Log; +import com.god.common.core.controller.BaseController; +import com.god.common.core.domain.AjaxResult; +import com.god.common.enums.BusinessType; +import com.god.wildPlant.domain.BjdfEventReporting; +import com.god.wildPlant.service.IBjdfEventReportingService; +import com.god.common.utils.poi.ExcelUtil; +import com.god.common.core.page.TableDataInfo; + +/** + * 病虫害事件上报Controller + * + * @author Lxz + * @date 2023-10-27 + */ +@RestController +@RequestMapping("/wildPlant/bjdfEventReporting") +public class BjdfEventReportingController extends BaseController +{ + @Autowired + private IBjdfEventReportingService bjdfEventReportingService; + + /** + * 查询病虫害事件上报列表 + */ + @PreAuthorize("@ss.hasPermi('wildPlant:bjdfEventReporting:list')") + @GetMapping("/list") + public TableDataInfo list(BjdfEventReporting bjdfEventReporting) + { + startPage(); + List list = bjdfEventReportingService.selectBjdfEventReportingList(bjdfEventReporting); + return getDataTable(list); + } + + /** + * 导出病虫害事件上报列表 + */ + @PreAuthorize("@ss.hasPermi('wildPlant:bjdfEventReporting:export')") + @Log(title = "病虫害事件上报", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BjdfEventReporting bjdfEventReporting) + { + List list = bjdfEventReportingService.selectBjdfEventReportingList(bjdfEventReporting); + ExcelUtil util = new ExcelUtil(BjdfEventReporting.class); + util.exportExcel(response, list, "病虫害事件上报数据"); + } + + /** + * 获取病虫害事件上报详细信息 + */ + @PreAuthorize("@ss.hasPermi('wildPlant:bjdfEventReporting:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") String id) + { + return success(bjdfEventReportingService.selectBjdfEventReportingById(id)); + } + + /** + * 新增病虫害事件上报 + */ + @PreAuthorize("@ss.hasPermi('wildPlant:bjdfEventReporting:add')") + @Log(title = "病虫害事件上报", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BjdfEventReporting bjdfEventReporting) + { + return toAjax(bjdfEventReportingService.insertBjdfEventReporting(bjdfEventReporting)); + } + + /** + * 修改病虫害事件上报 + */ + @PreAuthorize("@ss.hasPermi('wildPlant:bjdfEventReporting:edit')") + @Log(title = "病虫害事件上报", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BjdfEventReporting bjdfEventReporting) + { + return toAjax(bjdfEventReportingService.updateBjdfEventReporting(bjdfEventReporting)); + } + + /** + * 删除病虫害事件上报 + */ + @PreAuthorize("@ss.hasPermi('wildPlant:bjdfEventReporting:remove')") + @Log(title = "病虫害事件上报", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable String[] ids) + { + return toAjax(bjdfEventReportingService.deleteBjdfEventReportingByIds(ids)); + } +} diff --git a/God-Vue-master/god-admin/src/main/java/com/god/web/controller/wildPlant/BjdfPlantMonitoringController.java b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/wildPlant/BjdfPlantMonitoringController.java new file mode 100644 index 00000000..3bbe9545 --- /dev/null +++ b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/wildPlant/BjdfPlantMonitoringController.java @@ -0,0 +1,104 @@ +package com.god.web.controller.wildPlant; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.god.common.annotation.Log; +import com.god.common.core.controller.BaseController; +import com.god.common.core.domain.AjaxResult; +import com.god.common.enums.BusinessType; +import com.god.wildPlant.domain.BjdfPlantMonitoring; +import com.god.wildPlant.service.IBjdfPlantMonitoringService; +import com.god.common.utils.poi.ExcelUtil; +import com.god.common.core.page.TableDataInfo; + +/** + * 野生植物疫源监测Controller + * + * @author Lxz + * @date 2023-10-27 + */ +@RestController +@RequestMapping("/wildPlant/bjdfPlantMonitoring") +public class BjdfPlantMonitoringController extends BaseController +{ + @Autowired + private IBjdfPlantMonitoringService bjdfPlantMonitoringService; + + /** + * 查询野生植物疫源监测列表 + */ + @PreAuthorize("@ss.hasPermi('wildPlant:bjdfPlantMonitoring:list')") + @GetMapping("/list") + public TableDataInfo list(BjdfPlantMonitoring bjdfPlantMonitoring) + { + startPage(); + List list = bjdfPlantMonitoringService.selectBjdfPlantMonitoringList(bjdfPlantMonitoring); + return getDataTable(list); + } + + /** + * 导出野生植物疫源监测列表 + */ + @PreAuthorize("@ss.hasPermi('wildPlant:bjdfPlantMonitoring:export')") + @Log(title = "野生植物疫源监测", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BjdfPlantMonitoring bjdfPlantMonitoring) + { + List list = bjdfPlantMonitoringService.selectBjdfPlantMonitoringList(bjdfPlantMonitoring); + ExcelUtil util = new ExcelUtil(BjdfPlantMonitoring.class); + util.exportExcel(response, list, "野生植物疫源监测数据"); + } + + /** + * 获取野生植物疫源监测详细信息 + */ + @PreAuthorize("@ss.hasPermi('wildPlant:bjdfPlantMonitoring:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") String id) + { + return success(bjdfPlantMonitoringService.selectBjdfPlantMonitoringById(id)); + } + + /** + * 新增野生植物疫源监测 + */ + @PreAuthorize("@ss.hasPermi('wildPlant:bjdfPlantMonitoring:add')") + @Log(title = "野生植物疫源监测", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BjdfPlantMonitoring bjdfPlantMonitoring) + { + return toAjax(bjdfPlantMonitoringService.insertBjdfPlantMonitoring(bjdfPlantMonitoring)); + } + + /** + * 修改野生植物疫源监测 + */ + @PreAuthorize("@ss.hasPermi('wildPlant:bjdfPlantMonitoring:edit')") + @Log(title = "野生植物疫源监测", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BjdfPlantMonitoring bjdfPlantMonitoring) + { + return toAjax(bjdfPlantMonitoringService.updateBjdfPlantMonitoring(bjdfPlantMonitoring)); + } + + /** + * 删除野生植物疫源监测 + */ + @PreAuthorize("@ss.hasPermi('wildPlant:bjdfPlantMonitoring:remove')") + @Log(title = "野生植物疫源监测", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable String[] ids) + { + return toAjax(bjdfPlantMonitoringService.deleteBjdfPlantMonitoringByIds(ids)); + } +} diff --git a/God-Vue-master/god-admin/src/main/java/com/god/web/controller/wildPlant/BjdfWildPlantReportingController.java b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/wildPlant/BjdfWildPlantReportingController.java new file mode 100644 index 00000000..fe2a7576 --- /dev/null +++ b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/wildPlant/BjdfWildPlantReportingController.java @@ -0,0 +1,104 @@ +package com.god.web.controller.wildPlant; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.god.common.annotation.Log; +import com.god.common.core.controller.BaseController; +import com.god.common.core.domain.AjaxResult; +import com.god.common.enums.BusinessType; +import com.god.wildPlant.domain.BjdfWildPlantReporting; +import com.god.wildPlant.service.IBjdfWildPlantReportingService; +import com.god.common.utils.poi.ExcelUtil; +import com.god.common.core.page.TableDataInfo; + +/** + * 野生植物信息Controller + * + * @author Lxz + * @date 2023-10-27 + */ +@RestController +@RequestMapping("/wildPlant/bjdfWildPlantReporting") +public class BjdfWildPlantReportingController extends BaseController +{ + @Autowired + private IBjdfWildPlantReportingService bjdfWildPlantReportingService; + + /** + * 查询野生植物信息列表 + */ + @PreAuthorize("@ss.hasPermi('wildPlant:bjdfWildPlantReporting:list')") + @GetMapping("/list") + public TableDataInfo list(BjdfWildPlantReporting bjdfWildPlantReporting) + { + startPage(); + List list = bjdfWildPlantReportingService.selectBjdfWildPlantReportingList(bjdfWildPlantReporting); + return getDataTable(list); + } + + /** + * 导出野生植物信息列表 + */ + @PreAuthorize("@ss.hasPermi('wildPlant:bjdfWildPlantReporting:export')") + @Log(title = "野生植物信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BjdfWildPlantReporting bjdfWildPlantReporting) + { + List list = bjdfWildPlantReportingService.selectBjdfWildPlantReportingList(bjdfWildPlantReporting); + ExcelUtil util = new ExcelUtil(BjdfWildPlantReporting.class); + util.exportExcel(response, list, "野生植物信息数据"); + } + + /** + * 获取野生植物信息详细信息 + */ + @PreAuthorize("@ss.hasPermi('wildPlant:bjdfWildPlantReporting:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") String id) + { + return success(bjdfWildPlantReportingService.selectBjdfWildPlantReportingById(id)); + } + + /** + * 新增野生植物信息 + */ + @PreAuthorize("@ss.hasPermi('wildPlant:bjdfWildPlantReporting:add')") + @Log(title = "野生植物信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BjdfWildPlantReporting bjdfWildPlantReporting) + { + return toAjax(bjdfWildPlantReportingService.insertBjdfWildPlantReporting(bjdfWildPlantReporting)); + } + + /** + * 修改野生植物信息 + */ + @PreAuthorize("@ss.hasPermi('wildPlant:bjdfWildPlantReporting:edit')") + @Log(title = "野生植物信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BjdfWildPlantReporting bjdfWildPlantReporting) + { + return toAjax(bjdfWildPlantReportingService.updateBjdfWildPlantReporting(bjdfWildPlantReporting)); + } + + /** + * 删除野生植物信息 + */ + @PreAuthorize("@ss.hasPermi('wildPlant:bjdfWildPlantReporting:remove')") + @Log(title = "野生植物信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable String[] ids) + { + return toAjax(bjdfWildPlantReportingService.deleteBjdfWildPlantReportingByIds(ids)); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wildPlant/domain/BjdfDiseasePestPrevention.java b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/domain/BjdfDiseasePestPrevention.java new file mode 100644 index 00000000..2853fc47 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/domain/BjdfDiseasePestPrevention.java @@ -0,0 +1,122 @@ +package com.god.wildPlant.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.god.common.annotation.Excel; +import com.god.common.core.domain.BaseEntity; + +/** + * 野生植物病虫害防控措施对象 bjdf_disease_pest_prevention + * + * @author Lxz + * @date 2023-10-27 + */ +public class BjdfDiseasePestPrevention extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键 */ + private String id; + + /** 虫害名称 */ + @Excel(name = "虫害名称") + private String epidemicSituation; + + /** 植物类型 */ + @Excel(name = "植物类型") + private String plantType; + + /** 预防措施 */ + @Excel(name = "预防措施") + private String prevent; + + /** 处理措施 */ + @Excel(name = "处理措施") + private String handle; + + /** 处理时间 */ + @Excel(name = "处理时间") + private String handleTime; + + /** 负责人 */ + @Excel(name = "负责人") + private String user; + + public void setId(String id) + { + this.id = id; + } + + public String getId() + { + return id; + } + public void setEpidemicSituation(String epidemicSituation) + { + this.epidemicSituation = epidemicSituation; + } + + public String getEpidemicSituation() + { + return epidemicSituation; + } + public void setPlantType(String plantType) + { + this.plantType = plantType; + } + + public String getPlantType() + { + return plantType; + } + public void setPrevent(String prevent) + { + this.prevent = prevent; + } + + public String getPrevent() + { + return prevent; + } + public void setHandle(String handle) + { + this.handle = handle; + } + + public String getHandle() + { + return handle; + } + public void setHandleTime(String handleTime) + { + this.handleTime = handleTime; + } + + public String getHandleTime() + { + return handleTime; + } + public void setUser(String user) + { + this.user = user; + } + + public String getUser() + { + return user; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("epidemicSituation", getEpidemicSituation()) + .append("plantType", getPlantType()) + .append("prevent", getPrevent()) + .append("handle", getHandle()) + .append("handleTime", getHandleTime()) + .append("user", getUser()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wildPlant/domain/BjdfEventReporting.java b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/domain/BjdfEventReporting.java new file mode 100644 index 00000000..945306ab --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/domain/BjdfEventReporting.java @@ -0,0 +1,136 @@ +package com.god.wildPlant.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.god.common.annotation.Excel; +import com.god.common.core.domain.BaseEntity; + +/** + * 病虫害事件上报对象 bjdf_event_reporting + * + * @author Lxz + * @date 2023-10-27 + */ +public class BjdfEventReporting extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键 */ + private String id; + + /** 事件名称 */ + @Excel(name = "事件名称") + private String eventName; + + /** 发生时间 */ + @Excel(name = "发生时间") + private String occurrenceTime; + + /** 新发病虫害(是/否) */ + @Excel(name = "新发病虫害", readConverterExp = "是=/否") + private String newHair; + + /** 变化趋势描述 */ + @Excel(name = "变化趋势描述") + private String trend; + + /** 影响 */ + @Excel(name = "影响") + private String effect; + + /** 发现人员 */ + @Excel(name = "发现人员") + private String personnel; + + /** 发现区域 */ + @Excel(name = "发现区域") + private String region; + + public void setId(String id) + { + this.id = id; + } + + public String getId() + { + return id; + } + public void setEventName(String eventName) + { + this.eventName = eventName; + } + + public String getEventName() + { + return eventName; + } + public void setOccurrenceTime(String occurrenceTime) + { + this.occurrenceTime = occurrenceTime; + } + + public String getOccurrenceTime() + { + return occurrenceTime; + } + public void setNewHair(String newHair) + { + this.newHair = newHair; + } + + public String getNewHair() + { + return newHair; + } + public void setTrend(String trend) + { + this.trend = trend; + } + + public String getTrend() + { + return trend; + } + public void setEffect(String effect) + { + this.effect = effect; + } + + public String getEffect() + { + return effect; + } + public void setPersonnel(String personnel) + { + this.personnel = personnel; + } + + public String getPersonnel() + { + return personnel; + } + public void setRegion(String region) + { + this.region = region; + } + + public String getRegion() + { + return region; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("eventName", getEventName()) + .append("occurrenceTime", getOccurrenceTime()) + .append("newHair", getNewHair()) + .append("trend", getTrend()) + .append("effect", getEffect()) + .append("personnel", getPersonnel()) + .append("region", getRegion()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wildPlant/domain/BjdfPlantMonitoring.java b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/domain/BjdfPlantMonitoring.java new file mode 100644 index 00000000..73c763ec --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/domain/BjdfPlantMonitoring.java @@ -0,0 +1,122 @@ +package com.god.wildPlant.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.god.common.annotation.Excel; +import com.god.common.core.domain.BaseEntity; + +/** + * 野生植物疫源监测对象 bjdf_plant_monitoring + * + * @author Lxz + * @date 2023-10-27 + */ +public class BjdfPlantMonitoring extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键 */ + private String id; + + /** 植物种类 */ + @Excel(name = "植物种类") + private String plantType; + + /** 虫害(疫情名称) */ + @Excel(name = "虫害", readConverterExp = "疫=情名称") + private String epidemicSituation; + + /** 地点 */ + @Excel(name = "地点") + private String location; + + /** 病原体信息 */ + @Excel(name = "病原体信息") + private String pathogenInfo; + + /** 上报时间 */ + @Excel(name = "上报时间") + private String reportingTime; + + /** 上报人 */ + @Excel(name = "上报人") + private String reportingUser; + + public void setId(String id) + { + this.id = id; + } + + public String getId() + { + return id; + } + public void setPlantType(String plantType) + { + this.plantType = plantType; + } + + public String getPlantType() + { + return plantType; + } + public void setEpidemicSituation(String epidemicSituation) + { + this.epidemicSituation = epidemicSituation; + } + + public String getEpidemicSituation() + { + return epidemicSituation; + } + public void setLocation(String location) + { + this.location = location; + } + + public String getLocation() + { + return location; + } + public void setPathogenInfo(String pathogenInfo) + { + this.pathogenInfo = pathogenInfo; + } + + public String getPathogenInfo() + { + return pathogenInfo; + } + public void setReportingTime(String reportingTime) + { + this.reportingTime = reportingTime; + } + + public String getReportingTime() + { + return reportingTime; + } + public void setReportingUser(String reportingUser) + { + this.reportingUser = reportingUser; + } + + public String getReportingUser() + { + return reportingUser; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("plantType", getPlantType()) + .append("epidemicSituation", getEpidemicSituation()) + .append("location", getLocation()) + .append("pathogenInfo", getPathogenInfo()) + .append("reportingTime", getReportingTime()) + .append("reportingUser", getReportingUser()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wildPlant/domain/BjdfWildPlantReporting.java b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/domain/BjdfWildPlantReporting.java new file mode 100644 index 00000000..5669bc5f --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/domain/BjdfWildPlantReporting.java @@ -0,0 +1,136 @@ +package com.god.wildPlant.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.god.common.annotation.Excel; +import com.god.common.core.domain.BaseEntity; + +/** + * 野生植物信息对象 bjdf_wild_plant_reporting + * + * @author Lxz + * @date 2023-10-27 + */ +public class BjdfWildPlantReporting extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键 */ + private String id; + + /** 植物编号 */ + @Excel(name = "植物编号") + private String plantNum; + + /** 植物种类 */ + @Excel(name = "植物种类") + private String plantType; + + /** 数量 */ + @Excel(name = "数量") + private String number; + + /** 分布地点 */ + @Excel(name = "分布地点") + private String location; + + /** 生长状况 */ + @Excel(name = "生长状况") + private String condition; + + /** 上报时间 */ + @Excel(name = "上报时间") + private String reportingTime; + + /** 上报人 */ + @Excel(name = "上报人") + private String reportingUser; + + public void setId(String id) + { + this.id = id; + } + + public String getId() + { + return id; + } + public void setPlantNum(String plantNum) + { + this.plantNum = plantNum; + } + + public String getPlantNum() + { + return plantNum; + } + public void setPlantType(String plantType) + { + this.plantType = plantType; + } + + public String getPlantType() + { + return plantType; + } + public void setNumber(String number) + { + this.number = number; + } + + public String getNumber() + { + return number; + } + public void setLocation(String location) + { + this.location = location; + } + + public String getLocation() + { + return location; + } + public void setCondition(String condition) + { + this.condition = condition; + } + + public String getCondition() + { + return condition; + } + public void setReportingTime(String reportingTime) + { + this.reportingTime = reportingTime; + } + + public String getReportingTime() + { + return reportingTime; + } + public void setReportingUser(String reportingUser) + { + this.reportingUser = reportingUser; + } + + public String getReportingUser() + { + return reportingUser; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("plantNum", getPlantNum()) + .append("plantType", getPlantType()) + .append("number", getNumber()) + .append("location", getLocation()) + .append("condition", getCondition()) + .append("reportingTime", getReportingTime()) + .append("reportingUser", getReportingUser()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wildPlant/mapper/BjdfDiseasePestPreventionMapper.java b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/mapper/BjdfDiseasePestPreventionMapper.java new file mode 100644 index 00000000..c60de17b --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/mapper/BjdfDiseasePestPreventionMapper.java @@ -0,0 +1,61 @@ +package com.god.wildPlant.mapper; + +import java.util.List; +import com.god.wildPlant.domain.BjdfDiseasePestPrevention; + +/** + * 野生植物病虫害防控措施Mapper接口 + * + * @author Lxz + * @date 2023-10-27 + */ +public interface BjdfDiseasePestPreventionMapper +{ + /** + * 查询野生植物病虫害防控措施 + * + * @param id 野生植物病虫害防控措施主键 + * @return 野生植物病虫害防控措施 + */ + public BjdfDiseasePestPrevention selectBjdfDiseasePestPreventionById(String id); + + /** + * 查询野生植物病虫害防控措施列表 + * + * @param bjdfDiseasePestPrevention 野生植物病虫害防控措施 + * @return 野生植物病虫害防控措施集合 + */ + public List selectBjdfDiseasePestPreventionList(BjdfDiseasePestPrevention bjdfDiseasePestPrevention); + + /** + * 新增野生植物病虫害防控措施 + * + * @param bjdfDiseasePestPrevention 野生植物病虫害防控措施 + * @return 结果 + */ + public int insertBjdfDiseasePestPrevention(BjdfDiseasePestPrevention bjdfDiseasePestPrevention); + + /** + * 修改野生植物病虫害防控措施 + * + * @param bjdfDiseasePestPrevention 野生植物病虫害防控措施 + * @return 结果 + */ + public int updateBjdfDiseasePestPrevention(BjdfDiseasePestPrevention bjdfDiseasePestPrevention); + + /** + * 删除野生植物病虫害防控措施 + * + * @param id 野生植物病虫害防控措施主键 + * @return 结果 + */ + public int deleteBjdfDiseasePestPreventionById(String id); + + /** + * 批量删除野生植物病虫害防控措施 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBjdfDiseasePestPreventionByIds(String[] ids); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wildPlant/mapper/BjdfEventReportingMapper.java b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/mapper/BjdfEventReportingMapper.java new file mode 100644 index 00000000..8ec5ac85 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/mapper/BjdfEventReportingMapper.java @@ -0,0 +1,61 @@ +package com.god.wildPlant.mapper; + +import java.util.List; +import com.god.wildPlant.domain.BjdfEventReporting; + +/** + * 病虫害事件上报Mapper接口 + * + * @author Lxz + * @date 2023-10-27 + */ +public interface BjdfEventReportingMapper +{ + /** + * 查询病虫害事件上报 + * + * @param id 病虫害事件上报主键 + * @return 病虫害事件上报 + */ + public BjdfEventReporting selectBjdfEventReportingById(String id); + + /** + * 查询病虫害事件上报列表 + * + * @param bjdfEventReporting 病虫害事件上报 + * @return 病虫害事件上报集合 + */ + public List selectBjdfEventReportingList(BjdfEventReporting bjdfEventReporting); + + /** + * 新增病虫害事件上报 + * + * @param bjdfEventReporting 病虫害事件上报 + * @return 结果 + */ + public int insertBjdfEventReporting(BjdfEventReporting bjdfEventReporting); + + /** + * 修改病虫害事件上报 + * + * @param bjdfEventReporting 病虫害事件上报 + * @return 结果 + */ + public int updateBjdfEventReporting(BjdfEventReporting bjdfEventReporting); + + /** + * 删除病虫害事件上报 + * + * @param id 病虫害事件上报主键 + * @return 结果 + */ + public int deleteBjdfEventReportingById(String id); + + /** + * 批量删除病虫害事件上报 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBjdfEventReportingByIds(String[] ids); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wildPlant/mapper/BjdfPlantMonitoringMapper.java b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/mapper/BjdfPlantMonitoringMapper.java new file mode 100644 index 00000000..3a9db22c --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/mapper/BjdfPlantMonitoringMapper.java @@ -0,0 +1,61 @@ +package com.god.wildPlant.mapper; + +import java.util.List; +import com.god.wildPlant.domain.BjdfPlantMonitoring; + +/** + * 野生植物疫源监测Mapper接口 + * + * @author Lxz + * @date 2023-10-27 + */ +public interface BjdfPlantMonitoringMapper +{ + /** + * 查询野生植物疫源监测 + * + * @param id 野生植物疫源监测主键 + * @return 野生植物疫源监测 + */ + public BjdfPlantMonitoring selectBjdfPlantMonitoringById(String id); + + /** + * 查询野生植物疫源监测列表 + * + * @param bjdfPlantMonitoring 野生植物疫源监测 + * @return 野生植物疫源监测集合 + */ + public List selectBjdfPlantMonitoringList(BjdfPlantMonitoring bjdfPlantMonitoring); + + /** + * 新增野生植物疫源监测 + * + * @param bjdfPlantMonitoring 野生植物疫源监测 + * @return 结果 + */ + public int insertBjdfPlantMonitoring(BjdfPlantMonitoring bjdfPlantMonitoring); + + /** + * 修改野生植物疫源监测 + * + * @param bjdfPlantMonitoring 野生植物疫源监测 + * @return 结果 + */ + public int updateBjdfPlantMonitoring(BjdfPlantMonitoring bjdfPlantMonitoring); + + /** + * 删除野生植物疫源监测 + * + * @param id 野生植物疫源监测主键 + * @return 结果 + */ + public int deleteBjdfPlantMonitoringById(String id); + + /** + * 批量删除野生植物疫源监测 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBjdfPlantMonitoringByIds(String[] ids); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wildPlant/mapper/BjdfWildPlantReportingMapper.java b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/mapper/BjdfWildPlantReportingMapper.java new file mode 100644 index 00000000..a813e8b4 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/mapper/BjdfWildPlantReportingMapper.java @@ -0,0 +1,64 @@ +package com.god.wildPlant.mapper; + +import com.god.wildPlant.domain.BjdfWildPlantReporting; + +import java.util.List; + +/** + * 野生植物信息Mapper接口 + * + * @author Lxz + * @date 2023-10-27 + */ +public interface BjdfWildPlantReportingMapper +{ + /** + * 查询野生植物信息 + * + * @param id 野生植物信息主键 + * @return 野生植物信息 + */ + public BjdfWildPlantReporting selectBjdfWildPlantReportingById(String id); + + /** + * 查询野生植物信息列表 + * + * @param bjdfWildPlantReporting 野生植物信息 + * @return 野生植物信息集合 + */ + public List selectBjdfWildPlantReportingList(BjdfWildPlantReporting bjdfWildPlantReporting); + + /** + * 新增野生植物信息 + * + * @param bjdfWildPlantReporting 野生植物信息 + * @return 结果 + */ + public int insertBjdfWildPlantReporting(BjdfWildPlantReporting bjdfWildPlantReporting); + + /** + * 修改野生植物信息 + * + * @param bjdfWildPlantReporting 野生植物信息 + * @return 结果 + */ + public int updateBjdfWildPlantReporting(BjdfWildPlantReporting bjdfWildPlantReporting); + + /** + * 删除野生植物信息 + * + * @param id 野生植物信息主键 + * @return 结果 + */ + public int deleteBjdfWildPlantReportingById(String id); + + /** + * 批量删除野生植物信息 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBjdfWildPlantReportingByIds(String[] ids); + + String getMaxSnByPrefix(String yyyyMM); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/IBjdfDiseasePestPreventionService.java b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/IBjdfDiseasePestPreventionService.java new file mode 100644 index 00000000..102fcda0 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/IBjdfDiseasePestPreventionService.java @@ -0,0 +1,61 @@ +package com.god.wildPlant.service; + +import java.util.List; +import com.god.wildPlant.domain.BjdfDiseasePestPrevention; + +/** + * 野生植物病虫害防控措施Service接口 + * + * @author Lxz + * @date 2023-10-27 + */ +public interface IBjdfDiseasePestPreventionService +{ + /** + * 查询野生植物病虫害防控措施 + * + * @param id 野生植物病虫害防控措施主键 + * @return 野生植物病虫害防控措施 + */ + public BjdfDiseasePestPrevention selectBjdfDiseasePestPreventionById(String id); + + /** + * 查询野生植物病虫害防控措施列表 + * + * @param bjdfDiseasePestPrevention 野生植物病虫害防控措施 + * @return 野生植物病虫害防控措施集合 + */ + public List selectBjdfDiseasePestPreventionList(BjdfDiseasePestPrevention bjdfDiseasePestPrevention); + + /** + * 新增野生植物病虫害防控措施 + * + * @param bjdfDiseasePestPrevention 野生植物病虫害防控措施 + * @return 结果 + */ + public int insertBjdfDiseasePestPrevention(BjdfDiseasePestPrevention bjdfDiseasePestPrevention); + + /** + * 修改野生植物病虫害防控措施 + * + * @param bjdfDiseasePestPrevention 野生植物病虫害防控措施 + * @return 结果 + */ + public int updateBjdfDiseasePestPrevention(BjdfDiseasePestPrevention bjdfDiseasePestPrevention); + + /** + * 批量删除野生植物病虫害防控措施 + * + * @param ids 需要删除的野生植物病虫害防控措施主键集合 + * @return 结果 + */ + public int deleteBjdfDiseasePestPreventionByIds(String[] ids); + + /** + * 删除野生植物病虫害防控措施信息 + * + * @param id 野生植物病虫害防控措施主键 + * @return 结果 + */ + public int deleteBjdfDiseasePestPreventionById(String id); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/IBjdfEventReportingService.java b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/IBjdfEventReportingService.java new file mode 100644 index 00000000..32bf5073 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/IBjdfEventReportingService.java @@ -0,0 +1,61 @@ +package com.god.wildPlant.service; + +import java.util.List; +import com.god.wildPlant.domain.BjdfEventReporting; + +/** + * 病虫害事件上报Service接口 + * + * @author Lxz + * @date 2023-10-27 + */ +public interface IBjdfEventReportingService +{ + /** + * 查询病虫害事件上报 + * + * @param id 病虫害事件上报主键 + * @return 病虫害事件上报 + */ + public BjdfEventReporting selectBjdfEventReportingById(String id); + + /** + * 查询病虫害事件上报列表 + * + * @param bjdfEventReporting 病虫害事件上报 + * @return 病虫害事件上报集合 + */ + public List selectBjdfEventReportingList(BjdfEventReporting bjdfEventReporting); + + /** + * 新增病虫害事件上报 + * + * @param bjdfEventReporting 病虫害事件上报 + * @return 结果 + */ + public int insertBjdfEventReporting(BjdfEventReporting bjdfEventReporting); + + /** + * 修改病虫害事件上报 + * + * @param bjdfEventReporting 病虫害事件上报 + * @return 结果 + */ + public int updateBjdfEventReporting(BjdfEventReporting bjdfEventReporting); + + /** + * 批量删除病虫害事件上报 + * + * @param ids 需要删除的病虫害事件上报主键集合 + * @return 结果 + */ + public int deleteBjdfEventReportingByIds(String[] ids); + + /** + * 删除病虫害事件上报信息 + * + * @param id 病虫害事件上报主键 + * @return 结果 + */ + public int deleteBjdfEventReportingById(String id); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/IBjdfPlantMonitoringService.java b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/IBjdfPlantMonitoringService.java new file mode 100644 index 00000000..6c7eb1dc --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/IBjdfPlantMonitoringService.java @@ -0,0 +1,61 @@ +package com.god.wildPlant.service; + +import java.util.List; +import com.god.wildPlant.domain.BjdfPlantMonitoring; + +/** + * 野生植物疫源监测Service接口 + * + * @author Lxz + * @date 2023-10-27 + */ +public interface IBjdfPlantMonitoringService +{ + /** + * 查询野生植物疫源监测 + * + * @param id 野生植物疫源监测主键 + * @return 野生植物疫源监测 + */ + public BjdfPlantMonitoring selectBjdfPlantMonitoringById(String id); + + /** + * 查询野生植物疫源监测列表 + * + * @param bjdfPlantMonitoring 野生植物疫源监测 + * @return 野生植物疫源监测集合 + */ + public List selectBjdfPlantMonitoringList(BjdfPlantMonitoring bjdfPlantMonitoring); + + /** + * 新增野生植物疫源监测 + * + * @param bjdfPlantMonitoring 野生植物疫源监测 + * @return 结果 + */ + public int insertBjdfPlantMonitoring(BjdfPlantMonitoring bjdfPlantMonitoring); + + /** + * 修改野生植物疫源监测 + * + * @param bjdfPlantMonitoring 野生植物疫源监测 + * @return 结果 + */ + public int updateBjdfPlantMonitoring(BjdfPlantMonitoring bjdfPlantMonitoring); + + /** + * 批量删除野生植物疫源监测 + * + * @param ids 需要删除的野生植物疫源监测主键集合 + * @return 结果 + */ + public int deleteBjdfPlantMonitoringByIds(String[] ids); + + /** + * 删除野生植物疫源监测信息 + * + * @param id 野生植物疫源监测主键 + * @return 结果 + */ + public int deleteBjdfPlantMonitoringById(String id); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/IBjdfWildPlantReportingService.java b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/IBjdfWildPlantReportingService.java new file mode 100644 index 00000000..2b838b48 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/IBjdfWildPlantReportingService.java @@ -0,0 +1,61 @@ +package com.god.wildPlant.service; + +import java.util.List; +import com.god.wildPlant.domain.BjdfWildPlantReporting; + +/** + * 野生植物信息Service接口 + * + * @author Lxz + * @date 2023-10-27 + */ +public interface IBjdfWildPlantReportingService +{ + /** + * 查询野生植物信息 + * + * @param id 野生植物信息主键 + * @return 野生植物信息 + */ + public BjdfWildPlantReporting selectBjdfWildPlantReportingById(String id); + + /** + * 查询野生植物信息列表 + * + * @param bjdfWildPlantReporting 野生植物信息 + * @return 野生植物信息集合 + */ + public List selectBjdfWildPlantReportingList(BjdfWildPlantReporting bjdfWildPlantReporting); + + /** + * 新增野生植物信息 + * + * @param bjdfWildPlantReporting 野生植物信息 + * @return 结果 + */ + public int insertBjdfWildPlantReporting(BjdfWildPlantReporting bjdfWildPlantReporting); + + /** + * 修改野生植物信息 + * + * @param bjdfWildPlantReporting 野生植物信息 + * @return 结果 + */ + public int updateBjdfWildPlantReporting(BjdfWildPlantReporting bjdfWildPlantReporting); + + /** + * 批量删除野生植物信息 + * + * @param ids 需要删除的野生植物信息主键集合 + * @return 结果 + */ + public int deleteBjdfWildPlantReportingByIds(String[] ids); + + /** + * 删除野生植物信息信息 + * + * @param id 野生植物信息主键 + * @return 结果 + */ + public int deleteBjdfWildPlantReportingById(String id); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/impl/BjdfDiseasePestPreventionServiceImpl.java b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/impl/BjdfDiseasePestPreventionServiceImpl.java new file mode 100644 index 00000000..4fe6cc60 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/impl/BjdfDiseasePestPreventionServiceImpl.java @@ -0,0 +1,96 @@ +package com.god.wildPlant.service.impl; + +import com.god.common.utils.uuid.IdUtils; +import com.god.wildPlant.domain.BjdfDiseasePestPrevention; +import com.god.wildPlant.mapper.BjdfDiseasePestPreventionMapper; +import com.god.wildPlant.service.IBjdfDiseasePestPreventionService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +/** + * 野生植物病虫害防控措施Service业务层处理 + * + * @author Lxz + * @date 2023-10-27 + */ +@Service +public class BjdfDiseasePestPreventionServiceImpl implements IBjdfDiseasePestPreventionService +{ + @Resource + private BjdfDiseasePestPreventionMapper bjdfDiseasePestPreventionMapper; + + /** + * 查询野生植物病虫害防控措施 + * + * @param id 野生植物病虫害防控措施主键 + * @return 野生植物病虫害防控措施 + */ + @Override + public BjdfDiseasePestPrevention selectBjdfDiseasePestPreventionById(String id) + { + return bjdfDiseasePestPreventionMapper.selectBjdfDiseasePestPreventionById(id); + } + + /** + * 查询野生植物病虫害防控措施列表 + * + * @param bjdfDiseasePestPrevention 野生植物病虫害防控措施 + * @return 野生植物病虫害防控措施 + */ + @Override + public List selectBjdfDiseasePestPreventionList(BjdfDiseasePestPrevention bjdfDiseasePestPrevention) + { + return bjdfDiseasePestPreventionMapper.selectBjdfDiseasePestPreventionList(bjdfDiseasePestPrevention); + } + + /** + * 新增野生植物病虫害防控措施 + * + * @param bjdfDiseasePestPrevention 野生植物病虫害防控措施 + * @return 结果 + */ + @Override + public int insertBjdfDiseasePestPrevention(BjdfDiseasePestPrevention bjdfDiseasePestPrevention) + { + bjdfDiseasePestPrevention.setId(IdUtils.fastUUID()); + return bjdfDiseasePestPreventionMapper.insertBjdfDiseasePestPrevention(bjdfDiseasePestPrevention); + } + + /** + * 修改野生植物病虫害防控措施 + * + * @param bjdfDiseasePestPrevention 野生植物病虫害防控措施 + * @return 结果 + */ + @Override + public int updateBjdfDiseasePestPrevention(BjdfDiseasePestPrevention bjdfDiseasePestPrevention) + { + return bjdfDiseasePestPreventionMapper.updateBjdfDiseasePestPrevention(bjdfDiseasePestPrevention); + } + + /** + * 批量删除野生植物病虫害防控措施 + * + * @param ids 需要删除的野生植物病虫害防控措施主键 + * @return 结果 + */ + @Override + public int deleteBjdfDiseasePestPreventionByIds(String[] ids) + { + return bjdfDiseasePestPreventionMapper.deleteBjdfDiseasePestPreventionByIds(ids); + } + + /** + * 删除野生植物病虫害防控措施信息 + * + * @param id 野生植物病虫害防控措施主键 + * @return 结果 + */ + @Override + public int deleteBjdfDiseasePestPreventionById(String id) + { + return bjdfDiseasePestPreventionMapper.deleteBjdfDiseasePestPreventionById(id); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/impl/BjdfEventReportingServiceImpl.java b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/impl/BjdfEventReportingServiceImpl.java new file mode 100644 index 00000000..9196224e --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/impl/BjdfEventReportingServiceImpl.java @@ -0,0 +1,96 @@ +package com.god.wildPlant.service.impl; + +import com.god.common.utils.uuid.IdUtils; +import com.god.wildPlant.domain.BjdfEventReporting; +import com.god.wildPlant.mapper.BjdfEventReportingMapper; +import com.god.wildPlant.service.IBjdfEventReportingService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +/** + * 病虫害事件上报Service业务层处理 + * + * @author Lxz + * @date 2023-10-27 + */ +@Service +public class BjdfEventReportingServiceImpl implements IBjdfEventReportingService +{ + @Resource + private BjdfEventReportingMapper bjdfEventReportingMapper; + + /** + * 查询病虫害事件上报 + * + * @param id 病虫害事件上报主键 + * @return 病虫害事件上报 + */ + @Override + public BjdfEventReporting selectBjdfEventReportingById(String id) + { + return bjdfEventReportingMapper.selectBjdfEventReportingById(id); + } + + /** + * 查询病虫害事件上报列表 + * + * @param bjdfEventReporting 病虫害事件上报 + * @return 病虫害事件上报 + */ + @Override + public List selectBjdfEventReportingList(BjdfEventReporting bjdfEventReporting) + { + return bjdfEventReportingMapper.selectBjdfEventReportingList(bjdfEventReporting); + } + + /** + * 新增病虫害事件上报 + * + * @param bjdfEventReporting 病虫害事件上报 + * @return 结果 + */ + @Override + public int insertBjdfEventReporting(BjdfEventReporting bjdfEventReporting) + { + bjdfEventReporting.setId(IdUtils.fastUUID()); + return bjdfEventReportingMapper.insertBjdfEventReporting(bjdfEventReporting); + } + + /** + * 修改病虫害事件上报 + * + * @param bjdfEventReporting 病虫害事件上报 + * @return 结果 + */ + @Override + public int updateBjdfEventReporting(BjdfEventReporting bjdfEventReporting) + { + return bjdfEventReportingMapper.updateBjdfEventReporting(bjdfEventReporting); + } + + /** + * 批量删除病虫害事件上报 + * + * @param ids 需要删除的病虫害事件上报主键 + * @return 结果 + */ + @Override + public int deleteBjdfEventReportingByIds(String[] ids) + { + return bjdfEventReportingMapper.deleteBjdfEventReportingByIds(ids); + } + + /** + * 删除病虫害事件上报信息 + * + * @param id 病虫害事件上报主键 + * @return 结果 + */ + @Override + public int deleteBjdfEventReportingById(String id) + { + return bjdfEventReportingMapper.deleteBjdfEventReportingById(id); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/impl/BjdfPlantMonitoringServiceImpl.java b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/impl/BjdfPlantMonitoringServiceImpl.java new file mode 100644 index 00000000..34f14f02 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/impl/BjdfPlantMonitoringServiceImpl.java @@ -0,0 +1,96 @@ +package com.god.wildPlant.service.impl; + +import com.god.common.utils.uuid.IdUtils; +import com.god.wildPlant.domain.BjdfPlantMonitoring; +import com.god.wildPlant.mapper.BjdfPlantMonitoringMapper; +import com.god.wildPlant.service.IBjdfPlantMonitoringService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +/** + * 野生植物疫源监测Service业务层处理 + * + * @author Lxz + * @date 2023-10-27 + */ +@Service +public class BjdfPlantMonitoringServiceImpl implements IBjdfPlantMonitoringService +{ + @Resource + private BjdfPlantMonitoringMapper bjdfPlantMonitoringMapper; + + /** + * 查询野生植物疫源监测 + * + * @param id 野生植物疫源监测主键 + * @return 野生植物疫源监测 + */ + @Override + public BjdfPlantMonitoring selectBjdfPlantMonitoringById(String id) + { + return bjdfPlantMonitoringMapper.selectBjdfPlantMonitoringById(id); + } + + /** + * 查询野生植物疫源监测列表 + * + * @param bjdfPlantMonitoring 野生植物疫源监测 + * @return 野生植物疫源监测 + */ + @Override + public List selectBjdfPlantMonitoringList(BjdfPlantMonitoring bjdfPlantMonitoring) + { + return bjdfPlantMonitoringMapper.selectBjdfPlantMonitoringList(bjdfPlantMonitoring); + } + + /** + * 新增野生植物疫源监测 + * + * @param bjdfPlantMonitoring 野生植物疫源监测 + * @return 结果 + */ + @Override + public int insertBjdfPlantMonitoring(BjdfPlantMonitoring bjdfPlantMonitoring) + { + bjdfPlantMonitoring.setId(IdUtils.fastUUID()); + return bjdfPlantMonitoringMapper.insertBjdfPlantMonitoring(bjdfPlantMonitoring); + } + + /** + * 修改野生植物疫源监测 + * + * @param bjdfPlantMonitoring 野生植物疫源监测 + * @return 结果 + */ + @Override + public int updateBjdfPlantMonitoring(BjdfPlantMonitoring bjdfPlantMonitoring) + { + return bjdfPlantMonitoringMapper.updateBjdfPlantMonitoring(bjdfPlantMonitoring); + } + + /** + * 批量删除野生植物疫源监测 + * + * @param ids 需要删除的野生植物疫源监测主键 + * @return 结果 + */ + @Override + public int deleteBjdfPlantMonitoringByIds(String[] ids) + { + return bjdfPlantMonitoringMapper.deleteBjdfPlantMonitoringByIds(ids); + } + + /** + * 删除野生植物疫源监测信息 + * + * @param id 野生植物疫源监测主键 + * @return 结果 + */ + @Override + public int deleteBjdfPlantMonitoringById(String id) + { + return bjdfPlantMonitoringMapper.deleteBjdfPlantMonitoringById(id); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/impl/BjdfWildPlantReportingServiceImpl.java b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/impl/BjdfWildPlantReportingServiceImpl.java new file mode 100644 index 00000000..de3e17bb --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/wildPlant/service/impl/BjdfWildPlantReportingServiceImpl.java @@ -0,0 +1,104 @@ +package com.god.wildPlant.service.impl; + +import com.god.common.utils.serialNumber.SerialNumberService; +import com.god.common.utils.uuid.IdUtils; +import com.god.wildPlant.domain.BjdfWildPlantReporting; +import com.god.wildPlant.mapper.BjdfWildPlantReportingMapper; +import com.god.wildPlant.service.IBjdfWildPlantReportingService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.List; + +/** + * 野生植物信息Service业务层处理 + * + * @author Lxz + * @date 2023-10-27 + */ +@Service +public class BjdfWildPlantReportingServiceImpl implements IBjdfWildPlantReportingService +{ + @Resource + private BjdfWildPlantReportingMapper bjdfWildPlantReportingMapper; + @Resource + private SerialNumberService serialNumberService; + + /** + * 查询野生植物信息 + * + * @param id 野生植物信息主键 + * @return 野生植物信息 + */ + @Override + public BjdfWildPlantReporting selectBjdfWildPlantReportingById(String id) + { + return bjdfWildPlantReportingMapper.selectBjdfWildPlantReportingById(id); + } + + /** + * 查询野生植物信息列表 + * + * @param bjdfWildPlantReporting 野生植物信息 + * @return 野生植物信息 + */ + @Override + public List selectBjdfWildPlantReportingList(BjdfWildPlantReporting bjdfWildPlantReporting) + { + return bjdfWildPlantReportingMapper.selectBjdfWildPlantReportingList(bjdfWildPlantReporting); + } + + /** + * 新增野生植物信息 + * + * @param bjdfWildPlantReporting 野生植物信息 + * @return 结果 + */ + @Override + public int insertBjdfWildPlantReporting(BjdfWildPlantReporting bjdfWildPlantReporting) + { + bjdfWildPlantReporting.setId(IdUtils.fastUUID()); + bjdfWildPlantReporting.setPlantNum(serialNumberService.generateSn("YSBH", 3, + bjdfWildPlantReportingMapper.getMaxSnByPrefix("YSBH" + new SimpleDateFormat("yyyyMM") + .format(new Date())))); + return bjdfWildPlantReportingMapper.insertBjdfWildPlantReporting(bjdfWildPlantReporting); + } + + /** + * 修改野生植物信息 + * + * @param bjdfWildPlantReporting 野生植物信息 + * @return 结果 + */ + @Override + public int updateBjdfWildPlantReporting(BjdfWildPlantReporting bjdfWildPlantReporting) + { + return bjdfWildPlantReportingMapper.updateBjdfWildPlantReporting(bjdfWildPlantReporting); + } + + /** + * 批量删除野生植物信息 + * + * @param ids 需要删除的野生植物信息主键 + * @return 结果 + */ + @Override + public int deleteBjdfWildPlantReportingByIds(String[] ids) + { + return bjdfWildPlantReportingMapper.deleteBjdfWildPlantReportingByIds(ids); + } + + /** + * 删除野生植物信息信息 + * + * @param id 野生植物信息主键 + * @return 结果 + */ + @Override + public int deleteBjdfWildPlantReportingById(String id) + { + return bjdfWildPlantReportingMapper.deleteBjdfWildPlantReportingById(id); + } +} diff --git a/God-Vue-master/god-system/src/main/resources/mapper/wildPlant/BjdfDiseasePestPreventionMapper.xml b/God-Vue-master/god-system/src/main/resources/mapper/wildPlant/BjdfDiseasePestPreventionMapper.xml new file mode 100644 index 00000000..6c208e85 --- /dev/null +++ b/God-Vue-master/god-system/src/main/resources/mapper/wildPlant/BjdfDiseasePestPreventionMapper.xml @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + select id, + epidemic_situation, + plant_type, + prevent, + handle, + handle_time, + user, + remark + from bjdf_disease_pest_prevention + + + + + + + + insert into bjdf_disease_pest_prevention + + id + , + epidemic_situation + , + plant_type + , + prevent + , + handle + , + handle_time + , + user, + remark + , + + + #{id} + , + #{epidemicSituation} + , + #{plantType} + , + #{prevent} + , + #{handle} + , + #{handleTime} + , + #{user} + , + #{remark} + , + + + + + update bjdf_disease_pest_prevention + + epidemic_situation + = + #{epidemicSituation}, + plant_type + = + #{plantType}, + prevent + = + #{prevent}, + handle + = + #{handle}, + handle_time + = + #{handleTime}, + user = + #{user}, + remark + = + #{remark}, + + where id = #{id} + + + + delete + from bjdf_disease_pest_prevention + where id = #{id} + + + + delete from bjdf_disease_pest_prevention where id in + + #{id} + + + diff --git a/God-Vue-master/god-system/src/main/resources/mapper/wildPlant/BjdfEventReportingMapper.xml b/God-Vue-master/god-system/src/main/resources/mapper/wildPlant/BjdfEventReportingMapper.xml new file mode 100644 index 00000000..86b9d612 --- /dev/null +++ b/God-Vue-master/god-system/src/main/resources/mapper/wildPlant/BjdfEventReportingMapper.xml @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + select id, + event_name, + occurrence_time, + new_hair, + trend, + effect, + personnel, + region, + remark + from bjdf_event_reporting + + + + + + + + insert into bjdf_event_reporting + + id + , + event_name + , + occurrence_time + , + new_hair + , + trend + , + effect + , + personnel + , + region + , + remark + , + + + #{id} + , + #{eventName} + , + #{occurrenceTime} + , + #{newHair} + , + #{trend} + , + #{effect} + , + #{personnel} + , + #{region} + , + #{remark} + , + + + + + update bjdf_event_reporting + + event_name + = + #{eventName}, + occurrence_time + = + #{occurrenceTime}, + new_hair + = + #{newHair}, + trend + = + #{trend}, + effect + = + #{effect}, + personnel + = + #{personnel}, + region + = + #{region}, + remark + = + #{remark}, + + where id = #{id} + + + + delete + from bjdf_event_reporting + where id = #{id} + + + + delete from bjdf_event_reporting where id in + + #{id} + + + diff --git a/God-Vue-master/god-system/src/main/resources/mapper/wildPlant/BjdfPlantMonitoringMapper.xml b/God-Vue-master/god-system/src/main/resources/mapper/wildPlant/BjdfPlantMonitoringMapper.xml new file mode 100644 index 00000000..7d748464 --- /dev/null +++ b/God-Vue-master/god-system/src/main/resources/mapper/wildPlant/BjdfPlantMonitoringMapper.xml @@ -0,0 +1,134 @@ + + + + + + + + + + + + + + + + + select id, + plant_type, + epidemic_situation, + location, + pathogen_info, + reporting_time, + reporting_user, + remark + from bjdf_plant_monitoring + + + + + + + + insert into bjdf_plant_monitoring + + id + , + plant_type + , + epidemic_situation + , + location + , + pathogen_info + , + reporting_time + , + reporting_user + , + remark + , + + + #{id} + , + #{plantType} + , + #{epidemicSituation} + , + #{location} + , + #{pathogenInfo} + , + #{reportingTime} + , + #{reportingUser} + , + #{remark} + , + + + + + update bjdf_plant_monitoring + + plant_type + = + #{plantType}, + epidemic_situation + = + #{epidemicSituation}, + location + = + #{location}, + pathogen_info + = + #{pathogenInfo}, + reporting_time + = + #{reportingTime}, + reporting_user + = + #{reportingUser}, + remark + = + #{remark}, + + where id = #{id} + + + + delete + from bjdf_plant_monitoring + where id = #{id} + + + + delete from bjdf_plant_monitoring where id in + + #{id} + + + diff --git a/God-Vue-master/god-system/src/main/resources/mapper/wildPlant/BjdfWildPlantReportingMapper.xml b/God-Vue-master/god-system/src/main/resources/mapper/wildPlant/BjdfWildPlantReportingMapper.xml new file mode 100644 index 00000000..e77b0b8b --- /dev/null +++ b/God-Vue-master/god-system/src/main/resources/mapper/wildPlant/BjdfWildPlantReportingMapper.xml @@ -0,0 +1,151 @@ + + + + + + + + + + + + + + + + + + select id, + plant_num, + plant_type, + `number`, + location, + `condition`, + reporting_time, + reporting_user, + remark + from bjdf_wild_plant_reporting + + + + + + + + + insert into bjdf_wild_plant_reporting + + id + , + plant_num + , + plant_type + , + `number`` + , + location + , + `condition` + , + reporting_time + , + reporting_user + , + remark + , + + + #{id} + , + #{plantNum} + , + #{plantType} + , + #{number} + , + #{location} + , + #{condition} + , + #{reportingTime} + , + #{reportingUser} + , + #{remark} + , + + + + + update bjdf_wild_plant_reporting + + plant_num + = + #{plantNum}, + plant_type + = + #{plantType}, + `number` + = + #{number}, + location + = + #{location}, + `condition` + = + #{condition}, + reporting_time + = + #{reportingTime}, + reporting_user + = + #{reportingUser}, + remark + = + #{remark}, + + where id = #{id} + + + + delete + from bjdf_wild_plant_reporting + where id = #{id} + + + + delete from bjdf_wild_plant_reporting where id in + + #{id} + + + diff --git a/god-ui/dump.rdb b/god-ui/dump.rdb index f523f1142eb010046b8edf24ee35c66765dfc349..653bdd1f6535e8afc667dbfc66a328dc0acab23e 100644 GIT binary patch delta 261 zcmZq4e3?DLm`T84qNyUI*2eG*QRe>cg_947S~0dx{wtcn$7X0|X<=+=uE5M`U~DQx*^|-CVDn0`gCa6w#g)bJDVfP7R%xlJDM^XR+3_Wn1*wM}J)O!YD=H+jm|K|| zPM%<_;A?8=)49 G90UMu-c}g^ delta 77 zcmV-T0J8t-YlLZ#GXnM}ku@O!DX~{*6$3eNKa;{0Ist~0{S{~q6EQY9I5ROZG%ztW jGB}fS7BB_^NdhoAHnXS}!4$L4ED{L_7#7HzPe3gx%?1~0 diff --git a/god-ui/src/api/wildPlant/bjdfDiseasePestPrevention.js b/god-ui/src/api/wildPlant/bjdfDiseasePestPrevention.js new file mode 100644 index 00000000..4d5c6c68 --- /dev/null +++ b/god-ui/src/api/wildPlant/bjdfDiseasePestPrevention.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询野生植物病虫害防控措施列表 +export function listBjdfDiseasePestPrevention(query) { + return request({ + url: '/wildPlant/bjdfDiseasePestPrevention/list', + method: 'get', + params: query + }) +} + +// 查询野生植物病虫害防控措施详细 +export function getBjdfDiseasePestPrevention(id) { + return request({ + url: '/wildPlant/bjdfDiseasePestPrevention/' + id, + method: 'get' + }) +} + +// 新增野生植物病虫害防控措施 +export function addBjdfDiseasePestPrevention(data) { + return request({ + url: '/wildPlant/bjdfDiseasePestPrevention', + method: 'post', + data: data + }) +} + +// 修改野生植物病虫害防控措施 +export function updateBjdfDiseasePestPrevention(data) { + return request({ + url: '/wildPlant/bjdfDiseasePestPrevention', + method: 'put', + data: data + }) +} + +// 删除野生植物病虫害防控措施 +export function delBjdfDiseasePestPrevention(id) { + return request({ + url: '/wildPlant/bjdfDiseasePestPrevention/' + id, + method: 'delete' + }) +} diff --git a/god-ui/src/api/wildPlant/bjdfEventReporting.js b/god-ui/src/api/wildPlant/bjdfEventReporting.js new file mode 100644 index 00000000..b6626b93 --- /dev/null +++ b/god-ui/src/api/wildPlant/bjdfEventReporting.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询病虫害事件上报列表 +export function listBjdfEventReporting(query) { + return request({ + url: '/wildPlant/bjdfEventReporting/list', + method: 'get', + params: query + }) +} + +// 查询病虫害事件上报详细 +export function getBjdfEventReporting(id) { + return request({ + url: '/wildPlant/bjdfEventReporting/' + id, + method: 'get' + }) +} + +// 新增病虫害事件上报 +export function addBjdfEventReporting(data) { + return request({ + url: '/wildPlant/bjdfEventReporting', + method: 'post', + data: data + }) +} + +// 修改病虫害事件上报 +export function updateBjdfEventReporting(data) { + return request({ + url: '/wildPlant/bjdfEventReporting', + method: 'put', + data: data + }) +} + +// 删除病虫害事件上报 +export function delBjdfEventReporting(id) { + return request({ + url: '/wildPlant/bjdfEventReporting/' + id, + method: 'delete' + }) +} diff --git a/god-ui/src/api/wildPlant/bjdfPlantMonitoring.js b/god-ui/src/api/wildPlant/bjdfPlantMonitoring.js new file mode 100644 index 00000000..c390a2db --- /dev/null +++ b/god-ui/src/api/wildPlant/bjdfPlantMonitoring.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询野生植物疫源监测列表 +export function listBjdfPlantMonitoring(query) { + return request({ + url: '/wildPlant/bjdfPlantMonitoring/list', + method: 'get', + params: query + }) +} + +// 查询野生植物疫源监测详细 +export function getBjdfPlantMonitoring(id) { + return request({ + url: '/wildPlant/bjdfPlantMonitoring/' + id, + method: 'get' + }) +} + +// 新增野生植物疫源监测 +export function addBjdfPlantMonitoring(data) { + return request({ + url: '/wildPlant/bjdfPlantMonitoring', + method: 'post', + data: data + }) +} + +// 修改野生植物疫源监测 +export function updateBjdfPlantMonitoring(data) { + return request({ + url: '/wildPlant/bjdfPlantMonitoring', + method: 'put', + data: data + }) +} + +// 删除野生植物疫源监测 +export function delBjdfPlantMonitoring(id) { + return request({ + url: '/wildPlant/bjdfPlantMonitoring/' + id, + method: 'delete' + }) +} diff --git a/god-ui/src/api/wildPlant/bjdfWildPlantReporting.js b/god-ui/src/api/wildPlant/bjdfWildPlantReporting.js new file mode 100644 index 00000000..ce6ede59 --- /dev/null +++ b/god-ui/src/api/wildPlant/bjdfWildPlantReporting.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询野生植物信息列表 +export function listBjdfWildPlantReporting(query) { + return request({ + url: '/wildPlant/bjdfWildPlantReporting/list', + method: 'get', + params: query + }) +} + +// 查询野生植物信息详细 +export function getBjdfWildPlantReporting(id) { + return request({ + url: '/wildPlant/bjdfWildPlantReporting/' + id, + method: 'get' + }) +} + +// 新增野生植物信息 +export function addBjdfWildPlantReporting(data) { + return request({ + url: '/wildPlant/bjdfWildPlantReporting', + method: 'post', + data: data + }) +} + +// 修改野生植物信息 +export function updateBjdfWildPlantReporting(data) { + return request({ + url: '/wildPlant/bjdfWildPlantReporting', + method: 'put', + data: data + }) +} + +// 删除野生植物信息 +export function delBjdfWildPlantReporting(id) { + return request({ + url: '/wildPlant/bjdfWildPlantReporting/' + id, + method: 'delete' + }) +} diff --git a/god-ui/src/views/wildPlant/bjdfDiseasePestPrevention/index.vue b/god-ui/src/views/wildPlant/bjdfDiseasePestPrevention/index.vue new file mode 100644 index 00000000..10877342 --- /dev/null +++ b/god-ui/src/views/wildPlant/bjdfDiseasePestPrevention/index.vue @@ -0,0 +1,313 @@ + + + diff --git a/god-ui/src/views/wildPlant/bjdfEventReporting/index.vue b/god-ui/src/views/wildPlant/bjdfEventReporting/index.vue new file mode 100644 index 00000000..28a22b23 --- /dev/null +++ b/god-ui/src/views/wildPlant/bjdfEventReporting/index.vue @@ -0,0 +1,317 @@ + + + diff --git a/god-ui/src/views/wildPlant/bjdfPlantMonitoring/index.vue b/god-ui/src/views/wildPlant/bjdfPlantMonitoring/index.vue new file mode 100644 index 00000000..2e99e141 --- /dev/null +++ b/god-ui/src/views/wildPlant/bjdfPlantMonitoring/index.vue @@ -0,0 +1,321 @@ + + + diff --git a/god-ui/src/views/wildPlant/bjdfWildPlantReporting/index.vue b/god-ui/src/views/wildPlant/bjdfWildPlantReporting/index.vue new file mode 100644 index 00000000..382caa5c --- /dev/null +++ b/god-ui/src/views/wildPlant/bjdfWildPlantReporting/index.vue @@ -0,0 +1,316 @@ + + +