fix: 新功能开发,原有功能优化。
This commit is contained in:
@@ -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<HealthActivityVo> 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<HealthActivityVo> list = healthActivityService.selectHealthActivityList(healthActivityDto);
|
||||
ExcelUtil<HealthActivityVo> util = new ExcelUtil<HealthActivityVo>(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));
|
||||
}
|
||||
}
|
||||
@@ -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<HealthHeightWeightRecordVo> 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<HealthHeightWeightRecordVo> list = healthHeightWeightRecordService.selectHealthHeightWeightRecordList(healthHeightWeightRecordDto);
|
||||
ExcelUtil<HealthHeightWeightRecordVo> util = new ExcelUtil<HealthHeightWeightRecordVo>(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));
|
||||
}
|
||||
}
|
||||
@@ -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<HealthMedicineBasicVo> 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<HealthMedicineBasicVo> list = healthMedicineBasicService.selectHealthMedicineBasicList(healthMedicineBasicDto);
|
||||
ExcelUtil<HealthMedicineBasicVo> util = new ExcelUtil<HealthMedicineBasicVo>(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));
|
||||
}
|
||||
}
|
||||
@@ -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<HealthMedicineRealtimeStockVo> 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<HealthMedicineRealtimeStockVo> list = healthMedicineRealtimeStockService.selectHealthMedicineRealtimeStockList(healthMedicineRealtimeStockDto);
|
||||
ExcelUtil<HealthMedicineRealtimeStockVo> util = new ExcelUtil<HealthMedicineRealtimeStockVo>(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));
|
||||
}
|
||||
}
|
||||
@@ -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<HealthMedicineStockInVo> 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<HealthMedicineStockInVo> list = healthMedicineStockInService.selectHealthMedicineStockInList(healthMedicineStockInDto);
|
||||
ExcelUtil<HealthMedicineStockInVo> util = new ExcelUtil<HealthMedicineStockInVo>(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));
|
||||
}
|
||||
}
|
||||
@@ -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<HealthWeightRecordVo> list = healthWeightRecordService.selectHealthWeightRecordList(healthWeightRecordDto);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出体重记录列表
|
||||
*/
|
||||
@ApiOperation(value="导出体重记录列表")
|
||||
@RequiresPermissions("health:weightRecord:export")
|
||||
@Log(title = "体重记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, HealthWeightRecordDto healthWeightRecordDto)
|
||||
{
|
||||
List<HealthWeightRecordVo> list = healthWeightRecordService.selectHealthWeightRecordList(healthWeightRecordDto);
|
||||
ExcelUtil<HealthWeightRecordVo> util = new ExcelUtil<HealthWeightRecordVo>(HealthWeightRecordVo.class);
|
||||
util.exportExcel(response, list, "体重记录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取体重记录详细信息
|
||||
*/
|
||||
@ApiOperation(value="获取体重记录详细信息")
|
||||
@RequiresPermissions("health:weightRecord:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(healthWeightRecordService.selectHealthWeightRecordById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增体重记录
|
||||
*/
|
||||
@ApiOperation(value="新增体重记录")
|
||||
@RequiresPermissions("health:weightRecord:add")
|
||||
@Log(title = "体重记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody HealthWeightRecord healthWeightRecord)
|
||||
{
|
||||
return toAjax(healthWeightRecordService.insertHealthWeightRecord(healthWeightRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改体重记录
|
||||
*/
|
||||
@ApiOperation(value="修改体重记录")
|
||||
@RequiresPermissions("health:weightRecord:edit")
|
||||
@Log(title = "体重记录", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody HealthWeightRecord healthWeightRecord)
|
||||
{
|
||||
return toAjax(healthWeightRecordService.updateHealthWeightRecord(healthWeightRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除体重记录
|
||||
*/
|
||||
@ApiOperation(value="删除体重记录")
|
||||
@RequiresPermissions("health:weightRecord:remove")
|
||||
@Log(title = "体重记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(healthWeightRecordService.deleteHealthWeightRecordByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,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();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
@@ -61,4 +61,8 @@ public class HealthMarRecordDto extends BaseEntity implements Serializable
|
||||
@ApiModelProperty(value="结束日期")
|
||||
private String endTime;
|
||||
|
||||
/** 药品id */
|
||||
@ApiModelProperty(value="药品id")
|
||||
private Long medicineId;
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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
|
||||
{
|
||||
|
||||
}
|
||||
@@ -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="人员姓名)")
|
||||
@@ -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
|
||||
{
|
||||
|
||||
}
|
||||
@@ -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
|
||||
{
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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<HealthActivityVo> 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);
|
||||
}
|
||||
@@ -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<HealthHeightWeightRecordVo> 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);
|
||||
}
|
||||
@@ -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<HealthMedicineBasicVo> 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);
|
||||
}
|
||||
@@ -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<HealthMedicineRealtimeStockVo> 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);
|
||||
}
|
||||
@@ -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<HealthMedicineStockInVo> 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);
|
||||
}
|
||||
@@ -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<HealthWeightRecordVo> selectHealthWeightRecordList(HealthWeightRecordDto healthWeightRecordDto);
|
||||
|
||||
/**
|
||||
* 新增体重记录
|
||||
*
|
||||
* @param healthWeightRecord 体重记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertHealthWeightRecord(HealthWeightRecord healthWeightRecord);
|
||||
|
||||
/**
|
||||
* 修改体重记录
|
||||
*
|
||||
* @param healthWeightRecord 体重记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateHealthWeightRecord(HealthWeightRecord healthWeightRecord);
|
||||
|
||||
/**
|
||||
* 删除体重记录
|
||||
*
|
||||
* @param id 体重记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHealthWeightRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除体重记录
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHealthWeightRecordByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 逻辑删除体重记录
|
||||
*
|
||||
* @param id 体重记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int removeHealthWeightRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量逻辑删除体重记录
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int removeHealthWeightRecordByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.ruoyi.health.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.health.domain.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<HealthActivityVo> 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);
|
||||
}
|
||||
@@ -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<HealthHeightWeightRecordVo> 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);
|
||||
}
|
||||
@@ -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<HealthMedicineBasicVo> 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);
|
||||
}
|
||||
@@ -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<HealthMedicineRealtimeStockVo> 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);
|
||||
}
|
||||
@@ -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<HealthMedicineStockInVo> 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);
|
||||
}
|
||||
@@ -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<HealthWeightRecordVo> selectHealthWeightRecordList(HealthWeightRecordDto healthWeightRecordDto);
|
||||
|
||||
/**
|
||||
* 新增体重记录
|
||||
*
|
||||
* @param healthWeightRecord 体重记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertHealthWeightRecord(HealthWeightRecord healthWeightRecord);
|
||||
|
||||
/**
|
||||
* 修改体重记录
|
||||
*
|
||||
* @param healthWeightRecord 体重记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateHealthWeightRecord(HealthWeightRecord healthWeightRecord);
|
||||
|
||||
/**
|
||||
* 批量删除体重记录
|
||||
*
|
||||
* @param ids 需要删除的体重记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHealthWeightRecordByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除体重记录信息
|
||||
*
|
||||
* @param id 体重记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHealthWeightRecordById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
package com.ruoyi.health.service.impl;
|
||||
|
||||
import com.ruoyi.common.core.utils.DateUtils;
|
||||
import com.ruoyi.common.core.utils.IdWorker;
|
||||
import com.ruoyi.common.security.utils.SecurityUtils;
|
||||
import com.ruoyi.health.domain.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<HealthActivityVo> 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);
|
||||
}
|
||||
}
|
||||
@@ -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<HealthHeightWeightRecordVo> 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);
|
||||
}
|
||||
}
|
||||
@@ -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<HealthMedicineBasicVo> 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);
|
||||
}
|
||||
}
|
||||
@@ -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<HealthMedicineRealtimeStockVo> 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);
|
||||
}
|
||||
}
|
||||
@@ -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<HealthMedicineStockInVo> 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);
|
||||
}
|
||||
}
|
||||
@@ -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<HealthWeightRecordVo> selectHealthWeightRecordList(HealthWeightRecordDto healthWeightRecordDto)
|
||||
{
|
||||
return healthWeightRecordMapper.selectHealthWeightRecordList(healthWeightRecordDto);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增体重记录
|
||||
*
|
||||
* @param healthWeightRecord 体重记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertHealthWeightRecord(HealthWeightRecord healthWeightRecord)
|
||||
{
|
||||
healthWeightRecord.setCreateBy(SecurityUtils.getUsername());
|
||||
healthWeightRecord.setCreateTime(DateUtils.getNowDate());
|
||||
healthWeightRecord.setId(IdWorker.getId());
|
||||
return healthWeightRecordMapper.insertHealthWeightRecord(healthWeightRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改体重记录
|
||||
*
|
||||
* @param healthWeightRecord 体重记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateHealthWeightRecord(HealthWeightRecord healthWeightRecord)
|
||||
{
|
||||
healthWeightRecord.setUpdateBy(SecurityUtils.getUsername());
|
||||
healthWeightRecord.setUpdateTime(DateUtils.getNowDate());
|
||||
return healthWeightRecordMapper.updateHealthWeightRecord(healthWeightRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除体重记录
|
||||
*
|
||||
* @param ids 需要删除的体重记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteHealthWeightRecordByIds(Long[] ids)
|
||||
{
|
||||
return healthWeightRecordMapper.removeHealthWeightRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除体重记录信息
|
||||
*
|
||||
* @param id 体重记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteHealthWeightRecordById(Long id)
|
||||
{
|
||||
return healthWeightRecordMapper.removeHealthWeightRecordById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.health.mapper.HealthActivityMapper">
|
||||
|
||||
<resultMap type="HealthActivityVo" id="HealthActivityResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="type" column="type" />
|
||||
<result property="place" column="place" />
|
||||
<result property="activityVolume" column="activity_volume" />
|
||||
<result property="exerciseTime" column="exercise_time" />
|
||||
<result property="startTime" column="start_time" />
|
||||
<result property="endTime" column="end_time" />
|
||||
<result property="harvest" column="harvest" />
|
||||
<result property="foods" column="foods" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="totalCost" column="total_cost" />
|
||||
<result property="partner" column="partner" />
|
||||
<result property="costDetail" column="cost_detail" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHealthActivityVo">
|
||||
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
|
||||
</sql>
|
||||
|
||||
<select id="selectHealthActivityList" parameterType="HealthActivityDto" resultMap="HealthActivityResult">
|
||||
<include refid="selectHealthActivityVo"/>
|
||||
<where>
|
||||
a.del_flag='0'
|
||||
<if test="name != null and name != ''"> and a.name like '%'|| #{name}||'%'</if>
|
||||
<if test="type != null and type != ''"> and a.type = #{type}</if>
|
||||
<if test="place != null and place != ''"> and a.place = #{place}</if>
|
||||
<if test="activityVolume != null and activityVolume != ''"> and a.activity_volume = #{activityVolume}</if>
|
||||
<if test="startTime != null "> and a.start_time = #{startTime}</if>
|
||||
<if test="endTime != null "> and a.end_time = #{endTime}</if>
|
||||
</where>
|
||||
order by a.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectHealthActivityById" parameterType="Long" resultMap="HealthActivityResult">
|
||||
<include refid="selectHealthActivityVo"/>
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertHealthActivity" parameterType="HealthActivity">
|
||||
insert into health_activity
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="name != null">name,</if>
|
||||
<if test="type != null">type,</if>
|
||||
<if test="place != null">place,</if>
|
||||
<if test="activityVolume != null">activity_volume,</if>
|
||||
<if test="exerciseTime != null">exercise_time,</if>
|
||||
<if test="startTime != null">start_time,</if>
|
||||
<if test="endTime != null">end_time,</if>
|
||||
<if test="harvest != null">harvest,</if>
|
||||
<if test="foods != null">foods,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="totalCost != null">total_cost,</if>
|
||||
<if test="partner != null">partner,</if>
|
||||
<if test="costDetail != null">cost_detail,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="name != null">#{name},</if>
|
||||
<if test="type != null">#{type},</if>
|
||||
<if test="place != null">#{place},</if>
|
||||
<if test="activityVolume != null">#{activityVolume},</if>
|
||||
<if test="exerciseTime != null">#{exerciseTime},</if>
|
||||
<if test="startTime != null">#{startTime},</if>
|
||||
<if test="endTime != null">#{endTime},</if>
|
||||
<if test="harvest != null">#{harvest},</if>
|
||||
<if test="foods != null">#{foods},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="totalCost != null">#{totalCost},</if>
|
||||
<if test="partner != null">#{partner},</if>
|
||||
<if test="costDetail != null">#{costDetail},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateHealthActivity" parameterType="HealthActivity">
|
||||
update health_activity
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null">name = #{name},</if>
|
||||
<if test="type != null">type = #{type},</if>
|
||||
<if test="place != null">place = #{place},</if>
|
||||
<if test="activityVolume != null">activity_volume = #{activityVolume},</if>
|
||||
<if test="exerciseTime != null">exercise_time = #{exerciseTime},</if>
|
||||
<if test="startTime != null">start_time = #{startTime},</if>
|
||||
<if test="endTime != null">end_time = #{endTime},</if>
|
||||
<if test="harvest != null">harvest = #{harvest},</if>
|
||||
<if test="foods != null">foods = #{foods},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="totalCost != null">total_cost = #{totalCost},</if>
|
||||
<if test="partner != null">partner = #{partner},</if>
|
||||
<if test="costDetail != null">cost_detail = #{costDetail},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteHealthActivityById" parameterType="Long">
|
||||
delete from health_activity where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteHealthActivityByIds" parameterType="String">
|
||||
delete from health_activity where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
<update id="removeHealthActivityById" parameterType="Long">
|
||||
update health_activity set del_flag='1' where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="removeHealthActivityByIds" parameterType="String">
|
||||
update health_activity set del_flag='1' where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -2,9 +2,9 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.health.mapper.HealthWeightRecordMapper">
|
||||
<mapper namespace="com.ruoyi.health.mapper.HealthHeightWeightRecordMapper">
|
||||
|
||||
<resultMap type="HealthWeightRecordVo" id="HealthWeightRecordResult">
|
||||
<resultMap type="HealthHeightWeightRecordVo" id="HealthHeightWeightRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
@@ -15,18 +15,38 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="measureTime" column="measure_time" />
|
||||
<result property="weight" column="weight" />
|
||||
<result property="personId" column="person_id" />
|
||||
<result property="height" column="height" />
|
||||
<result property="personName" column="person_name" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHealthWeightRecordVo">
|
||||
select a.id, a.create_by, a.create_time, a.update_by, a.update_time, a.del_flag, a.remark, a.measure_time, a.weight, a.person_id from health_weight_record a
|
||||
<sql id="selectHealthHeightWeightRecordVo">
|
||||
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
|
||||
</sql>
|
||||
|
||||
<select id="selectHealthWeightRecordList" parameterType="HealthWeightRecordDto" resultMap="HealthWeightRecordResult">
|
||||
<include refid="selectHealthWeightRecordVo"/>
|
||||
<select id="selectHealthHeightWeightRecordList" parameterType="HealthHeightWeightRecordDto" resultMap="HealthHeightWeightRecordResult">
|
||||
<include refid="selectHealthHeightWeightRecordVo"/>
|
||||
<where>
|
||||
a.del_flag='0'
|
||||
<if test="personId != null "> and a.person_id = #{personId}</if>
|
||||
<if test="measureTime != null "> and a.measure_time = #{measureTime}</if>
|
||||
<if test="weight != null "> and a.weight = #{weight}</if>
|
||||
<if test="personId != null and personId != ''"> and a.person_id = #{personId}</if>
|
||||
<if test="height != null "> and a.height = #{height}</if>
|
||||
<if test="endTime!=null and endTime !=''">
|
||||
and #{endTime}>=to_char(a.measure_time, 'yyyy-MM-dd')
|
||||
</if>
|
||||
@@ -39,13 +59,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
order by a.measure_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectHealthWeightRecordById" parameterType="Long" resultMap="HealthWeightRecordResult">
|
||||
<include refid="selectHealthWeightRecordVo"/>
|
||||
<select id="selectHealthHeightWeightRecordById" parameterType="Long" resultMap="HealthHeightWeightRecordResult">
|
||||
<include refid="selectHealthHeightWeightRecordVo"/>
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertHealthWeightRecord" parameterType="HealthWeightRecord">
|
||||
insert into health_weight_record
|
||||
<insert id="insertHealthHeightWeightRecord" parameterType="HealthHeightWeightRecord">
|
||||
insert into health_height_weight_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
@@ -57,6 +77,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="measureTime != null">measure_time,</if>
|
||||
<if test="weight != null">weight,</if>
|
||||
<if test="personId != null">person_id,</if>
|
||||
<if test="height != null">height,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
@@ -69,11 +90,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="measureTime != null">#{measureTime},</if>
|
||||
<if test="weight != null">#{weight},</if>
|
||||
<if test="personId != null">#{personId},</if>
|
||||
<if test="height != null">#{height},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateHealthWeightRecord" parameterType="HealthWeightRecord">
|
||||
update health_weight_record
|
||||
<update id="updateHealthHeightWeightRecord" parameterType="HealthHeightWeightRecord">
|
||||
update health_height_weight_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
@@ -84,26 +106,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="measureTime != null">measure_time = #{measureTime},</if>
|
||||
<if test="weight != null">weight = #{weight},</if>
|
||||
<if test="personId != null">person_id = #{personId},</if>
|
||||
<if test="height != null">height = #{height},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteHealthWeightRecordById" parameterType="Long">
|
||||
delete from health_weight_record where id = #{id}
|
||||
<delete id="deleteHealthHeightWeightRecordById" parameterType="Long">
|
||||
delete from health_height_weight_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteHealthWeightRecordByIds" parameterType="String">
|
||||
delete from health_weight_record where id in
|
||||
<delete id="deleteHealthHeightWeightRecordByIds" parameterType="String">
|
||||
delete from health_height_weight_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
<update id="removeHealthWeightRecordById" parameterType="Long">
|
||||
update health_weight_record set del_flag='1' where id = #{id}
|
||||
<update id="removeHealthHeightWeightRecordById" parameterType="Long">
|
||||
update health_height_weight_record set del_flag='1' where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="removeHealthWeightRecordByIds" parameterType="String">
|
||||
update health_weight_record set del_flag='1' where id in
|
||||
<update id="removeHealthHeightWeightRecordByIds" parameterType="String">
|
||||
update health_height_weight_record set del_flag='1' where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
@@ -20,6 +20,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="personId" column="person_id" />
|
||||
<result property="resource" column="resource" />
|
||||
<result property="place" column="place" />
|
||||
<result property="medicineId" column="medicine_id" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="content" column="content" />
|
||||
<result property="contentUnit" column="content_unit" />
|
||||
<result property="personName" column="person_name" />
|
||||
<result property="healthRecordName" column="health_record_name" />
|
||||
|
||||
@@ -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"
|
||||
<if test="personId != null "> and a.person_id = #{personId}</if>
|
||||
<if test="resource != null and resource != ''"> and a.resource = #{resource}</if>
|
||||
<if test="place != null and place != ''"> and a.place = #{place}</if>
|
||||
<if test="medicineId != null">medicine_id = #{medicineId},</if>
|
||||
<if test="endTime!=null and endTime !=''">
|
||||
and #{endTime}>=to_char(a.dosing_time, 'yyyy-MM-dd')
|
||||
</if>
|
||||
@@ -99,6 +109,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="personId != null">person_id,</if>
|
||||
<if test="resource != null">resource,</if>
|
||||
<if test="place != null">place,</if>
|
||||
<if test="medicineId != null">medicine_id,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="content != null">content,</if>
|
||||
<if test="contentUnit != null">content_unit,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
@@ -116,6 +130,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="personId != null">#{personId},</if>
|
||||
<if test="resource != null">#{resource},</if>
|
||||
<if test="place != null">#{place},</if>
|
||||
<if test="medicineId != null">#{medicineId},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="content != null">#{content},</if>
|
||||
<if test="contentUnit != null">#{contentUnit},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@@ -136,6 +154,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="personId != null">person_id = #{personId},</if>
|
||||
<if test="resource != null">resource = #{resource},</if>
|
||||
<if test="place != null">place = #{place},</if>
|
||||
<if test="medicineId != null">medicine_id = #{medicineId},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="content != null">content = #{content},</if>
|
||||
<if test="contentUnit != null">content_unit = #{contentUnit},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
@@ -0,0 +1,185 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.health.mapper.HealthMedicineBasicMapper">
|
||||
|
||||
<resultMap type="HealthMedicineBasicVo" id="HealthMedicineBasicResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="classification" column="classification" />
|
||||
<result property="category" column="category" />
|
||||
<result property="brand" column="brand" />
|
||||
<result property="packaging" column="packaging" />
|
||||
<result property="manufacturers" column="manufacturers" />
|
||||
<result property="treatmentType" column="treatment_type" />
|
||||
<result property="isImport" column="is_import" />
|
||||
<result property="ingredients" column="ingredients" />
|
||||
<result property="usage" column="usage" />
|
||||
<result property="dosageForm" column="dosage_form" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="code" column="code" />
|
||||
<result property="specifications" column="specifications" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="adverseReaction" column="adverse_reaction" />
|
||||
<result property="address" column="address" />
|
||||
<result property="content" column="content" />
|
||||
<result property="contentUnit" column="content_unit" />
|
||||
<result property="character" column="character" />
|
||||
<result property="storage" column="storage" />
|
||||
<result property="storage" column="indications" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHealthMedicineBasicVo">
|
||||
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
|
||||
</sql>
|
||||
|
||||
<select id="selectHealthMedicineBasicList" parameterType="HealthMedicineBasicDto" resultMap="HealthMedicineBasicResult">
|
||||
<include refid="selectHealthMedicineBasicVo"/>
|
||||
<where>
|
||||
a.del_flag='0'
|
||||
<if test="name != null and name != ''"> and a.name like '%'|| #{name}||'%'</if>
|
||||
<if test="classification != null and classification != ''"> and a.classification = #{classification}</if>
|
||||
<if test="category != null and category != ''"> and a.category = #{category}</if>
|
||||
<if test="brand != null and brand != ''"> and a.brand = #{brand}</if>
|
||||
<if test="packaging != null and packaging != ''"> and a.packaging = #{packaging}</if>
|
||||
<if test="manufacturers != null and manufacturers != ''"> and a.manufacturers like '%'|| #{manufacturers}||'%'</if>
|
||||
<if test="treatmentType != null and treatmentType != ''"> and a.treatment_type = #{treatmentType}</if>
|
||||
<if test="isImport != null and isImport != ''"> and a.is_import = #{isImport}</if>
|
||||
<if test="ingredients != null and ingredients != ''"> and a.ingredients = #{ingredients}</if>
|
||||
<if test="usage != null and usage != ''"> and a.usage = #{usage}</if>
|
||||
<if test="dosageForm != null and dosageForm != ''"> and a.dosage_form = #{dosageForm}</if>
|
||||
<if test="code != null and code != ''"> and a.code = #{code}</if>
|
||||
</where>
|
||||
order by a.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectHealthMedicineBasicById" parameterType="Long" resultMap="HealthMedicineBasicResult">
|
||||
<include refid="selectHealthMedicineBasicVo"/>
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertHealthMedicineBasic" parameterType="HealthMedicineBasic">
|
||||
insert into health_medicine_basic
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="classification != null and classification != ''">classification,</if>
|
||||
<if test="category != null and category != ''">category,</if>
|
||||
<if test="brand != null and brand != ''">brand,</if>
|
||||
<if test="packaging != null and packaging != ''">packaging,</if>
|
||||
<if test="manufacturers != null and manufacturers != ''">manufacturers,</if>
|
||||
<if test="treatmentType != null and treatmentType != ''">treatment_type,</if>
|
||||
<if test="isImport != null">is_import,</if>
|
||||
<if test="ingredients != null">ingredients,</if>
|
||||
<if test="usage != null">usage,</if>
|
||||
<if test="dosageForm != null and dosageForm != ''">dosage_form,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="code != null and code != ''">code,</if>
|
||||
<if test="specifications != null">specifications,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="adverseReaction != null">adverse_reaction,</if>
|
||||
<if test="address != null">address,</if>
|
||||
<if test="content != null">content,</if>
|
||||
<if test="contentUnit != null">content_unit,</if>
|
||||
<if test="character != null">character,</if>
|
||||
<if test="storage != null">storage,</if>
|
||||
<if test="indications != null">indications,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="classification != null and classification != ''">#{classification},</if>
|
||||
<if test="category != null and category != ''">#{category},</if>
|
||||
<if test="brand != null and brand != ''">#{brand},</if>
|
||||
<if test="packaging != null and packaging != ''">#{packaging},</if>
|
||||
<if test="manufacturers != null and manufacturers != ''">#{manufacturers},</if>
|
||||
<if test="treatmentType != null and treatmentType != ''">#{treatmentType},</if>
|
||||
<if test="isImport != null">#{isImport},</if>
|
||||
<if test="ingredients != null">#{ingredients},</if>
|
||||
<if test="usage != null">#{usage},</if>
|
||||
<if test="dosageForm != null and dosageForm != ''">#{dosageForm},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="code != null and code != ''">#{code},</if>
|
||||
<if test="specifications != null">#{specifications},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="adverseReaction != null">#{adverseReaction},</if>
|
||||
<if test="address != null">#{address},</if>
|
||||
<if test="content != null">#{content},</if>
|
||||
<if test="contentUnit != null">#{contentUnit},</if>
|
||||
<if test="character != null">#{character},</if>
|
||||
<if test="storage != null">#{storage},</if>
|
||||
<if test="indications != null">#{indications},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateHealthMedicineBasic" parameterType="HealthMedicineBasic">
|
||||
update health_medicine_basic
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">name = #{name},</if>
|
||||
<if test="classification != null and classification != ''">classification = #{classification},</if>
|
||||
<if test="category != null and category != ''">category = #{category},</if>
|
||||
<if test="brand != null and brand != ''">brand = #{brand},</if>
|
||||
<if test="packaging != null and packaging != ''">packaging = #{packaging},</if>
|
||||
<if test="manufacturers != null and manufacturers != ''">manufacturers = #{manufacturers},</if>
|
||||
<if test="treatmentType != null and treatmentType != ''">treatment_type = #{treatmentType},</if>
|
||||
<if test="isImport != null">is_import = #{isImport},</if>
|
||||
<if test="ingredients != null">ingredients = #{ingredients},</if>
|
||||
<if test="usage != null">usage = #{usage},</if>
|
||||
<if test="dosageForm != null and dosageForm != ''">dosage_form = #{dosageForm},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="code != null and code != ''">code = #{code},</if>
|
||||
<if test="specifications != null">specifications = #{specifications},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="adverseReaction != null">adverse_reaction = #{adverseReaction},</if>
|
||||
<if test="address != null">address = #{address},</if>
|
||||
<if test="content != null">content = #{content},</if>
|
||||
<if test="contentUnit != null">content_unit = #{contentUnit},</if>
|
||||
<if test="character != null">character = #{character},</if>
|
||||
<if test="storage != null">storage = #{storage},</if>
|
||||
<if test="indications != null">indications = #{indications},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteHealthMedicineBasicById" parameterType="Long">
|
||||
delete from health_medicine_basic where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteHealthMedicineBasicByIds" parameterType="String">
|
||||
delete from health_medicine_basic where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
<update id="removeHealthMedicineBasicById" parameterType="Long">
|
||||
update health_medicine_basic set del_flag='1' where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="removeHealthMedicineBasicByIds" parameterType="String">
|
||||
update health_medicine_basic set del_flag='1' where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -0,0 +1,99 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.health.mapper.HealthMedicineRealtimeStockMapper">
|
||||
|
||||
<resultMap type="HealthMedicineRealtimeStockVo" id="HealthMedicineRealtimeStockResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="medicineId" column="medicine_id" />
|
||||
<result property="inventory" column="inventory" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHealthMedicineRealtimeStockVo">
|
||||
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
|
||||
</sql>
|
||||
|
||||
<select id="selectHealthMedicineRealtimeStockList" parameterType="HealthMedicineRealtimeStockDto" resultMap="HealthMedicineRealtimeStockResult">
|
||||
<include refid="selectHealthMedicineRealtimeStockVo"/>
|
||||
<where>
|
||||
a.del_flag='0'
|
||||
<if test="medicineId != null and medicineId != ''"> and a.medicine_id = #{medicineId}</if>
|
||||
<if test="inventory != null and inventory != ''"> and a.inventory = #{inventory}</if>
|
||||
</where>
|
||||
order by a.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectHealthMedicineRealtimeStockById" parameterType="String" resultMap="HealthMedicineRealtimeStockResult">
|
||||
<include refid="selectHealthMedicineRealtimeStockVo"/>
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertHealthMedicineRealtimeStock" parameterType="HealthMedicineRealtimeStock">
|
||||
insert into health_medicine_realtime_stock
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="medicineId != null">medicine_id,</if>
|
||||
<if test="inventory != null">inventory,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="medicineId != null">#{medicineId},</if>
|
||||
<if test="inventory != null">#{inventory},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateHealthMedicineRealtimeStock" parameterType="HealthMedicineRealtimeStock">
|
||||
update health_medicine_realtime_stock
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="medicineId != null">medicine_id = #{medicineId},</if>
|
||||
<if test="inventory != null">inventory = #{inventory},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteHealthMedicineRealtimeStockById" parameterType="String">
|
||||
delete from health_medicine_realtime_stock where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteHealthMedicineRealtimeStockByIds" parameterType="String">
|
||||
delete from health_medicine_realtime_stock where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
<update id="removeHealthMedicineRealtimeStockById" parameterType="String">
|
||||
update health_medicine_realtime_stock set del_flag='1' where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="removeHealthMedicineRealtimeStockByIds" parameterType="String">
|
||||
update health_medicine_realtime_stock set del_flag='1' where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -0,0 +1,176 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.health.mapper.HealthMedicineStockInMapper">
|
||||
|
||||
<resultMap type="HealthMedicineStockInVo" id="HealthMedicineStockInResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="medicineId" column="medicine_id" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="productionDate" column="production_date" />
|
||||
<result property="expiringDate" column="expiring_date" />
|
||||
<result property="purchaseDate" column="purchase_date" />
|
||||
<result property="purchasePrice" column="purchase_price" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="code" column="code" />
|
||||
<result property="state" column="state" />
|
||||
<result property="leftCount" column="left_count" />
|
||||
<result property="usedCount" column="used_count" />
|
||||
<result property="purchaseAddress" column="purchase_address" />
|
||||
<result property="totalPrice" column="total_price" />
|
||||
<result property="medicineName" column="medicine_name" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHealthMedicineStockInVo">
|
||||
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
|
||||
|
||||
</sql>
|
||||
|
||||
<select id="selectHealthMedicineStockInList" parameterType="HealthMedicineStockInDto" resultMap="HealthMedicineStockInResult">
|
||||
<include refid="selectHealthMedicineStockInVo"/>
|
||||
<where>
|
||||
a.del_flag='0'
|
||||
<if test="medicineId != null "> and a.medicine_id = #{medicineId}</if>
|
||||
<if test="quantity != null "> and a.quantity = #{quantity}</if>
|
||||
<if test="productionDate != null "> and a.production_date = #{productionDate}</if>
|
||||
<if test="expiringDate != null "> and a.expiring_date = #{expiringDate}</if>
|
||||
<if test="purchaseDate != null "> and a.purchase_date = #{purchaseDate}</if>
|
||||
<if test="purchasePrice != null "> and a.purchase_price = #{purchasePrice}</if>
|
||||
<if test="code != null and code != ''"> and a.code = #{code}</if>
|
||||
<if test="state != null and state != ''"> and a.state = #{state}</if>
|
||||
<if test="leftCount != null "> and a.left_count = #{leftCount}</if>
|
||||
<if test="usedCount != null "> and a.used_count = #{usedCount}</if>
|
||||
<if test="purchaseAddress != null and purchaseAddress != ''"> and a.purchase_address = #{purchaseAddress}</if>
|
||||
</where>
|
||||
<!-- 数据范围过滤 -->
|
||||
${params.dataScope}
|
||||
order by a.purchase_date desc
|
||||
</select>
|
||||
|
||||
<select id="selectHealthMedicineStockInById" parameterType="Long" resultMap="HealthMedicineStockInResult">
|
||||
<include refid="selectHealthMedicineStockInVo"/>
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertHealthMedicineStockIn" parameterType="HealthMedicineStockIn">
|
||||
insert into health_medicine_stock_in
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="medicineId != null">medicine_id,</if>
|
||||
<if test="quantity != null">quantity,</if>
|
||||
<if test="productionDate != null">production_date,</if>
|
||||
<if test="expiringDate != null">expiring_date,</if>
|
||||
<if test="purchaseDate != null">purchase_date,</if>
|
||||
<if test="purchasePrice != null">purchase_price,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="code != null and code != ''">code,</if>
|
||||
<if test="state != null and state != ''">state,</if>
|
||||
<if test="leftCount != null">left_count,</if>
|
||||
<if test="usedCount != null">used_count,</if>
|
||||
<if test="purchaseAddress != null">purchase_address,</if>
|
||||
<if test="totalPrice != null">total_price,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="medicineId != null">#{medicineId},</if>
|
||||
<if test="quantity != null">#{quantity},</if>
|
||||
<if test="productionDate != null">#{productionDate},</if>
|
||||
<if test="expiringDate != null">#{expiringDate},</if>
|
||||
<if test="purchaseDate != null">#{purchaseDate},</if>
|
||||
<if test="purchasePrice != null">#{purchasePrice},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="code != null and code != ''">#{code},</if>
|
||||
<if test="state != null and state != ''">#{state},</if>
|
||||
<if test="leftCount != null">#{leftCount},</if>
|
||||
<if test="usedCount != null">#{usedCount},</if>
|
||||
<if test="purchaseAddress != null">#{purchaseAddress},</if>
|
||||
<if test="totalPrice != null">#{totalPrice},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateHealthMedicineStockIn" parameterType="HealthMedicineStockIn">
|
||||
update health_medicine_stock_in
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="medicineId != null">medicine_id = #{medicineId},</if>
|
||||
<if test="quantity != null">quantity = #{quantity},</if>
|
||||
<if test="productionDate != null">production_date = #{productionDate},</if>
|
||||
<if test="expiringDate != null">expiring_date = #{expiringDate},</if>
|
||||
<if test="purchaseDate != null">purchase_date = #{purchaseDate},</if>
|
||||
<if test="purchasePrice != null">purchase_price = #{purchasePrice},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="code != null and code != ''">code = #{code},</if>
|
||||
<if test="state != null and state != ''">state = #{state},</if>
|
||||
<if test="leftCount != null">left_count = #{leftCount},</if>
|
||||
<if test="usedCount != null">used_count = #{usedCount},</if>
|
||||
<if test="purchaseAddress != null">purchase_address = #{purchaseAddress},</if>
|
||||
<if test="totalPrice != null">total_price = #{totalPrice},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteHealthMedicineStockInById" parameterType="Long">
|
||||
delete from health_medicine_stock_in where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteHealthMedicineStockInByIds" parameterType="String">
|
||||
delete from health_medicine_stock_in where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
<update id="removeHealthMedicineStockInById" parameterType="Long">
|
||||
update health_medicine_stock_in set del_flag='1' where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="removeHealthMedicineStockInByIds" parameterType="String">
|
||||
update health_medicine_stock_in set del_flag='1' where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user