Sfoglia il codice sorgente

Merge remote-tracking branch 'origin/master'

Administrator 1 anno fa
parent
commit
7eaffb9869

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/reception/ReceptionPersonnelController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.reception;
+
+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.system.domain.ReceptionPersonnel;
+import com.ruoyi.system.service.IReceptionPersonnelService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 接待人员信息Controller
+ * 
+ * @author ruoyi
+ * @date 2023-11-02
+ */
+@RestController
+@RequestMapping("/system/personnel")
+public class ReceptionPersonnelController extends BaseController
+{
+    @Autowired
+    private IReceptionPersonnelService receptionPersonnelService;
+
+    /**
+     * 查询接待人员信息列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:personnel:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(ReceptionPersonnel receptionPersonnel)
+    {
+        startPage();
+        List<ReceptionPersonnel> list = receptionPersonnelService.selectReceptionPersonnelList(receptionPersonnel);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出接待人员信息列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:personnel:export')")
+    @Log(title = "接待人员信息", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, ReceptionPersonnel receptionPersonnel)
+    {
+        List<ReceptionPersonnel> list = receptionPersonnelService.selectReceptionPersonnelList(receptionPersonnel);
+        ExcelUtil<ReceptionPersonnel> util = new ExcelUtil<ReceptionPersonnel>(ReceptionPersonnel.class);
+        util.exportExcel(response, list, "接待人员信息数据");
+    }
+
+    /**
+     * 获取接待人员信息详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:personnel:query')")
+    @GetMapping(value = "/{receptionId}")
+    public AjaxResult getInfo(@PathVariable("receptionId") Long receptionId)
+    {
+        return success(receptionPersonnelService.selectReceptionPersonnelByReceptionId(receptionId));
+    }
+
+    /**
+     * 新增接待人员信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:personnel:add')")
+    @Log(title = "接待人员信息", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody ReceptionPersonnel receptionPersonnel)
+    {
+        return toAjax(receptionPersonnelService.insertReceptionPersonnel(receptionPersonnel));
+    }
+
+    /**
+     * 修改接待人员信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:personnel:edit')")
+    @Log(title = "接待人员信息", businessType = BusinessType.UPDATE)
+    @PostMapping("/put")
+    public AjaxResult edit(@RequestBody ReceptionPersonnel receptionPersonnel)
+    {
+        return toAjax(receptionPersonnelService.updateReceptionPersonnel(receptionPersonnel));
+    }
+
+    /**
+     * 删除接待人员信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:personnel:remove')")
+    @Log(title = "接待人员信息", businessType = BusinessType.DELETE)
+	@GetMapping("/delete/{receptionIds}")
+    public AjaxResult remove(@PathVariable Long[] receptionIds)
+    {
+        return toAjax(receptionPersonnelService.deleteReceptionPersonnelByReceptionIds(receptionIds));
+    }
+}

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/reservat/BomanReservatController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.reservat;
+
+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.system.domain.BomanReservat;
+import com.ruoyi.system.service.IBomanReservatService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 陵园预约Controller
+ * 
+ * @author ruoyi
+ * @date 2023-11-02
+ */
+@RestController
+@RequestMapping("/system/reservat")
+public class BomanReservatController extends BaseController
+{
+    @Autowired
+    private IBomanReservatService bomanReservatService;
+
+    /**
+     * 查询陵园预约列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:reservat:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(BomanReservat bomanReservat)
+    {
+        startPage();
+        List<BomanReservat> list = bomanReservatService.selectBomanReservatList(bomanReservat);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出陵园预约列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:reservat:export')")
+    @Log(title = "陵园预约", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, BomanReservat bomanReservat)
+    {
+        List<BomanReservat> list = bomanReservatService.selectBomanReservatList(bomanReservat);
+        ExcelUtil<BomanReservat> util = new ExcelUtil<BomanReservat>(BomanReservat.class);
+        util.exportExcel(response, list, "陵园预约数据");
+    }
+
+    /**
+     * 获取陵园预约详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:reservat:query')")
+    @GetMapping(value = "/{reservatId}")
+    public AjaxResult getInfo(@PathVariable("reservatId") Long reservatId)
+    {
+        return success(bomanReservatService.selectBomanReservatByReservatId(reservatId));
+    }
+
+    /**
+     * 新增陵园预约
+     */
+    @PreAuthorize("@ss.hasPermi('system:reservat:add')")
+    @Log(title = "陵园预约", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody BomanReservat bomanReservat)
+    {
+        return toAjax(bomanReservatService.insertBomanReservat(bomanReservat));
+    }
+
+    /**
+     * 修改陵园预约
+     */
+    @PreAuthorize("@ss.hasPermi('system:reservat:edit')")
+    @Log(title = "陵园预约", businessType = BusinessType.UPDATE)
+    @PostMapping("/put")
+    public AjaxResult edit(@RequestBody BomanReservat bomanReservat)
+    {
+        return toAjax(bomanReservatService.updateBomanReservat(bomanReservat));
+    }
+
+    /**
+     * 删除陵园预约
+     */
+    @PreAuthorize("@ss.hasPermi('system:reservat:remove')")
+    @Log(title = "陵园预约", businessType = BusinessType.DELETE)
+    @GetMapping("/delete/{receptionIds}")
+    public AjaxResult remove(@PathVariable Long[] reservatIds)
+    {
+        return toAjax(bomanReservatService.deleteBomanReservatByReservatIds(reservatIds));
+    }
+}

+ 270 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/BomanReservat.java

@@ -0,0 +1,270 @@
+package com.ruoyi.system.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;
+
+/**
+ * 陵园预约对象 boman_reservat
+ * 
+ * @author ruoyi
+ * @date 2023-11-02
+ */
+public class BomanReservat extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 陵园预约ID */
+    private Long reservatId;
+
+    /** 来访者姓名 */
+    @Excel(name = "来访者姓名")
+    private String visitName;
+
+    /** 单位名称 */
+    @Excel(name = "单位名称")
+    private String visitUnitName;
+
+    /** 来访者手机号 */
+    @Excel(name = "来访者手机号")
+    private String visitPhone;
+
+    /** 来访者身份证 */
+    @Excel(name = "来访者身份证")
+    private String visitIdCard;
+
+    /** 来访者人数 */
+    @Excel(name = "来访者人数")
+    private String visitNum;
+
+    /** 来访者补充事由 */
+    @Excel(name = "来访者补充事由")
+    private String visitRemark;
+
+    /** 预约日期 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "预约日期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date visitDate;
+
+    /** 预约时间 */
+    @Excel(name = "预约时间")
+    private String visitTime;
+
+    /** 预约时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date visitDateTime;
+
+    /** 预约二维码 */
+    @Excel(name = "预约二维码")
+    private String visitQr;
+
+    /** 预约状态 1:等待审核 2:拒绝 3:已审核 */
+    @Excel(name = "预约状态 1:等待审核 2:拒绝 3:已审核")
+    private String visitType;
+
+    /** 是否入场 1:未入场 2:已入场 */
+    @Excel(name = "是否入场 1:未入场 2:已入场")
+    private String visitStatus;
+
+    /** 人员类型 1:团队 2:散客 */
+    @Excel(name = "人员类型 1:团队 2:散客")
+    private String reservatType;
+
+    /** 是否需要接待 N:不需要 Y:需要 */
+    @Excel(name = "是否需要接待 N:不需要 Y:需要")
+    private String isReception;
+
+    /** 接人人员id */
+    @Excel(name = "接人人员id")
+    private Long receptionId;
+
+    /** 创建部门 */
+    @Excel(name = "创建部门")
+    private Long createDept;
+
+    public void setReservatId(Long reservatId) 
+    {
+        this.reservatId = reservatId;
+    }
+
+    public Long getReservatId() 
+    {
+        return reservatId;
+    }
+    public void setVisitName(String visitName) 
+    {
+        this.visitName = visitName;
+    }
+
+    public String getVisitName() 
+    {
+        return visitName;
+    }
+    public void setVisitUnitName(String visitUnitName) 
+    {
+        this.visitUnitName = visitUnitName;
+    }
+
+    public String getVisitUnitName() 
+    {
+        return visitUnitName;
+    }
+    public void setVisitPhone(String visitPhone) 
+    {
+        this.visitPhone = visitPhone;
+    }
+
+    public String getVisitPhone() 
+    {
+        return visitPhone;
+    }
+    public void setVisitIdCard(String visitIdCard) 
+    {
+        this.visitIdCard = visitIdCard;
+    }
+
+    public String getVisitIdCard() 
+    {
+        return visitIdCard;
+    }
+    public void setVisitNum(String visitNum) 
+    {
+        this.visitNum = visitNum;
+    }
+
+    public String getVisitNum() 
+    {
+        return visitNum;
+    }
+    public void setVisitRemark(String visitRemark) 
+    {
+        this.visitRemark = visitRemark;
+    }
+
+    public String getVisitRemark() 
+    {
+        return visitRemark;
+    }
+    public void setVisitDate(Date visitDate) 
+    {
+        this.visitDate = visitDate;
+    }
+
+    public Date getVisitDate() 
+    {
+        return visitDate;
+    }
+    public void setVisitTime(String visitTime) 
+    {
+        this.visitTime = visitTime;
+    }
+
+    public String getVisitTime() 
+    {
+        return visitTime;
+    }
+    public void setVisitDateTime(Date visitDateTime) 
+    {
+        this.visitDateTime = visitDateTime;
+    }
+
+    public Date getVisitDateTime() 
+    {
+        return visitDateTime;
+    }
+    public void setVisitQr(String visitQr) 
+    {
+        this.visitQr = visitQr;
+    }
+
+    public String getVisitQr() 
+    {
+        return visitQr;
+    }
+    public void setVisitType(String visitType) 
+    {
+        this.visitType = visitType;
+    }
+
+    public String getVisitType() 
+    {
+        return visitType;
+    }
+    public void setVisitStatus(String visitStatus) 
+    {
+        this.visitStatus = visitStatus;
+    }
+
+    public String getVisitStatus() 
+    {
+        return visitStatus;
+    }
+    public void setReservatType(String reservatType) 
+    {
+        this.reservatType = reservatType;
+    }
+
+    public String getReservatType() 
+    {
+        return reservatType;
+    }
+    public void setIsReception(String isReception) 
+    {
+        this.isReception = isReception;
+    }
+
+    public String getIsReception() 
+    {
+        return isReception;
+    }
+    public void setReceptionId(Long receptionId) 
+    {
+        this.receptionId = receptionId;
+    }
+
+    public Long getReceptionId() 
+    {
+        return receptionId;
+    }
+    public void setCreateDept(Long createDept) 
+    {
+        this.createDept = createDept;
+    }
+
+    public Long getCreateDept() 
+    {
+        return createDept;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("reservatId", getReservatId())
+            .append("visitName", getVisitName())
+            .append("visitUnitName", getVisitUnitName())
+            .append("visitPhone", getVisitPhone())
+            .append("visitIdCard", getVisitIdCard())
+            .append("visitNum", getVisitNum())
+            .append("visitRemark", getVisitRemark())
+            .append("visitDate", getVisitDate())
+            .append("visitTime", getVisitTime())
+            .append("visitDateTime", getVisitDateTime())
+            .append("visitQr", getVisitQr())
+            .append("visitType", getVisitType())
+            .append("visitStatus", getVisitStatus())
+            .append("reservatType", getReservatType())
+            .append("isReception", getIsReception())
+            .append("receptionId", getReceptionId())
+            .append("createDept", getCreateDept())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

+ 112 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/ReceptionPersonnel.java

@@ -0,0 +1,112 @@
+package com.ruoyi.system.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 接待人员信息对象 reception_personnel
+ * 
+ * @author ruoyi
+ * @date 2023-11-02
+ */
+public class ReceptionPersonnel extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 用户ID */
+    private Long receptionId;
+
+    /** 接待人员姓名 */
+    @Excel(name = "接待人员姓名")
+    private String receptionName;
+
+    /** 手机号码 */
+    @Excel(name = "手机号码")
+    private String phonenumber;
+
+    /** 接待人员简介 */
+    @Excel(name = "接待人员简介")
+    private String introduction;
+
+    /** 头像地址 */
+    @Excel(name = "头像地址")
+    private String avatar;
+
+    /** 状态(0正常 1停用) */
+    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
+    private String status;
+
+    public void setReceptionId(Long receptionId) 
+    {
+        this.receptionId = receptionId;
+    }
+
+    public Long getReceptionId() 
+    {
+        return receptionId;
+    }
+    public void setReceptionName(String receptionName) 
+    {
+        this.receptionName = receptionName;
+    }
+
+    public String getReceptionName() 
+    {
+        return receptionName;
+    }
+    public void setPhonenumber(String phonenumber) 
+    {
+        this.phonenumber = phonenumber;
+    }
+
+    public String getPhonenumber() 
+    {
+        return phonenumber;
+    }
+    public void setIntroduction(String introduction) 
+    {
+        this.introduction = introduction;
+    }
+
+    public String getIntroduction() 
+    {
+        return introduction;
+    }
+    public void setAvatar(String avatar) 
+    {
+        this.avatar = avatar;
+    }
+
+    public String getAvatar() 
+    {
+        return avatar;
+    }
+    public void setStatus(String status) 
+    {
+        this.status = status;
+    }
+
+    public String getStatus() 
+    {
+        return status;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("receptionId", getReceptionId())
+            .append("receptionName", getReceptionName())
+            .append("phonenumber", getPhonenumber())
+            .append("introduction", getIntroduction())
+            .append("avatar", getAvatar())
+            .append("status", getStatus())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/BomanReservatMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.mapper;
+
+import java.util.List;
+import com.ruoyi.system.domain.BomanReservat;
+
+/**
+ * 陵园预约Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2023-11-02
+ */
+public interface BomanReservatMapper 
+{
+    /**
+     * 查询陵园预约
+     * 
+     * @param reservatId 陵园预约主键
+     * @return 陵园预约
+     */
+    public BomanReservat selectBomanReservatByReservatId(Long reservatId);
+
+    /**
+     * 查询陵园预约列表
+     * 
+     * @param bomanReservat 陵园预约
+     * @return 陵园预约集合
+     */
+    public List<BomanReservat> selectBomanReservatList(BomanReservat bomanReservat);
+
+    /**
+     * 新增陵园预约
+     * 
+     * @param bomanReservat 陵园预约
+     * @return 结果
+     */
+    public int insertBomanReservat(BomanReservat bomanReservat);
+
+    /**
+     * 修改陵园预约
+     * 
+     * @param bomanReservat 陵园预约
+     * @return 结果
+     */
+    public int updateBomanReservat(BomanReservat bomanReservat);
+
+    /**
+     * 删除陵园预约
+     * 
+     * @param reservatId 陵园预约主键
+     * @return 结果
+     */
+    public int deleteBomanReservatByReservatId(Long reservatId);
+
+    /**
+     * 批量删除陵园预约
+     * 
+     * @param reservatIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteBomanReservatByReservatIds(Long[] reservatIds);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/ReceptionPersonnelMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.mapper;
+
+import java.util.List;
+import com.ruoyi.system.domain.ReceptionPersonnel;
+
+/**
+ * 接待人员信息Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2023-11-02
+ */
+public interface ReceptionPersonnelMapper 
+{
+    /**
+     * 查询接待人员信息
+     * 
+     * @param receptionId 接待人员信息主键
+     * @return 接待人员信息
+     */
+    public ReceptionPersonnel selectReceptionPersonnelByReceptionId(Long receptionId);
+
+    /**
+     * 查询接待人员信息列表
+     * 
+     * @param receptionPersonnel 接待人员信息
+     * @return 接待人员信息集合
+     */
+    public List<ReceptionPersonnel> selectReceptionPersonnelList(ReceptionPersonnel receptionPersonnel);
+
+    /**
+     * 新增接待人员信息
+     * 
+     * @param receptionPersonnel 接待人员信息
+     * @return 结果
+     */
+    public int insertReceptionPersonnel(ReceptionPersonnel receptionPersonnel);
+
+    /**
+     * 修改接待人员信息
+     * 
+     * @param receptionPersonnel 接待人员信息
+     * @return 结果
+     */
+    public int updateReceptionPersonnel(ReceptionPersonnel receptionPersonnel);
+
+    /**
+     * 删除接待人员信息
+     * 
+     * @param receptionId 接待人员信息主键
+     * @return 结果
+     */
+    public int deleteReceptionPersonnelByReceptionId(Long receptionId);
+
+    /**
+     * 批量删除接待人员信息
+     * 
+     * @param receptionIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteReceptionPersonnelByReceptionIds(Long[] receptionIds);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/IBomanReservatService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.service;
+
+import java.util.List;
+import com.ruoyi.system.domain.BomanReservat;
+
+/**
+ * 陵园预约Service接口
+ * 
+ * @author ruoyi
+ * @date 2023-11-02
+ */
+public interface IBomanReservatService 
+{
+    /**
+     * 查询陵园预约
+     * 
+     * @param reservatId 陵园预约主键
+     * @return 陵园预约
+     */
+    public BomanReservat selectBomanReservatByReservatId(Long reservatId);
+
+    /**
+     * 查询陵园预约列表
+     * 
+     * @param bomanReservat 陵园预约
+     * @return 陵园预约集合
+     */
+    public List<BomanReservat> selectBomanReservatList(BomanReservat bomanReservat);
+
+    /**
+     * 新增陵园预约
+     * 
+     * @param bomanReservat 陵园预约
+     * @return 结果
+     */
+    public int insertBomanReservat(BomanReservat bomanReservat);
+
+    /**
+     * 修改陵园预约
+     * 
+     * @param bomanReservat 陵园预约
+     * @return 结果
+     */
+    public int updateBomanReservat(BomanReservat bomanReservat);
+
+    /**
+     * 批量删除陵园预约
+     * 
+     * @param reservatIds 需要删除的陵园预约主键集合
+     * @return 结果
+     */
+    public int deleteBomanReservatByReservatIds(Long[] reservatIds);
+
+    /**
+     * 删除陵园预约信息
+     * 
+     * @param reservatId 陵园预约主键
+     * @return 结果
+     */
+    public int deleteBomanReservatByReservatId(Long reservatId);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/IReceptionPersonnelService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.service;
+
+import java.util.List;
+import com.ruoyi.system.domain.ReceptionPersonnel;
+
+/**
+ * 接待人员信息Service接口
+ * 
+ * @author ruoyi
+ * @date 2023-11-02
+ */
+public interface IReceptionPersonnelService 
+{
+    /**
+     * 查询接待人员信息
+     * 
+     * @param receptionId 接待人员信息主键
+     * @return 接待人员信息
+     */
+    public ReceptionPersonnel selectReceptionPersonnelByReceptionId(Long receptionId);
+
+    /**
+     * 查询接待人员信息列表
+     * 
+     * @param receptionPersonnel 接待人员信息
+     * @return 接待人员信息集合
+     */
+    public List<ReceptionPersonnel> selectReceptionPersonnelList(ReceptionPersonnel receptionPersonnel);
+
+    /**
+     * 新增接待人员信息
+     * 
+     * @param receptionPersonnel 接待人员信息
+     * @return 结果
+     */
+    public int insertReceptionPersonnel(ReceptionPersonnel receptionPersonnel);
+
+    /**
+     * 修改接待人员信息
+     * 
+     * @param receptionPersonnel 接待人员信息
+     * @return 结果
+     */
+    public int updateReceptionPersonnel(ReceptionPersonnel receptionPersonnel);
+
+    /**
+     * 批量删除接待人员信息
+     * 
+     * @param receptionIds 需要删除的接待人员信息主键集合
+     * @return 结果
+     */
+    public int deleteReceptionPersonnelByReceptionIds(Long[] receptionIds);
+
+    /**
+     * 删除接待人员信息信息
+     * 
+     * @param receptionId 接待人员信息主键
+     * @return 结果
+     */
+    public int deleteReceptionPersonnelByReceptionId(Long receptionId);
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/BomanReservatServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.system.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.system.mapper.BomanReservatMapper;
+import com.ruoyi.system.domain.BomanReservat;
+import com.ruoyi.system.service.IBomanReservatService;
+
+/**
+ * 陵园预约Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2023-11-02
+ */
+@Service
+public class BomanReservatServiceImpl implements IBomanReservatService 
+{
+    @Autowired
+    private BomanReservatMapper bomanReservatMapper;
+
+    /**
+     * 查询陵园预约
+     * 
+     * @param reservatId 陵园预约主键
+     * @return 陵园预约
+     */
+    @Override
+    public BomanReservat selectBomanReservatByReservatId(Long reservatId)
+    {
+        return bomanReservatMapper.selectBomanReservatByReservatId(reservatId);
+    }
+
+    /**
+     * 查询陵园预约列表
+     * 
+     * @param bomanReservat 陵园预约
+     * @return 陵园预约
+     */
+    @Override
+    public List<BomanReservat> selectBomanReservatList(BomanReservat bomanReservat)
+    {
+        return bomanReservatMapper.selectBomanReservatList(bomanReservat);
+    }
+
+    /**
+     * 新增陵园预约
+     * 
+     * @param bomanReservat 陵园预约
+     * @return 结果
+     */
+    @Override
+    public int insertBomanReservat(BomanReservat bomanReservat)
+    {
+        bomanReservat.setCreateTime(DateUtils.getNowDate());
+        return bomanReservatMapper.insertBomanReservat(bomanReservat);
+    }
+
+    /**
+     * 修改陵园预约
+     * 
+     * @param bomanReservat 陵园预约
+     * @return 结果
+     */
+    @Override
+    public int updateBomanReservat(BomanReservat bomanReservat)
+    {
+        bomanReservat.setUpdateTime(DateUtils.getNowDate());
+        return bomanReservatMapper.updateBomanReservat(bomanReservat);
+    }
+
+    /**
+     * 批量删除陵园预约
+     * 
+     * @param reservatIds 需要删除的陵园预约主键
+     * @return 结果
+     */
+    @Override
+    public int deleteBomanReservatByReservatIds(Long[] reservatIds)
+    {
+        return bomanReservatMapper.deleteBomanReservatByReservatIds(reservatIds);
+    }
+
+    /**
+     * 删除陵园预约信息
+     * 
+     * @param reservatId 陵园预约主键
+     * @return 结果
+     */
+    @Override
+    public int deleteBomanReservatByReservatId(Long reservatId)
+    {
+        return bomanReservatMapper.deleteBomanReservatByReservatId(reservatId);
+    }
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ReceptionPersonnelServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.system.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.system.mapper.ReceptionPersonnelMapper;
+import com.ruoyi.system.domain.ReceptionPersonnel;
+import com.ruoyi.system.service.IReceptionPersonnelService;
+
+/**
+ * 接待人员信息Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2023-11-02
+ */
+@Service
+public class ReceptionPersonnelServiceImpl implements IReceptionPersonnelService 
+{
+    @Autowired
+    private ReceptionPersonnelMapper receptionPersonnelMapper;
+
+    /**
+     * 查询接待人员信息
+     * 
+     * @param receptionId 接待人员信息主键
+     * @return 接待人员信息
+     */
+    @Override
+    public ReceptionPersonnel selectReceptionPersonnelByReceptionId(Long receptionId)
+    {
+        return receptionPersonnelMapper.selectReceptionPersonnelByReceptionId(receptionId);
+    }
+
+    /**
+     * 查询接待人员信息列表
+     * 
+     * @param receptionPersonnel 接待人员信息
+     * @return 接待人员信息
+     */
+    @Override
+    public List<ReceptionPersonnel> selectReceptionPersonnelList(ReceptionPersonnel receptionPersonnel)
+    {
+        return receptionPersonnelMapper.selectReceptionPersonnelList(receptionPersonnel);
+    }
+
+    /**
+     * 新增接待人员信息
+     * 
+     * @param receptionPersonnel 接待人员信息
+     * @return 结果
+     */
+    @Override
+    public int insertReceptionPersonnel(ReceptionPersonnel receptionPersonnel)
+    {
+        receptionPersonnel.setCreateTime(DateUtils.getNowDate());
+        return receptionPersonnelMapper.insertReceptionPersonnel(receptionPersonnel);
+    }
+
+    /**
+     * 修改接待人员信息
+     * 
+     * @param receptionPersonnel 接待人员信息
+     * @return 结果
+     */
+    @Override
+    public int updateReceptionPersonnel(ReceptionPersonnel receptionPersonnel)
+    {
+        receptionPersonnel.setUpdateTime(DateUtils.getNowDate());
+        return receptionPersonnelMapper.updateReceptionPersonnel(receptionPersonnel);
+    }
+
+    /**
+     * 批量删除接待人员信息
+     * 
+     * @param receptionIds 需要删除的接待人员信息主键
+     * @return 结果
+     */
+    @Override
+    public int deleteReceptionPersonnelByReceptionIds(Long[] receptionIds)
+    {
+        return receptionPersonnelMapper.deleteReceptionPersonnelByReceptionIds(receptionIds);
+    }
+
+    /**
+     * 删除接待人员信息信息
+     * 
+     * @param receptionId 接待人员信息主键
+     * @return 结果
+     */
+    @Override
+    public int deleteReceptionPersonnelByReceptionId(Long receptionId)
+    {
+        return receptionPersonnelMapper.deleteReceptionPersonnelByReceptionId(receptionId);
+    }
+}

+ 151 - 0
ruoyi-system/src/main/resources/mapper/system/BomanReservatMapper.xml

@@ -0,0 +1,151 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.system.mapper.BomanReservatMapper">
+    
+    <resultMap type="BomanReservat" id="BomanReservatResult">
+        <result property="reservatId"    column="reservat_id"    />
+        <result property="visitName"    column="visit_name"    />
+        <result property="visitUnitName"    column="visit_unit_name"    />
+        <result property="visitPhone"    column="visit_phone"    />
+        <result property="visitIdCard"    column="visit_id_card"    />
+        <result property="visitNum"    column="visit_num"    />
+        <result property="visitRemark"    column="visit_remark"    />
+        <result property="visitDate"    column="visit_date"    />
+        <result property="visitTime"    column="visit_time"    />
+        <result property="visitDateTime"    column="visit_date_time"    />
+        <result property="visitQr"    column="visit_qr"    />
+        <result property="visitType"    column="visit_type"    />
+        <result property="visitStatus"    column="visit_status"    />
+        <result property="reservatType"    column="reservat_type"    />
+        <result property="isReception"    column="is_reception"    />
+        <result property="receptionId"    column="reception_id"    />
+        <result property="createDept"    column="create_dept"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectBomanReservatVo">
+        select reservat_id, visit_name, visit_unit_name, visit_phone, visit_id_card, visit_num, visit_remark, visit_date, visit_time, visit_date_time, visit_qr, visit_type, visit_status, reservat_type, is_reception, reception_id, create_dept, create_by, create_time, update_by, update_time, remark from boman_reservat
+    </sql>
+
+    <select id="selectBomanReservatList" parameterType="BomanReservat" resultMap="BomanReservatResult">
+        <include refid="selectBomanReservatVo"/>
+        <where>  
+            <if test="visitName != null  and visitName != ''"> and visit_name like concat('%', #{visitName}, '%')</if>
+            <if test="visitUnitName != null  and visitUnitName != ''"> and visit_unit_name like concat('%', #{visitUnitName}, '%')</if>
+            <if test="visitPhone != null  and visitPhone != ''"> and visit_phone = #{visitPhone}</if>
+            <if test="visitIdCard != null  and visitIdCard != ''"> and visit_id_card = #{visitIdCard}</if>
+            <if test="visitNum != null  and visitNum != ''"> and visit_num = #{visitNum}</if>
+            <if test="visitRemark != null  and visitRemark != ''"> and visit_remark = #{visitRemark}</if>
+            <if test="visitDate != null "> and visit_date = #{visitDate}</if>
+            <if test="visitTime != null  and visitTime != ''"> and visit_time = #{visitTime}</if>
+            <if test="visitDateTime != null "> and visit_date_time = #{visitDateTime}</if>
+            <if test="visitQr != null  and visitQr != ''"> and visit_qr = #{visitQr}</if>
+            <if test="visitType != null  and visitType != ''"> and visit_type = #{visitType}</if>
+            <if test="visitStatus != null  and visitStatus != ''"> and visit_status = #{visitStatus}</if>
+            <if test="reservatType != null  and reservatType != ''"> and reservat_type = #{reservatType}</if>
+            <if test="isReception != null  and isReception != ''"> and is_reception = #{isReception}</if>
+            <if test="receptionId != null "> and reception_id = #{receptionId}</if>
+            <if test="createDept != null "> and create_dept = #{createDept}</if>
+        </where>
+    </select>
+    
+    <select id="selectBomanReservatByReservatId" parameterType="Long" resultMap="BomanReservatResult">
+        <include refid="selectBomanReservatVo"/>
+        where reservat_id = #{reservatId}
+    </select>
+        
+    <insert id="insertBomanReservat" parameterType="BomanReservat" useGeneratedKeys="true" keyProperty="reservatId">
+        insert into boman_reservat
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="visitName != null">visit_name,</if>
+            <if test="visitUnitName != null">visit_unit_name,</if>
+            <if test="visitPhone != null">visit_phone,</if>
+            <if test="visitIdCard != null">visit_id_card,</if>
+            <if test="visitNum != null">visit_num,</if>
+            <if test="visitRemark != null">visit_remark,</if>
+            <if test="visitDate != null">visit_date,</if>
+            <if test="visitTime != null">visit_time,</if>
+            <if test="visitDateTime != null">visit_date_time,</if>
+            <if test="visitQr != null">visit_qr,</if>
+            <if test="visitType != null">visit_type,</if>
+            <if test="visitStatus != null">visit_status,</if>
+            <if test="reservatType != null">reservat_type,</if>
+            <if test="isReception != null">is_reception,</if>
+            <if test="receptionId != null">reception_id,</if>
+            <if test="createDept != null">create_dept,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="visitName != null">#{visitName},</if>
+            <if test="visitUnitName != null">#{visitUnitName},</if>
+            <if test="visitPhone != null">#{visitPhone},</if>
+            <if test="visitIdCard != null">#{visitIdCard},</if>
+            <if test="visitNum != null">#{visitNum},</if>
+            <if test="visitRemark != null">#{visitRemark},</if>
+            <if test="visitDate != null">#{visitDate},</if>
+            <if test="visitTime != null">#{visitTime},</if>
+            <if test="visitDateTime != null">#{visitDateTime},</if>
+            <if test="visitQr != null">#{visitQr},</if>
+            <if test="visitType != null">#{visitType},</if>
+            <if test="visitStatus != null">#{visitStatus},</if>
+            <if test="reservatType != null">#{reservatType},</if>
+            <if test="isReception != null">#{isReception},</if>
+            <if test="receptionId != null">#{receptionId},</if>
+            <if test="createDept != null">#{createDept},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateBomanReservat" parameterType="BomanReservat">
+        update boman_reservat
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="visitName != null">visit_name = #{visitName},</if>
+            <if test="visitUnitName != null">visit_unit_name = #{visitUnitName},</if>
+            <if test="visitPhone != null">visit_phone = #{visitPhone},</if>
+            <if test="visitIdCard != null">visit_id_card = #{visitIdCard},</if>
+            <if test="visitNum != null">visit_num = #{visitNum},</if>
+            <if test="visitRemark != null">visit_remark = #{visitRemark},</if>
+            <if test="visitDate != null">visit_date = #{visitDate},</if>
+            <if test="visitTime != null">visit_time = #{visitTime},</if>
+            <if test="visitDateTime != null">visit_date_time = #{visitDateTime},</if>
+            <if test="visitQr != null">visit_qr = #{visitQr},</if>
+            <if test="visitType != null">visit_type = #{visitType},</if>
+            <if test="visitStatus != null">visit_status = #{visitStatus},</if>
+            <if test="reservatType != null">reservat_type = #{reservatType},</if>
+            <if test="isReception != null">is_reception = #{isReception},</if>
+            <if test="receptionId != null">reception_id = #{receptionId},</if>
+            <if test="createDept != null">create_dept = #{createDept},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where reservat_id = #{reservatId}
+    </update>
+
+    <delete id="deleteBomanReservatByReservatId" parameterType="Long">
+        delete from boman_reservat where reservat_id = #{reservatId}
+    </delete>
+
+    <delete id="deleteBomanReservatByReservatIds" parameterType="String">
+        delete from boman_reservat where reservat_id in 
+        <foreach item="reservatId" collection="array" open="(" separator="," close=")">
+            #{reservatId}
+        </foreach>
+    </delete>
+</mapper>

+ 96 - 0
ruoyi-system/src/main/resources/mapper/system/ReceptionPersonnelMapper.xml

@@ -0,0 +1,96 @@
+<?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.system.mapper.ReceptionPersonnelMapper">
+    
+    <resultMap type="ReceptionPersonnel" id="ReceptionPersonnelResult">
+        <result property="receptionId"    column="reception_id"    />
+        <result property="receptionName"    column="reception_name"    />
+        <result property="phonenumber"    column="phonenumber"    />
+        <result property="introduction"    column="introduction"    />
+        <result property="avatar"    column="avatar"    />
+        <result property="status"    column="status"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectReceptionPersonnelVo">
+        select reception_id, reception_name, phonenumber, introduction, avatar, status, create_by, create_time, update_by, update_time, remark from reception_personnel
+    </sql>
+
+    <select id="selectReceptionPersonnelList" parameterType="ReceptionPersonnel" resultMap="ReceptionPersonnelResult">
+        <include refid="selectReceptionPersonnelVo"/>
+        <where>  
+            <if test="receptionName != null  and receptionName != ''"> and reception_name like concat('%', #{receptionName}, '%')</if>
+            <if test="phonenumber != null  and phonenumber != ''"> and phonenumber = #{phonenumber}</if>
+            <if test="introduction != null  and introduction != ''"> and introduction = #{introduction}</if>
+            <if test="avatar != null  and avatar != ''"> and avatar = #{avatar}</if>
+            <if test="status != null  and status != ''"> and status = #{status}</if>
+        </where>
+    </select>
+    
+    <select id="selectReceptionPersonnelByReceptionId" parameterType="Long" resultMap="ReceptionPersonnelResult">
+        <include refid="selectReceptionPersonnelVo"/>
+        where reception_id = #{receptionId}
+    </select>
+        
+    <insert id="insertReceptionPersonnel" parameterType="ReceptionPersonnel" useGeneratedKeys="true" keyProperty="receptionId">
+        insert into reception_personnel
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="receptionName != null and receptionName != ''">reception_name,</if>
+            <if test="phonenumber != null">phonenumber,</if>
+            <if test="introduction != null">introduction,</if>
+            <if test="avatar != null">avatar,</if>
+            <if test="status != null">status,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="receptionName != null and receptionName != ''">#{receptionName},</if>
+            <if test="phonenumber != null">#{phonenumber},</if>
+            <if test="introduction != null">#{introduction},</if>
+            <if test="avatar != null">#{avatar},</if>
+            <if test="status != null">#{status},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateReceptionPersonnel" parameterType="ReceptionPersonnel">
+        update reception_personnel
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="receptionName != null and receptionName != ''">reception_name = #{receptionName},</if>
+            <if test="phonenumber != null">phonenumber = #{phonenumber},</if>
+            <if test="introduction != null">introduction = #{introduction},</if>
+            <if test="avatar != null">avatar = #{avatar},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where reception_id = #{receptionId}
+    </update>
+
+    <delete id="deleteReceptionPersonnelByReceptionId" parameterType="Long">
+        delete from reception_personnel where reception_id = #{receptionId}
+    </delete>
+
+    <delete id="deleteReceptionPersonnelByReceptionIds" parameterType="String">
+        delete from reception_personnel where reception_id in 
+        <foreach item="receptionId" collection="array" open="(" separator="," close=")">
+            #{receptionId}
+        </foreach>
+    </delete>
+</mapper>