diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/DateUtils.java b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/DateUtils.java index bbd11f8..b0bb4ff 100644 --- a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/DateUtils.java +++ b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/DateUtils.java @@ -220,7 +220,26 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils calendar.set(Calendar.DAY_OF_MONTH, calendar.getActualMaximum(Calendar.DAY_OF_MONTH)); return sdf.format(calendar.getTime()); } + /** + * 获取选取日期的当前月的第一天 + */ + public static String getAgeByBirthday(Date birthday) + { + // 假设生日是2000年1月1日 + Calendar birthdayDate = Calendar.getInstance(); + birthdayDate.setTime(birthday); + Calendar currentDate = Calendar.getInstance(); + // 方法三:使用Calendar类计算年龄差距 + int ageInYears = currentDate.get(Calendar.YEAR) - birthdayDate.get(Calendar.YEAR); + + if (birthdayDate.get(Calendar.MONTH) > currentDate.get(Calendar.MONTH) || + (birthdayDate.get(Calendar.MONTH) == currentDate.get(Calendar.MONTH) + && birthdayDate.get(Calendar.DATE) > currentDate.get(Calendar.DATE))) { + ageInYears--; + } + return ageInYears + "周岁"; + } } diff --git a/ruoyi-modules/intc-health/README.md b/ruoyi-modules/intc-health/README.md new file mode 100644 index 0000000..d76f839 --- /dev/null +++ b/ruoyi-modules/intc-health/README.md @@ -0,0 +1 @@ +特定业务模块 \ No newline at end of file diff --git a/ruoyi-modules/intc-health/pom.xml b/ruoyi-modules/intc-health/pom.xml new file mode 100644 index 0000000..eb5a3eb --- /dev/null +++ b/ruoyi-modules/intc-health/pom.xml @@ -0,0 +1,143 @@ + + + + com.ruoyi + ruoyi-modules + 3.6.3 + + 4.0.0 + + intc-health + + + intc-health 健康业务 + + + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-config + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-sentinel + + + + + org.springframework.boot + spring-boot-starter-actuator + + + org.springframework.boot + spring-boot-starter-security + + + io.micrometer + micrometer-registry-prometheus + + + + + + io.springfox + springfox-swagger-ui + ${swagger.fox.version} + + + + + + + + + + + com.ruoyi + ruoyi-common-datasource + 3.6.3 + + + + + com.ruoyi + ruoyi-common-datascope + 3.6.3 + + + + org.postgresql + postgresql + 42.2.22 + + + + org.projectlombok + lombok + + + + + + com.ruoyi + ruoyi-common-log + + + + + com.ruoyi + ruoyi-common-swagger + + + ws.schild + jave-core + 2.4.6 + + + ws.schild + jave-native-win64 + 2.4.6 + + + ws.schild + jave-native-linux64 + 2.4.6 + + + org.springframework + spring-test + 5.3.3 + compile + + + + + ${project.artifactId} + + + org.springframework.boot + spring-boot-maven-plugin + + + + repackage + + + + + + + + diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/IntcHealthApplication.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/IntcHealthApplication.java new file mode 100644 index 0000000..624dc05 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/IntcHealthApplication.java @@ -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("(♥◠‿◠)ノ゙ 智聪健康业务模块启动成功 ლ(´ڡ`ლ)゙"); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/config/ActuatorSecurityConfig.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/config/ActuatorSecurityConfig.java new file mode 100644 index 0000000..05433e1 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/config/ActuatorSecurityConfig.java @@ -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(); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthDoctorRecordController.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthDoctorRecordController.java new file mode 100644 index 0000000..8c5c905 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthDoctorRecordController.java @@ -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 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 list = healthDoctorRecordService.selectHealthDoctorRecordList(healthDoctorRecordDto); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthMarRecordController.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthMarRecordController.java new file mode 100644 index 0000000..58ab57b --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthMarRecordController.java @@ -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 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 list = healthMarRecordService.selectHealthMarRecordList(healthMarRecordDto); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthPersonController.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthPersonController.java new file mode 100644 index 0000000..7f960ef --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthPersonController.java @@ -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 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 list = healthPersonService.selectHealthPersonList(healthPersonDto); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthRecordController.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthRecordController.java new file mode 100644 index 0000000..ccaf89e --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthRecordController.java @@ -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 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 list = healthRecordService.selectHealthRecordList(healthRecordDto); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthTemperatureRecordController.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthTemperatureRecordController.java new file mode 100644 index 0000000..e961aea --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthTemperatureRecordController.java @@ -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 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 list = healthTemperatureRecordService.selectHealthTemperatureRecordList(healthTemperatureRecordDto); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthWeightRecordController.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthWeightRecordController.java new file mode 100644 index 0000000..a53152f --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthWeightRecordController.java @@ -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 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 list = healthWeightRecordService.selectHealthWeightRecordList(healthWeightRecordDto); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthDoctorRecord.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthDoctorRecord.java new file mode 100644 index 0000000..493f68e --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthDoctorRecord.java @@ -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(); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthMarRecord.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthMarRecord.java new file mode 100644 index 0000000..44d848d --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthMarRecord.java @@ -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(); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthPerson.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthPerson.java new file mode 100644 index 0000000..4571be6 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthPerson.java @@ -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(); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthRecord.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthRecord.java new file mode 100644 index 0000000..4589260 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthRecord.java @@ -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(); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthTemperatureRecord.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthTemperatureRecord.java new file mode 100644 index 0000000..00ec930 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthTemperatureRecord.java @@ -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(); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthWeightRecord.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthWeightRecord.java new file mode 100644 index 0000000..de248e4 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthWeightRecord.java @@ -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(); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthDoctorRecordDto.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthDoctorRecordDto.java new file mode 100644 index 0000000..abc8ce3 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthDoctorRecordDto.java @@ -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; + +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthMarRecordDto.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthMarRecordDto.java new file mode 100644 index 0000000..69b1571 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthMarRecordDto.java @@ -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; + +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthPersonDto.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthPersonDto.java new file mode 100644 index 0000000..fdd6bba --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthPersonDto.java @@ -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; + +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthRecordDto.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthRecordDto.java new file mode 100644 index 0000000..e469f6d --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthRecordDto.java @@ -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; + +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthTemperatureRecordDto.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthTemperatureRecordDto.java new file mode 100644 index 0000000..4ae8c4f --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthTemperatureRecordDto.java @@ -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; + +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthWeightRecordDto.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthWeightRecordDto.java new file mode 100644 index 0000000..53d999d --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthWeightRecordDto.java @@ -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; + +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthDoctorRecordVo.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthDoctorRecordVo.java new file mode 100644 index 0000000..a395cc2 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthDoctorRecordVo.java @@ -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; + +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthMarRecordVo.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthMarRecordVo.java new file mode 100644 index 0000000..28d8266 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthMarRecordVo.java @@ -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; + +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthPersonVo.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthPersonVo.java new file mode 100644 index 0000000..5c16d97 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthPersonVo.java @@ -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; + +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthRecordVo.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthRecordVo.java new file mode 100644 index 0000000..b17d9ee --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthRecordVo.java @@ -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; + +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthTemperatureRecordVo.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthTemperatureRecordVo.java new file mode 100644 index 0000000..0300223 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthTemperatureRecordVo.java @@ -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; + +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthWeightRecordVo.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthWeightRecordVo.java new file mode 100644 index 0000000..1dcbda7 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthWeightRecordVo.java @@ -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; + +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthDoctorRecordMapper.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthDoctorRecordMapper.java new file mode 100644 index 0000000..d312399 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthDoctorRecordMapper.java @@ -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 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); +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthMarRecordMapper.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthMarRecordMapper.java new file mode 100644 index 0000000..b3e1e96 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthMarRecordMapper.java @@ -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 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); +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthPersonMapper.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthPersonMapper.java new file mode 100644 index 0000000..c7ed073 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthPersonMapper.java @@ -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 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); +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthRecordMapper.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthRecordMapper.java new file mode 100644 index 0000000..9b184c6 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthRecordMapper.java @@ -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 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); +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthTemperatureRecordMapper.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthTemperatureRecordMapper.java new file mode 100644 index 0000000..48b5c8b --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthTemperatureRecordMapper.java @@ -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 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); +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthWeightRecordMapper.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthWeightRecordMapper.java new file mode 100644 index 0000000..c17c838 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthWeightRecordMapper.java @@ -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 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); +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthDoctorRecordService.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthDoctorRecordService.java new file mode 100644 index 0000000..2fc3927 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthDoctorRecordService.java @@ -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 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); +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthMarRecordService.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthMarRecordService.java new file mode 100644 index 0000000..e7e5ed0 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthMarRecordService.java @@ -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 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); +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthPersonService.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthPersonService.java new file mode 100644 index 0000000..9f355ff --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthPersonService.java @@ -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 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); +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthRecordService.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthRecordService.java new file mode 100644 index 0000000..6bd8122 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthRecordService.java @@ -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 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); +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthTemperatureRecordService.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthTemperatureRecordService.java new file mode 100644 index 0000000..bd97209 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthTemperatureRecordService.java @@ -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 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); +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthWeightRecordService.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthWeightRecordService.java new file mode 100644 index 0000000..df598fe --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthWeightRecordService.java @@ -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 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); +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthDoctorRecordServiceImpl.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthDoctorRecordServiceImpl.java new file mode 100644 index 0000000..6b6bafd --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthDoctorRecordServiceImpl.java @@ -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 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); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthMarRecordServiceImpl.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthMarRecordServiceImpl.java new file mode 100644 index 0000000..1022435 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthMarRecordServiceImpl.java @@ -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 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); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthPersonServiceImpl.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthPersonServiceImpl.java new file mode 100644 index 0000000..641f20c --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthPersonServiceImpl.java @@ -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 selectHealthPersonList(HealthPersonDto healthPersonDto) + { + List 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); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthRecordServiceImpl.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthRecordServiceImpl.java new file mode 100644 index 0000000..abe0e73 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthRecordServiceImpl.java @@ -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 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); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthTemperatureRecordServiceImpl.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthTemperatureRecordServiceImpl.java new file mode 100644 index 0000000..9429d69 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthTemperatureRecordServiceImpl.java @@ -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 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); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthWeightRecordServiceImpl.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthWeightRecordServiceImpl.java new file mode 100644 index 0000000..6f0cde4 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthWeightRecordServiceImpl.java @@ -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 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); + } +} diff --git a/ruoyi-modules/intc-health/src/main/resources/banner.txt b/ruoyi-modules/intc-health/src/main/resources/banner.txt new file mode 100644 index 0000000..02654be --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/resources/banner.txt @@ -0,0 +1,8 @@ +Spring Boot Version: ${spring-boot.version} +Spring Application Name: ${spring.application.name} + _ _ _ __ _ _ _ + ___ _ __ __ _ _ _ | |_ o O O | | (_) / _` | | |_ | |_ + (_-< | ' \ / _` | | '_| | _| o | | | | \__, | | ' \ | _| + /__/_ |_|_|_| \__,_| _|_|_ _\__| TS__[O] _|_|_ _|_|_ |___/ |_||_| _\__| + _|"""""|_|"""""|_|"""""|_|"""""|_|"""""| {======|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| + "`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'./o--000'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-' diff --git a/ruoyi-modules/intc-health/src/main/resources/bootstrap.yml b/ruoyi-modules/intc-health/src/main/resources/bootstrap.yml new file mode 100644 index 0000000..30e4ee9 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/resources/bootstrap.yml @@ -0,0 +1,41 @@ +# Tomcat +server: + max-http-header-size: 4048576 + port: 9228 + tomcat: + max-http-form-post-size: -1 + +# Spring +spring: + application: + # 应用名称 + name: intc-health + profiles: + # 环境配置 + active: dev + servlet: + multipart: + enabled: true + max-file-size: -1 + max-request-size: -1 + cloud: + nacos: + discovery: + namespace: 6ff354f8-471d-46ef-bd30-b81588a009cd + # 服务注册地址 + server-addr: 101.126.95.100:8858 + group: dev +# ip: 8.140.22.151 + config: + namespace: 6ff354f8-471d-46ef-bd30-b81588a009cd + # 配置中心地址 + server-addr: 101.126.95.100:8858 + # 配置文件格式 + file-extension: yml + # 共享配置 + shared-configs: + - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} +# 用于服务监控可在线查看日志,该配置用于生产环境 +logging: + file: + name: logs/${spring.application.name}/info.log diff --git a/ruoyi-modules/intc-health/src/main/resources/logback.xml b/ruoyi-modules/intc-health/src/main/resources/logback.xml new file mode 100644 index 0000000..0dc6014 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/resources/logback.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + ${log.pattern} + + + + + + ${log.path}/info.log + + + + ${log.path}/info.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + INFO + + ACCEPT + + DENY + + + + + ${log.path}/error.log + + + + ${log.path}/error.%d{yyyy-MM}.log + + 60 + + + ${log.pattern} + + + + ERROR + + ACCEPT + + DENY + + + + + + + + + + + + + + + + + + diff --git a/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthDoctorRecordMapper.xml b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthDoctorRecordMapper.xml new file mode 100644 index 0000000..5617b32 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthDoctorRecordMapper.xml @@ -0,0 +1,149 @@ + + + + + + + + + + + + + + + + + + + + + + + + + select + a.id, + a.hospital_name, + a.departments, + a.doctor, + a.create_by, + a.create_time, + a.update_by, + a.update_time, + a.del_flag, + a.remark, + a.health_record_id, + a.visiting_time, + a.prescribe, + a.person_id, + hp."name" as person_name , + hr."name" as health_record_name + from + health_doctor_record a + left join health_person hp on + hp.id = a.person_id + left join health_record hr on + hr.id = a.health_record_id + + + + + + + + insert into health_doctor_record + + id, + hospital_name, + departments, + doctor, + create_by, + create_time, + update_by, + update_time, + del_flag, + remark, + health_record_id, + visiting_time, + prescribe, + person_id, + + + #{id}, + #{hospitalName}, + #{departments}, + #{doctor}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{delFlag}, + #{remark}, + #{healthRecordId}, + #{visitingTime}, + #{prescribe}, + #{personId}, + + + + + update health_doctor_record + + hospital_name = #{hospitalName}, + departments = #{departments}, + doctor = #{doctor}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + del_flag = #{delFlag}, + remark = #{remark}, + health_record_id = #{healthRecordId}, + visiting_time = #{visitingTime}, + prescribe = #{prescribe}, + person_id = #{personId}, + + where id = #{id} + + + + delete from health_doctor_record where id = #{id} + + + + delete from health_doctor_record where id in + + #{id} + + + + update health_doctor_record set del_flag='1' where id = #{id} + + + + update health_doctor_record set del_flag='1' where id in + + #{id} + + + diff --git a/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthMarRecordMapper.xml b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthMarRecordMapper.xml new file mode 100644 index 0000000..66dd044 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthMarRecordMapper.xml @@ -0,0 +1,157 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + select + a.id, + a.name, + a.type, + a.create_by, + a.create_time, + a.update_by, + a.update_time, + a.del_flag, + a.remark, + a.health_record_id, + a.dosing_time, + a.dosage, + a.person_id, + a.resource, + a.place, + hp."name" as person_name , + hr."name" as health_record_name + from + health_mar_record a + left join health_person hp on + hp.id = a.person_id + left join health_record hr on + hr.id = a.health_record_id + + + + + + + + insert into health_mar_record + + id, + name, + type, + create_by, + create_time, + update_by, + update_time, + del_flag, + remark, + health_record_id, + dosing_time, + dosage, + person_id, + resource, + place, + + + #{id}, + #{name}, + #{type}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{delFlag}, + #{remark}, + #{healthRecordId}, + #{dosingTime}, + #{dosage}, + #{personId}, + #{resource}, + #{place}, + + + + + update health_mar_record + + name = #{name}, + type = #{type}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + del_flag = #{delFlag}, + remark = #{remark}, + health_record_id = #{healthRecordId}, + dosing_time = #{dosingTime}, + dosage = #{dosage}, + person_id = #{personId}, + resource = #{resource}, + place = #{place}, + + where id = #{id} + + + + delete from health_mar_record where id = #{id} + + + + delete from health_mar_record where id in + + #{id} + + + + update health_mar_record set del_flag='1' where id = #{id} + + + + update health_mar_record set del_flag='1' where id in + + #{id} + + + diff --git a/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthPersonMapper.xml b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthPersonMapper.xml new file mode 100644 index 0000000..9ed7c69 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthPersonMapper.xml @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + + + + + + + + select a.id, a.name, a.type, a.create_by, a.create_time, a.update_by, a.update_time, a.del_flag, a.remark, a.birthday, a.nick_name, a.height, a.weight from health_person a + + + + + + + + insert into health_person + + id, + name, + type, + create_by, + create_time, + update_by, + update_time, + del_flag, + remark, + birthday, + nick_name, + height, + weight, + + + #{id}, + #{name}, + #{type}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{delFlag}, + #{remark}, + #{birthday}, + #{nickName}, + #{height}, + #{weight}, + + + + + update health_person + + name = #{name}, + type = #{type}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + del_flag = #{delFlag}, + remark = #{remark}, + birthday = #{birthday}, + nick_name = #{nickName}, + height = #{height}, + weight = #{weight}, + + where id = #{id} + + + + delete from health_person where id = #{id} + + + + delete from health_person where id in + + #{id} + + + + update health_person set del_flag='1' where id = #{id} + + + + update health_person set del_flag='1' where id in + + #{id} + + + diff --git a/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthRecordMapper.xml b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthRecordMapper.xml new file mode 100644 index 0000000..7a96195 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthRecordMapper.xml @@ -0,0 +1,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + select + a.id, + a.name, + a.type, + a.create_by, + a.create_time, + a.update_by, + a.update_time, + a.del_flag, + a.remark, + a.occur_time, + a.rehabilitation_time, + a.initial_symptoms, + a.medium_term_symptoms, + a.later_stage_symptoms, + a.etiology, + a.person_id, + a.state, + hp."name" as person_name + from + health_record a + left join health_person hp on + hp.id = a.person_id + + + + + + + + insert into health_record + + id, + name, + type, + create_by, + create_time, + update_by, + update_time, + del_flag, + remark, + occur_time, + rehabilitation_time, + initial_symptoms, + medium_term_symptoms, + later_stage_symptoms, + etiology, + person_id, + state, + + + #{id}, + #{name}, + #{type}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{delFlag}, + #{remark}, + #{occurTime}, + #{rehabilitationTime}, + #{initialSymptoms}, + #{mediumTermSymptoms}, + #{laterStageSymptoms}, + #{etiology}, + #{personId}, + #{state}, + + + + + update health_record + + name = #{name}, + type = #{type}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + del_flag = #{delFlag}, + remark = #{remark}, + occur_time = #{occurTime}, + rehabilitation_time = #{rehabilitationTime}, + initial_symptoms = #{initialSymptoms}, + medium_term_symptoms = #{mediumTermSymptoms}, + later_stage_symptoms = #{laterStageSymptoms}, + etiology = #{etiology}, + person_id = #{personId}, + state = #{state}, + + where id = #{id} + + + + delete from health_record where id = #{id} + + + + delete from health_record where id in + + #{id} + + + + update health_record set del_flag='1' where id = #{id} + + + + update health_record set del_flag='1' where id in + + #{id} + + + diff --git a/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthTemperatureRecordMapper.xml b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthTemperatureRecordMapper.xml new file mode 100644 index 0000000..a14edfa --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthTemperatureRecordMapper.xml @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + select + a.id, + a.create_by, + a.create_time, + a.update_by, + a.update_time, + a.del_flag, + a.remark, + a.health_record_id, + a.measure_time, + a.temperature, + a.person_id, + hp."name" as person_name , + hr."name" as health_record_name + from + health_temperature_record a + left join health_person hp on + hp.id = a.person_id + left join health_record hr on + hr.id = a.health_record_id + + + + + + + + insert into health_temperature_record + + id, + create_by, + create_time, + update_by, + update_time, + del_flag, + remark, + health_record_id, + measure_time, + temperature, + person_id, + + + #{id}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{delFlag}, + #{remark}, + #{healthRecordId}, + #{measureTime}, + #{temperature}, + #{personId}, + + + + + update health_temperature_record + + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + del_flag = #{delFlag}, + remark = #{remark}, + health_record_id = #{healthRecordId}, + measure_time = #{measureTime}, + temperature = #{temperature}, + person_id = #{personId}, + + where id = #{id} + + + + delete from health_temperature_record where id = #{id} + + + + delete from health_temperature_record where id in + + #{id} + + + + update health_temperature_record set del_flag='1' where id = #{id} + + + + update health_temperature_record set del_flag='1' where id in + + #{id} + + + diff --git a/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthWeightRecordMapper.xml b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthWeightRecordMapper.xml new file mode 100644 index 0000000..ea078c0 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthWeightRecordMapper.xml @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + select a.id, a.create_by, a.create_time, a.update_by, a.update_time, a.del_flag, a.remark, a.measure_time, a.weight, a.person_id from health_weight_record a + + + + + + + + insert into health_weight_record + + id, + create_by, + create_time, + update_by, + update_time, + del_flag, + remark, + measure_time, + weight, + person_id, + + + #{id}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{delFlag}, + #{remark}, + #{measureTime}, + #{weight}, + #{personId}, + + + + + update health_weight_record + + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + del_flag = #{delFlag}, + remark = #{remark}, + measure_time = #{measureTime}, + weight = #{weight}, + person_id = #{personId}, + + where id = #{id} + + + + delete from health_weight_record where id = #{id} + + + + delete from health_weight_record where id in + + #{id} + + + + update health_weight_record set del_flag='1' where id = #{id} + + + + update health_weight_record set del_flag='1' where id in + + #{id} + + + diff --git a/ruoyi-modules/intc-health/src/main/resources/static/images/qrcode_logo.jpg b/ruoyi-modules/intc-health/src/main/resources/static/images/qrcode_logo.jpg new file mode 100644 index 0000000..ff9f93a Binary files /dev/null and b/ruoyi-modules/intc-health/src/main/resources/static/images/qrcode_logo.jpg differ diff --git a/ruoyi-modules/intc-health/src/main/resources/static/images/qrcode_template.jpg b/ruoyi-modules/intc-health/src/main/resources/static/images/qrcode_template.jpg new file mode 100644 index 0000000..3ee550b Binary files /dev/null and b/ruoyi-modules/intc-health/src/main/resources/static/images/qrcode_template.jpg differ diff --git a/ruoyi-modules/intc-invest/src/main/java/com/ruoyi/IntcInvestApplication.java b/ruoyi-modules/intc-invest/src/main/java/com/ruoyi/IntcInvestApplication.java index 30df69e..4d14029 100644 --- a/ruoyi-modules/intc-invest/src/main/java/com/ruoyi/IntcInvestApplication.java +++ b/ruoyi-modules/intc-invest/src/main/java/com/ruoyi/IntcInvestApplication.java @@ -20,6 +20,6 @@ public class IntcInvestApplication public static void main(String[] args) { SpringApplication.run(IntcInvestApplication.class, args); - System.out.println("(♥◠‿◠)ノ゙ 投资业务模块启动成功 ლ(´ڡ`ლ)゙"); + System.out.println("(♥◠‿◠)ノ゙ 智聪投资业务模块启动成功 ლ(´ڡ`ლ)゙"); } } diff --git a/ruoyi-modules/pom.xml b/ruoyi-modules/pom.xml index 1943424..a66e7fe 100644 --- a/ruoyi-modules/pom.xml +++ b/ruoyi-modules/pom.xml @@ -14,6 +14,7 @@ ruoyi-job ruoyi-file intc-invest + intc-health ruoyi-modules diff --git a/sql/20240919-sql/dump-intc_health_dev-202409192337 b/sql/20240919-sql/dump-intc_health_dev-202409192337 new file mode 100644 index 0000000..cb93371 Binary files /dev/null and b/sql/20240919-sql/dump-intc_health_dev-202409192337 differ diff --git a/sql/20240919-sql/dump-intc_invest_dev-202409192337 b/sql/20240919-sql/dump-intc_invest_dev-202409192337 new file mode 100644 index 0000000..a9895d7 Binary files /dev/null and b/sql/20240919-sql/dump-intc_invest_dev-202409192337 differ diff --git a/sql/20240919-sql/dump-intc_invest_prod-202409192342 b/sql/20240919-sql/dump-intc_invest_prod-202409192342 new file mode 100644 index 0000000..f15435b Binary files /dev/null and b/sql/20240919-sql/dump-intc_invest_prod-202409192342 differ diff --git a/sql/20240919-sql/dump-intc_system-202409192343 b/sql/20240919-sql/dump-intc_system-202409192343 new file mode 100644 index 0000000..b01b97c Binary files /dev/null and b/sql/20240919-sql/dump-intc_system-202409192343 differ