From 92f4b9a6119f681da9bab94281690b7a870bc448 Mon Sep 17 00:00:00 2001 From: youxilong Date: Thu, 29 Feb 2024 22:23:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=8C=85=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=9A=E6=9F=A5=E8=AF=A2=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E6=96=B9=E5=BC=8F=E5=88=97=E8=A1=A8=E5=8F=8A=E5=85=B6=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=86=85=E5=AE=B9=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../enums/ServiceWayContentServiceType.java | 26 ++ .../ServiceWayContentController.java | 104 +++++++ .../servicewaycontent/ServiceWayContent.java | 140 +++++++++ .../ServiceWayContentDTO.java | 30 ++ .../ServiceWayContentMapper.java | 79 +++++ .../IServiceWayContentService.java | 71 +++++ .../impl/ServiceWayContentServiceImpl.java | 105 +++++++ .../manage/vo/department/DepartmentVO.java | 2 +- .../ServiceWayContentAndNumVO.java | 35 +++ .../ServiceWayContentVO.java | 51 ++++ .../ServiceWayContentMapper.xml | 286 ++++++++++++++++++ 11 files changed, 928 insertions(+), 1 deletion(-) create mode 100644 postdischarge-common/src/main/java/com/xinelu/common/enums/ServiceWayContentServiceType.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/controller/servicewaycontent/ServiceWayContentController.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/domain/servicewaycontent/ServiceWayContent.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/dto/servicewaycontent/ServiceWayContentDTO.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/mapper/servicewaycontent/ServiceWayContentMapper.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/service/servicewaycontent/IServiceWayContentService.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/service/servicewaycontent/impl/ServiceWayContentServiceImpl.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/vo/servicewaycontent/ServiceWayContentAndNumVO.java create mode 100644 postdischarge-manage/src/main/java/com/xinelu/manage/vo/servicewaycontent/ServiceWayContentVO.java create mode 100644 postdischarge-manage/src/main/resources/mapper/manage/servicewaycontent/ServiceWayContentMapper.xml diff --git a/postdischarge-common/src/main/java/com/xinelu/common/enums/ServiceWayContentServiceType.java b/postdischarge-common/src/main/java/com/xinelu/common/enums/ServiceWayContentServiceType.java new file mode 100644 index 00000000..28a7f512 --- /dev/null +++ b/postdischarge-common/src/main/java/com/xinelu/common/enums/ServiceWayContentServiceType.java @@ -0,0 +1,26 @@ +package com.xinelu.common.enums; + +/** + * 服务方式内容服务标识 + * + * @author : youxilong + * @date : 2024/2/29 20:08 + */ +public enum ServiceWayContentServiceType { + + /** + * 服务方式 + */ + SERVICE_WRY, + + /** + * 服务内容 + */ + SERVICE_CONTENT, + + /** + *服务频次 + */ + SERVICE_FREQUENCY + +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/controller/servicewaycontent/ServiceWayContentController.java b/postdischarge-manage/src/main/java/com/xinelu/manage/controller/servicewaycontent/ServiceWayContentController.java new file mode 100644 index 00000000..55e73d2a --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/controller/servicewaycontent/ServiceWayContentController.java @@ -0,0 +1,104 @@ +package com.xinelu.manage.controller.servicewaycontent; + +import com.xinelu.common.annotation.Log; +import com.xinelu.common.core.controller.BaseController; +import com.xinelu.common.core.domain.AjaxResult; +import com.xinelu.common.core.page.TableDataInfo; +import com.xinelu.common.enums.BusinessType; +import com.xinelu.common.utils.poi.ExcelUtil; +import com.xinelu.manage.domain.servicewaycontent.ServiceWayContent; +import com.xinelu.manage.dto.servicewaycontent.ServiceWayContentDTO; +import com.xinelu.manage.service.servicewaycontent.IServiceWayContentService; +import com.xinelu.manage.vo.servicewaycontent.ServiceWayContentAndNumVO; +import com.xinelu.manage.vo.servicewaycontent.ServiceWayContentVO; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 服务方式内容Controller + * + * @author xinelu + * @date 2024-02-29 + */ +@RestController +@RequestMapping("/manage/servicewaycontent") +public class ServiceWayContentController extends BaseController { + @Resource + private IServiceWayContentService serviceWayContentService; + + /** + * 查询服务方式内容列表 + */ + @PreAuthorize("@ss.hasPermi('manage:servicewaycontent:list')") + @GetMapping("/list") + public TableDataInfo list(ServiceWayContentDTO serviceWayContentDTO) { + startPage(); + List list = serviceWayContentService.selectServiceWayContentList(serviceWayContentDTO); + return getDataTable(list); + } + + /** + * 查询服务方式和记录数 + */ + @GetMapping("/listNum") + public AjaxResult listNum(String serviceWayName) { + List list = serviceWayContentService.selectListNum(serviceWayName); + return AjaxResult.success(list); + } + + + /** + * 导出服务方式内容列表 + */ + @PreAuthorize("@ss.hasPermi('manage:servicewaycontent:export')") + @Log(title = "服务方式内容", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, ServiceWayContentDTO serviceWayContentDTO) { + List list = serviceWayContentService.selectServiceWayContentList(serviceWayContentDTO); + ExcelUtil util = new ExcelUtil(ServiceWayContentVO.class); + util.exportExcel(response, list, "服务方式内容数据"); + } + + /** + * 获取服务方式内容详细信息 + */ + @PreAuthorize("@ss.hasPermi('manage:servicewaycontent:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) { + return AjaxResult.success(serviceWayContentService.selectServiceWayContentById(id)); + } + + /** + * 新增服务方式内容 + */ + @PreAuthorize("@ss.hasPermi('manage:servicewaycontent:add')") + @Log(title = "服务方式内容", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody ServiceWayContent serviceWayContent) { + return toAjax(serviceWayContentService.insertServiceWayContent(serviceWayContent)); + } + + /** + * 修改服务方式内容 + */ + @PreAuthorize("@ss.hasPermi('manage:servicewaycontent:edit')") + @Log(title = "服务方式内容", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody ServiceWayContent serviceWayContent) { + return toAjax(serviceWayContentService.updateServiceWayContent(serviceWayContent)); + } + + /** + * 删除服务方式内容 + */ + @PreAuthorize("@ss.hasPermi('manage:servicewaycontent:remove')") + @Log(title = "服务方式内容", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) { + return toAjax(serviceWayContentService.deleteServiceWayContentByIds(ids)); + } +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/domain/servicewaycontent/ServiceWayContent.java b/postdischarge-manage/src/main/java/com/xinelu/manage/domain/servicewaycontent/ServiceWayContent.java new file mode 100644 index 00000000..54272683 --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/domain/servicewaycontent/ServiceWayContent.java @@ -0,0 +1,140 @@ +package com.xinelu.manage.domain.servicewaycontent; + +import com.xinelu.common.annotation.Excel; +import com.xinelu.common.core.domain.BaseEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 服务方式内容对象 service_way_content + * + * @author xinelu + * @date 2024-02-29 + */ +@Data +@AllArgsConstructor +@NoArgsConstructor +@EqualsAndHashCode(callSuper = true) +@ApiModel(value = "服务方式内容对象", description = "service_way_content") +public class ServiceWayContent extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** + * 主键id + */ + private Long id; + + /** + * 服务方式名称 + */ + @ApiModelProperty(value = "服务方式名称") + @Excel(name = "服务方式名称") + private String serviceWayName; + + /** + * 服务方式编码 + */ + @ApiModelProperty(value = "服务方式编码") + @Excel(name = "服务方式编码") + private String serviceWayCode; + + /** + * 服务标识,服务方式:SERVICE_WRY,服务内容:SERVICE_CONTENT,服务频次:SERVICE_FREQUENCY + */ + @ApiModelProperty(value = "服务标识,服务方式:SERVICE_WRY,服务内容:SERVICE_CONTENT,服务频次:SERVICE_FREQUENCY") + @Excel(name = "服务标识,服务方式:SERVICE_WRY,服务内容:SERVICE_CONTENT,服务频次:SERVICE_FREQUENCY") + private String serviceType; + + /** + * 所属服务方式id + */ + @ApiModelProperty(value = "所属服务方式id") + @Excel(name = "所属服务方式id") + private Long serviceWayId; + + /** + * 服务内容 + */ + @ApiModelProperty(value = "服务内容") + @Excel(name = "服务内容") + private String serviceContent; + + /** + * 所属服务内容id + */ + @ApiModelProperty(value = "所属服务内容id") + @Excel(name = "所属服务内容id") + private Long serviceContentId; + + /** + * 服务频次类型,数字:DIGIT,文本:TEXT + */ + @ApiModelProperty(value = "服务频次类型,数字:DIGIT,文本:TEXT") + @Excel(name = "服务频次类型,数字:DIGIT,文本:TEXT") + private String serviceFrequencyType; + + /** + * 服务频次文本 + */ + @ApiModelProperty(value = "服务频次文本") + @Excel(name = "服务频次文本") + private String serviceFrequencyText; + + /** + * 服务频次数字起始值 + */ + @ApiModelProperty(value = "服务频次数字起始值") + @Excel(name = "服务频次数字起始值") + private Integer serviceFrequencyStart; + + /** + * 服务频次数字结束值 + */ + @ApiModelProperty(value = "服务频次数字结束值") + @Excel(name = "服务频次数字结束值") + private Integer serviceFrequencyEnd; + + /** + * 排序 + */ + @ApiModelProperty(value = "排序") + @Excel(name = "排序") + private Integer serviceSort; + + /** + * 备注 + */ + @ApiModelProperty(value = "备注") + @Excel(name = "备注") + private String serviceRemark; + + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("serviceWayName", getServiceWayName()) + .append("serviceWayCode", getServiceWayCode()) + .append("serviceType", getServiceType()) + .append("serviceWayId", getServiceWayId()) + .append("serviceContent", getServiceContent()) + .append("serviceContentId", getServiceContentId()) + .append("serviceFrequencyType", getServiceFrequencyType()) + .append("serviceFrequencyText", getServiceFrequencyText()) + .append("serviceFrequencyStart", getServiceFrequencyStart()) + .append("serviceFrequencyEnd", getServiceFrequencyEnd()) + .append("serviceSort", getServiceSort()) + .append("serviceRemark", getServiceRemark()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .toString(); + } +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/dto/servicewaycontent/ServiceWayContentDTO.java b/postdischarge-manage/src/main/java/com/xinelu/manage/dto/servicewaycontent/ServiceWayContentDTO.java new file mode 100644 index 00000000..f7b65150 --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/dto/servicewaycontent/ServiceWayContentDTO.java @@ -0,0 +1,30 @@ +package com.xinelu.manage.dto.servicewaycontent; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @author : youxilong + * @date : 2024/2/29 22:03 + */ +@Data +@AllArgsConstructor +@NoArgsConstructor +@ApiModel(value = "服务方式内容对象DTO") +public class ServiceWayContentDTO { + + /** + * 主键id + */ + private Long id; + + /** + * 服务内容名称 + */ + @ApiModelProperty(value = "服务内容名称") + private String serviceContent; + +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/mapper/servicewaycontent/ServiceWayContentMapper.java b/postdischarge-manage/src/main/java/com/xinelu/manage/mapper/servicewaycontent/ServiceWayContentMapper.java new file mode 100644 index 00000000..1023cb57 --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/mapper/servicewaycontent/ServiceWayContentMapper.java @@ -0,0 +1,79 @@ +package com.xinelu.manage.mapper.servicewaycontent; + +import com.xinelu.manage.domain.servicewaycontent.ServiceWayContent; +import com.xinelu.manage.dto.servicewaycontent.ServiceWayContentDTO; +import com.xinelu.manage.vo.servicewaycontent.ServiceWayContentAndNumVO; +import com.xinelu.manage.vo.servicewaycontent.ServiceWayContentVO; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 服务方式内容Mapper接口 + * + * @author xinelu + * @date 2024-02-29 + */ +public interface ServiceWayContentMapper { + /** + * 查询服务方式内容 + * + * @param id 服务方式内容主键 + * @return 服务方式内容 + */ + public ServiceWayContent selectServiceWayContentById(Long id); + + /** + * 查询服务方式内容列表 + * + * @param serviceWayContent 服务方式内容 + * @return 服务方式内容集合 + */ + public List selectServiceWayContentList(ServiceWayContent serviceWayContent); + + /** + * 新增服务方式内容 + * + * @param serviceWayContent 服务方式内容 + * @return 结果 + */ + public int insertServiceWayContent(ServiceWayContent serviceWayContent); + + /** + * 修改服务方式内容 + * + * @param serviceWayContent 服务方式内容 + * @return 结果 + */ + public int updateServiceWayContent(ServiceWayContent serviceWayContent); + + /** + * 删除服务方式内容 + * + * @param id 服务方式内容主键 + * @return 结果 + */ + public int deleteServiceWayContentById(Long id); + + /** + * 批量删除服务方式内容 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteServiceWayContentByIds(Long[] ids); + + /** + * 查询服务方式名称 + * @param serviceWayName + * @return + */ + List selectListNum(@Param("serviceWayName") String serviceWayName); + + /** + * 查询服务方式内容列表 + * @param serviceWayContentDTO + * @return + */ + List selectServiceWayContentListV1(ServiceWayContentDTO serviceWayContentDTO); +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/service/servicewaycontent/IServiceWayContentService.java b/postdischarge-manage/src/main/java/com/xinelu/manage/service/servicewaycontent/IServiceWayContentService.java new file mode 100644 index 00000000..16f6cb60 --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/service/servicewaycontent/IServiceWayContentService.java @@ -0,0 +1,71 @@ +package com.xinelu.manage.service.servicewaycontent; + +import com.xinelu.manage.domain.servicewaycontent.ServiceWayContent; +import com.xinelu.manage.dto.servicewaycontent.ServiceWayContentDTO; +import com.xinelu.manage.vo.servicewaycontent.ServiceWayContentAndNumVO; +import com.xinelu.manage.vo.servicewaycontent.ServiceWayContentVO; + +import java.util.List; + +/** + * 服务方式内容Service接口 + * + * @author xinelu + * @date 2024-02-29 + */ +public interface IServiceWayContentService { + /** + * 查询服务方式内容 + * + * @param id 服务方式内容主键 + * @return 服务方式内容 + */ + public ServiceWayContent selectServiceWayContentById(Long id); + + /** + * 查询服务方式内容列表 + * + * @param serviceWayContentDTO 服务方式内容 + * @return 服务方式内容集合 + */ + public List selectServiceWayContentList(ServiceWayContentDTO serviceWayContentDTO); + + /** + * 新增服务方式内容 + * + * @param serviceWayContent 服务方式内容 + * @return 结果 + */ + public int insertServiceWayContent(ServiceWayContent serviceWayContent); + + /** + * 修改服务方式内容 + * + * @param serviceWayContent 服务方式内容 + * @return 结果 + */ + public int updateServiceWayContent(ServiceWayContent serviceWayContent); + + /** + * 批量删除服务方式内容 + * + * @param ids 需要删除的服务方式内容主键集合 + * @return 结果 + */ + public int deleteServiceWayContentByIds(Long[] ids); + + /** + * 删除服务方式内容信息 + * + * @param id 服务方式内容主键 + * @return 结果 + */ + public int deleteServiceWayContentById(Long id); + + /** + * 查询服务方式和记录数 + * @param serviceWayName + * @return + */ + List selectListNum(String serviceWayName); +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/service/servicewaycontent/impl/ServiceWayContentServiceImpl.java b/postdischarge-manage/src/main/java/com/xinelu/manage/service/servicewaycontent/impl/ServiceWayContentServiceImpl.java new file mode 100644 index 00000000..72bbc33c --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/service/servicewaycontent/impl/ServiceWayContentServiceImpl.java @@ -0,0 +1,105 @@ +package com.xinelu.manage.service.servicewaycontent.impl; + +import com.xinelu.common.enums.ServiceWayContentServiceType; +import com.xinelu.common.utils.DateUtils; +import com.xinelu.manage.domain.servicewaycontent.ServiceWayContent; +import com.xinelu.manage.dto.servicewaycontent.ServiceWayContentDTO; +import com.xinelu.manage.mapper.servicewaycontent.ServiceWayContentMapper; +import com.xinelu.manage.service.servicewaycontent.IServiceWayContentService; +import com.xinelu.manage.vo.servicewaycontent.ServiceWayContentAndNumVO; +import com.xinelu.manage.vo.servicewaycontent.ServiceWayContentVO; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.ArrayList; +import java.util.List; + +/** + * 服务方式内容Service业务层处理 + * + * @author xinelu + * @date 2024-02-29 + */ +@Service +public class ServiceWayContentServiceImpl implements IServiceWayContentService { + @Resource + private ServiceWayContentMapper serviceWayContentMapper; + + /** + * 查询服务方式内容 + * + * @param id 服务方式内容主键 + * @return 服务方式内容 + */ + @Override + public ServiceWayContent selectServiceWayContentById(Long id) { + return serviceWayContentMapper.selectServiceWayContentById(id); + } + + /** + * 查询服务方式内容列表 + * @param serviceWayContentDTO 服务方式内容 + * @return + */ + @Override + public List selectServiceWayContentList(ServiceWayContentDTO serviceWayContentDTO) { + return serviceWayContentMapper.selectServiceWayContentListV1(serviceWayContentDTO); + } + + /** + * 新增服务方式内容 + * + * @param serviceWayContent 服务方式内容 + * @return 结果 + */ + @Override + public int insertServiceWayContent(ServiceWayContent serviceWayContent) { + serviceWayContent.setCreateTime(DateUtils.getNowDate()); + return serviceWayContentMapper.insertServiceWayContent(serviceWayContent); + } + + /** + * 修改服务方式内容 + * + * @param serviceWayContent 服务方式内容 + * @return 结果 + */ + @Override + public int updateServiceWayContent(ServiceWayContent serviceWayContent) { + serviceWayContent.setUpdateTime(DateUtils.getNowDate()); + return serviceWayContentMapper.updateServiceWayContent(serviceWayContent); + } + + /** + * 批量删除服务方式内容 + * + * @param ids 需要删除的服务方式内容主键 + * @return 结果 + */ + @Override + public int deleteServiceWayContentByIds(Long[] ids) { + return serviceWayContentMapper.deleteServiceWayContentByIds(ids); + } + + /** + * 删除服务方式内容信息 + * + * @param id 服务方式内容主键 + * @return 结果 + */ + @Override + public int deleteServiceWayContentById(Long id) { + return serviceWayContentMapper.deleteServiceWayContentById(id); + } + + /** + * 查询服务方式和记录数 + * + * @param serviceWayName + * @return + */ + @Override + public List selectListNum(String serviceWayName) { + return serviceWayContentMapper.selectListNum(serviceWayName); + } +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/vo/department/DepartmentVO.java b/postdischarge-manage/src/main/java/com/xinelu/manage/vo/department/DepartmentVO.java index 960c0da6..c3c8ed7a 100644 --- a/postdischarge-manage/src/main/java/com/xinelu/manage/vo/department/DepartmentVO.java +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/vo/department/DepartmentVO.java @@ -40,6 +40,6 @@ public class DepartmentVO extends BaseEntity { /** * 所属科室下属数量:比如科室下所含话术数量 */ - @ApiModelProperty(value = "科室代码") + @ApiModelProperty(value = "所属科室下属数量") private Integer countNum; } diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/vo/servicewaycontent/ServiceWayContentAndNumVO.java b/postdischarge-manage/src/main/java/com/xinelu/manage/vo/servicewaycontent/ServiceWayContentAndNumVO.java new file mode 100644 index 00000000..08fd8de3 --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/vo/servicewaycontent/ServiceWayContentAndNumVO.java @@ -0,0 +1,35 @@ +package com.xinelu.manage.vo.servicewaycontent; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @author : youxilong + * @date : 2024/2/29 20:46 + */ +@Data +@AllArgsConstructor +@NoArgsConstructor +@ApiModel(value = "服务方式内容与数量VO") +public class ServiceWayContentAndNumVO { + + /** + * 主键id + */ + private Long id; + + /** + * 服务方式名称 + */ + @ApiModelProperty(value = "服务方式名称") + private String serviceWayName; + + /** + * 服务方式记录数量 + */ + @ApiModelProperty(value = "服务方式记录数量") + private Integer serviceContentNum; +} diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/vo/servicewaycontent/ServiceWayContentVO.java b/postdischarge-manage/src/main/java/com/xinelu/manage/vo/servicewaycontent/ServiceWayContentVO.java new file mode 100644 index 00000000..72ade01f --- /dev/null +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/vo/servicewaycontent/ServiceWayContentVO.java @@ -0,0 +1,51 @@ +package com.xinelu.manage.vo.servicewaycontent; + +import com.xinelu.common.annotation.Excel; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @author : youxilong + * @date : 2024/2/29 22:05 + */ +@Data +@AllArgsConstructor +@NoArgsConstructor +@ApiModel(value = "服务方式内容VO") +public class ServiceWayContentVO { + /** + * 主键id + */ + private Long id; + + /** + * 服务内容 + */ + @ApiModelProperty(value = "服务内容") + @Excel(name = "服务内容") + private String serviceContent; + + /** + * 服务频次文本 + */ + @ApiModelProperty(value = "服务频次文本") + @Excel(name = "服务频次文本") + private String serviceFrequencyText; + + /** + * 服务频次数字起始值 + */ + @ApiModelProperty(value = "服务频次数字起始值") + @Excel(name = "服务频次数字起始值") + private Integer serviceFrequencyStart; + + /** + * 服务频次数字结束值 + */ + @ApiModelProperty(value = "服务频次数字结束值") + @Excel(name = "服务频次数字结束值") + private Integer serviceFrequencyEnd; +} diff --git a/postdischarge-manage/src/main/resources/mapper/manage/servicewaycontent/ServiceWayContentMapper.xml b/postdischarge-manage/src/main/resources/mapper/manage/servicewaycontent/ServiceWayContentMapper.xml new file mode 100644 index 00000000..960a2fc1 --- /dev/null +++ b/postdischarge-manage/src/main/resources/mapper/manage/servicewaycontent/ServiceWayContentMapper.xml @@ -0,0 +1,286 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + select id, + service_way_name, + service_way_code, + service_type, + service_way_id, + service_content, + service_content_id, + service_frequency_type, + service_frequency_text, + service_frequency_start, + service_frequency_end, + service_sort, + service_remark, + create_by, + create_time, + update_by, + update_time + from service_way_content + + + + + + + + + + insert into service_way_content + + service_way_name, + + service_way_code, + + service_type, + + service_way_id, + + service_content, + + service_content_id, + + service_frequency_type, + + service_frequency_text, + + service_frequency_start, + + service_frequency_end, + + service_sort, + + service_remark, + + create_by, + + create_time, + + update_by, + + update_time, + + + + #{serviceWayName}, + + #{serviceWayCode}, + + #{serviceType}, + + #{serviceWayId}, + + #{serviceContent}, + + #{serviceContentId}, + + #{serviceFrequencyType}, + + #{serviceFrequencyText}, + + #{serviceFrequencyStart}, + + #{serviceFrequencyEnd}, + + #{serviceSort}, + + #{serviceRemark}, + + #{createBy}, + + #{createTime}, + + #{updateBy}, + + #{updateTime}, + + + + + + update service_way_content + + service_way_name = + #{serviceWayName}, + + service_way_code = + #{serviceWayCode}, + + service_type = + #{serviceType}, + + service_way_id = + #{serviceWayId}, + + service_content = + #{serviceContent}, + + service_content_id = + #{serviceContentId}, + + service_frequency_type = + #{serviceFrequencyType}, + + service_frequency_text = + #{serviceFrequencyText}, + + service_frequency_start = + #{serviceFrequencyStart}, + + service_frequency_end = + #{serviceFrequencyEnd}, + + service_sort = + #{serviceSort}, + + service_remark = + #{serviceRemark}, + + create_by = + #{createBy}, + + create_time = + #{createTime}, + + update_by = + #{updateBy}, + + update_time = + #{updateTime}, + + + where id = #{id} + + + + delete + from service_way_content + where id = #{id} + + + + delete from service_way_content where id in + + #{id} + + + \ No newline at end of file