feat: 健康管理系统,代码提交。
This commit is contained in:
@@ -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("(♥◠‿◠)ノ゙ 智聪健康业务模块启动成功 ლ(´ڡ`ლ)゙");
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user