feat: 健康管理系统,代码提交。

This commit is contained in:
tianyongbao
2024-09-24 16:39:53 +08:00
parent d5195fc41a
commit 7e0df68894
64 changed files with 4288 additions and 1 deletions

View File

@@ -220,7 +220,26 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils
calendar.set(Calendar.DAY_OF_MONTH, calendar.getActualMaximum(Calendar.DAY_OF_MONTH));
return sdf.format(calendar.getTime());
}
/**
* 获取选取日期的当前月的第一天
*/
public static String getAgeByBirthday(Date birthday)
{
// 假设生日是2000年1月1日
Calendar birthdayDate = Calendar.getInstance();
birthdayDate.setTime(birthday);
Calendar currentDate = Calendar.getInstance();
// 方法三使用Calendar类计算年龄差距
int ageInYears = currentDate.get(Calendar.YEAR) - birthdayDate.get(Calendar.YEAR);
if (birthdayDate.get(Calendar.MONTH) > currentDate.get(Calendar.MONTH) ||
(birthdayDate.get(Calendar.MONTH) == currentDate.get(Calendar.MONTH)
&& birthdayDate.get(Calendar.DATE) > currentDate.get(Calendar.DATE))) {
ageInYears--;
}
return ageInYears + "周岁";
}
}

View File

@@ -0,0 +1 @@
特定业务模块

View File

@@ -0,0 +1,143 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-modules</artifactId>
<version>3.6.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>intc-health</artifactId>
<description>
intc-health 健康业务
</description>
<dependencies>
<!-- SpringCloud Alibaba Nacos -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!-- SpringCloud Alibaba Nacos Config -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<!-- SpringCloud Alibaba Sentinel -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>
<!-- SpringBoot Actuator -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
</dependency>
<!-- Swagger UI -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>${swagger.fox.version}</version>
</dependency>
<!-- &lt;!&ndash; Mysql Connector &ndash;&gt;-->
<!-- <dependency>-->
<!-- <groupId>mysql</groupId>-->
<!-- <artifactId>mysql-connector-java</artifactId>-->
<!-- </dependency>-->
<!-- RuoYi Common DataSource -->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-common-datasource</artifactId>
<version>3.6.3</version>
</dependency>
<!-- RuoYi Common DataScope -->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-common-datascope</artifactId>
<version>3.6.3</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.22</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<!-- RuoYi Common Log -->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-common-log</artifactId>
</dependency>
<!-- RuoYi Common Swagger -->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-common-swagger</artifactId>
</dependency>
<dependency>
<groupId>ws.schild</groupId>
<artifactId>jave-core</artifactId>
<version>2.4.6</version>
</dependency>
<dependency>
<groupId>ws.schild</groupId>
<artifactId>jave-native-win64</artifactId>
<version>2.4.6</version>
</dependency>
<dependency>
<groupId>ws.schild</groupId>
<artifactId>jave-native-linux64</artifactId>
<version>2.4.6</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>5.3.3</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,25 @@
package com.ruoyi;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import com.ruoyi.common.security.annotation.EnableCustomConfig;
import com.ruoyi.common.security.annotation.EnableRyFeignClients;
import com.ruoyi.common.swagger.annotation.EnableCustomSwagger2;
/**
* 系统模块
*
* @author ruoyi
*/
@EnableCustomConfig
@EnableCustomSwagger2
@EnableRyFeignClients
@SpringBootApplication
public class IntcHealthApplication
{
public static void main(String[] args)
{
SpringApplication.run(IntcHealthApplication.class, args);
System.out.println("(♥◠‿◠)ノ゙ 智聪健康业务模块启动成功 ლ(´ڡ`ლ)゙");
}
}

View File

@@ -0,0 +1,44 @@
package com.ruoyi.config;
import com.ruoyi.common.core.utils.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.web.SecurityFilterChain;
/**
* @ClassName ActuatorSecurityConfig
* @Author YaphetS
* @Date 2023/3/14 9:18
* @Version 1.0
* @Description TODO
*/
@Configuration
@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class ActuatorSecurityConfig {
@Autowired
Environment env;
@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
String contextPath = env.getProperty("management.endpoints.web.base-path");
if(StringUtils.isEmpty(contextPath)) {
contextPath = "/actuator";
}
http.csrf().disable();
http.authorizeRequests()
.antMatchers("/**"+contextPath+"/**")
.authenticated()
.anyRequest()
.permitAll()
.and()
.httpBasic();
return http.build();
}
}

View File

@@ -0,0 +1,116 @@
package com.ruoyi.health.controller;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import javax.annotation.Resource;
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.log.annotation.Log;
import com.ruoyi.common.log.enums.BusinessType;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import com.ruoyi.health.domain.HealthDoctorRecord;
import com.ruoyi.health.domain.vo.HealthDoctorRecordVo;
import com.ruoyi.health.domain.dto.HealthDoctorRecordDto;
import com.ruoyi.health.service.IHealthDoctorRecordService;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.utils.poi.ExcelUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import com.ruoyi.common.core.web.page.TableDataInfo;
/**
* 就医记录Controller
*
* @author tianyongbao
* @date 2024-09-21
*/
@Api(tags=" 就医记录")
@RestController
@RequestMapping("/doctorRecord")
public class HealthDoctorRecordController extends BaseController
{
@Resource
private IHealthDoctorRecordService healthDoctorRecordService;
/**
* 查询就医记录列表
*/
@ApiOperation(value="查询就医记录列表",response = HealthDoctorRecordVo.class)
@RequiresPermissions("health:doctorRecord:list")
@GetMapping("/list")
public TableDataInfo list(HealthDoctorRecordDto healthDoctorRecordDto)
{
startPage();
List<HealthDoctorRecordVo> list = healthDoctorRecordService.selectHealthDoctorRecordList(healthDoctorRecordDto);
return getDataTable(list);
}
/**
* 导出就医记录列表
*/
@ApiOperation(value="导出就医记录列表")
@RequiresPermissions("health:doctorRecord:export")
@Log(title = "就医记录", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, HealthDoctorRecordDto healthDoctorRecordDto)
{
List<HealthDoctorRecordVo> list = healthDoctorRecordService.selectHealthDoctorRecordList(healthDoctorRecordDto);
ExcelUtil<HealthDoctorRecordVo> util = new ExcelUtil<HealthDoctorRecordVo>(HealthDoctorRecordVo.class);
util.exportExcel(response, list, "就医记录数据");
}
/**
* 获取就医记录详细信息
*/
@ApiOperation(value="获取就医记录详细信息")
@RequiresPermissions("health:doctorRecord:query")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(healthDoctorRecordService.selectHealthDoctorRecordById(id));
}
/**
* 新增就医记录
*/
@ApiOperation(value="新增就医记录")
@RequiresPermissions("health:doctorRecord:add")
@Log(title = "就医记录", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody HealthDoctorRecord healthDoctorRecord)
{
return toAjax(healthDoctorRecordService.insertHealthDoctorRecord(healthDoctorRecord));
}
/**
* 修改就医记录
*/
@ApiOperation(value="修改就医记录")
@RequiresPermissions("health:doctorRecord:edit")
@Log(title = "就医记录", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody HealthDoctorRecord healthDoctorRecord)
{
return toAjax(healthDoctorRecordService.updateHealthDoctorRecord(healthDoctorRecord));
}
/**
* 删除就医记录
*/
@ApiOperation(value="删除就医记录")
@RequiresPermissions("health:doctorRecord:remove")
@Log(title = "就医记录", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(healthDoctorRecordService.deleteHealthDoctorRecordByIds(ids));
}
}

View File

@@ -0,0 +1,116 @@
package com.ruoyi.health.controller;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import javax.annotation.Resource;
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.log.annotation.Log;
import com.ruoyi.common.log.enums.BusinessType;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import com.ruoyi.health.domain.HealthMarRecord;
import com.ruoyi.health.domain.vo.HealthMarRecordVo;
import com.ruoyi.health.domain.dto.HealthMarRecordDto;
import com.ruoyi.health.service.IHealthMarRecordService;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.utils.poi.ExcelUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import com.ruoyi.common.core.web.page.TableDataInfo;
/**
* 用药记录Controller
*
* @author tianyongbao
* @date 2024-09-21
*/
@Api(tags=" 用药记录")
@RestController
@RequestMapping("/marRecord")
public class HealthMarRecordController extends BaseController
{
@Resource
private IHealthMarRecordService healthMarRecordService;
/**
* 查询用药记录列表
*/
@ApiOperation(value="查询用药记录列表",response = HealthMarRecordVo.class)
@RequiresPermissions("health:marRecord:list")
@GetMapping("/list")
public TableDataInfo list(HealthMarRecordDto healthMarRecordDto)
{
startPage();
List<HealthMarRecordVo> list = healthMarRecordService.selectHealthMarRecordList(healthMarRecordDto);
return getDataTable(list);
}
/**
* 导出用药记录列表
*/
@ApiOperation(value="导出用药记录列表")
@RequiresPermissions("health:marRecord:export")
@Log(title = "用药记录", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, HealthMarRecordDto healthMarRecordDto)
{
List<HealthMarRecordVo> list = healthMarRecordService.selectHealthMarRecordList(healthMarRecordDto);
ExcelUtil<HealthMarRecordVo> util = new ExcelUtil<HealthMarRecordVo>(HealthMarRecordVo.class);
util.exportExcel(response, list, "用药记录数据");
}
/**
* 获取用药记录详细信息
*/
@ApiOperation(value="获取用药记录详细信息")
@RequiresPermissions("health:marRecord:query")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(healthMarRecordService.selectHealthMarRecordById(id));
}
/**
* 新增用药记录
*/
@ApiOperation(value="新增用药记录")
@RequiresPermissions("health:marRecord:add")
@Log(title = "用药记录", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody HealthMarRecord healthMarRecord)
{
return toAjax(healthMarRecordService.insertHealthMarRecord(healthMarRecord));
}
/**
* 修改用药记录
*/
@ApiOperation(value="修改用药记录")
@RequiresPermissions("health:marRecord:edit")
@Log(title = "用药记录", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody HealthMarRecord healthMarRecord)
{
return toAjax(healthMarRecordService.updateHealthMarRecord(healthMarRecord));
}
/**
* 删除用药记录
*/
@ApiOperation(value="删除用药记录")
@RequiresPermissions("health:marRecord:remove")
@Log(title = "用药记录", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(healthMarRecordService.deleteHealthMarRecordByIds(ids));
}
}

View File

@@ -0,0 +1,116 @@
package com.ruoyi.health.controller;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import javax.annotation.Resource;
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.log.annotation.Log;
import com.ruoyi.common.log.enums.BusinessType;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import com.ruoyi.health.domain.HealthPerson;
import com.ruoyi.health.domain.vo.HealthPersonVo;
import com.ruoyi.health.domain.dto.HealthPersonDto;
import com.ruoyi.health.service.IHealthPersonService;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.utils.poi.ExcelUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import com.ruoyi.common.core.web.page.TableDataInfo;
/**
* 成员管理Controller
*
* @author tianyongbao
* @date 2024-09-19
*/
@Api(tags=" 成员管理")
@RestController
@RequestMapping("/person")
public class HealthPersonController extends BaseController
{
@Resource
private IHealthPersonService healthPersonService;
/**
* 查询成员管理列表
*/
@ApiOperation(value="查询成员管理列表",response = HealthPersonVo.class)
@RequiresPermissions("health:person:list")
@GetMapping("/list")
public TableDataInfo list(HealthPersonDto healthPersonDto)
{
startPage();
List<HealthPersonVo> list = healthPersonService.selectHealthPersonList(healthPersonDto);
return getDataTable(list);
}
/**
* 导出成员管理列表
*/
@ApiOperation(value="导出成员管理列表")
@RequiresPermissions("health:person:export")
@Log(title = "成员管理", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, HealthPersonDto healthPersonDto)
{
List<HealthPersonVo> list = healthPersonService.selectHealthPersonList(healthPersonDto);
ExcelUtil<HealthPersonVo> util = new ExcelUtil<HealthPersonVo>(HealthPersonVo.class);
util.exportExcel(response, list, "成员管理数据");
}
/**
* 获取成员管理详细信息
*/
@ApiOperation(value="获取成员管理详细信息")
@RequiresPermissions("health:person:query")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(healthPersonService.selectHealthPersonById(id));
}
/**
* 新增成员管理
*/
@ApiOperation(value="新增成员管理")
@RequiresPermissions("health:person:add")
@Log(title = "成员管理", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody HealthPerson healthPerson)
{
return toAjax(healthPersonService.insertHealthPerson(healthPerson));
}
/**
* 修改成员管理
*/
@ApiOperation(value="修改成员管理")
@RequiresPermissions("health:person:edit")
@Log(title = "成员管理", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody HealthPerson healthPerson)
{
return toAjax(healthPersonService.updateHealthPerson(healthPerson));
}
/**
* 删除成员管理
*/
@ApiOperation(value="删除成员管理")
@RequiresPermissions("health:person:remove")
@Log(title = "成员管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(healthPersonService.deleteHealthPersonByIds(ids));
}
}

View File

@@ -0,0 +1,116 @@
package com.ruoyi.health.controller;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import javax.annotation.Resource;
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.log.annotation.Log;
import com.ruoyi.common.log.enums.BusinessType;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import com.ruoyi.health.domain.HealthRecord;
import com.ruoyi.health.domain.vo.HealthRecordVo;
import com.ruoyi.health.domain.dto.HealthRecordDto;
import com.ruoyi.health.service.IHealthRecordService;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.utils.poi.ExcelUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import com.ruoyi.common.core.web.page.TableDataInfo;
/**
* 健康档案Controller
*
* @author tianyongbao
* @date 2024-09-21
*/
@Api(tags=" 健康档案")
@RestController
@RequestMapping("/healthRecord")
public class HealthRecordController extends BaseController
{
@Resource
private IHealthRecordService healthRecordService;
/**
* 查询健康档案列表
*/
@ApiOperation(value="查询健康档案列表",response = HealthRecordVo.class)
@RequiresPermissions("health:healthRecord:list")
@GetMapping("/list")
public TableDataInfo list(HealthRecordDto healthRecordDto)
{
startPage();
List<HealthRecordVo> list = healthRecordService.selectHealthRecordList(healthRecordDto);
return getDataTable(list);
}
/**
* 导出健康档案列表
*/
@ApiOperation(value="导出健康档案列表")
@RequiresPermissions("health:healthRecord:export")
@Log(title = "健康档案", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, HealthRecordDto healthRecordDto)
{
List<HealthRecordVo> list = healthRecordService.selectHealthRecordList(healthRecordDto);
ExcelUtil<HealthRecordVo> util = new ExcelUtil<HealthRecordVo>(HealthRecordVo.class);
util.exportExcel(response, list, "健康档案数据");
}
/**
* 获取健康档案详细信息
*/
@ApiOperation(value="获取健康档案详细信息")
@RequiresPermissions("health:healthRecord:query")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(healthRecordService.selectHealthRecordById(id));
}
/**
* 新增健康档案
*/
@ApiOperation(value="新增健康档案")
@RequiresPermissions("health:healthRecord:add")
@Log(title = "健康档案", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody HealthRecord healthRecord)
{
return toAjax(healthRecordService.insertHealthRecord(healthRecord));
}
/**
* 修改健康档案
*/
@ApiOperation(value="修改健康档案")
@RequiresPermissions("health:healthRecord:edit")
@Log(title = "健康档案", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody HealthRecord healthRecord)
{
return toAjax(healthRecordService.updateHealthRecord(healthRecord));
}
/**
* 删除健康档案
*/
@ApiOperation(value="删除健康档案")
@RequiresPermissions("health:healthRecord:remove")
@Log(title = "健康档案", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(healthRecordService.deleteHealthRecordByIds(ids));
}
}

View File

@@ -0,0 +1,116 @@
package com.ruoyi.health.controller;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import javax.annotation.Resource;
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.log.annotation.Log;
import com.ruoyi.common.log.enums.BusinessType;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import com.ruoyi.health.domain.HealthTemperatureRecord;
import com.ruoyi.health.domain.vo.HealthTemperatureRecordVo;
import com.ruoyi.health.domain.dto.HealthTemperatureRecordDto;
import com.ruoyi.health.service.IHealthTemperatureRecordService;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.utils.poi.ExcelUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import com.ruoyi.common.core.web.page.TableDataInfo;
/**
* 体温记录Controller
*
* @author tianyongbao
* @date 2024-09-21
*/
@Api(tags=" 体温记录")
@RestController
@RequestMapping("/temperatureRecord")
public class HealthTemperatureRecordController extends BaseController
{
@Resource
private IHealthTemperatureRecordService healthTemperatureRecordService;
/**
* 查询体温记录列表
*/
@ApiOperation(value="查询体温记录列表",response = HealthTemperatureRecordVo.class)
@RequiresPermissions("health:temperatureRecord:list")
@GetMapping("/list")
public TableDataInfo list(HealthTemperatureRecordDto healthTemperatureRecordDto)
{
startPage();
List<HealthTemperatureRecordVo> list = healthTemperatureRecordService.selectHealthTemperatureRecordList(healthTemperatureRecordDto);
return getDataTable(list);
}
/**
* 导出体温记录列表
*/
@ApiOperation(value="导出体温记录列表")
@RequiresPermissions("health:temperatureRecord:export")
@Log(title = "体温记录", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, HealthTemperatureRecordDto healthTemperatureRecordDto)
{
List<HealthTemperatureRecordVo> list = healthTemperatureRecordService.selectHealthTemperatureRecordList(healthTemperatureRecordDto);
ExcelUtil<HealthTemperatureRecordVo> util = new ExcelUtil<HealthTemperatureRecordVo>(HealthTemperatureRecordVo.class);
util.exportExcel(response, list, "体温记录数据");
}
/**
* 获取体温记录详细信息
*/
@ApiOperation(value="获取体温记录详细信息")
@RequiresPermissions("health:temperatureRecord:query")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(healthTemperatureRecordService.selectHealthTemperatureRecordById(id));
}
/**
* 新增体温记录
*/
@ApiOperation(value="新增体温记录")
@RequiresPermissions("health:temperatureRecord:add")
@Log(title = "体温记录", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody HealthTemperatureRecord healthTemperatureRecord)
{
return toAjax(healthTemperatureRecordService.insertHealthTemperatureRecord(healthTemperatureRecord));
}
/**
* 修改体温记录
*/
@ApiOperation(value="修改体温记录")
@RequiresPermissions("health:temperatureRecord:edit")
@Log(title = "体温记录", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody HealthTemperatureRecord healthTemperatureRecord)
{
return toAjax(healthTemperatureRecordService.updateHealthTemperatureRecord(healthTemperatureRecord));
}
/**
* 删除体温记录
*/
@ApiOperation(value="删除体温记录")
@RequiresPermissions("health:temperatureRecord:remove")
@Log(title = "体温记录", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(healthTemperatureRecordService.deleteHealthTemperatureRecordByIds(ids));
}
}

View File

@@ -0,0 +1,116 @@
package com.ruoyi.health.controller;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import javax.annotation.Resource;
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.log.annotation.Log;
import com.ruoyi.common.log.enums.BusinessType;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import com.ruoyi.health.domain.HealthWeightRecord;
import com.ruoyi.health.domain.vo.HealthWeightRecordVo;
import com.ruoyi.health.domain.dto.HealthWeightRecordDto;
import com.ruoyi.health.service.IHealthWeightRecordService;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.utils.poi.ExcelUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import com.ruoyi.common.core.web.page.TableDataInfo;
/**
* 体重记录Controller
*
* @author tianyongbao
* @date 2024-09-21
*/
@Api(tags=" 体重记录")
@RestController
@RequestMapping("/weightRecord")
public class HealthWeightRecordController extends BaseController
{
@Resource
private IHealthWeightRecordService healthWeightRecordService;
/**
* 查询体重记录列表
*/
@ApiOperation(value="查询体重记录列表",response = HealthWeightRecordVo.class)
@RequiresPermissions("health:weightRecord:list")
@GetMapping("/list")
public TableDataInfo list(HealthWeightRecordDto healthWeightRecordDto)
{
startPage();
List<HealthWeightRecordVo> list = healthWeightRecordService.selectHealthWeightRecordList(healthWeightRecordDto);
return getDataTable(list);
}
/**
* 导出体重记录列表
*/
@ApiOperation(value="导出体重记录列表")
@RequiresPermissions("health:weightRecord:export")
@Log(title = "体重记录", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, HealthWeightRecordDto healthWeightRecordDto)
{
List<HealthWeightRecordVo> list = healthWeightRecordService.selectHealthWeightRecordList(healthWeightRecordDto);
ExcelUtil<HealthWeightRecordVo> util = new ExcelUtil<HealthWeightRecordVo>(HealthWeightRecordVo.class);
util.exportExcel(response, list, "体重记录数据");
}
/**
* 获取体重记录详细信息
*/
@ApiOperation(value="获取体重记录详细信息")
@RequiresPermissions("health:weightRecord:query")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(healthWeightRecordService.selectHealthWeightRecordById(id));
}
/**
* 新增体重记录
*/
@ApiOperation(value="新增体重记录")
@RequiresPermissions("health:weightRecord:add")
@Log(title = "体重记录", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody HealthWeightRecord healthWeightRecord)
{
return toAjax(healthWeightRecordService.insertHealthWeightRecord(healthWeightRecord));
}
/**
* 修改体重记录
*/
@ApiOperation(value="修改体重记录")
@RequiresPermissions("health:weightRecord:edit")
@Log(title = "体重记录", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody HealthWeightRecord healthWeightRecord)
{
return toAjax(healthWeightRecordService.updateHealthWeightRecord(healthWeightRecord));
}
/**
* 删除体重记录
*/
@ApiOperation(value="删除体重记录")
@RequiresPermissions("health:weightRecord:remove")
@Log(title = "体重记录", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(healthWeightRecordService.deleteHealthWeightRecordByIds(ids));
}
}

View File

@@ -0,0 +1,90 @@
package com.ruoyi.health.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.validation.constraints.NotNull;
import java.util.Date;
/**
* 就医记录对象 health_doctor_record
*
* @author tianyongbao
* @date 2024-09-21
*/
@ApiModel("就医记录对象")
@Data
public class HealthDoctorRecord extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 医院名称 */
@ApiModelProperty(value="医院名称)")
@NotNull(message="医院名称不能为空")
@Excel(name = "医院名称")
private String hospitalName;
/** 科室 */
@ApiModelProperty(value="科室)")
@NotNull(message="科室不能为空")
@Excel(name = "科室")
private String departments;
/** 大夫 */
@ApiModelProperty(value="大夫)")
@NotNull(message="大夫不能为空")
@Excel(name = "大夫")
private String doctor;
/** 删除标志0代表存在 1代表删除 */
private String delFlag;
/** 健康档案 */
private String healthRecordId;
/** 就诊时间 */
@ApiModelProperty(value="就诊时间)")
@NotNull(message="就诊时间不能为空")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "康复时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date visitingTime;
/** 诊断及用药 */
@ApiModelProperty(value="诊断及用药)")
@NotNull(message="诊断及用药不能为空")
@Excel(name = "诊断及用药")
private String prescribe;
/** 人员id */
@ApiModelProperty(value="人员id")
@Excel(name = "人员id")
private Long personId;
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("hospitalName", getHospitalName())
.append("departments", getDepartments())
.append("doctor", getDoctor())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("delFlag", getDelFlag())
.append("remark", getRemark())
.append("healthRecordId", getHealthRecordId())
.append("visitingTime", getVisitingTime())
.append("prescribe", getPrescribe())
.append("personId", getPersonId())
.toString();
}
}

View File

@@ -0,0 +1,96 @@
package com.ruoyi.health.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.validation.constraints.NotNull;
import java.util.Date;
/**
* 用药记录对象 health_mar_record
*
* @author tianyongbao
* @date 2024-09-21
*/
@ApiModel("用药记录对象")
@Data
public class HealthMarRecord extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 用药名称 */
@ApiModelProperty(value="用药名称)")
@NotNull(message="用药名称不能为空")
@Excel(name = "用药名称")
private String name;
/** 用药类型1退烧2消炎3止咳4止泻5抗病毒 */
@ApiModelProperty(value="用药类型)")
@NotNull(message="用药类型")
@Excel(name = "用药类型")
private String type;
/** 删除标志0代表存在 1代表删除 */
private String delFlag;
/** 主表ID */
private String healthRecordId;
/** 用药时间 */
@ApiModelProperty(value="用药时间)")
@NotNull(message="用药时间不能为空")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "康复时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date dosingTime;
/** 用药剂量 */
@ApiModelProperty(value="用药剂量)")
@NotNull(message="用药剂量不能为空")
@Excel(name = "用药剂量")
private String dosage;
/** 人员id */
@ApiModelProperty(value="人员id)")
@NotNull(message="人员id不能为空")
@Excel(name = "人员id")
private Long personId;
/** 药品来源 */
@ApiModelProperty(value="药品来源")
@Excel(name = "药品来源")
private String resource;
/** 用药地点 */
@ApiModelProperty(value="用药地点")
@Excel(name = "用药地点")
private String place;
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("type", getType())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("delFlag", getDelFlag())
.append("remark", getRemark())
.append("healthRecordId", getHealthRecordId())
.append("dosingTime", getDosingTime())
.append("dosage", getDosage())
.append("personId", getPersonId())
.append("resource", getResource())
.append("place", getPlace())
.toString();
}
}

View File

@@ -0,0 +1,84 @@
package com.ruoyi.health.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.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.*;
/**
* 成员管理对象 health_person
*
* @author tianyongbao
* @date 2024-09-19
*/
@ApiModel("成员管理对象")
@Data
public class HealthPerson extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 名称 */
@ApiModelProperty(value="名称)")
@NotNull(message="名称不能为空")
@Excel(name = "名称")
private String name;
/** 类型 */
@ApiModelProperty(value="类型)")
@NotNull(message="类型不能为空")
@Excel(name = "类型")
private String type;
/** 删除标志0代表存在 1代表删除 */
private String delFlag;
/** 生日 */
@ApiModelProperty(value="生日)")
@NotNull(message="生日不能为空")
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
private Date birthday;
/** 昵称 */
@ApiModelProperty(value="昵称)")
@NotNull(message="昵称不能为空")
@Excel(name = "昵称")
private String nickName;
/** 身高 */
@ApiModelProperty(value="身高")
@Excel(name = "身高")
private Double height;
/** 体重 */
@ApiModelProperty(value="体重")
@Excel(name = "体重")
private Double weight;
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("type", getType())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("delFlag", getDelFlag())
.append("remark", getRemark())
.append("birthday", getBirthday())
.append("nickName", getNickName())
.append("height", getHeight())
.append("weight", getWeight())
.toString();
}
}

View File

@@ -0,0 +1,111 @@
package com.ruoyi.health.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.validation.constraints.NotNull;
import java.util.Date;
/**
* 健康档案对象 health_record
*
* @author tianyongbao
* @date 2024-09-21
*/
@ApiModel("健康档案对象")
@Data
public class HealthRecord extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 档案名称 */
@ApiModelProperty(value="档案名称)")
@NotNull(message="档案名称不能为空")
@Excel(name = "档案名称")
private String name;
/** 类型 */
@ApiModelProperty(value="类型)")
@NotNull(message="类型不能为空")
@Excel(name = "类型")
private String type;
/** 状态 */
@ApiModelProperty(value="状态")
@Excel(name = "状态")
private String state;
/** 删除标志0代表存在 1代表删除 */
private String delFlag;
/** 发生时间 */
@ApiModelProperty(value="发生时间)")
@NotNull(message="发生时间不能为空")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "发生时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date occurTime;
/** 康复时间 */
@ApiModelProperty(value="康复时间)")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "康复时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date rehabilitationTime;
/** 初期症状 */
@ApiModelProperty(value="初期症状)")
@NotNull(message="初期症状不能为空")
@Excel(name = "初期症状")
private String initialSymptoms;
/** 中期症状 */
@ApiModelProperty(value="中期症状")
@Excel(name = "中期症状")
private String mediumTermSymptoms;
/** 后期症状 */
@ApiModelProperty(value="后期症状")
@Excel(name = "后期症状")
private String laterStageSymptoms;
/** 发生原因 */
@ApiModelProperty(value="发生原因)")
@NotNull(message="发生原因不能为空")
@Excel(name = "发生原因")
private String etiology;
/** 人员id */
@ApiModelProperty(value="人员id)")
@NotNull(message="人员id不能为空")
@Excel(name = "人员id")
private Long personId;
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("type", getType())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("delFlag", getDelFlag())
.append("remark", getRemark())
.append("occurTime", getOccurTime())
.append("rehabilitationTime", getRehabilitationTime())
.append("initialSymptoms", getInitialSymptoms())
.append("mediumTermSymptoms", getMediumTermSymptoms())
.append("laterStageSymptoms", getLaterStageSymptoms())
.append("etiology", getEtiology())
.append("personId", getPersonId())
.toString();
}
}

View File

@@ -0,0 +1,68 @@
package com.ruoyi.health.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.Date;
/**
* 体温记录对象 health_temperature_record
*
* @author tianyongbao
* @date 2024-09-21
*/
@ApiModel("体温记录对象")
@Data
public class HealthTemperatureRecord extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 删除标志0代表存在 1代表删除 */
private String delFlag;
/** 主表ID */
@ApiModelProperty(value="主表ID")
@Excel(name = "主表ID")
private Long healthRecordId;
/** 测量时间 */
@ApiModelProperty(value="测量时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "康复时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date measureTime;
/** 体温 */
@ApiModelProperty(value="体温")
@Excel(name = "体温")
private Double temperature;
/** 人员id */
@ApiModelProperty(value="人员id")
@Excel(name = "人员id")
private Long personId;
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("delFlag", getDelFlag())
.append("remark", getRemark())
.append("healthRecordId", getHealthRecordId())
.append("measureTime", getMeasureTime())
.append("temperature", getTemperature())
.append("personId", getPersonId())
.toString();
}
}

View File

@@ -0,0 +1,62 @@
package com.ruoyi.health.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.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.*;
/**
* 体重记录对象 health_weight_record
*
* @author tianyongbao
* @date 2024-09-21
*/
@ApiModel("体重记录对象")
@Data
public class HealthWeightRecord extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 删除标志0代表存在 1代表删除 */
private String delFlag;
/** 测量时间 */
@ApiModelProperty(value="测量时间")
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "测量时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date measureTime;
/** 体重 */
@ApiModelProperty(value="体重")
@Excel(name = "体重")
private Double weight;
/** 人员id */
@ApiModelProperty(value="人员id")
@Excel(name = "人员id")
private Long personId;
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("delFlag", getDelFlag())
.append("remark", getRemark())
.append("measureTime", getMeasureTime())
.append("weight", getWeight())
.append("personId", getPersonId())
.toString();
}
}

View File

@@ -0,0 +1,48 @@
package com.ruoyi.health.domain.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* 就医记录Dto对象 health_doctor_record
*
* @author tianyongbao
* @date 2024-09-21
*/
@ApiModel("就医记录Dto对象")
@Data
public class HealthDoctorRecordDto extends BaseEntity implements Serializable
{
private static final long serialVersionUID = 1L;
/** 医院名称 */
@ApiModelProperty(value="医院名称")
private String hospitalName;
/** 科室 */
@ApiModelProperty(value="科室")
private String departments;
/** 大夫 */
@ApiModelProperty(value="大夫")
private String doctor;
/** 健康档案 */
@ApiModelProperty(value="健康档案")
private String healthRecordId;
/** 就诊时间 */
@ApiModelProperty(value="就诊时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date visitingTime;
/** 人员id */
@ApiModelProperty(value="人员id")
private Long personId;
}

View File

@@ -0,0 +1,56 @@
package com.ruoyi.health.domain.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* 用药记录Dto对象 health_mar_record
*
* @author tianyongbao
* @date 2024-09-21
*/
@ApiModel("用药记录Dto对象")
@Data
public class HealthMarRecordDto extends BaseEntity implements Serializable
{
private static final long serialVersionUID = 1L;
/** 用药名称 */
@ApiModelProperty(value="用药名称")
private String name;
/** 用药类型1退烧2消炎3止咳4止泻5抗病毒 */
@ApiModelProperty(value="用药类型1退烧2消炎3止咳4止泻5抗病毒")
private String type;
/** 主表ID */
@ApiModelProperty(value="主表ID")
private String healthRecordId;
/** 用药时间 */
@ApiModelProperty(value="用药时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date dosingTime;
/** 用药剂量 */
@ApiModelProperty(value="用药剂量")
private String dosage;
/** 人员id */
@ApiModelProperty(value="人员id")
private Long personId;
/** 药品来源 */
@ApiModelProperty(value="药品来源")
private String resource;
/** 用药地点 */
@ApiModelProperty(value="用药地点")
private String place;
}

View File

@@ -0,0 +1,33 @@
package com.ruoyi.health.domain.dto;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* 成员管理Dto对象 health_person
*
* @author tianyongbao
* @date 2024-09-19
*/
@ApiModel("成员管理Dto对象")
@Data
public class HealthPersonDto extends BaseEntity implements Serializable
{
private static final long serialVersionUID = 1L;
/** 名称 */
@ApiModelProperty(value="名称")
private String name;
/** 类型 */
@ApiModelProperty(value="类型")
private String type;
/** 昵称 */
@ApiModelProperty(value="昵称")
private String nickName;
}

View File

@@ -0,0 +1,41 @@
package com.ruoyi.health.domain.dto;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* 健康档案Dto对象 health_record
*
* @author tianyongbao
* @date 2024-09-21
*/
@ApiModel("健康档案Dto对象")
@Data
public class HealthRecordDto extends BaseEntity implements Serializable
{
private static final long serialVersionUID = 1L;
/** 档案名称 */
@ApiModelProperty(value="档案名称")
private String name;
/** 类型 */
@ApiModelProperty(value="类型")
private String type;
/** 发生原因 */
@ApiModelProperty(value="发生原因")
private String etiology;
/** 人员id */
@ApiModelProperty(value="人员id")
private Long personId;
/** 状态 */
@ApiModelProperty(value="状态")
private String state;
}

View File

@@ -0,0 +1,39 @@
package com.ruoyi.health.domain.dto;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* 体温记录Dto对象 health_temperature_record
*
* @author tianyongbao
* @date 2024-09-21
*/
@ApiModel("体温记录Dto对象")
@Data
public class HealthTemperatureRecordDto extends BaseEntity implements Serializable
{
private static final long serialVersionUID = 1L;
/** 主表ID */
@ApiModelProperty(value="主表ID")
private Long healthRecordId;
/** 测量时间 */
@ApiModelProperty(value="测量时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date measureTime;
/** 体温 */
@ApiModelProperty(value="体温")
private Double temperature;
/** 人员id */
@ApiModelProperty(value="人员id")
private Long personId;
}

View File

@@ -0,0 +1,33 @@
package com.ruoyi.health.domain.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* 体重记录Dto对象 health_weight_record
*
* @author tianyongbao
* @date 2024-09-21
*/
@ApiModel("体重记录Dto对象")
@Data
public class HealthWeightRecordDto extends BaseEntity implements Serializable
{
private static final long serialVersionUID = 1L;
/** 人员id */
@ApiModelProperty(value="人员id")
private Long personId;
/** 测量时间 */
@ApiModelProperty(value="测量时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date measureTime;
}

View File

@@ -0,0 +1,28 @@
package com.ruoyi.health.domain.vo;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.health.domain.HealthDoctorRecord;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import io.swagger.annotations.ApiModel;
/**
* 就医记录Vo对象 health_doctor_record
*
* @author tianyongbao
* @date 2024-09-21
*/
@ApiModel("就医记录Vo对象")
@Data
public class HealthDoctorRecordVo extends HealthDoctorRecord
{
/** 人员名称 */
@ApiModelProperty(value="人员姓名)")
@Excel(name = "人员姓名")
private String personName;
/** 健康档案 */
@ApiModelProperty(value="健康档案)")
@Excel(name = "健康档案")
private String healthRecordName;
}

View File

@@ -0,0 +1,28 @@
package com.ruoyi.health.domain.vo;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.health.domain.HealthMarRecord;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import io.swagger.annotations.ApiModel;
/**
* 用药记录Vo对象 health_mar_record
*
* @author tianyongbao
* @date 2024-09-21
*/
@ApiModel("用药记录Vo对象")
@Data
public class HealthMarRecordVo extends HealthMarRecord
{
/** 人员名称 */
@ApiModelProperty(value="人员姓名)")
@Excel(name = "人员姓名")
private String personName;
/** 健康档案 */
@ApiModelProperty(value="健康档案)")
@Excel(name = "健康档案")
private String healthRecordName;
}

View File

@@ -0,0 +1,24 @@
package com.ruoyi.health.domain.vo;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.health.domain.HealthPerson;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* 成员管理Vo对象 health_person
*
* @author tianyongbao
* @date 2024-09-19
*/
@ApiModel("成员管理Vo对象")
@Data
public class HealthPersonVo extends HealthPerson
{
/** 年龄 */
@ApiModelProperty(value="年龄)")
@Excel(name = "年龄")
private String age;
}

View File

@@ -0,0 +1,24 @@
package com.ruoyi.health.domain.vo;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.health.domain.HealthRecord;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* 健康档案Vo对象 health_record
*
* @author tianyongbao
* @date 2024-09-21
*/
@ApiModel("健康档案Vo对象")
@Data
public class HealthRecordVo extends HealthRecord
{
/** 人员名称 */
@ApiModelProperty(value="人员姓名)")
@Excel(name = "人员姓名")
private String personName;
}

View File

@@ -0,0 +1,28 @@
package com.ruoyi.health.domain.vo;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.health.domain.HealthTemperatureRecord;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import io.swagger.annotations.ApiModel;
/**
* 体温记录Vo对象 health_temperature_record
*
* @author tianyongbao
* @date 2024-09-21
*/
@ApiModel("体温记录Vo对象")
@Data
public class HealthTemperatureRecordVo extends HealthTemperatureRecord
{
/** 人员名称 */
@ApiModelProperty(value="人员姓名)")
@Excel(name = "人员姓名")
private String personName;
/** 健康档案 */
@ApiModelProperty(value="健康档案)")
@Excel(name = "健康档案")
private String healthRecordName;
}

View File

@@ -0,0 +1,23 @@
package com.ruoyi.health.domain.vo;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.health.domain.HealthWeightRecord;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import io.swagger.annotations.ApiModel;
/**
* 体重记录Vo对象 health_weight_record
*
* @author tianyongbao
* @date 2024-09-21
*/
@ApiModel("体重记录Vo对象")
@Data
public class HealthWeightRecordVo extends HealthWeightRecord
{
/** 人员名称 */
@ApiModelProperty(value="人员姓名)")
@Excel(name = "人员姓名")
private String personName;
}

View File

@@ -0,0 +1,82 @@
package com.ruoyi.health.mapper;
import com.ruoyi.common.datascope.annotation.DataScope;
import com.ruoyi.health.domain.HealthDoctorRecord;
import com.ruoyi.health.domain.dto.HealthDoctorRecordDto;
import com.ruoyi.health.domain.vo.HealthDoctorRecordVo;
import java.util.List;
/**
* 就医记录Mapper接口
*
* @author tianyongbao
* @date 2024-09-21
*/
public interface HealthDoctorRecordMapper
{
/**
* 查询就医记录
*
* @param id 就医记录主键
* @return 就医记录
*/
public HealthDoctorRecordVo selectHealthDoctorRecordById(Long id);
/**
* 查询就医记录列表
*
* @param healthDoctorRecordDto 就医记录
* @return 就医记录集合
*/
@DataScope(businessAlias = "a")
public List<HealthDoctorRecordVo> selectHealthDoctorRecordList(HealthDoctorRecordDto healthDoctorRecordDto);
/**
* 新增就医记录
*
* @param healthDoctorRecord 就医记录
* @return 结果
*/
public int insertHealthDoctorRecord(HealthDoctorRecord healthDoctorRecord);
/**
* 修改就医记录
*
* @param healthDoctorRecord 就医记录
* @return 结果
*/
public int updateHealthDoctorRecord(HealthDoctorRecord healthDoctorRecord);
/**
* 删除就医记录
*
* @param id 就医记录主键
* @return 结果
*/
public int deleteHealthDoctorRecordById(Long id);
/**
* 批量删除就医记录
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteHealthDoctorRecordByIds(Long[] ids);
/**
* 逻辑删除就医记录
*
* @param id 就医记录主键
* @return 结果
*/
public int removeHealthDoctorRecordById(Long id);
/**
* 批量逻辑删除就医记录
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int removeHealthDoctorRecordByIds(Long[] ids);
}

View File

@@ -0,0 +1,82 @@
package com.ruoyi.health.mapper;
import com.ruoyi.common.datascope.annotation.DataScope;
import com.ruoyi.health.domain.HealthMarRecord;
import com.ruoyi.health.domain.dto.HealthMarRecordDto;
import com.ruoyi.health.domain.vo.HealthMarRecordVo;
import java.util.List;
/**
* 用药记录Mapper接口
*
* @author tianyongbao
* @date 2024-09-21
*/
public interface HealthMarRecordMapper
{
/**
* 查询用药记录
*
* @param id 用药记录主键
* @return 用药记录
*/
public HealthMarRecordVo selectHealthMarRecordById(Long id);
/**
* 查询用药记录列表
*
* @param healthMarRecordDto 用药记录
* @return 用药记录集合
*/
@DataScope(businessAlias = "a")
public List<HealthMarRecordVo> selectHealthMarRecordList(HealthMarRecordDto healthMarRecordDto);
/**
* 新增用药记录
*
* @param healthMarRecord 用药记录
* @return 结果
*/
public int insertHealthMarRecord(HealthMarRecord healthMarRecord);
/**
* 修改用药记录
*
* @param healthMarRecord 用药记录
* @return 结果
*/
public int updateHealthMarRecord(HealthMarRecord healthMarRecord);
/**
* 删除用药记录
*
* @param id 用药记录主键
* @return 结果
*/
public int deleteHealthMarRecordById(Long id);
/**
* 批量删除用药记录
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteHealthMarRecordByIds(Long[] ids);
/**
* 逻辑删除用药记录
*
* @param id 用药记录主键
* @return 结果
*/
public int removeHealthMarRecordById(Long id);
/**
* 批量逻辑删除用药记录
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int removeHealthMarRecordByIds(Long[] ids);
}

View File

@@ -0,0 +1,82 @@
package com.ruoyi.health.mapper;
import com.ruoyi.common.datascope.annotation.DataScope;
import com.ruoyi.health.domain.HealthPerson;
import com.ruoyi.health.domain.dto.HealthPersonDto;
import com.ruoyi.health.domain.vo.HealthPersonVo;
import java.util.List;
/**
* 成员管理Mapper接口
*
* @author tianyongbao
* @date 2024-09-19
*/
public interface HealthPersonMapper
{
/**
* 查询成员管理
*
* @param id 成员管理主键
* @return 成员管理
*/
public HealthPersonVo selectHealthPersonById(Long id);
/**
* 查询成员管理列表
*
* @param healthPersonDto 成员管理
* @return 成员管理集合
*/
@DataScope(businessAlias = "a")
public List<HealthPersonVo> selectHealthPersonList(HealthPersonDto healthPersonDto);
/**
* 新增成员管理
*
* @param healthPerson 成员管理
* @return 结果
*/
public int insertHealthPerson(HealthPerson healthPerson);
/**
* 修改成员管理
*
* @param healthPerson 成员管理
* @return 结果
*/
public int updateHealthPerson(HealthPerson healthPerson);
/**
* 删除成员管理
*
* @param id 成员管理主键
* @return 结果
*/
public int deleteHealthPersonById(Long id);
/**
* 批量删除成员管理
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteHealthPersonByIds(Long[] ids);
/**
* 逻辑删除成员管理
*
* @param id 成员管理主键
* @return 结果
*/
public int removeHealthPersonById(Long id);
/**
* 批量逻辑删除成员管理
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int removeHealthPersonByIds(Long[] ids);
}

View File

@@ -0,0 +1,82 @@
package com.ruoyi.health.mapper;
import com.ruoyi.common.datascope.annotation.DataScope;
import com.ruoyi.health.domain.HealthRecord;
import com.ruoyi.health.domain.dto.HealthRecordDto;
import com.ruoyi.health.domain.vo.HealthRecordVo;
import java.util.List;
/**
* 健康档案Mapper接口
*
* @author tianyongbao
* @date 2024-09-21
*/
public interface HealthRecordMapper
{
/**
* 查询健康档案
*
* @param id 健康档案主键
* @return 健康档案
*/
public HealthRecordVo selectHealthRecordById(Long id);
/**
* 查询健康档案列表
*
* @param healthRecordDto 健康档案
* @return 健康档案集合
*/
@DataScope(businessAlias = "a")
public List<HealthRecordVo> selectHealthRecordList(HealthRecordDto healthRecordDto);
/**
* 新增健康档案
*
* @param healthRecord 健康档案
* @return 结果
*/
public int insertHealthRecord(HealthRecord healthRecord);
/**
* 修改健康档案
*
* @param healthRecord 健康档案
* @return 结果
*/
public int updateHealthRecord(HealthRecord healthRecord);
/**
* 删除健康档案
*
* @param id 健康档案主键
* @return 结果
*/
public int deleteHealthRecordById(Long id);
/**
* 批量删除健康档案
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteHealthRecordByIds(Long[] ids);
/**
* 逻辑删除健康档案
*
* @param id 健康档案主键
* @return 结果
*/
public int removeHealthRecordById(Long id);
/**
* 批量逻辑删除健康档案
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int removeHealthRecordByIds(Long[] ids);
}

View File

@@ -0,0 +1,82 @@
package com.ruoyi.health.mapper;
import com.ruoyi.common.datascope.annotation.DataScope;
import com.ruoyi.health.domain.HealthTemperatureRecord;
import com.ruoyi.health.domain.dto.HealthTemperatureRecordDto;
import com.ruoyi.health.domain.vo.HealthTemperatureRecordVo;
import java.util.List;
/**
* 体温记录Mapper接口
*
* @author tianyongbao
* @date 2024-09-21
*/
public interface HealthTemperatureRecordMapper
{
/**
* 查询体温记录
*
* @param id 体温记录主键
* @return 体温记录
*/
public HealthTemperatureRecordVo selectHealthTemperatureRecordById(Long id);
/**
* 查询体温记录列表
*
* @param healthTemperatureRecordDto 体温记录
* @return 体温记录集合
*/
@DataScope(businessAlias = "a")
public List<HealthTemperatureRecordVo> selectHealthTemperatureRecordList(HealthTemperatureRecordDto healthTemperatureRecordDto);
/**
* 新增体温记录
*
* @param healthTemperatureRecord 体温记录
* @return 结果
*/
public int insertHealthTemperatureRecord(HealthTemperatureRecord healthTemperatureRecord);
/**
* 修改体温记录
*
* @param healthTemperatureRecord 体温记录
* @return 结果
*/
public int updateHealthTemperatureRecord(HealthTemperatureRecord healthTemperatureRecord);
/**
* 删除体温记录
*
* @param id 体温记录主键
* @return 结果
*/
public int deleteHealthTemperatureRecordById(Long id);
/**
* 批量删除体温记录
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteHealthTemperatureRecordByIds(Long[] ids);
/**
* 逻辑删除体温记录
*
* @param id 体温记录主键
* @return 结果
*/
public int removeHealthTemperatureRecordById(Long id);
/**
* 批量逻辑删除体温记录
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int removeHealthTemperatureRecordByIds(Long[] ids);
}

View File

@@ -0,0 +1,82 @@
package com.ruoyi.health.mapper;
import com.ruoyi.common.datascope.annotation.DataScope;
import com.ruoyi.health.domain.HealthWeightRecord;
import com.ruoyi.health.domain.dto.HealthWeightRecordDto;
import com.ruoyi.health.domain.vo.HealthWeightRecordVo;
import java.util.List;
/**
* 体重记录Mapper接口
*
* @author tianyongbao
* @date 2024-09-21
*/
public interface HealthWeightRecordMapper
{
/**
* 查询体重记录
*
* @param id 体重记录主键
* @return 体重记录
*/
public HealthWeightRecordVo selectHealthWeightRecordById(Long id);
/**
* 查询体重记录列表
*
* @param healthWeightRecordDto 体重记录
* @return 体重记录集合
*/
@DataScope(businessAlias = "a")
public List<HealthWeightRecordVo> selectHealthWeightRecordList(HealthWeightRecordDto healthWeightRecordDto);
/**
* 新增体重记录
*
* @param healthWeightRecord 体重记录
* @return 结果
*/
public int insertHealthWeightRecord(HealthWeightRecord healthWeightRecord);
/**
* 修改体重记录
*
* @param healthWeightRecord 体重记录
* @return 结果
*/
public int updateHealthWeightRecord(HealthWeightRecord healthWeightRecord);
/**
* 删除体重记录
*
* @param id 体重记录主键
* @return 结果
*/
public int deleteHealthWeightRecordById(Long id);
/**
* 批量删除体重记录
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteHealthWeightRecordByIds(Long[] ids);
/**
* 逻辑删除体重记录
*
* @param id 体重记录主键
* @return 结果
*/
public int removeHealthWeightRecordById(Long id);
/**
* 批量逻辑删除体重记录
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int removeHealthWeightRecordByIds(Long[] ids);
}

View File

@@ -0,0 +1,63 @@
package com.ruoyi.health.service;
import java.util.List;
import com.ruoyi.health.domain.HealthDoctorRecord;
import com.ruoyi.health.domain.dto.HealthDoctorRecordDto;
import com.ruoyi.health.domain.vo.HealthDoctorRecordVo;
/**
* 就医记录Service接口
*
* @author tianyongbao
* @date 2024-09-21
*/
public interface IHealthDoctorRecordService
{
/**
* 查询就医记录
*
* @param id 就医记录主键
* @return 就医记录
*/
public HealthDoctorRecordVo selectHealthDoctorRecordById(Long id);
/**
* 查询就医记录列表
*
* @param healthDoctorRecordDto 就医记录
* @return 就医记录集合
*/
public List<HealthDoctorRecordVo> selectHealthDoctorRecordList(HealthDoctorRecordDto healthDoctorRecordDto);
/**
* 新增就医记录
*
* @param healthDoctorRecord 就医记录
* @return 结果
*/
public int insertHealthDoctorRecord(HealthDoctorRecord healthDoctorRecord);
/**
* 修改就医记录
*
* @param healthDoctorRecord 就医记录
* @return 结果
*/
public int updateHealthDoctorRecord(HealthDoctorRecord healthDoctorRecord);
/**
* 批量删除就医记录
*
* @param ids 需要删除的就医记录主键集合
* @return 结果
*/
public int deleteHealthDoctorRecordByIds(Long[] ids);
/**
* 删除就医记录信息
*
* @param id 就医记录主键
* @return 结果
*/
public int deleteHealthDoctorRecordById(Long id);
}

View File

@@ -0,0 +1,63 @@
package com.ruoyi.health.service;
import java.util.List;
import com.ruoyi.health.domain.HealthMarRecord;
import com.ruoyi.health.domain.dto.HealthMarRecordDto;
import com.ruoyi.health.domain.vo.HealthMarRecordVo;
/**
* 用药记录Service接口
*
* @author tianyongbao
* @date 2024-09-21
*/
public interface IHealthMarRecordService
{
/**
* 查询用药记录
*
* @param id 用药记录主键
* @return 用药记录
*/
public HealthMarRecordVo selectHealthMarRecordById(Long id);
/**
* 查询用药记录列表
*
* @param healthMarRecordDto 用药记录
* @return 用药记录集合
*/
public List<HealthMarRecordVo> selectHealthMarRecordList(HealthMarRecordDto healthMarRecordDto);
/**
* 新增用药记录
*
* @param healthMarRecord 用药记录
* @return 结果
*/
public int insertHealthMarRecord(HealthMarRecord healthMarRecord);
/**
* 修改用药记录
*
* @param healthMarRecord 用药记录
* @return 结果
*/
public int updateHealthMarRecord(HealthMarRecord healthMarRecord);
/**
* 批量删除用药记录
*
* @param ids 需要删除的用药记录主键集合
* @return 结果
*/
public int deleteHealthMarRecordByIds(Long[] ids);
/**
* 删除用药记录信息
*
* @param id 用药记录主键
* @return 结果
*/
public int deleteHealthMarRecordById(Long id);
}

View File

@@ -0,0 +1,63 @@
package com.ruoyi.health.service;
import java.util.List;
import com.ruoyi.health.domain.HealthPerson;
import com.ruoyi.health.domain.dto.HealthPersonDto;
import com.ruoyi.health.domain.vo.HealthPersonVo;
/**
* 成员管理Service接口
*
* @author tianyongbao
* @date 2024-09-19
*/
public interface IHealthPersonService
{
/**
* 查询成员管理
*
* @param id 成员管理主键
* @return 成员管理
*/
public HealthPersonVo selectHealthPersonById(Long id);
/**
* 查询成员管理列表
*
* @param healthPersonDto 成员管理
* @return 成员管理集合
*/
public List<HealthPersonVo> selectHealthPersonList(HealthPersonDto healthPersonDto);
/**
* 新增成员管理
*
* @param healthPerson 成员管理
* @return 结果
*/
public int insertHealthPerson(HealthPerson healthPerson);
/**
* 修改成员管理
*
* @param healthPerson 成员管理
* @return 结果
*/
public int updateHealthPerson(HealthPerson healthPerson);
/**
* 批量删除成员管理
*
* @param ids 需要删除的成员管理主键集合
* @return 结果
*/
public int deleteHealthPersonByIds(Long[] ids);
/**
* 删除成员管理信息
*
* @param id 成员管理主键
* @return 结果
*/
public int deleteHealthPersonById(Long id);
}

View File

@@ -0,0 +1,63 @@
package com.ruoyi.health.service;
import java.util.List;
import com.ruoyi.health.domain.HealthRecord;
import com.ruoyi.health.domain.dto.HealthRecordDto;
import com.ruoyi.health.domain.vo.HealthRecordVo;
/**
* 健康档案Service接口
*
* @author tianyongbao
* @date 2024-09-21
*/
public interface IHealthRecordService
{
/**
* 查询健康档案
*
* @param id 健康档案主键
* @return 健康档案
*/
public HealthRecordVo selectHealthRecordById(Long id);
/**
* 查询健康档案列表
*
* @param healthRecordDto 健康档案
* @return 健康档案集合
*/
public List<HealthRecordVo> selectHealthRecordList(HealthRecordDto healthRecordDto);
/**
* 新增健康档案
*
* @param healthRecord 健康档案
* @return 结果
*/
public int insertHealthRecord(HealthRecord healthRecord);
/**
* 修改健康档案
*
* @param healthRecord 健康档案
* @return 结果
*/
public int updateHealthRecord(HealthRecord healthRecord);
/**
* 批量删除健康档案
*
* @param ids 需要删除的健康档案主键集合
* @return 结果
*/
public int deleteHealthRecordByIds(Long[] ids);
/**
* 删除健康档案信息
*
* @param id 健康档案主键
* @return 结果
*/
public int deleteHealthRecordById(Long id);
}

View File

@@ -0,0 +1,63 @@
package com.ruoyi.health.service;
import java.util.List;
import com.ruoyi.health.domain.HealthTemperatureRecord;
import com.ruoyi.health.domain.dto.HealthTemperatureRecordDto;
import com.ruoyi.health.domain.vo.HealthTemperatureRecordVo;
/**
* 体温记录Service接口
*
* @author tianyongbao
* @date 2024-09-21
*/
public interface IHealthTemperatureRecordService
{
/**
* 查询体温记录
*
* @param id 体温记录主键
* @return 体温记录
*/
public HealthTemperatureRecordVo selectHealthTemperatureRecordById(Long id);
/**
* 查询体温记录列表
*
* @param healthTemperatureRecordDto 体温记录
* @return 体温记录集合
*/
public List<HealthTemperatureRecordVo> selectHealthTemperatureRecordList(HealthTemperatureRecordDto healthTemperatureRecordDto);
/**
* 新增体温记录
*
* @param healthTemperatureRecord 体温记录
* @return 结果
*/
public int insertHealthTemperatureRecord(HealthTemperatureRecord healthTemperatureRecord);
/**
* 修改体温记录
*
* @param healthTemperatureRecord 体温记录
* @return 结果
*/
public int updateHealthTemperatureRecord(HealthTemperatureRecord healthTemperatureRecord);
/**
* 批量删除体温记录
*
* @param ids 需要删除的体温记录主键集合
* @return 结果
*/
public int deleteHealthTemperatureRecordByIds(Long[] ids);
/**
* 删除体温记录信息
*
* @param id 体温记录主键
* @return 结果
*/
public int deleteHealthTemperatureRecordById(Long id);
}

View File

@@ -0,0 +1,63 @@
package com.ruoyi.health.service;
import java.util.List;
import com.ruoyi.health.domain.HealthWeightRecord;
import com.ruoyi.health.domain.dto.HealthWeightRecordDto;
import com.ruoyi.health.domain.vo.HealthWeightRecordVo;
/**
* 体重记录Service接口
*
* @author tianyongbao
* @date 2024-09-21
*/
public interface IHealthWeightRecordService
{
/**
* 查询体重记录
*
* @param id 体重记录主键
* @return 体重记录
*/
public HealthWeightRecordVo selectHealthWeightRecordById(Long id);
/**
* 查询体重记录列表
*
* @param healthWeightRecordDto 体重记录
* @return 体重记录集合
*/
public List<HealthWeightRecordVo> selectHealthWeightRecordList(HealthWeightRecordDto healthWeightRecordDto);
/**
* 新增体重记录
*
* @param healthWeightRecord 体重记录
* @return 结果
*/
public int insertHealthWeightRecord(HealthWeightRecord healthWeightRecord);
/**
* 修改体重记录
*
* @param healthWeightRecord 体重记录
* @return 结果
*/
public int updateHealthWeightRecord(HealthWeightRecord healthWeightRecord);
/**
* 批量删除体重记录
*
* @param ids 需要删除的体重记录主键集合
* @return 结果
*/
public int deleteHealthWeightRecordByIds(Long[] ids);
/**
* 删除体重记录信息
*
* @param id 体重记录主键
* @return 结果
*/
public int deleteHealthWeightRecordById(Long id);
}

View File

@@ -0,0 +1,104 @@
package com.ruoyi.health.service.impl;
import com.ruoyi.common.core.utils.DateUtils;
import com.ruoyi.common.core.utils.IdWorker;
import com.ruoyi.common.security.utils.SecurityUtils;
import com.ruoyi.health.domain.HealthDoctorRecord;
import com.ruoyi.health.domain.dto.HealthDoctorRecordDto;
import com.ruoyi.health.domain.vo.HealthDoctorRecordVo;
import com.ruoyi.health.mapper.HealthDoctorRecordMapper;
import com.ruoyi.health.service.IHealthDoctorRecordService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* 就医记录Service业务层处理
*
* @author tianyongbao
* @date 2024-09-21
*/
@Service
public class HealthDoctorRecordServiceImpl implements IHealthDoctorRecordService
{
@Resource
private HealthDoctorRecordMapper healthDoctorRecordMapper;
/**
* 查询就医记录
*
* @param id 就医记录主键
* @return 就医记录
*/
@Override
public HealthDoctorRecordVo selectHealthDoctorRecordById(Long id)
{
return healthDoctorRecordMapper.selectHealthDoctorRecordById(id);
}
/**
* 查询就医记录列表
*
* @param healthDoctorRecordDto 就医记录
* @return 就医记录
*/
@Override
public List<HealthDoctorRecordVo> selectHealthDoctorRecordList(HealthDoctorRecordDto healthDoctorRecordDto)
{
return healthDoctorRecordMapper.selectHealthDoctorRecordList(healthDoctorRecordDto);
}
/**
* 新增就医记录
*
* @param healthDoctorRecord 就医记录
* @return 结果
*/
@Override
public int insertHealthDoctorRecord(HealthDoctorRecord healthDoctorRecord)
{
healthDoctorRecord.setCreateBy(SecurityUtils.getUsername());
healthDoctorRecord.setCreateTime(DateUtils.getNowDate());
healthDoctorRecord.setId(IdWorker.getId());
return healthDoctorRecordMapper.insertHealthDoctorRecord(healthDoctorRecord);
}
/**
* 修改就医记录
*
* @param healthDoctorRecord 就医记录
* @return 结果
*/
@Override
public int updateHealthDoctorRecord(HealthDoctorRecord healthDoctorRecord)
{
healthDoctorRecord.setUpdateBy(SecurityUtils.getUsername());
healthDoctorRecord.setUpdateTime(DateUtils.getNowDate());
return healthDoctorRecordMapper.updateHealthDoctorRecord(healthDoctorRecord);
}
/**
* 批量删除就医记录
*
* @param ids 需要删除的就医记录主键
* @return 结果
*/
@Override
public int deleteHealthDoctorRecordByIds(Long[] ids)
{
return healthDoctorRecordMapper.removeHealthDoctorRecordByIds(ids);
}
/**
* 删除就医记录信息
*
* @param id 就医记录主键
* @return 结果
*/
@Override
public int deleteHealthDoctorRecordById(Long id)
{
return healthDoctorRecordMapper.removeHealthDoctorRecordById(id);
}
}

View File

@@ -0,0 +1,104 @@
package com.ruoyi.health.service.impl;
import com.ruoyi.common.core.utils.DateUtils;
import com.ruoyi.common.core.utils.IdWorker;
import com.ruoyi.common.security.utils.SecurityUtils;
import com.ruoyi.health.domain.HealthMarRecord;
import com.ruoyi.health.domain.dto.HealthMarRecordDto;
import com.ruoyi.health.domain.vo.HealthMarRecordVo;
import com.ruoyi.health.mapper.HealthMarRecordMapper;
import com.ruoyi.health.service.IHealthMarRecordService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* 用药记录Service业务层处理
*
* @author tianyongbao
* @date 2024-09-21
*/
@Service
public class HealthMarRecordServiceImpl implements IHealthMarRecordService
{
@Resource
private HealthMarRecordMapper healthMarRecordMapper;
/**
* 查询用药记录
*
* @param id 用药记录主键
* @return 用药记录
*/
@Override
public HealthMarRecordVo selectHealthMarRecordById(Long id)
{
return healthMarRecordMapper.selectHealthMarRecordById(id);
}
/**
* 查询用药记录列表
*
* @param healthMarRecordDto 用药记录
* @return 用药记录
*/
@Override
public List<HealthMarRecordVo> selectHealthMarRecordList(HealthMarRecordDto healthMarRecordDto)
{
return healthMarRecordMapper.selectHealthMarRecordList(healthMarRecordDto);
}
/**
* 新增用药记录
*
* @param healthMarRecord 用药记录
* @return 结果
*/
@Override
public int insertHealthMarRecord(HealthMarRecord healthMarRecord)
{
healthMarRecord.setCreateBy(SecurityUtils.getUsername());
healthMarRecord.setCreateTime(DateUtils.getNowDate());
healthMarRecord.setId(IdWorker.getId());
return healthMarRecordMapper.insertHealthMarRecord(healthMarRecord);
}
/**
* 修改用药记录
*
* @param healthMarRecord 用药记录
* @return 结果
*/
@Override
public int updateHealthMarRecord(HealthMarRecord healthMarRecord)
{
healthMarRecord.setUpdateBy(SecurityUtils.getUsername());
healthMarRecord.setUpdateTime(DateUtils.getNowDate());
return healthMarRecordMapper.updateHealthMarRecord(healthMarRecord);
}
/**
* 批量删除用药记录
*
* @param ids 需要删除的用药记录主键
* @return 结果
*/
@Override
public int deleteHealthMarRecordByIds(Long[] ids)
{
return healthMarRecordMapper.removeHealthMarRecordByIds(ids);
}
/**
* 删除用药记录信息
*
* @param id 用药记录主键
* @return 结果
*/
@Override
public int deleteHealthMarRecordById(Long id)
{
return healthMarRecordMapper.removeHealthMarRecordById(id);
}
}

View File

@@ -0,0 +1,109 @@
package com.ruoyi.health.service.impl;
import com.ruoyi.common.core.utils.DateUtils;
import com.ruoyi.common.core.utils.IdWorker;
import com.ruoyi.common.security.utils.SecurityUtils;
import com.ruoyi.health.domain.HealthPerson;
import com.ruoyi.health.domain.dto.HealthPersonDto;
import com.ruoyi.health.domain.vo.HealthPersonVo;
import com.ruoyi.health.mapper.HealthPersonMapper;
import com.ruoyi.health.service.IHealthPersonService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* 成员管理Service业务层处理
*
* @author tianyongbao
* @date 2024-09-19
*/
@Service
public class HealthPersonServiceImpl implements IHealthPersonService
{
@Resource
private HealthPersonMapper healthPersonMapper;
/**
* 查询成员管理
*
* @param id 成员管理主键
* @return 成员管理
*/
@Override
public HealthPersonVo selectHealthPersonById(Long id)
{
return healthPersonMapper.selectHealthPersonById(id);
}
/**
* 查询成员管理列表
*
* @param healthPersonDto 成员管理
* @return 成员管理
*/
@Override
public List<HealthPersonVo> selectHealthPersonList(HealthPersonDto healthPersonDto)
{
List<HealthPersonVo> list=healthPersonMapper.selectHealthPersonList(healthPersonDto);
//修改子类别
for (HealthPersonVo person : list) {
person.setAge(DateUtils.getAgeByBirthday(person.getBirthday()));
}
return list;
}
/**
* 新增成员管理
*
* @param healthPerson 成员管理
* @return 结果
*/
@Override
public int insertHealthPerson(HealthPerson healthPerson)
{
healthPerson.setCreateBy(SecurityUtils.getUsername());
healthPerson.setCreateTime(DateUtils.getNowDate());
healthPerson.setId(IdWorker.getId());
return healthPersonMapper.insertHealthPerson(healthPerson);
}
/**
* 修改成员管理
*
* @param healthPerson 成员管理
* @return 结果
*/
@Override
public int updateHealthPerson(HealthPerson healthPerson)
{
healthPerson.setUpdateBy(SecurityUtils.getUsername());
healthPerson.setUpdateTime(DateUtils.getNowDate());
return healthPersonMapper.updateHealthPerson(healthPerson);
}
/**
* 批量删除成员管理
*
* @param ids 需要删除的成员管理主键
* @return 结果
*/
@Override
public int deleteHealthPersonByIds(Long[] ids)
{
return healthPersonMapper.removeHealthPersonByIds(ids);
}
/**
* 删除成员管理信息
*
* @param id 成员管理主键
* @return 结果
*/
@Override
public int deleteHealthPersonById(Long id)
{
return healthPersonMapper.removeHealthPersonById(id);
}
}

View File

@@ -0,0 +1,104 @@
package com.ruoyi.health.service.impl;
import com.ruoyi.common.core.utils.DateUtils;
import com.ruoyi.common.core.utils.IdWorker;
import com.ruoyi.common.security.utils.SecurityUtils;
import com.ruoyi.health.domain.HealthRecord;
import com.ruoyi.health.domain.dto.HealthRecordDto;
import com.ruoyi.health.domain.vo.HealthRecordVo;
import com.ruoyi.health.mapper.HealthRecordMapper;
import com.ruoyi.health.service.IHealthRecordService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* 健康档案Service业务层处理
*
* @author tianyongbao
* @date 2024-09-21
*/
@Service
public class HealthRecordServiceImpl implements IHealthRecordService
{
@Resource
private HealthRecordMapper healthRecordMapper;
/**
* 查询健康档案
*
* @param id 健康档案主键
* @return 健康档案
*/
@Override
public HealthRecordVo selectHealthRecordById(Long id)
{
return healthRecordMapper.selectHealthRecordById(id);
}
/**
* 查询健康档案列表
*
* @param healthRecordDto 健康档案
* @return 健康档案
*/
@Override
public List<HealthRecordVo> selectHealthRecordList(HealthRecordDto healthRecordDto)
{
return healthRecordMapper.selectHealthRecordList(healthRecordDto);
}
/**
* 新增健康档案
*
* @param healthRecord 健康档案
* @return 结果
*/
@Override
public int insertHealthRecord(HealthRecord healthRecord)
{
healthRecord.setCreateBy(SecurityUtils.getUsername());
healthRecord.setCreateTime(DateUtils.getNowDate());
healthRecord.setId(IdWorker.getId());
return healthRecordMapper.insertHealthRecord(healthRecord);
}
/**
* 修改健康档案
*
* @param healthRecord 健康档案
* @return 结果
*/
@Override
public int updateHealthRecord(HealthRecord healthRecord)
{
healthRecord.setUpdateBy(SecurityUtils.getUsername());
healthRecord.setUpdateTime(DateUtils.getNowDate());
return healthRecordMapper.updateHealthRecord(healthRecord);
}
/**
* 批量删除健康档案
*
* @param ids 需要删除的健康档案主键
* @return 结果
*/
@Override
public int deleteHealthRecordByIds(Long[] ids)
{
return healthRecordMapper.removeHealthRecordByIds(ids);
}
/**
* 删除健康档案信息
*
* @param id 健康档案主键
* @return 结果
*/
@Override
public int deleteHealthRecordById(Long id)
{
return healthRecordMapper.removeHealthRecordById(id);
}
}

View File

@@ -0,0 +1,104 @@
package com.ruoyi.health.service.impl;
import com.ruoyi.common.core.utils.DateUtils;
import com.ruoyi.common.core.utils.IdWorker;
import com.ruoyi.common.security.utils.SecurityUtils;
import com.ruoyi.health.domain.HealthTemperatureRecord;
import com.ruoyi.health.domain.dto.HealthTemperatureRecordDto;
import com.ruoyi.health.domain.vo.HealthTemperatureRecordVo;
import com.ruoyi.health.mapper.HealthTemperatureRecordMapper;
import com.ruoyi.health.service.IHealthTemperatureRecordService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* 体温记录Service业务层处理
*
* @author tianyongbao
* @date 2024-09-21
*/
@Service
public class HealthTemperatureRecordServiceImpl implements IHealthTemperatureRecordService
{
@Resource
private HealthTemperatureRecordMapper healthTemperatureRecordMapper;
/**
* 查询体温记录
*
* @param id 体温记录主键
* @return 体温记录
*/
@Override
public HealthTemperatureRecordVo selectHealthTemperatureRecordById(Long id)
{
return healthTemperatureRecordMapper.selectHealthTemperatureRecordById(id);
}
/**
* 查询体温记录列表
*
* @param healthTemperatureRecordDto 体温记录
* @return 体温记录
*/
@Override
public List<HealthTemperatureRecordVo> selectHealthTemperatureRecordList(HealthTemperatureRecordDto healthTemperatureRecordDto)
{
return healthTemperatureRecordMapper.selectHealthTemperatureRecordList(healthTemperatureRecordDto);
}
/**
* 新增体温记录
*
* @param healthTemperatureRecord 体温记录
* @return 结果
*/
@Override
public int insertHealthTemperatureRecord(HealthTemperatureRecord healthTemperatureRecord)
{
healthTemperatureRecord.setCreateBy(SecurityUtils.getUsername());
healthTemperatureRecord.setCreateTime(DateUtils.getNowDate());
healthTemperatureRecord.setId(IdWorker.getId());
return healthTemperatureRecordMapper.insertHealthTemperatureRecord(healthTemperatureRecord);
}
/**
* 修改体温记录
*
* @param healthTemperatureRecord 体温记录
* @return 结果
*/
@Override
public int updateHealthTemperatureRecord(HealthTemperatureRecord healthTemperatureRecord)
{
healthTemperatureRecord.setUpdateBy(SecurityUtils.getUsername());
healthTemperatureRecord.setUpdateTime(DateUtils.getNowDate());
return healthTemperatureRecordMapper.updateHealthTemperatureRecord(healthTemperatureRecord);
}
/**
* 批量删除体温记录
*
* @param ids 需要删除的体温记录主键
* @return 结果
*/
@Override
public int deleteHealthTemperatureRecordByIds(Long[] ids)
{
return healthTemperatureRecordMapper.removeHealthTemperatureRecordByIds(ids);
}
/**
* 删除体温记录信息
*
* @param id 体温记录主键
* @return 结果
*/
@Override
public int deleteHealthTemperatureRecordById(Long id)
{
return healthTemperatureRecordMapper.removeHealthTemperatureRecordById(id);
}
}

View File

@@ -0,0 +1,104 @@
package com.ruoyi.health.service.impl;
import com.ruoyi.common.core.utils.DateUtils;
import com.ruoyi.common.core.utils.IdWorker;
import com.ruoyi.common.security.utils.SecurityUtils;
import com.ruoyi.health.domain.HealthWeightRecord;
import com.ruoyi.health.domain.dto.HealthWeightRecordDto;
import com.ruoyi.health.domain.vo.HealthWeightRecordVo;
import com.ruoyi.health.mapper.HealthWeightRecordMapper;
import com.ruoyi.health.service.IHealthWeightRecordService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* 体重记录Service业务层处理
*
* @author tianyongbao
* @date 2024-09-21
*/
@Service
public class HealthWeightRecordServiceImpl implements IHealthWeightRecordService
{
@Resource
private HealthWeightRecordMapper healthWeightRecordMapper;
/**
* 查询体重记录
*
* @param id 体重记录主键
* @return 体重记录
*/
@Override
public HealthWeightRecordVo selectHealthWeightRecordById(Long id)
{
return healthWeightRecordMapper.selectHealthWeightRecordById(id);
}
/**
* 查询体重记录列表
*
* @param healthWeightRecordDto 体重记录
* @return 体重记录
*/
@Override
public List<HealthWeightRecordVo> selectHealthWeightRecordList(HealthWeightRecordDto healthWeightRecordDto)
{
return healthWeightRecordMapper.selectHealthWeightRecordList(healthWeightRecordDto);
}
/**
* 新增体重记录
*
* @param healthWeightRecord 体重记录
* @return 结果
*/
@Override
public int insertHealthWeightRecord(HealthWeightRecord healthWeightRecord)
{
healthWeightRecord.setCreateBy(SecurityUtils.getUsername());
healthWeightRecord.setCreateTime(DateUtils.getNowDate());
healthWeightRecord.setId(IdWorker.getId());
return healthWeightRecordMapper.insertHealthWeightRecord(healthWeightRecord);
}
/**
* 修改体重记录
*
* @param healthWeightRecord 体重记录
* @return 结果
*/
@Override
public int updateHealthWeightRecord(HealthWeightRecord healthWeightRecord)
{
healthWeightRecord.setUpdateBy(SecurityUtils.getUsername());
healthWeightRecord.setUpdateTime(DateUtils.getNowDate());
return healthWeightRecordMapper.updateHealthWeightRecord(healthWeightRecord);
}
/**
* 批量删除体重记录
*
* @param ids 需要删除的体重记录主键
* @return 结果
*/
@Override
public int deleteHealthWeightRecordByIds(Long[] ids)
{
return healthWeightRecordMapper.removeHealthWeightRecordByIds(ids);
}
/**
* 删除体重记录信息
*
* @param id 体重记录主键
* @return 结果
*/
@Override
public int deleteHealthWeightRecordById(Long id)
{
return healthWeightRecordMapper.removeHealthWeightRecordById(id);
}
}

View File

@@ -0,0 +1,8 @@
Spring Boot Version: ${spring-boot.version}
Spring Application Name: ${spring.application.name}
_ _ _ __ _ _ _
___ _ __ __ _ _ _ | |_ o O O | | (_) / _` | | |_ | |_
(_-< | ' \ / _` | | '_| | _| o | | | | \__, | | ' \ | _|
/__/_ |_|_|_| \__,_| _|_|_ _\__| TS__[O] _|_|_ _|_|_ |___/ |_||_| _\__|
_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| {======|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|
"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'./o--000'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'

View File

@@ -0,0 +1,41 @@
# Tomcat
server:
max-http-header-size: 4048576
port: 9228
tomcat:
max-http-form-post-size: -1
# Spring
spring:
application:
# 应用名称
name: intc-health
profiles:
# 环境配置
active: dev
servlet:
multipart:
enabled: true
max-file-size: -1
max-request-size: -1
cloud:
nacos:
discovery:
namespace: 6ff354f8-471d-46ef-bd30-b81588a009cd
# 服务注册地址
server-addr: 101.126.95.100:8858
group: dev
# ip: 8.140.22.151
config:
namespace: 6ff354f8-471d-46ef-bd30-b81588a009cd
# 配置中心地址
server-addr: 101.126.95.100:8858
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
# 用于服务监控可在线查看日志,该配置用于生产环境
logging:
file:
name: logs/${spring.application.name}/info.log

View File

@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="60 seconds" debug="false">
<!-- 日志存放路径 -->
<property name="log.path" value="logs/hny-smart-light" />
<!-- 日志输出格式 -->
<property name="log.pattern" value="%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
<!-- 控制台输出 -->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<!-- 系统日志输出 -->
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/info.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/info.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>INFO</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/error.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/error.%d{yyyy-MM}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>ERROR</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 系统模块日志级别控制 -->
<logger name="com.ruoyi" level="info" />
<!-- Spring日志级别控制 -->
<logger name="org.springframework" level="warn" />
<root level="info">
<appender-ref ref="console" />
</root>
<!--系统操作日志-->
<root level="info">
<appender-ref ref="file_info" />
<appender-ref ref="file_error" />
</root>
</configuration>

View File

@@ -0,0 +1,149 @@
<?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.health.mapper.HealthDoctorRecordMapper">
<resultMap type="HealthDoctorRecordVo" id="HealthDoctorRecordResult">
<result property="id" column="id" />
<result property="hospitalName" column="hospital_name" />
<result property="departments" column="departments" />
<result property="doctor" column="doctor" />
<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="delFlag" column="del_flag" />
<result property="remark" column="remark" />
<result property="healthRecordId" column="health_record_id" />
<result property="visitingTime" column="visiting_time" />
<result property="prescribe" column="prescribe" />
<result property="personId" column="person_id" />
<result property="personName" column="person_name" />
<result property="healthRecordName" column="health_record_name" />
</resultMap>
<sql id="selectHealthDoctorRecordVo">
select
a.id,
a.hospital_name,
a.departments,
a.doctor,
a.create_by,
a.create_time,
a.update_by,
a.update_time,
a.del_flag,
a.remark,
a.health_record_id,
a.visiting_time,
a.prescribe,
a.person_id,
hp."name" as person_name ,
hr."name" as health_record_name
from
health_doctor_record a
left join health_person hp on
hp.id = a.person_id
left join health_record hr on
hr.id = a.health_record_id
</sql>
<select id="selectHealthDoctorRecordList" parameterType="HealthDoctorRecordDto" resultMap="HealthDoctorRecordResult">
<include refid="selectHealthDoctorRecordVo"/>
<where>
a.del_flag='0'
<if test="hospitalName != null and hospitalName != ''"> and a.hospital_name like '%'|| #{hospitalName}||'%'</if>
<if test="departments != null and departments != ''"> and a.departments = #{departments}</if>
<if test="doctor != null and doctor != ''"> and a.doctor = #{doctor}</if>
<if test="healthRecordId != null and healthRecordId != ''"> and a.health_record_id = #{healthRecordId}</if>
<if test="visitingTime != null "> and a.visiting_time = #{visitingTime}</if>
<if test="personId != null "> and a.person_id = #{personId}</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
order by a.create_time desc
</select>
<select id="selectHealthDoctorRecordById" parameterType="Long" resultMap="HealthDoctorRecordResult">
<include refid="selectHealthDoctorRecordVo"/>
where a.id = #{id}
</select>
<insert id="insertHealthDoctorRecord" parameterType="HealthDoctorRecord">
insert into health_doctor_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="hospitalName != null and hospitalName != ''">hospital_name,</if>
<if test="departments != null and departments != ''">departments,</if>
<if test="doctor != null and doctor != ''">doctor,</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="delFlag != null">del_flag,</if>
<if test="remark != null">remark,</if>
<if test="healthRecordId != null and healthRecordId != ''">health_record_id,</if>
<if test="visitingTime != null">visiting_time,</if>
<if test="prescribe != null and prescribe != ''">prescribe,</if>
<if test="personId != null">person_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="hospitalName != null and hospitalName != ''">#{hospitalName},</if>
<if test="departments != null and departments != ''">#{departments},</if>
<if test="doctor != null and doctor != ''">#{doctor},</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="delFlag != null">#{delFlag},</if>
<if test="remark != null">#{remark},</if>
<if test="healthRecordId != null and healthRecordId != ''">#{healthRecordId},</if>
<if test="visitingTime != null">#{visitingTime},</if>
<if test="prescribe != null and prescribe != ''">#{prescribe},</if>
<if test="personId != null">#{personId},</if>
</trim>
</insert>
<update id="updateHealthDoctorRecord" parameterType="HealthDoctorRecord">
update health_doctor_record
<trim prefix="SET" suffixOverrides=",">
<if test="hospitalName != null and hospitalName != ''">hospital_name = #{hospitalName},</if>
<if test="departments != null and departments != ''">departments = #{departments},</if>
<if test="doctor != null and doctor != ''">doctor = #{doctor},</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="delFlag != null">del_flag = #{delFlag},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="healthRecordId != null and healthRecordId != ''">health_record_id = #{healthRecordId},</if>
<if test="visitingTime != null">visiting_time = #{visitingTime},</if>
<if test="prescribe != null and prescribe != ''">prescribe = #{prescribe},</if>
<if test="personId != null">person_id = #{personId},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteHealthDoctorRecordById" parameterType="Long">
delete from health_doctor_record where id = #{id}
</delete>
<delete id="deleteHealthDoctorRecordByIds" parameterType="String">
delete from health_doctor_record where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<update id="removeHealthDoctorRecordById" parameterType="Long">
update health_doctor_record set del_flag='1' where id = #{id}
</update>
<update id="removeHealthDoctorRecordByIds" parameterType="String">
update health_doctor_record set del_flag='1' where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</update>
</mapper>

View File

@@ -0,0 +1,157 @@
<?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.health.mapper.HealthMarRecordMapper">
<resultMap type="HealthMarRecordVo" id="HealthMarRecordResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="type" column="type" />
<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="delFlag" column="del_flag" />
<result property="remark" column="remark" />
<result property="healthRecordId" column="health_record_id" />
<result property="dosingTime" column="dosing_time" />
<result property="dosage" column="dosage" />
<result property="personId" column="person_id" />
<result property="resource" column="resource" />
<result property="place" column="place" />
<result property="personName" column="person_name" />
<result property="healthRecordName" column="health_record_name" />
</resultMap>
<sql id="selectHealthMarRecordVo">
select
a.id,
a.name,
a.type,
a.create_by,
a.create_time,
a.update_by,
a.update_time,
a.del_flag,
a.remark,
a.health_record_id,
a.dosing_time,
a.dosage,
a.person_id,
a.resource,
a.place,
hp."name" as person_name ,
hr."name" as health_record_name
from
health_mar_record a
left join health_person hp on
hp.id = a.person_id
left join health_record hr on
hr.id = a.health_record_id
</sql>
<select id="selectHealthMarRecordList" parameterType="HealthMarRecordDto" resultMap="HealthMarRecordResult">
<include refid="selectHealthMarRecordVo"/>
<where>
a.del_flag='0'
<if test="name != null and name != ''"> and a.name like '%'|| #{name}||'%'</if>
<if test="type != null and type != ''"> and a.type = #{type}</if>
<if test="healthRecordId != null and healthRecordId != ''"> and a.health_record_id = #{healthRecordId}</if>
<if test="dosingTime != null "> and a.dosing_time = #{dosingTime}</if>
<if test="dosage != null and dosage != ''"> and a.dosage = #{dosage}</if>
<if test="personId != null "> and a.person_id = #{personId}</if>
<if test="resource != null and resource != ''"> and a.resource = #{resource}</if>
<if test="place != null and place != ''"> and a.place = #{place}</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
order by a.create_time desc
</select>
<select id="selectHealthMarRecordById" parameterType="Long" resultMap="HealthMarRecordResult">
<include refid="selectHealthMarRecordVo"/>
where a.id = #{id}
</select>
<insert id="insertHealthMarRecord" parameterType="HealthMarRecord">
insert into health_mar_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="name != null and name != ''">name,</if>
<if test="type != null and type != ''">type,</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="delFlag != null">del_flag,</if>
<if test="remark != null">remark,</if>
<if test="healthRecordId != null">health_record_id,</if>
<if test="dosingTime != null">dosing_time,</if>
<if test="dosage != null and dosage != ''">dosage,</if>
<if test="personId != null">person_id,</if>
<if test="resource != null">resource,</if>
<if test="place != null">place,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="name != null and name != ''">#{name},</if>
<if test="type != null and type != ''">#{type},</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="delFlag != null">#{delFlag},</if>
<if test="remark != null">#{remark},</if>
<if test="healthRecordId != null">#{healthRecordId},</if>
<if test="dosingTime != null">#{dosingTime},</if>
<if test="dosage != null and dosage != ''">#{dosage},</if>
<if test="personId != null">#{personId},</if>
<if test="resource != null">#{resource},</if>
<if test="place != null">#{place},</if>
</trim>
</insert>
<update id="updateHealthMarRecord" parameterType="HealthMarRecord">
update health_mar_record
<trim prefix="SET" suffixOverrides=",">
<if test="name != null and name != ''">name = #{name},</if>
<if test="type != null and type != ''">type = #{type},</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="delFlag != null">del_flag = #{delFlag},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="healthRecordId != null">health_record_id = #{healthRecordId},</if>
<if test="dosingTime != null">dosing_time = #{dosingTime},</if>
<if test="dosage != null and dosage != ''">dosage = #{dosage},</if>
<if test="personId != null">person_id = #{personId},</if>
<if test="resource != null">resource = #{resource},</if>
<if test="place != null">place = #{place},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteHealthMarRecordById" parameterType="Long">
delete from health_mar_record where id = #{id}
</delete>
<delete id="deleteHealthMarRecordByIds" parameterType="String">
delete from health_mar_record where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<update id="removeHealthMarRecordById" parameterType="Long">
update health_mar_record set del_flag='1' where id = #{id}
</update>
<update id="removeHealthMarRecordByIds" parameterType="String">
update health_mar_record set del_flag='1' where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</update>
</mapper>

View File

@@ -0,0 +1,118 @@
<?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.health.mapper.HealthPersonMapper">
<resultMap type="HealthPersonVo" id="HealthPersonResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="type" column="type" />
<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="delFlag" column="del_flag" />
<result property="remark" column="remark" />
<result property="birthday" column="birthday" />
<result property="nickName" column="nick_name" />
<result property="height" column="height" />
<result property="weight" column="weight" />
</resultMap>
<sql id="selectHealthPersonVo">
select a.id, a.name, a.type, a.create_by, a.create_time, a.update_by, a.update_time, a.del_flag, a.remark, a.birthday, a.nick_name, a.height, a.weight from health_person a
</sql>
<select id="selectHealthPersonList" parameterType="HealthPersonDto" resultMap="HealthPersonResult">
<include refid="selectHealthPersonVo"/>
<where>
a.del_flag='0'
<if test="name != null and name != ''"> and a.name like '%'|| #{name}||'%'</if>
<if test="type != null and type != ''"> and a.type = #{type}</if>
<if test="nickName != null and nickName != ''"> and a.nick_name like '%'|| #{nickName}||'%'</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
order by a.create_time desc
</select>
<select id="selectHealthPersonById" parameterType="Long" resultMap="HealthPersonResult">
<include refid="selectHealthPersonVo"/>
where a.id = #{id}
</select>
<insert id="insertHealthPerson" parameterType="HealthPerson">
insert into health_person
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="name != null and name != ''">name,</if>
<if test="type != null and type != ''">type,</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="delFlag != null">del_flag,</if>
<if test="remark != null">remark,</if>
<if test="birthday != null">birthday,</if>
<if test="nickName != null and nickName != ''">nick_name,</if>
<if test="height != null">height,</if>
<if test="weight != null">weight,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="name != null and name != ''">#{name},</if>
<if test="type != null and type != ''">#{type},</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="delFlag != null">#{delFlag},</if>
<if test="remark != null">#{remark},</if>
<if test="birthday != null">#{birthday},</if>
<if test="nickName != null and nickName != ''">#{nickName},</if>
<if test="height != null">#{height},</if>
<if test="weight != null">#{weight},</if>
</trim>
</insert>
<update id="updateHealthPerson" parameterType="HealthPerson">
update health_person
<trim prefix="SET" suffixOverrides=",">
<if test="name != null and name != ''">name = #{name},</if>
<if test="type != null and type != ''">type = #{type},</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="delFlag != null">del_flag = #{delFlag},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="birthday != null">birthday = #{birthday},</if>
<if test="nickName != null and nickName != ''">nick_name = #{nickName},</if>
<if test="height != null">height = #{height},</if>
<if test="weight != null">weight = #{weight},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteHealthPersonById" parameterType="Long">
delete from health_person where id = #{id}
</delete>
<delete id="deleteHealthPersonByIds" parameterType="String">
delete from health_person where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<update id="removeHealthPersonById" parameterType="Long">
update health_person set del_flag='1' where id = #{id}
</update>
<update id="removeHealthPersonByIds" parameterType="String">
update health_person set del_flag='1' where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</update>
</mapper>

View File

@@ -0,0 +1,159 @@
<?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.health.mapper.HealthRecordMapper">
<resultMap type="HealthRecordVo" id="HealthRecordResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="type" column="type" />
<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="delFlag" column="del_flag" />
<result property="remark" column="remark" />
<result property="occurTime" column="occur_time" />
<result property="rehabilitationTime" column="rehabilitation_time" />
<result property="initialSymptoms" column="initial_symptoms" />
<result property="mediumTermSymptoms" column="medium_term_symptoms" />
<result property="laterStageSymptoms" column="later_stage_symptoms" />
<result property="etiology" column="etiology" />
<result property="personId" column="person_id" />
<result property="state" column="state" />
<result property="personName" column="person_name" />
</resultMap>
<sql id="selectHealthRecordVo">
select
a.id,
a.name,
a.type,
a.create_by,
a.create_time,
a.update_by,
a.update_time,
a.del_flag,
a.remark,
a.occur_time,
a.rehabilitation_time,
a.initial_symptoms,
a.medium_term_symptoms,
a.later_stage_symptoms,
a.etiology,
a.person_id,
a.state,
hp."name" as person_name
from
health_record a
left join health_person hp on
hp.id = a.person_id
</sql>
<select id="selectHealthRecordList" parameterType="HealthRecordDto" resultMap="HealthRecordResult">
<include refid="selectHealthRecordVo"/>
<where>
a.del_flag='0'
<if test="name != null and name != ''"> and a.name like '%'|| #{name}||'%'</if>
<if test="type != null and type != ''"> and a.type = #{type}</if>
<if test="state != null and state != ''"> and a.state = #{state}</if>
<if test="etiology != null and etiology != ''"> and a.etiology = #{etiology}</if>
<if test="personId != null "> and a.person_id = #{personId}</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
order by a.create_time desc
</select>
<select id="selectHealthRecordById" parameterType="Long" resultMap="HealthRecordResult">
<include refid="selectHealthRecordVo"/>
where a.id = #{id}
</select>
<insert id="insertHealthRecord" parameterType="HealthRecord">
insert into health_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="name != null and name != ''">name,</if>
<if test="type != null and type != ''">type,</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="delFlag != null">del_flag,</if>
<if test="remark != null">remark,</if>
<if test="occurTime != null">occur_time,</if>
<if test="rehabilitationTime != null">rehabilitation_time,</if>
<if test="initialSymptoms != null and initialSymptoms != ''">initial_symptoms,</if>
<if test="mediumTermSymptoms != null">medium_term_symptoms,</if>
<if test="laterStageSymptoms != null">later_stage_symptoms,</if>
<if test="etiology != null and etiology != ''">etiology,</if>
<if test="personId != null">person_id,</if>
<if test="state != null">state,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="name != null and name != ''">#{name},</if>
<if test="type != null and type != ''">#{type},</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="delFlag != null">#{delFlag},</if>
<if test="remark != null">#{remark},</if>
<if test="occurTime != null">#{occurTime},</if>
<if test="rehabilitationTime != null">#{rehabilitationTime},</if>
<if test="initialSymptoms != null and initialSymptoms != ''">#{initialSymptoms},</if>
<if test="mediumTermSymptoms != null">#{mediumTermSymptoms},</if>
<if test="laterStageSymptoms != null">#{laterStageSymptoms},</if>
<if test="etiology != null and etiology != ''">#{etiology},</if>
<if test="personId != null">#{personId},</if>
<if test="state != null">#{state},</if>
</trim>
</insert>
<update id="updateHealthRecord" parameterType="HealthRecord">
update health_record
<trim prefix="SET" suffixOverrides=",">
<if test="name != null and name != ''">name = #{name},</if>
<if test="type != null and type != ''">type = #{type},</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="delFlag != null">del_flag = #{delFlag},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="occurTime != null">occur_time = #{occurTime},</if>
<if test="rehabilitationTime != null">rehabilitation_time = #{rehabilitationTime},</if>
<if test="initialSymptoms != null and initialSymptoms != ''">initial_symptoms = #{initialSymptoms},</if>
<if test="mediumTermSymptoms != null">medium_term_symptoms = #{mediumTermSymptoms},</if>
<if test="laterStageSymptoms != null">later_stage_symptoms = #{laterStageSymptoms},</if>
<if test="etiology != null and etiology != ''">etiology = #{etiology},</if>
<if test="personId != null">person_id = #{personId},</if>
<if test="state != null">state = #{state},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteHealthRecordById" parameterType="Long">
delete from health_record where id = #{id}
</delete>
<delete id="deleteHealthRecordByIds" parameterType="String">
delete from health_record where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<update id="removeHealthRecordById" parameterType="Long">
update health_record set del_flag='1' where id = #{id}
</update>
<update id="removeHealthRecordByIds" parameterType="String">
update health_record set del_flag='1' where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</update>
</mapper>

View File

@@ -0,0 +1,132 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.health.mapper.HealthTemperatureRecordMapper">
<resultMap type="HealthTemperatureRecordVo" id="HealthTemperatureRecordResult">
<result property="id" column="id" />
<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="delFlag" column="del_flag" />
<result property="remark" column="remark" />
<result property="healthRecordId" column="health_record_id" />
<result property="measureTime" column="measure_time" />
<result property="temperature" column="temperature" />
<result property="personId" column="person_id" />
<result property="personName" column="person_name" />
<result property="healthRecordName" column="health_record_name" />
</resultMap>
<sql id="selectHealthTemperatureRecordVo">
select
a.id,
a.create_by,
a.create_time,
a.update_by,
a.update_time,
a.del_flag,
a.remark,
a.health_record_id,
a.measure_time,
a.temperature,
a.person_id,
hp."name" as person_name ,
hr."name" as health_record_name
from
health_temperature_record a
left join health_person hp on
hp.id = a.person_id
left join health_record hr on
hr.id = a.health_record_id
</sql>
<select id="selectHealthTemperatureRecordList" parameterType="HealthTemperatureRecordDto" resultMap="HealthTemperatureRecordResult">
<include refid="selectHealthTemperatureRecordVo"/>
<where>
a.del_flag='0'
<if test="healthRecordId != null "> and a.health_record_id = #{healthRecordId}</if>
<if test="measureTime != null "> and a.measure_time = #{measureTime}</if>
<if test="temperature != null "> and a.temperature = #{temperature}</if>
<if test="personId != null "> and a.person_id = #{personId}</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
order by a.create_time desc
</select>
<select id="selectHealthTemperatureRecordById" parameterType="Long" resultMap="HealthTemperatureRecordResult">
<include refid="selectHealthTemperatureRecordVo"/>
where a.id = #{id}
</select>
<insert id="insertHealthTemperatureRecord" parameterType="HealthTemperatureRecord">
insert into health_temperature_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</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="delFlag != null">del_flag,</if>
<if test="remark != null">remark,</if>
<if test="healthRecordId != null">health_record_id,</if>
<if test="measureTime != null">measure_time,</if>
<if test="temperature != null">temperature,</if>
<if test="personId != null">person_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</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="delFlag != null">#{delFlag},</if>
<if test="remark != null">#{remark},</if>
<if test="healthRecordId != null">#{healthRecordId},</if>
<if test="measureTime != null">#{measureTime},</if>
<if test="temperature != null">#{temperature},</if>
<if test="personId != null">#{personId},</if>
</trim>
</insert>
<update id="updateHealthTemperatureRecord" parameterType="HealthTemperatureRecord">
update health_temperature_record
<trim prefix="SET" suffixOverrides=",">
<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="delFlag != null">del_flag = #{delFlag},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="healthRecordId != null">health_record_id = #{healthRecordId},</if>
<if test="measureTime != null">measure_time = #{measureTime},</if>
<if test="temperature != null">temperature = #{temperature},</if>
<if test="personId != null">person_id = #{personId},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteHealthTemperatureRecordById" parameterType="Long">
delete from health_temperature_record where id = #{id}
</delete>
<delete id="deleteHealthTemperatureRecordByIds" parameterType="String">
delete from health_temperature_record where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<update id="removeHealthTemperatureRecordById" parameterType="Long">
update health_temperature_record set del_flag='1' where id = #{id}
</update>
<update id="removeHealthTemperatureRecordByIds" parameterType="String">
update health_temperature_record set del_flag='1' where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</update>
</mapper>

View File

@@ -0,0 +1,105 @@
<?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.health.mapper.HealthWeightRecordMapper">
<resultMap type="HealthWeightRecordVo" id="HealthWeightRecordResult">
<result property="id" column="id" />
<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="delFlag" column="del_flag" />
<result property="remark" column="remark" />
<result property="measureTime" column="measure_time" />
<result property="weight" column="weight" />
<result property="personId" column="person_id" />
<result property="personName" column="person_name" />
</resultMap>
<sql id="selectHealthWeightRecordVo">
select a.id, a.create_by, a.create_time, a.update_by, a.update_time, a.del_flag, a.remark, a.measure_time, a.weight, a.person_id from health_weight_record a
</sql>
<select id="selectHealthWeightRecordList" parameterType="HealthWeightRecordDto" resultMap="HealthWeightRecordResult">
<include refid="selectHealthWeightRecordVo"/>
<where>
a.del_flag='0'
<if test="personId != null "> and a.person_id = #{personId}</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
order by a.create_time desc
</select>
<select id="selectHealthWeightRecordById" parameterType="Long" resultMap="HealthWeightRecordResult">
<include refid="selectHealthWeightRecordVo"/>
where a.id = #{id}
</select>
<insert id="insertHealthWeightRecord" parameterType="HealthWeightRecord">
insert into health_weight_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</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="delFlag != null">del_flag,</if>
<if test="remark != null">remark,</if>
<if test="measureTime != null">measure_time,</if>
<if test="weight != null">weight,</if>
<if test="personId != null">person_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</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="delFlag != null">#{delFlag},</if>
<if test="remark != null">#{remark},</if>
<if test="measureTime != null">#{measureTime},</if>
<if test="weight != null">#{weight},</if>
<if test="personId != null">#{personId},</if>
</trim>
</insert>
<update id="updateHealthWeightRecord" parameterType="HealthWeightRecord">
update health_weight_record
<trim prefix="SET" suffixOverrides=",">
<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="delFlag != null">del_flag = #{delFlag},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="measureTime != null">measure_time = #{measureTime},</if>
<if test="weight != null">weight = #{weight},</if>
<if test="personId != null">person_id = #{personId},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteHealthWeightRecordById" parameterType="Long">
delete from health_weight_record where id = #{id}
</delete>
<delete id="deleteHealthWeightRecordByIds" parameterType="String">
delete from health_weight_record where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<update id="removeHealthWeightRecordById" parameterType="Long">
update health_weight_record set del_flag='1' where id = #{id}
</update>
<update id="removeHealthWeightRecordByIds" parameterType="String">
update health_weight_record set del_flag='1' where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</update>
</mapper>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

@@ -20,6 +20,6 @@ public class IntcInvestApplication
public static void main(String[] args)
{
SpringApplication.run(IntcInvestApplication.class, args);
System.out.println("(♥◠‿◠)ノ゙ 投资业务模块启动成功 ლ(´ڡ`ლ)゙");
System.out.println("(♥◠‿◠)ノ゙ 智聪投资业务模块启动成功 ლ(´ڡ`ლ)゙");
}
}

View File

@@ -14,6 +14,7 @@
<module>ruoyi-job</module>
<module>ruoyi-file</module>
<module>intc-invest</module>
<module>intc-health</module>
</modules>
<artifactId>ruoyi-modules</artifactId>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.