Преглед на файлове

业务参数配置+护理人员+护理申请后台

qinyan преди 5 месеца
родител
ревизия
82c8692284
променени са 18 файла, в които са добавени 1872 реда и са изтрити 0 реда
  1. 105 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/care/CareApplicationsController.java
  2. 104 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/care/CarePersonsController.java
  3. 104 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysWorkConfigController.java
  4. 223 0
      ruoyi-system/src/main/java/com/ruoyi/care/domain/CareApplications.java
  5. 237 0
      ruoyi-system/src/main/java/com/ruoyi/care/domain/CarePersons.java
  6. 61 0
      ruoyi-system/src/main/java/com/ruoyi/care/mapper/CareApplicationsMapper.java
  7. 61 0
      ruoyi-system/src/main/java/com/ruoyi/care/mapper/CarePersonsMapper.java
  8. 61 0
      ruoyi-system/src/main/java/com/ruoyi/care/service/ICareApplicationsService.java
  9. 61 0
      ruoyi-system/src/main/java/com/ruoyi/care/service/ICarePersonsService.java
  10. 96 0
      ruoyi-system/src/main/java/com/ruoyi/care/service/impl/CareApplicationsServiceImpl.java
  11. 96 0
      ruoyi-system/src/main/java/com/ruoyi/care/service/impl/CarePersonsServiceImpl.java
  12. 83 0
      ruoyi-system/src/main/java/com/ruoyi/system/domain/SysWorkConfig.java
  13. 61 0
      ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysWorkConfigMapper.java
  14. 61 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/ISysWorkConfigService.java
  15. 96 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysWorkConfigServiceImpl.java
  16. 135 0
      ruoyi-system/src/main/resources/mapper/care/CareApplicationsMapper.xml
  17. 140 0
      ruoyi-system/src/main/resources/mapper/care/CarePersonsMapper.xml
  18. 87 0
      ruoyi-system/src/main/resources/mapper/system/SysWorkConfigMapper.xml

+ 105 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/care/CareApplicationsController.java

@@ -0,0 +1,105 @@
+package com.ruoyi.web.controller.care;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+import com.ruoyi.care.domain.CareApplications;
+import com.ruoyi.care.service.ICareApplicationsService;
+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.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 护理申请Controller
+ * 
+ * @author qy
+ * @date 2024-11-25
+ */
+@RestController
+@RequestMapping("/care/applications")
+public class CareApplicationsController extends BaseController
+{
+    @Autowired
+    private ICareApplicationsService careApplicationsService;
+
+    /**
+     * 查询护理申请列表
+     */
+    @PreAuthorize("@ss.hasPermi('care:applications:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(CareApplications careApplications)
+    {
+        startPage();
+        List<CareApplications> list = careApplicationsService.selectCareApplicationsList(careApplications);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出护理申请列表
+     */
+    @PreAuthorize("@ss.hasPermi('care:applications:export')")
+    @Log(title = "护理申请", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, CareApplications careApplications)
+    {
+        List<CareApplications> list = careApplicationsService.selectCareApplicationsList(careApplications);
+        ExcelUtil<CareApplications> util = new ExcelUtil<CareApplications>(CareApplications.class);
+        util.exportExcel(response, list, "护理申请数据");
+    }
+
+    /**
+     * 获取护理申请详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('care:applications:query')")
+    @GetMapping(value = "/{applyId}")
+    public AjaxResult getInfo(@PathVariable("applyId") Long applyId)
+    {
+        return success(careApplicationsService.selectCareApplicationsByApplyId(applyId));
+    }
+
+    /**
+     * 新增护理申请
+     */
+    @PreAuthorize("@ss.hasPermi('care:applications:add')")
+    @Log(title = "护理申请", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody CareApplications careApplications)
+    {
+        return toAjax(careApplicationsService.insertCareApplications(careApplications));
+    }
+
+    /**
+     * 修改护理申请
+     */
+    @PreAuthorize("@ss.hasPermi('care:applications:edit')")
+    @Log(title = "护理申请", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody CareApplications careApplications)
+    {
+        return toAjax(careApplicationsService.updateCareApplications(careApplications));
+    }
+
+    /**
+     * 删除护理申请
+     */
+    @PreAuthorize("@ss.hasPermi('care:applications:remove')")
+    @Log(title = "护理申请", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{applyIds}")
+    public AjaxResult remove(@PathVariable Long[] applyIds)
+    {
+        return toAjax(careApplicationsService.deleteCareApplicationsByApplyIds(applyIds));
+    }
+}

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/care/CarePersonsController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.care;
+
+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.care.domain.CarePersons;
+import com.ruoyi.care.service.ICarePersonsService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 特困人员Controller
+ * 
+ * @author qy
+ * @date 2024-11-25
+ */
+@RestController
+@RequestMapping("/care/persons")
+public class CarePersonsController extends BaseController
+{
+    @Autowired
+    private ICarePersonsService carePersonsService;
+
+    /**
+     * 查询特困人员列表
+     */
+    @PreAuthorize("@ss.hasPermi('care:persons:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(CarePersons carePersons)
+    {
+        startPage();
+        List<CarePersons> list = carePersonsService.selectCarePersonsList(carePersons);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出特困人员列表
+     */
+    @PreAuthorize("@ss.hasPermi('care:persons:export')")
+    @Log(title = "特困人员", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, CarePersons carePersons)
+    {
+        List<CarePersons> list = carePersonsService.selectCarePersonsList(carePersons);
+        ExcelUtil<CarePersons> util = new ExcelUtil<CarePersons>(CarePersons.class);
+        util.exportExcel(response, list, "特困人员数据");
+    }
+
+    /**
+     * 获取特困人员详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('care:persons:query')")
+    @GetMapping(value = "/{personId}")
+    public AjaxResult getInfo(@PathVariable("personId") Long personId)
+    {
+        return success(carePersonsService.selectCarePersonsByPersonId(personId));
+    }
+
+    /**
+     * 新增特困人员
+     */
+    @PreAuthorize("@ss.hasPermi('care:persons:add')")
+    @Log(title = "特困人员", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody CarePersons carePersons)
+    {
+        return toAjax(carePersonsService.insertCarePersons(carePersons));
+    }
+
+    /**
+     * 修改特困人员
+     */
+    @PreAuthorize("@ss.hasPermi('care:persons:edit')")
+    @Log(title = "特困人员", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody CarePersons carePersons)
+    {
+        return toAjax(carePersonsService.updateCarePersons(carePersons));
+    }
+
+    /**
+     * 删除特困人员
+     */
+    @PreAuthorize("@ss.hasPermi('care:persons:remove')")
+    @Log(title = "特困人员", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{personIds}")
+    public AjaxResult remove(@PathVariable Long[] personIds)
+    {
+        return toAjax(carePersonsService.deleteCarePersonsByPersonIds(personIds));
+    }
+}

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysWorkConfigController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.system;
+
+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.SysWorkConfig;
+import com.ruoyi.system.service.ISysWorkConfigService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 参数配置Controller
+ * 
+ * @author qy
+ * @date 2024-11-25
+ */
+@RestController
+@RequestMapping("/system/workConfig")
+public class SysWorkConfigController extends BaseController
+{
+    @Autowired
+    private ISysWorkConfigService sysWorkConfigService;
+
+    /**
+     * 查询参数配置列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:workConfig:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(SysWorkConfig sysWorkConfig)
+    {
+        startPage();
+        List<SysWorkConfig> list = sysWorkConfigService.selectSysWorkConfigList(sysWorkConfig);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出参数配置列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:workConfig:export')")
+    @Log(title = "参数配置", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, SysWorkConfig sysWorkConfig)
+    {
+        List<SysWorkConfig> list = sysWorkConfigService.selectSysWorkConfigList(sysWorkConfig);
+        ExcelUtil<SysWorkConfig> util = new ExcelUtil<SysWorkConfig>(SysWorkConfig.class);
+        util.exportExcel(response, list, "参数配置数据");
+    }
+
+    /**
+     * 获取参数配置详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:workConfig:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(sysWorkConfigService.selectSysWorkConfigById(id));
+    }
+
+    /**
+     * 新增参数配置
+     */
+    @PreAuthorize("@ss.hasPermi('system:workConfig:add')")
+    @Log(title = "参数配置", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody SysWorkConfig sysWorkConfig)
+    {
+        return toAjax(sysWorkConfigService.insertSysWorkConfig(sysWorkConfig));
+    }
+
+    /**
+     * 修改参数配置
+     */
+    @PreAuthorize("@ss.hasPermi('system:workConfig:edit')")
+    @Log(title = "参数配置", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody SysWorkConfig sysWorkConfig)
+    {
+        return toAjax(sysWorkConfigService.updateSysWorkConfig(sysWorkConfig));
+    }
+
+    /**
+     * 删除参数配置
+     */
+    @PreAuthorize("@ss.hasPermi('system:workConfig:remove')")
+    @Log(title = "参数配置", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(sysWorkConfigService.deleteSysWorkConfigByIds(ids));
+    }
+}

+ 223 - 0
ruoyi-system/src/main/java/com/ruoyi/care/domain/CareApplications.java

@@ -0,0 +1,223 @@
+package com.ruoyi.care.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;
+
+/**
+ * 护理申请对象 care_applications
+ * 
+ * @author qy
+ * @date 2024-11-25
+ */
+public class CareApplications extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 护理申请表的唯一标识符 */
+    private Long applyId;
+
+    /** 申请人id */
+    @Excel(name = "申请人id")
+    private Long personId;
+
+    /** 申请人姓名 */
+    @Excel(name = "申请人姓名")
+    private String personName;
+
+    /** 护理需求详情 */
+    @Excel(name = "护理需求详情")
+    private String careNeeds;
+
+    /** 首选护理人员性别 */
+    @Excel(name = "首选护理人员性别")
+    private String nurseGender;
+
+    /** 所在医院 */
+    @Excel(name = "所在医院")
+    private String hospital;
+
+    /** 科室具体楼层房间床号 */
+    @Excel(name = "科室具体楼层房间床号")
+    private String address;
+
+    /** 预计天数 */
+    @Excel(name = "预计天数")
+    private String careDays;
+
+    /** 申请日期 */
+    @Excel(name = "申请日期")
+    private String applyDate;
+
+    /** 申请状态(待审核、同意、不同意、待指派、已指派) */
+    @Excel(name = "申请状态(待审核、同意、不同意、待指派、已指派)")
+    private String status;
+
+    /** 处理状态(正在进行 0、已完成 1) */
+    @Excel(name = "处理状态(正在进行 0、已完成 1)")
+    private String dealStatus;
+
+    /** 支付状态(未结算 0、已结算 1) */
+    @Excel(name = "支付状态(未结算 0、已结算 1)")
+    private String payStatus;
+
+    /** 审核原因 */
+    @Excel(name = "审核原因")
+    private String auditReason;
+
+    /** 删除标志(0代表存在 2代表删除) */
+    private String delFlag;
+
+    public void setApplyId(Long applyId) 
+    {
+        this.applyId = applyId;
+    }
+
+    public Long getApplyId() 
+    {
+        return applyId;
+    }
+    public void setPersonId(Long personId) 
+    {
+        this.personId = personId;
+    }
+
+    public Long getPersonId() 
+    {
+        return personId;
+    }
+    public void setPersonName(String personName) 
+    {
+        this.personName = personName;
+    }
+
+    public String getPersonName() 
+    {
+        return personName;
+    }
+    public void setCareNeeds(String careNeeds) 
+    {
+        this.careNeeds = careNeeds;
+    }
+
+    public String getCareNeeds() 
+    {
+        return careNeeds;
+    }
+    public void setNurseGender(String nurseGender) 
+    {
+        this.nurseGender = nurseGender;
+    }
+
+    public String getNurseGender() 
+    {
+        return nurseGender;
+    }
+    public void setHospital(String hospital) 
+    {
+        this.hospital = hospital;
+    }
+
+    public String getHospital() 
+    {
+        return hospital;
+    }
+    public void setAddress(String address) 
+    {
+        this.address = address;
+    }
+
+    public String getAddress() 
+    {
+        return address;
+    }
+    public void setCareDays(String careDays) 
+    {
+        this.careDays = careDays;
+    }
+
+    public String getCareDays() 
+    {
+        return careDays;
+    }
+    public void setApplyDate(String applyDate) 
+    {
+        this.applyDate = applyDate;
+    }
+
+    public String getApplyDate() 
+    {
+        return applyDate;
+    }
+    public void setStatus(String status) 
+    {
+        this.status = status;
+    }
+
+    public String getStatus() 
+    {
+        return status;
+    }
+    public void setDealStatus(String dealStatus) 
+    {
+        this.dealStatus = dealStatus;
+    }
+
+    public String getDealStatus() 
+    {
+        return dealStatus;
+    }
+    public void setPayStatus(String payStatus) 
+    {
+        this.payStatus = payStatus;
+    }
+
+    public String getPayStatus() 
+    {
+        return payStatus;
+    }
+    public void setAuditReason(String auditReason) 
+    {
+        this.auditReason = auditReason;
+    }
+
+    public String getAuditReason() 
+    {
+        return auditReason;
+    }
+    public void setDelFlag(String delFlag) 
+    {
+        this.delFlag = delFlag;
+    }
+
+    public String getDelFlag() 
+    {
+        return delFlag;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("applyId", getApplyId())
+            .append("personId", getPersonId())
+            .append("personName", getPersonName())
+            .append("careNeeds", getCareNeeds())
+            .append("nurseGender", getNurseGender())
+            .append("hospital", getHospital())
+            .append("address", getAddress())
+            .append("careDays", getCareDays())
+            .append("applyDate", getApplyDate())
+            .append("status", getStatus())
+            .append("dealStatus", getDealStatus())
+            .append("payStatus", getPayStatus())
+            .append("auditReason", getAuditReason())
+            .append("delFlag", getDelFlag())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

+ 237 - 0
ruoyi-system/src/main/java/com/ruoyi/care/domain/CarePersons.java

@@ -0,0 +1,237 @@
+package com.ruoyi.care.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;
+
+/**
+ * 特困人员对象 care_persons
+ * 
+ * @author qy
+ * @date 2024-11-25
+ */
+public class CarePersons extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 特困人员的唯一标识符 */
+    private Long personId;
+
+    /** 姓名 */
+    @Excel(name = "姓名")
+    private String name;
+
+    /** 出生日期 */
+    @Excel(name = "出生日期")
+    private String dateOfBirth;
+
+    /** 性别(男、女) */
+    @Excel(name = "性别", readConverterExp = "男=、女")
+    private String gender;
+
+    /** 身份证号码 */
+    @Excel(name = "身份证号码")
+    private String idNumber;
+
+    /** 住址 */
+    @Excel(name = "住址")
+    private String address;
+
+    /** 联系电话 */
+    @Excel(name = "联系电话")
+    private String phoneNumber;
+
+    /** 紧急联系人 */
+    @Excel(name = "紧急联系人")
+    private String emergencyContact;
+
+    /** 紧急联系人电话 */
+    @Excel(name = "紧急联系人电话")
+    private String emergencyPhone;
+
+    /** 健康状况 */
+    @Excel(name = "健康状况")
+    private String healthStatus;
+
+    /** 疾病史 */
+    @Excel(name = "疾病史")
+    private String medicalConditions;
+
+    /** 是否残疾 */
+    @Excel(name = "是否残疾")
+    private String disability;
+
+    /** 登记日期 */
+    @Excel(name = "登记日期")
+    private String registeredDate;
+
+    /** 关联用户表id */
+    @Excel(name = "关联用户表id")
+    private Long userId;
+
+    /** 删除标志(0代表存在 2代表删除) */
+    private String delFlag;
+
+    public void setPersonId(Long personId) 
+    {
+        this.personId = personId;
+    }
+
+    public Long getPersonId() 
+    {
+        return personId;
+    }
+    public void setName(String name) 
+    {
+        this.name = name;
+    }
+
+    public String getName() 
+    {
+        return name;
+    }
+    public void setDateOfBirth(String dateOfBirth) 
+    {
+        this.dateOfBirth = dateOfBirth;
+    }
+
+    public String getDateOfBirth() 
+    {
+        return dateOfBirth;
+    }
+    public void setGender(String gender) 
+    {
+        this.gender = gender;
+    }
+
+    public String getGender() 
+    {
+        return gender;
+    }
+    public void setIdNumber(String idNumber) 
+    {
+        this.idNumber = idNumber;
+    }
+
+    public String getIdNumber() 
+    {
+        return idNumber;
+    }
+    public void setAddress(String address) 
+    {
+        this.address = address;
+    }
+
+    public String getAddress() 
+    {
+        return address;
+    }
+    public void setPhoneNumber(String phoneNumber) 
+    {
+        this.phoneNumber = phoneNumber;
+    }
+
+    public String getPhoneNumber() 
+    {
+        return phoneNumber;
+    }
+    public void setEmergencyContact(String emergencyContact) 
+    {
+        this.emergencyContact = emergencyContact;
+    }
+
+    public String getEmergencyContact() 
+    {
+        return emergencyContact;
+    }
+    public void setEmergencyPhone(String emergencyPhone) 
+    {
+        this.emergencyPhone = emergencyPhone;
+    }
+
+    public String getEmergencyPhone() 
+    {
+        return emergencyPhone;
+    }
+    public void setHealthStatus(String healthStatus) 
+    {
+        this.healthStatus = healthStatus;
+    }
+
+    public String getHealthStatus() 
+    {
+        return healthStatus;
+    }
+    public void setMedicalConditions(String medicalConditions) 
+    {
+        this.medicalConditions = medicalConditions;
+    }
+
+    public String getMedicalConditions() 
+    {
+        return medicalConditions;
+    }
+    public void setDisability(String disability) 
+    {
+        this.disability = disability;
+    }
+
+    public String getDisability() 
+    {
+        return disability;
+    }
+    public void setRegisteredDate(String registeredDate) 
+    {
+        this.registeredDate = registeredDate;
+    }
+
+    public String getRegisteredDate() 
+    {
+        return registeredDate;
+    }
+    public void setUserId(Long userId) 
+    {
+        this.userId = userId;
+    }
+
+    public Long getUserId() 
+    {
+        return userId;
+    }
+    public void setDelFlag(String delFlag) 
+    {
+        this.delFlag = delFlag;
+    }
+
+    public String getDelFlag() 
+    {
+        return delFlag;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("personId", getPersonId())
+            .append("name", getName())
+            .append("dateOfBirth", getDateOfBirth())
+            .append("gender", getGender())
+            .append("idNumber", getIdNumber())
+            .append("address", getAddress())
+            .append("phoneNumber", getPhoneNumber())
+            .append("emergencyContact", getEmergencyContact())
+            .append("emergencyPhone", getEmergencyPhone())
+            .append("healthStatus", getHealthStatus())
+            .append("medicalConditions", getMedicalConditions())
+            .append("disability", getDisability())
+            .append("registeredDate", getRegisteredDate())
+            .append("userId", getUserId())
+            .append("delFlag", getDelFlag())
+            .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/care/mapper/CareApplicationsMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.care.mapper;
+
+import java.util.List;
+import com.ruoyi.care.domain.CareApplications;
+
+/**
+ * 护理申请Mapper接口
+ * 
+ * @author qy
+ * @date 2024-11-25
+ */
+public interface CareApplicationsMapper 
+{
+    /**
+     * 查询护理申请
+     * 
+     * @param applyId 护理申请主键
+     * @return 护理申请
+     */
+    public CareApplications selectCareApplicationsByApplyId(Long applyId);
+
+    /**
+     * 查询护理申请列表
+     * 
+     * @param careApplications 护理申请
+     * @return 护理申请集合
+     */
+    public List<CareApplications> selectCareApplicationsList(CareApplications careApplications);
+
+    /**
+     * 新增护理申请
+     * 
+     * @param careApplications 护理申请
+     * @return 结果
+     */
+    public int insertCareApplications(CareApplications careApplications);
+
+    /**
+     * 修改护理申请
+     * 
+     * @param careApplications 护理申请
+     * @return 结果
+     */
+    public int updateCareApplications(CareApplications careApplications);
+
+    /**
+     * 删除护理申请
+     * 
+     * @param applyId 护理申请主键
+     * @return 结果
+     */
+    public int deleteCareApplicationsByApplyId(Long applyId);
+
+    /**
+     * 批量删除护理申请
+     * 
+     * @param applyIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteCareApplicationsByApplyIds(Long[] applyIds);
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.care.mapper;
+
+import java.util.List;
+import com.ruoyi.care.domain.CarePersons;
+
+/**
+ * 特困人员Mapper接口
+ * 
+ * @author qy
+ * @date 2024-11-25
+ */
+public interface CarePersonsMapper 
+{
+    /**
+     * 查询特困人员
+     * 
+     * @param personId 特困人员主键
+     * @return 特困人员
+     */
+    public CarePersons selectCarePersonsByPersonId(Long personId);
+
+    /**
+     * 查询特困人员列表
+     * 
+     * @param carePersons 特困人员
+     * @return 特困人员集合
+     */
+    public List<CarePersons> selectCarePersonsList(CarePersons carePersons);
+
+    /**
+     * 新增特困人员
+     * 
+     * @param carePersons 特困人员
+     * @return 结果
+     */
+    public int insertCarePersons(CarePersons carePersons);
+
+    /**
+     * 修改特困人员
+     * 
+     * @param carePersons 特困人员
+     * @return 结果
+     */
+    public int updateCarePersons(CarePersons carePersons);
+
+    /**
+     * 删除特困人员
+     * 
+     * @param personId 特困人员主键
+     * @return 结果
+     */
+    public int deleteCarePersonsByPersonId(Long personId);
+
+    /**
+     * 批量删除特困人员
+     * 
+     * @param personIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteCarePersonsByPersonIds(Long[] personIds);
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.care.service;
+
+import java.util.List;
+import com.ruoyi.care.domain.CareApplications;
+
+/**
+ * 护理申请Service接口
+ * 
+ * @author qy
+ * @date 2024-11-25
+ */
+public interface ICareApplicationsService 
+{
+    /**
+     * 查询护理申请
+     * 
+     * @param applyId 护理申请主键
+     * @return 护理申请
+     */
+    public CareApplications selectCareApplicationsByApplyId(Long applyId);
+
+    /**
+     * 查询护理申请列表
+     * 
+     * @param careApplications 护理申请
+     * @return 护理申请集合
+     */
+    public List<CareApplications> selectCareApplicationsList(CareApplications careApplications);
+
+    /**
+     * 新增护理申请
+     * 
+     * @param careApplications 护理申请
+     * @return 结果
+     */
+    public int insertCareApplications(CareApplications careApplications);
+
+    /**
+     * 修改护理申请
+     * 
+     * @param careApplications 护理申请
+     * @return 结果
+     */
+    public int updateCareApplications(CareApplications careApplications);
+
+    /**
+     * 批量删除护理申请
+     * 
+     * @param applyIds 需要删除的护理申请主键集合
+     * @return 结果
+     */
+    public int deleteCareApplicationsByApplyIds(Long[] applyIds);
+
+    /**
+     * 删除护理申请信息
+     * 
+     * @param applyId 护理申请主键
+     * @return 结果
+     */
+    public int deleteCareApplicationsByApplyId(Long applyId);
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.care.service;
+
+import java.util.List;
+import com.ruoyi.care.domain.CarePersons;
+
+/**
+ * 特困人员Service接口
+ * 
+ * @author qy
+ * @date 2024-11-25
+ */
+public interface ICarePersonsService 
+{
+    /**
+     * 查询特困人员
+     * 
+     * @param personId 特困人员主键
+     * @return 特困人员
+     */
+    public CarePersons selectCarePersonsByPersonId(Long personId);
+
+    /**
+     * 查询特困人员列表
+     * 
+     * @param carePersons 特困人员
+     * @return 特困人员集合
+     */
+    public List<CarePersons> selectCarePersonsList(CarePersons carePersons);
+
+    /**
+     * 新增特困人员
+     * 
+     * @param carePersons 特困人员
+     * @return 结果
+     */
+    public int insertCarePersons(CarePersons carePersons);
+
+    /**
+     * 修改特困人员
+     * 
+     * @param carePersons 特困人员
+     * @return 结果
+     */
+    public int updateCarePersons(CarePersons carePersons);
+
+    /**
+     * 批量删除特困人员
+     * 
+     * @param personIds 需要删除的特困人员主键集合
+     * @return 结果
+     */
+    public int deleteCarePersonsByPersonIds(Long[] personIds);
+
+    /**
+     * 删除特困人员信息
+     * 
+     * @param personId 特困人员主键
+     * @return 结果
+     */
+    public int deleteCarePersonsByPersonId(Long personId);
+}

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

@@ -0,0 +1,96 @@
+package com.ruoyi.care.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.care.mapper.CareApplicationsMapper;
+import com.ruoyi.care.domain.CareApplications;
+import com.ruoyi.care.service.ICareApplicationsService;
+
+/**
+ * 护理申请Service业务层处理
+ * 
+ * @author qy
+ * @date 2024-11-25
+ */
+@Service
+public class CareApplicationsServiceImpl implements ICareApplicationsService 
+{
+    @Autowired
+    private CareApplicationsMapper careApplicationsMapper;
+
+    /**
+     * 查询护理申请
+     * 
+     * @param applyId 护理申请主键
+     * @return 护理申请
+     */
+    @Override
+    public CareApplications selectCareApplicationsByApplyId(Long applyId)
+    {
+        return careApplicationsMapper.selectCareApplicationsByApplyId(applyId);
+    }
+
+    /**
+     * 查询护理申请列表
+     * 
+     * @param careApplications 护理申请
+     * @return 护理申请
+     */
+    @Override
+    public List<CareApplications> selectCareApplicationsList(CareApplications careApplications)
+    {
+        return careApplicationsMapper.selectCareApplicationsList(careApplications);
+    }
+
+    /**
+     * 新增护理申请
+     * 
+     * @param careApplications 护理申请
+     * @return 结果
+     */
+    @Override
+    public int insertCareApplications(CareApplications careApplications)
+    {
+        careApplications.setCreateTime(DateUtils.getNowDate());
+        return careApplicationsMapper.insertCareApplications(careApplications);
+    }
+
+    /**
+     * 修改护理申请
+     * 
+     * @param careApplications 护理申请
+     * @return 结果
+     */
+    @Override
+    public int updateCareApplications(CareApplications careApplications)
+    {
+        careApplications.setUpdateTime(DateUtils.getNowDate());
+        return careApplicationsMapper.updateCareApplications(careApplications);
+    }
+
+    /**
+     * 批量删除护理申请
+     * 
+     * @param applyIds 需要删除的护理申请主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCareApplicationsByApplyIds(Long[] applyIds)
+    {
+        return careApplicationsMapper.deleteCareApplicationsByApplyIds(applyIds);
+    }
+
+    /**
+     * 删除护理申请信息
+     * 
+     * @param applyId 护理申请主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCareApplicationsByApplyId(Long applyId)
+    {
+        return careApplicationsMapper.deleteCareApplicationsByApplyId(applyId);
+    }
+}

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

@@ -0,0 +1,96 @@
+package com.ruoyi.care.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.care.mapper.CarePersonsMapper;
+import com.ruoyi.care.domain.CarePersons;
+import com.ruoyi.care.service.ICarePersonsService;
+
+/**
+ * 特困人员Service业务层处理
+ * 
+ * @author qy
+ * @date 2024-11-25
+ */
+@Service
+public class CarePersonsServiceImpl implements ICarePersonsService 
+{
+    @Autowired
+    private CarePersonsMapper carePersonsMapper;
+
+    /**
+     * 查询特困人员
+     * 
+     * @param personId 特困人员主键
+     * @return 特困人员
+     */
+    @Override
+    public CarePersons selectCarePersonsByPersonId(Long personId)
+    {
+        return carePersonsMapper.selectCarePersonsByPersonId(personId);
+    }
+
+    /**
+     * 查询特困人员列表
+     * 
+     * @param carePersons 特困人员
+     * @return 特困人员
+     */
+    @Override
+    public List<CarePersons> selectCarePersonsList(CarePersons carePersons)
+    {
+        return carePersonsMapper.selectCarePersonsList(carePersons);
+    }
+
+    /**
+     * 新增特困人员
+     * 
+     * @param carePersons 特困人员
+     * @return 结果
+     */
+    @Override
+    public int insertCarePersons(CarePersons carePersons)
+    {
+        carePersons.setCreateTime(DateUtils.getNowDate());
+        return carePersonsMapper.insertCarePersons(carePersons);
+    }
+
+    /**
+     * 修改特困人员
+     * 
+     * @param carePersons 特困人员
+     * @return 结果
+     */
+    @Override
+    public int updateCarePersons(CarePersons carePersons)
+    {
+        carePersons.setUpdateTime(DateUtils.getNowDate());
+        return carePersonsMapper.updateCarePersons(carePersons);
+    }
+
+    /**
+     * 批量删除特困人员
+     * 
+     * @param personIds 需要删除的特困人员主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCarePersonsByPersonIds(Long[] personIds)
+    {
+        return carePersonsMapper.deleteCarePersonsByPersonIds(personIds);
+    }
+
+    /**
+     * 删除特困人员信息
+     * 
+     * @param personId 特困人员主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCarePersonsByPersonId(Long personId)
+    {
+        return carePersonsMapper.deleteCarePersonsByPersonId(personId);
+    }
+}

+ 83 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/SysWorkConfig.java

@@ -0,0 +1,83 @@
+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;
+
+/**
+ * 参数配置对象 sys_work_config
+ * 
+ * @author qy
+ * @date 2024-11-25
+ */
+public class SysWorkConfig extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** $column.columnComment */
+    private Long id;
+
+    /** $column.columnComment */
+    @Excel(name = "类型", readConverterExp = "$column.readConverterExp()")
+    private String type;
+
+    /** $column.columnComment */
+    @Excel(name = "数量", readConverterExp = "$column.readConverterExp()")
+    private Long number;
+
+    /** 删除标志(0代表存在 2代表删除) */
+    private String delFlag;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setType(String type) 
+    {
+        this.type = type;
+    }
+
+    public String getType() 
+    {
+        return type;
+    }
+    public void setNumber(Long number) 
+    {
+        this.number = number;
+    }
+
+    public Long getNumber() 
+    {
+        return number;
+    }
+    public void setDelFlag(String delFlag) 
+    {
+        this.delFlag = delFlag;
+    }
+
+    public String getDelFlag() 
+    {
+        return delFlag;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("type", getType())
+            .append("number", getNumber())
+            .append("delFlag", getDelFlag())
+            .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/SysWorkConfigMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.mapper;
+
+import java.util.List;
+import com.ruoyi.system.domain.SysWorkConfig;
+
+/**
+ * 参数配置Mapper接口
+ * 
+ * @author qy
+ * @date 2024-11-25
+ */
+public interface SysWorkConfigMapper 
+{
+    /**
+     * 查询参数配置
+     * 
+     * @param id 参数配置主键
+     * @return 参数配置
+     */
+    public SysWorkConfig selectSysWorkConfigById(Long id);
+
+    /**
+     * 查询参数配置列表
+     * 
+     * @param sysWorkConfig 参数配置
+     * @return 参数配置集合
+     */
+    public List<SysWorkConfig> selectSysWorkConfigList(SysWorkConfig sysWorkConfig);
+
+    /**
+     * 新增参数配置
+     * 
+     * @param sysWorkConfig 参数配置
+     * @return 结果
+     */
+    public int insertSysWorkConfig(SysWorkConfig sysWorkConfig);
+
+    /**
+     * 修改参数配置
+     * 
+     * @param sysWorkConfig 参数配置
+     * @return 结果
+     */
+    public int updateSysWorkConfig(SysWorkConfig sysWorkConfig);
+
+    /**
+     * 删除参数配置
+     * 
+     * @param id 参数配置主键
+     * @return 结果
+     */
+    public int deleteSysWorkConfigById(Long id);
+
+    /**
+     * 批量删除参数配置
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteSysWorkConfigByIds(Long[] ids);
+}

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

@@ -0,0 +1,61 @@
+package com.ruoyi.system.service;
+
+import java.util.List;
+import com.ruoyi.system.domain.SysWorkConfig;
+
+/**
+ * 参数配置Service接口
+ * 
+ * @author qy
+ * @date 2024-11-25
+ */
+public interface ISysWorkConfigService 
+{
+    /**
+     * 查询参数配置
+     * 
+     * @param id 参数配置主键
+     * @return 参数配置
+     */
+    public SysWorkConfig selectSysWorkConfigById(Long id);
+
+    /**
+     * 查询参数配置列表
+     * 
+     * @param sysWorkConfig 参数配置
+     * @return 参数配置集合
+     */
+    public List<SysWorkConfig> selectSysWorkConfigList(SysWorkConfig sysWorkConfig);
+
+    /**
+     * 新增参数配置
+     * 
+     * @param sysWorkConfig 参数配置
+     * @return 结果
+     */
+    public int insertSysWorkConfig(SysWorkConfig sysWorkConfig);
+
+    /**
+     * 修改参数配置
+     * 
+     * @param sysWorkConfig 参数配置
+     * @return 结果
+     */
+    public int updateSysWorkConfig(SysWorkConfig sysWorkConfig);
+
+    /**
+     * 批量删除参数配置
+     * 
+     * @param ids 需要删除的参数配置主键集合
+     * @return 结果
+     */
+    public int deleteSysWorkConfigByIds(Long[] ids);
+
+    /**
+     * 删除参数配置信息
+     * 
+     * @param id 参数配置主键
+     * @return 结果
+     */
+    public int deleteSysWorkConfigById(Long id);
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysWorkConfigServiceImpl.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.SysWorkConfigMapper;
+import com.ruoyi.system.domain.SysWorkConfig;
+import com.ruoyi.system.service.ISysWorkConfigService;
+
+/**
+ * 参数配置Service业务层处理
+ * 
+ * @author qy
+ * @date 2024-11-25
+ */
+@Service
+public class SysWorkConfigServiceImpl implements ISysWorkConfigService 
+{
+    @Autowired
+    private SysWorkConfigMapper sysWorkConfigMapper;
+
+    /**
+     * 查询参数配置
+     * 
+     * @param id 参数配置主键
+     * @return 参数配置
+     */
+    @Override
+    public SysWorkConfig selectSysWorkConfigById(Long id)
+    {
+        return sysWorkConfigMapper.selectSysWorkConfigById(id);
+    }
+
+    /**
+     * 查询参数配置列表
+     * 
+     * @param sysWorkConfig 参数配置
+     * @return 参数配置
+     */
+    @Override
+    public List<SysWorkConfig> selectSysWorkConfigList(SysWorkConfig sysWorkConfig)
+    {
+        return sysWorkConfigMapper.selectSysWorkConfigList(sysWorkConfig);
+    }
+
+    /**
+     * 新增参数配置
+     * 
+     * @param sysWorkConfig 参数配置
+     * @return 结果
+     */
+    @Override
+    public int insertSysWorkConfig(SysWorkConfig sysWorkConfig)
+    {
+        sysWorkConfig.setCreateTime(DateUtils.getNowDate());
+        return sysWorkConfigMapper.insertSysWorkConfig(sysWorkConfig);
+    }
+
+    /**
+     * 修改参数配置
+     * 
+     * @param sysWorkConfig 参数配置
+     * @return 结果
+     */
+    @Override
+    public int updateSysWorkConfig(SysWorkConfig sysWorkConfig)
+    {
+        sysWorkConfig.setUpdateTime(DateUtils.getNowDate());
+        return sysWorkConfigMapper.updateSysWorkConfig(sysWorkConfig);
+    }
+
+    /**
+     * 批量删除参数配置
+     * 
+     * @param ids 需要删除的参数配置主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSysWorkConfigByIds(Long[] ids)
+    {
+        return sysWorkConfigMapper.deleteSysWorkConfigByIds(ids);
+    }
+
+    /**
+     * 删除参数配置信息
+     * 
+     * @param id 参数配置主键
+     * @return 结果
+     */
+    @Override
+    public int deleteSysWorkConfigById(Long id)
+    {
+        return sysWorkConfigMapper.deleteSysWorkConfigById(id);
+    }
+}

+ 135 - 0
ruoyi-system/src/main/resources/mapper/care/CareApplicationsMapper.xml

@@ -0,0 +1,135 @@
+<?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.care.mapper.CareApplicationsMapper">
+    
+    <resultMap type="CareApplications" id="CareApplicationsResult">
+        <result property="applyId"    column="apply_id"    />
+        <result property="personId"    column="person_id"    />
+        <result property="personName"    column="person_name"    />
+        <result property="careNeeds"    column="care_needs"    />
+        <result property="nurseGender"    column="nurse_gender"    />
+        <result property="hospital"    column="hospital"    />
+        <result property="address"    column="address"    />
+        <result property="careDays"    column="care_days"    />
+        <result property="applyDate"    column="apply_date"    />
+        <result property="status"    column="status"    />
+        <result property="dealStatus"    column="deal_status"    />
+        <result property="payStatus"    column="pay_status"    />
+        <result property="auditReason"    column="audit_reason"    />
+        <result property="delFlag"    column="del_flag"    />
+        <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="selectCareApplicationsVo">
+        select apply_id, person_id, person_name, care_needs, nurse_gender, hospital, address, care_days, apply_date, status, deal_status, pay_status, audit_reason, del_flag, create_by, create_time, update_by, update_time, remark from care_applications
+    </sql>
+
+    <select id="selectCareApplicationsList" parameterType="CareApplications" resultMap="CareApplicationsResult">
+        <include refid="selectCareApplicationsVo"/>
+        <where>  
+            <if test="personId != null "> and person_id = #{personId}</if>
+            <if test="personName != null  and personName != ''"> and person_name like concat('%', #{personName}, '%')</if>
+            <if test="careNeeds != null  and careNeeds != ''"> and care_needs = #{careNeeds}</if>
+            <if test="nurseGender != null  and nurseGender != ''"> and nurse_gender = #{nurseGender}</if>
+            <if test="hospital != null  and hospital != ''"> and hospital = #{hospital}</if>
+            <if test="address != null  and address != ''"> and address = #{address}</if>
+            <if test="careDays != null  and careDays != ''"> and care_days = #{careDays}</if>
+            <if test="applyDate != null  and applyDate != ''"> and apply_date = #{applyDate}</if>
+            <if test="status != null  and status != ''"> and status = #{status}</if>
+            <if test="dealStatus != null  and dealStatus != ''"> and deal_status = #{dealStatus}</if>
+            <if test="payStatus != null  and payStatus != ''"> and pay_status = #{payStatus}</if>
+            <if test="auditReason != null  and auditReason != ''"> and audit_reason = #{auditReason}</if>
+        </where>
+    </select>
+    
+    <select id="selectCareApplicationsByApplyId" parameterType="Long" resultMap="CareApplicationsResult">
+        <include refid="selectCareApplicationsVo"/>
+        where apply_id = #{applyId}
+    </select>
+
+    <insert id="insertCareApplications" parameterType="CareApplications" useGeneratedKeys="true" keyProperty="applyId">
+        insert into care_applications
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="personId != null">person_id,</if>
+            <if test="personName != null and personName != ''">person_name,</if>
+            <if test="careNeeds != null">care_needs,</if>
+            <if test="nurseGender != null">nurse_gender,</if>
+            <if test="hospital != null">hospital,</if>
+            <if test="address != null">address,</if>
+            <if test="careDays != null">care_days,</if>
+            <if test="applyDate != null and applyDate != ''">apply_date,</if>
+            <if test="status != null and status != ''">status,</if>
+            <if test="dealStatus != null">deal_status,</if>
+            <if test="payStatus != null">pay_status,</if>
+            <if test="auditReason != null">audit_reason,</if>
+            <if test="delFlag != null">del_flag,</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="personId != null">#{personId},</if>
+            <if test="personName != null and personName != ''">#{personName},</if>
+            <if test="careNeeds != null">#{careNeeds},</if>
+            <if test="nurseGender != null">#{nurseGender},</if>
+            <if test="hospital != null">#{hospital},</if>
+            <if test="address != null">#{address},</if>
+            <if test="careDays != null">#{careDays},</if>
+            <if test="applyDate != null and applyDate != ''">#{applyDate},</if>
+            <if test="status != null and status != ''">#{status},</if>
+            <if test="dealStatus != null">#{dealStatus},</if>
+            <if test="payStatus != null">#{payStatus},</if>
+            <if test="auditReason != null">#{auditReason},</if>
+            <if test="delFlag != null">#{delFlag},</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="updateCareApplications" parameterType="CareApplications">
+        update care_applications
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="personId != null">person_id = #{personId},</if>
+            <if test="personName != null and personName != ''">person_name = #{personName},</if>
+            <if test="careNeeds != null">care_needs = #{careNeeds},</if>
+            <if test="nurseGender != null">nurse_gender = #{nurseGender},</if>
+            <if test="hospital != null">hospital = #{hospital},</if>
+            <if test="address != null">address = #{address},</if>
+            <if test="careDays != null">care_days = #{careDays},</if>
+            <if test="applyDate != null and applyDate != ''">apply_date = #{applyDate},</if>
+            <if test="status != null and status != ''">status = #{status},</if>
+            <if test="dealStatus != null">deal_status = #{dealStatus},</if>
+            <if test="payStatus != null">pay_status = #{payStatus},</if>
+            <if test="auditReason != null">audit_reason = #{auditReason},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</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 apply_id = #{applyId}
+    </update>
+
+    <delete id="deleteCareApplicationsByApplyId" parameterType="Long">
+        delete from care_applications where apply_id = #{applyId}
+    </delete>
+
+    <delete id="deleteCareApplicationsByApplyIds" parameterType="String">
+        delete from care_applications where apply_id in 
+        <foreach item="applyId" collection="array" open="(" separator="," close=")">
+            #{applyId}
+        </foreach>
+    </delete>
+</mapper>

+ 140 - 0
ruoyi-system/src/main/resources/mapper/care/CarePersonsMapper.xml

@@ -0,0 +1,140 @@
+<?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.care.mapper.CarePersonsMapper">
+    
+    <resultMap type="CarePersons" id="CarePersonsResult">
+        <result property="personId"    column="person_id"    />
+        <result property="name"    column="name"    />
+        <result property="dateOfBirth"    column="date_of_birth"    />
+        <result property="gender"    column="gender"    />
+        <result property="idNumber"    column="id_number"    />
+        <result property="address"    column="address"    />
+        <result property="phoneNumber"    column="phone_number"    />
+        <result property="emergencyContact"    column="emergency_contact"    />
+        <result property="emergencyPhone"    column="emergency_phone"    />
+        <result property="healthStatus"    column="health_status"    />
+        <result property="medicalConditions"    column="medical_conditions"    />
+        <result property="disability"    column="disability"    />
+        <result property="registeredDate"    column="registered_date"    />
+        <result property="userId"    column="user_id"    />
+        <result property="delFlag"    column="del_flag"    />
+        <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="selectCarePersonsVo">
+        select person_id, name, date_of_birth, gender, id_number, address, phone_number, emergency_contact, emergency_phone, health_status, medical_conditions, disability, registered_date, user_id, del_flag, create_by, create_time, update_by, update_time, remark from care_persons
+    </sql>
+
+    <select id="selectCarePersonsList" parameterType="CarePersons" resultMap="CarePersonsResult">
+        <include refid="selectCarePersonsVo"/>
+        <where>  
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
+            <if test="dateOfBirth != null  and dateOfBirth != ''"> and date_of_birth = #{dateOfBirth}</if>
+            <if test="gender != null  and gender != ''"> and gender = #{gender}</if>
+            <if test="idNumber != null  and idNumber != ''"> and id_number = #{idNumber}</if>
+            <if test="address != null  and address != ''"> and address = #{address}</if>
+            <if test="phoneNumber != null  and phoneNumber != ''"> and phone_number = #{phoneNumber}</if>
+            <if test="emergencyContact != null  and emergencyContact != ''"> and emergency_contact = #{emergencyContact}</if>
+            <if test="emergencyPhone != null  and emergencyPhone != ''"> and emergency_phone = #{emergencyPhone}</if>
+            <if test="healthStatus != null  and healthStatus != ''"> and health_status = #{healthStatus}</if>
+            <if test="medicalConditions != null  and medicalConditions != ''"> and medical_conditions = #{medicalConditions}</if>
+            <if test="disability != null  and disability != ''"> and disability = #{disability}</if>
+            <if test="registeredDate != null  and registeredDate != ''"> and registered_date = #{registeredDate}</if>
+            <if test="userId != null "> and user_id = #{userId}</if>
+        </where>
+    </select>
+    
+    <select id="selectCarePersonsByPersonId" parameterType="Long" resultMap="CarePersonsResult">
+        <include refid="selectCarePersonsVo"/>
+        where person_id = #{personId}
+    </select>
+
+    <insert id="insertCarePersons" parameterType="CarePersons" useGeneratedKeys="true" keyProperty="personId">
+        insert into care_persons
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="name != null and name != ''">name,</if>
+            <if test="dateOfBirth != null and dateOfBirth != ''">date_of_birth,</if>
+            <if test="gender != null and gender != ''">gender,</if>
+            <if test="idNumber != null and idNumber != ''">id_number,</if>
+            <if test="address != null">address,</if>
+            <if test="phoneNumber != null">phone_number,</if>
+            <if test="emergencyContact != null">emergency_contact,</if>
+            <if test="emergencyPhone != null">emergency_phone,</if>
+            <if test="healthStatus != null">health_status,</if>
+            <if test="medicalConditions != null">medical_conditions,</if>
+            <if test="disability != null and disability != ''">disability,</if>
+            <if test="registeredDate != null and registeredDate != ''">registered_date,</if>
+            <if test="userId != null">user_id,</if>
+            <if test="delFlag != null">del_flag,</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="name != null and name != ''">#{name},</if>
+            <if test="dateOfBirth != null and dateOfBirth != ''">#{dateOfBirth},</if>
+            <if test="gender != null and gender != ''">#{gender},</if>
+            <if test="idNumber != null and idNumber != ''">#{idNumber},</if>
+            <if test="address != null">#{address},</if>
+            <if test="phoneNumber != null">#{phoneNumber},</if>
+            <if test="emergencyContact != null">#{emergencyContact},</if>
+            <if test="emergencyPhone != null">#{emergencyPhone},</if>
+            <if test="healthStatus != null">#{healthStatus},</if>
+            <if test="medicalConditions != null">#{medicalConditions},</if>
+            <if test="disability != null and disability != ''">#{disability},</if>
+            <if test="registeredDate != null and registeredDate != ''">#{registeredDate},</if>
+            <if test="userId != null">#{userId},</if>
+            <if test="delFlag != null">#{delFlag},</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="updateCarePersons" parameterType="CarePersons">
+        update care_persons
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="name != null and name != ''">name = #{name},</if>
+            <if test="dateOfBirth != null and dateOfBirth != ''">date_of_birth = #{dateOfBirth},</if>
+            <if test="gender != null and gender != ''">gender = #{gender},</if>
+            <if test="idNumber != null and idNumber != ''">id_number = #{idNumber},</if>
+            <if test="address != null">address = #{address},</if>
+            <if test="phoneNumber != null">phone_number = #{phoneNumber},</if>
+            <if test="emergencyContact != null">emergency_contact = #{emergencyContact},</if>
+            <if test="emergencyPhone != null">emergency_phone = #{emergencyPhone},</if>
+            <if test="healthStatus != null">health_status = #{healthStatus},</if>
+            <if test="medicalConditions != null">medical_conditions = #{medicalConditions},</if>
+            <if test="disability != null and disability != ''">disability = #{disability},</if>
+            <if test="registeredDate != null and registeredDate != ''">registered_date = #{registeredDate},</if>
+            <if test="userId != null">user_id = #{userId},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</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 person_id = #{personId}
+    </update>
+
+    <delete id="deleteCarePersonsByPersonId" parameterType="Long">
+        delete from care_persons where person_id = #{personId}
+    </delete>
+
+    <delete id="deleteCarePersonsByPersonIds" parameterType="String">
+        delete from care_persons where person_id in 
+        <foreach item="personId" collection="array" open="(" separator="," close=")">
+            #{personId}
+        </foreach>
+    </delete>
+</mapper>

+ 87 - 0
ruoyi-system/src/main/resources/mapper/system/SysWorkConfigMapper.xml

@@ -0,0 +1,87 @@
+<?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.SysWorkConfigMapper">
+
+    <resultMap type="SysWorkConfig" id="SysWorkConfigResult">
+        <result property="id"    column="id"    />
+        <result property="type"    column="type"    />
+        <result property="number"    column="number"    />
+        <result property="delFlag"    column="del_flag"    />
+        <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="selectSysWorkConfigVo">
+        select id, type, number, del_flag, create_by, create_time, update_by, update_time, remark from sys_work_config
+    </sql>
+
+    <select id="selectSysWorkConfigList" parameterType="SysWorkConfig" resultMap="SysWorkConfigResult">
+        <include refid="selectSysWorkConfigVo"/>
+        <where>
+            <if test="type != null  and type != ''"> and type = #{type}</if>
+            <if test="number != null "> and number = #{number}</if>
+        </where>
+    </select>
+
+    <select id="selectSysWorkConfigById" parameterType="Long" resultMap="SysWorkConfigResult">
+        <include refid="selectSysWorkConfigVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertSysWorkConfig" parameterType="SysWorkConfig">
+        insert into sys_work_config
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="type != null">type,</if>
+            <if test="number != null">number,</if>
+            <if test="delFlag != null">del_flag,</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="id != null">#{id},</if>
+            <if test="type != null">#{type},</if>
+            <if test="number != null">#{number},</if>
+            <if test="delFlag != null">#{delFlag},</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="updateSysWorkConfig" parameterType="SysWorkConfig">
+        update sys_work_config
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="type != null">type = #{type},</if>
+            <if test="number != null">number = #{number},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteSysWorkConfigById" parameterType="Long">
+        delete from sys_work_config where id = #{id}
+    </delete>
+
+    <delete id="deleteSysWorkConfigByIds" parameterType="String">
+        delete from sys_work_config where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>