Merge remote-tracking branch 'origin/main'

# Conflicts:
#	ruoyi-ui/src/views/szxc/ldinfo/index.vue
main
wanglei 2 years ago
commit d156487355

@ -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.SzxcCsEmplyees;
import com.ruoyi.szxc.service.ISzxcCsEmplyeesService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author hs
* @date 2024-03-28
*/
@RestController
@RequestMapping("/szxc/emplyees")
public class SzxcCsEmplyeesController extends BaseController
{
@Autowired
private ISzxcCsEmplyeesService szxcCsEmplyeesService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:emplyees:list')")
@GetMapping("/list")
public TableDataInfo list(SzxcCsEmplyees szxcCsEmplyees)
{
startPage();
List<SzxcCsEmplyees> list = szxcCsEmplyeesService.selectSzxcCsEmplyeesList(szxcCsEmplyees);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:emplyees:export')")
@Log(title = "场所员工", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SzxcCsEmplyees szxcCsEmplyees)
{
List<SzxcCsEmplyees> list = szxcCsEmplyeesService.selectSzxcCsEmplyeesList(szxcCsEmplyees);
ExcelUtil<SzxcCsEmplyees> util = new ExcelUtil<SzxcCsEmplyees>(SzxcCsEmplyees.class);
util.exportExcel(response, list, "场所员工数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:emplyees:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(szxcCsEmplyeesService.selectSzxcCsEmplyeesById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:emplyees:add')")
@Log(title = "场所员工", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SzxcCsEmplyees szxcCsEmplyees)
{
return toAjax(szxcCsEmplyeesService.insertSzxcCsEmplyees(szxcCsEmplyees));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:emplyees:edit')")
@Log(title = "场所员工", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SzxcCsEmplyees szxcCsEmplyees)
{
return toAjax(szxcCsEmplyeesService.updateSzxcCsEmplyees(szxcCsEmplyees));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:emplyees:remove')")
@Log(title = "场所员工", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(szxcCsEmplyeesService.deleteSzxcCsEmplyeesByIds(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.SzxcCsResponse;
import com.ruoyi.szxc.service.ISzxcCsResponseService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author hs
* @date 2024-03-28
*/
@RestController
@RequestMapping("/szxc/response")
public class SzxcCsResponseController extends BaseController
{
@Autowired
private ISzxcCsResponseService szxcCsResponseService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:response:list')")
@GetMapping("/list")
public TableDataInfo list(SzxcCsResponse szxcCsResponse)
{
startPage();
List<SzxcCsResponse> list = szxcCsResponseService.selectSzxcCsResponseList(szxcCsResponse);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:response:export')")
@Log(title = "场所负责人", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SzxcCsResponse szxcCsResponse)
{
List<SzxcCsResponse> list = szxcCsResponseService.selectSzxcCsResponseList(szxcCsResponse);
ExcelUtil<SzxcCsResponse> util = new ExcelUtil<SzxcCsResponse>(SzxcCsResponse.class);
util.exportExcel(response, list, "场所负责人数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:response:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(szxcCsResponseService.selectSzxcCsResponseById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:response:add')")
@Log(title = "场所负责人", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SzxcCsResponse szxcCsResponse)
{
return toAjax(szxcCsResponseService.insertSzxcCsResponse(szxcCsResponse));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:response:edit')")
@Log(title = "场所负责人", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SzxcCsResponse szxcCsResponse)
{
return toAjax(szxcCsResponseService.updateSzxcCsResponse(szxcCsResponse));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:response:remove')")
@Log(title = "场所负责人", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(szxcCsResponseService.deleteSzxcCsResponseByIds(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.SzxcPlaceManage;
import com.ruoyi.szxc.service.ISzxcPlaceManageService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author hs
* @date 2024-03-28
*/
@RestController
@RequestMapping("/szxc/csmanage")
public class SzxcPlaceManageController extends BaseController
{
@Autowired
private ISzxcPlaceManageService szxcPlaceManageService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:csmanage:list')")
@GetMapping("/list")
public TableDataInfo list(SzxcPlaceManage szxcPlaceManage)
{
startPage();
List<SzxcPlaceManage> list = szxcPlaceManageService.selectSzxcPlaceManageList(szxcPlaceManage);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:csmanage:export')")
@Log(title = "场所管理", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SzxcPlaceManage szxcPlaceManage)
{
List<SzxcPlaceManage> list = szxcPlaceManageService.selectSzxcPlaceManageList(szxcPlaceManage);
ExcelUtil<SzxcPlaceManage> util = new ExcelUtil<SzxcPlaceManage>(SzxcPlaceManage.class);
util.exportExcel(response, list, "场所管理数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:csmanage:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(szxcPlaceManageService.selectSzxcPlaceManageById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:csmanage:add')")
@Log(title = "场所管理", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SzxcPlaceManage szxcPlaceManage)
{
return toAjax(szxcPlaceManageService.insertSzxcPlaceManage(szxcPlaceManage));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:csmanage:edit')")
@Log(title = "场所管理", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SzxcPlaceManage szxcPlaceManage)
{
return toAjax(szxcPlaceManageService.updateSzxcPlaceManage(szxcPlaceManage));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:csmanage:remove')")
@Log(title = "场所管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(szxcPlaceManageService.deleteSzxcPlaceManageByIds(ids));
}
}

@ -0,0 +1,209 @@
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_cs_emplyees
*
* @author hs
* @date 2024-03-28
*/
public class SzxcCsEmplyees extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** id */
private Long id;
/** 场所id */
@Excel(name = "场所id")
private Long csId;
/** 场所名称 */
@Excel(name = "场所名称")
private String csName;
/** 员工姓名 */
@Excel(name = "员工姓名")
private String ygName;
/** 手机号 */
@Excel(name = "手机号")
private String phone;
/** 身份证号 */
@Excel(name = "身份证号")
private String cardId;
/** 性别0男 1女 2未知 */
@Excel(name = "性别", readConverterExp = "0=男,1=女,2=未知")
private String sex;
/** 是否党员(0是1否) */
@Excel(name = "是否党员(0是1否)")
private String dyOrNot;
/** 现居住地 */
@Excel(name = "现居住地")
private String currentAddress;
/** 省 */
@Excel(name = "省")
private String province;
/** 市 */
@Excel(name = "市")
private String city;
/** 县 */
@Excel(name = "县")
private String county;
/** 户籍地址 */
@Excel(name = "户籍地址")
private String hjAddress;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCsId(Long csId)
{
this.csId = csId;
}
public Long getCsId()
{
return csId;
}
public void setCsName(String csName)
{
this.csName = csName;
}
public String getCsName()
{
return csName;
}
public void setYgName(String ygName)
{
this.ygName = ygName;
}
public String getYgName()
{
return ygName;
}
public void setPhone(String phone)
{
this.phone = phone;
}
public String getPhone()
{
return phone;
}
public void setCardId(String cardId)
{
this.cardId = cardId;
}
public String getCardId()
{
return cardId;
}
public void setSex(String sex)
{
this.sex = sex;
}
public String getSex()
{
return sex;
}
public void setDyOrNot(String dyOrNot)
{
this.dyOrNot = dyOrNot;
}
public String getDyOrNot()
{
return dyOrNot;
}
public void setCurrentAddress(String currentAddress)
{
this.currentAddress = currentAddress;
}
public String getCurrentAddress()
{
return currentAddress;
}
public void setProvince(String province)
{
this.province = province;
}
public String getProvince()
{
return province;
}
public void setCity(String city)
{
this.city = city;
}
public String getCity()
{
return city;
}
public void setCounty(String county)
{
this.county = county;
}
public String getCounty()
{
return county;
}
public void setHjAddress(String hjAddress)
{
this.hjAddress = hjAddress;
}
public String getHjAddress()
{
return hjAddress;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("csId", getCsId())
.append("csName", getCsName())
.append("ygName", getYgName())
.append("phone", getPhone())
.append("cardId", getCardId())
.append("sex", getSex())
.append("dyOrNot", getDyOrNot())
.append("currentAddress", getCurrentAddress())
.append("province", getProvince())
.append("city", getCity())
.append("county", getCounty())
.append("hjAddress", getHjAddress())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

@ -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_cs_response
*
* @author hs
* @date 2024-03-28
*/
public class SzxcCsResponse extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** id */
private Long id;
/** 场所id */
@Excel(name = "场所id")
private Long csId;
/** 场所名称 */
@Excel(name = "场所名称")
private String csName;
/** 负责人类型 */
@Excel(name = "负责人类型")
private String fzrType;
/** 负责人姓名 */
@Excel(name = "负责人姓名")
private String fzrName;
/** 手机号 */
@Excel(name = "手机号")
private String phone;
/** 身份证号 */
@Excel(name = "身份证号")
private String cardId;
/** 性别0男 1女 2未知 */
@Excel(name = "性别", readConverterExp = "0=男,1=女,2=未知")
private String sex;
/** 是否党员(0是1否) */
@Excel(name = "是否党员(0是1否)")
private String dyOrNot;
/** 现居住地 */
@Excel(name = "现居住地")
private String currentAddress;
/** 省 */
@Excel(name = "省")
private String province;
/** 市 */
@Excel(name = "市")
private String city;
/** 县 */
@Excel(name = "县")
private String county;
/** 户籍地址 */
@Excel(name = "户籍地址")
private String hjAddress;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCsId(Long csId)
{
this.csId = csId;
}
public Long getCsId()
{
return csId;
}
public void setCsName(String csName)
{
this.csName = csName;
}
public String getCsName()
{
return csName;
}
public void setFzrType(String fzrType)
{
this.fzrType = fzrType;
}
public String getFzrType()
{
return fzrType;
}
public void setFzrName(String fzrName)
{
this.fzrName = fzrName;
}
public String getFzrName()
{
return fzrName;
}
public void setPhone(String phone)
{
this.phone = phone;
}
public String getPhone()
{
return phone;
}
public void setCardId(String cardId)
{
this.cardId = cardId;
}
public String getCardId()
{
return cardId;
}
public void setSex(String sex)
{
this.sex = sex;
}
public String getSex()
{
return sex;
}
public void setDyOrNot(String dyOrNot)
{
this.dyOrNot = dyOrNot;
}
public String getDyOrNot()
{
return dyOrNot;
}
public void setCurrentAddress(String currentAddress)
{
this.currentAddress = currentAddress;
}
public String getCurrentAddress()
{
return currentAddress;
}
public void setProvince(String province)
{
this.province = province;
}
public String getProvince()
{
return province;
}
public void setCity(String city)
{
this.city = city;
}
public String getCity()
{
return city;
}
public void setCounty(String county)
{
this.county = county;
}
public String getCounty()
{
return county;
}
public void setHjAddress(String hjAddress)
{
this.hjAddress = hjAddress;
}
public String getHjAddress()
{
return hjAddress;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("csId", getCsId())
.append("csName", getCsName())
.append("fzrType", getFzrType())
.append("fzrName", getFzrName())
.append("phone", getPhone())
.append("cardId", getCardId())
.append("sex", getSex())
.append("dyOrNot", getDyOrNot())
.append("currentAddress", getCurrentAddress())
.append("province", getProvince())
.append("city", getCity())
.append("county", getCounty())
.append("hjAddress", getHjAddress())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

@ -9,7 +9,7 @@ import com.ruoyi.common.core.domain.BaseEntity;
* szxc_ld_info * szxc_ld_info
* *
* @author hs * @author hs
* @date 2024-03-16 * @date 2024-03-28
*/ */
public class SzxcLdInfo extends BaseEntity public class SzxcLdInfo extends BaseEntity
{ {
@ -18,20 +18,24 @@ public class SzxcLdInfo extends BaseEntity
/** id */ /** id */
private Long id; private Long id;
/** 所属小区 */ /** 所属小区id */
@Excel(name = "所属小区") @Excel(name = "所属小区id")
private Long xqId; private Long xqId;
/** 小区名称 */
@Excel(name = "小区名称")
private String xqName;
/** 楼栋名称 */ /** 楼栋名称 */
@Excel(name = "楼栋名称") @Excel(name = "楼栋名称")
private String ldName; private String ldName;
/** 类型(0小区楼栋1独立房2其它) */ /** 楼栋类型(0小区楼栋1独立房2其它) */
@Excel(name = "类型(0小区楼栋1独立房2其它)") @Excel(name = "楼栋类型(0小区楼栋1独立房2其它)")
private String xqType; private String ldType;
/** 类别字典 */ /** 楼栋类别字典 */
@Excel(name = "类别字典") @Excel(name = "楼栋类别字典")
private String ldSort; private String ldSort;
/** 楼栋结构字典 */ /** 楼栋结构字典 */
@ -88,6 +92,15 @@ public class SzxcLdInfo extends BaseEntity
{ {
return xqId; return xqId;
} }
public void setXqName(String xqName)
{
this.xqName = xqName;
}
public String getXqName()
{
return xqName;
}
public void setLdName(String ldName) public void setLdName(String ldName)
{ {
this.ldName = ldName; this.ldName = ldName;
@ -97,14 +110,14 @@ public class SzxcLdInfo extends BaseEntity
{ {
return ldName; return ldName;
} }
public void setXqType(String xqType) public void setLdType(String ldType)
{ {
this.xqType = xqType; this.ldType = ldType;
} }
public String getXqType() public String getLdType()
{ {
return xqType; return ldType;
} }
public void setLdSort(String ldSort) public void setLdSort(String ldSort)
{ {
@ -202,8 +215,9 @@ public class SzxcLdInfo extends BaseEntity
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId()) .append("id", getId())
.append("xqId", getXqId()) .append("xqId", getXqId())
.append("xqName", getXqName())
.append("ldName", getLdName()) .append("ldName", getLdName())
.append("xqType", getXqType()) .append("ldType", getLdType())
.append("ldSort", getLdSort()) .append("ldSort", getLdSort())
.append("ldjg", getLdjg()) .append("ldjg", getLdjg())
.append("qnfs", getQnfs()) .append("qnfs", getQnfs())

@ -0,0 +1,283 @@
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_place_manage
*
* @author hs
* @date 2024-03-28
*/
public class SzxcPlaceManage extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** id */
private Long id;
/** 场所名称 */
@Excel(name = "场所名称")
private String csName;
/** 行业类别(字典) */
@Excel(name = "行业类别(字典)")
private String hyType;
/** 类型(字典) */
@Excel(name = "类型(字典)")
private String csType;
/** 场所地址 */
@Excel(name = "场所地址")
private String csAddress;
/** 员工数量 */
@Excel(name = "员工数量")
private Long employeeNum;
/** 商住一体(0是1否) */
@Excel(name = "商住一体(0是1否)")
private String szyt;
/** 房屋类型(字典) */
@Excel(name = "房屋类型(字典)")
private String fwType;
/** 法人姓名 */
@Excel(name = "法人姓名")
private String frName;
/** 成立日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "成立日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date clDate;
/** 营业期限 */
@Excel(name = "营业期限")
private String yyqx;
/** 统一社会信用代码 */
@Excel(name = "统一社会信用代码")
private String tyshxyCode;
/** 营业执照 */
@Excel(name = "营业执照")
private String yyzzPicture;
/** 关联房屋id */
@Excel(name = "关联房屋id")
private Long glfwId;
/** 关联房屋名称 */
@Excel(name = "关联房屋名称")
private String glfwName;
/** 部门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 setCsName(String csName)
{
this.csName = csName;
}
public String getCsName()
{
return csName;
}
public void setHyType(String hyType)
{
this.hyType = hyType;
}
public String getHyType()
{
return hyType;
}
public void setCsType(String csType)
{
this.csType = csType;
}
public String getCsType()
{
return csType;
}
public void setCsAddress(String csAddress)
{
this.csAddress = csAddress;
}
public String getCsAddress()
{
return csAddress;
}
public void setEmployeeNum(Long employeeNum)
{
this.employeeNum = employeeNum;
}
public Long getEmployeeNum()
{
return employeeNum;
}
public void setSzyt(String szyt)
{
this.szyt = szyt;
}
public String getSzyt()
{
return szyt;
}
public void setFwType(String fwType)
{
this.fwType = fwType;
}
public String getFwType()
{
return fwType;
}
public void setFrName(String frName)
{
this.frName = frName;
}
public String getFrName()
{
return frName;
}
public void setClDate(Date clDate)
{
this.clDate = clDate;
}
public Date getClDate()
{
return clDate;
}
public void setYyqx(String yyqx)
{
this.yyqx = yyqx;
}
public String getYyqx()
{
return yyqx;
}
public void setTyshxyCode(String tyshxyCode)
{
this.tyshxyCode = tyshxyCode;
}
public String getTyshxyCode()
{
return tyshxyCode;
}
public void setYyzzPicture(String yyzzPicture)
{
this.yyzzPicture = yyzzPicture;
}
public String getYyzzPicture()
{
return yyzzPicture;
}
public void setGlfwId(Long glfwId)
{
this.glfwId = glfwId;
}
public Long getGlfwId()
{
return glfwId;
}
public void setGlfwName(String glfwName)
{
this.glfwName = glfwName;
}
public String getGlfwName()
{
return glfwName;
}
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("csName", getCsName())
.append("hyType", getHyType())
.append("csType", getCsType())
.append("csAddress", getCsAddress())
.append("employeeNum", getEmployeeNum())
.append("szyt", getSzyt())
.append("fwType", getFwType())
.append("frName", getFrName())
.append("clDate", getClDate())
.append("yyqx", getYyqx())
.append("tyshxyCode", getTyshxyCode())
.append("yyzzPicture", getYyzzPicture())
.append("glfwId", getGlfwId())
.append("glfwName", getGlfwName())
.append("remark", getRemark())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("deptId", getDeptId())
.append("deptName", getDeptName())
.append("userId", getUserId())
.toString();
}
}

@ -1,17 +1,18 @@
package com.ruoyi.szxc.domain; package com.ruoyi.szxc.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat; 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.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity; import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.Date;
/** /**
* szxc_xq_info * szxc_xq_info
* *
* @author hs * @author hs
* @date 2024-03-16 * @date 2024-03-28
*/ */
public class SzxcXqInfo extends BaseEntity public class SzxcXqInfo extends BaseEntity
{ {
@ -20,6 +21,10 @@ public class SzxcXqInfo extends BaseEntity
/** id */ /** id */
private Long id; private Long id;
/** 小区名称 */
@Excel(name = "小区名称")
private String name;
/** 类型(0老旧1新2片区散户) */ /** 类型(0老旧1新2片区散户) */
@Excel(name = "类型(0老旧1新2片区散户)") @Excel(name = "类型(0老旧1新2片区散户)")
private String xqType; private String xqType;
@ -82,6 +87,15 @@ public class SzxcXqInfo extends BaseEntity
{ {
return id; return id;
} }
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setXqType(String xqType) public void setXqType(String xqType)
{ {
this.xqType = xqType; this.xqType = xqType;
@ -204,6 +218,7 @@ public class SzxcXqInfo extends BaseEntity
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId()) .append("id", getId())
.append("name", getName())
.append("xqType", getXqType()) .append("xqType", getXqType())
.append("ldNum", getLdNum()) .append("ldNum", getLdNum())
.append("jzArea", getJzArea()) .append("jzArea", getJzArea())

@ -0,0 +1,62 @@
package com.ruoyi.szxc.mapper;
import com.ruoyi.szxc.domain.SzxcCsEmplyees;
import java.util.List;
/**
* Mapper
*
* @author hs
* @date 2024-03-28
*/
public interface SzxcCsEmplyeesMapper
{
/**
*
*
* @param id
* @return
*/
public SzxcCsEmplyees selectSzxcCsEmplyeesById(Long id);
/**
*
*
* @param szxcCsEmplyees
* @return
*/
public List<SzxcCsEmplyees> selectSzxcCsEmplyeesList(SzxcCsEmplyees szxcCsEmplyees);
/**
*
*
* @param szxcCsEmplyees
* @return
*/
public int insertSzxcCsEmplyees(SzxcCsEmplyees szxcCsEmplyees);
/**
*
*
* @param szxcCsEmplyees
* @return
*/
public int updateSzxcCsEmplyees(SzxcCsEmplyees szxcCsEmplyees);
/**
*
*
* @param id
* @return
*/
public int deleteSzxcCsEmplyeesById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteSzxcCsEmplyeesByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.szxc.mapper;
import java.util.List;
import com.ruoyi.szxc.domain.SzxcCsResponse;
/**
* Mapper
*
* @author hs
* @date 2024-03-28
*/
public interface SzxcCsResponseMapper
{
/**
*
*
* @param id
* @return
*/
public SzxcCsResponse selectSzxcCsResponseById(Long id);
/**
*
*
* @param szxcCsResponse
* @return
*/
public List<SzxcCsResponse> selectSzxcCsResponseList(SzxcCsResponse szxcCsResponse);
/**
*
*
* @param szxcCsResponse
* @return
*/
public int insertSzxcCsResponse(SzxcCsResponse szxcCsResponse);
/**
*
*
* @param szxcCsResponse
* @return
*/
public int updateSzxcCsResponse(SzxcCsResponse szxcCsResponse);
/**
*
*
* @param id
* @return
*/
public int deleteSzxcCsResponseById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteSzxcCsResponseByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.szxc.mapper;
import java.util.List;
import com.ruoyi.szxc.domain.SzxcPlaceManage;
/**
* Mapper
*
* @author hs
* @date 2024-03-28
*/
public interface SzxcPlaceManageMapper
{
/**
*
*
* @param id
* @return
*/
public SzxcPlaceManage selectSzxcPlaceManageById(Long id);
/**
*
*
* @param szxcPlaceManage
* @return
*/
public List<SzxcPlaceManage> selectSzxcPlaceManageList(SzxcPlaceManage szxcPlaceManage);
/**
*
*
* @param szxcPlaceManage
* @return
*/
public int insertSzxcPlaceManage(SzxcPlaceManage szxcPlaceManage);
/**
*
*
* @param szxcPlaceManage
* @return
*/
public int updateSzxcPlaceManage(SzxcPlaceManage szxcPlaceManage);
/**
*
*
* @param id
* @return
*/
public int deleteSzxcPlaceManageById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteSzxcPlaceManageByIds(Long[] ids);
}

@ -0,0 +1,62 @@
package com.ruoyi.szxc.service;
import com.ruoyi.szxc.domain.SzxcCsEmplyees;
import java.util.List;
/**
* Service
*
* @author hs
* @date 2024-03-28
*/
public interface ISzxcCsEmplyeesService
{
/**
*
*
* @param id
* @return
*/
public SzxcCsEmplyees selectSzxcCsEmplyeesById(Long id);
/**
*
*
* @param szxcCsEmplyees
* @return
*/
public List<SzxcCsEmplyees> selectSzxcCsEmplyeesList(SzxcCsEmplyees szxcCsEmplyees);
/**
*
*
* @param szxcCsEmplyees
* @return
*/
public int insertSzxcCsEmplyees(SzxcCsEmplyees szxcCsEmplyees);
/**
*
*
* @param szxcCsEmplyees
* @return
*/
public int updateSzxcCsEmplyees(SzxcCsEmplyees szxcCsEmplyees);
/**
*
*
* @param ids
* @return
*/
public int deleteSzxcCsEmplyeesByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteSzxcCsEmplyeesById(Long id);
}

@ -0,0 +1,61 @@
package com.ruoyi.szxc.service;
import java.util.List;
import com.ruoyi.szxc.domain.SzxcCsResponse;
/**
* Service
*
* @author hs
* @date 2024-03-28
*/
public interface ISzxcCsResponseService
{
/**
*
*
* @param id
* @return
*/
public SzxcCsResponse selectSzxcCsResponseById(Long id);
/**
*
*
* @param szxcCsResponse
* @return
*/
public List<SzxcCsResponse> selectSzxcCsResponseList(SzxcCsResponse szxcCsResponse);
/**
*
*
* @param szxcCsResponse
* @return
*/
public int insertSzxcCsResponse(SzxcCsResponse szxcCsResponse);
/**
*
*
* @param szxcCsResponse
* @return
*/
public int updateSzxcCsResponse(SzxcCsResponse szxcCsResponse);
/**
*
*
* @param ids
* @return
*/
public int deleteSzxcCsResponseByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteSzxcCsResponseById(Long id);
}

@ -0,0 +1,61 @@
package com.ruoyi.szxc.service;
import java.util.List;
import com.ruoyi.szxc.domain.SzxcPlaceManage;
/**
* Service
*
* @author hs
* @date 2024-03-28
*/
public interface ISzxcPlaceManageService
{
/**
*
*
* @param id
* @return
*/
public SzxcPlaceManage selectSzxcPlaceManageById(Long id);
/**
*
*
* @param szxcPlaceManage
* @return
*/
public List<SzxcPlaceManage> selectSzxcPlaceManageList(SzxcPlaceManage szxcPlaceManage);
/**
*
*
* @param szxcPlaceManage
* @return
*/
public int insertSzxcPlaceManage(SzxcPlaceManage szxcPlaceManage);
/**
*
*
* @param szxcPlaceManage
* @return
*/
public int updateSzxcPlaceManage(SzxcPlaceManage szxcPlaceManage);
/**
*
*
* @param ids
* @return
*/
public int deleteSzxcPlaceManageByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteSzxcPlaceManageById(Long id);
}

@ -0,0 +1,97 @@
package com.ruoyi.szxc.service.impl;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.szxc.domain.SzxcCsEmplyees;
import com.ruoyi.szxc.mapper.SzxcCsEmplyeesMapper;
import com.ruoyi.szxc.service.ISzxcCsEmplyeesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Service
*
* @author hs
* @date 2024-03-28
*/
@Service
public class SzxcCsEmplyeesServiceImpl implements ISzxcCsEmplyeesService
{
@Autowired
private SzxcCsEmplyeesMapper szxcCsEmplyeesMapper;
/**
*
*
* @param id
* @return
*/
@Override
public SzxcCsEmplyees selectSzxcCsEmplyeesById(Long id)
{
return szxcCsEmplyeesMapper.selectSzxcCsEmplyeesById(id);
}
/**
*
*
* @param szxcCsEmplyees
* @return
*/
@Override
public List<SzxcCsEmplyees> selectSzxcCsEmplyeesList(SzxcCsEmplyees szxcCsEmplyees)
{
return szxcCsEmplyeesMapper.selectSzxcCsEmplyeesList(szxcCsEmplyees);
}
/**
*
*
* @param szxcCsEmplyees
* @return
*/
@Override
public int insertSzxcCsEmplyees(SzxcCsEmplyees szxcCsEmplyees)
{
szxcCsEmplyees.setCreateTime(DateUtils.getNowDate());
return szxcCsEmplyeesMapper.insertSzxcCsEmplyees(szxcCsEmplyees);
}
/**
*
*
* @param szxcCsEmplyees
* @return
*/
@Override
public int updateSzxcCsEmplyees(SzxcCsEmplyees szxcCsEmplyees)
{
szxcCsEmplyees.setUpdateTime(DateUtils.getNowDate());
return szxcCsEmplyeesMapper.updateSzxcCsEmplyees(szxcCsEmplyees);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteSzxcCsEmplyeesByIds(Long[] ids)
{
return szxcCsEmplyeesMapper.deleteSzxcCsEmplyeesByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteSzxcCsEmplyeesById(Long id)
{
return szxcCsEmplyeesMapper.deleteSzxcCsEmplyeesById(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.SzxcCsResponseMapper;
import com.ruoyi.szxc.domain.SzxcCsResponse;
import com.ruoyi.szxc.service.ISzxcCsResponseService;
/**
* Service
*
* @author hs
* @date 2024-03-28
*/
@Service
public class SzxcCsResponseServiceImpl implements ISzxcCsResponseService
{
@Autowired
private SzxcCsResponseMapper szxcCsResponseMapper;
/**
*
*
* @param id
* @return
*/
@Override
public SzxcCsResponse selectSzxcCsResponseById(Long id)
{
return szxcCsResponseMapper.selectSzxcCsResponseById(id);
}
/**
*
*
* @param szxcCsResponse
* @return
*/
@Override
public List<SzxcCsResponse> selectSzxcCsResponseList(SzxcCsResponse szxcCsResponse)
{
return szxcCsResponseMapper.selectSzxcCsResponseList(szxcCsResponse);
}
/**
*
*
* @param szxcCsResponse
* @return
*/
@Override
public int insertSzxcCsResponse(SzxcCsResponse szxcCsResponse)
{
szxcCsResponse.setCreateTime(DateUtils.getNowDate());
return szxcCsResponseMapper.insertSzxcCsResponse(szxcCsResponse);
}
/**
*
*
* @param szxcCsResponse
* @return
*/
@Override
public int updateSzxcCsResponse(SzxcCsResponse szxcCsResponse)
{
szxcCsResponse.setUpdateTime(DateUtils.getNowDate());
return szxcCsResponseMapper.updateSzxcCsResponse(szxcCsResponse);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteSzxcCsResponseByIds(Long[] ids)
{
return szxcCsResponseMapper.deleteSzxcCsResponseByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteSzxcCsResponseById(Long id)
{
return szxcCsResponseMapper.deleteSzxcCsResponseById(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.SzxcPlaceManageMapper;
import com.ruoyi.szxc.domain.SzxcPlaceManage;
import com.ruoyi.szxc.service.ISzxcPlaceManageService;
/**
* Service
*
* @author hs
* @date 2024-03-28
*/
@Service
public class SzxcPlaceManageServiceImpl implements ISzxcPlaceManageService
{
@Autowired
private SzxcPlaceManageMapper szxcPlaceManageMapper;
/**
*
*
* @param id
* @return
*/
@Override
public SzxcPlaceManage selectSzxcPlaceManageById(Long id)
{
return szxcPlaceManageMapper.selectSzxcPlaceManageById(id);
}
/**
*
*
* @param szxcPlaceManage
* @return
*/
@Override
public List<SzxcPlaceManage> selectSzxcPlaceManageList(SzxcPlaceManage szxcPlaceManage)
{
return szxcPlaceManageMapper.selectSzxcPlaceManageList(szxcPlaceManage);
}
/**
*
*
* @param szxcPlaceManage
* @return
*/
@Override
public int insertSzxcPlaceManage(SzxcPlaceManage szxcPlaceManage)
{
szxcPlaceManage.setCreateTime(DateUtils.getNowDate());
return szxcPlaceManageMapper.insertSzxcPlaceManage(szxcPlaceManage);
}
/**
*
*
* @param szxcPlaceManage
* @return
*/
@Override
public int updateSzxcPlaceManage(SzxcPlaceManage szxcPlaceManage)
{
szxcPlaceManage.setUpdateTime(DateUtils.getNowDate());
return szxcPlaceManageMapper.updateSzxcPlaceManage(szxcPlaceManage);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteSzxcPlaceManageByIds(Long[] ids)
{
return szxcPlaceManageMapper.deleteSzxcPlaceManageByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteSzxcPlaceManageById(Long id)
{
return szxcPlaceManageMapper.deleteSzxcPlaceManageById(id);
}
}

@ -0,0 +1,127 @@
<?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.SzxcCsEmplyeesMapper">
<resultMap type="SzxcCsEmplyees" id="SzxcCsEmplyeesResult">
<result property="id" column="id" />
<result property="csId" column="cs_id" />
<result property="csName" column="cs_name" />
<result property="ygName" column="yg_name" />
<result property="phone" column="phone" />
<result property="cardId" column="card_id" />
<result property="sex" column="sex" />
<result property="dyOrNot" column="dy_or_not" />
<result property="currentAddress" column="current_address" />
<result property="province" column="province" />
<result property="city" column="city" />
<result property="county" column="county" />
<result property="hjAddress" column="hj_address" />
<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="selectSzxcCsEmplyeesVo">
select id, cs_id, cs_name, yg_name, phone, card_id, sex, dy_or_not, current_address, province, city, county, hj_address, create_by, create_time, update_by, update_time from szxc_cs_emplyees
</sql>
<select id="selectSzxcCsEmplyeesList" parameterType="SzxcCsEmplyees" resultMap="SzxcCsEmplyeesResult">
<include refid="selectSzxcCsEmplyeesVo"/>
<where>
<if test="csId != null "> and cs_id = #{csId}</if>
<if test="csName != null and csName != ''"> and cs_name like concat('%', #{csName}, '%')</if>
<if test="ygName != null and ygName != ''"> and yg_name like concat('%', #{ygName}, '%')</if>
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
<if test="cardId != null and cardId != ''"> and card_id = #{cardId}</if>
<if test="sex != null and sex != ''"> and sex = #{sex}</if>
<if test="dyOrNot != null and dyOrNot != ''"> and dy_or_not = #{dyOrNot}</if>
<if test="currentAddress != null and currentAddress != ''"> and current_address = #{currentAddress}</if>
<if test="province != null and province != ''"> and province = #{province}</if>
<if test="city != null and city != ''"> and city = #{city}</if>
<if test="county != null and county != ''"> and county = #{county}</if>
<if test="hjAddress != null and hjAddress != ''"> and hj_address = #{hjAddress}</if>
</where>
</select>
<select id="selectSzxcCsEmplyeesById" parameterType="Long" resultMap="SzxcCsEmplyeesResult">
<include refid="selectSzxcCsEmplyeesVo"/>
where id = #{id}
</select>
<insert id="insertSzxcCsEmplyees" parameterType="SzxcCsEmplyees" useGeneratedKeys="true" keyProperty="id">
insert into szxc_cs_emplyees
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="csId != null">cs_id,</if>
<if test="csName != null">cs_name,</if>
<if test="ygName != null">yg_name,</if>
<if test="phone != null">phone,</if>
<if test="cardId != null">card_id,</if>
<if test="sex != null">sex,</if>
<if test="dyOrNot != null">dy_or_not,</if>
<if test="currentAddress != null">current_address,</if>
<if test="province != null">province,</if>
<if test="city != null">city,</if>
<if test="county != null">county,</if>
<if test="hjAddress != null">hj_address,</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="csId != null">#{csId},</if>
<if test="csName != null">#{csName},</if>
<if test="ygName != null">#{ygName},</if>
<if test="phone != null">#{phone},</if>
<if test="cardId != null">#{cardId},</if>
<if test="sex != null">#{sex},</if>
<if test="dyOrNot != null">#{dyOrNot},</if>
<if test="currentAddress != null">#{currentAddress},</if>
<if test="province != null">#{province},</if>
<if test="city != null">#{city},</if>
<if test="county != null">#{county},</if>
<if test="hjAddress != null">#{hjAddress},</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="updateSzxcCsEmplyees" parameterType="SzxcCsEmplyees">
update szxc_cs_emplyees
<trim prefix="SET" suffixOverrides=",">
<if test="csId != null">cs_id = #{csId},</if>
<if test="csName != null">cs_name = #{csName},</if>
<if test="ygName != null">yg_name = #{ygName},</if>
<if test="phone != null">phone = #{phone},</if>
<if test="cardId != null">card_id = #{cardId},</if>
<if test="sex != null">sex = #{sex},</if>
<if test="dyOrNot != null">dy_or_not = #{dyOrNot},</if>
<if test="currentAddress != null">current_address = #{currentAddress},</if>
<if test="province != null">province = #{province},</if>
<if test="city != null">city = #{city},</if>
<if test="county != null">county = #{county},</if>
<if test="hjAddress != null">hj_address = #{hjAddress},</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="deleteSzxcCsEmplyeesById" parameterType="Long">
delete from szxc_cs_emplyees where id = #{id}
</delete>
<delete id="deleteSzxcCsEmplyeesByIds" parameterType="String">
delete from szxc_cs_emplyees 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.SzxcCsResponseMapper">
<resultMap type="SzxcCsResponse" id="SzxcCsResponseResult">
<result property="id" column="id" />
<result property="csId" column="cs_id" />
<result property="csName" column="cs_name" />
<result property="fzrType" column="fzr_type" />
<result property="fzrName" column="fzr_name" />
<result property="phone" column="phone" />
<result property="cardId" column="card_id" />
<result property="sex" column="sex" />
<result property="dyOrNot" column="dy_or_not" />
<result property="currentAddress" column="current_address" />
<result property="province" column="province" />
<result property="city" column="city" />
<result property="county" column="county" />
<result property="hjAddress" column="hj_address" />
<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="selectSzxcCsResponseVo">
select id, cs_id, cs_name, fzr_type, fzr_name, phone, card_id, sex, dy_or_not, current_address, province, city, county, hj_address, create_by, create_time, update_by, update_time from szxc_cs_response
</sql>
<select id="selectSzxcCsResponseList" parameterType="SzxcCsResponse" resultMap="SzxcCsResponseResult">
<include refid="selectSzxcCsResponseVo"/>
<where>
<if test="csId != null "> and cs_id = #{csId}</if>
<if test="csName != null and csName != ''"> and cs_name like concat('%', #{csName}, '%')</if>
<if test="fzrType != null and fzrType != ''"> and fzr_type = #{fzrType}</if>
<if test="fzrName != null and fzrName != ''"> and fzr_name like concat('%', #{fzrName}, '%')</if>
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
<if test="cardId != null and cardId != ''"> and card_id = #{cardId}</if>
<if test="sex != null and sex != ''"> and sex = #{sex}</if>
<if test="dyOrNot != null and dyOrNot != ''"> and dy_or_not = #{dyOrNot}</if>
<if test="currentAddress != null and currentAddress != ''"> and current_address = #{currentAddress}</if>
<if test="province != null and province != ''"> and province = #{province}</if>
<if test="city != null and city != ''"> and city = #{city}</if>
<if test="county != null and county != ''"> and county = #{county}</if>
<if test="hjAddress != null and hjAddress != ''"> and hj_address = #{hjAddress}</if>
</where>
</select>
<select id="selectSzxcCsResponseById" parameterType="Long" resultMap="SzxcCsResponseResult">
<include refid="selectSzxcCsResponseVo"/>
where id = #{id}
</select>
<insert id="insertSzxcCsResponse" parameterType="SzxcCsResponse" useGeneratedKeys="true" keyProperty="id">
insert into szxc_cs_response
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="csId != null">cs_id,</if>
<if test="csName != null">cs_name,</if>
<if test="fzrType != null">fzr_type,</if>
<if test="fzrName != null">fzr_name,</if>
<if test="phone != null">phone,</if>
<if test="cardId != null">card_id,</if>
<if test="sex != null">sex,</if>
<if test="dyOrNot != null">dy_or_not,</if>
<if test="currentAddress != null">current_address,</if>
<if test="province != null">province,</if>
<if test="city != null">city,</if>
<if test="county != null">county,</if>
<if test="hjAddress != null">hj_address,</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="csId != null">#{csId},</if>
<if test="csName != null">#{csName},</if>
<if test="fzrType != null">#{fzrType},</if>
<if test="fzrName != null">#{fzrName},</if>
<if test="phone != null">#{phone},</if>
<if test="cardId != null">#{cardId},</if>
<if test="sex != null">#{sex},</if>
<if test="dyOrNot != null">#{dyOrNot},</if>
<if test="currentAddress != null">#{currentAddress},</if>
<if test="province != null">#{province},</if>
<if test="city != null">#{city},</if>
<if test="county != null">#{county},</if>
<if test="hjAddress != null">#{hjAddress},</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="updateSzxcCsResponse" parameterType="SzxcCsResponse">
update szxc_cs_response
<trim prefix="SET" suffixOverrides=",">
<if test="csId != null">cs_id = #{csId},</if>
<if test="csName != null">cs_name = #{csName},</if>
<if test="fzrType != null">fzr_type = #{fzrType},</if>
<if test="fzrName != null">fzr_name = #{fzrName},</if>
<if test="phone != null">phone = #{phone},</if>
<if test="cardId != null">card_id = #{cardId},</if>
<if test="sex != null">sex = #{sex},</if>
<if test="dyOrNot != null">dy_or_not = #{dyOrNot},</if>
<if test="currentAddress != null">current_address = #{currentAddress},</if>
<if test="province != null">province = #{province},</if>
<if test="city != null">city = #{city},</if>
<if test="county != null">county = #{county},</if>
<if test="hjAddress != null">hj_address = #{hjAddress},</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="deleteSzxcCsResponseById" parameterType="Long">
delete from szxc_cs_response where id = #{id}
</delete>
<delete id="deleteSzxcCsResponseByIds" parameterType="String">
delete from szxc_cs_response where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

@ -7,8 +7,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<resultMap type="SzxcLdInfo" id="SzxcLdInfoResult"> <resultMap type="SzxcLdInfo" id="SzxcLdInfoResult">
<result property="id" column="id" /> <result property="id" column="id" />
<result property="xqId" column="xq_id" /> <result property="xqId" column="xq_id" />
<result property="xqName" column="xq_name" />
<result property="ldName" column="ld_name" /> <result property="ldName" column="ld_name" />
<result property="xqType" column="xq_type" /> <result property="ldType" column="ld_type" />
<result property="ldSort" column="ld_sort" /> <result property="ldSort" column="ld_sort" />
<result property="ldjg" column="ldjg" /> <result property="ldjg" column="ldjg" />
<result property="qnfs" column="qnfs" /> <result property="qnfs" column="qnfs" />
@ -26,15 +27,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectSzxcLdInfoVo"> <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 select id, xq_id, xq_name, ld_name, ld_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> </sql>
<select id="selectSzxcLdInfoList" parameterType="SzxcLdInfo" resultMap="SzxcLdInfoResult"> <select id="selectSzxcLdInfoList" parameterType="SzxcLdInfo" resultMap="SzxcLdInfoResult">
<include refid="selectSzxcLdInfoVo"/> <include refid="selectSzxcLdInfoVo"/>
<where> <where>
<if test="xqId != null "> and xq_id = #{xqId}</if> <if test="xqId != null "> and xq_id = #{xqId}</if>
<if test="xqName != null and xqName != ''"> and xq_name like concat('%', #{xqName}, '%')</if>
<if test="ldName != null and ldName != ''"> and ld_name like concat('%', #{ldName}, '%')</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="ldType != null and ldType != ''"> and ld_type = #{ldType}</if>
<if test="ldSort != null and ldSort != ''"> and ld_sort = #{ldSort}</if> <if test="ldSort != null and ldSort != ''"> and ld_sort = #{ldSort}</if>
<if test="ldjg != null and ldjg != ''"> and ldjg = #{ldjg}</if> <if test="ldjg != null and ldjg != ''"> and ldjg = #{ldjg}</if>
<if test="qnfs != null and qnfs != ''"> and qnfs = #{qnfs}</if> <if test="qnfs != null and qnfs != ''"> and qnfs = #{qnfs}</if>
@ -57,8 +59,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
insert into szxc_ld_info insert into szxc_ld_info
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="xqId != null">xq_id,</if> <if test="xqId != null">xq_id,</if>
<if test="xqName != null">xq_name,</if>
<if test="ldName != null">ld_name,</if> <if test="ldName != null">ld_name,</if>
<if test="xqType != null">xq_type,</if> <if test="ldType != null">ld_type,</if>
<if test="ldSort != null">ld_sort,</if> <if test="ldSort != null">ld_sort,</if>
<if test="ldjg != null">ldjg,</if> <if test="ldjg != null">ldjg,</if>
<if test="qnfs != null">qnfs,</if> <if test="qnfs != null">qnfs,</if>
@ -76,8 +79,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="xqId != null">#{xqId},</if> <if test="xqId != null">#{xqId},</if>
<if test="xqName != null">#{xqName},</if>
<if test="ldName != null">#{ldName},</if> <if test="ldName != null">#{ldName},</if>
<if test="xqType != null">#{xqType},</if> <if test="ldType != null">#{ldType},</if>
<if test="ldSort != null">#{ldSort},</if> <if test="ldSort != null">#{ldSort},</if>
<if test="ldjg != null">#{ldjg},</if> <if test="ldjg != null">#{ldjg},</if>
<if test="qnfs != null">#{qnfs},</if> <if test="qnfs != null">#{qnfs},</if>
@ -99,8 +103,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
update szxc_ld_info update szxc_ld_info
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="xqId != null">xq_id = #{xqId},</if> <if test="xqId != null">xq_id = #{xqId},</if>
<if test="xqName != null">xq_name = #{xqName},</if>
<if test="ldName != null">ld_name = #{ldName},</if> <if test="ldName != null">ld_name = #{ldName},</if>
<if test="xqType != null">xq_type = #{xqType},</if> <if test="ldType != null">ld_type = #{ldType},</if>
<if test="ldSort != null">ld_sort = #{ldSort},</if> <if test="ldSort != null">ld_sort = #{ldSort},</if>
<if test="ldjg != null">ldjg = #{ldjg},</if> <if test="ldjg != null">ldjg = #{ldjg},</if>
<if test="qnfs != null">qnfs = #{qnfs},</if> <if test="qnfs != null">qnfs = #{qnfs},</if>

@ -0,0 +1,156 @@
<?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.SzxcPlaceManageMapper">
<resultMap type="SzxcPlaceManage" id="SzxcPlaceManageResult">
<result property="id" column="id" />
<result property="csName" column="cs_name" />
<result property="hyType" column="hy_type" />
<result property="csType" column="cs_type" />
<result property="csAddress" column="cs_address" />
<result property="employeeNum" column="employee_num" />
<result property="szyt" column="szyt" />
<result property="fwType" column="fw_type" />
<result property="frName" column="fr_name" />
<result property="clDate" column="cl_date" />
<result property="yyqx" column="yyqx" />
<result property="tyshxyCode" column="tyshxy_code" />
<result property="yyzzPicture" column="yyzz_picture" />
<result property="glfwId" column="glfw_id" />
<result property="glfwName" column="glfw_name" />
<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" />
<result property="deptId" column="dept_id" />
<result property="deptName" column="dept_name" />
<result property="userId" column="user_id" />
</resultMap>
<sql id="selectSzxcPlaceManageVo">
select id, cs_name, hy_type, cs_type, cs_address, employee_num, szyt, fw_type, fr_name, cl_date, yyqx, tyshxy_code, yyzz_picture, glfw_id, glfw_name, remark, create_by, create_time, update_by, update_time, dept_id, dept_name, user_id from szxc_place_manage
</sql>
<select id="selectSzxcPlaceManageList" parameterType="SzxcPlaceManage" resultMap="SzxcPlaceManageResult">
<include refid="selectSzxcPlaceManageVo"/>
<where>
<if test="csName != null and csName != ''"> and cs_name like concat('%', #{csName}, '%')</if>
<if test="hyType != null and hyType != ''"> and hy_type = #{hyType}</if>
<if test="csType != null and csType != ''"> and cs_type = #{csType}</if>
<if test="csAddress != null and csAddress != ''"> and cs_address = #{csAddress}</if>
<if test="employeeNum != null "> and employee_num = #{employeeNum}</if>
<if test="szyt != null and szyt != ''"> and szyt = #{szyt}</if>
<if test="fwType != null and fwType != ''"> and fw_type = #{fwType}</if>
<if test="frName != null and frName != ''"> and fr_name like concat('%', #{frName}, '%')</if>
<if test="clDate != null "> and cl_date = #{clDate}</if>
<if test="yyqx != null and yyqx != ''"> and yyqx = #{yyqx}</if>
<if test="tyshxyCode != null and tyshxyCode != ''"> and tyshxy_code = #{tyshxyCode}</if>
<if test="yyzzPicture != null and yyzzPicture != ''"> and yyzz_picture = #{yyzzPicture}</if>
<if test="glfwId != null "> and glfw_id = #{glfwId}</if>
<if test="glfwName != null and glfwName != ''"> and glfw_name like concat('%', #{glfwName}, '%')</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="selectSzxcPlaceManageById" parameterType="Long" resultMap="SzxcPlaceManageResult">
<include refid="selectSzxcPlaceManageVo"/>
where id = #{id}
</select>
<insert id="insertSzxcPlaceManage" parameterType="SzxcPlaceManage" useGeneratedKeys="true" keyProperty="id">
insert into szxc_place_manage
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="csName != null">cs_name,</if>
<if test="hyType != null">hy_type,</if>
<if test="csType != null">cs_type,</if>
<if test="csAddress != null">cs_address,</if>
<if test="employeeNum != null">employee_num,</if>
<if test="szyt != null">szyt,</if>
<if test="fwType != null">fw_type,</if>
<if test="frName != null">fr_name,</if>
<if test="clDate != null">cl_date,</if>
<if test="yyqx != null">yyqx,</if>
<if test="tyshxyCode != null">tyshxy_code,</if>
<if test="yyzzPicture != null">yyzz_picture,</if>
<if test="glfwId != null">glfw_id,</if>
<if test="glfwName != null">glfw_name,</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>
<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="csName != null">#{csName},</if>
<if test="hyType != null">#{hyType},</if>
<if test="csType != null">#{csType},</if>
<if test="csAddress != null">#{csAddress},</if>
<if test="employeeNum != null">#{employeeNum},</if>
<if test="szyt != null">#{szyt},</if>
<if test="fwType != null">#{fwType},</if>
<if test="frName != null">#{frName},</if>
<if test="clDate != null">#{clDate},</if>
<if test="yyqx != null">#{yyqx},</if>
<if test="tyshxyCode != null">#{tyshxyCode},</if>
<if test="yyzzPicture != null">#{yyzzPicture},</if>
<if test="glfwId != null">#{glfwId},</if>
<if test="glfwName != null">#{glfwName},</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>
<if test="deptId != null">#{deptId},</if>
<if test="deptName != null">#{deptName},</if>
<if test="userId != null">#{userId},</if>
</trim>
</insert>
<update id="updateSzxcPlaceManage" parameterType="SzxcPlaceManage">
update szxc_place_manage
<trim prefix="SET" suffixOverrides=",">
<if test="csName != null">cs_name = #{csName},</if>
<if test="hyType != null">hy_type = #{hyType},</if>
<if test="csType != null">cs_type = #{csType},</if>
<if test="csAddress != null">cs_address = #{csAddress},</if>
<if test="employeeNum != null">employee_num = #{employeeNum},</if>
<if test="szyt != null">szyt = #{szyt},</if>
<if test="fwType != null">fw_type = #{fwType},</if>
<if test="frName != null">fr_name = #{frName},</if>
<if test="clDate != null">cl_date = #{clDate},</if>
<if test="yyqx != null">yyqx = #{yyqx},</if>
<if test="tyshxyCode != null">tyshxy_code = #{tyshxyCode},</if>
<if test="yyzzPicture != null">yyzz_picture = #{yyzzPicture},</if>
<if test="glfwId != null">glfw_id = #{glfwId},</if>
<if test="glfwName != null">glfw_name = #{glfwName},</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>
<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="deleteSzxcPlaceManageById" parameterType="Long">
delete from szxc_place_manage where id = #{id}
</delete>
<delete id="deleteSzxcPlaceManageByIds" parameterType="String">
delete from szxc_place_manage where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

@ -6,6 +6,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<resultMap type="SzxcXqInfo" id="SzxcXqInfoResult"> <resultMap type="SzxcXqInfo" id="SzxcXqInfoResult">
<result property="id" column="id" /> <result property="id" column="id" />
<result property="name" column="name" />
<result property="xqType" column="xq_type" /> <result property="xqType" column="xq_type" />
<result property="ldNum" column="ld_num" /> <result property="ldNum" column="ld_num" />
<result property="jzArea" column="jz_area" /> <result property="jzArea" column="jz_area" />
@ -26,12 +27,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectSzxcXqInfoVo"> <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 select id, name, 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> </sql>
<select id="selectSzxcXqInfoList" parameterType="SzxcXqInfo" resultMap="SzxcXqInfoResult"> <select id="selectSzxcXqInfoList" parameterType="SzxcXqInfo" resultMap="SzxcXqInfoResult">
<include refid="selectSzxcXqInfoVo"/> <include refid="selectSzxcXqInfoVo"/>
<where> <where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="xqType != null and xqType != ''"> and xq_type = #{xqType}</if> <if test="xqType != null and xqType != ''"> and xq_type = #{xqType}</if>
<if test="ldNum != null "> and ld_num = #{ldNum}</if> <if test="ldNum != null "> and ld_num = #{ldNum}</if>
<if test="jzArea != null and jzArea != ''"> and jz_area = #{jzArea}</if> <if test="jzArea != null and jzArea != ''"> and jz_area = #{jzArea}</if>
@ -56,6 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<insert id="insertSzxcXqInfo" parameterType="SzxcXqInfo" useGeneratedKeys="true" keyProperty="id"> <insert id="insertSzxcXqInfo" parameterType="SzxcXqInfo" useGeneratedKeys="true" keyProperty="id">
insert into szxc_xq_info insert into szxc_xq_info
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">name,</if>
<if test="xqType != null">xq_type,</if> <if test="xqType != null">xq_type,</if>
<if test="ldNum != null">ld_num,</if> <if test="ldNum != null">ld_num,</if>
<if test="jzArea != null">jz_area,</if> <if test="jzArea != null">jz_area,</if>
@ -75,6 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="userId != null">user_id,</if> <if test="userId != null">user_id,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">#{name},</if>
<if test="xqType != null">#{xqType},</if> <if test="xqType != null">#{xqType},</if>
<if test="ldNum != null">#{ldNum},</if> <if test="ldNum != null">#{ldNum},</if>
<if test="jzArea != null">#{jzArea},</if> <if test="jzArea != null">#{jzArea},</if>
@ -98,6 +102,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update id="updateSzxcXqInfo" parameterType="SzxcXqInfo"> <update id="updateSzxcXqInfo" parameterType="SzxcXqInfo">
update szxc_xq_info update szxc_xq_info
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="xqType != null">xq_type = #{xqType},</if> <if test="xqType != null">xq_type = #{xqType},</if>
<if test="ldNum != null">ld_num = #{ldNum},</if> <if test="ldNum != null">ld_num = #{ldNum},</if>
<if test="jzArea != null">jz_area = #{jzArea},</if> <if test="jzArea != null">jz_area = #{jzArea},</if>

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询场所管理列表
export function listCsmanage(query) {
return request({
url: '/szxc/csmanage/list',
method: 'get',
params: query
})
}
// 查询场所管理详细
export function getCsmanage(id) {
return request({
url: '/szxc/csmanage/' + id,
method: 'get'
})
}
// 新增场所管理
export function addCsmanage(data) {
return request({
url: '/szxc/csmanage',
method: 'post',
data: data
})
}
// 修改场所管理
export function updateCsmanage(data) {
return request({
url: '/szxc/csmanage',
method: 'put',
data: data
})
}
// 删除场所管理
export function delCsmanage(id) {
return request({
url: '/szxc/csmanage/' + id,
method: 'delete'
})
}

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询场所员工列表
export function listEmplyees(query) {
return request({
url: '/szxc/emplyees/list',
method: 'get',
params: query
})
}
// 查询场所员工详细
export function getEmplyees(id) {
return request({
url: '/szxc/emplyees/' + id,
method: 'get'
})
}
// 新增场所员工
export function addEmplyees(data) {
return request({
url: '/szxc/emplyees',
method: 'post',
data: data
})
}
// 修改场所员工
export function updateEmplyees(data) {
return request({
url: '/szxc/emplyees',
method: 'put',
data: data
})
}
// 删除场所员工
export function delEmplyees(id) {
return request({
url: '/szxc/emplyees/' + id,
method: 'delete'
})
}

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询场所负责人列表
export function listResponse(query) {
return request({
url: '/szxc/response/list',
method: 'get',
params: query
})
}
// 查询场所负责人详细
export function getResponse(id) {
return request({
url: '/szxc/response/' + id,
method: 'get'
})
}
// 新增场所负责人
export function addResponse(data) {
return request({
url: '/szxc/response',
method: 'post',
data: data
})
}
// 修改场所负责人
export function updateResponse(data) {
return request({
url: '/szxc/response',
method: 'put',
data: data
})
}
// 删除场所负责人
export function delResponse(id) {
return request({
url: '/szxc/response/' + id,
method: 'delete'
})
}

@ -0,0 +1,457 @@
<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="csName">
<el-input
v-model="queryParams.csName"
placeholder="请输入场所名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="场所地址" prop="csAddress">
<el-input
v-model="queryParams.csAddress"
placeholder="请输入场所地址"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="员工数量" prop="employeeNum">
<el-input
v-model="queryParams.employeeNum"
placeholder="请输入员工数量"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="商住一体(0是1否)" prop="szyt">
<el-input
v-model="queryParams.szyt"
placeholder="请输入商住一体(0是1否)"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="法人姓名" prop="frName">
<el-input
v-model="queryParams.frName"
placeholder="请输入法人姓名"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="成立日期" prop="clDate">
<el-date-picker clearable
v-model="queryParams.clDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择成立日期">
</el-date-picker>
</el-form-item>
<el-form-item label="营业期限" prop="yyqx">
<el-input
v-model="queryParams.yyqx"
placeholder="请输入营业期限"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="统一社会信用代码" prop="tyshxyCode">
<el-input
v-model="queryParams.tyshxyCode"
placeholder="请输入统一社会信用代码"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="营业执照" prop="yyzzPicture">
<el-input
v-model="queryParams.yyzzPicture"
placeholder="请输入营业执照"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="关联房屋id" prop="glfwId">
<el-input
v-model="queryParams.glfwId"
placeholder="请输入关联房屋id"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="关联房屋名称" prop="glfwName">
<el-input
v-model="queryParams.glfwName"
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:csmanage: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:csmanage: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:csmanage: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:csmanage:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="csmanageList" @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="csName" />
<el-table-column label="行业类别(字典)" align="center" prop="hyType" />
<el-table-column label="类型(字典)" align="center" prop="csType" />
<el-table-column label="场所地址" align="center" prop="csAddress" />
<el-table-column label="员工数量" align="center" prop="employeeNum" />
<el-table-column label="商住一体(0是1否)" align="center" prop="szyt" />
<el-table-column label="房屋类型(字典)" align="center" prop="fwType" />
<el-table-column label="法人姓名" align="center" prop="frName" />
<el-table-column label="成立日期" align="center" prop="clDate" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.clDate, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="营业期限" align="center" prop="yyqx" />
<el-table-column label="统一社会信用代码" align="center" prop="tyshxyCode" />
<el-table-column label="营业执照" align="center" prop="yyzzPicture" />
<el-table-column label="关联房屋id" align="center" prop="glfwId" />
<el-table-column label="关联房屋名称" align="center" prop="glfwName" />
<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:csmanage:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['szxc:csmanage: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="csName">
<el-input v-model="form.csName" placeholder="请输入场所名称" />
</el-form-item>
<el-form-item label="场所地址" prop="csAddress">
<el-input v-model="form.csAddress" placeholder="请输入场所地址" />
</el-form-item>
<el-form-item label="员工数量" prop="employeeNum">
<el-input v-model="form.employeeNum" placeholder="请输入员工数量" />
</el-form-item>
<el-form-item label="商住一体(0是1否)" prop="szyt">
<el-input v-model="form.szyt" placeholder="请输入商住一体(0是1否)" />
</el-form-item>
<el-form-item label="法人姓名" prop="frName">
<el-input v-model="form.frName" placeholder="请输入法人姓名" />
</el-form-item>
<el-form-item label="成立日期" prop="clDate">
<el-date-picker clearable
v-model="form.clDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择成立日期">
</el-date-picker>
</el-form-item>
<el-form-item label="营业期限" prop="yyqx">
<el-input v-model="form.yyqx" placeholder="请输入营业期限" />
</el-form-item>
<el-form-item label="统一社会信用代码" prop="tyshxyCode">
<el-input v-model="form.tyshxyCode" placeholder="请输入统一社会信用代码" />
</el-form-item>
<el-form-item label="营业执照" prop="yyzzPicture">
<el-input v-model="form.yyzzPicture" placeholder="请输入营业执照" />
</el-form-item>
<el-form-item label="关联房屋id" prop="glfwId">
<el-input v-model="form.glfwId" placeholder="请输入关联房屋id" />
</el-form-item>
<el-form-item label="关联房屋名称" prop="glfwName">
<el-input v-model="form.glfwName" placeholder="请输入关联房屋名称" />
</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 { listCsmanage, getCsmanage, delCsmanage, addCsmanage, updateCsmanage } from "@/api/szxc/csmanage";
export default {
name: "Csmanage",
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
csmanageList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
csName: null,
hyType: null,
csType: null,
csAddress: null,
employeeNum: null,
szyt: null,
fwType: null,
frName: null,
clDate: null,
yyqx: null,
tyshxyCode: null,
yyzzPicture: null,
glfwId: null,
glfwName: null,
deptId: null,
deptName: null,
userId: null
},
//
form: {},
//
rules: {
deptId: [
{ required: true, message: "部门id不能为空", trigger: "blur" }
],
}
};
},
created() {
this.getList();
},
methods: {
/** 查询场所管理列表 */
getList() {
this.loading = true;
listCsmanage(this.queryParams).then(response => {
this.csmanageList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
csName: null,
hyType: null,
csType: null,
csAddress: null,
employeeNum: null,
szyt: null,
fwType: null,
frName: null,
clDate: null,
yyqx: null,
tyshxyCode: null,
yyzzPicture: null,
glfwId: null,
glfwName: null,
remark: 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
getCsmanage(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) {
updateCsmanage(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addCsmanage(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 delCsmanage(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('szxc/csmanage/export', {
...this.queryParams
}, `csmanage_${new Date().getTime()}.xlsx`)
}
}
};
</script>

@ -0,0 +1,395 @@
<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="场所id" prop="csId">
<el-input
v-model="queryParams.csId"
placeholder="请输入场所id"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="场所名称" prop="csName">
<el-input
v-model="queryParams.csName"
placeholder="请输入场所名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="员工姓名" prop="ygName">
<el-input
v-model="queryParams.ygName"
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="cardId">
<el-input
v-model="queryParams.cardId"
placeholder="请输入身份证号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="是否党员(0是1否)" prop="dyOrNot">
<el-input
v-model="queryParams.dyOrNot"
placeholder="请输入是否党员(0是1否)"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="现居住地" prop="currentAddress">
<el-input
v-model="queryParams.currentAddress"
placeholder="请输入现居住地"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="省" prop="province">
<el-input
v-model="queryParams.province"
placeholder="请输入省"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="市" prop="city">
<el-input
v-model="queryParams.city"
placeholder="请输入市"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="县" prop="county">
<el-input
v-model="queryParams.county"
placeholder="请输入县"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="户籍地址" prop="hjAddress">
<el-input
v-model="queryParams.hjAddress"
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:emplyees: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:emplyees: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:emplyees: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:emplyees:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="emplyeesList" @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="场所id" align="center" prop="csId" />
<el-table-column label="场所名称" align="center" prop="csName" />
<el-table-column label="员工姓名" align="center" prop="ygName" />
<el-table-column label="手机号" align="center" prop="phone" />
<el-table-column label="身份证号" align="center" prop="cardId" />
<el-table-column label="性别" align="center" prop="sex" />
<el-table-column label="是否党员(0是1否)" align="center" prop="dyOrNot" />
<el-table-column label="现居住地" align="center" prop="currentAddress" />
<el-table-column label="省" align="center" prop="province" />
<el-table-column label="市" align="center" prop="city" />
<el-table-column label="县" align="center" prop="county" />
<el-table-column label="户籍地址" align="center" prop="hjAddress" />
<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:emplyees:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['szxc:emplyees: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="场所id" prop="csId">
<el-input v-model="form.csId" placeholder="请输入场所id" />
</el-form-item>
<el-form-item label="场所名称" prop="csName">
<el-input v-model="form.csName" placeholder="请输入场所名称" />
</el-form-item>
<el-form-item label="员工姓名" prop="ygName">
<el-input v-model="form.ygName" placeholder="请输入员工姓名" />
</el-form-item>
<el-form-item label="手机号" prop="phone">
<el-input v-model="form.phone" placeholder="请输入手机号" />
</el-form-item>
<el-form-item label="身份证号" prop="cardId">
<el-input v-model="form.cardId" placeholder="请输入身份证号" />
</el-form-item>
<el-form-item label="是否党员(0是1否)" prop="dyOrNot">
<el-input v-model="form.dyOrNot" placeholder="请输入是否党员(0是1否)" />
</el-form-item>
<el-form-item label="现居住地" prop="currentAddress">
<el-input v-model="form.currentAddress" placeholder="请输入现居住地" />
</el-form-item>
<el-form-item label="省" prop="province">
<el-input v-model="form.province" placeholder="请输入省" />
</el-form-item>
<el-form-item label="市" prop="city">
<el-input v-model="form.city" placeholder="请输入市" />
</el-form-item>
<el-form-item label="县" prop="county">
<el-input v-model="form.county" placeholder="请输入县" />
</el-form-item>
<el-form-item label="户籍地址" prop="hjAddress">
<el-input v-model="form.hjAddress" 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 { listEmplyees, getEmplyees, delEmplyees, addEmplyees, updateEmplyees } from "@/api/szxc/emplyees";
export default {
name: "Emplyees",
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
emplyeesList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
csId: null,
csName: null,
ygName: null,
phone: null,
cardId: null,
sex: null,
dyOrNot: null,
currentAddress: null,
province: null,
city: null,
county: null,
hjAddress: null,
},
//
form: {},
//
rules: {
csId: [
{ required: true, message: "场所id不能为空", trigger: "blur" }
],
}
};
},
created() {
this.getList();
},
methods: {
/** 查询场所员工列表 */
getList() {
this.loading = true;
listEmplyees(this.queryParams).then(response => {
this.emplyeesList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
csId: null,
csName: null,
ygName: null,
phone: null,
cardId: null,
sex: null,
dyOrNot: null,
currentAddress: null,
province: null,
city: null,
county: null,
hjAddress: 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
getEmplyees(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) {
updateEmplyees(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addEmplyees(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 delEmplyees(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('szxc/emplyees/export', {
...this.queryParams
}, `emplyees_${new Date().getTime()}.xlsx`)
}
}
};
</script>

@ -0,0 +1,398 @@
<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="场所id" prop="csId">
<el-input
v-model="queryParams.csId"
placeholder="请输入场所id"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="场所名称" prop="csName">
<el-input
v-model="queryParams.csName"
placeholder="请输入场所名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="负责人姓名" prop="fzrName">
<el-input
v-model="queryParams.fzrName"
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="cardId">
<el-input
v-model="queryParams.cardId"
placeholder="请输入身份证号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="是否党员(0是1否)" prop="dyOrNot">
<el-input
v-model="queryParams.dyOrNot"
placeholder="请输入是否党员(0是1否)"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="现居住地" prop="currentAddress">
<el-input
v-model="queryParams.currentAddress"
placeholder="请输入现居住地"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="省" prop="province">
<el-input
v-model="queryParams.province"
placeholder="请输入省"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="市" prop="city">
<el-input
v-model="queryParams.city"
placeholder="请输入市"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="县" prop="county">
<el-input
v-model="queryParams.county"
placeholder="请输入县"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="户籍地址" prop="hjAddress">
<el-input
v-model="queryParams.hjAddress"
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:response: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:response: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:response: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:response:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="responseList" @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="场所id" align="center" prop="csId" />
<el-table-column label="场所名称" align="center" prop="csName" />
<el-table-column label="负责人类型" align="center" prop="fzrType" />
<el-table-column label="负责人姓名" align="center" prop="fzrName" />
<el-table-column label="手机号" align="center" prop="phone" />
<el-table-column label="身份证号" align="center" prop="cardId" />
<el-table-column label="性别" align="center" prop="sex" />
<el-table-column label="是否党员(0是1否)" align="center" prop="dyOrNot" />
<el-table-column label="现居住地" align="center" prop="currentAddress" />
<el-table-column label="省" align="center" prop="province" />
<el-table-column label="市" align="center" prop="city" />
<el-table-column label="县" align="center" prop="county" />
<el-table-column label="户籍地址" align="center" prop="hjAddress" />
<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:response:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['szxc:response: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="场所id" prop="csId">
<el-input v-model="form.csId" placeholder="请输入场所id" />
</el-form-item>
<el-form-item label="场所名称" prop="csName">
<el-input v-model="form.csName" placeholder="请输入场所名称" />
</el-form-item>
<el-form-item label="负责人姓名" prop="fzrName">
<el-input v-model="form.fzrName" placeholder="请输入负责人姓名" />
</el-form-item>
<el-form-item label="手机号" prop="phone">
<el-input v-model="form.phone" placeholder="请输入手机号" />
</el-form-item>
<el-form-item label="身份证号" prop="cardId">
<el-input v-model="form.cardId" placeholder="请输入身份证号" />
</el-form-item>
<el-form-item label="是否党员(0是1否)" prop="dyOrNot">
<el-input v-model="form.dyOrNot" placeholder="请输入是否党员(0是1否)" />
</el-form-item>
<el-form-item label="现居住地" prop="currentAddress">
<el-input v-model="form.currentAddress" placeholder="请输入现居住地" />
</el-form-item>
<el-form-item label="省" prop="province">
<el-input v-model="form.province" placeholder="请输入省" />
</el-form-item>
<el-form-item label="市" prop="city">
<el-input v-model="form.city" placeholder="请输入市" />
</el-form-item>
<el-form-item label="县" prop="county">
<el-input v-model="form.county" placeholder="请输入县" />
</el-form-item>
<el-form-item label="户籍地址" prop="hjAddress">
<el-input v-model="form.hjAddress" 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 { listResponse, getResponse, delResponse, addResponse, updateResponse } from "@/api/szxc/response";
export default {
name: "Response",
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
responseList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
csId: null,
csName: null,
fzrType: null,
fzrName: null,
phone: null,
cardId: null,
sex: null,
dyOrNot: null,
currentAddress: null,
province: null,
city: null,
county: null,
hjAddress: null,
},
//
form: {},
//
rules: {
csId: [
{ required: true, message: "场所id不能为空", trigger: "blur" }
],
}
};
},
created() {
this.getList();
},
methods: {
/** 查询场所负责人列表 */
getList() {
this.loading = true;
listResponse(this.queryParams).then(response => {
this.responseList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
csId: null,
csName: null,
fzrType: null,
fzrName: null,
phone: null,
cardId: null,
sex: null,
dyOrNot: null,
currentAddress: null,
province: null,
city: null,
county: null,
hjAddress: 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
getResponse(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) {
updateResponse(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addResponse(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 delResponse(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('szxc/response/export', {
...this.queryParams
}, `response_${new Date().getTime()}.xlsx`)
}
}
};
</script>
Loading…
Cancel
Save