parent
03beffc9c8
commit
238da2c6e3
@ -0,0 +1,104 @@
|
|||||||
|
package com.ruoyi.szxc.controller;
|
||||||
|
|
||||||
|
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.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcLdInfo;
|
||||||
|
import com.ruoyi.szxc.service.ISzxcLdInfoService;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 楼栋信息Controller
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/szxc/ldinfo")
|
||||||
|
public class SzxcLdInfoController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ISzxcLdInfoService szxcLdInfoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询楼栋信息列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:ldinfo:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(SzxcLdInfo szxcLdInfo)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<SzxcLdInfo> list = szxcLdInfoService.selectSzxcLdInfoList(szxcLdInfo);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出楼栋信息列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:ldinfo:export')")
|
||||||
|
@Log(title = "楼栋信息", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, SzxcLdInfo szxcLdInfo)
|
||||||
|
{
|
||||||
|
List<SzxcLdInfo> list = szxcLdInfoService.selectSzxcLdInfoList(szxcLdInfo);
|
||||||
|
ExcelUtil<SzxcLdInfo> util = new ExcelUtil<SzxcLdInfo>(SzxcLdInfo.class);
|
||||||
|
util.exportExcel(response, list, "楼栋信息数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取楼栋信息详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:ldinfo:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return success(szxcLdInfoService.selectSzxcLdInfoById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增楼栋信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:ldinfo:add')")
|
||||||
|
@Log(title = "楼栋信息", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody SzxcLdInfo szxcLdInfo)
|
||||||
|
{
|
||||||
|
return toAjax(szxcLdInfoService.insertSzxcLdInfo(szxcLdInfo));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改楼栋信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:ldinfo:edit')")
|
||||||
|
@Log(title = "楼栋信息", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody SzxcLdInfo szxcLdInfo)
|
||||||
|
{
|
||||||
|
return toAjax(szxcLdInfoService.updateSzxcLdInfo(szxcLdInfo));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除楼栋信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:ldinfo:remove')")
|
||||||
|
@Log(title = "楼栋信息", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(szxcLdInfoService.deleteSzxcLdInfoByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,104 @@
|
|||||||
|
package com.ruoyi.szxc.controller;
|
||||||
|
|
||||||
|
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.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcLunbo;
|
||||||
|
import com.ruoyi.szxc.service.ISzxcLunboService;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 轮播设置Controller
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/szxc/lunbo")
|
||||||
|
public class SzxcLunboController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ISzxcLunboService szxcLunboService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询轮播设置列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:lunbo:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(SzxcLunbo szxcLunbo)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<SzxcLunbo> list = szxcLunboService.selectSzxcLunboList(szxcLunbo);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出轮播设置列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:lunbo:export')")
|
||||||
|
@Log(title = "轮播设置", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, SzxcLunbo szxcLunbo)
|
||||||
|
{
|
||||||
|
List<SzxcLunbo> list = szxcLunboService.selectSzxcLunboList(szxcLunbo);
|
||||||
|
ExcelUtil<SzxcLunbo> util = new ExcelUtil<SzxcLunbo>(SzxcLunbo.class);
|
||||||
|
util.exportExcel(response, list, "轮播设置数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取轮播设置详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:lunbo:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return success(szxcLunboService.selectSzxcLunboById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增轮播设置
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:lunbo:add')")
|
||||||
|
@Log(title = "轮播设置", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody SzxcLunbo szxcLunbo)
|
||||||
|
{
|
||||||
|
return toAjax(szxcLunboService.insertSzxcLunbo(szxcLunbo));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改轮播设置
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:lunbo:edit')")
|
||||||
|
@Log(title = "轮播设置", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody SzxcLunbo szxcLunbo)
|
||||||
|
{
|
||||||
|
return toAjax(szxcLunboService.updateSzxcLunbo(szxcLunbo));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除轮播设置
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:lunbo:remove')")
|
||||||
|
@Log(title = "轮播设置", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(szxcLunboService.deleteSzxcLunboByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,104 @@
|
|||||||
|
package com.ruoyi.szxc.controller;
|
||||||
|
|
||||||
|
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.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcPublicActivily;
|
||||||
|
import com.ruoyi.szxc.service.ISzxcPublicActivilyService;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 公益活动Controller
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/szxc/activily")
|
||||||
|
public class SzxcPublicActivilyController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ISzxcPublicActivilyService szxcPublicActivilyService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询公益活动列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:activily:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(SzxcPublicActivily szxcPublicActivily)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<SzxcPublicActivily> list = szxcPublicActivilyService.selectSzxcPublicActivilyList(szxcPublicActivily);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出公益活动列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:activily:export')")
|
||||||
|
@Log(title = "公益活动", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, SzxcPublicActivily szxcPublicActivily)
|
||||||
|
{
|
||||||
|
List<SzxcPublicActivily> list = szxcPublicActivilyService.selectSzxcPublicActivilyList(szxcPublicActivily);
|
||||||
|
ExcelUtil<SzxcPublicActivily> util = new ExcelUtil<SzxcPublicActivily>(SzxcPublicActivily.class);
|
||||||
|
util.exportExcel(response, list, "公益活动数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取公益活动详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:activily:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return success(szxcPublicActivilyService.selectSzxcPublicActivilyById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增公益活动
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:activily:add')")
|
||||||
|
@Log(title = "公益活动", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody SzxcPublicActivily szxcPublicActivily)
|
||||||
|
{
|
||||||
|
return toAjax(szxcPublicActivilyService.insertSzxcPublicActivily(szxcPublicActivily));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改公益活动
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:activily:edit')")
|
||||||
|
@Log(title = "公益活动", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody SzxcPublicActivily szxcPublicActivily)
|
||||||
|
{
|
||||||
|
return toAjax(szxcPublicActivilyService.updateSzxcPublicActivily(szxcPublicActivily));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除公益活动
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:activily:remove')")
|
||||||
|
@Log(title = "公益活动", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(szxcPublicActivilyService.deleteSzxcPublicActivilyByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,104 @@
|
|||||||
|
package com.ruoyi.szxc.controller;
|
||||||
|
|
||||||
|
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.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcWorkGuide;
|
||||||
|
import com.ruoyi.szxc.service.ISzxcWorkGuideService;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 办事指南Controller
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/szxc/guide")
|
||||||
|
public class SzxcWorkGuideController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ISzxcWorkGuideService szxcWorkGuideService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询办事指南列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:guide:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(SzxcWorkGuide szxcWorkGuide)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<SzxcWorkGuide> list = szxcWorkGuideService.selectSzxcWorkGuideList(szxcWorkGuide);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出办事指南列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:guide:export')")
|
||||||
|
@Log(title = "办事指南", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, SzxcWorkGuide szxcWorkGuide)
|
||||||
|
{
|
||||||
|
List<SzxcWorkGuide> list = szxcWorkGuideService.selectSzxcWorkGuideList(szxcWorkGuide);
|
||||||
|
ExcelUtil<SzxcWorkGuide> util = new ExcelUtil<SzxcWorkGuide>(SzxcWorkGuide.class);
|
||||||
|
util.exportExcel(response, list, "办事指南数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取办事指南详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:guide:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return success(szxcWorkGuideService.selectSzxcWorkGuideById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增办事指南
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:guide:add')")
|
||||||
|
@Log(title = "办事指南", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody SzxcWorkGuide szxcWorkGuide)
|
||||||
|
{
|
||||||
|
return toAjax(szxcWorkGuideService.insertSzxcWorkGuide(szxcWorkGuide));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改办事指南
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:guide:edit')")
|
||||||
|
@Log(title = "办事指南", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody SzxcWorkGuide szxcWorkGuide)
|
||||||
|
{
|
||||||
|
return toAjax(szxcWorkGuideService.updateSzxcWorkGuide(szxcWorkGuide));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除办事指南
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:guide:remove')")
|
||||||
|
@Log(title = "办事指南", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(szxcWorkGuideService.deleteSzxcWorkGuideByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,104 @@
|
|||||||
|
package com.ruoyi.szxc.controller;
|
||||||
|
|
||||||
|
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.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcXqInfo;
|
||||||
|
import com.ruoyi.szxc.service.ISzxcXqInfoService;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 小区信息Controller
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/szxc/xqinfo")
|
||||||
|
public class SzxcXqInfoController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ISzxcXqInfoService szxcXqInfoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询小区信息列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:xqinfo:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(SzxcXqInfo szxcXqInfo)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<SzxcXqInfo> list = szxcXqInfoService.selectSzxcXqInfoList(szxcXqInfo);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出小区信息列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:xqinfo:export')")
|
||||||
|
@Log(title = "小区信息", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, SzxcXqInfo szxcXqInfo)
|
||||||
|
{
|
||||||
|
List<SzxcXqInfo> list = szxcXqInfoService.selectSzxcXqInfoList(szxcXqInfo);
|
||||||
|
ExcelUtil<SzxcXqInfo> util = new ExcelUtil<SzxcXqInfo>(SzxcXqInfo.class);
|
||||||
|
util.exportExcel(response, list, "小区信息数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取小区信息详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:xqinfo:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return success(szxcXqInfoService.selectSzxcXqInfoById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增小区信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:xqinfo:add')")
|
||||||
|
@Log(title = "小区信息", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody SzxcXqInfo szxcXqInfo)
|
||||||
|
{
|
||||||
|
return toAjax(szxcXqInfoService.insertSzxcXqInfo(szxcXqInfo));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改小区信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:xqinfo:edit')")
|
||||||
|
@Log(title = "小区信息", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody SzxcXqInfo szxcXqInfo)
|
||||||
|
{
|
||||||
|
return toAjax(szxcXqInfoService.updateSzxcXqInfo(szxcXqInfo));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除小区信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:xqinfo:remove')")
|
||||||
|
@Log(title = "小区信息", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(szxcXqInfoService.deleteSzxcXqInfoByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,223 @@
|
|||||||
|
package com.ruoyi.szxc.domain;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 楼栋信息对象 szxc_ld_info
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
public class SzxcLdInfo extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** id */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 所属小区 */
|
||||||
|
@Excel(name = "所属小区")
|
||||||
|
private Long xqId;
|
||||||
|
|
||||||
|
/** 楼栋名称 */
|
||||||
|
@Excel(name = "楼栋名称")
|
||||||
|
private String ldName;
|
||||||
|
|
||||||
|
/** 类型(0小区楼栋1独立房2其它) */
|
||||||
|
@Excel(name = "类型(0小区楼栋1独立房2其它)")
|
||||||
|
private String xqType;
|
||||||
|
|
||||||
|
/** 类别字典 */
|
||||||
|
@Excel(name = "类别字典")
|
||||||
|
private String ldSort;
|
||||||
|
|
||||||
|
/** 楼栋结构字典 */
|
||||||
|
@Excel(name = "楼栋结构字典")
|
||||||
|
private String ldjg;
|
||||||
|
|
||||||
|
/** 取暖方式 */
|
||||||
|
@Excel(name = "取暖方式")
|
||||||
|
private String qnfs;
|
||||||
|
|
||||||
|
/** 楼层数 */
|
||||||
|
@Excel(name = "楼层数")
|
||||||
|
private Long lcNum;
|
||||||
|
|
||||||
|
/** 单元数 */
|
||||||
|
@Excel(name = "单元数")
|
||||||
|
private Long unitNum;
|
||||||
|
|
||||||
|
/** 户数 */
|
||||||
|
@Excel(name = "户数")
|
||||||
|
private Long huNum;
|
||||||
|
|
||||||
|
/** 楼栋描述 */
|
||||||
|
@Excel(name = "楼栋描述")
|
||||||
|
private String ldDescribe;
|
||||||
|
|
||||||
|
/** 部门id */
|
||||||
|
@Excel(name = "部门id")
|
||||||
|
private Long deptId;
|
||||||
|
|
||||||
|
/** 所属网格 */
|
||||||
|
@Excel(name = "所属网格")
|
||||||
|
private String deptName;
|
||||||
|
|
||||||
|
/** 创建者ID */
|
||||||
|
@Excel(name = "创建者ID")
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setXqId(Long xqId)
|
||||||
|
{
|
||||||
|
this.xqId = xqId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getXqId()
|
||||||
|
{
|
||||||
|
return xqId;
|
||||||
|
}
|
||||||
|
public void setLdName(String ldName)
|
||||||
|
{
|
||||||
|
this.ldName = ldName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLdName()
|
||||||
|
{
|
||||||
|
return ldName;
|
||||||
|
}
|
||||||
|
public void setXqType(String xqType)
|
||||||
|
{
|
||||||
|
this.xqType = xqType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getXqType()
|
||||||
|
{
|
||||||
|
return xqType;
|
||||||
|
}
|
||||||
|
public void setLdSort(String ldSort)
|
||||||
|
{
|
||||||
|
this.ldSort = ldSort;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLdSort()
|
||||||
|
{
|
||||||
|
return ldSort;
|
||||||
|
}
|
||||||
|
public void setLdjg(String ldjg)
|
||||||
|
{
|
||||||
|
this.ldjg = ldjg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLdjg()
|
||||||
|
{
|
||||||
|
return ldjg;
|
||||||
|
}
|
||||||
|
public void setQnfs(String qnfs)
|
||||||
|
{
|
||||||
|
this.qnfs = qnfs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getQnfs()
|
||||||
|
{
|
||||||
|
return qnfs;
|
||||||
|
}
|
||||||
|
public void setLcNum(Long lcNum)
|
||||||
|
{
|
||||||
|
this.lcNum = lcNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getLcNum()
|
||||||
|
{
|
||||||
|
return lcNum;
|
||||||
|
}
|
||||||
|
public void setUnitNum(Long unitNum)
|
||||||
|
{
|
||||||
|
this.unitNum = unitNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getUnitNum()
|
||||||
|
{
|
||||||
|
return unitNum;
|
||||||
|
}
|
||||||
|
public void setHuNum(Long huNum)
|
||||||
|
{
|
||||||
|
this.huNum = huNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getHuNum()
|
||||||
|
{
|
||||||
|
return huNum;
|
||||||
|
}
|
||||||
|
public void setLdDescribe(String ldDescribe)
|
||||||
|
{
|
||||||
|
this.ldDescribe = ldDescribe;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLdDescribe()
|
||||||
|
{
|
||||||
|
return ldDescribe;
|
||||||
|
}
|
||||||
|
public void setDeptId(Long deptId)
|
||||||
|
{
|
||||||
|
this.deptId = deptId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDeptId()
|
||||||
|
{
|
||||||
|
return deptId;
|
||||||
|
}
|
||||||
|
public void setDeptName(String deptName)
|
||||||
|
{
|
||||||
|
this.deptName = deptName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDeptName()
|
||||||
|
{
|
||||||
|
return deptName;
|
||||||
|
}
|
||||||
|
public void setUserId(Long userId)
|
||||||
|
{
|
||||||
|
this.userId = userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getUserId()
|
||||||
|
{
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("xqId", getXqId())
|
||||||
|
.append("ldName", getLdName())
|
||||||
|
.append("xqType", getXqType())
|
||||||
|
.append("ldSort", getLdSort())
|
||||||
|
.append("ldjg", getLdjg())
|
||||||
|
.append("qnfs", getQnfs())
|
||||||
|
.append("lcNum", getLcNum())
|
||||||
|
.append("unitNum", getUnitNum())
|
||||||
|
.append("huNum", getHuNum())
|
||||||
|
.append("ldDescribe", getLdDescribe())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateBy", getUpdateBy())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.append("deptId", getDeptId())
|
||||||
|
.append("deptName", getDeptName())
|
||||||
|
.append("userId", getUserId())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,84 @@
|
|||||||
|
package com.ruoyi.szxc.domain;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 轮播设置对象 szxc_lunbo
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
public class SzxcLunbo extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** id */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 标题 */
|
||||||
|
@Excel(name = "标题")
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
/** 图片地址 */
|
||||||
|
@Excel(name = "图片地址")
|
||||||
|
private String picture;
|
||||||
|
|
||||||
|
/** 简介 */
|
||||||
|
@Excel(name = "简介")
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setTitle(String title)
|
||||||
|
{
|
||||||
|
this.title = title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTitle()
|
||||||
|
{
|
||||||
|
return title;
|
||||||
|
}
|
||||||
|
public void setPicture(String picture)
|
||||||
|
{
|
||||||
|
this.picture = picture;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPicture()
|
||||||
|
{
|
||||||
|
return picture;
|
||||||
|
}
|
||||||
|
public void setContent(String content)
|
||||||
|
{
|
||||||
|
this.content = content;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getContent()
|
||||||
|
{
|
||||||
|
return content;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("title", getTitle())
|
||||||
|
.append("picture", getPicture())
|
||||||
|
.append("content", getContent())
|
||||||
|
.append("remark", getRemark())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateBy", getUpdateBy())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,200 @@
|
|||||||
|
package com.ruoyi.szxc.domain;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 公益活动对象 szxc_public_activily
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
public class SzxcPublicActivily extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** id */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 标题 */
|
||||||
|
@Excel(name = "标题")
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
/** 负责人 */
|
||||||
|
@Excel(name = "负责人")
|
||||||
|
private String leader;
|
||||||
|
|
||||||
|
/** 联系电话 */
|
||||||
|
@Excel(name = "联系电话")
|
||||||
|
private String phone;
|
||||||
|
|
||||||
|
/** 类型(公告/咨询) */
|
||||||
|
@Excel(name = "类型(公告/咨询)")
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/** 活动介绍 */
|
||||||
|
@Excel(name = "活动介绍")
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
/** 级别(县/乡/村) */
|
||||||
|
@Excel(name = "级别(县/乡/村)")
|
||||||
|
private String leave;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date startTime;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date endTime;
|
||||||
|
|
||||||
|
/** 部门id */
|
||||||
|
@Excel(name = "部门id")
|
||||||
|
private Long deptId;
|
||||||
|
|
||||||
|
/** 所属网格 */
|
||||||
|
@Excel(name = "所属网格")
|
||||||
|
private String deptName;
|
||||||
|
|
||||||
|
/** 创建者ID */
|
||||||
|
@Excel(name = "创建者ID")
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setTitle(String title)
|
||||||
|
{
|
||||||
|
this.title = title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTitle()
|
||||||
|
{
|
||||||
|
return title;
|
||||||
|
}
|
||||||
|
public void setLeader(String leader)
|
||||||
|
{
|
||||||
|
this.leader = leader;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLeader()
|
||||||
|
{
|
||||||
|
return leader;
|
||||||
|
}
|
||||||
|
public void setPhone(String phone)
|
||||||
|
{
|
||||||
|
this.phone = phone;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPhone()
|
||||||
|
{
|
||||||
|
return phone;
|
||||||
|
}
|
||||||
|
public void setType(String type)
|
||||||
|
{
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getType()
|
||||||
|
{
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
public void setContent(String content)
|
||||||
|
{
|
||||||
|
this.content = content;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getContent()
|
||||||
|
{
|
||||||
|
return content;
|
||||||
|
}
|
||||||
|
public void setLeave(String leave)
|
||||||
|
{
|
||||||
|
this.leave = leave;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLeave()
|
||||||
|
{
|
||||||
|
return leave;
|
||||||
|
}
|
||||||
|
public void setStartTime(Date startTime)
|
||||||
|
{
|
||||||
|
this.startTime = startTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getStartTime()
|
||||||
|
{
|
||||||
|
return startTime;
|
||||||
|
}
|
||||||
|
public void setEndTime(Date endTime)
|
||||||
|
{
|
||||||
|
this.endTime = endTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getEndTime()
|
||||||
|
{
|
||||||
|
return endTime;
|
||||||
|
}
|
||||||
|
public void setDeptId(Long deptId)
|
||||||
|
{
|
||||||
|
this.deptId = deptId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDeptId()
|
||||||
|
{
|
||||||
|
return deptId;
|
||||||
|
}
|
||||||
|
public void setDeptName(String deptName)
|
||||||
|
{
|
||||||
|
this.deptName = deptName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDeptName()
|
||||||
|
{
|
||||||
|
return deptName;
|
||||||
|
}
|
||||||
|
public void setUserId(Long userId)
|
||||||
|
{
|
||||||
|
this.userId = userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getUserId()
|
||||||
|
{
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("title", getTitle())
|
||||||
|
.append("leader", getLeader())
|
||||||
|
.append("phone", getPhone())
|
||||||
|
.append("type", getType())
|
||||||
|
.append("content", getContent())
|
||||||
|
.append("leave", getLeave())
|
||||||
|
.append("startTime", getStartTime())
|
||||||
|
.append("endTime", getEndTime())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("remark", getRemark())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateBy", getUpdateBy())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.append("deptId", getDeptId())
|
||||||
|
.append("deptName", getDeptName())
|
||||||
|
.append("userId", getUserId())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,84 @@
|
|||||||
|
package com.ruoyi.szxc.domain;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 办事指南对象 szxc_work_guide
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
public class SzxcWorkGuide extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** id */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 标题 */
|
||||||
|
@Excel(name = "标题")
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
/** 简介 */
|
||||||
|
@Excel(name = "简介")
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
/** 状态 */
|
||||||
|
@Excel(name = "状态")
|
||||||
|
private String status;
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setTitle(String title)
|
||||||
|
{
|
||||||
|
this.title = title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTitle()
|
||||||
|
{
|
||||||
|
return title;
|
||||||
|
}
|
||||||
|
public void setContent(String content)
|
||||||
|
{
|
||||||
|
this.content = content;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getContent()
|
||||||
|
{
|
||||||
|
return content;
|
||||||
|
}
|
||||||
|
public void setStatus(String status)
|
||||||
|
{
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStatus()
|
||||||
|
{
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("title", getTitle())
|
||||||
|
.append("content", getContent())
|
||||||
|
.append("status", getStatus())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateBy", getUpdateBy())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.append("remark", getRemark())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,226 @@
|
|||||||
|
package com.ruoyi.szxc.domain;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 小区信息对象 szxc_xq_info
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
public class SzxcXqInfo extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** id */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 类型(0老旧1新2片区散户) */
|
||||||
|
@Excel(name = "类型(0老旧1新2片区散户)")
|
||||||
|
private String xqType;
|
||||||
|
|
||||||
|
/** 楼栋数 */
|
||||||
|
@Excel(name = "楼栋数")
|
||||||
|
private Long ldNum;
|
||||||
|
|
||||||
|
/** 建筑面积 */
|
||||||
|
@Excel(name = "建筑面积")
|
||||||
|
private String jzArea;
|
||||||
|
|
||||||
|
/** 占地面积 */
|
||||||
|
@Excel(name = "占地面积")
|
||||||
|
private String zdArea;
|
||||||
|
|
||||||
|
/** 物业管理方式(0物业公司1业主自治2其他) */
|
||||||
|
@Excel(name = "物业管理方式(0物业公司1业主自治2其他)")
|
||||||
|
private String wyType;
|
||||||
|
|
||||||
|
/** 物业负责人 */
|
||||||
|
@Excel(name = "物业负责人")
|
||||||
|
private String wyResponse;
|
||||||
|
|
||||||
|
/** 联系电话 */
|
||||||
|
@Excel(name = "联系电话")
|
||||||
|
private String wyPhone;
|
||||||
|
|
||||||
|
/** 小区地址 */
|
||||||
|
@Excel(name = "小区地址")
|
||||||
|
private String xqAddress;
|
||||||
|
|
||||||
|
/** 建成日期 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "建成日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date buildDate;
|
||||||
|
|
||||||
|
/** 小区描述 */
|
||||||
|
@Excel(name = "小区描述")
|
||||||
|
private String xqDescribe;
|
||||||
|
|
||||||
|
/** 部门id */
|
||||||
|
@Excel(name = "部门id")
|
||||||
|
private Long deptId;
|
||||||
|
|
||||||
|
/** 所属网格 */
|
||||||
|
@Excel(name = "所属网格")
|
||||||
|
private String deptName;
|
||||||
|
|
||||||
|
/** 创建者ID */
|
||||||
|
@Excel(name = "创建者ID")
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setXqType(String xqType)
|
||||||
|
{
|
||||||
|
this.xqType = xqType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getXqType()
|
||||||
|
{
|
||||||
|
return xqType;
|
||||||
|
}
|
||||||
|
public void setLdNum(Long ldNum)
|
||||||
|
{
|
||||||
|
this.ldNum = ldNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getLdNum()
|
||||||
|
{
|
||||||
|
return ldNum;
|
||||||
|
}
|
||||||
|
public void setJzArea(String jzArea)
|
||||||
|
{
|
||||||
|
this.jzArea = jzArea;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getJzArea()
|
||||||
|
{
|
||||||
|
return jzArea;
|
||||||
|
}
|
||||||
|
public void setZdArea(String zdArea)
|
||||||
|
{
|
||||||
|
this.zdArea = zdArea;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZdArea()
|
||||||
|
{
|
||||||
|
return zdArea;
|
||||||
|
}
|
||||||
|
public void setWyType(String wyType)
|
||||||
|
{
|
||||||
|
this.wyType = wyType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWyType()
|
||||||
|
{
|
||||||
|
return wyType;
|
||||||
|
}
|
||||||
|
public void setWyResponse(String wyResponse)
|
||||||
|
{
|
||||||
|
this.wyResponse = wyResponse;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWyResponse()
|
||||||
|
{
|
||||||
|
return wyResponse;
|
||||||
|
}
|
||||||
|
public void setWyPhone(String wyPhone)
|
||||||
|
{
|
||||||
|
this.wyPhone = wyPhone;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWyPhone()
|
||||||
|
{
|
||||||
|
return wyPhone;
|
||||||
|
}
|
||||||
|
public void setXqAddress(String xqAddress)
|
||||||
|
{
|
||||||
|
this.xqAddress = xqAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getXqAddress()
|
||||||
|
{
|
||||||
|
return xqAddress;
|
||||||
|
}
|
||||||
|
public void setBuildDate(Date buildDate)
|
||||||
|
{
|
||||||
|
this.buildDate = buildDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getBuildDate()
|
||||||
|
{
|
||||||
|
return buildDate;
|
||||||
|
}
|
||||||
|
public void setXqDescribe(String xqDescribe)
|
||||||
|
{
|
||||||
|
this.xqDescribe = xqDescribe;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getXqDescribe()
|
||||||
|
{
|
||||||
|
return xqDescribe;
|
||||||
|
}
|
||||||
|
public void setDeptId(Long deptId)
|
||||||
|
{
|
||||||
|
this.deptId = deptId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDeptId()
|
||||||
|
{
|
||||||
|
return deptId;
|
||||||
|
}
|
||||||
|
public void setDeptName(String deptName)
|
||||||
|
{
|
||||||
|
this.deptName = deptName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDeptName()
|
||||||
|
{
|
||||||
|
return deptName;
|
||||||
|
}
|
||||||
|
public void setUserId(Long userId)
|
||||||
|
{
|
||||||
|
this.userId = userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getUserId()
|
||||||
|
{
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("xqType", getXqType())
|
||||||
|
.append("ldNum", getLdNum())
|
||||||
|
.append("jzArea", getJzArea())
|
||||||
|
.append("zdArea", getZdArea())
|
||||||
|
.append("wyType", getWyType())
|
||||||
|
.append("wyResponse", getWyResponse())
|
||||||
|
.append("wyPhone", getWyPhone())
|
||||||
|
.append("xqAddress", getXqAddress())
|
||||||
|
.append("buildDate", getBuildDate())
|
||||||
|
.append("xqDescribe", getXqDescribe())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateBy", getUpdateBy())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.append("deptId", getDeptId())
|
||||||
|
.append("deptName", getDeptName())
|
||||||
|
.append("userId", getUserId())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.szxc.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcLdInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 楼栋信息Mapper接口
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
public interface SzxcLdInfoMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询楼栋信息
|
||||||
|
*
|
||||||
|
* @param id 楼栋信息主键
|
||||||
|
* @return 楼栋信息
|
||||||
|
*/
|
||||||
|
public SzxcLdInfo selectSzxcLdInfoById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询楼栋信息列表
|
||||||
|
*
|
||||||
|
* @param szxcLdInfo 楼栋信息
|
||||||
|
* @return 楼栋信息集合
|
||||||
|
*/
|
||||||
|
public List<SzxcLdInfo> selectSzxcLdInfoList(SzxcLdInfo szxcLdInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增楼栋信息
|
||||||
|
*
|
||||||
|
* @param szxcLdInfo 楼栋信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertSzxcLdInfo(SzxcLdInfo szxcLdInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改楼栋信息
|
||||||
|
*
|
||||||
|
* @param szxcLdInfo 楼栋信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSzxcLdInfo(SzxcLdInfo szxcLdInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除楼栋信息
|
||||||
|
*
|
||||||
|
* @param id 楼栋信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcLdInfoById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除楼栋信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcLdInfoByIds(Long[] ids);
|
||||||
|
}
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.szxc.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcLunbo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 轮播设置Mapper接口
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
public interface SzxcLunboMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询轮播设置
|
||||||
|
*
|
||||||
|
* @param id 轮播设置主键
|
||||||
|
* @return 轮播设置
|
||||||
|
*/
|
||||||
|
public SzxcLunbo selectSzxcLunboById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询轮播设置列表
|
||||||
|
*
|
||||||
|
* @param szxcLunbo 轮播设置
|
||||||
|
* @return 轮播设置集合
|
||||||
|
*/
|
||||||
|
public List<SzxcLunbo> selectSzxcLunboList(SzxcLunbo szxcLunbo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增轮播设置
|
||||||
|
*
|
||||||
|
* @param szxcLunbo 轮播设置
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertSzxcLunbo(SzxcLunbo szxcLunbo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改轮播设置
|
||||||
|
*
|
||||||
|
* @param szxcLunbo 轮播设置
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSzxcLunbo(SzxcLunbo szxcLunbo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除轮播设置
|
||||||
|
*
|
||||||
|
* @param id 轮播设置主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcLunboById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除轮播设置
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcLunboByIds(Long[] ids);
|
||||||
|
}
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.szxc.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcPublicActivily;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 公益活动Mapper接口
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
public interface SzxcPublicActivilyMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询公益活动
|
||||||
|
*
|
||||||
|
* @param id 公益活动主键
|
||||||
|
* @return 公益活动
|
||||||
|
*/
|
||||||
|
public SzxcPublicActivily selectSzxcPublicActivilyById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询公益活动列表
|
||||||
|
*
|
||||||
|
* @param szxcPublicActivily 公益活动
|
||||||
|
* @return 公益活动集合
|
||||||
|
*/
|
||||||
|
public List<SzxcPublicActivily> selectSzxcPublicActivilyList(SzxcPublicActivily szxcPublicActivily);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增公益活动
|
||||||
|
*
|
||||||
|
* @param szxcPublicActivily 公益活动
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertSzxcPublicActivily(SzxcPublicActivily szxcPublicActivily);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改公益活动
|
||||||
|
*
|
||||||
|
* @param szxcPublicActivily 公益活动
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSzxcPublicActivily(SzxcPublicActivily szxcPublicActivily);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除公益活动
|
||||||
|
*
|
||||||
|
* @param id 公益活动主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcPublicActivilyById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除公益活动
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcPublicActivilyByIds(Long[] ids);
|
||||||
|
}
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.szxc.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcWorkGuide;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 办事指南Mapper接口
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
public interface SzxcWorkGuideMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询办事指南
|
||||||
|
*
|
||||||
|
* @param id 办事指南主键
|
||||||
|
* @return 办事指南
|
||||||
|
*/
|
||||||
|
public SzxcWorkGuide selectSzxcWorkGuideById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询办事指南列表
|
||||||
|
*
|
||||||
|
* @param szxcWorkGuide 办事指南
|
||||||
|
* @return 办事指南集合
|
||||||
|
*/
|
||||||
|
public List<SzxcWorkGuide> selectSzxcWorkGuideList(SzxcWorkGuide szxcWorkGuide);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增办事指南
|
||||||
|
*
|
||||||
|
* @param szxcWorkGuide 办事指南
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertSzxcWorkGuide(SzxcWorkGuide szxcWorkGuide);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改办事指南
|
||||||
|
*
|
||||||
|
* @param szxcWorkGuide 办事指南
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSzxcWorkGuide(SzxcWorkGuide szxcWorkGuide);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除办事指南
|
||||||
|
*
|
||||||
|
* @param id 办事指南主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcWorkGuideById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除办事指南
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcWorkGuideByIds(Long[] ids);
|
||||||
|
}
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.szxc.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcXqInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 小区信息Mapper接口
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
public interface SzxcXqInfoMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询小区信息
|
||||||
|
*
|
||||||
|
* @param id 小区信息主键
|
||||||
|
* @return 小区信息
|
||||||
|
*/
|
||||||
|
public SzxcXqInfo selectSzxcXqInfoById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询小区信息列表
|
||||||
|
*
|
||||||
|
* @param szxcXqInfo 小区信息
|
||||||
|
* @return 小区信息集合
|
||||||
|
*/
|
||||||
|
public List<SzxcXqInfo> selectSzxcXqInfoList(SzxcXqInfo szxcXqInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增小区信息
|
||||||
|
*
|
||||||
|
* @param szxcXqInfo 小区信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertSzxcXqInfo(SzxcXqInfo szxcXqInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改小区信息
|
||||||
|
*
|
||||||
|
* @param szxcXqInfo 小区信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSzxcXqInfo(SzxcXqInfo szxcXqInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除小区信息
|
||||||
|
*
|
||||||
|
* @param id 小区信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcXqInfoById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除小区信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcXqInfoByIds(Long[] ids);
|
||||||
|
}
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.szxc.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcLdInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 楼栋信息Service接口
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
public interface ISzxcLdInfoService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询楼栋信息
|
||||||
|
*
|
||||||
|
* @param id 楼栋信息主键
|
||||||
|
* @return 楼栋信息
|
||||||
|
*/
|
||||||
|
public SzxcLdInfo selectSzxcLdInfoById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询楼栋信息列表
|
||||||
|
*
|
||||||
|
* @param szxcLdInfo 楼栋信息
|
||||||
|
* @return 楼栋信息集合
|
||||||
|
*/
|
||||||
|
public List<SzxcLdInfo> selectSzxcLdInfoList(SzxcLdInfo szxcLdInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增楼栋信息
|
||||||
|
*
|
||||||
|
* @param szxcLdInfo 楼栋信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertSzxcLdInfo(SzxcLdInfo szxcLdInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改楼栋信息
|
||||||
|
*
|
||||||
|
* @param szxcLdInfo 楼栋信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSzxcLdInfo(SzxcLdInfo szxcLdInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除楼栋信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的楼栋信息主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcLdInfoByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除楼栋信息信息
|
||||||
|
*
|
||||||
|
* @param id 楼栋信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcLdInfoById(Long id);
|
||||||
|
}
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.szxc.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcLunbo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 轮播设置Service接口
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
public interface ISzxcLunboService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询轮播设置
|
||||||
|
*
|
||||||
|
* @param id 轮播设置主键
|
||||||
|
* @return 轮播设置
|
||||||
|
*/
|
||||||
|
public SzxcLunbo selectSzxcLunboById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询轮播设置列表
|
||||||
|
*
|
||||||
|
* @param szxcLunbo 轮播设置
|
||||||
|
* @return 轮播设置集合
|
||||||
|
*/
|
||||||
|
public List<SzxcLunbo> selectSzxcLunboList(SzxcLunbo szxcLunbo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增轮播设置
|
||||||
|
*
|
||||||
|
* @param szxcLunbo 轮播设置
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertSzxcLunbo(SzxcLunbo szxcLunbo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改轮播设置
|
||||||
|
*
|
||||||
|
* @param szxcLunbo 轮播设置
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSzxcLunbo(SzxcLunbo szxcLunbo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除轮播设置
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的轮播设置主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcLunboByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除轮播设置信息
|
||||||
|
*
|
||||||
|
* @param id 轮播设置主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcLunboById(Long id);
|
||||||
|
}
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.szxc.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcPublicActivily;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 公益活动Service接口
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
public interface ISzxcPublicActivilyService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询公益活动
|
||||||
|
*
|
||||||
|
* @param id 公益活动主键
|
||||||
|
* @return 公益活动
|
||||||
|
*/
|
||||||
|
public SzxcPublicActivily selectSzxcPublicActivilyById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询公益活动列表
|
||||||
|
*
|
||||||
|
* @param szxcPublicActivily 公益活动
|
||||||
|
* @return 公益活动集合
|
||||||
|
*/
|
||||||
|
public List<SzxcPublicActivily> selectSzxcPublicActivilyList(SzxcPublicActivily szxcPublicActivily);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增公益活动
|
||||||
|
*
|
||||||
|
* @param szxcPublicActivily 公益活动
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertSzxcPublicActivily(SzxcPublicActivily szxcPublicActivily);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改公益活动
|
||||||
|
*
|
||||||
|
* @param szxcPublicActivily 公益活动
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSzxcPublicActivily(SzxcPublicActivily szxcPublicActivily);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除公益活动
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的公益活动主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcPublicActivilyByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除公益活动信息
|
||||||
|
*
|
||||||
|
* @param id 公益活动主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcPublicActivilyById(Long id);
|
||||||
|
}
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.szxc.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcWorkGuide;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 办事指南Service接口
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
public interface ISzxcWorkGuideService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询办事指南
|
||||||
|
*
|
||||||
|
* @param id 办事指南主键
|
||||||
|
* @return 办事指南
|
||||||
|
*/
|
||||||
|
public SzxcWorkGuide selectSzxcWorkGuideById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询办事指南列表
|
||||||
|
*
|
||||||
|
* @param szxcWorkGuide 办事指南
|
||||||
|
* @return 办事指南集合
|
||||||
|
*/
|
||||||
|
public List<SzxcWorkGuide> selectSzxcWorkGuideList(SzxcWorkGuide szxcWorkGuide);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增办事指南
|
||||||
|
*
|
||||||
|
* @param szxcWorkGuide 办事指南
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertSzxcWorkGuide(SzxcWorkGuide szxcWorkGuide);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改办事指南
|
||||||
|
*
|
||||||
|
* @param szxcWorkGuide 办事指南
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSzxcWorkGuide(SzxcWorkGuide szxcWorkGuide);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除办事指南
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的办事指南主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcWorkGuideByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除办事指南信息
|
||||||
|
*
|
||||||
|
* @param id 办事指南主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcWorkGuideById(Long id);
|
||||||
|
}
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.szxc.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcXqInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 小区信息Service接口
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
public interface ISzxcXqInfoService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询小区信息
|
||||||
|
*
|
||||||
|
* @param id 小区信息主键
|
||||||
|
* @return 小区信息
|
||||||
|
*/
|
||||||
|
public SzxcXqInfo selectSzxcXqInfoById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询小区信息列表
|
||||||
|
*
|
||||||
|
* @param szxcXqInfo 小区信息
|
||||||
|
* @return 小区信息集合
|
||||||
|
*/
|
||||||
|
public List<SzxcXqInfo> selectSzxcXqInfoList(SzxcXqInfo szxcXqInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增小区信息
|
||||||
|
*
|
||||||
|
* @param szxcXqInfo 小区信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertSzxcXqInfo(SzxcXqInfo szxcXqInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改小区信息
|
||||||
|
*
|
||||||
|
* @param szxcXqInfo 小区信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSzxcXqInfo(SzxcXqInfo szxcXqInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除小区信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的小区信息主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcXqInfoByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除小区信息信息
|
||||||
|
*
|
||||||
|
* @param id 小区信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcXqInfoById(Long id);
|
||||||
|
}
|
||||||
@ -0,0 +1,96 @@
|
|||||||
|
package com.ruoyi.szxc.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.szxc.mapper.SzxcLdInfoMapper;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcLdInfo;
|
||||||
|
import com.ruoyi.szxc.service.ISzxcLdInfoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 楼栋信息Service业务层处理
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SzxcLdInfoServiceImpl implements ISzxcLdInfoService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private SzxcLdInfoMapper szxcLdInfoMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询楼栋信息
|
||||||
|
*
|
||||||
|
* @param id 楼栋信息主键
|
||||||
|
* @return 楼栋信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public SzxcLdInfo selectSzxcLdInfoById(Long id)
|
||||||
|
{
|
||||||
|
return szxcLdInfoMapper.selectSzxcLdInfoById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询楼栋信息列表
|
||||||
|
*
|
||||||
|
* @param szxcLdInfo 楼栋信息
|
||||||
|
* @return 楼栋信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<SzxcLdInfo> selectSzxcLdInfoList(SzxcLdInfo szxcLdInfo)
|
||||||
|
{
|
||||||
|
return szxcLdInfoMapper.selectSzxcLdInfoList(szxcLdInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增楼栋信息
|
||||||
|
*
|
||||||
|
* @param szxcLdInfo 楼栋信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertSzxcLdInfo(SzxcLdInfo szxcLdInfo)
|
||||||
|
{
|
||||||
|
szxcLdInfo.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return szxcLdInfoMapper.insertSzxcLdInfo(szxcLdInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改楼栋信息
|
||||||
|
*
|
||||||
|
* @param szxcLdInfo 楼栋信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateSzxcLdInfo(SzxcLdInfo szxcLdInfo)
|
||||||
|
{
|
||||||
|
szxcLdInfo.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return szxcLdInfoMapper.updateSzxcLdInfo(szxcLdInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除楼栋信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的楼栋信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteSzxcLdInfoByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return szxcLdInfoMapper.deleteSzxcLdInfoByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除楼栋信息信息
|
||||||
|
*
|
||||||
|
* @param id 楼栋信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteSzxcLdInfoById(Long id)
|
||||||
|
{
|
||||||
|
return szxcLdInfoMapper.deleteSzxcLdInfoById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,96 @@
|
|||||||
|
package com.ruoyi.szxc.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.szxc.mapper.SzxcLunboMapper;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcLunbo;
|
||||||
|
import com.ruoyi.szxc.service.ISzxcLunboService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 轮播设置Service业务层处理
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SzxcLunboServiceImpl implements ISzxcLunboService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private SzxcLunboMapper szxcLunboMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询轮播设置
|
||||||
|
*
|
||||||
|
* @param id 轮播设置主键
|
||||||
|
* @return 轮播设置
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public SzxcLunbo selectSzxcLunboById(Long id)
|
||||||
|
{
|
||||||
|
return szxcLunboMapper.selectSzxcLunboById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询轮播设置列表
|
||||||
|
*
|
||||||
|
* @param szxcLunbo 轮播设置
|
||||||
|
* @return 轮播设置
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<SzxcLunbo> selectSzxcLunboList(SzxcLunbo szxcLunbo)
|
||||||
|
{
|
||||||
|
return szxcLunboMapper.selectSzxcLunboList(szxcLunbo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增轮播设置
|
||||||
|
*
|
||||||
|
* @param szxcLunbo 轮播设置
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertSzxcLunbo(SzxcLunbo szxcLunbo)
|
||||||
|
{
|
||||||
|
szxcLunbo.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return szxcLunboMapper.insertSzxcLunbo(szxcLunbo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改轮播设置
|
||||||
|
*
|
||||||
|
* @param szxcLunbo 轮播设置
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateSzxcLunbo(SzxcLunbo szxcLunbo)
|
||||||
|
{
|
||||||
|
szxcLunbo.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return szxcLunboMapper.updateSzxcLunbo(szxcLunbo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除轮播设置
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的轮播设置主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteSzxcLunboByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return szxcLunboMapper.deleteSzxcLunboByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除轮播设置信息
|
||||||
|
*
|
||||||
|
* @param id 轮播设置主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteSzxcLunboById(Long id)
|
||||||
|
{
|
||||||
|
return szxcLunboMapper.deleteSzxcLunboById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,96 @@
|
|||||||
|
package com.ruoyi.szxc.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.szxc.mapper.SzxcPublicActivilyMapper;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcPublicActivily;
|
||||||
|
import com.ruoyi.szxc.service.ISzxcPublicActivilyService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 公益活动Service业务层处理
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SzxcPublicActivilyServiceImpl implements ISzxcPublicActivilyService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private SzxcPublicActivilyMapper szxcPublicActivilyMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询公益活动
|
||||||
|
*
|
||||||
|
* @param id 公益活动主键
|
||||||
|
* @return 公益活动
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public SzxcPublicActivily selectSzxcPublicActivilyById(Long id)
|
||||||
|
{
|
||||||
|
return szxcPublicActivilyMapper.selectSzxcPublicActivilyById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询公益活动列表
|
||||||
|
*
|
||||||
|
* @param szxcPublicActivily 公益活动
|
||||||
|
* @return 公益活动
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<SzxcPublicActivily> selectSzxcPublicActivilyList(SzxcPublicActivily szxcPublicActivily)
|
||||||
|
{
|
||||||
|
return szxcPublicActivilyMapper.selectSzxcPublicActivilyList(szxcPublicActivily);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增公益活动
|
||||||
|
*
|
||||||
|
* @param szxcPublicActivily 公益活动
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertSzxcPublicActivily(SzxcPublicActivily szxcPublicActivily)
|
||||||
|
{
|
||||||
|
szxcPublicActivily.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return szxcPublicActivilyMapper.insertSzxcPublicActivily(szxcPublicActivily);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改公益活动
|
||||||
|
*
|
||||||
|
* @param szxcPublicActivily 公益活动
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateSzxcPublicActivily(SzxcPublicActivily szxcPublicActivily)
|
||||||
|
{
|
||||||
|
szxcPublicActivily.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return szxcPublicActivilyMapper.updateSzxcPublicActivily(szxcPublicActivily);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除公益活动
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的公益活动主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteSzxcPublicActivilyByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return szxcPublicActivilyMapper.deleteSzxcPublicActivilyByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除公益活动信息
|
||||||
|
*
|
||||||
|
* @param id 公益活动主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteSzxcPublicActivilyById(Long id)
|
||||||
|
{
|
||||||
|
return szxcPublicActivilyMapper.deleteSzxcPublicActivilyById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,96 @@
|
|||||||
|
package com.ruoyi.szxc.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.szxc.mapper.SzxcWorkGuideMapper;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcWorkGuide;
|
||||||
|
import com.ruoyi.szxc.service.ISzxcWorkGuideService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 办事指南Service业务层处理
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SzxcWorkGuideServiceImpl implements ISzxcWorkGuideService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private SzxcWorkGuideMapper szxcWorkGuideMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询办事指南
|
||||||
|
*
|
||||||
|
* @param id 办事指南主键
|
||||||
|
* @return 办事指南
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public SzxcWorkGuide selectSzxcWorkGuideById(Long id)
|
||||||
|
{
|
||||||
|
return szxcWorkGuideMapper.selectSzxcWorkGuideById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询办事指南列表
|
||||||
|
*
|
||||||
|
* @param szxcWorkGuide 办事指南
|
||||||
|
* @return 办事指南
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<SzxcWorkGuide> selectSzxcWorkGuideList(SzxcWorkGuide szxcWorkGuide)
|
||||||
|
{
|
||||||
|
return szxcWorkGuideMapper.selectSzxcWorkGuideList(szxcWorkGuide);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增办事指南
|
||||||
|
*
|
||||||
|
* @param szxcWorkGuide 办事指南
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertSzxcWorkGuide(SzxcWorkGuide szxcWorkGuide)
|
||||||
|
{
|
||||||
|
szxcWorkGuide.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return szxcWorkGuideMapper.insertSzxcWorkGuide(szxcWorkGuide);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改办事指南
|
||||||
|
*
|
||||||
|
* @param szxcWorkGuide 办事指南
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateSzxcWorkGuide(SzxcWorkGuide szxcWorkGuide)
|
||||||
|
{
|
||||||
|
szxcWorkGuide.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return szxcWorkGuideMapper.updateSzxcWorkGuide(szxcWorkGuide);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除办事指南
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的办事指南主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteSzxcWorkGuideByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return szxcWorkGuideMapper.deleteSzxcWorkGuideByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除办事指南信息
|
||||||
|
*
|
||||||
|
* @param id 办事指南主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteSzxcWorkGuideById(Long id)
|
||||||
|
{
|
||||||
|
return szxcWorkGuideMapper.deleteSzxcWorkGuideById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,96 @@
|
|||||||
|
package com.ruoyi.szxc.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.szxc.mapper.SzxcXqInfoMapper;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcXqInfo;
|
||||||
|
import com.ruoyi.szxc.service.ISzxcXqInfoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 小区信息Service业务层处理
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-03-16
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SzxcXqInfoServiceImpl implements ISzxcXqInfoService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private SzxcXqInfoMapper szxcXqInfoMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询小区信息
|
||||||
|
*
|
||||||
|
* @param id 小区信息主键
|
||||||
|
* @return 小区信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public SzxcXqInfo selectSzxcXqInfoById(Long id)
|
||||||
|
{
|
||||||
|
return szxcXqInfoMapper.selectSzxcXqInfoById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询小区信息列表
|
||||||
|
*
|
||||||
|
* @param szxcXqInfo 小区信息
|
||||||
|
* @return 小区信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<SzxcXqInfo> selectSzxcXqInfoList(SzxcXqInfo szxcXqInfo)
|
||||||
|
{
|
||||||
|
return szxcXqInfoMapper.selectSzxcXqInfoList(szxcXqInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增小区信息
|
||||||
|
*
|
||||||
|
* @param szxcXqInfo 小区信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertSzxcXqInfo(SzxcXqInfo szxcXqInfo)
|
||||||
|
{
|
||||||
|
szxcXqInfo.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return szxcXqInfoMapper.insertSzxcXqInfo(szxcXqInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改小区信息
|
||||||
|
*
|
||||||
|
* @param szxcXqInfo 小区信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateSzxcXqInfo(SzxcXqInfo szxcXqInfo)
|
||||||
|
{
|
||||||
|
szxcXqInfo.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return szxcXqInfoMapper.updateSzxcXqInfo(szxcXqInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除小区信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的小区信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteSzxcXqInfoByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return szxcXqInfoMapper.deleteSzxcXqInfoByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除小区信息信息
|
||||||
|
*
|
||||||
|
* @param id 小区信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteSzxcXqInfoById(Long id)
|
||||||
|
{
|
||||||
|
return szxcXqInfoMapper.deleteSzxcXqInfoById(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.ruoyi.szxc.mapper.SzxcLdInfoMapper">
|
||||||
|
|
||||||
|
<resultMap type="SzxcLdInfo" id="SzxcLdInfoResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="xqId" column="xq_id" />
|
||||||
|
<result property="ldName" column="ld_name" />
|
||||||
|
<result property="xqType" column="xq_type" />
|
||||||
|
<result property="ldSort" column="ld_sort" />
|
||||||
|
<result property="ldjg" column="ldjg" />
|
||||||
|
<result property="qnfs" column="qnfs" />
|
||||||
|
<result property="lcNum" column="lc_num" />
|
||||||
|
<result property="unitNum" column="unit_num" />
|
||||||
|
<result property="huNum" column="hu_num" />
|
||||||
|
<result property="ldDescribe" column="ld_describe" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="deptId" column="dept_id" />
|
||||||
|
<result property="deptName" column="dept_name" />
|
||||||
|
<result property="userId" column="user_id" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectSzxcLdInfoVo">
|
||||||
|
select id, xq_id, ld_name, xq_type, ld_sort, ldjg, qnfs, lc_num, unit_num, hu_num, ld_describe, create_by, create_time, update_by, update_time, dept_id, dept_name, user_id from szxc_ld_info
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectSzxcLdInfoList" parameterType="SzxcLdInfo" resultMap="SzxcLdInfoResult">
|
||||||
|
<include refid="selectSzxcLdInfoVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="xqId != null "> and xq_id = #{xqId}</if>
|
||||||
|
<if test="ldName != null and ldName != ''"> and ld_name like concat('%', #{ldName}, '%')</if>
|
||||||
|
<if test="xqType != null and xqType != ''"> and xq_type = #{xqType}</if>
|
||||||
|
<if test="ldSort != null and ldSort != ''"> and ld_sort = #{ldSort}</if>
|
||||||
|
<if test="ldjg != null and ldjg != ''"> and ldjg = #{ldjg}</if>
|
||||||
|
<if test="qnfs != null and qnfs != ''"> and qnfs = #{qnfs}</if>
|
||||||
|
<if test="lcNum != null "> and lc_num = #{lcNum}</if>
|
||||||
|
<if test="unitNum != null "> and unit_num = #{unitNum}</if>
|
||||||
|
<if test="huNum != null "> and hu_num = #{huNum}</if>
|
||||||
|
<if test="ldDescribe != null and ldDescribe != ''"> and ld_describe = #{ldDescribe}</if>
|
||||||
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
||||||
|
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
|
||||||
|
<if test="userId != null "> and user_id = #{userId}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectSzxcLdInfoById" parameterType="Long" resultMap="SzxcLdInfoResult">
|
||||||
|
<include refid="selectSzxcLdInfoVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertSzxcLdInfo" parameterType="SzxcLdInfo" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into szxc_ld_info
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="xqId != null">xq_id,</if>
|
||||||
|
<if test="ldName != null">ld_name,</if>
|
||||||
|
<if test="xqType != null">xq_type,</if>
|
||||||
|
<if test="ldSort != null">ld_sort,</if>
|
||||||
|
<if test="ldjg != null">ldjg,</if>
|
||||||
|
<if test="qnfs != null">qnfs,</if>
|
||||||
|
<if test="lcNum != null">lc_num,</if>
|
||||||
|
<if test="unitNum != null">unit_num,</if>
|
||||||
|
<if test="huNum != null">hu_num,</if>
|
||||||
|
<if test="ldDescribe != null">ld_describe,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="deptId != null">dept_id,</if>
|
||||||
|
<if test="deptName != null">dept_name,</if>
|
||||||
|
<if test="userId != null">user_id,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="xqId != null">#{xqId},</if>
|
||||||
|
<if test="ldName != null">#{ldName},</if>
|
||||||
|
<if test="xqType != null">#{xqType},</if>
|
||||||
|
<if test="ldSort != null">#{ldSort},</if>
|
||||||
|
<if test="ldjg != null">#{ldjg},</if>
|
||||||
|
<if test="qnfs != null">#{qnfs},</if>
|
||||||
|
<if test="lcNum != null">#{lcNum},</if>
|
||||||
|
<if test="unitNum != null">#{unitNum},</if>
|
||||||
|
<if test="huNum != null">#{huNum},</if>
|
||||||
|
<if test="ldDescribe != null">#{ldDescribe},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="deptId != null">#{deptId},</if>
|
||||||
|
<if test="deptName != null">#{deptName},</if>
|
||||||
|
<if test="userId != null">#{userId},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateSzxcLdInfo" parameterType="SzxcLdInfo">
|
||||||
|
update szxc_ld_info
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="xqId != null">xq_id = #{xqId},</if>
|
||||||
|
<if test="ldName != null">ld_name = #{ldName},</if>
|
||||||
|
<if test="xqType != null">xq_type = #{xqType},</if>
|
||||||
|
<if test="ldSort != null">ld_sort = #{ldSort},</if>
|
||||||
|
<if test="ldjg != null">ldjg = #{ldjg},</if>
|
||||||
|
<if test="qnfs != null">qnfs = #{qnfs},</if>
|
||||||
|
<if test="lcNum != null">lc_num = #{lcNum},</if>
|
||||||
|
<if test="unitNum != null">unit_num = #{unitNum},</if>
|
||||||
|
<if test="huNum != null">hu_num = #{huNum},</if>
|
||||||
|
<if test="ldDescribe != null">ld_describe = #{ldDescribe},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
||||||
|
<if test="deptName != null">dept_name = #{deptName},</if>
|
||||||
|
<if test="userId != null">user_id = #{userId},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteSzxcLdInfoById" parameterType="Long">
|
||||||
|
delete from szxc_ld_info where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteSzxcLdInfoByIds" parameterType="String">
|
||||||
|
delete from szxc_ld_info where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,86 @@
|
|||||||
|
<?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.ruoyi.szxc.mapper.SzxcLunboMapper">
|
||||||
|
|
||||||
|
<resultMap type="SzxcLunbo" id="SzxcLunboResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="title" column="title" />
|
||||||
|
<result property="picture" column="picture" />
|
||||||
|
<result property="content" column="content" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectSzxcLunboVo">
|
||||||
|
select id, title, picture, content, remark, create_by, create_time, update_by, update_time from szxc_lunbo
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectSzxcLunboList" parameterType="SzxcLunbo" resultMap="SzxcLunboResult">
|
||||||
|
<include refid="selectSzxcLunboVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="title != null and title != ''"> and title = #{title}</if>
|
||||||
|
<if test="picture != null and picture != ''"> and picture = #{picture}</if>
|
||||||
|
<if test="content != null and content != ''"> and content = #{content}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectSzxcLunboById" parameterType="Long" resultMap="SzxcLunboResult">
|
||||||
|
<include refid="selectSzxcLunboVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertSzxcLunbo" parameterType="SzxcLunbo" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into szxc_lunbo
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="title != null">title,</if>
|
||||||
|
<if test="picture != null">picture,</if>
|
||||||
|
<if test="content != null">content,</if>
|
||||||
|
<if test="remark != null">remark,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="title != null">#{title},</if>
|
||||||
|
<if test="picture != null">#{picture},</if>
|
||||||
|
<if test="content != null">#{content},</if>
|
||||||
|
<if test="remark != null">#{remark},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateSzxcLunbo" parameterType="SzxcLunbo">
|
||||||
|
update szxc_lunbo
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="title != null">title = #{title},</if>
|
||||||
|
<if test="picture != null">picture = #{picture},</if>
|
||||||
|
<if test="content != null">content = #{content},</if>
|
||||||
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteSzxcLunboById" parameterType="Long">
|
||||||
|
delete from szxc_lunbo where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteSzxcLunboByIds" parameterType="String">
|
||||||
|
delete from szxc_lunbo where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,126 @@
|
|||||||
|
<?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.ruoyi.szxc.mapper.SzxcPublicActivilyMapper">
|
||||||
|
|
||||||
|
<resultMap type="SzxcPublicActivily" id="SzxcPublicActivilyResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="title" column="title" />
|
||||||
|
<result property="leader" column="leader" />
|
||||||
|
<result property="phone" column="phone" />
|
||||||
|
<result property="type" column="type" />
|
||||||
|
<result property="content" column="content" />
|
||||||
|
<result property="leave" column="leave" />
|
||||||
|
<result property="startTime" column="start_time" />
|
||||||
|
<result property="endTime" column="end_time" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="deptId" column="dept_id" />
|
||||||
|
<result property="deptName" column="dept_name" />
|
||||||
|
<result property="userId" column="user_id" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectSzxcPublicActivilyVo">
|
||||||
|
select id, title, leader, phone, type, content, leave, start_time, end_time, create_by, remark, create_time, update_by, update_time, dept_id, dept_name, user_id from szxc_public_activily
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectSzxcPublicActivilyList" parameterType="SzxcPublicActivily" resultMap="SzxcPublicActivilyResult">
|
||||||
|
<include refid="selectSzxcPublicActivilyVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="title != null and title != ''"> and title = #{title}</if>
|
||||||
|
<if test="leader != null and leader != ''"> and leader = #{leader}</if>
|
||||||
|
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
||||||
|
<if test="type != null and type != ''"> and type = #{type}</if>
|
||||||
|
<if test="content != null and content != ''"> and content = #{content}</if>
|
||||||
|
<if test="leave != null and leave != ''"> and leave = #{leave}</if>
|
||||||
|
<if test="startTime != null "> and start_time = #{startTime}</if>
|
||||||
|
<if test="endTime != null "> and end_time = #{endTime}</if>
|
||||||
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
||||||
|
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
|
||||||
|
<if test="userId != null "> and user_id = #{userId}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectSzxcPublicActivilyById" parameterType="Long" resultMap="SzxcPublicActivilyResult">
|
||||||
|
<include refid="selectSzxcPublicActivilyVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertSzxcPublicActivily" parameterType="SzxcPublicActivily" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into szxc_public_activily
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="title != null and title != ''">title,</if>
|
||||||
|
<if test="leader != null">leader,</if>
|
||||||
|
<if test="phone != null">phone,</if>
|
||||||
|
<if test="type != null">type,</if>
|
||||||
|
<if test="content != null">content,</if>
|
||||||
|
<if test="leave != null">leave,</if>
|
||||||
|
<if test="startTime != null">start_time,</if>
|
||||||
|
<if test="endTime != null">end_time,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="remark != null">remark,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="deptId != null">dept_id,</if>
|
||||||
|
<if test="deptName != null">dept_name,</if>
|
||||||
|
<if test="userId != null">user_id,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="title != null and title != ''">#{title},</if>
|
||||||
|
<if test="leader != null">#{leader},</if>
|
||||||
|
<if test="phone != null">#{phone},</if>
|
||||||
|
<if test="type != null">#{type},</if>
|
||||||
|
<if test="content != null">#{content},</if>
|
||||||
|
<if test="leave != null">#{leave},</if>
|
||||||
|
<if test="startTime != null">#{startTime},</if>
|
||||||
|
<if test="endTime != null">#{endTime},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="remark != null">#{remark},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="deptId != null">#{deptId},</if>
|
||||||
|
<if test="deptName != null">#{deptName},</if>
|
||||||
|
<if test="userId != null">#{userId},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateSzxcPublicActivily" parameterType="SzxcPublicActivily">
|
||||||
|
update szxc_public_activily
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="title != null and title != ''">title = #{title},</if>
|
||||||
|
<if test="leader != null">leader = #{leader},</if>
|
||||||
|
<if test="phone != null">phone = #{phone},</if>
|
||||||
|
<if test="type != null">type = #{type},</if>
|
||||||
|
<if test="content != null">content = #{content},</if>
|
||||||
|
<if test="leave != null">leave = #{leave},</if>
|
||||||
|
<if test="startTime != null">start_time = #{startTime},</if>
|
||||||
|
<if test="endTime != null">end_time = #{endTime},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
||||||
|
<if test="deptName != null">dept_name = #{deptName},</if>
|
||||||
|
<if test="userId != null">user_id = #{userId},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteSzxcPublicActivilyById" parameterType="Long">
|
||||||
|
delete from szxc_public_activily where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteSzxcPublicActivilyByIds" parameterType="String">
|
||||||
|
delete from szxc_public_activily where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,86 @@
|
|||||||
|
<?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.ruoyi.szxc.mapper.SzxcWorkGuideMapper">
|
||||||
|
|
||||||
|
<resultMap type="SzxcWorkGuide" id="SzxcWorkGuideResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="title" column="title" />
|
||||||
|
<result property="content" column="content" />
|
||||||
|
<result property="status" column="status" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectSzxcWorkGuideVo">
|
||||||
|
select id, title, content, status, create_by, create_time, update_by, update_time, remark from szxc_work_guide
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectSzxcWorkGuideList" parameterType="SzxcWorkGuide" resultMap="SzxcWorkGuideResult">
|
||||||
|
<include refid="selectSzxcWorkGuideVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="title != null and title != ''"> and title = #{title}</if>
|
||||||
|
<if test="content != null and content != ''"> and content = #{content}</if>
|
||||||
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectSzxcWorkGuideById" parameterType="Long" resultMap="SzxcWorkGuideResult">
|
||||||
|
<include refid="selectSzxcWorkGuideVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertSzxcWorkGuide" parameterType="SzxcWorkGuide" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into szxc_work_guide
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="title != null">title,</if>
|
||||||
|
<if test="content != null">content,</if>
|
||||||
|
<if test="status != null">status,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="remark != null">remark,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="title != null">#{title},</if>
|
||||||
|
<if test="content != null">#{content},</if>
|
||||||
|
<if test="status != null">#{status},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="remark != null">#{remark},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateSzxcWorkGuide" parameterType="SzxcWorkGuide">
|
||||||
|
update szxc_work_guide
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="title != null">title = #{title},</if>
|
||||||
|
<if test="content != null">content = #{content},</if>
|
||||||
|
<if test="status != null">status = #{status},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteSzxcWorkGuideById" parameterType="Long">
|
||||||
|
delete from szxc_work_guide where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteSzxcWorkGuideByIds" parameterType="String">
|
||||||
|
delete from szxc_work_guide where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
@ -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.ruoyi.szxc.mapper.SzxcXqInfoMapper">
|
||||||
|
|
||||||
|
<resultMap type="SzxcXqInfo" id="SzxcXqInfoResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="xqType" column="xq_type" />
|
||||||
|
<result property="ldNum" column="ld_num" />
|
||||||
|
<result property="jzArea" column="jz_area" />
|
||||||
|
<result property="zdArea" column="zd_area" />
|
||||||
|
<result property="wyType" column="wy_type" />
|
||||||
|
<result property="wyResponse" column="wy_response" />
|
||||||
|
<result property="wyPhone" column="wy_phone" />
|
||||||
|
<result property="xqAddress" column="xq_address" />
|
||||||
|
<result property="buildDate" column="build_date" />
|
||||||
|
<result property="xqDescribe" column="xq_describe" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="deptId" column="dept_id" />
|
||||||
|
<result property="deptName" column="dept_name" />
|
||||||
|
<result property="userId" column="user_id" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectSzxcXqInfoVo">
|
||||||
|
select id, xq_type, ld_num, jz_area, zd_area, wy_type, wy_response, wy_phone, xq_address, build_date, xq_describe, create_by, create_time, update_by, update_time, dept_id, dept_name, user_id from szxc_xq_info
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectSzxcXqInfoList" parameterType="SzxcXqInfo" resultMap="SzxcXqInfoResult">
|
||||||
|
<include refid="selectSzxcXqInfoVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="xqType != null and xqType != ''"> and xq_type = #{xqType}</if>
|
||||||
|
<if test="ldNum != null "> and ld_num = #{ldNum}</if>
|
||||||
|
<if test="jzArea != null and jzArea != ''"> and jz_area = #{jzArea}</if>
|
||||||
|
<if test="zdArea != null and zdArea != ''"> and zd_area = #{zdArea}</if>
|
||||||
|
<if test="wyType != null and wyType != ''"> and wy_type = #{wyType}</if>
|
||||||
|
<if test="wyResponse != null and wyResponse != ''"> and wy_response = #{wyResponse}</if>
|
||||||
|
<if test="wyPhone != null and wyPhone != ''"> and wy_phone = #{wyPhone}</if>
|
||||||
|
<if test="xqAddress != null and xqAddress != ''"> and xq_address = #{xqAddress}</if>
|
||||||
|
<if test="buildDate != null "> and build_date = #{buildDate}</if>
|
||||||
|
<if test="xqDescribe != null and xqDescribe != ''"> and xq_describe = #{xqDescribe}</if>
|
||||||
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
||||||
|
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
|
||||||
|
<if test="userId != null "> and user_id = #{userId}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectSzxcXqInfoById" parameterType="Long" resultMap="SzxcXqInfoResult">
|
||||||
|
<include refid="selectSzxcXqInfoVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertSzxcXqInfo" parameterType="SzxcXqInfo" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into szxc_xq_info
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="xqType != null">xq_type,</if>
|
||||||
|
<if test="ldNum != null">ld_num,</if>
|
||||||
|
<if test="jzArea != null">jz_area,</if>
|
||||||
|
<if test="zdArea != null">zd_area,</if>
|
||||||
|
<if test="wyType != null">wy_type,</if>
|
||||||
|
<if test="wyResponse != null">wy_response,</if>
|
||||||
|
<if test="wyPhone != null">wy_phone,</if>
|
||||||
|
<if test="xqAddress != null">xq_address,</if>
|
||||||
|
<if test="buildDate != null">build_date,</if>
|
||||||
|
<if test="xqDescribe != null">xq_describe,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="deptId != null">dept_id,</if>
|
||||||
|
<if test="deptName != null">dept_name,</if>
|
||||||
|
<if test="userId != null">user_id,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="xqType != null">#{xqType},</if>
|
||||||
|
<if test="ldNum != null">#{ldNum},</if>
|
||||||
|
<if test="jzArea != null">#{jzArea},</if>
|
||||||
|
<if test="zdArea != null">#{zdArea},</if>
|
||||||
|
<if test="wyType != null">#{wyType},</if>
|
||||||
|
<if test="wyResponse != null">#{wyResponse},</if>
|
||||||
|
<if test="wyPhone != null">#{wyPhone},</if>
|
||||||
|
<if test="xqAddress != null">#{xqAddress},</if>
|
||||||
|
<if test="buildDate != null">#{buildDate},</if>
|
||||||
|
<if test="xqDescribe != null">#{xqDescribe},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="deptId != null">#{deptId},</if>
|
||||||
|
<if test="deptName != null">#{deptName},</if>
|
||||||
|
<if test="userId != null">#{userId},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateSzxcXqInfo" parameterType="SzxcXqInfo">
|
||||||
|
update szxc_xq_info
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="xqType != null">xq_type = #{xqType},</if>
|
||||||
|
<if test="ldNum != null">ld_num = #{ldNum},</if>
|
||||||
|
<if test="jzArea != null">jz_area = #{jzArea},</if>
|
||||||
|
<if test="zdArea != null">zd_area = #{zdArea},</if>
|
||||||
|
<if test="wyType != null">wy_type = #{wyType},</if>
|
||||||
|
<if test="wyResponse != null">wy_response = #{wyResponse},</if>
|
||||||
|
<if test="wyPhone != null">wy_phone = #{wyPhone},</if>
|
||||||
|
<if test="xqAddress != null">xq_address = #{xqAddress},</if>
|
||||||
|
<if test="buildDate != null">build_date = #{buildDate},</if>
|
||||||
|
<if test="xqDescribe != null">xq_describe = #{xqDescribe},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
||||||
|
<if test="deptName != null">dept_name = #{deptName},</if>
|
||||||
|
<if test="userId != null">user_id = #{userId},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteSzxcXqInfoById" parameterType="Long">
|
||||||
|
delete from szxc_xq_info where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteSzxcXqInfoByIds" parameterType="String">
|
||||||
|
delete from szxc_xq_info where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询公益活动列表
|
||||||
|
export function listActivily(query) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/activily/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询公益活动详细
|
||||||
|
export function getActivily(id) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/activily/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增公益活动
|
||||||
|
export function addActivily(data) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/activily',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改公益活动
|
||||||
|
export function updateActivily(data) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/activily',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除公益活动
|
||||||
|
export function delActivily(id) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/activily/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询办事指南列表
|
||||||
|
export function listGuide(query) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/guide/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询办事指南详细
|
||||||
|
export function getGuide(id) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/guide/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增办事指南
|
||||||
|
export function addGuide(data) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/guide',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改办事指南
|
||||||
|
export function updateGuide(data) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/guide',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除办事指南
|
||||||
|
export function delGuide(id) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/guide/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询楼栋信息列表
|
||||||
|
export function listLdinfo(query) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/ldinfo/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询楼栋信息详细
|
||||||
|
export function getLdinfo(id) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/ldinfo/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增楼栋信息
|
||||||
|
export function addLdinfo(data) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/ldinfo',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改楼栋信息
|
||||||
|
export function updateLdinfo(data) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/ldinfo',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除楼栋信息
|
||||||
|
export function delLdinfo(id) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/ldinfo/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询轮播设置列表
|
||||||
|
export function listLunbo(query) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/lunbo/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询轮播设置详细
|
||||||
|
export function getLunbo(id) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/lunbo/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增轮播设置
|
||||||
|
export function addLunbo(data) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/lunbo',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改轮播设置
|
||||||
|
export function updateLunbo(data) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/lunbo',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除轮播设置
|
||||||
|
export function delLunbo(id) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/lunbo/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询小区信息列表
|
||||||
|
export function listXqinfo(query) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/xqinfo/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询小区信息详细
|
||||||
|
export function getXqinfo(id) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/xqinfo/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增小区信息
|
||||||
|
export function addXqinfo(data) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/xqinfo',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改小区信息
|
||||||
|
export function updateXqinfo(data) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/xqinfo',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除小区信息
|
||||||
|
export function delXqinfo(id) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/xqinfo/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -0,0 +1,399 @@
|
|||||||
|
<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="title">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.title"
|
||||||
|
placeholder="请输入标题"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="负责人" prop="leader">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.leader"
|
||||||
|
placeholder="请输入负责人"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="联系电话" prop="phone">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.phone"
|
||||||
|
placeholder="请输入联系电话"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="级别(县/乡/村)" prop="leave">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.leave"
|
||||||
|
placeholder="请输入级别(县/乡/村)"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="创建时间" prop="startTime">
|
||||||
|
<el-date-picker clearable
|
||||||
|
v-model="queryParams.startTime"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择创建时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="创建时间" prop="endTime">
|
||||||
|
<el-date-picker clearable
|
||||||
|
v-model="queryParams.endTime"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择创建时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="部门id" prop="deptId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.deptId"
|
||||||
|
placeholder="请输入部门id"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="所属网格" prop="deptName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.deptName"
|
||||||
|
placeholder="请输入所属网格"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="创建者ID" prop="userId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.userId"
|
||||||
|
placeholder="请输入创建者ID"
|
||||||
|
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="['szxc:activily: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="['szxc:activily: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="['szxc:activily: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="['szxc:activily:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="activilyList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="id" align="center" prop="id" />
|
||||||
|
<el-table-column label="标题" align="center" prop="title" />
|
||||||
|
<el-table-column label="负责人" align="center" prop="leader" />
|
||||||
|
<el-table-column label="联系电话" align="center" prop="phone" />
|
||||||
|
<el-table-column label="类型(公告/咨询)" align="center" prop="type" />
|
||||||
|
<el-table-column label="活动介绍" align="center" prop="content" />
|
||||||
|
<el-table-column label="级别(县/乡/村)" align="center" prop="leave" />
|
||||||
|
<el-table-column label="创建时间" align="center" prop="startTime" width="180">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.startTime, '{y}-{m}-{d}') }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="创建时间" align="center" prop="endTime" width="180">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.endTime, '{y}-{m}-{d}') }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="备注" align="center" prop="remark" />
|
||||||
|
<el-table-column label="部门id" align="center" prop="deptId" />
|
||||||
|
<el-table-column label="所属网格" align="center" prop="deptName" />
|
||||||
|
<el-table-column label="创建者ID" align="center" prop="userId" />
|
||||||
|
<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="['szxc:activily:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['szxc:activily: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="title">
|
||||||
|
<el-input v-model="form.title" placeholder="请输入标题" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="负责人" prop="leader">
|
||||||
|
<el-input v-model="form.leader" placeholder="请输入负责人" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="联系电话" prop="phone">
|
||||||
|
<el-input v-model="form.phone" placeholder="请输入联系电话" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="活动介绍">
|
||||||
|
<editor v-model="form.content" :min-height="192"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="级别(县/乡/村)" prop="leave">
|
||||||
|
<el-input v-model="form.leave" placeholder="请输入级别(县/乡/村)" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="创建时间" prop="startTime">
|
||||||
|
<el-date-picker clearable
|
||||||
|
v-model="form.startTime"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择创建时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="创建时间" prop="endTime">
|
||||||
|
<el-date-picker clearable
|
||||||
|
v-model="form.endTime"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择创建时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="备注" prop="remark">
|
||||||
|
<el-input v-model="form.remark" placeholder="请输入备注" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="部门id" prop="deptId">
|
||||||
|
<el-input v-model="form.deptId" placeholder="请输入部门id" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="所属网格" prop="deptName">
|
||||||
|
<el-input v-model="form.deptName" placeholder="请输入所属网格" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="创建者ID" prop="userId">
|
||||||
|
<el-input v-model="form.userId" placeholder="请输入创建者ID" />
|
||||||
|
</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 { listActivily, getActivily, delActivily, addActivily, updateActivily } from "@/api/szxc/activily";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Activily",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 公益活动表格数据
|
||||||
|
activilyList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
title: null,
|
||||||
|
leader: null,
|
||||||
|
phone: null,
|
||||||
|
type: null,
|
||||||
|
content: null,
|
||||||
|
leave: null,
|
||||||
|
startTime: null,
|
||||||
|
endTime: null,
|
||||||
|
deptId: null,
|
||||||
|
deptName: null,
|
||||||
|
userId: null
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
title: [
|
||||||
|
{ required: true, message: "标题不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
deptId: [
|
||||||
|
{ required: true, message: "部门id不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询公益活动列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listActivily(this.queryParams).then(response => {
|
||||||
|
this.activilyList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
id: null,
|
||||||
|
title: null,
|
||||||
|
leader: null,
|
||||||
|
phone: null,
|
||||||
|
type: null,
|
||||||
|
content: null,
|
||||||
|
leave: null,
|
||||||
|
startTime: null,
|
||||||
|
endTime: null,
|
||||||
|
createBy: null,
|
||||||
|
remark: null,
|
||||||
|
createTime: null,
|
||||||
|
updateBy: null,
|
||||||
|
updateTime: null,
|
||||||
|
deptId: null,
|
||||||
|
deptName: null,
|
||||||
|
userId: 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
|
||||||
|
getActivily(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) {
|
||||||
|
updateActivily(this.form).then(response => {
|
||||||
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addActivily(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 delActivily(ids);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
}).catch(() => {});
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
this.download('szxc/activily/export', {
|
||||||
|
...this.queryParams
|
||||||
|
}, `activily_${new Date().getTime()}.xlsx`)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
@ -0,0 +1,263 @@
|
|||||||
|
<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="title">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.title"
|
||||||
|
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="['szxc:guide: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="['szxc:guide: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="['szxc:guide: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="['szxc:guide:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="guideList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="id" align="center" prop="id" />
|
||||||
|
<el-table-column label="标题" align="center" prop="title" />
|
||||||
|
<el-table-column label="简介" align="center" prop="content" />
|
||||||
|
<el-table-column label="状态" align="center" prop="status" />
|
||||||
|
<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="['szxc:guide:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['szxc:guide: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="title">
|
||||||
|
<el-input v-model="form.title" placeholder="请输入标题" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="简介">
|
||||||
|
<editor v-model="form.content" :min-height="192"/>
|
||||||
|
</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 { listGuide, getGuide, delGuide, addGuide, updateGuide } from "@/api/szxc/guide";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Guide",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 办事指南表格数据
|
||||||
|
guideList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
title: null,
|
||||||
|
content: null,
|
||||||
|
status: null,
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询办事指南列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listGuide(this.queryParams).then(response => {
|
||||||
|
this.guideList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
id: null,
|
||||||
|
title: null,
|
||||||
|
content: null,
|
||||||
|
status: null,
|
||||||
|
createBy: null,
|
||||||
|
createTime: null,
|
||||||
|
updateBy: null,
|
||||||
|
updateTime: 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
|
||||||
|
getGuide(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) {
|
||||||
|
updateGuide(this.form).then(response => {
|
||||||
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addGuide(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 delGuide(ids);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
}).catch(() => {});
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
this.download('szxc/guide/export', {
|
||||||
|
...this.queryParams
|
||||||
|
}, `guide_${new Date().getTime()}.xlsx`)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
@ -0,0 +1,412 @@
|
|||||||
|
<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="xqId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.xqId"
|
||||||
|
placeholder="请输入所属小区"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="楼栋名称" prop="ldName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.ldName"
|
||||||
|
placeholder="请输入楼栋名称"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="类别字典" prop="ldSort">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.ldSort"
|
||||||
|
placeholder="请输入类别字典"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="楼栋结构字典" prop="ldjg">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.ldjg"
|
||||||
|
placeholder="请输入楼栋结构字典"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="取暖方式" prop="qnfs">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.qnfs"
|
||||||
|
placeholder="请输入取暖方式"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="楼层数" prop="lcNum">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.lcNum"
|
||||||
|
placeholder="请输入楼层数"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="单元数" prop="unitNum">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.unitNum"
|
||||||
|
placeholder="请输入单元数"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="户数" prop="huNum">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.huNum"
|
||||||
|
placeholder="请输入户数"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="楼栋描述" prop="ldDescribe">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.ldDescribe"
|
||||||
|
placeholder="请输入楼栋描述"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="部门id" prop="deptId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.deptId"
|
||||||
|
placeholder="请输入部门id"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="所属网格" prop="deptName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.deptName"
|
||||||
|
placeholder="请输入所属网格"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="创建者ID" prop="userId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.userId"
|
||||||
|
placeholder="请输入创建者ID"
|
||||||
|
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="['szxc:ldinfo: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="['szxc:ldinfo: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="['szxc:ldinfo: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="['szxc:ldinfo:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="ldinfoList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="id" align="center" prop="id" />
|
||||||
|
<el-table-column label="所属小区" align="center" prop="xqId" />
|
||||||
|
<el-table-column label="楼栋名称" align="center" prop="ldName" />
|
||||||
|
<el-table-column label="类型(0小区楼栋1独立房2其它)" align="center" prop="xqType" />
|
||||||
|
<el-table-column label="类别字典" align="center" prop="ldSort" />
|
||||||
|
<el-table-column label="楼栋结构字典" align="center" prop="ldjg" />
|
||||||
|
<el-table-column label="取暖方式" align="center" prop="qnfs" />
|
||||||
|
<el-table-column label="楼层数" align="center" prop="lcNum" />
|
||||||
|
<el-table-column label="单元数" align="center" prop="unitNum" />
|
||||||
|
<el-table-column label="户数" align="center" prop="huNum" />
|
||||||
|
<el-table-column label="楼栋描述" align="center" prop="ldDescribe" />
|
||||||
|
<el-table-column label="部门id" align="center" prop="deptId" />
|
||||||
|
<el-table-column label="所属网格" align="center" prop="deptName" />
|
||||||
|
<el-table-column label="创建者ID" align="center" prop="userId" />
|
||||||
|
<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="['szxc:ldinfo:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['szxc:ldinfo: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="xqId">
|
||||||
|
<el-input v-model="form.xqId" placeholder="请输入所属小区" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="楼栋名称" prop="ldName">
|
||||||
|
<el-input v-model="form.ldName" placeholder="请输入楼栋名称" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="类别字典" prop="ldSort">
|
||||||
|
<el-input v-model="form.ldSort" placeholder="请输入类别字典" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="楼栋结构字典" prop="ldjg">
|
||||||
|
<el-input v-model="form.ldjg" placeholder="请输入楼栋结构字典" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="取暖方式" prop="qnfs">
|
||||||
|
<el-input v-model="form.qnfs" placeholder="请输入取暖方式" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="楼层数" prop="lcNum">
|
||||||
|
<el-input v-model="form.lcNum" placeholder="请输入楼层数" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="单元数" prop="unitNum">
|
||||||
|
<el-input v-model="form.unitNum" placeholder="请输入单元数" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="户数" prop="huNum">
|
||||||
|
<el-input v-model="form.huNum" placeholder="请输入户数" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="楼栋描述" prop="ldDescribe">
|
||||||
|
<el-input v-model="form.ldDescribe" placeholder="请输入楼栋描述" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="部门id" prop="deptId">
|
||||||
|
<el-input v-model="form.deptId" placeholder="请输入部门id" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="所属网格" prop="deptName">
|
||||||
|
<el-input v-model="form.deptName" placeholder="请输入所属网格" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="创建者ID" prop="userId">
|
||||||
|
<el-input v-model="form.userId" placeholder="请输入创建者ID" />
|
||||||
|
</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 { listLdinfo, getLdinfo, delLdinfo, addLdinfo, updateLdinfo } from "@/api/szxc/ldinfo";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Ldinfo",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 楼栋信息表格数据
|
||||||
|
ldinfoList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
xqId: null,
|
||||||
|
ldName: null,
|
||||||
|
xqType: null,
|
||||||
|
ldSort: null,
|
||||||
|
ldjg: null,
|
||||||
|
qnfs: null,
|
||||||
|
lcNum: null,
|
||||||
|
unitNum: null,
|
||||||
|
huNum: null,
|
||||||
|
ldDescribe: null,
|
||||||
|
deptId: null,
|
||||||
|
deptName: null,
|
||||||
|
userId: null
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
xqId: [
|
||||||
|
{ required: true, message: "所属小区不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
deptId: [
|
||||||
|
{ required: true, message: "部门id不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询楼栋信息列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listLdinfo(this.queryParams).then(response => {
|
||||||
|
this.ldinfoList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
id: null,
|
||||||
|
xqId: null,
|
||||||
|
ldName: null,
|
||||||
|
xqType: null,
|
||||||
|
ldSort: null,
|
||||||
|
ldjg: null,
|
||||||
|
qnfs: null,
|
||||||
|
lcNum: null,
|
||||||
|
unitNum: null,
|
||||||
|
huNum: null,
|
||||||
|
ldDescribe: null,
|
||||||
|
createBy: null,
|
||||||
|
createTime: null,
|
||||||
|
updateBy: null,
|
||||||
|
updateTime: null,
|
||||||
|
deptId: null,
|
||||||
|
deptName: null,
|
||||||
|
userId: 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
|
||||||
|
getLdinfo(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) {
|
||||||
|
updateLdinfo(this.form).then(response => {
|
||||||
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addLdinfo(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 delLdinfo(ids);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
}).catch(() => {});
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
this.download('szxc/ldinfo/export', {
|
||||||
|
...this.queryParams
|
||||||
|
}, `ldinfo_${new Date().getTime()}.xlsx`)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
@ -0,0 +1,274 @@
|
|||||||
|
<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="title">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.title"
|
||||||
|
placeholder="请输入标题"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="图片地址" prop="picture">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.picture"
|
||||||
|
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="['szxc:lunbo: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="['szxc:lunbo: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="['szxc:lunbo: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="['szxc:lunbo:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="lunboList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="id" align="center" prop="id" />
|
||||||
|
<el-table-column label="标题" align="center" prop="title" />
|
||||||
|
<el-table-column label="图片地址" align="center" prop="picture" />
|
||||||
|
<el-table-column label="简介" align="center" prop="content" />
|
||||||
|
<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="['szxc:lunbo:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['szxc:lunbo: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="title">
|
||||||
|
<el-input v-model="form.title" placeholder="请输入标题" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="图片地址" prop="picture">
|
||||||
|
<el-input v-model="form.picture" placeholder="请输入图片地址" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="简介">
|
||||||
|
<editor v-model="form.content" :min-height="192"/>
|
||||||
|
</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 { listLunbo, getLunbo, delLunbo, addLunbo, updateLunbo } from "@/api/szxc/lunbo";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Lunbo",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 轮播设置表格数据
|
||||||
|
lunboList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
title: null,
|
||||||
|
picture: null,
|
||||||
|
content: null,
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询轮播设置列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listLunbo(this.queryParams).then(response => {
|
||||||
|
this.lunboList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
id: null,
|
||||||
|
title: null,
|
||||||
|
picture: null,
|
||||||
|
content: null,
|
||||||
|
remark: null,
|
||||||
|
createBy: null,
|
||||||
|
createTime: null,
|
||||||
|
updateBy: null,
|
||||||
|
updateTime: 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
|
||||||
|
getLunbo(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) {
|
||||||
|
updateLunbo(this.form).then(response => {
|
||||||
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addLunbo(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 delLunbo(ids);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
}).catch(() => {});
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
this.download('szxc/lunbo/export', {
|
||||||
|
...this.queryParams
|
||||||
|
}, `lunbo_${new Date().getTime()}.xlsx`)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
@ -0,0 +1,407 @@
|
|||||||
|
<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="ldNum">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.ldNum"
|
||||||
|
placeholder="请输入楼栋数"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="建筑面积" prop="jzArea">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.jzArea"
|
||||||
|
placeholder="请输入建筑面积"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="占地面积" prop="zdArea">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.zdArea"
|
||||||
|
placeholder="请输入占地面积"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="物业负责人" prop="wyResponse">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.wyResponse"
|
||||||
|
placeholder="请输入物业负责人"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="联系电话" prop="wyPhone">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.wyPhone"
|
||||||
|
placeholder="请输入联系电话"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="小区地址" prop="xqAddress">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.xqAddress"
|
||||||
|
placeholder="请输入小区地址"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="建成日期" prop="buildDate">
|
||||||
|
<el-date-picker clearable
|
||||||
|
v-model="queryParams.buildDate"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择建成日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="小区描述" prop="xqDescribe">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.xqDescribe"
|
||||||
|
placeholder="请输入小区描述"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="部门id" prop="deptId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.deptId"
|
||||||
|
placeholder="请输入部门id"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="所属网格" prop="deptName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.deptName"
|
||||||
|
placeholder="请输入所属网格"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="创建者ID" prop="userId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.userId"
|
||||||
|
placeholder="请输入创建者ID"
|
||||||
|
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="['szxc:xqinfo: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="['szxc:xqinfo: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="['szxc:xqinfo: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="['szxc:xqinfo:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="xqinfoList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="id" align="center" prop="id" />
|
||||||
|
<el-table-column label="类型(0老旧1新2片区散户)" align="center" prop="xqType" />
|
||||||
|
<el-table-column label="楼栋数" align="center" prop="ldNum" />
|
||||||
|
<el-table-column label="建筑面积" align="center" prop="jzArea" />
|
||||||
|
<el-table-column label="占地面积" align="center" prop="zdArea" />
|
||||||
|
<el-table-column label="物业管理方式(0物业公司1业主自治2其他)" align="center" prop="wyType" />
|
||||||
|
<el-table-column label="物业负责人" align="center" prop="wyResponse" />
|
||||||
|
<el-table-column label="联系电话" align="center" prop="wyPhone" />
|
||||||
|
<el-table-column label="小区地址" align="center" prop="xqAddress" />
|
||||||
|
<el-table-column label="建成日期" align="center" prop="buildDate" width="180">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.buildDate, '{y}-{m}-{d}') }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="小区描述" align="center" prop="xqDescribe" />
|
||||||
|
<el-table-column label="部门id" align="center" prop="deptId" />
|
||||||
|
<el-table-column label="所属网格" align="center" prop="deptName" />
|
||||||
|
<el-table-column label="创建者ID" align="center" prop="userId" />
|
||||||
|
<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="['szxc:xqinfo:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['szxc:xqinfo: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="ldNum">
|
||||||
|
<el-input v-model="form.ldNum" placeholder="请输入楼栋数" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="建筑面积" prop="jzArea">
|
||||||
|
<el-input v-model="form.jzArea" placeholder="请输入建筑面积" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="占地面积" prop="zdArea">
|
||||||
|
<el-input v-model="form.zdArea" placeholder="请输入占地面积" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="物业负责人" prop="wyResponse">
|
||||||
|
<el-input v-model="form.wyResponse" placeholder="请输入物业负责人" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="联系电话" prop="wyPhone">
|
||||||
|
<el-input v-model="form.wyPhone" placeholder="请输入联系电话" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="小区地址" prop="xqAddress">
|
||||||
|
<el-input v-model="form.xqAddress" placeholder="请输入小区地址" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="建成日期" prop="buildDate">
|
||||||
|
<el-date-picker clearable
|
||||||
|
v-model="form.buildDate"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择建成日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="小区描述" prop="xqDescribe">
|
||||||
|
<el-input v-model="form.xqDescribe" placeholder="请输入小区描述" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="部门id" prop="deptId">
|
||||||
|
<el-input v-model="form.deptId" placeholder="请输入部门id" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="所属网格" prop="deptName">
|
||||||
|
<el-input v-model="form.deptName" placeholder="请输入所属网格" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="创建者ID" prop="userId">
|
||||||
|
<el-input v-model="form.userId" placeholder="请输入创建者ID" />
|
||||||
|
</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 { listXqinfo, getXqinfo, delXqinfo, addXqinfo, updateXqinfo } from "@/api/szxc/xqinfo";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Xqinfo",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 小区信息表格数据
|
||||||
|
xqinfoList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
xqType: null,
|
||||||
|
ldNum: null,
|
||||||
|
jzArea: null,
|
||||||
|
zdArea: null,
|
||||||
|
wyType: null,
|
||||||
|
wyResponse: null,
|
||||||
|
wyPhone: null,
|
||||||
|
xqAddress: null,
|
||||||
|
buildDate: null,
|
||||||
|
xqDescribe: null,
|
||||||
|
deptId: null,
|
||||||
|
deptName: null,
|
||||||
|
userId: null
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
deptId: [
|
||||||
|
{ required: true, message: "部门id不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询小区信息列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listXqinfo(this.queryParams).then(response => {
|
||||||
|
this.xqinfoList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
id: null,
|
||||||
|
xqType: null,
|
||||||
|
ldNum: null,
|
||||||
|
jzArea: null,
|
||||||
|
zdArea: null,
|
||||||
|
wyType: null,
|
||||||
|
wyResponse: null,
|
||||||
|
wyPhone: null,
|
||||||
|
xqAddress: null,
|
||||||
|
buildDate: null,
|
||||||
|
xqDescribe: null,
|
||||||
|
createBy: null,
|
||||||
|
createTime: null,
|
||||||
|
updateBy: null,
|
||||||
|
updateTime: null,
|
||||||
|
deptId: null,
|
||||||
|
deptName: null,
|
||||||
|
userId: 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
|
||||||
|
getXqinfo(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) {
|
||||||
|
updateXqinfo(this.form).then(response => {
|
||||||
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addXqinfo(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 delXqinfo(ids);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
}).catch(() => {});
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
this.download('szxc/xqinfo/export', {
|
||||||
|
...this.queryParams
|
||||||
|
}, `xqinfo_${new Date().getTime()}.xlsx`)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
Loading…
Reference in new issue