# Conflicts: # ruoyi-ui/src/views/szxc/ldinfo/index.vuemain
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,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();
|
||||
}
|
||||
}
|
||||
@ -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>
|
||||
@ -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>
|
||||
@ -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…
Reference in new issue