diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthActivityController.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthActivityController.java new file mode 100644 index 0000000..7bdf750 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthActivityController.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.HealthActivity; +import com.ruoyi.health.domain.vo.HealthActivityVo; +import com.ruoyi.health.domain.dto.HealthActivityDto; +import com.ruoyi.health.service.IHealthActivityService; +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-10-07 + */ +@Api(tags=" 活动记录") +@RestController +@RequestMapping("/activity") +public class HealthActivityController extends BaseController +{ + @Resource + private IHealthActivityService healthActivityService; + + /** + * 查询活动记录列表 + */ + @ApiOperation(value="查询活动记录列表",response = HealthActivityVo.class) + @RequiresPermissions("health:activity:list") + @GetMapping("/list") + public TableDataInfo list(HealthActivityDto healthActivityDto) + { + startPage(); + List list = healthActivityService.selectHealthActivityList(healthActivityDto); + return getDataTable(list); + } + + /** + * 导出活动记录列表 + */ + @ApiOperation(value="导出活动记录列表") + @RequiresPermissions("health:activity:export") + @Log(title = "活动记录", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HealthActivityDto healthActivityDto) + { + List list = healthActivityService.selectHealthActivityList(healthActivityDto); + ExcelUtil util = new ExcelUtil(HealthActivityVo.class); + util.exportExcel(response, list, "活动记录数据"); + } + + /** + * 获取活动记录详细信息 + */ + @ApiOperation(value="获取活动记录详细信息") + @RequiresPermissions("health:activity:query") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(healthActivityService.selectHealthActivityById(id)); + } + + /** + * 新增活动记录 + */ + @ApiOperation(value="新增活动记录") + @RequiresPermissions("health:activity:add") + @Log(title = "活动记录", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HealthActivity healthActivity) + { + return toAjax(healthActivityService.insertHealthActivity(healthActivity)); + } + + /** + * 修改活动记录 + */ + @ApiOperation(value="修改活动记录") + @RequiresPermissions("health:activity:edit") + @Log(title = "活动记录", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HealthActivity healthActivity) + { + return toAjax(healthActivityService.updateHealthActivity(healthActivity)); + } + + /** + * 删除活动记录 + */ + @ApiOperation(value="删除活动记录") + @RequiresPermissions("health:activity:remove") + @Log(title = "活动记录", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(healthActivityService.deleteHealthActivityByIds(ids)); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthHeightWeightRecordController.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthHeightWeightRecordController.java new file mode 100644 index 0000000..29f669c --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthHeightWeightRecordController.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.HealthHeightWeightRecord; +import com.ruoyi.health.domain.vo.HealthHeightWeightRecordVo; +import com.ruoyi.health.domain.dto.HealthHeightWeightRecordDto; +import com.ruoyi.health.service.IHealthHeightWeightRecordService; +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-10-01 + */ +@Api(tags=" 身高体重记录") +@RestController +@RequestMapping("/heightWeightRecord") +public class HealthHeightWeightRecordController extends BaseController +{ + @Resource + private IHealthHeightWeightRecordService healthHeightWeightRecordService; + + /** + * 查询身高体重记录列表 + */ + @ApiOperation(value="查询身高体重记录列表",response = HealthHeightWeightRecordVo.class) + @RequiresPermissions("health:heightWeightRecord:list") + @GetMapping("/list") + public TableDataInfo list(HealthHeightWeightRecordDto healthHeightWeightRecordDto) + { + startPage(); + List list = healthHeightWeightRecordService.selectHealthHeightWeightRecordList(healthHeightWeightRecordDto); + return getDataTable(list); + } + + /** + * 导出身高体重记录列表 + */ + @ApiOperation(value="导出身高体重记录列表") + @RequiresPermissions("health:heightWeightRecord:export") + @Log(title = "身高体重记录", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HealthHeightWeightRecordDto healthHeightWeightRecordDto) + { + List list = healthHeightWeightRecordService.selectHealthHeightWeightRecordList(healthHeightWeightRecordDto); + ExcelUtil util = new ExcelUtil(HealthHeightWeightRecordVo.class); + util.exportExcel(response, list, "身高体重记录数据"); + } + + /** + * 获取身高体重记录详细信息 + */ + @ApiOperation(value="获取身高体重记录详细信息") + @RequiresPermissions("health:heightWeightRecord:query") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(healthHeightWeightRecordService.selectHealthHeightWeightRecordById(id)); + } + + /** + * 新增身高体重记录 + */ + @ApiOperation(value="新增身高体重记录") + @RequiresPermissions("health:heightWeightRecord:add") + @Log(title = "身高体重记录", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HealthHeightWeightRecord healthHeightWeightRecord) + { + return toAjax(healthHeightWeightRecordService.insertHealthHeightWeightRecord(healthHeightWeightRecord)); + } + + /** + * 修改身高体重记录 + */ + @ApiOperation(value="修改身高体重记录") + @RequiresPermissions("health:heightWeightRecord:edit") + @Log(title = "身高体重记录", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HealthHeightWeightRecord healthHeightWeightRecord) + { + return toAjax(healthHeightWeightRecordService.updateHealthHeightWeightRecord(healthHeightWeightRecord)); + } + + /** + * 删除身高体重记录 + */ + @ApiOperation(value="删除身高体重记录") + @RequiresPermissions("health:heightWeightRecord:remove") + @Log(title = "身高体重记录", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(healthHeightWeightRecordService.deleteHealthHeightWeightRecordByIds(ids)); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthMedicineBasicController.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthMedicineBasicController.java new file mode 100644 index 0000000..c190a8d --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthMedicineBasicController.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.HealthMedicineBasic; +import com.ruoyi.health.domain.vo.HealthMedicineBasicVo; +import com.ruoyi.health.domain.dto.HealthMedicineBasicDto; +import com.ruoyi.health.service.IHealthMedicineBasicService; +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-10-02 + */ +@Api(tags=" 药品基础信息") +@RestController +@RequestMapping("/medicineBasic") +public class HealthMedicineBasicController extends BaseController +{ + @Resource + private IHealthMedicineBasicService healthMedicineBasicService; + + /** + * 查询药品基础信息列表 + */ + @ApiOperation(value="查询药品基础信息列表",response = HealthMedicineBasicVo.class) + @RequiresPermissions("health:medicineBasic:list") + @GetMapping("/list") + public TableDataInfo list(HealthMedicineBasicDto healthMedicineBasicDto) + { + startPage(); + List list = healthMedicineBasicService.selectHealthMedicineBasicList(healthMedicineBasicDto); + return getDataTable(list); + } + + /** + * 导出药品基础信息列表 + */ + @ApiOperation(value="导出药品基础信息列表") + @RequiresPermissions("health:medicineBasic:export") + @Log(title = "药品基础信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HealthMedicineBasicDto healthMedicineBasicDto) + { + List list = healthMedicineBasicService.selectHealthMedicineBasicList(healthMedicineBasicDto); + ExcelUtil util = new ExcelUtil(HealthMedicineBasicVo.class); + util.exportExcel(response, list, "药品基础信息数据"); + } + + /** + * 获取药品基础信息详细信息 + */ + @ApiOperation(value="获取药品基础信息详细信息") + @RequiresPermissions("health:medicineBasic:query") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(healthMedicineBasicService.selectHealthMedicineBasicById(id)); + } + + /** + * 新增药品基础信息 + */ + @ApiOperation(value="新增药品基础信息") + @RequiresPermissions("health:medicineBasic:add") + @Log(title = "药品基础信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HealthMedicineBasic healthMedicineBasic) + { + return toAjax(healthMedicineBasicService.insertHealthMedicineBasic(healthMedicineBasic)); + } + + /** + * 修改药品基础信息 + */ + @ApiOperation(value="修改药品基础信息") + @RequiresPermissions("health:medicineBasic:edit") + @Log(title = "药品基础信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HealthMedicineBasic healthMedicineBasic) + { + return toAjax(healthMedicineBasicService.updateHealthMedicineBasic(healthMedicineBasic)); + } + + /** + * 删除药品基础信息 + */ + @ApiOperation(value="删除药品基础信息") + @RequiresPermissions("health:medicineBasic:remove") + @Log(title = "药品基础信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(healthMedicineBasicService.deleteHealthMedicineBasicByIds(ids)); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthMedicineRealtimeStockController.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthMedicineRealtimeStockController.java new file mode 100644 index 0000000..a6b3541 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthMedicineRealtimeStockController.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.HealthMedicineRealtimeStock; +import com.ruoyi.health.domain.vo.HealthMedicineRealtimeStockVo; +import com.ruoyi.health.domain.dto.HealthMedicineRealtimeStockDto; +import com.ruoyi.health.service.IHealthMedicineRealtimeStockService; +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-10-02 + */ +@Api(tags=" 药品实时库存") +@RestController +@RequestMapping("/medicineStock") +public class HealthMedicineRealtimeStockController extends BaseController +{ + @Resource + private IHealthMedicineRealtimeStockService healthMedicineRealtimeStockService; + + /** + * 查询药品实时库存列表 + */ + @ApiOperation(value="查询药品实时库存列表",response = HealthMedicineRealtimeStockVo.class) + @RequiresPermissions("health:medicineStock:list") + @GetMapping("/list") + public TableDataInfo list(HealthMedicineRealtimeStockDto healthMedicineRealtimeStockDto) + { + startPage(); + List list = healthMedicineRealtimeStockService.selectHealthMedicineRealtimeStockList(healthMedicineRealtimeStockDto); + return getDataTable(list); + } + + /** + * 导出药品实时库存列表 + */ + @ApiOperation(value="导出药品实时库存列表") + @RequiresPermissions("health:medicineStock:export") + @Log(title = "药品实时库存", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HealthMedicineRealtimeStockDto healthMedicineRealtimeStockDto) + { + List list = healthMedicineRealtimeStockService.selectHealthMedicineRealtimeStockList(healthMedicineRealtimeStockDto); + ExcelUtil util = new ExcelUtil(HealthMedicineRealtimeStockVo.class); + util.exportExcel(response, list, "药品实时库存数据"); + } + + /** + * 获取药品实时库存详细信息 + */ + @ApiOperation(value="获取药品实时库存详细信息") + @RequiresPermissions("health:medicineStock:query") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") String id) + { + return success(healthMedicineRealtimeStockService.selectHealthMedicineRealtimeStockById(id)); + } + + /** + * 新增药品实时库存 + */ + @ApiOperation(value="新增药品实时库存") + @RequiresPermissions("health:medicineStock:add") + @Log(title = "药品实时库存", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HealthMedicineRealtimeStock healthMedicineRealtimeStock) + { + return toAjax(healthMedicineRealtimeStockService.insertHealthMedicineRealtimeStock(healthMedicineRealtimeStock)); + } + + /** + * 修改药品实时库存 + */ + @ApiOperation(value="修改药品实时库存") + @RequiresPermissions("health:medicineStock:edit") + @Log(title = "药品实时库存", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HealthMedicineRealtimeStock healthMedicineRealtimeStock) + { + return toAjax(healthMedicineRealtimeStockService.updateHealthMedicineRealtimeStock(healthMedicineRealtimeStock)); + } + + /** + * 删除药品实时库存 + */ + @ApiOperation(value="删除药品实时库存") + @RequiresPermissions("health:medicineStock:remove") + @Log(title = "药品实时库存", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable String[] ids) + { + return toAjax(healthMedicineRealtimeStockService.deleteHealthMedicineRealtimeStockByIds(ids)); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthMedicineStockInController.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthMedicineStockInController.java new file mode 100644 index 0000000..9387c21 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthMedicineStockInController.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.HealthMedicineStockIn; +import com.ruoyi.health.domain.vo.HealthMedicineStockInVo; +import com.ruoyi.health.domain.dto.HealthMedicineStockInDto; +import com.ruoyi.health.service.IHealthMedicineStockInService; +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-10-02 + */ +@Api(tags=" 药品入库清单") +@RestController +@RequestMapping("/medicineStockIn") +public class HealthMedicineStockInController extends BaseController +{ + @Resource + private IHealthMedicineStockInService healthMedicineStockInService; + + /** + * 查询药品入库清单列表 + */ + @ApiOperation(value="查询药品入库清单列表",response = HealthMedicineStockInVo.class) + @RequiresPermissions("health:medicineStockIn:list") + @GetMapping("/list") + public TableDataInfo list(HealthMedicineStockInDto healthMedicineStockInDto) + { + startPage(); + List list = healthMedicineStockInService.selectHealthMedicineStockInList(healthMedicineStockInDto); + return getDataTable(list); + } + + /** + * 导出药品入库清单列表 + */ + @ApiOperation(value="导出药品入库清单列表") + @RequiresPermissions("health:medicineStockIn:export") + @Log(title = "药品入库清单", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HealthMedicineStockInDto healthMedicineStockInDto) + { + List list = healthMedicineStockInService.selectHealthMedicineStockInList(healthMedicineStockInDto); + ExcelUtil util = new ExcelUtil(HealthMedicineStockInVo.class); + util.exportExcel(response, list, "药品入库清单数据"); + } + + /** + * 获取药品入库清单详细信息 + */ + @ApiOperation(value="获取药品入库清单详细信息") + @RequiresPermissions("health:medicineStockIn:query") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(healthMedicineStockInService.selectHealthMedicineStockInById(id)); + } + + /** + * 新增药品入库清单 + */ + @ApiOperation(value="新增药品入库清单") + @RequiresPermissions("health:medicineStockIn:add") + @Log(title = "药品入库清单", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HealthMedicineStockIn healthMedicineStockIn) + { + return toAjax(healthMedicineStockInService.insertHealthMedicineStockIn(healthMedicineStockIn)); + } + + /** + * 修改药品入库清单 + */ + @ApiOperation(value="修改药品入库清单") + @RequiresPermissions("health:medicineStockIn:edit") + @Log(title = "药品入库清单", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HealthMedicineStockIn healthMedicineStockIn) + { + return toAjax(healthMedicineStockInService.updateHealthMedicineStockIn(healthMedicineStockIn)); + } + + /** + * 删除药品入库清单 + */ + @ApiOperation(value="删除药品入库清单") + @RequiresPermissions("health:medicineStockIn:remove") + @Log(title = "药品入库清单", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(healthMedicineStockInService.deleteHealthMedicineStockInByIds(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 deleted file mode 100644 index a53152f..0000000 --- a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/controller/HealthWeightRecordController.java +++ /dev/null @@ -1,116 +0,0 @@ -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/HealthActivity.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthActivity.java new file mode 100644 index 0000000..9988a13 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthActivity.java @@ -0,0 +1,107 @@ +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_activity + * + * @author tianyongbao + * @date 2024-10-07 + */ +@ApiModel("活动记录对象") +@Data +public class HealthActivity extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键 */ + private Long id; + + /** 活动名称 */ + @ApiModelProperty(value="活动名称") + @Excel(name = "活动名称") + private String name; + + /** 类型 */ + @ApiModelProperty(value="类型") + @Excel(name = "类型") + private String type; + + /** 活动地点 */ + @ApiModelProperty(value="活动地点") + @Excel(name = "活动地点") + private String place; + + /** 活动量 */ + private String activityVolume; + + /** 活动时长 */ + private String exerciseTime; + + /** 开始时间 */ + @ApiModelProperty(value="开始时间") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + private Date startTime; + + /** 结束时间 */ + @ApiModelProperty(value="结束时间") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + private Date endTime; + + /** 收获 */ + private String harvest; + + /** 饮食 */ + private String foods; + + /** 删除标志(0代表存在 1代表删除) */ + private String delFlag; + + /** 总费用 */ + @ApiModelProperty(value="总费用") + @Excel(name = "总费用") + private Double totalCost; + + /** 成员 */ + @ApiModelProperty(value="成员") + @Excel(name = "成员") + private String partner; + + /** 费用明细 */ + private String costDetail; + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("name", getName()) + .append("type", getType()) + .append("place", getPlace()) + .append("activityVolume", getActivityVolume()) + .append("exerciseTime", getExerciseTime()) + .append("startTime", getStartTime()) + .append("endTime", getEndTime()) + .append("harvest", getHarvest()) + .append("foods", getFoods()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("delFlag", getDelFlag()) + .append("remark", getRemark()) + .append("totalCost", getTotalCost()) + .append("partner", getPartner()) + .append("costDetail", getCostDetail()) + .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/HealthHeightWeightRecord.java similarity index 76% rename from ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthWeightRecord.java rename to ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthHeightWeightRecord.java index de248e4..9055002 100644 --- 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/HealthHeightWeightRecord.java @@ -1,24 +1,24 @@ 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.*; +import lombok.Data; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +import java.util.Date; /** - * 体重记录对象 health_weight_record + * 身高体重记录对象 health_height_weight_record * * @author tianyongbao - * @date 2024-09-21 + * @date 2024-10-01 */ -@ApiModel("体重记录对象") +@ApiModel("身高体重记录对象") @Data -public class HealthWeightRecord extends BaseEntity +public class HealthHeightWeightRecord extends BaseEntity { private static final long serialVersionUID = 1L; @@ -30,8 +30,8 @@ public class HealthWeightRecord extends BaseEntity /** 测量时间 */ @ApiModelProperty(value="测量时间") - @JsonFormat(pattern = "yyyy-MM-dd") - @Excel(name = "测量时间", width = 30, dateFormat = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "康复时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") private Date measureTime; /** 体重 */ @@ -42,7 +42,12 @@ public class HealthWeightRecord extends BaseEntity /** 人员id */ @ApiModelProperty(value="人员id") @Excel(name = "人员id") - private Long personId; + private String personId; + + /** 身高 */ + @ApiModelProperty(value="身高") + @Excel(name = "身高") + private Double height; @Override public String toString() { @@ -57,6 +62,7 @@ public class HealthWeightRecord extends BaseEntity .append("measureTime", getMeasureTime()) .append("weight", getWeight()) .append("personId", getPersonId()) + .append("height", getHeight()) .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 index 44d848d..a37893b 100644 --- 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 @@ -73,6 +73,26 @@ public class HealthMarRecord extends BaseEntity @Excel(name = "用药地点") private String place; + /** 药品id */ + @ApiModelProperty(value="药品id") + @Excel(name = "药品id") + private Long medicineId; + + /** 用药单位 */ + @ApiModelProperty(value="用药单位") + @Excel(name = "用药单位") + private String unit; + + /** 含量 */ + @ApiModelProperty(value="含量") + @Excel(name = "含量") + private Double content; + + /** 含量单位 */ + @ApiModelProperty(value="含量单位") + @Excel(name = "含量单位") + private String contentUnit; + @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) @@ -91,6 +111,10 @@ public class HealthMarRecord extends BaseEntity .append("personId", getPersonId()) .append("resource", getResource()) .append("place", getPlace()) + .append("medicineId", getMedicineId()) + .append("unit", getUnit()) + .append("content", getContent()) + .append("contentUnit", getContentUnit()) .toString(); } } diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthMedicineBasic.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthMedicineBasic.java new file mode 100644 index 0000000..50dea8d --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthMedicineBasic.java @@ -0,0 +1,157 @@ +package com.ruoyi.health.domain; + +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_medicine_basic + * + * @author tianyongbao + * @date 2024-10-02 + */ +@ApiModel("药品基础信息对象") +@Data +public class HealthMedicineBasic 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 classification; + + /** 类别 */ + @ApiModelProperty(value="类别)") + @NotNull(message="类别不能为空") + @Excel(name = "类别") + private String category; + + /** 品牌 */ + @ApiModelProperty(value="品牌)") + @NotNull(message="品牌不能为空") + @Excel(name = "品牌") + private String brand; + + /** 药品包装 */ + private String packaging; + + /** 生产厂家 */ + @ApiModelProperty(value="生产厂家)") + @NotNull(message="生产厂家不能为空") + @Excel(name = "生产厂家") + private String manufacturers; + + /** 治疗类型 */ + @ApiModelProperty(value="治疗类型)") + @NotNull(message="治疗类型不能为空") + @Excel(name = "治疗类型") + private String treatmentType; + + /** 是否进口 */ + private String isImport; + + /** 药品成分 */ + private String ingredients; + + /** 用法用量 */ + private String usage; + + /** 药品剂型 */ + @ApiModelProperty(value="药品剂型)") + @NotNull(message="药品剂型不能为空") + @Excel(name = "药品剂型") + private String dosageForm; + + /** 删除标志(0代表存在 1代表删除) */ + private String delFlag; + + /** 药品编码 */ + @ApiModelProperty(value="药品编码)") + @NotNull(message="药品编码不能为空") + @Excel(name = "药品编码") + private String code; + + /** 单个规格 */ + private String specifications; + + /** 单个单位 */ + private String unit; + + /** 不良反应 */ + private String adverseReaction; + + /** 生产地址 */ + @ApiModelProperty(value="生产地址") + @Excel(name = "生产地址") + private String address; + + /** 含量 */ + private Double content; + + /** 含量单位 */ + private String contentUnit; + + /** 性状 */ + private String character; + + /** 贮藏 */ + @ApiModelProperty(value="贮藏") + @Excel(name = "贮藏") + private String storage; + + /** 功能主治 */ + @ApiModelProperty(value="功能主治") + @Excel(name = "功能主治") + private String indications; + + + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("name", getName()) + .append("classification", getClassification()) + .append("category", getCategory()) + .append("brand", getBrand()) + .append("packaging", getPackaging()) + .append("manufacturers", getManufacturers()) + .append("treatmentType", getTreatmentType()) + .append("isImport", getIsImport()) + .append("ingredients", getIngredients()) + .append("usage", getUsage()) + .append("dosageForm", getDosageForm()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("delFlag", getDelFlag()) + .append("remark", getRemark()) + .append("code", getCode()) + .append("specifications", getSpecifications()) + .append("unit", getUnit()) + .append("adverseReaction", getAdverseReaction()) + .append("address", getAddress()) + .append("content", getContent()) + .append("contentUnit", getContentUnit()) + .append("character", getCharacter()) + .append("storage", getStorage()) + .append("indications", getIndications()) + .toString(); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthMedicineRealtimeStock.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthMedicineRealtimeStock.java new file mode 100644 index 0000000..a0e11ea --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthMedicineRealtimeStock.java @@ -0,0 +1,53 @@ +package com.ruoyi.health.domain; + +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_medicine_realtime_stock + * + * @author tianyongbao + * @date 2024-10-02 + */ +@ApiModel("药品实时库存对象") +@Data +public class HealthMedicineRealtimeStock extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键 */ + private String id; + + /** 药品id */ + @ApiModelProperty(value="药品id") + @Excel(name = "药品id") + private String medicineId; + + /** 库存 */ + @ApiModelProperty(value="库存") + @Excel(name = "库存") + private String inventory; + + /** 删除标志(0代表存在 1代表删除) */ + private String delFlag; + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("medicineId", getMedicineId()) + .append("inventory", getInventory()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("delFlag", getDelFlag()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthMedicineStockIn.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthMedicineStockIn.java new file mode 100644 index 0000000..40e5334 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/HealthMedicineStockIn.java @@ -0,0 +1,126 @@ +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_medicine_stock_in + * + * @author tianyongbao + * @date 2024-10-02 + */ +@ApiModel("药品入库清单对象") +@Data +public class HealthMedicineStockIn extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键 */ + private Long id; + + /** 药品id */ + @ApiModelProperty(value="药品id)") + @NotNull(message="药品id不能为空") + @Excel(name = "药品id") + private Long medicineId; + + /** 数量 */ + @ApiModelProperty(value="数量)") + @NotNull(message="数量不能为空") + @Excel(name = "数量") + private Double quantity; + + /** 生产日期 */ + @ApiModelProperty(value="生产日期)") + @NotNull(message="生产日期不能为空") + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date productionDate; + + /** 过期日期 */ + @ApiModelProperty(value="过期日期)") + @NotNull(message="过期日期不能为空") + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "过期日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date expiringDate; + + /** 购买日期 */ + @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 purchaseDate; + + /** 单价 */ + @ApiModelProperty(value="单价") + @Excel(name = "单价") + private Double purchasePrice; + + /** 删除标志(0代表存在 1代表删除) */ + private String delFlag; + + /** 入库编号 */ + @ApiModelProperty(value="入库编号)") + @NotNull(message="入库编号不能为空") + @Excel(name = "入库编号") + private String code; + + /** 使用状态 */ + @ApiModelProperty(value="使用状态)") + @NotNull(message="使用状态不能为空") + @Excel(name = "使用状态") + private String state; + + /** 剩余数量 */ + @ApiModelProperty(value="剩余数量") + @Excel(name = "剩余数量") + private Double leftCount; + + /** 使用数量 */ + @ApiModelProperty(value="使用数量") + @Excel(name = "使用数量") + private Double usedCount; + + /** 购买地址 */ + @ApiModelProperty(value="购买地址") + @Excel(name = "购买地址") + private String purchaseAddress; + + /** 总价 */ + @ApiModelProperty(value="总价") + @Excel(name = "总价") + private Double totalPrice; + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("medicineId", getMedicineId()) + .append("quantity", getQuantity()) + .append("productionDate", getProductionDate()) + .append("expiringDate", getExpiringDate()) + .append("purchaseDate", getPurchaseDate()) + .append("purchasePrice", getPurchasePrice()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("delFlag", getDelFlag()) + .append("remark", getRemark()) + .append("code", getCode()) + .append("state", getState()) + .append("leftCount", getLeftCount()) + .append("usedCount", getUsedCount()) + .append("purchaseAddress", getPurchaseAddress()) + .append("totalPrice", getTotalPrice()) + .toString(); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthActivityDto.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthActivityDto.java new file mode 100644 index 0000000..fc093e4 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthActivityDto.java @@ -0,0 +1,49 @@ +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_activity + * + * @author tianyongbao + * @date 2024-10-07 + */ +@ApiModel("活动记录Dto对象") +@Data +public class HealthActivityDto extends BaseEntity implements Serializable +{ + private static final long serialVersionUID = 1L; + + /** 活动名称 */ + @ApiModelProperty(value="活动名称") + private String name; + + /** 类型 */ + @ApiModelProperty(value="类型") + private String type; + + /** 活动地点 */ + @ApiModelProperty(value="活动地点") + private String place; + + /** 活动量 */ + @ApiModelProperty(value="活动量") + private String activityVolume; + + /** 开始时间 */ + @ApiModelProperty(value="开始时间") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date startTime; + + /** 结束时间 */ + @ApiModelProperty(value="结束时间") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date endTime; + +} 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/HealthHeightWeightRecordDto.java similarity index 66% rename from ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthWeightRecordDto.java rename to ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthHeightWeightRecordDto.java index 99ac4db..4d80c4e 100644 --- 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/HealthHeightWeightRecordDto.java @@ -8,28 +8,36 @@ import lombok.Data; import java.io.Serializable; import java.util.Date; - /** - * 体重记录Dto对象 health_weight_record + * 身高体重记录Dto对象 health_height_weight_record * * @author tianyongbao - * @date 2024-09-21 + * @date 2024-10-01 */ -@ApiModel("体重记录Dto对象") +@ApiModel("身高体重记录Dto对象") @Data -public class HealthWeightRecordDto extends BaseEntity implements Serializable +public class HealthHeightWeightRecordDto 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; + /** 体重 */ + @ApiModelProperty(value="体重") + private Double weight; + + /** 人员id */ + @ApiModelProperty(value="人员id") + private String personId; + + /** 身高 */ + @ApiModelProperty(value="身高") + private Double height; + + /** 开始日期 */ @ApiModelProperty(value="开始日期") private String startTime; 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 index 540cace..1539fa2 100644 --- 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 @@ -61,4 +61,8 @@ public class HealthMarRecordDto extends BaseEntity implements Serializable @ApiModelProperty(value="结束日期") private String endTime; + /** 药品id */ + @ApiModelProperty(value="药品id") + private Long medicineId; + } diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthMedicineBasicDto.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthMedicineBasicDto.java new file mode 100644 index 0000000..9286c9f --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthMedicineBasicDto.java @@ -0,0 +1,67 @@ +package com.ruoyi.health.domain.dto; + +import lombok.Data; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +/** + * 药品基础信息Dto对象 health_medicine_basic + * + * @author tianyongbao + * @date 2024-10-02 + */ +@ApiModel("药品基础信息Dto对象") +@Data +public class HealthMedicineBasicDto implements Serializable +{ + private static final long serialVersionUID = 1L; + + /** 药品名称 */ + @ApiModelProperty(value="药品名称") + private String name; + + /** 药品分类 */ + @ApiModelProperty(value="药品分类") + private String classification; + + /** 类别 */ + @ApiModelProperty(value="类别") + private String category; + + /** 品牌 */ + @ApiModelProperty(value="品牌") + private String brand; + + /** 药品包装 */ + @ApiModelProperty(value="药品包装") + private String packaging; + + /** 生产厂家 */ + @ApiModelProperty(value="生产厂家") + private String manufacturers; + + /** 治疗类型 */ + @ApiModelProperty(value="治疗类型") + private String treatmentType; + + /** 是否进口 */ + @ApiModelProperty(value="是否进口") + private String isImport; + + /** 药品成分 */ + @ApiModelProperty(value="药品成分") + private String ingredients; + + /** 用法用量 */ + @ApiModelProperty(value="用法用量") + private String usage; + + /** 药品剂型 */ + @ApiModelProperty(value="药品剂型") + private String dosageForm; + + /** 药品编码 */ + @ApiModelProperty(value="药品编码") + private String code; + +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthMedicineRealtimeStockDto.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthMedicineRealtimeStockDto.java new file mode 100644 index 0000000..01f487a --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthMedicineRealtimeStockDto.java @@ -0,0 +1,29 @@ +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_medicine_realtime_stock + * + * @author tianyongbao + * @date 2024-10-02 + */ +@ApiModel("药品实时库存Dto对象") +@Data +public class HealthMedicineRealtimeStockDto extends BaseEntity implements Serializable +{ + private static final long serialVersionUID = 1L; + + /** 药品id */ + @ApiModelProperty(value="药品id") + private String medicineId; + + /** 库存 */ + @ApiModelProperty(value="库存") + private String inventory; + +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthMedicineStockInDto.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthMedicineStockInDto.java new file mode 100644 index 0000000..22e9992 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthMedicineStockInDto.java @@ -0,0 +1,70 @@ +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_medicine_stock_in + * + * @author tianyongbao + * @date 2024-10-02 + */ +@ApiModel("药品入库清单Dto对象") +@Data +public class HealthMedicineStockInDto extends BaseEntity implements Serializable +{ + private static final long serialVersionUID = 1L; + + /** 药品id */ + @ApiModelProperty(value="药品id") + private Long medicineId; + + /** 数量 */ + @ApiModelProperty(value="数量") + private Double quantity; + + /** 生产日期 */ + @ApiModelProperty(value="生产日期") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date productionDate; + + /** 过期日期 */ + @ApiModelProperty(value="过期日期") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date expiringDate; + + /** 购买日期 */ + @ApiModelProperty(value="购买日期") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date purchaseDate; + + /** 购买价格 */ + @ApiModelProperty(value="购买价格") + private Double purchasePrice; + + /** 入库编号 */ + @ApiModelProperty(value="入库编号") + private String code; + + /** 使用状态 */ + @ApiModelProperty(value="使用状态") + private String state; + + /** 剩余数量 */ + @ApiModelProperty(value="剩余数量") + private Double leftCount; + + /** 使用数量 */ + @ApiModelProperty(value="使用数量") + private Double usedCount; + + /** 购买地址 */ + @ApiModelProperty(value="购买地址") + private String purchaseAddress; + +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthActivityVo.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthActivityVo.java new file mode 100644 index 0000000..ba19cdf --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthActivityVo.java @@ -0,0 +1,17 @@ +package com.ruoyi.health.domain.vo; + +import com.ruoyi.health.domain.HealthActivity; +import lombok.Data; +import io.swagger.annotations.ApiModel; +/** + * 活动记录Vo对象 health_activity + * + * @author tianyongbao + * @date 2024-10-07 + */ +@ApiModel("活动记录Vo对象") +@Data +public class HealthActivityVo extends HealthActivity +{ + +} 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/HealthHeightWeightRecordVo.java similarity index 59% rename from ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthWeightRecordVo.java rename to ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthHeightWeightRecordVo.java index 1dcbda7..2709861 100644 --- 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/HealthHeightWeightRecordVo.java @@ -1,19 +1,19 @@ package com.ruoyi.health.domain.vo; import com.ruoyi.common.core.annotation.Excel; -import com.ruoyi.health.domain.HealthWeightRecord; +import com.ruoyi.health.domain.HealthHeightWeightRecord; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import io.swagger.annotations.ApiModel; /** - * 体重记录Vo对象 health_weight_record + * 身高体重记录Vo对象 health_height_weight_record * * @author tianyongbao - * @date 2024-09-21 + * @date 2024-10-01 */ -@ApiModel("体重记录Vo对象") +@ApiModel("身高体重记录Vo对象") @Data -public class HealthWeightRecordVo extends HealthWeightRecord +public class HealthHeightWeightRecordVo extends HealthHeightWeightRecord { /** 人员名称 */ @ApiModelProperty(value="人员姓名)") diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthMedicineBasicVo.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthMedicineBasicVo.java new file mode 100644 index 0000000..a1de0a1 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthMedicineBasicVo.java @@ -0,0 +1,17 @@ +package com.ruoyi.health.domain.vo; + +import com.ruoyi.health.domain.HealthMedicineBasic; +import lombok.Data; +import io.swagger.annotations.ApiModel; +/** + * 药品基础信息Vo对象 health_medicine_basic + * + * @author tianyongbao + * @date 2024-10-02 + */ +@ApiModel("药品基础信息Vo对象") +@Data +public class HealthMedicineBasicVo extends HealthMedicineBasic +{ + +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthMedicineRealtimeStockVo.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthMedicineRealtimeStockVo.java new file mode 100644 index 0000000..69dae72 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthMedicineRealtimeStockVo.java @@ -0,0 +1,17 @@ +package com.ruoyi.health.domain.vo; + +import com.ruoyi.health.domain.HealthMedicineRealtimeStock; +import lombok.Data; +import io.swagger.annotations.ApiModel; +/** + * 药品实时库存Vo对象 health_medicine_realtime_stock + * + * @author tianyongbao + * @date 2024-10-02 + */ +@ApiModel("药品实时库存Vo对象") +@Data +public class HealthMedicineRealtimeStockVo extends HealthMedicineRealtimeStock +{ + +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthMedicineStockInVo.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthMedicineStockInVo.java new file mode 100644 index 0000000..cb15edf --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/vo/HealthMedicineStockInVo.java @@ -0,0 +1,22 @@ +package com.ruoyi.health.domain.vo; + +import com.ruoyi.common.core.annotation.Excel; +import com.ruoyi.health.domain.HealthMedicineStockIn; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import io.swagger.annotations.ApiModel; +/** + * 药品入库清单Vo对象 health_medicine_stock_in + * + * @author tianyongbao + * @date 2024-10-02 + */ +@ApiModel("药品入库清单Vo对象") +@Data +public class HealthMedicineStockInVo extends HealthMedicineStockIn +{ + /** 人员名称 */ + @ApiModelProperty(value="药品名称)") + @Excel(name = "药品名称") + private String medicineName; +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthActivityMapper.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthActivityMapper.java new file mode 100644 index 0000000..baa423d --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthActivityMapper.java @@ -0,0 +1,82 @@ +package com.ruoyi.health.mapper; + +import com.ruoyi.common.datascope.annotation.DataScope; +import com.ruoyi.health.domain.HealthActivity; +import com.ruoyi.health.domain.dto.HealthActivityDto; +import com.ruoyi.health.domain.vo.HealthActivityVo; + +import java.util.List; + +/** + * 活动记录Mapper接口 + * + * @author tianyongbao + * @date 2024-10-07 + */ +public interface HealthActivityMapper +{ + /** + * 查询活动记录 + * + * @param id 活动记录主键 + * @return 活动记录 + */ + public HealthActivityVo selectHealthActivityById(Long id); + + /** + * 查询活动记录列表 + * + * @param healthActivityDto 活动记录 + * @return 活动记录集合 + */ + @DataScope(businessAlias = "a") + public List selectHealthActivityList(HealthActivityDto healthActivityDto); + + /** + * 新增活动记录 + * + * @param healthActivity 活动记录 + * @return 结果 + */ + public int insertHealthActivity(HealthActivity healthActivity); + + /** + * 修改活动记录 + * + * @param healthActivity 活动记录 + * @return 结果 + */ + public int updateHealthActivity(HealthActivity healthActivity); + + /** + * 删除活动记录 + * + * @param id 活动记录主键 + * @return 结果 + */ + public int deleteHealthActivityById(Long id); + + /** + * 批量删除活动记录 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHealthActivityByIds(Long[] ids); + + /** + * 逻辑删除活动记录 + * + * @param id 活动记录主键 + * @return 结果 + */ + public int removeHealthActivityById(Long id); + + /** + * 批量逻辑删除活动记录 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int removeHealthActivityByIds(Long[] ids); +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthHeightWeightRecordMapper.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthHeightWeightRecordMapper.java new file mode 100644 index 0000000..0c05440 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthHeightWeightRecordMapper.java @@ -0,0 +1,82 @@ +package com.ruoyi.health.mapper; + +import com.ruoyi.common.datascope.annotation.DataScope; +import com.ruoyi.health.domain.HealthHeightWeightRecord; +import com.ruoyi.health.domain.dto.HealthHeightWeightRecordDto; +import com.ruoyi.health.domain.vo.HealthHeightWeightRecordVo; + +import java.util.List; + +/** + * 身高体重记录Mapper接口 + * + * @author tianyongbao + * @date 2024-10-01 + */ +public interface HealthHeightWeightRecordMapper +{ + /** + * 查询身高体重记录 + * + * @param id 身高体重记录主键 + * @return 身高体重记录 + */ + public HealthHeightWeightRecordVo selectHealthHeightWeightRecordById(Long id); + + /** + * 查询身高体重记录列表 + * + * @param healthHeightWeightRecordDto 身高体重记录 + * @return 身高体重记录集合 + */ + @DataScope(businessAlias = "a") + public List selectHealthHeightWeightRecordList(HealthHeightWeightRecordDto healthHeightWeightRecordDto); + + /** + * 新增身高体重记录 + * + * @param healthHeightWeightRecord 身高体重记录 + * @return 结果 + */ + public int insertHealthHeightWeightRecord(HealthHeightWeightRecord healthHeightWeightRecord); + + /** + * 修改身高体重记录 + * + * @param healthHeightWeightRecord 身高体重记录 + * @return 结果 + */ + public int updateHealthHeightWeightRecord(HealthHeightWeightRecord healthHeightWeightRecord); + + /** + * 删除身高体重记录 + * + * @param id 身高体重记录主键 + * @return 结果 + */ + public int deleteHealthHeightWeightRecordById(Long id); + + /** + * 批量删除身高体重记录 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHealthHeightWeightRecordByIds(Long[] ids); + + /** + * 逻辑删除身高体重记录 + * + * @param id 身高体重记录主键 + * @return 结果 + */ + public int removeHealthHeightWeightRecordById(Long id); + + /** + * 批量逻辑删除身高体重记录 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int removeHealthHeightWeightRecordByIds(Long[] ids); +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthMedicineBasicMapper.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthMedicineBasicMapper.java new file mode 100644 index 0000000..d8c07e4 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthMedicineBasicMapper.java @@ -0,0 +1,79 @@ +package com.ruoyi.health.mapper; + +import java.util.List; +import com.ruoyi.health.domain.HealthMedicineBasic; +import com.ruoyi.health.domain.dto.HealthMedicineBasicDto; +import com.ruoyi.health.domain.vo.HealthMedicineBasicVo; + +/** + * 药品基础信息Mapper接口 + * + * @author tianyongbao + * @date 2024-10-02 + */ +public interface HealthMedicineBasicMapper +{ + /** + * 查询药品基础信息 + * + * @param id 药品基础信息主键 + * @return 药品基础信息 + */ + public HealthMedicineBasicVo selectHealthMedicineBasicById(Long id); + + /** + * 查询药品基础信息列表 + * + * @param healthMedicineBasicDto 药品基础信息 + * @return 药品基础信息集合 + */ + public List selectHealthMedicineBasicList(HealthMedicineBasicDto healthMedicineBasicDto); + + /** + * 新增药品基础信息 + * + * @param healthMedicineBasic 药品基础信息 + * @return 结果 + */ + public int insertHealthMedicineBasic(HealthMedicineBasic healthMedicineBasic); + + /** + * 修改药品基础信息 + * + * @param healthMedicineBasic 药品基础信息 + * @return 结果 + */ + public int updateHealthMedicineBasic(HealthMedicineBasic healthMedicineBasic); + + /** + * 删除药品基础信息 + * + * @param id 药品基础信息主键 + * @return 结果 + */ + public int deleteHealthMedicineBasicById(Long id); + + /** + * 批量删除药品基础信息 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHealthMedicineBasicByIds(Long[] ids); + + /** + * 逻辑删除药品基础信息 + * + * @param id 药品基础信息主键 + * @return 结果 + */ + public int removeHealthMedicineBasicById(Long id); + + /** + * 批量逻辑删除药品基础信息 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int removeHealthMedicineBasicByIds(Long[] ids); +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthMedicineRealtimeStockMapper.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthMedicineRealtimeStockMapper.java new file mode 100644 index 0000000..f6805f1 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthMedicineRealtimeStockMapper.java @@ -0,0 +1,79 @@ +package com.ruoyi.health.mapper; + +import java.util.List; +import com.ruoyi.health.domain.HealthMedicineRealtimeStock; +import com.ruoyi.health.domain.dto.HealthMedicineRealtimeStockDto; +import com.ruoyi.health.domain.vo.HealthMedicineRealtimeStockVo; + +/** + * 药品实时库存Mapper接口 + * + * @author tianyongbao + * @date 2024-10-02 + */ +public interface HealthMedicineRealtimeStockMapper +{ + /** + * 查询药品实时库存 + * + * @param id 药品实时库存主键 + * @return 药品实时库存 + */ + public HealthMedicineRealtimeStockVo selectHealthMedicineRealtimeStockById(String id); + + /** + * 查询药品实时库存列表 + * + * @param healthMedicineRealtimeStockDto 药品实时库存 + * @return 药品实时库存集合 + */ + public List selectHealthMedicineRealtimeStockList(HealthMedicineRealtimeStockDto healthMedicineRealtimeStockDto); + + /** + * 新增药品实时库存 + * + * @param healthMedicineRealtimeStock 药品实时库存 + * @return 结果 + */ + public int insertHealthMedicineRealtimeStock(HealthMedicineRealtimeStock healthMedicineRealtimeStock); + + /** + * 修改药品实时库存 + * + * @param healthMedicineRealtimeStock 药品实时库存 + * @return 结果 + */ + public int updateHealthMedicineRealtimeStock(HealthMedicineRealtimeStock healthMedicineRealtimeStock); + + /** + * 删除药品实时库存 + * + * @param id 药品实时库存主键 + * @return 结果 + */ + public int deleteHealthMedicineRealtimeStockById(String id); + + /** + * 批量删除药品实时库存 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHealthMedicineRealtimeStockByIds(String[] ids); + + /** + * 逻辑删除药品实时库存 + * + * @param id 药品实时库存主键 + * @return 结果 + */ + public int removeHealthMedicineRealtimeStockById(String id); + + /** + * 批量逻辑删除药品实时库存 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int removeHealthMedicineRealtimeStockByIds(String[] ids); +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthMedicineStockInMapper.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthMedicineStockInMapper.java new file mode 100644 index 0000000..b773f70 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthMedicineStockInMapper.java @@ -0,0 +1,79 @@ +package com.ruoyi.health.mapper; + +import java.util.List; +import com.ruoyi.health.domain.HealthMedicineStockIn; +import com.ruoyi.health.domain.dto.HealthMedicineStockInDto; +import com.ruoyi.health.domain.vo.HealthMedicineStockInVo; + +/** + * 药品入库清单Mapper接口 + * + * @author tianyongbao + * @date 2024-10-02 + */ +public interface HealthMedicineStockInMapper +{ + /** + * 查询药品入库清单 + * + * @param id 药品入库清单主键 + * @return 药品入库清单 + */ + public HealthMedicineStockInVo selectHealthMedicineStockInById(Long id); + + /** + * 查询药品入库清单列表 + * + * @param healthMedicineStockInDto 药品入库清单 + * @return 药品入库清单集合 + */ + public List selectHealthMedicineStockInList(HealthMedicineStockInDto healthMedicineStockInDto); + + /** + * 新增药品入库清单 + * + * @param healthMedicineStockIn 药品入库清单 + * @return 结果 + */ + public int insertHealthMedicineStockIn(HealthMedicineStockIn healthMedicineStockIn); + + /** + * 修改药品入库清单 + * + * @param healthMedicineStockIn 药品入库清单 + * @return 结果 + */ + public int updateHealthMedicineStockIn(HealthMedicineStockIn healthMedicineStockIn); + + /** + * 删除药品入库清单 + * + * @param id 药品入库清单主键 + * @return 结果 + */ + public int deleteHealthMedicineStockInById(Long id); + + /** + * 批量删除药品入库清单 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHealthMedicineStockInByIds(Long[] ids); + + /** + * 逻辑删除药品入库清单 + * + * @param id 药品入库清单主键 + * @return 结果 + */ + public int removeHealthMedicineStockInById(Long id); + + /** + * 批量逻辑删除药品入库清单 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int removeHealthMedicineStockInByIds(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 deleted file mode 100644 index c17c838..0000000 --- a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/mapper/HealthWeightRecordMapper.java +++ /dev/null @@ -1,82 +0,0 @@ -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/IHealthActivityService.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthActivityService.java new file mode 100644 index 0000000..9be3ca2 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthActivityService.java @@ -0,0 +1,63 @@ +package com.ruoyi.health.service; + +import java.util.List; +import com.ruoyi.health.domain.HealthActivity; +import com.ruoyi.health.domain.dto.HealthActivityDto; +import com.ruoyi.health.domain.vo.HealthActivityVo; + +/** + * 活动记录Service接口 + * + * @author tianyongbao + * @date 2024-10-07 + */ +public interface IHealthActivityService +{ + /** + * 查询活动记录 + * + * @param id 活动记录主键 + * @return 活动记录 + */ + public HealthActivityVo selectHealthActivityById(Long id); + + /** + * 查询活动记录列表 + * + * @param healthActivityDto 活动记录 + * @return 活动记录集合 + */ + public List selectHealthActivityList(HealthActivityDto healthActivityDto); + + /** + * 新增活动记录 + * + * @param healthActivity 活动记录 + * @return 结果 + */ + public int insertHealthActivity(HealthActivity healthActivity); + + /** + * 修改活动记录 + * + * @param healthActivity 活动记录 + * @return 结果 + */ + public int updateHealthActivity(HealthActivity healthActivity); + + /** + * 批量删除活动记录 + * + * @param ids 需要删除的活动记录主键集合 + * @return 结果 + */ + public int deleteHealthActivityByIds(Long[] ids); + + /** + * 删除活动记录信息 + * + * @param id 活动记录主键 + * @return 结果 + */ + public int deleteHealthActivityById(Long id); +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthHeightWeightRecordService.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthHeightWeightRecordService.java new file mode 100644 index 0000000..94be067 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthHeightWeightRecordService.java @@ -0,0 +1,63 @@ +package com.ruoyi.health.service; + +import java.util.List; +import com.ruoyi.health.domain.HealthHeightWeightRecord; +import com.ruoyi.health.domain.dto.HealthHeightWeightRecordDto; +import com.ruoyi.health.domain.vo.HealthHeightWeightRecordVo; + +/** + * 身高体重记录Service接口 + * + * @author tianyongbao + * @date 2024-10-01 + */ +public interface IHealthHeightWeightRecordService +{ + /** + * 查询身高体重记录 + * + * @param id 身高体重记录主键 + * @return 身高体重记录 + */ + public HealthHeightWeightRecordVo selectHealthHeightWeightRecordById(Long id); + + /** + * 查询身高体重记录列表 + * + * @param healthHeightWeightRecordDto 身高体重记录 + * @return 身高体重记录集合 + */ + public List selectHealthHeightWeightRecordList(HealthHeightWeightRecordDto healthHeightWeightRecordDto); + + /** + * 新增身高体重记录 + * + * @param healthHeightWeightRecord 身高体重记录 + * @return 结果 + */ + public int insertHealthHeightWeightRecord(HealthHeightWeightRecord healthHeightWeightRecord); + + /** + * 修改身高体重记录 + * + * @param healthHeightWeightRecord 身高体重记录 + * @return 结果 + */ + public int updateHealthHeightWeightRecord(HealthHeightWeightRecord healthHeightWeightRecord); + + /** + * 批量删除身高体重记录 + * + * @param ids 需要删除的身高体重记录主键集合 + * @return 结果 + */ + public int deleteHealthHeightWeightRecordByIds(Long[] ids); + + /** + * 删除身高体重记录信息 + * + * @param id 身高体重记录主键 + * @return 结果 + */ + public int deleteHealthHeightWeightRecordById(Long id); +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthMedicineBasicService.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthMedicineBasicService.java new file mode 100644 index 0000000..6a8ac69 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthMedicineBasicService.java @@ -0,0 +1,63 @@ +package com.ruoyi.health.service; + +import java.util.List; +import com.ruoyi.health.domain.HealthMedicineBasic; +import com.ruoyi.health.domain.dto.HealthMedicineBasicDto; +import com.ruoyi.health.domain.vo.HealthMedicineBasicVo; + +/** + * 药品基础信息Service接口 + * + * @author tianyongbao + * @date 2024-10-02 + */ +public interface IHealthMedicineBasicService +{ + /** + * 查询药品基础信息 + * + * @param id 药品基础信息主键 + * @return 药品基础信息 + */ + public HealthMedicineBasicVo selectHealthMedicineBasicById(Long id); + + /** + * 查询药品基础信息列表 + * + * @param healthMedicineBasicDto 药品基础信息 + * @return 药品基础信息集合 + */ + public List selectHealthMedicineBasicList(HealthMedicineBasicDto healthMedicineBasicDto); + + /** + * 新增药品基础信息 + * + * @param healthMedicineBasic 药品基础信息 + * @return 结果 + */ + public int insertHealthMedicineBasic(HealthMedicineBasic healthMedicineBasic); + + /** + * 修改药品基础信息 + * + * @param healthMedicineBasic 药品基础信息 + * @return 结果 + */ + public int updateHealthMedicineBasic(HealthMedicineBasic healthMedicineBasic); + + /** + * 批量删除药品基础信息 + * + * @param ids 需要删除的药品基础信息主键集合 + * @return 结果 + */ + public int deleteHealthMedicineBasicByIds(Long[] ids); + + /** + * 删除药品基础信息信息 + * + * @param id 药品基础信息主键 + * @return 结果 + */ + public int deleteHealthMedicineBasicById(Long id); +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthMedicineRealtimeStockService.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthMedicineRealtimeStockService.java new file mode 100644 index 0000000..373ce71 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthMedicineRealtimeStockService.java @@ -0,0 +1,63 @@ +package com.ruoyi.health.service; + +import java.util.List; +import com.ruoyi.health.domain.HealthMedicineRealtimeStock; +import com.ruoyi.health.domain.dto.HealthMedicineRealtimeStockDto; +import com.ruoyi.health.domain.vo.HealthMedicineRealtimeStockVo; + +/** + * 药品实时库存Service接口 + * + * @author tianyongbao + * @date 2024-10-02 + */ +public interface IHealthMedicineRealtimeStockService +{ + /** + * 查询药品实时库存 + * + * @param id 药品实时库存主键 + * @return 药品实时库存 + */ + public HealthMedicineRealtimeStockVo selectHealthMedicineRealtimeStockById(String id); + + /** + * 查询药品实时库存列表 + * + * @param healthMedicineRealtimeStockDto 药品实时库存 + * @return 药品实时库存集合 + */ + public List selectHealthMedicineRealtimeStockList(HealthMedicineRealtimeStockDto healthMedicineRealtimeStockDto); + + /** + * 新增药品实时库存 + * + * @param healthMedicineRealtimeStock 药品实时库存 + * @return 结果 + */ + public int insertHealthMedicineRealtimeStock(HealthMedicineRealtimeStock healthMedicineRealtimeStock); + + /** + * 修改药品实时库存 + * + * @param healthMedicineRealtimeStock 药品实时库存 + * @return 结果 + */ + public int updateHealthMedicineRealtimeStock(HealthMedicineRealtimeStock healthMedicineRealtimeStock); + + /** + * 批量删除药品实时库存 + * + * @param ids 需要删除的药品实时库存主键集合 + * @return 结果 + */ + public int deleteHealthMedicineRealtimeStockByIds(String[] ids); + + /** + * 删除药品实时库存信息 + * + * @param id 药品实时库存主键 + * @return 结果 + */ + public int deleteHealthMedicineRealtimeStockById(String id); +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthMedicineStockInService.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthMedicineStockInService.java new file mode 100644 index 0000000..5c76292 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthMedicineStockInService.java @@ -0,0 +1,63 @@ +package com.ruoyi.health.service; + +import java.util.List; +import com.ruoyi.health.domain.HealthMedicineStockIn; +import com.ruoyi.health.domain.dto.HealthMedicineStockInDto; +import com.ruoyi.health.domain.vo.HealthMedicineStockInVo; + +/** + * 药品入库清单Service接口 + * + * @author tianyongbao + * @date 2024-10-02 + */ +public interface IHealthMedicineStockInService +{ + /** + * 查询药品入库清单 + * + * @param id 药品入库清单主键 + * @return 药品入库清单 + */ + public HealthMedicineStockInVo selectHealthMedicineStockInById(Long id); + + /** + * 查询药品入库清单列表 + * + * @param healthMedicineStockInDto 药品入库清单 + * @return 药品入库清单集合 + */ + public List selectHealthMedicineStockInList(HealthMedicineStockInDto healthMedicineStockInDto); + + /** + * 新增药品入库清单 + * + * @param healthMedicineStockIn 药品入库清单 + * @return 结果 + */ + public int insertHealthMedicineStockIn(HealthMedicineStockIn healthMedicineStockIn); + + /** + * 修改药品入库清单 + * + * @param healthMedicineStockIn 药品入库清单 + * @return 结果 + */ + public int updateHealthMedicineStockIn(HealthMedicineStockIn healthMedicineStockIn); + + /** + * 批量删除药品入库清单 + * + * @param ids 需要删除的药品入库清单主键集合 + * @return 结果 + */ + public int deleteHealthMedicineStockInByIds(Long[] ids); + + /** + * 删除药品入库清单信息 + * + * @param id 药品入库清单主键 + * @return 结果 + */ + public int deleteHealthMedicineStockInById(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 deleted file mode 100644 index df598fe..0000000 --- a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/IHealthWeightRecordService.java +++ /dev/null @@ -1,63 +0,0 @@ -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/HealthActivityServiceImpl.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthActivityServiceImpl.java new file mode 100644 index 0000000..8bd0191 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthActivityServiceImpl.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.HealthActivity; +import com.ruoyi.health.domain.dto.HealthActivityDto; +import com.ruoyi.health.domain.vo.HealthActivityVo; +import com.ruoyi.health.mapper.HealthActivityMapper; +import com.ruoyi.health.service.IHealthActivityService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +/** + * 活动记录Service业务层处理 + * + * @author tianyongbao + * @date 2024-10-07 + */ +@Service +public class HealthActivityServiceImpl implements IHealthActivityService +{ + @Resource + private HealthActivityMapper healthActivityMapper; + + /** + * 查询活动记录 + * + * @param id 活动记录主键 + * @return 活动记录 + */ + @Override + public HealthActivityVo selectHealthActivityById(Long id) + { + return healthActivityMapper.selectHealthActivityById(id); + } + + /** + * 查询活动记录列表 + * + * @param healthActivityDto 活动记录 + * @return 活动记录 + */ + @Override + public List selectHealthActivityList(HealthActivityDto healthActivityDto) + { + return healthActivityMapper.selectHealthActivityList(healthActivityDto); + } + + /** + * 新增活动记录 + * + * @param healthActivity 活动记录 + * @return 结果 + */ + @Override + public int insertHealthActivity(HealthActivity healthActivity) + { + healthActivity.setCreateBy(SecurityUtils.getUsername()); + healthActivity.setCreateTime(DateUtils.getNowDate()); + healthActivity.setId(IdWorker.getId()); + return healthActivityMapper.insertHealthActivity(healthActivity); + } + + /** + * 修改活动记录 + * + * @param healthActivity 活动记录 + * @return 结果 + */ + @Override + public int updateHealthActivity(HealthActivity healthActivity) + { + healthActivity.setUpdateBy(SecurityUtils.getUsername()); + healthActivity.setUpdateTime(DateUtils.getNowDate()); + return healthActivityMapper.updateHealthActivity(healthActivity); + } + + /** + * 批量删除活动记录 + * + * @param ids 需要删除的活动记录主键 + * @return 结果 + */ + @Override + public int deleteHealthActivityByIds(Long[] ids) + { + return healthActivityMapper.removeHealthActivityByIds(ids); + } + + /** + * 删除活动记录信息 + * + * @param id 活动记录主键 + * @return 结果 + */ + @Override + public int deleteHealthActivityById(Long id) + { + return healthActivityMapper.removeHealthActivityById(id); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthHeightWeightRecordServiceImpl.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthHeightWeightRecordServiceImpl.java new file mode 100644 index 0000000..6bd9f58 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthHeightWeightRecordServiceImpl.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.HealthHeightWeightRecord; +import com.ruoyi.health.domain.dto.HealthHeightWeightRecordDto; +import com.ruoyi.health.domain.vo.HealthHeightWeightRecordVo; +import com.ruoyi.health.mapper.HealthHeightWeightRecordMapper; +import com.ruoyi.health.service.IHealthHeightWeightRecordService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +/** + * 身高体重记录Service业务层处理 + * + * @author tianyongbao + * @date 2024-10-01 + */ +@Service +public class HealthHeightWeightRecordServiceImpl implements IHealthHeightWeightRecordService +{ + @Resource + private HealthHeightWeightRecordMapper healthHeightWeightRecordMapper; + + /** + * 查询身高体重记录 + * + * @param id 身高体重记录主键 + * @return 身高体重记录 + */ + @Override + public HealthHeightWeightRecordVo selectHealthHeightWeightRecordById(Long id) + { + return healthHeightWeightRecordMapper.selectHealthHeightWeightRecordById(id); + } + + /** + * 查询身高体重记录列表 + * + * @param healthHeightWeightRecordDto 身高体重记录 + * @return 身高体重记录 + */ + @Override + public List selectHealthHeightWeightRecordList(HealthHeightWeightRecordDto healthHeightWeightRecordDto) + { + return healthHeightWeightRecordMapper.selectHealthHeightWeightRecordList(healthHeightWeightRecordDto); + } + + /** + * 新增身高体重记录 + * + * @param healthHeightWeightRecord 身高体重记录 + * @return 结果 + */ + @Override + public int insertHealthHeightWeightRecord(HealthHeightWeightRecord healthHeightWeightRecord) + { + healthHeightWeightRecord.setCreateBy(SecurityUtils.getUsername()); + healthHeightWeightRecord.setCreateTime(DateUtils.getNowDate()); + healthHeightWeightRecord.setId(IdWorker.getId()); + return healthHeightWeightRecordMapper.insertHealthHeightWeightRecord(healthHeightWeightRecord); + } + + /** + * 修改身高体重记录 + * + * @param healthHeightWeightRecord 身高体重记录 + * @return 结果 + */ + @Override + public int updateHealthHeightWeightRecord(HealthHeightWeightRecord healthHeightWeightRecord) + { + healthHeightWeightRecord.setUpdateBy(SecurityUtils.getUsername()); + healthHeightWeightRecord.setUpdateTime(DateUtils.getNowDate()); + return healthHeightWeightRecordMapper.updateHealthHeightWeightRecord(healthHeightWeightRecord); + } + + /** + * 批量删除身高体重记录 + * + * @param ids 需要删除的身高体重记录主键 + * @return 结果 + */ + @Override + public int deleteHealthHeightWeightRecordByIds(Long[] ids) + { + return healthHeightWeightRecordMapper.removeHealthHeightWeightRecordByIds(ids); + } + + /** + * 删除身高体重记录信息 + * + * @param id 身高体重记录主键 + * @return 结果 + */ + @Override + public int deleteHealthHeightWeightRecordById(Long id) + { + return healthHeightWeightRecordMapper.removeHealthHeightWeightRecordById(id); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthMedicineBasicServiceImpl.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthMedicineBasicServiceImpl.java new file mode 100644 index 0000000..9bf9ca0 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthMedicineBasicServiceImpl.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.HealthMedicineBasic; +import com.ruoyi.health.domain.dto.HealthMedicineBasicDto; +import com.ruoyi.health.domain.vo.HealthMedicineBasicVo; +import com.ruoyi.health.mapper.HealthMedicineBasicMapper; +import com.ruoyi.health.service.IHealthMedicineBasicService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +/** + * 药品基础信息Service业务层处理 + * + * @author tianyongbao + * @date 2024-10-02 + */ +@Service +public class HealthMedicineBasicServiceImpl implements IHealthMedicineBasicService +{ + @Resource + private HealthMedicineBasicMapper healthMedicineBasicMapper; + + /** + * 查询药品基础信息 + * + * @param id 药品基础信息主键 + * @return 药品基础信息 + */ + @Override + public HealthMedicineBasicVo selectHealthMedicineBasicById(Long id) + { + return healthMedicineBasicMapper.selectHealthMedicineBasicById(id); + } + + /** + * 查询药品基础信息列表 + * + * @param healthMedicineBasicDto 药品基础信息 + * @return 药品基础信息 + */ + @Override + public List selectHealthMedicineBasicList(HealthMedicineBasicDto healthMedicineBasicDto) + { + return healthMedicineBasicMapper.selectHealthMedicineBasicList(healthMedicineBasicDto); + } + + /** + * 新增药品基础信息 + * + * @param healthMedicineBasic 药品基础信息 + * @return 结果 + */ + @Override + public int insertHealthMedicineBasic(HealthMedicineBasic healthMedicineBasic) + { + healthMedicineBasic.setCreateBy(SecurityUtils.getUsername()); + healthMedicineBasic.setCreateTime(DateUtils.getNowDate()); + healthMedicineBasic.setId(IdWorker.getId()); + return healthMedicineBasicMapper.insertHealthMedicineBasic(healthMedicineBasic); + } + + /** + * 修改药品基础信息 + * + * @param healthMedicineBasic 药品基础信息 + * @return 结果 + */ + @Override + public int updateHealthMedicineBasic(HealthMedicineBasic healthMedicineBasic) + { + healthMedicineBasic.setUpdateBy(SecurityUtils.getUsername()); + healthMedicineBasic.setUpdateTime(DateUtils.getNowDate()); + return healthMedicineBasicMapper.updateHealthMedicineBasic(healthMedicineBasic); + } + + /** + * 批量删除药品基础信息 + * + * @param ids 需要删除的药品基础信息主键 + * @return 结果 + */ + @Override + public int deleteHealthMedicineBasicByIds(Long[] ids) + { + return healthMedicineBasicMapper.removeHealthMedicineBasicByIds(ids); + } + + /** + * 删除药品基础信息信息 + * + * @param id 药品基础信息主键 + * @return 结果 + */ + @Override + public int deleteHealthMedicineBasicById(Long id) + { + return healthMedicineBasicMapper.removeHealthMedicineBasicById(id); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthMedicineRealtimeStockServiceImpl.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthMedicineRealtimeStockServiceImpl.java new file mode 100644 index 0000000..0350ba6 --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthMedicineRealtimeStockServiceImpl.java @@ -0,0 +1,101 @@ +package com.ruoyi.health.service.impl; + +import java.util.List; +import com.ruoyi.common.core.utils.DateUtils; +import com.ruoyi.common.security.utils.SecurityUtils; +import javax.annotation.Resource; +import org.springframework.stereotype.Service; +import com.ruoyi.health.mapper.HealthMedicineRealtimeStockMapper; +import com.ruoyi.health.domain.HealthMedicineRealtimeStock; +import com.ruoyi.health.domain.dto.HealthMedicineRealtimeStockDto; +import com.ruoyi.health.domain.vo.HealthMedicineRealtimeStockVo; +import com.ruoyi.health.service.IHealthMedicineRealtimeStockService; + +/** + * 药品实时库存Service业务层处理 + * + * @author tianyongbao + * @date 2024-10-02 + */ +@Service +public class HealthMedicineRealtimeStockServiceImpl implements IHealthMedicineRealtimeStockService +{ + @Resource + private HealthMedicineRealtimeStockMapper healthMedicineRealtimeStockMapper; + + /** + * 查询药品实时库存 + * + * @param id 药品实时库存主键 + * @return 药品实时库存 + */ + @Override + public HealthMedicineRealtimeStockVo selectHealthMedicineRealtimeStockById(String id) + { + return healthMedicineRealtimeStockMapper.selectHealthMedicineRealtimeStockById(id); + } + + /** + * 查询药品实时库存列表 + * + * @param healthMedicineRealtimeStockDto 药品实时库存 + * @return 药品实时库存 + */ + @Override + public List selectHealthMedicineRealtimeStockList(HealthMedicineRealtimeStockDto healthMedicineRealtimeStockDto) + { + return healthMedicineRealtimeStockMapper.selectHealthMedicineRealtimeStockList(healthMedicineRealtimeStockDto); + } + + /** + * 新增药品实时库存 + * + * @param healthMedicineRealtimeStock 药品实时库存 + * @return 结果 + */ + @Override + public int insertHealthMedicineRealtimeStock(HealthMedicineRealtimeStock healthMedicineRealtimeStock) + { + healthMedicineRealtimeStock.setCreateBy(SecurityUtils.getUsername()); + healthMedicineRealtimeStock.setCreateTime(DateUtils.getNowDate()); + return healthMedicineRealtimeStockMapper.insertHealthMedicineRealtimeStock(healthMedicineRealtimeStock); + } + + /** + * 修改药品实时库存 + * + * @param healthMedicineRealtimeStock 药品实时库存 + * @return 结果 + */ + @Override + public int updateHealthMedicineRealtimeStock(HealthMedicineRealtimeStock healthMedicineRealtimeStock) + { + healthMedicineRealtimeStock.setUpdateBy(SecurityUtils.getUsername()); + healthMedicineRealtimeStock.setUpdateTime(DateUtils.getNowDate()); + return healthMedicineRealtimeStockMapper.updateHealthMedicineRealtimeStock(healthMedicineRealtimeStock); + } + + /** + * 批量删除药品实时库存 + * + * @param ids 需要删除的药品实时库存主键 + * @return 结果 + */ + @Override + public int deleteHealthMedicineRealtimeStockByIds(String[] ids) + { + return healthMedicineRealtimeStockMapper.removeHealthMedicineRealtimeStockByIds(ids); + } + + /** + * 删除药品实时库存信息 + * + * @param id 药品实时库存主键 + * @return 结果 + */ + @Override + public int deleteHealthMedicineRealtimeStockById(String id) + { + return healthMedicineRealtimeStockMapper.removeHealthMedicineRealtimeStockById(id); + } +} diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthMedicineStockInServiceImpl.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthMedicineStockInServiceImpl.java new file mode 100644 index 0000000..5675cae --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthMedicineStockInServiceImpl.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.HealthMedicineStockIn; +import com.ruoyi.health.domain.dto.HealthMedicineStockInDto; +import com.ruoyi.health.domain.vo.HealthMedicineStockInVo; +import com.ruoyi.health.mapper.HealthMedicineStockInMapper; +import com.ruoyi.health.service.IHealthMedicineStockInService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +/** + * 药品入库清单Service业务层处理 + * + * @author tianyongbao + * @date 2024-10-02 + */ +@Service +public class HealthMedicineStockInServiceImpl implements IHealthMedicineStockInService +{ + @Resource + private HealthMedicineStockInMapper healthMedicineStockInMapper; + + /** + * 查询药品入库清单 + * + * @param id 药品入库清单主键 + * @return 药品入库清单 + */ + @Override + public HealthMedicineStockInVo selectHealthMedicineStockInById(Long id) + { + return healthMedicineStockInMapper.selectHealthMedicineStockInById(id); + } + + /** + * 查询药品入库清单列表 + * + * @param healthMedicineStockInDto 药品入库清单 + * @return 药品入库清单 + */ + @Override + public List selectHealthMedicineStockInList(HealthMedicineStockInDto healthMedicineStockInDto) + { + return healthMedicineStockInMapper.selectHealthMedicineStockInList(healthMedicineStockInDto); + } + + /** + * 新增药品入库清单 + * + * @param healthMedicineStockIn 药品入库清单 + * @return 结果 + */ + @Override + public int insertHealthMedicineStockIn(HealthMedicineStockIn healthMedicineStockIn) + { + healthMedicineStockIn.setCreateBy(SecurityUtils.getUsername()); + healthMedicineStockIn.setCreateTime(DateUtils.getNowDate()); + healthMedicineStockIn.setId(IdWorker.getId()); + return healthMedicineStockInMapper.insertHealthMedicineStockIn(healthMedicineStockIn); + } + + /** + * 修改药品入库清单 + * + * @param healthMedicineStockIn 药品入库清单 + * @return 结果 + */ + @Override + public int updateHealthMedicineStockIn(HealthMedicineStockIn healthMedicineStockIn) + { + healthMedicineStockIn.setUpdateBy(SecurityUtils.getUsername()); + healthMedicineStockIn.setUpdateTime(DateUtils.getNowDate()); + return healthMedicineStockInMapper.updateHealthMedicineStockIn(healthMedicineStockIn); + } + + /** + * 批量删除药品入库清单 + * + * @param ids 需要删除的药品入库清单主键 + * @return 结果 + */ + @Override + public int deleteHealthMedicineStockInByIds(Long[] ids) + { + return healthMedicineStockInMapper.removeHealthMedicineStockInByIds(ids); + } + + /** + * 删除药品入库清单信息 + * + * @param id 药品入库清单主键 + * @return 结果 + */ + @Override + public int deleteHealthMedicineStockInById(Long id) + { + return healthMedicineStockInMapper.removeHealthMedicineStockInById(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 deleted file mode 100644 index 6f0cde4..0000000 --- a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/service/impl/HealthWeightRecordServiceImpl.java +++ /dev/null @@ -1,104 +0,0 @@ -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/mapper/health/HealthActivityMapper.xml b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthActivityMapper.xml new file mode 100644 index 0000000..f85357f --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthActivityMapper.xml @@ -0,0 +1,143 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + select a.id, a.name, a.type, a.place, a.activity_volume, a.exercise_time, a.start_time, a.end_time, a.harvest, a.foods, a.create_by, a.create_time, a.update_by, a.update_time, a.del_flag, a.remark, a.total_cost, a.partner, a.cost_detail from health_activity a + + + + + + + + insert into health_activity + + id, + name, + type, + place, + activity_volume, + exercise_time, + start_time, + end_time, + harvest, + foods, + create_by, + create_time, + update_by, + update_time, + del_flag, + remark, + total_cost, + partner, + cost_detail, + + + #{id}, + #{name}, + #{type}, + #{place}, + #{activityVolume}, + #{exerciseTime}, + #{startTime}, + #{endTime}, + #{harvest}, + #{foods}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{delFlag}, + #{remark}, + #{totalCost}, + #{partner}, + #{costDetail}, + + + + + update health_activity + + name = #{name}, + type = #{type}, + place = #{place}, + activity_volume = #{activityVolume}, + exercise_time = #{exerciseTime}, + start_time = #{startTime}, + end_time = #{endTime}, + harvest = #{harvest}, + foods = #{foods}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + del_flag = #{delFlag}, + remark = #{remark}, + total_cost = #{totalCost}, + partner = #{partner}, + cost_detail = #{costDetail}, + + where id = #{id} + + + + delete from health_activity where id = #{id} + + + + delete from health_activity where id in + + #{id} + + + + update health_activity set del_flag='1' where id = #{id} + + + + update health_activity 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/HealthHeightWeightRecordMapper.xml similarity index 61% rename from ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthWeightRecordMapper.xml rename to ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthHeightWeightRecordMapper.xml index 2b1a513..68d1849 100644 --- a/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthWeightRecordMapper.xml +++ b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthHeightWeightRecordMapper.xml @@ -2,9 +2,9 @@ - + - + @@ -15,18 +15,38 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + - - 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 + + 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, + a.height, + hp."name" as person_name + from + health_height_weight_record a + left join health_person hp on + hp.id = a.person_id - + a.del_flag='0' - and a.person_id = #{personId} + and a.measure_time = #{measureTime} + and a.weight = #{weight} + and a.person_id = #{personId} + and a.height = #{height} and #{endTime}>=to_char(a.measure_time, 'yyyy-MM-dd') @@ -39,13 +59,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" order by a.measure_time desc - + where a.id = #{id} - - insert into health_weight_record + + insert into health_height_weight_record id, create_by, @@ -57,6 +77,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" measure_time, weight, person_id, + height, #{id}, @@ -69,11 +90,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{measureTime}, #{weight}, #{personId}, + #{height}, - - update health_weight_record + + update health_height_weight_record create_by = #{createBy}, create_time = #{createTime}, @@ -84,26 +106,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" measure_time = #{measureTime}, weight = #{weight}, person_id = #{personId}, + height = #{height}, where id = #{id} - - delete from health_weight_record where id = #{id} + + delete from health_height_weight_record where id = #{id} - - delete from health_weight_record where id in + + delete from health_height_weight_record where id in #{id} - - update health_weight_record set del_flag='1' where id = #{id} + + update health_height_weight_record set del_flag='1' where id = #{id} - - update health_weight_record set del_flag='1' where id in + + update health_height_weight_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 index c6196a8..9fa8ed0 100644 --- a/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthMarRecordMapper.xml +++ b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthMarRecordMapper.xml @@ -20,6 +20,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + + + @@ -42,6 +46,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" a.person_id, a.resource, a.place, + a.place, + a.medicine_id, + a.unit, + a.content, + a.content_unit, hp."name" as person_name , hr."name" as health_record_name from @@ -64,6 +73,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and a.person_id = #{personId} and a.resource = #{resource} and a.place = #{place} + medicine_id = #{medicineId}, and #{endTime}>=to_char(a.dosing_time, 'yyyy-MM-dd') @@ -99,6 +109,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" person_id, resource, place, + medicine_id, + unit, + content, + content_unit, #{id}, @@ -116,6 +130,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{personId}, #{resource}, #{place}, + #{medicineId}, + #{unit}, + #{content}, + #{contentUnit}, @@ -136,6 +154,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" person_id = #{personId}, resource = #{resource}, place = #{place}, + medicine_id = #{medicineId}, + unit = #{unit}, + content = #{content}, + content_unit = #{contentUnit}, where id = #{id} diff --git a/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthMedicineBasicMapper.xml b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthMedicineBasicMapper.xml new file mode 100644 index 0000000..4ab5d6a --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthMedicineBasicMapper.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select a.id, a.name, a.classification, a.category, a.brand, a.packaging, a.manufacturers, a.treatment_type, a.is_import, a.ingredients, a.usage, a.dosage_form, a.create_by, a.create_time, a.update_by, a.update_time, a.del_flag, a.remark, a.code, a.specifications, a.unit, a.adverse_reaction, a.address, a.content, a.content_unit, a.character, a.storage, a.indications from health_medicine_basic a + + + + + + + + insert into health_medicine_basic + + id, + name, + classification, + category, + brand, + packaging, + manufacturers, + treatment_type, + is_import, + ingredients, + usage, + dosage_form, + create_by, + create_time, + update_by, + update_time, + del_flag, + remark, + code, + specifications, + unit, + adverse_reaction, + address, + content, + content_unit, + character, + storage, + indications, + + + #{id}, + #{name}, + #{classification}, + #{category}, + #{brand}, + #{packaging}, + #{manufacturers}, + #{treatmentType}, + #{isImport}, + #{ingredients}, + #{usage}, + #{dosageForm}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{delFlag}, + #{remark}, + #{code}, + #{specifications}, + #{unit}, + #{adverseReaction}, + #{address}, + #{content}, + #{contentUnit}, + #{character}, + #{storage}, + #{indications}, + + + + + update health_medicine_basic + + name = #{name}, + classification = #{classification}, + category = #{category}, + brand = #{brand}, + packaging = #{packaging}, + manufacturers = #{manufacturers}, + treatment_type = #{treatmentType}, + is_import = #{isImport}, + ingredients = #{ingredients}, + usage = #{usage}, + dosage_form = #{dosageForm}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + del_flag = #{delFlag}, + remark = #{remark}, + code = #{code}, + specifications = #{specifications}, + unit = #{unit}, + adverse_reaction = #{adverseReaction}, + address = #{address}, + content = #{content}, + content_unit = #{contentUnit}, + character = #{character}, + storage = #{storage}, + indications = #{indications}, + + where id = #{id} + + + + delete from health_medicine_basic where id = #{id} + + + + delete from health_medicine_basic where id in + + #{id} + + + + update health_medicine_basic set del_flag='1' where id = #{id} + + + + update health_medicine_basic set del_flag='1' where id in + + #{id} + + + diff --git a/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthMedicineRealtimeStockMapper.xml b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthMedicineRealtimeStockMapper.xml new file mode 100644 index 0000000..97a867b --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthMedicineRealtimeStockMapper.xml @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + select a.id, a.medicine_id, a.inventory, a.create_by, a.create_time, a.update_by, a.update_time, a.del_flag, a.remark from health_medicine_realtime_stock a + + + + + + + + insert into health_medicine_realtime_stock + + id, + medicine_id, + inventory, + create_by, + create_time, + update_by, + update_time, + del_flag, + remark, + + + #{id}, + #{medicineId}, + #{inventory}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{delFlag}, + #{remark}, + + + + + update health_medicine_realtime_stock + + medicine_id = #{medicineId}, + inventory = #{inventory}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + del_flag = #{delFlag}, + remark = #{remark}, + + where id = #{id} + + + + delete from health_medicine_realtime_stock where id = #{id} + + + + delete from health_medicine_realtime_stock where id in + + #{id} + + + + update health_medicine_realtime_stock set del_flag='1' where id = #{id} + + + + update health_medicine_realtime_stock set del_flag='1' where id in + + #{id} + + + diff --git a/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthMedicineStockInMapper.xml b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthMedicineStockInMapper.xml new file mode 100644 index 0000000..0c6d1bb --- /dev/null +++ b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthMedicineStockInMapper.xml @@ -0,0 +1,176 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select + a.id, + a.medicine_id, + a.quantity, + a.production_date, + a.expiring_date, + a.purchase_date, + a.purchase_price, + a.create_by, + a.create_time, + a.update_by, + a.update_time, + a.del_flag, + a.remark, + a.code, + a.state, + a.left_count, + a.used_count, + a.purchase_address, + a.total_price, + hmb."name" as medicine_name + from + health_medicine_stock_in a + left join health_medicine_basic hmb on + hmb.id = a.medicine_id + + + + + + + + + insert into health_medicine_stock_in + + id, + medicine_id, + quantity, + production_date, + expiring_date, + purchase_date, + purchase_price, + create_by, + create_time, + update_by, + update_time, + del_flag, + remark, + code, + state, + left_count, + used_count, + purchase_address, + total_price, + + + #{id}, + #{medicineId}, + #{quantity}, + #{productionDate}, + #{expiringDate}, + #{purchaseDate}, + #{purchasePrice}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{delFlag}, + #{remark}, + #{code}, + #{state}, + #{leftCount}, + #{usedCount}, + #{purchaseAddress}, + #{totalPrice}, + + + + + update health_medicine_stock_in + + medicine_id = #{medicineId}, + quantity = #{quantity}, + production_date = #{productionDate}, + expiring_date = #{expiringDate}, + purchase_date = #{purchaseDate}, + purchase_price = #{purchasePrice}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + del_flag = #{delFlag}, + remark = #{remark}, + code = #{code}, + state = #{state}, + left_count = #{leftCount}, + used_count = #{usedCount}, + purchase_address = #{purchaseAddress}, + total_price = #{totalPrice}, + + where id = #{id} + + + + delete from health_medicine_stock_in where id = #{id} + + + + delete from health_medicine_stock_in where id in + + #{id} + + + + update health_medicine_stock_in set del_flag='1' where id = #{id} + + + + update health_medicine_stock_in set del_flag='1' where id in + + #{id} + + +