花草植物
This commit is contained in:
parent
c6d6226b2f
commit
2c7e5527ac
Binary file not shown.
@ -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.BjdfDiseasePestPrevention;
|
||||
import com.god.wildPlant.service.IBjdfDiseasePestPreventionService;
|
||||
import com.god.common.utils.poi.ExcelUtil;
|
||||
import com.god.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 野生植物病虫害防控措施Controller
|
||||
*
|
||||
* @author Lxz
|
||||
* @date 2023-10-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/wildPlant/bjdfDiseasePestPrevention")
|
||||
public class BjdfDiseasePestPreventionController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IBjdfDiseasePestPreventionService bjdfDiseasePestPreventionService;
|
||||
|
||||
/**
|
||||
* 查询野生植物病虫害防控措施列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('wildPlant:bjdfDiseasePestPrevention:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(BjdfDiseasePestPrevention bjdfDiseasePestPrevention)
|
||||
{
|
||||
startPage();
|
||||
List<BjdfDiseasePestPrevention> 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<BjdfDiseasePestPrevention> list = bjdfDiseasePestPreventionService.selectBjdfDiseasePestPreventionList(bjdfDiseasePestPrevention);
|
||||
ExcelUtil<BjdfDiseasePestPrevention> util = new ExcelUtil<BjdfDiseasePestPrevention>(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));
|
||||
}
|
||||
}
|
@ -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<BjdfEventReporting> 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<BjdfEventReporting> list = bjdfEventReportingService.selectBjdfEventReportingList(bjdfEventReporting);
|
||||
ExcelUtil<BjdfEventReporting> util = new ExcelUtil<BjdfEventReporting>(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));
|
||||
}
|
||||
}
|
@ -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<BjdfPlantMonitoring> 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<BjdfPlantMonitoring> list = bjdfPlantMonitoringService.selectBjdfPlantMonitoringList(bjdfPlantMonitoring);
|
||||
ExcelUtil<BjdfPlantMonitoring> util = new ExcelUtil<BjdfPlantMonitoring>(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));
|
||||
}
|
||||
}
|
@ -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<BjdfWildPlantReporting> 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<BjdfWildPlantReporting> list = bjdfWildPlantReportingService.selectBjdfWildPlantReportingList(bjdfWildPlantReporting);
|
||||
ExcelUtil<BjdfWildPlantReporting> util = new ExcelUtil<BjdfWildPlantReporting>(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));
|
||||
}
|
||||
}
|
@ -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();
|
||||
}
|
||||
}
|
@ -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();
|
||||
}
|
||||
}
|
@ -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();
|
||||
}
|
||||
}
|
@ -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();
|
||||
}
|
||||
}
|
@ -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<BjdfDiseasePestPrevention> 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);
|
||||
}
|
@ -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<BjdfEventReporting> 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);
|
||||
}
|
@ -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<BjdfPlantMonitoring> 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);
|
||||
}
|
@ -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<BjdfWildPlantReporting> 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);
|
||||
}
|
@ -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<BjdfDiseasePestPrevention> 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);
|
||||
}
|
@ -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<BjdfEventReporting> 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);
|
||||
}
|
@ -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<BjdfPlantMonitoring> 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);
|
||||
}
|
@ -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<BjdfWildPlantReporting> 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);
|
||||
}
|
@ -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<BjdfDiseasePestPrevention> 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);
|
||||
}
|
||||
}
|
@ -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<BjdfEventReporting> 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);
|
||||
}
|
||||
}
|
@ -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<BjdfPlantMonitoring> 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);
|
||||
}
|
||||
}
|
@ -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<BjdfWildPlantReporting> 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);
|
||||
}
|
||||
}
|
@ -0,0 +1,132 @@
|
||||
<?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.god.wildPlant.mapper.BjdfDiseasePestPreventionMapper">
|
||||
|
||||
<resultMap type="BjdfDiseasePestPrevention" id="BjdfDiseasePestPreventionResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="epidemicSituation" column="epidemic_situation"/>
|
||||
<result property="plantType" column="plant_type"/>
|
||||
<result property="prevent" column="prevent"/>
|
||||
<result property="handle" column="handle"/>
|
||||
<result property="handleTime" column="handle_time"/>
|
||||
<result property="user" column="user"/>
|
||||
<result property="remark" column="remark"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectBjdfDiseasePestPreventionVo">
|
||||
select id,
|
||||
epidemic_situation,
|
||||
plant_type,
|
||||
prevent,
|
||||
handle,
|
||||
handle_time,
|
||||
user,
|
||||
remark
|
||||
from bjdf_disease_pest_prevention
|
||||
</sql>
|
||||
|
||||
<select id="selectBjdfDiseasePestPreventionList" parameterType="BjdfDiseasePestPrevention"
|
||||
resultMap="BjdfDiseasePestPreventionResult">
|
||||
<include refid="selectBjdfDiseasePestPreventionVo"/>
|
||||
<where>
|
||||
<if test="epidemicSituation != null and epidemicSituation != ''"> and epidemic_situation =
|
||||
#{epidemicSituation}</if>
|
||||
<if test="plantType != null and plantType != ''"> and plant_type =
|
||||
#{plantType}</if>
|
||||
<if test="prevent != null and prevent != ''"> and prevent =
|
||||
#{prevent}</if>
|
||||
<if test="handle != null and handle != ''"> and handle =
|
||||
#{handle}</if>
|
||||
<if test="handleTime != null and handleTime != ''"> and handle_time =
|
||||
#{handleTime}</if>
|
||||
<if test="user != null and user != ''"> and user =
|
||||
#{user}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectBjdfDiseasePestPreventionById" parameterType="String" resultMap="BjdfDiseasePestPreventionResult">
|
||||
<include refid="selectBjdfDiseasePestPreventionVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertBjdfDiseasePestPrevention" parameterType="BjdfDiseasePestPrevention">
|
||||
insert into bjdf_disease_pest_prevention
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id
|
||||
,</if>
|
||||
<if test="epidemicSituation != null and epidemicSituation != ''">epidemic_situation
|
||||
,</if>
|
||||
<if test="plantType != null">plant_type
|
||||
,</if>
|
||||
<if test="prevent != null">prevent
|
||||
,</if>
|
||||
<if test="handle != null">handle
|
||||
,</if>
|
||||
<if test="handleTime != null">handle_time
|
||||
,</if>
|
||||
<if test="user != null">user,</if>
|
||||
<if test="remark != null">remark
|
||||
,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id}
|
||||
,</if>
|
||||
<if test="epidemicSituation != null and epidemicSituation != ''">#{epidemicSituation}
|
||||
,</if>
|
||||
<if test="plantType != null">#{plantType}
|
||||
,</if>
|
||||
<if test="prevent != null">#{prevent}
|
||||
,</if>
|
||||
<if test="handle != null">#{handle}
|
||||
,</if>
|
||||
<if test="handleTime != null">#{handleTime}
|
||||
,</if>
|
||||
<if test="user != null">#{user}
|
||||
,</if>
|
||||
<if test="remark != null">#{remark}
|
||||
,</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateBjdfDiseasePestPrevention" parameterType="BjdfDiseasePestPrevention">
|
||||
update bjdf_disease_pest_prevention
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="epidemicSituation != null and epidemicSituation != ''">epidemic_situation
|
||||
=
|
||||
#{epidemicSituation},</if>
|
||||
<if test="plantType != null">plant_type
|
||||
=
|
||||
#{plantType},</if>
|
||||
<if test="prevent != null">prevent
|
||||
=
|
||||
#{prevent},</if>
|
||||
<if test="handle != null">handle
|
||||
=
|
||||
#{handle},</if>
|
||||
<if test="handleTime != null">handle_time
|
||||
=
|
||||
#{handleTime},</if>
|
||||
<if test="user != null">user =
|
||||
#{user},</if>
|
||||
<if test="remark != null">remark
|
||||
=
|
||||
#{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteBjdfDiseasePestPreventionById" parameterType="String">
|
||||
delete
|
||||
from bjdf_disease_pest_prevention
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteBjdfDiseasePestPreventionByIds" parameterType="String">
|
||||
delete from bjdf_disease_pest_prevention where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,146 @@
|
||||
<?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.god.wildPlant.mapper.BjdfEventReportingMapper">
|
||||
|
||||
<resultMap type="BjdfEventReporting" id="BjdfEventReportingResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="eventName" column="event_name"/>
|
||||
<result property="occurrenceTime" column="occurrence_time"/>
|
||||
<result property="newHair" column="new_hair"/>
|
||||
<result property="trend" column="trend"/>
|
||||
<result property="effect" column="effect"/>
|
||||
<result property="personnel" column="personnel"/>
|
||||
<result property="region" column="region"/>
|
||||
<result property="remark" column="remark"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectBjdfEventReportingVo">
|
||||
select id,
|
||||
event_name,
|
||||
occurrence_time,
|
||||
new_hair,
|
||||
trend,
|
||||
effect,
|
||||
personnel,
|
||||
region,
|
||||
remark
|
||||
from bjdf_event_reporting
|
||||
</sql>
|
||||
|
||||
<select id="selectBjdfEventReportingList" parameterType="BjdfEventReporting" resultMap="BjdfEventReportingResult">
|
||||
<include refid="selectBjdfEventReportingVo"/>
|
||||
<where>
|
||||
<if test="eventName != null and eventName != ''"> and event_name like concat('%',
|
||||
#{eventName},
|
||||
'%'
|
||||
)</if>
|
||||
<if test="occurrenceTime != null and occurrenceTime != ''"> and occurrence_time =
|
||||
#{occurrenceTime}</if>
|
||||
<if test="newHair != null and newHair != ''"> and new_hair =
|
||||
#{newHair}</if>
|
||||
<if test="trend != null and trend != ''"> and trend =
|
||||
#{trend}</if>
|
||||
<if test="effect != null and effect != ''"> and effect =
|
||||
#{effect}</if>
|
||||
<if test="personnel != null and personnel != ''"> and personnel =
|
||||
#{personnel}</if>
|
||||
<if test="region != null and region != ''"> and region =
|
||||
#{region}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectBjdfEventReportingById" parameterType="String" resultMap="BjdfEventReportingResult">
|
||||
<include refid="selectBjdfEventReportingVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertBjdfEventReporting" parameterType="BjdfEventReporting">
|
||||
insert into bjdf_event_reporting
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id
|
||||
,</if>
|
||||
<if test="eventName != null and eventName != ''">event_name
|
||||
,</if>
|
||||
<if test="occurrenceTime != null">occurrence_time
|
||||
,</if>
|
||||
<if test="newHair != null">new_hair
|
||||
,</if>
|
||||
<if test="trend != null">trend
|
||||
,</if>
|
||||
<if test="effect != null">effect
|
||||
,</if>
|
||||
<if test="personnel != null">personnel
|
||||
,</if>
|
||||
<if test="region != null">region
|
||||
,</if>
|
||||
<if test="remark != null">remark
|
||||
,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id}
|
||||
,</if>
|
||||
<if test="eventName != null and eventName != ''">#{eventName}
|
||||
,</if>
|
||||
<if test="occurrenceTime != null">#{occurrenceTime}
|
||||
,</if>
|
||||
<if test="newHair != null">#{newHair}
|
||||
,</if>
|
||||
<if test="trend != null">#{trend}
|
||||
,</if>
|
||||
<if test="effect != null">#{effect}
|
||||
,</if>
|
||||
<if test="personnel != null">#{personnel}
|
||||
,</if>
|
||||
<if test="region != null">#{region}
|
||||
,</if>
|
||||
<if test="remark != null">#{remark}
|
||||
,</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateBjdfEventReporting" parameterType="BjdfEventReporting">
|
||||
update bjdf_event_reporting
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="eventName != null and eventName != ''">event_name
|
||||
=
|
||||
#{eventName},</if>
|
||||
<if test="occurrenceTime != null">occurrence_time
|
||||
=
|
||||
#{occurrenceTime},</if>
|
||||
<if test="newHair != null">new_hair
|
||||
=
|
||||
#{newHair},</if>
|
||||
<if test="trend != null">trend
|
||||
=
|
||||
#{trend},</if>
|
||||
<if test="effect != null">effect
|
||||
=
|
||||
#{effect},</if>
|
||||
<if test="personnel != null">personnel
|
||||
=
|
||||
#{personnel},</if>
|
||||
<if test="region != null">region
|
||||
=
|
||||
#{region},</if>
|
||||
<if test="remark != null">remark
|
||||
=
|
||||
#{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteBjdfEventReportingById" parameterType="String">
|
||||
delete
|
||||
from bjdf_event_reporting
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteBjdfEventReportingByIds" parameterType="String">
|
||||
delete from bjdf_event_reporting where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,134 @@
|
||||
<?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.god.wildPlant.mapper.BjdfPlantMonitoringMapper">
|
||||
|
||||
<resultMap type="BjdfPlantMonitoring" id="BjdfPlantMonitoringResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="plantType" column="plant_type"/>
|
||||
<result property="epidemicSituation" column="epidemic_situation"/>
|
||||
<result property="location" column="location"/>
|
||||
<result property="pathogenInfo" column="pathogen_info"/>
|
||||
<result property="reportingTime" column="reporting_time"/>
|
||||
<result property="reportingUser" column="reporting_user"/>
|
||||
<result property="remark" column="remark"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectBjdfPlantMonitoringVo">
|
||||
select id,
|
||||
plant_type,
|
||||
epidemic_situation,
|
||||
location,
|
||||
pathogen_info,
|
||||
reporting_time,
|
||||
reporting_user,
|
||||
remark
|
||||
from bjdf_plant_monitoring
|
||||
</sql>
|
||||
|
||||
<select id="selectBjdfPlantMonitoringList" parameterType="BjdfPlantMonitoring"
|
||||
resultMap="BjdfPlantMonitoringResult">
|
||||
<include refid="selectBjdfPlantMonitoringVo"/>
|
||||
<where>
|
||||
<if test="plantType != null and plantType != ''"> and plant_type =
|
||||
#{plantType}</if>
|
||||
<if test="epidemicSituation != null and epidemicSituation != ''"> and epidemic_situation =
|
||||
#{epidemicSituation}</if>
|
||||
<if test="location != null and location != ''"> and location =
|
||||
#{location}</if>
|
||||
<if test="pathogenInfo != null and pathogenInfo != ''"> and pathogen_info =
|
||||
#{pathogenInfo}</if>
|
||||
<if test="reportingTime != null and reportingTime != ''"> and reporting_time =
|
||||
#{reportingTime}</if>
|
||||
<if test="reportingUser != null and reportingUser != ''"> and reporting_user =
|
||||
#{reportingUser}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectBjdfPlantMonitoringById" parameterType="String" resultMap="BjdfPlantMonitoringResult">
|
||||
<include refid="selectBjdfPlantMonitoringVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertBjdfPlantMonitoring" parameterType="BjdfPlantMonitoring">
|
||||
insert into bjdf_plant_monitoring
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id
|
||||
,</if>
|
||||
<if test="plantType != null and plantType != ''">plant_type
|
||||
,</if>
|
||||
<if test="epidemicSituation != null">epidemic_situation
|
||||
,</if>
|
||||
<if test="location != null">location
|
||||
,</if>
|
||||
<if test="pathogenInfo != null">pathogen_info
|
||||
,</if>
|
||||
<if test="reportingTime != null">reporting_time
|
||||
,</if>
|
||||
<if test="reportingUser != null">reporting_user
|
||||
,</if>
|
||||
<if test="remark != null">remark
|
||||
,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id}
|
||||
,</if>
|
||||
<if test="plantType != null and plantType != ''">#{plantType}
|
||||
,</if>
|
||||
<if test="epidemicSituation != null">#{epidemicSituation}
|
||||
,</if>
|
||||
<if test="location != null">#{location}
|
||||
,</if>
|
||||
<if test="pathogenInfo != null">#{pathogenInfo}
|
||||
,</if>
|
||||
<if test="reportingTime != null">#{reportingTime}
|
||||
,</if>
|
||||
<if test="reportingUser != null">#{reportingUser}
|
||||
,</if>
|
||||
<if test="remark != null">#{remark}
|
||||
,</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateBjdfPlantMonitoring" parameterType="BjdfPlantMonitoring">
|
||||
update bjdf_plant_monitoring
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="plantType != null and plantType != ''">plant_type
|
||||
=
|
||||
#{plantType},</if>
|
||||
<if test="epidemicSituation != null">epidemic_situation
|
||||
=
|
||||
#{epidemicSituation},</if>
|
||||
<if test="location != null">location
|
||||
=
|
||||
#{location},</if>
|
||||
<if test="pathogenInfo != null">pathogen_info
|
||||
=
|
||||
#{pathogenInfo},</if>
|
||||
<if test="reportingTime != null">reporting_time
|
||||
=
|
||||
#{reportingTime},</if>
|
||||
<if test="reportingUser != null">reporting_user
|
||||
=
|
||||
#{reportingUser},</if>
|
||||
<if test="remark != null">remark
|
||||
=
|
||||
#{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteBjdfPlantMonitoringById" parameterType="String">
|
||||
delete
|
||||
from bjdf_plant_monitoring
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteBjdfPlantMonitoringByIds" parameterType="String">
|
||||
delete from bjdf_plant_monitoring where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,151 @@
|
||||
<?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.god.wildPlant.mapper.BjdfWildPlantReportingMapper">
|
||||
|
||||
<resultMap type="BjdfWildPlantReporting" id="BjdfWildPlantReportingResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="plantNum" column="plant_num"/>
|
||||
<result property="plantType" column="plant_type"/>
|
||||
<result property="number" column="number"/>
|
||||
<result property="location" column="location"/>
|
||||
<result property="condition" column="condition"/>
|
||||
<result property="reportingTime" column="reporting_time"/>
|
||||
<result property="reportingUser" column="reporting_user"/>
|
||||
<result property="remark" column="remark"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectBjdfWildPlantReportingVo">
|
||||
select id,
|
||||
plant_num,
|
||||
plant_type,
|
||||
`number`,
|
||||
location,
|
||||
`condition`,
|
||||
reporting_time,
|
||||
reporting_user,
|
||||
remark
|
||||
from bjdf_wild_plant_reporting
|
||||
</sql>
|
||||
|
||||
<select id="selectBjdfWildPlantReportingList" parameterType="BjdfWildPlantReporting"
|
||||
resultMap="BjdfWildPlantReportingResult">
|
||||
<include refid="selectBjdfWildPlantReportingVo"/>
|
||||
<where>
|
||||
<if test="plantNum != null and plantNum != ''"> and plant_num =
|
||||
#{plantNum}</if>
|
||||
<if test="plantType != null and plantType != ''"> and plant_type =
|
||||
#{plantType}</if>
|
||||
<if test="number != null and number != ''"> and `number` =
|
||||
#{number}</if>
|
||||
<if test="location != null and location != ''"> and location =
|
||||
#{location}</if>
|
||||
<if test="condition != null and condition != ''"> and `condition` =
|
||||
#{condition}</if>
|
||||
<if test="reportingTime != null and reportingTime != ''"> and reporting_time =
|
||||
#{reportingTime}</if>
|
||||
<if test="reportingUser != null and reportingUser != ''"> and reporting_user =
|
||||
#{reportingUser}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectBjdfWildPlantReportingById" parameterType="String" resultMap="BjdfWildPlantReportingResult">
|
||||
<include refid="selectBjdfWildPlantReportingVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
<select id="getMaxSnByPrefix" resultType="java.lang.String">
|
||||
SELECT plant_num
|
||||
FROM bjdf_wild_plant_reporting
|
||||
WHERE plant_num LIKE CONCAT(#{prefix}, '%')
|
||||
order by plant_num desc limit 1
|
||||
</select>
|
||||
|
||||
<insert id="insertBjdfWildPlantReporting" parameterType="BjdfWildPlantReporting">
|
||||
insert into bjdf_wild_plant_reporting
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id
|
||||
,</if>
|
||||
<if test="plantNum != null">plant_num
|
||||
,</if>
|
||||
<if test="plantType != null and plantType != ''">plant_type
|
||||
,</if>
|
||||
<if test="number != null">`number``
|
||||
,</if>
|
||||
<if test="location != null">location
|
||||
,</if>
|
||||
<if test="condition != null">`condition`
|
||||
,</if>
|
||||
<if test="reportingTime != null">reporting_time
|
||||
,</if>
|
||||
<if test="reportingUser != null">reporting_user
|
||||
,</if>
|
||||
<if test="remark != null">remark
|
||||
,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id}
|
||||
,</if>
|
||||
<if test="plantNum != null">#{plantNum}
|
||||
,</if>
|
||||
<if test="plantType != null and plantType != ''">#{plantType}
|
||||
,</if>
|
||||
<if test="number != null">#{number}
|
||||
,</if>
|
||||
<if test="location != null">#{location}
|
||||
,</if>
|
||||
<if test="condition != null">#{condition}
|
||||
,</if>
|
||||
<if test="reportingTime != null">#{reportingTime}
|
||||
,</if>
|
||||
<if test="reportingUser != null">#{reportingUser}
|
||||
,</if>
|
||||
<if test="remark != null">#{remark}
|
||||
,</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateBjdfWildPlantReporting" parameterType="BjdfWildPlantReporting">
|
||||
update bjdf_wild_plant_reporting
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="plantNum != null">plant_num
|
||||
=
|
||||
#{plantNum},</if>
|
||||
<if test="plantType != null and plantType != ''">plant_type
|
||||
=
|
||||
#{plantType},</if>
|
||||
<if test="number != null">`number`
|
||||
=
|
||||
#{number},</if>
|
||||
<if test="location != null">location
|
||||
=
|
||||
#{location},</if>
|
||||
<if test="condition != null">`condition`
|
||||
=
|
||||
#{condition},</if>
|
||||
<if test="reportingTime != null">reporting_time
|
||||
=
|
||||
#{reportingTime},</if>
|
||||
<if test="reportingUser != null">reporting_user
|
||||
=
|
||||
#{reportingUser},</if>
|
||||
<if test="remark != null">remark
|
||||
=
|
||||
#{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteBjdfWildPlantReportingById" parameterType="String">
|
||||
delete
|
||||
from bjdf_wild_plant_reporting
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteBjdfWildPlantReportingByIds" parameterType="String">
|
||||
delete from bjdf_wild_plant_reporting where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
BIN
god-ui/dump.rdb
BIN
god-ui/dump.rdb
Binary file not shown.
44
god-ui/src/api/wildPlant/bjdfDiseasePestPrevention.js
Normal file
44
god-ui/src/api/wildPlant/bjdfDiseasePestPrevention.js
Normal file
@ -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'
|
||||
})
|
||||
}
|
44
god-ui/src/api/wildPlant/bjdfEventReporting.js
Normal file
44
god-ui/src/api/wildPlant/bjdfEventReporting.js
Normal file
@ -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'
|
||||
})
|
||||
}
|
44
god-ui/src/api/wildPlant/bjdfPlantMonitoring.js
Normal file
44
god-ui/src/api/wildPlant/bjdfPlantMonitoring.js
Normal file
@ -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'
|
||||
})
|
||||
}
|
44
god-ui/src/api/wildPlant/bjdfWildPlantReporting.js
Normal file
44
god-ui/src/api/wildPlant/bjdfWildPlantReporting.js
Normal file
@ -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'
|
||||
})
|
||||
}
|
313
god-ui/src/views/wildPlant/bjdfDiseasePestPrevention/index.vue
Normal file
313
god-ui/src/views/wildPlant/bjdfDiseasePestPrevention/index.vue
Normal file
@ -0,0 +1,313 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="虫害名称" prop="epidemicSituation">
|
||||
<el-input
|
||||
v-model="queryParams.epidemicSituation"
|
||||
placeholder="请输入虫害名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="植物类型" prop="plantType">
|
||||
<el-input
|
||||
v-model="queryParams.plantType"
|
||||
placeholder="请输入植物类型"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['wildPlant:bjdfDiseasePestPrevention:add']"
|
||||
>新增
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['wildPlant:bjdfDiseasePestPrevention:edit']"
|
||||
>修改
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['wildPlant:bjdfDiseasePestPrevention:remove']"
|
||||
>删除
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['wildPlant:bjdfDiseasePestPrevention:export']"
|
||||
>导出
|
||||
</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="bjdfDiseasePestPreventionList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center"/>
|
||||
<el-table-column label="虫害名称" align="center" prop="epidemicSituation"/>
|
||||
<el-table-column label="植物类型" align="center" prop="plantType"/>
|
||||
<el-table-column label="预防措施" align="center" prop="prevent"/>
|
||||
<el-table-column label="处理措施" align="center" prop="handle"/>
|
||||
<el-table-column label="处理时间" align="center" prop="handleTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.handleTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="负责人" align="center" prop="user"/>
|
||||
<!-- <el-table-column label="备注" align="center" prop="remark"/>-->
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['wildPlant:bjdfDiseasePestPrevention:edit']"
|
||||
>修改
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['wildPlant:bjdfDiseasePestPrevention:remove']"
|
||||
>删除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改野生植物病虫害防控措施对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="虫害名称" prop="epidemicSituation">
|
||||
<el-input v-model="form.epidemicSituation" placeholder="请输入虫害名称"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="植物类型" prop="plantType">
|
||||
<el-input v-model="form.plantType" placeholder="请输入植物类型"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="预防措施" prop="prevent">
|
||||
<el-input v-model="form.prevent" type="textarea" placeholder="请输入内容"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="处理措施" prop="handle">
|
||||
<el-input v-model="form.handle" type="textarea" placeholder="请输入内容"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="处理时间" prop="handleTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.handleTime"
|
||||
type="datetime"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择处理时间"
|
||||
>
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="负责人" prop="user">
|
||||
<el-input v-model="form.user" placeholder="请输入负责人"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容"/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
listBjdfDiseasePestPrevention,
|
||||
getBjdfDiseasePestPrevention,
|
||||
delBjdfDiseasePestPrevention,
|
||||
addBjdfDiseasePestPrevention,
|
||||
updateBjdfDiseasePestPrevention
|
||||
} from '@/api/wildPlant/bjdfDiseasePestPrevention'
|
||||
|
||||
export default {
|
||||
name: 'BjdfDiseasePestPrevention',
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 野生植物病虫害防控措施表格数据
|
||||
bjdfDiseasePestPreventionList: [],
|
||||
// 弹出层标题
|
||||
title: '',
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
epidemicSituation: null,
|
||||
plantType: null,
|
||||
prevent: null,
|
||||
handle: null,
|
||||
handleTime: null,
|
||||
user: null
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
epidemicSituation: [
|
||||
{ required: true, message: '虫害名称不能为空', trigger: 'blur' }
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
/** 查询野生植物病虫害防控措施列表 */
|
||||
getList() {
|
||||
this.loading = true
|
||||
listBjdfDiseasePestPrevention(this.queryParams).then(response => {
|
||||
this.bjdfDiseasePestPreventionList = response.rows
|
||||
this.total = response.total
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false
|
||||
this.reset()
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
epidemicSituation: null,
|
||||
plantType: null,
|
||||
prevent: null,
|
||||
handle: null,
|
||||
handleTime: null,
|
||||
user: null,
|
||||
remark: null
|
||||
}
|
||||
this.resetForm('form')
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1
|
||||
this.getList()
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm('queryForm')
|
||||
this.handleQuery()
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id)
|
||||
this.single = selection.length !== 1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset()
|
||||
this.open = true
|
||||
this.title = '添加野生植物病虫害防控措施'
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset()
|
||||
const id = row.id || this.ids
|
||||
getBjdfDiseasePestPrevention(id).then(response => {
|
||||
this.form = response.data
|
||||
this.open = true
|
||||
this.title = '修改野生植物病虫害防控措施'
|
||||
})
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs['form'].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateBjdfDiseasePestPrevention(this.form).then(response => {
|
||||
this.$modal.msgSuccess('修改成功')
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
} else {
|
||||
addBjdfDiseasePestPrevention(this.form).then(response => {
|
||||
this.$modal.msgSuccess('新增成功')
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids
|
||||
this.$modal.confirm('是否确认删除野生植物病虫害防控措施编号为"' + ids + '"的数据项?').then(function() {
|
||||
return delBjdfDiseasePestPrevention(ids)
|
||||
}).then(() => {
|
||||
this.getList()
|
||||
this.$modal.msgSuccess('删除成功')
|
||||
}).catch(() => {
|
||||
})
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('wildPlant/bjdfDiseasePestPrevention/export', {
|
||||
...this.queryParams
|
||||
}, `bjdfDiseasePestPrevention_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
317
god-ui/src/views/wildPlant/bjdfEventReporting/index.vue
Normal file
317
god-ui/src/views/wildPlant/bjdfEventReporting/index.vue
Normal file
@ -0,0 +1,317 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="事件名称" prop="eventName">
|
||||
<el-input
|
||||
v-model="queryParams.eventName"
|
||||
placeholder="请输入事件名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="发现区域" prop="region">
|
||||
<el-input
|
||||
v-model="queryParams.region"
|
||||
placeholder="请输入发现区域"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['wildPlant:bjdfEventReporting:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['wildPlant:bjdfEventReporting:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['wildPlant:bjdfEventReporting:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['wildPlant:bjdfEventReporting:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="bjdfEventReportingList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="事件名称" align="center" prop="eventName" />
|
||||
<el-table-column label="发生时间" align="center" prop="occurrenceTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.occurrenceTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="新发病虫害" align="center" prop="newHair">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.sys_yes_no" :value="scope.row.newHair"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="变化趋势描述" align="center" prop="trend" />
|
||||
<el-table-column label="影响" align="center" prop="effect" show-overflow-tooltip="true"/>
|
||||
<el-table-column label="发现人员" align="center" prop="personnel" />
|
||||
<el-table-column label="发现区域" align="center" prop="region" />
|
||||
<el-table-column label="备注" align="center" prop="remark" show-overflow-tooltip="true"/>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['wildPlant:bjdfEventReporting:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['wildPlant:bjdfEventReporting:remove']"
|
||||
>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改病虫害事件上报对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="事件名称" prop="eventName">
|
||||
<el-input v-model="form.eventName" placeholder="请输入事件名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="发生时间" prop="occurrenceTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.occurrenceTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择发生时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="新发病虫害" prop="newHair">
|
||||
<el-select v-model="form.newHair" placeholder="请选择新发病虫害">
|
||||
<el-option
|
||||
v-for="dict in dict.type.sys_yes_no"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="变化趋势描述" prop="trend">
|
||||
<el-input v-model="form.trend" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="影响" prop="effect">
|
||||
<el-input v-model="form.effect" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="发现人员" prop="personnel">
|
||||
<el-input v-model="form.personnel" placeholder="请输入发现人员" />
|
||||
</el-form-item>
|
||||
<el-form-item label="发现区域" prop="region">
|
||||
<el-input v-model="form.region" placeholder="请输入发现区域" />
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listBjdfEventReporting, getBjdfEventReporting, delBjdfEventReporting, addBjdfEventReporting, updateBjdfEventReporting } from "@/api/wildPlant/bjdfEventReporting";
|
||||
|
||||
export default {
|
||||
name: "BjdfEventReporting",
|
||||
dicts: ['sys_yes_no'],
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 病虫害事件上报表格数据
|
||||
bjdfEventReportingList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
eventName: null,
|
||||
occurrenceTime: null,
|
||||
newHair: null,
|
||||
trend: null,
|
||||
effect: null,
|
||||
personnel: null,
|
||||
region: null,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
eventName: [
|
||||
{ required: true, message: "事件名称不能为空", trigger: "blur" }
|
||||
],
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询病虫害事件上报列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listBjdfEventReporting(this.queryParams).then(response => {
|
||||
this.bjdfEventReportingList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
eventName: null,
|
||||
occurrenceTime: null,
|
||||
newHair: null,
|
||||
trend: null,
|
||||
effect: null,
|
||||
personnel: null,
|
||||
region: null,
|
||||
remark: null
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id)
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加病虫害事件上报";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
getBjdfEventReporting(id).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改病虫害事件上报";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateBjdfEventReporting(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addBjdfEventReporting(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal.confirm('是否确认删除病虫害事件上报编号为"' + ids + '"的数据项?').then(function() {
|
||||
return delBjdfEventReporting(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('wildPlant/bjdfEventReporting/export', {
|
||||
...this.queryParams
|
||||
}, `bjdfEventReporting_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
321
god-ui/src/views/wildPlant/bjdfPlantMonitoring/index.vue
Normal file
321
god-ui/src/views/wildPlant/bjdfPlantMonitoring/index.vue
Normal file
@ -0,0 +1,321 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="植物种类" prop="plantType">
|
||||
<el-input
|
||||
v-model="queryParams.plantType"
|
||||
placeholder="请输入植物种类"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="虫害" prop="epidemicSituation">
|
||||
<el-input
|
||||
v-model="queryParams.epidemicSituation"
|
||||
placeholder="请输入虫害"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="地点" prop="location">
|
||||
<el-input
|
||||
v-model="queryParams.location"
|
||||
placeholder="请输入地点"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['wildPlant:bjdfPlantMonitoring:add']"
|
||||
>新增
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['wildPlant:bjdfPlantMonitoring:edit']"
|
||||
>修改
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['wildPlant:bjdfPlantMonitoring:remove']"
|
||||
>删除
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['wildPlant:bjdfPlantMonitoring:export']"
|
||||
>导出
|
||||
</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="bjdfPlantMonitoringList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center"/>
|
||||
<el-table-column label="植物种类" align="center" prop="plantType"/>
|
||||
<el-table-column label="虫害" align="center" prop="epidemicSituation"/>
|
||||
<el-table-column label="地点" align="center" prop="location"/>
|
||||
<el-table-column label="病原体信息" align="center" prop="pathogenInfo" show-overflow-tooltip="true"/>
|
||||
<el-table-column label="上报时间" align="center" prop="reportingTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.reportingTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="上报人" align="center" prop="reportingUser"/>
|
||||
<el-table-column label="备注" align="center" prop="remark" show-overflow-tooltip="true"/>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['wildPlant:bjdfPlantMonitoring:edit']"
|
||||
>修改
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['wildPlant:bjdfPlantMonitoring:remove']"
|
||||
>删除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改野生植物疫源监测对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="植物种类" prop="plantType">
|
||||
<el-input v-model="form.plantType" placeholder="请输入植物种类"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="虫害" prop="epidemicSituation">
|
||||
<el-input v-model="form.epidemicSituation" placeholder="请输入虫害"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="地点" prop="location">
|
||||
<el-input v-model="form.location" placeholder="请输入地点"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="病原体信息" prop="pathogenInfo">
|
||||
<el-input v-model="form.pathogenInfo" type="textarea" placeholder="请输入内容"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="上报时间" prop="reportingTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.reportingTime"
|
||||
type="datetime"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
placeholder="请选择上报时间"
|
||||
>
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="上报人" prop="reportingUser">
|
||||
<el-input v-model="form.reportingUser" placeholder="请输入上报人"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容"/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
listBjdfPlantMonitoring,
|
||||
getBjdfPlantMonitoring,
|
||||
delBjdfPlantMonitoring,
|
||||
addBjdfPlantMonitoring,
|
||||
updateBjdfPlantMonitoring
|
||||
} from '@/api/wildPlant/bjdfPlantMonitoring'
|
||||
|
||||
export default {
|
||||
name: 'BjdfPlantMonitoring',
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 野生植物疫源监测表格数据
|
||||
bjdfPlantMonitoringList: [],
|
||||
// 弹出层标题
|
||||
title: '',
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
plantType: null,
|
||||
epidemicSituation: null,
|
||||
location: null,
|
||||
pathogenInfo: null,
|
||||
reportingTime: null,
|
||||
reportingUser: null
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
plantType: [
|
||||
{ required: true, message: '植物种类不能为空', trigger: 'blur' }
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
/** 查询野生植物疫源监测列表 */
|
||||
getList() {
|
||||
this.loading = true
|
||||
listBjdfPlantMonitoring(this.queryParams).then(response => {
|
||||
this.bjdfPlantMonitoringList = response.rows
|
||||
this.total = response.total
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false
|
||||
this.reset()
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
plantType: null,
|
||||
epidemicSituation: null,
|
||||
location: null,
|
||||
pathogenInfo: null,
|
||||
reportingTime: null,
|
||||
reportingUser: null,
|
||||
remark: null
|
||||
}
|
||||
this.resetForm('form')
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1
|
||||
this.getList()
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm('queryForm')
|
||||
this.handleQuery()
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id)
|
||||
this.single = selection.length !== 1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset()
|
||||
this.open = true
|
||||
this.title = '添加野生植物疫源监测'
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset()
|
||||
const id = row.id || this.ids
|
||||
getBjdfPlantMonitoring(id).then(response => {
|
||||
this.form = response.data
|
||||
this.open = true
|
||||
this.title = '修改野生植物疫源监测'
|
||||
})
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs['form'].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateBjdfPlantMonitoring(this.form).then(response => {
|
||||
this.$modal.msgSuccess('修改成功')
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
} else {
|
||||
addBjdfPlantMonitoring(this.form).then(response => {
|
||||
this.$modal.msgSuccess('新增成功')
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids
|
||||
this.$modal.confirm('是否确认删除野生植物疫源监测编号为"' + ids + '"的数据项?').then(function() {
|
||||
return delBjdfPlantMonitoring(ids)
|
||||
}).then(() => {
|
||||
this.getList()
|
||||
this.$modal.msgSuccess('删除成功')
|
||||
}).catch(() => {
|
||||
})
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('wildPlant/bjdfPlantMonitoring/export', {
|
||||
...this.queryParams
|
||||
}, `bjdfPlantMonitoring_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
316
god-ui/src/views/wildPlant/bjdfWildPlantReporting/index.vue
Normal file
316
god-ui/src/views/wildPlant/bjdfWildPlantReporting/index.vue
Normal file
@ -0,0 +1,316 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="植物种类" prop="plantType">
|
||||
<el-input
|
||||
v-model="queryParams.plantType"
|
||||
placeholder="请输入植物种类"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="上报人" prop="reportingUser">
|
||||
<el-input
|
||||
v-model="queryParams.reportingUser"
|
||||
placeholder="请输入上报人"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['wildPlant:bjdfWildPlantReporting:add']"
|
||||
>新增
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['wildPlant:bjdfWildPlantReporting:edit']"
|
||||
>修改
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['wildPlant:bjdfWildPlantReporting:remove']"
|
||||
>删除
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['wildPlant:bjdfWildPlantReporting:export']"
|
||||
>导出
|
||||
</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="bjdfWildPlantReportingList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center"/>
|
||||
<el-table-column label="植物编号" align="center" prop="plantNum"/>
|
||||
<el-table-column label="植物种类" align="center" prop="plantType"/>
|
||||
<el-table-column label="数量" align="center" prop="number"/>
|
||||
<el-table-column label="分布地点" align="center" prop="location"/>
|
||||
<el-table-column label="生长状况" align="center" prop="condition" show-overflow-tooltip="true"/>
|
||||
<el-table-column label="上报时间" align="center" prop="reportingTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.reportingTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="上报人" align="center" prop="reportingUser"/>
|
||||
<el-table-column label="备注" align="center" prop="remark" show-overflow-tooltip="true"/>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['wildPlant:bjdfWildPlantReporting:edit']"
|
||||
>修改
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['wildPlant:bjdfWildPlantReporting:remove']"
|
||||
>删除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改野生植物信息对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="植物种类" prop="plantType">
|
||||
<el-input v-model="form.plantType" placeholder="请输入植物种类"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="数量" prop="number">
|
||||
<el-input v-model="form.number" placeholder="请输入数量"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="分布地点" prop="location">
|
||||
<el-input v-model="form.location" placeholder="请输入分布地点"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="生长状况" prop="condition">
|
||||
<el-input v-model="form.condition" placeholder="请输入生长状况"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="上报时间" prop="reportingTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.reportingTime"
|
||||
type="datetime"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
placeholder="请选择上报时间"
|
||||
>
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="上报人" prop="reportingUser">
|
||||
<el-input v-model="form.reportingUser" placeholder="请输入上报人"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" placeholder="请输入备注"/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
listBjdfWildPlantReporting,
|
||||
getBjdfWildPlantReporting,
|
||||
delBjdfWildPlantReporting,
|
||||
addBjdfWildPlantReporting,
|
||||
updateBjdfWildPlantReporting
|
||||
} from '@/api/wildPlant/bjdfWildPlantReporting'
|
||||
|
||||
export default {
|
||||
name: 'BjdfWildPlantReporting',
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 野生植物信息表格数据
|
||||
bjdfWildPlantReportingList: [],
|
||||
// 弹出层标题
|
||||
title: '',
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
plantNum: null,
|
||||
plantType: null,
|
||||
number: null,
|
||||
location: null,
|
||||
condition: null,
|
||||
reportingTime: null,
|
||||
reportingUser: null
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
plantType: [
|
||||
{ required: true, message: '植物种类不能为空', trigger: 'blur' }
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
/** 查询野生植物信息列表 */
|
||||
getList() {
|
||||
this.loading = true
|
||||
listBjdfWildPlantReporting(this.queryParams).then(response => {
|
||||
this.bjdfWildPlantReportingList = response.rows
|
||||
this.total = response.total
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false
|
||||
this.reset()
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
plantNum: null,
|
||||
plantType: null,
|
||||
number: null,
|
||||
location: null,
|
||||
condition: null,
|
||||
reportingTime: null,
|
||||
reportingUser: null,
|
||||
remark: null
|
||||
}
|
||||
this.resetForm('form')
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1
|
||||
this.getList()
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm('queryForm')
|
||||
this.handleQuery()
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id)
|
||||
this.single = selection.length !== 1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset()
|
||||
this.open = true
|
||||
this.title = '添加野生植物信息'
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset()
|
||||
const id = row.id || this.ids
|
||||
getBjdfWildPlantReporting(id).then(response => {
|
||||
this.form = response.data
|
||||
this.open = true
|
||||
this.title = '修改野生植物信息'
|
||||
})
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs['form'].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateBjdfWildPlantReporting(this.form).then(response => {
|
||||
this.$modal.msgSuccess('修改成功')
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
} else {
|
||||
addBjdfWildPlantReporting(this.form).then(response => {
|
||||
this.$modal.msgSuccess('新增成功')
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids
|
||||
this.$modal.confirm('是否确认删除野生植物信息编号为"' + ids + '"的数据项?').then(function() {
|
||||
return delBjdfWildPlantReporting(ids)
|
||||
}).then(() => {
|
||||
this.getList()
|
||||
this.$modal.msgSuccess('删除成功')
|
||||
}).catch(() => {
|
||||
})
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('wildPlant/bjdfWildPlantReporting/export', {
|
||||
...this.queryParams
|
||||
}, `bjdfWildPlantReporting_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user