Merge branch '0418_小程序开发' of http://182.92.166.109:3000/jihan/PostDischargePatientManage into 0418_小程序开发
This commit is contained in:
commit
d59433b15b
@ -0,0 +1,91 @@
|
||||
package com.xinelu.manage.controller.basedietinfo;
|
||||
|
||||
import com.xinelu.common.annotation.Log;
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.manage.domain.basedietinfo.BaseDietInfo;
|
||||
import com.xinelu.manage.service.basedietinfo.IBaseDietInfoService;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 饮食知识库Controller
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-05-17
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/baseDiet")
|
||||
public class BaseDietInfoController extends BaseController {
|
||||
@Resource
|
||||
private IBaseDietInfoService baseDietInfoService;
|
||||
|
||||
/**
|
||||
* 查询饮食知识库列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseDiet:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(BaseDietInfo baseDietInfo) {
|
||||
startPage();
|
||||
List<BaseDietInfo> list = baseDietInfoService.selectBaseDietInfoList(baseDietInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出饮食知识库列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseDiet:export')")
|
||||
@Log(title = "饮食知识库", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, BaseDietInfo baseDietInfo) {
|
||||
List<BaseDietInfo> list = baseDietInfoService.selectBaseDietInfoList(baseDietInfo);
|
||||
ExcelUtil<BaseDietInfo> util = new ExcelUtil<>(BaseDietInfo.class);
|
||||
util.exportExcel(response, list, "饮食知识库数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取饮食知识库详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseDiet:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(baseDietInfoService.selectBaseDietInfoById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增饮食知识库
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseDiet:add')")
|
||||
@Log(title = "饮食知识库", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
public AjaxResult add(@RequestBody BaseDietInfo baseDietInfo) {
|
||||
return toAjax(baseDietInfoService.insertBaseDietInfo(baseDietInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改饮食知识库
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseDiet:edit')")
|
||||
@Log(title = "饮食知识库", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/edit")
|
||||
public AjaxResult edit(@RequestBody BaseDietInfo baseDietInfo) {
|
||||
return toAjax(baseDietInfoService.updateBaseDietInfo(baseDietInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除饮食知识库
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseDiet:remove')")
|
||||
@Log(title = "饮食知识库", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(baseDietInfoService.deleteBaseDietInfoByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,91 @@
|
||||
package com.xinelu.manage.controller.basedruginfo;
|
||||
|
||||
import com.xinelu.common.annotation.Log;
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.manage.domain.basedruginfo.BaseDrugInfo;
|
||||
import com.xinelu.manage.service.basedruginfo.IBaseDrugInfoService;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 药品库Controller
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-05-17
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/baseDrug")
|
||||
public class BaseDrugInfoController extends BaseController {
|
||||
@Resource
|
||||
private IBaseDrugInfoService baseDrugInfoService;
|
||||
|
||||
/**
|
||||
* 查询药品库列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseDrug:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(BaseDrugInfo baseDrugInfo) {
|
||||
startPage();
|
||||
List<BaseDrugInfo> list = baseDrugInfoService.selectBaseDrugInfoList(baseDrugInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出药品库列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseDrug:export')")
|
||||
@Log(title = "药品库", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, BaseDrugInfo baseDrugInfo) {
|
||||
List<BaseDrugInfo> list = baseDrugInfoService.selectBaseDrugInfoList(baseDrugInfo);
|
||||
ExcelUtil<BaseDrugInfo> util = new ExcelUtil<>(BaseDrugInfo.class);
|
||||
util.exportExcel(response, list, "药品库数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取药品库详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseDrug:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(baseDrugInfoService.selectBaseDrugInfoById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增药品库
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseDrug:add')")
|
||||
@Log(title = "药品库", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
public AjaxResult add(@RequestBody BaseDrugInfo baseDrugInfo) {
|
||||
return toAjax(baseDrugInfoService.insertBaseDrugInfo(baseDrugInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改药品库
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseDrug:edit')")
|
||||
@Log(title = "药品库", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/edit")
|
||||
public AjaxResult edit(@RequestBody BaseDrugInfo baseDrugInfo) {
|
||||
return toAjax(baseDrugInfoService.updateBaseDrugInfo(baseDrugInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除药品库
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseDrug:remove')")
|
||||
@Log(title = "药品库", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(baseDrugInfoService.deleteBaseDrugInfoByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,91 @@
|
||||
package com.xinelu.manage.controller.basenursinginfo;
|
||||
|
||||
import com.xinelu.common.annotation.Log;
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.manage.domain.basenursinginfo.BaseNursingInfo;
|
||||
import com.xinelu.manage.service.basenursinginfo.IBaseNursingInfoService;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 护理知识库Controller
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-05-17
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/baseNursing")
|
||||
public class BaseNursingInfoController extends BaseController {
|
||||
@Resource
|
||||
private IBaseNursingInfoService baseNursingInfoService;
|
||||
|
||||
/**
|
||||
* 查询护理知识库列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseNursing:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(BaseNursingInfo baseNursingInfo) {
|
||||
startPage();
|
||||
List<BaseNursingInfo> list = baseNursingInfoService.selectBaseNursingInfoList(baseNursingInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出护理知识库列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseNursing:export')")
|
||||
@Log(title = "护理知识库", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, BaseNursingInfo baseNursingInfo) {
|
||||
List<BaseNursingInfo> list = baseNursingInfoService.selectBaseNursingInfoList(baseNursingInfo);
|
||||
ExcelUtil<BaseNursingInfo> util = new ExcelUtil<>(BaseNursingInfo.class);
|
||||
util.exportExcel(response, list, "护理知识库数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取护理知识库详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseNursing:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(baseNursingInfoService.selectBaseNursingInfoById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增护理知识库
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseNursing:add')")
|
||||
@Log(title = "护理知识库", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
public AjaxResult add(@RequestBody BaseNursingInfo baseNursingInfo) {
|
||||
return toAjax(baseNursingInfoService.insertBaseNursingInfo(baseNursingInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改护理知识库
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseNursing:edit')")
|
||||
@Log(title = "护理知识库", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/edit")
|
||||
public AjaxResult edit(@RequestBody BaseNursingInfo baseNursingInfo) {
|
||||
return toAjax(baseNursingInfoService.updateBaseNursingInfo(baseNursingInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除护理知识库
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseNursing:remove')")
|
||||
@Log(title = "护理知识库", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(baseNursingInfoService.deleteBaseNursingInfoByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,91 @@
|
||||
package com.xinelu.manage.controller.basesportinfo;
|
||||
|
||||
import com.xinelu.common.annotation.Log;
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.manage.domain.basesportinfo.BaseSportInfo;
|
||||
import com.xinelu.manage.service.basesportinfo.IBaseSportInfoService;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 运动知识库Controller
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-05-16
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/baseSport")
|
||||
public class BaseSportInfoController extends BaseController {
|
||||
@Resource
|
||||
private IBaseSportInfoService baseSportInfoService;
|
||||
|
||||
/**
|
||||
* 查询运动知识库列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseSport:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(BaseSportInfo baseSportInfo) {
|
||||
startPage();
|
||||
List<BaseSportInfo> list = baseSportInfoService.selectBaseSportInfoList(baseSportInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出运动知识库列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseSport:export')")
|
||||
@Log(title = "运动知识库", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, BaseSportInfo baseSportInfo) {
|
||||
List<BaseSportInfo> list = baseSportInfoService.selectBaseSportInfoList(baseSportInfo);
|
||||
ExcelUtil<BaseSportInfo> util = new ExcelUtil<>(BaseSportInfo.class);
|
||||
util.exportExcel(response, list, "运动知识库数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取运动知识库详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseSport:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(baseSportInfoService.selectBaseSportInfoById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增运动知识库
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseSport:add')")
|
||||
@Log(title = "运动知识库", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
public AjaxResult add(@RequestBody BaseSportInfo baseSportInfo) {
|
||||
return toAjax(baseSportInfoService.insertBaseSportInfo(baseSportInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改运动知识库
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseSport:edit')")
|
||||
@Log(title = "运动知识库", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/edit")
|
||||
public AjaxResult edit(@RequestBody BaseSportInfo baseSportInfo) {
|
||||
return toAjax(baseSportInfoService.updateBaseSportInfo(baseSportInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除运动知识库
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:baseSport:remove')")
|
||||
@Log(title = "运动知识库", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(baseSportInfoService.deleteBaseSportInfoByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,100 @@
|
||||
package com.xinelu.manage.domain.basedietinfo;
|
||||
|
||||
import com.xinelu.common.annotation.Excel;
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 饮食知识库对象 base_diet_info
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-05-17
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "饮食知识库对象", description = "base_diet_info")
|
||||
public class BaseDietInfo extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* $column.columnComment
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 饮食建议名称
|
||||
*/
|
||||
@ApiModelProperty(value = "饮食建议名称")
|
||||
@Excel(name = "饮食建议名称")
|
||||
private String dietName;
|
||||
|
||||
/**
|
||||
* 饮食原则
|
||||
*/
|
||||
@ApiModelProperty(value = "饮食原则")
|
||||
@Excel(name = "饮食原则")
|
||||
private String dietPrinciple;
|
||||
|
||||
/**
|
||||
* 主食推荐
|
||||
*/
|
||||
@ApiModelProperty(value = "主食推荐")
|
||||
@Excel(name = "主食推荐")
|
||||
private String mainFood;
|
||||
|
||||
/**
|
||||
* 蔬菜推荐
|
||||
*/
|
||||
@ApiModelProperty(value = "蔬菜推荐")
|
||||
@Excel(name = "蔬菜推荐")
|
||||
private String vegetable;
|
||||
|
||||
/**
|
||||
* 水果推荐
|
||||
*/
|
||||
@ApiModelProperty(value = "水果推荐")
|
||||
@Excel(name = "水果推荐")
|
||||
private String fruit;
|
||||
|
||||
/**
|
||||
* 肉类推荐
|
||||
*/
|
||||
@ApiModelProperty(value = "肉类推荐")
|
||||
@Excel(name = "肉类推荐")
|
||||
private String meat;
|
||||
|
||||
/**
|
||||
* 饮食说明
|
||||
*/
|
||||
@ApiModelProperty(value = "饮食说明")
|
||||
@Excel(name = "饮食说明")
|
||||
private String dietRemark;
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("dietName", getDietName())
|
||||
.append("dietPrinciple", getDietPrinciple())
|
||||
.append("mainFood", getMainFood())
|
||||
.append("vegetable", getVegetable())
|
||||
.append("fruit", getFruit())
|
||||
.append("meat", getMeat())
|
||||
.append("dietRemark", getDietRemark())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,124 @@
|
||||
package com.xinelu.manage.domain.basedruginfo;
|
||||
|
||||
import com.xinelu.common.annotation.Excel;
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 药品库对象 base_drug_info
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-05-17
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "药品库对象", description = "base_drug_info")
|
||||
public class BaseDrugInfo extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* $column.columnComment
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 药品名称
|
||||
*/
|
||||
@ApiModelProperty(value = "药品名称")
|
||||
@Excel(name = "药品名称")
|
||||
private String drugName;
|
||||
|
||||
/**
|
||||
* 适用症
|
||||
*/
|
||||
@ApiModelProperty(value = "适用症")
|
||||
@Excel(name = "适用症")
|
||||
private String purpose;
|
||||
|
||||
/**
|
||||
* 给药途径
|
||||
*/
|
||||
@ApiModelProperty(value = "给药途径")
|
||||
@Excel(name = "给药途径")
|
||||
private String applyWay;
|
||||
|
||||
/**
|
||||
* 用药频次
|
||||
*/
|
||||
@ApiModelProperty(value = "用药频次")
|
||||
@Excel(name = "用药频次")
|
||||
private String applyFrequency;
|
||||
|
||||
/**
|
||||
* 服药说明
|
||||
*/
|
||||
@ApiModelProperty(value = "服药说明")
|
||||
@Excel(name = "服药说明")
|
||||
private String applyRemark;
|
||||
|
||||
/**
|
||||
* 用法用量(服法剂量)
|
||||
*/
|
||||
@ApiModelProperty(value = "用法用量(服法剂量)")
|
||||
@Excel(name = "用法用量(服法剂量)")
|
||||
private String dosage;
|
||||
|
||||
/**
|
||||
* 副作用(不良反应)
|
||||
*/
|
||||
@ApiModelProperty(value = "副作用(不良反应)")
|
||||
@Excel(name = "副作用(不良反应)")
|
||||
private String sideEffects;
|
||||
|
||||
/**
|
||||
* 禁忌症
|
||||
*/
|
||||
@ApiModelProperty(value = "禁忌症")
|
||||
@Excel(name = "禁忌症")
|
||||
private String contraindications;
|
||||
|
||||
/**
|
||||
* 存储条件
|
||||
*/
|
||||
@ApiModelProperty(value = "存储条件")
|
||||
@Excel(name = "存储条件")
|
||||
private String storage;
|
||||
|
||||
/**
|
||||
* 漏服或过服的处理方法
|
||||
*/
|
||||
@ApiModelProperty(value = "漏服或过服的处理方法")
|
||||
@Excel(name = "漏服或过服的处理方法")
|
||||
private String emergency;
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("drugName", getDrugName())
|
||||
.append("purpose", getPurpose())
|
||||
.append("applyWay", getApplyWay())
|
||||
.append("applyFrequency", getApplyFrequency())
|
||||
.append("applyRemark", getApplyRemark())
|
||||
.append("dosage", getDosage())
|
||||
.append("sideEffects", getSideEffects())
|
||||
.append("contraindications", getContraindications())
|
||||
.append("storage", getStorage())
|
||||
.append("emergency", getEmergency())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,84 @@
|
||||
package com.xinelu.manage.domain.basenursinginfo;
|
||||
|
||||
import com.xinelu.common.annotation.Excel;
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 护理知识库对象 base_nursing_info
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-05-17
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "护理知识库对象", description = "base_nursing_info")
|
||||
public class BaseNursingInfo extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* $column.columnComment
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 护理知识名称
|
||||
*/
|
||||
@ApiModelProperty(value = "护理知识名称")
|
||||
@Excel(name = "护理知识名称")
|
||||
private String nursingName;
|
||||
|
||||
/**
|
||||
* 烟酒指导
|
||||
*/
|
||||
@ApiModelProperty(value = "烟酒指导")
|
||||
@Excel(name = "烟酒指导")
|
||||
private String tobaccoWine;
|
||||
|
||||
/**
|
||||
* 睡眠指导
|
||||
*/
|
||||
@ApiModelProperty(value = "睡眠指导")
|
||||
@Excel(name = "睡眠指导")
|
||||
private String sleep;
|
||||
|
||||
/**
|
||||
* 情绪指导
|
||||
*/
|
||||
@ApiModelProperty(value = "情绪指导")
|
||||
@Excel(name = "情绪指导")
|
||||
private String emotion;
|
||||
|
||||
/**
|
||||
* $column.columnComment
|
||||
*/
|
||||
@ApiModelProperty(value = "${comment}")
|
||||
@Excel(name = "居家安全指导")
|
||||
private String homeSafeguard;
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("nursingName", getNursingName())
|
||||
.append("tobaccoWine", getTobaccoWine())
|
||||
.append("sleep", getSleep())
|
||||
.append("emotion", getEmotion())
|
||||
.append("homeSafeguard", getHomeSafeguard())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,124 @@
|
||||
package com.xinelu.manage.domain.basesportinfo;
|
||||
|
||||
import com.xinelu.common.annotation.Excel;
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 运动知识库对象 base_sport_info
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-05-16
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "运动知识库对象", description = "base_sport_info")
|
||||
public class BaseSportInfo extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* $column.columnComment
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 运动名称
|
||||
*/
|
||||
@ApiModelProperty(value = "运动名称")
|
||||
@Excel(name = "运动名称")
|
||||
private String sportName;
|
||||
|
||||
/**
|
||||
* 运动类型ID(字典表)
|
||||
*/
|
||||
@ApiModelProperty(value = "运动类型ID")
|
||||
@Excel(name = "运动类型ID", readConverterExp = "字=典表")
|
||||
private Long sportTypeId;
|
||||
|
||||
/**
|
||||
* 运动类型名称
|
||||
*/
|
||||
@ApiModelProperty(value = "运动类型名称")
|
||||
@Excel(name = "运动类型名称")
|
||||
private String sportTypeName;
|
||||
|
||||
/**
|
||||
* 运动方式
|
||||
*/
|
||||
@ApiModelProperty(value = "运动方式")
|
||||
@Excel(name = "运动方式")
|
||||
private String sportWay;
|
||||
|
||||
/**
|
||||
* 运动频率
|
||||
*/
|
||||
@ApiModelProperty(value = "运动频率")
|
||||
@Excel(name = "运动频率")
|
||||
private String sportFrequency;
|
||||
|
||||
/**
|
||||
* 每次运动时长
|
||||
*/
|
||||
@ApiModelProperty(value = "每次运动时长")
|
||||
@Excel(name = "每次运动时长")
|
||||
private String sportDuration;
|
||||
|
||||
/**
|
||||
* 运动时间
|
||||
*/
|
||||
@ApiModelProperty(value = "运动时间")
|
||||
@Excel(name = "运动时间")
|
||||
private String sportTime;
|
||||
|
||||
/**
|
||||
* 运动强度
|
||||
*/
|
||||
@ApiModelProperty(value = "运动强度")
|
||||
@Excel(name = "运动强度")
|
||||
private String sportIntensity;
|
||||
|
||||
/**
|
||||
* 运动注意事项
|
||||
*/
|
||||
@ApiModelProperty(value = "运动注意事项")
|
||||
@Excel(name = "运动注意事项")
|
||||
private String sportAttention;
|
||||
|
||||
/**
|
||||
* 动作说明
|
||||
*/
|
||||
@ApiModelProperty(value = "动作说明")
|
||||
@Excel(name = "动作说明")
|
||||
private String sportRemark;
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("sportName", getSportName())
|
||||
.append("sportTypeId", getSportTypeId())
|
||||
.append("sportTypeName", getSportTypeName())
|
||||
.append("sportWay", getSportWay())
|
||||
.append("sportFrequency", getSportFrequency())
|
||||
.append("sportDuration", getSportDuration())
|
||||
.append("sportTime", getSportTime())
|
||||
.append("sportIntensity", getSportIntensity())
|
||||
.append("sportAttention", getSportAttention())
|
||||
.append("sportRemark", getSportRemark())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.mapper.basedietinfo;
|
||||
|
||||
import com.xinelu.manage.domain.basedietinfo.BaseDietInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 饮食知识库Mapper接口
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-05-17
|
||||
*/
|
||||
public interface BaseDietInfoMapper {
|
||||
/**
|
||||
* 查询饮食知识库
|
||||
*
|
||||
* @param id 饮食知识库主键
|
||||
* @return 饮食知识库
|
||||
*/
|
||||
BaseDietInfo selectBaseDietInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询饮食知识库列表
|
||||
*
|
||||
* @param baseDietInfo 饮食知识库
|
||||
* @return 饮食知识库集合
|
||||
*/
|
||||
List<BaseDietInfo> selectBaseDietInfoList(BaseDietInfo baseDietInfo);
|
||||
|
||||
/**
|
||||
* 新增饮食知识库
|
||||
*
|
||||
* @param baseDietInfo 饮食知识库
|
||||
* @return 结果
|
||||
*/
|
||||
int insertBaseDietInfo(BaseDietInfo baseDietInfo);
|
||||
|
||||
/**
|
||||
* 修改饮食知识库
|
||||
*
|
||||
* @param baseDietInfo 饮食知识库
|
||||
* @return 结果
|
||||
*/
|
||||
int updateBaseDietInfo(BaseDietInfo baseDietInfo);
|
||||
|
||||
/**
|
||||
* 删除饮食知识库
|
||||
*
|
||||
* @param id 饮食知识库主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteBaseDietInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除饮食知识库
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteBaseDietInfoByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.mapper.basedruginfo;
|
||||
|
||||
import com.xinelu.manage.domain.basedruginfo.BaseDrugInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 药品库Mapper接口
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-05-17
|
||||
*/
|
||||
public interface BaseDrugInfoMapper {
|
||||
/**
|
||||
* 查询药品库
|
||||
*
|
||||
* @param id 药品库主键
|
||||
* @return 药品库
|
||||
*/
|
||||
BaseDrugInfo selectBaseDrugInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询药品库列表
|
||||
*
|
||||
* @param baseDrugInfo 药品库
|
||||
* @return 药品库集合
|
||||
*/
|
||||
List<BaseDrugInfo> selectBaseDrugInfoList(BaseDrugInfo baseDrugInfo);
|
||||
|
||||
/**
|
||||
* 新增药品库
|
||||
*
|
||||
* @param baseDrugInfo 药品库
|
||||
* @return 结果
|
||||
*/
|
||||
int insertBaseDrugInfo(BaseDrugInfo baseDrugInfo);
|
||||
|
||||
/**
|
||||
* 修改药品库
|
||||
*
|
||||
* @param baseDrugInfo 药品库
|
||||
* @return 结果
|
||||
*/
|
||||
int updateBaseDrugInfo(BaseDrugInfo baseDrugInfo);
|
||||
|
||||
/**
|
||||
* 删除药品库
|
||||
*
|
||||
* @param id 药品库主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteBaseDrugInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除药品库
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteBaseDrugInfoByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.mapper.basenursinginfo;
|
||||
|
||||
import com.xinelu.manage.domain.basenursinginfo.BaseNursingInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 护理知识库Mapper接口
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-05-17
|
||||
*/
|
||||
public interface BaseNursingInfoMapper {
|
||||
/**
|
||||
* 查询护理知识库
|
||||
*
|
||||
* @param id 护理知识库主键
|
||||
* @return 护理知识库
|
||||
*/
|
||||
BaseNursingInfo selectBaseNursingInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询护理知识库列表
|
||||
*
|
||||
* @param baseNursingInfo 护理知识库
|
||||
* @return 护理知识库集合
|
||||
*/
|
||||
List<BaseNursingInfo> selectBaseNursingInfoList(BaseNursingInfo baseNursingInfo);
|
||||
|
||||
/**
|
||||
* 新增护理知识库
|
||||
*
|
||||
* @param baseNursingInfo 护理知识库
|
||||
* @return 结果
|
||||
*/
|
||||
int insertBaseNursingInfo(BaseNursingInfo baseNursingInfo);
|
||||
|
||||
/**
|
||||
* 修改护理知识库
|
||||
*
|
||||
* @param baseNursingInfo 护理知识库
|
||||
* @return 结果
|
||||
*/
|
||||
int updateBaseNursingInfo(BaseNursingInfo baseNursingInfo);
|
||||
|
||||
/**
|
||||
* 删除护理知识库
|
||||
*
|
||||
* @param id 护理知识库主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteBaseNursingInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除护理知识库
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteBaseNursingInfoByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.mapper.basesportinfo;
|
||||
|
||||
import com.xinelu.manage.domain.basesportinfo.BaseSportInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 运动知识库Mapper接口
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-05-16
|
||||
*/
|
||||
public interface BaseSportInfoMapper {
|
||||
/**
|
||||
* 查询运动知识库
|
||||
*
|
||||
* @param id 运动知识库主键
|
||||
* @return 运动知识库
|
||||
*/
|
||||
BaseSportInfo selectBaseSportInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询运动知识库列表
|
||||
*
|
||||
* @param baseSportInfo 运动知识库
|
||||
* @return 运动知识库集合
|
||||
*/
|
||||
List<BaseSportInfo> selectBaseSportInfoList(BaseSportInfo baseSportInfo);
|
||||
|
||||
/**
|
||||
* 新增运动知识库
|
||||
*
|
||||
* @param baseSportInfo 运动知识库
|
||||
* @return 结果
|
||||
*/
|
||||
int insertBaseSportInfo(BaseSportInfo baseSportInfo);
|
||||
|
||||
/**
|
||||
* 修改运动知识库
|
||||
*
|
||||
* @param baseSportInfo 运动知识库
|
||||
* @return 结果
|
||||
*/
|
||||
int updateBaseSportInfo(BaseSportInfo baseSportInfo);
|
||||
|
||||
/**
|
||||
* 删除运动知识库
|
||||
*
|
||||
* @param id 运动知识库主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteBaseSportInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除运动知识库
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteBaseSportInfoByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.service.basedietinfo;
|
||||
|
||||
import com.xinelu.manage.domain.basedietinfo.BaseDietInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 饮食知识库Service接口
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-05-17
|
||||
*/
|
||||
public interface IBaseDietInfoService {
|
||||
/**
|
||||
* 查询饮食知识库
|
||||
*
|
||||
* @param id 饮食知识库主键
|
||||
* @return 饮食知识库
|
||||
*/
|
||||
BaseDietInfo selectBaseDietInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询饮食知识库列表
|
||||
*
|
||||
* @param baseDietInfo 饮食知识库
|
||||
* @return 饮食知识库集合
|
||||
*/
|
||||
List<BaseDietInfo> selectBaseDietInfoList(BaseDietInfo baseDietInfo);
|
||||
|
||||
/**
|
||||
* 新增饮食知识库
|
||||
*
|
||||
* @param baseDietInfo 饮食知识库
|
||||
* @return 结果
|
||||
*/
|
||||
int insertBaseDietInfo(BaseDietInfo baseDietInfo);
|
||||
|
||||
/**
|
||||
* 修改饮食知识库
|
||||
*
|
||||
* @param baseDietInfo 饮食知识库
|
||||
* @return 结果
|
||||
*/
|
||||
int updateBaseDietInfo(BaseDietInfo baseDietInfo);
|
||||
|
||||
/**
|
||||
* 批量删除饮食知识库
|
||||
*
|
||||
* @param ids 需要删除的饮食知识库主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteBaseDietInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除饮食知识库信息
|
||||
*
|
||||
* @param id 饮食知识库主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteBaseDietInfoById(Long id);
|
||||
}
|
||||
@ -0,0 +1,90 @@
|
||||
package com.xinelu.manage.service.basedietinfo.impl;
|
||||
|
||||
import com.xinelu.manage.domain.basedietinfo.BaseDietInfo;
|
||||
import com.xinelu.manage.mapper.basedietinfo.BaseDietInfoMapper;
|
||||
import com.xinelu.manage.service.basedietinfo.IBaseDietInfoService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 饮食知识库Service业务层处理
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-05-17
|
||||
*/
|
||||
@Service
|
||||
public class BaseDietInfoServiceImpl implements IBaseDietInfoService {
|
||||
@Resource
|
||||
private BaseDietInfoMapper baseDietInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询饮食知识库
|
||||
*
|
||||
* @param id 饮食知识库主键
|
||||
* @return 饮食知识库
|
||||
*/
|
||||
@Override
|
||||
public BaseDietInfo selectBaseDietInfoById(Long id) {
|
||||
return baseDietInfoMapper.selectBaseDietInfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询饮食知识库列表
|
||||
*
|
||||
* @param baseDietInfo 饮食知识库
|
||||
* @return 饮食知识库
|
||||
*/
|
||||
@Override
|
||||
public List<BaseDietInfo> selectBaseDietInfoList(BaseDietInfo baseDietInfo) {
|
||||
return baseDietInfoMapper.selectBaseDietInfoList(baseDietInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增饮食知识库
|
||||
*
|
||||
* @param baseDietInfo 饮食知识库
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertBaseDietInfo(BaseDietInfo baseDietInfo) {
|
||||
baseDietInfo.setCreateTime(LocalDateTime.now());
|
||||
return baseDietInfoMapper.insertBaseDietInfo(baseDietInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改饮食知识库
|
||||
*
|
||||
* @param baseDietInfo 饮食知识库
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateBaseDietInfo(BaseDietInfo baseDietInfo) {
|
||||
baseDietInfo.setUpdateTime(LocalDateTime.now());
|
||||
return baseDietInfoMapper.updateBaseDietInfo(baseDietInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除饮食知识库
|
||||
*
|
||||
* @param ids 需要删除的饮食知识库主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBaseDietInfoByIds(Long[] ids) {
|
||||
return baseDietInfoMapper.deleteBaseDietInfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除饮食知识库信息
|
||||
*
|
||||
* @param id 饮食知识库主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBaseDietInfoById(Long id) {
|
||||
return baseDietInfoMapper.deleteBaseDietInfoById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.service.basedruginfo;
|
||||
|
||||
import com.xinelu.manage.domain.basedruginfo.BaseDrugInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 药品库Service接口
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-05-17
|
||||
*/
|
||||
public interface IBaseDrugInfoService {
|
||||
/**
|
||||
* 查询药品库
|
||||
*
|
||||
* @param id 药品库主键
|
||||
* @return 药品库
|
||||
*/
|
||||
BaseDrugInfo selectBaseDrugInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询药品库列表
|
||||
*
|
||||
* @param baseDrugInfo 药品库
|
||||
* @return 药品库集合
|
||||
*/
|
||||
List<BaseDrugInfo> selectBaseDrugInfoList(BaseDrugInfo baseDrugInfo);
|
||||
|
||||
/**
|
||||
* 新增药品库
|
||||
*
|
||||
* @param baseDrugInfo 药品库
|
||||
* @return 结果
|
||||
*/
|
||||
int insertBaseDrugInfo(BaseDrugInfo baseDrugInfo);
|
||||
|
||||
/**
|
||||
* 修改药品库
|
||||
*
|
||||
* @param baseDrugInfo 药品库
|
||||
* @return 结果
|
||||
*/
|
||||
int updateBaseDrugInfo(BaseDrugInfo baseDrugInfo);
|
||||
|
||||
/**
|
||||
* 批量删除药品库
|
||||
*
|
||||
* @param ids 需要删除的药品库主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteBaseDrugInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除药品库信息
|
||||
*
|
||||
* @param id 药品库主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteBaseDrugInfoById(Long id);
|
||||
}
|
||||
@ -0,0 +1,90 @@
|
||||
package com.xinelu.manage.service.basedruginfo.impl;
|
||||
|
||||
import com.xinelu.manage.domain.basedruginfo.BaseDrugInfo;
|
||||
import com.xinelu.manage.mapper.basedruginfo.BaseDrugInfoMapper;
|
||||
import com.xinelu.manage.service.basedruginfo.IBaseDrugInfoService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 药品库Service业务层处理
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-05-17
|
||||
*/
|
||||
@Service
|
||||
public class BaseDrugInfoServiceImpl implements IBaseDrugInfoService {
|
||||
@Resource
|
||||
private BaseDrugInfoMapper baseDrugInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询药品库
|
||||
*
|
||||
* @param id 药品库主键
|
||||
* @return 药品库
|
||||
*/
|
||||
@Override
|
||||
public BaseDrugInfo selectBaseDrugInfoById(Long id) {
|
||||
return baseDrugInfoMapper.selectBaseDrugInfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询药品库列表
|
||||
*
|
||||
* @param baseDrugInfo 药品库
|
||||
* @return 药品库
|
||||
*/
|
||||
@Override
|
||||
public List<BaseDrugInfo> selectBaseDrugInfoList(BaseDrugInfo baseDrugInfo) {
|
||||
return baseDrugInfoMapper.selectBaseDrugInfoList(baseDrugInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增药品库
|
||||
*
|
||||
* @param baseDrugInfo 药品库
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertBaseDrugInfo(BaseDrugInfo baseDrugInfo) {
|
||||
baseDrugInfo.setCreateTime(LocalDateTime.now());
|
||||
return baseDrugInfoMapper.insertBaseDrugInfo(baseDrugInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改药品库
|
||||
*
|
||||
* @param baseDrugInfo 药品库
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateBaseDrugInfo(BaseDrugInfo baseDrugInfo) {
|
||||
baseDrugInfo.setUpdateTime(LocalDateTime.now());
|
||||
return baseDrugInfoMapper.updateBaseDrugInfo(baseDrugInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除药品库
|
||||
*
|
||||
* @param ids 需要删除的药品库主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBaseDrugInfoByIds(Long[] ids) {
|
||||
return baseDrugInfoMapper.deleteBaseDrugInfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除药品库信息
|
||||
*
|
||||
* @param id 药品库主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBaseDrugInfoById(Long id) {
|
||||
return baseDrugInfoMapper.deleteBaseDrugInfoById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.service.basenursinginfo;
|
||||
|
||||
import com.xinelu.manage.domain.basenursinginfo.BaseNursingInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 护理知识库Service接口
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-05-17
|
||||
*/
|
||||
public interface IBaseNursingInfoService {
|
||||
/**
|
||||
* 查询护理知识库
|
||||
*
|
||||
* @param id 护理知识库主键
|
||||
* @return 护理知识库
|
||||
*/
|
||||
BaseNursingInfo selectBaseNursingInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询护理知识库列表
|
||||
*
|
||||
* @param baseNursingInfo 护理知识库
|
||||
* @return 护理知识库集合
|
||||
*/
|
||||
List<BaseNursingInfo> selectBaseNursingInfoList(BaseNursingInfo baseNursingInfo);
|
||||
|
||||
/**
|
||||
* 新增护理知识库
|
||||
*
|
||||
* @param baseNursingInfo 护理知识库
|
||||
* @return 结果
|
||||
*/
|
||||
int insertBaseNursingInfo(BaseNursingInfo baseNursingInfo);
|
||||
|
||||
/**
|
||||
* 修改护理知识库
|
||||
*
|
||||
* @param baseNursingInfo 护理知识库
|
||||
* @return 结果
|
||||
*/
|
||||
int updateBaseNursingInfo(BaseNursingInfo baseNursingInfo);
|
||||
|
||||
/**
|
||||
* 批量删除护理知识库
|
||||
*
|
||||
* @param ids 需要删除的护理知识库主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteBaseNursingInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除护理知识库信息
|
||||
*
|
||||
* @param id 护理知识库主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteBaseNursingInfoById(Long id);
|
||||
}
|
||||
@ -0,0 +1,90 @@
|
||||
package com.xinelu.manage.service.basenursinginfo.impl;
|
||||
|
||||
import com.xinelu.manage.domain.basenursinginfo.BaseNursingInfo;
|
||||
import com.xinelu.manage.mapper.basenursinginfo.BaseNursingInfoMapper;
|
||||
import com.xinelu.manage.service.basenursinginfo.IBaseNursingInfoService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 护理知识库Service业务层处理
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-05-17
|
||||
*/
|
||||
@Service
|
||||
public class BaseNursingInfoServiceImpl implements IBaseNursingInfoService {
|
||||
@Resource
|
||||
private BaseNursingInfoMapper baseNursingInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询护理知识库
|
||||
*
|
||||
* @param id 护理知识库主键
|
||||
* @return 护理知识库
|
||||
*/
|
||||
@Override
|
||||
public BaseNursingInfo selectBaseNursingInfoById(Long id) {
|
||||
return baseNursingInfoMapper.selectBaseNursingInfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询护理知识库列表
|
||||
*
|
||||
* @param baseNursingInfo 护理知识库
|
||||
* @return 护理知识库
|
||||
*/
|
||||
@Override
|
||||
public List<BaseNursingInfo> selectBaseNursingInfoList(BaseNursingInfo baseNursingInfo) {
|
||||
return baseNursingInfoMapper.selectBaseNursingInfoList(baseNursingInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增护理知识库
|
||||
*
|
||||
* @param baseNursingInfo 护理知识库
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertBaseNursingInfo(BaseNursingInfo baseNursingInfo) {
|
||||
baseNursingInfo.setCreateTime(LocalDateTime.now());
|
||||
return baseNursingInfoMapper.insertBaseNursingInfo(baseNursingInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改护理知识库
|
||||
*
|
||||
* @param baseNursingInfo 护理知识库
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateBaseNursingInfo(BaseNursingInfo baseNursingInfo) {
|
||||
baseNursingInfo.setUpdateTime(LocalDateTime.now());
|
||||
return baseNursingInfoMapper.updateBaseNursingInfo(baseNursingInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除护理知识库
|
||||
*
|
||||
* @param ids 需要删除的护理知识库主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBaseNursingInfoByIds(Long[] ids) {
|
||||
return baseNursingInfoMapper.deleteBaseNursingInfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除护理知识库信息
|
||||
*
|
||||
* @param id 护理知识库主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBaseNursingInfoById(Long id) {
|
||||
return baseNursingInfoMapper.deleteBaseNursingInfoById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.xinelu.manage.service.basesportinfo;
|
||||
|
||||
import com.xinelu.manage.domain.basesportinfo.BaseSportInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 运动知识库Service接口
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-05-16
|
||||
*/
|
||||
public interface IBaseSportInfoService {
|
||||
/**
|
||||
* 查询运动知识库
|
||||
*
|
||||
* @param id 运动知识库主键
|
||||
* @return 运动知识库
|
||||
*/
|
||||
BaseSportInfo selectBaseSportInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询运动知识库列表
|
||||
*
|
||||
* @param baseSportInfo 运动知识库
|
||||
* @return 运动知识库集合
|
||||
*/
|
||||
List<BaseSportInfo> selectBaseSportInfoList(BaseSportInfo baseSportInfo);
|
||||
|
||||
/**
|
||||
* 新增运动知识库
|
||||
*
|
||||
* @param baseSportInfo 运动知识库
|
||||
* @return 结果
|
||||
*/
|
||||
int insertBaseSportInfo(BaseSportInfo baseSportInfo);
|
||||
|
||||
/**
|
||||
* 修改运动知识库
|
||||
*
|
||||
* @param baseSportInfo 运动知识库
|
||||
* @return 结果
|
||||
*/
|
||||
int updateBaseSportInfo(BaseSportInfo baseSportInfo);
|
||||
|
||||
/**
|
||||
* 批量删除运动知识库
|
||||
*
|
||||
* @param ids 需要删除的运动知识库主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteBaseSportInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除运动知识库信息
|
||||
*
|
||||
* @param id 运动知识库主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteBaseSportInfoById(Long id);
|
||||
}
|
||||
@ -0,0 +1,90 @@
|
||||
package com.xinelu.manage.service.basesportinfo.impl;
|
||||
|
||||
import com.xinelu.manage.domain.basesportinfo.BaseSportInfo;
|
||||
import com.xinelu.manage.mapper.basesportinfo.BaseSportInfoMapper;
|
||||
import com.xinelu.manage.service.basesportinfo.IBaseSportInfoService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 运动知识库Service业务层处理
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-05-16
|
||||
*/
|
||||
@Service
|
||||
public class BaseSportInfoServiceImpl implements IBaseSportInfoService {
|
||||
@Resource
|
||||
private BaseSportInfoMapper baseSportInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询运动知识库
|
||||
*
|
||||
* @param id 运动知识库主键
|
||||
* @return 运动知识库
|
||||
*/
|
||||
@Override
|
||||
public BaseSportInfo selectBaseSportInfoById(Long id) {
|
||||
return baseSportInfoMapper.selectBaseSportInfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询运动知识库列表
|
||||
*
|
||||
* @param baseSportInfo 运动知识库
|
||||
* @return 运动知识库
|
||||
*/
|
||||
@Override
|
||||
public List<BaseSportInfo> selectBaseSportInfoList(BaseSportInfo baseSportInfo) {
|
||||
return baseSportInfoMapper.selectBaseSportInfoList(baseSportInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增运动知识库
|
||||
*
|
||||
* @param baseSportInfo 运动知识库
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertBaseSportInfo(BaseSportInfo baseSportInfo) {
|
||||
baseSportInfo.setCreateTime(LocalDateTime.now());
|
||||
return baseSportInfoMapper.insertBaseSportInfo(baseSportInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改运动知识库
|
||||
*
|
||||
* @param baseSportInfo 运动知识库
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateBaseSportInfo(BaseSportInfo baseSportInfo) {
|
||||
baseSportInfo.setUpdateTime(LocalDateTime.now());
|
||||
return baseSportInfoMapper.updateBaseSportInfo(baseSportInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除运动知识库
|
||||
*
|
||||
* @param ids 需要删除的运动知识库主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBaseSportInfoByIds(Long[] ids) {
|
||||
return baseSportInfoMapper.deleteBaseSportInfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除运动知识库信息
|
||||
*
|
||||
* @param id 运动知识库主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBaseSportInfoById(Long id) {
|
||||
return baseSportInfoMapper.deleteBaseSportInfoById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,162 @@
|
||||
<?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.xinelu.manage.mapper.basedietinfo.BaseDietInfoMapper">
|
||||
|
||||
<resultMap type="BaseDietInfo" id="BaseDietInfoResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="dietName" column="diet_name"/>
|
||||
<result property="dietPrinciple" column="diet_principle"/>
|
||||
<result property="mainFood" column="main_food"/>
|
||||
<result property="vegetable" column="vegetable"/>
|
||||
<result property="fruit" column="fruit"/>
|
||||
<result property="meat" column="meat"/>
|
||||
<result property="dietRemark" column="diet_remark"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectBaseDietInfoVo">
|
||||
select id, diet_name, diet_principle, main_food, vegetable, fruit, meat, diet_remark, create_time, create_by, update_by, update_time from base_diet_info
|
||||
</sql>
|
||||
|
||||
<select id="selectBaseDietInfoList" parameterType="BaseDietInfo" resultMap="BaseDietInfoResult">
|
||||
<include refid="selectBaseDietInfoVo"/>
|
||||
<where>
|
||||
<if test="dietName != null and dietName != ''">
|
||||
and diet_name like concat('%', #{dietName}, '%')
|
||||
</if>
|
||||
<if test="dietPrinciple != null and dietPrinciple != ''">
|
||||
and diet_principle = #{dietPrinciple}
|
||||
</if>
|
||||
<if test="mainFood != null and mainFood != ''">
|
||||
and main_food = #{mainFood}
|
||||
</if>
|
||||
<if test="vegetable != null and vegetable != ''">
|
||||
and vegetable = #{vegetable}
|
||||
</if>
|
||||
<if test="fruit != null and fruit != ''">
|
||||
and fruit = #{fruit}
|
||||
</if>
|
||||
<if test="meat != null and meat != ''">
|
||||
and meat = #{meat}
|
||||
</if>
|
||||
<if test="dietRemark != null and dietRemark != ''">
|
||||
and diet_remark = #{dietRemark}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectBaseDietInfoById" parameterType="Long"
|
||||
resultMap="BaseDietInfoResult">
|
||||
<include refid="selectBaseDietInfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertBaseDietInfo" parameterType="BaseDietInfo" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into base_diet_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="dietName != null">diet_name,
|
||||
</if>
|
||||
<if test="dietPrinciple != null">diet_principle,
|
||||
</if>
|
||||
<if test="mainFood != null">main_food,
|
||||
</if>
|
||||
<if test="vegetable != null">vegetable,
|
||||
</if>
|
||||
<if test="fruit != null">fruit,
|
||||
</if>
|
||||
<if test="meat != null">meat,
|
||||
</if>
|
||||
<if test="dietRemark != null">diet_remark,
|
||||
</if>
|
||||
<if test="createTime != null">create_time,
|
||||
</if>
|
||||
<if test="createBy != null">create_by,
|
||||
</if>
|
||||
<if test="updateBy != null">update_by,
|
||||
</if>
|
||||
<if test="updateTime != null">update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="dietName != null">#{dietName},
|
||||
</if>
|
||||
<if test="dietPrinciple != null">#{dietPrinciple},
|
||||
</if>
|
||||
<if test="mainFood != null">#{mainFood},
|
||||
</if>
|
||||
<if test="vegetable != null">#{vegetable},
|
||||
</if>
|
||||
<if test="fruit != null">#{fruit},
|
||||
</if>
|
||||
<if test="meat != null">#{meat},
|
||||
</if>
|
||||
<if test="dietRemark != null">#{dietRemark},
|
||||
</if>
|
||||
<if test="createTime != null">#{createTime},
|
||||
</if>
|
||||
<if test="createBy != null">#{createBy},
|
||||
</if>
|
||||
<if test="updateBy != null">#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateBaseDietInfo" parameterType="BaseDietInfo">
|
||||
update base_diet_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="dietName != null">diet_name =
|
||||
#{dietName},
|
||||
</if>
|
||||
<if test="dietPrinciple != null">diet_principle =
|
||||
#{dietPrinciple},
|
||||
</if>
|
||||
<if test="mainFood != null">main_food =
|
||||
#{mainFood},
|
||||
</if>
|
||||
<if test="vegetable != null">vegetable =
|
||||
#{vegetable},
|
||||
</if>
|
||||
<if test="fruit != null">fruit =
|
||||
#{fruit},
|
||||
</if>
|
||||
<if test="meat != null">meat =
|
||||
#{meat},
|
||||
</if>
|
||||
<if test="dietRemark != null">diet_remark =
|
||||
#{dietRemark},
|
||||
</if>
|
||||
<if test="createTime != null">create_time =
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="createBy != null">create_by =
|
||||
#{createBy},
|
||||
</if>
|
||||
<if test="updateBy != null">update_by =
|
||||
#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">update_time =
|
||||
#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteBaseDietInfoById" parameterType="Long">
|
||||
delete from base_diet_info where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteBaseDietInfoByIds" parameterType="String">
|
||||
delete from base_diet_info where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,195 @@
|
||||
<?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.xinelu.manage.mapper.basedruginfo.BaseDrugInfoMapper">
|
||||
|
||||
<resultMap type="BaseDrugInfo" id="BaseDrugInfoResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="drugName" column="drug_name"/>
|
||||
<result property="purpose" column="purpose"/>
|
||||
<result property="applyWay" column="apply_way"/>
|
||||
<result property="applyFrequency" column="apply_frequency"/>
|
||||
<result property="applyRemark" column="apply_remark"/>
|
||||
<result property="dosage" column="dosage"/>
|
||||
<result property="sideEffects" column="side_effects"/>
|
||||
<result property="contraindications" column="contraindications"/>
|
||||
<result property="storage" column="storage"/>
|
||||
<result property="emergency" column="emergency"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectBaseDrugInfoVo">
|
||||
select id, drug_name, purpose, apply_way, apply_frequency, apply_remark, dosage, side_effects, contraindications, storage, emergency, create_time, create_by, update_by, update_time from base_drug_info
|
||||
</sql>
|
||||
|
||||
<select id="selectBaseDrugInfoList" parameterType="BaseDrugInfo" resultMap="BaseDrugInfoResult">
|
||||
<include refid="selectBaseDrugInfoVo"/>
|
||||
<where>
|
||||
<if test="drugName != null and drugName != ''">
|
||||
and drug_name like concat('%', #{drugName}, '%')
|
||||
</if>
|
||||
<if test="purpose != null and purpose != ''">
|
||||
and purpose = #{purpose}
|
||||
</if>
|
||||
<if test="applyWay != null and applyWay != ''">
|
||||
and apply_way = #{applyWay}
|
||||
</if>
|
||||
<if test="applyFrequency != null and applyFrequency != ''">
|
||||
and apply_frequency = #{applyFrequency}
|
||||
</if>
|
||||
<if test="applyRemark != null and applyRemark != ''">
|
||||
and apply_remark = #{applyRemark}
|
||||
</if>
|
||||
<if test="dosage != null and dosage != ''">
|
||||
and dosage = #{dosage}
|
||||
</if>
|
||||
<if test="sideEffects != null and sideEffects != ''">
|
||||
and side_effects = #{sideEffects}
|
||||
</if>
|
||||
<if test="contraindications != null and contraindications != ''">
|
||||
and contraindications = #{contraindications}
|
||||
</if>
|
||||
<if test="storage != null and storage != ''">
|
||||
and storage = #{storage}
|
||||
</if>
|
||||
<if test="emergency != null and emergency != ''">
|
||||
and emergency = #{emergency}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectBaseDrugInfoById" parameterType="Long"
|
||||
resultMap="BaseDrugInfoResult">
|
||||
<include refid="selectBaseDrugInfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertBaseDrugInfo" parameterType="BaseDrugInfo" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into base_drug_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="drugName != null">drug_name,
|
||||
</if>
|
||||
<if test="purpose != null">purpose,
|
||||
</if>
|
||||
<if test="applyWay != null">apply_way,
|
||||
</if>
|
||||
<if test="applyFrequency != null">apply_frequency,
|
||||
</if>
|
||||
<if test="applyRemark != null">apply_remark,
|
||||
</if>
|
||||
<if test="dosage != null">dosage,
|
||||
</if>
|
||||
<if test="sideEffects != null">side_effects,
|
||||
</if>
|
||||
<if test="contraindications != null">contraindications,
|
||||
</if>
|
||||
<if test="storage != null">storage,
|
||||
</if>
|
||||
<if test="emergency != null">emergency,
|
||||
</if>
|
||||
<if test="createTime != null">create_time,
|
||||
</if>
|
||||
<if test="createBy != null">create_by,
|
||||
</if>
|
||||
<if test="updateBy != null">update_by,
|
||||
</if>
|
||||
<if test="updateTime != null">update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="drugName != null">#{drugName},
|
||||
</if>
|
||||
<if test="purpose != null">#{purpose},
|
||||
</if>
|
||||
<if test="applyWay != null">#{applyWay},
|
||||
</if>
|
||||
<if test="applyFrequency != null">#{applyFrequency},
|
||||
</if>
|
||||
<if test="applyRemark != null">#{applyRemark},
|
||||
</if>
|
||||
<if test="dosage != null">#{dosage},
|
||||
</if>
|
||||
<if test="sideEffects != null">#{sideEffects},
|
||||
</if>
|
||||
<if test="contraindications != null">#{contraindications},
|
||||
</if>
|
||||
<if test="storage != null">#{storage},
|
||||
</if>
|
||||
<if test="emergency != null">#{emergency},
|
||||
</if>
|
||||
<if test="createTime != null">#{createTime},
|
||||
</if>
|
||||
<if test="createBy != null">#{createBy},
|
||||
</if>
|
||||
<if test="updateBy != null">#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateBaseDrugInfo" parameterType="BaseDrugInfo">
|
||||
update base_drug_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="drugName != null">drug_name =
|
||||
#{drugName},
|
||||
</if>
|
||||
<if test="purpose != null">purpose =
|
||||
#{purpose},
|
||||
</if>
|
||||
<if test="applyWay != null">apply_way =
|
||||
#{applyWay},
|
||||
</if>
|
||||
<if test="applyFrequency != null">apply_frequency =
|
||||
#{applyFrequency},
|
||||
</if>
|
||||
<if test="applyRemark != null">apply_remark =
|
||||
#{applyRemark},
|
||||
</if>
|
||||
<if test="dosage != null">dosage =
|
||||
#{dosage},
|
||||
</if>
|
||||
<if test="sideEffects != null">side_effects =
|
||||
#{sideEffects},
|
||||
</if>
|
||||
<if test="contraindications != null">contraindications =
|
||||
#{contraindications},
|
||||
</if>
|
||||
<if test="storage != null">storage =
|
||||
#{storage},
|
||||
</if>
|
||||
<if test="emergency != null">emergency =
|
||||
#{emergency},
|
||||
</if>
|
||||
<if test="createTime != null">create_time =
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="createBy != null">create_by =
|
||||
#{createBy},
|
||||
</if>
|
||||
<if test="updateBy != null">update_by =
|
||||
#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">update_time =
|
||||
#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteBaseDrugInfoById" parameterType="Long">
|
||||
delete from base_drug_info where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteBaseDrugInfoByIds" parameterType="String">
|
||||
delete from base_drug_info where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,140 @@
|
||||
<?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.xinelu.manage.mapper.basenursinginfo.BaseNursingInfoMapper">
|
||||
|
||||
<resultMap type="BaseNursingInfo" id="BaseNursingInfoResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="nursingName" column="nursing_name"/>
|
||||
<result property="tobaccoWine" column="tobacco_wine"/>
|
||||
<result property="sleep" column="sleep"/>
|
||||
<result property="emotion" column="emotion"/>
|
||||
<result property="homeSafeguard" column="home_safeguard"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectBaseNursingInfoVo">
|
||||
select id, nursing_name, tobacco_wine, sleep, emotion, home_safeguard, create_time, create_by, update_by, update_time from base_nursing_info
|
||||
</sql>
|
||||
|
||||
<select id="selectBaseNursingInfoList" parameterType="BaseNursingInfo" resultMap="BaseNursingInfoResult">
|
||||
<include refid="selectBaseNursingInfoVo"/>
|
||||
<where>
|
||||
<if test="nursingName != null and nursingName != ''">
|
||||
and nursing_name like concat('%', #{nursingName}, '%')
|
||||
</if>
|
||||
<if test="tobaccoWine != null and tobaccoWine != ''">
|
||||
and tobacco_wine = #{tobaccoWine}
|
||||
</if>
|
||||
<if test="sleep != null and sleep != ''">
|
||||
and sleep = #{sleep}
|
||||
</if>
|
||||
<if test="emotion != null and emotion != ''">
|
||||
and emotion = #{emotion}
|
||||
</if>
|
||||
<if test="homeSafeguard != null and homeSafeguard != ''">
|
||||
and home_safeguard = #{homeSafeguard}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectBaseNursingInfoById" parameterType="Long"
|
||||
resultMap="BaseNursingInfoResult">
|
||||
<include refid="selectBaseNursingInfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertBaseNursingInfo" parameterType="BaseNursingInfo" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into base_nursing_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="nursingName != null">nursing_name,
|
||||
</if>
|
||||
<if test="tobaccoWine != null">tobacco_wine,
|
||||
</if>
|
||||
<if test="sleep != null">sleep,
|
||||
</if>
|
||||
<if test="emotion != null">emotion,
|
||||
</if>
|
||||
<if test="homeSafeguard != null">home_safeguard,
|
||||
</if>
|
||||
<if test="createTime != null">create_time,
|
||||
</if>
|
||||
<if test="createBy != null">create_by,
|
||||
</if>
|
||||
<if test="updateBy != null">update_by,
|
||||
</if>
|
||||
<if test="updateTime != null">update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="nursingName != null">#{nursingName},
|
||||
</if>
|
||||
<if test="tobaccoWine != null">#{tobaccoWine},
|
||||
</if>
|
||||
<if test="sleep != null">#{sleep},
|
||||
</if>
|
||||
<if test="emotion != null">#{emotion},
|
||||
</if>
|
||||
<if test="homeSafeguard != null">#{homeSafeguard},
|
||||
</if>
|
||||
<if test="createTime != null">#{createTime},
|
||||
</if>
|
||||
<if test="createBy != null">#{createBy},
|
||||
</if>
|
||||
<if test="updateBy != null">#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateBaseNursingInfo" parameterType="BaseNursingInfo">
|
||||
update base_nursing_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="nursingName != null">nursing_name =
|
||||
#{nursingName},
|
||||
</if>
|
||||
<if test="tobaccoWine != null">tobacco_wine =
|
||||
#{tobaccoWine},
|
||||
</if>
|
||||
<if test="sleep != null">sleep =
|
||||
#{sleep},
|
||||
</if>
|
||||
<if test="emotion != null">emotion =
|
||||
#{emotion},
|
||||
</if>
|
||||
<if test="homeSafeguard != null">home_safeguard =
|
||||
#{homeSafeguard},
|
||||
</if>
|
||||
<if test="createTime != null">create_time =
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="createBy != null">create_by =
|
||||
#{createBy},
|
||||
</if>
|
||||
<if test="updateBy != null">update_by =
|
||||
#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">update_time =
|
||||
#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteBaseNursingInfoById" parameterType="Long">
|
||||
delete from base_nursing_info where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteBaseNursingInfoByIds" parameterType="String">
|
||||
delete from base_nursing_info where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,195 @@
|
||||
<?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.xinelu.manage.mapper.basesportinfo.BaseSportInfoMapper">
|
||||
|
||||
<resultMap type="BaseSportInfo" id="BaseSportInfoResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="sportName" column="sport_name"/>
|
||||
<result property="sportTypeId" column="sport_type_id"/>
|
||||
<result property="sportTypeName" column="sport_type_name"/>
|
||||
<result property="sportWay" column="sport_way"/>
|
||||
<result property="sportFrequency" column="sport_frequency"/>
|
||||
<result property="sportDuration" column="sport_duration"/>
|
||||
<result property="sportTime" column="sport_time"/>
|
||||
<result property="sportIntensity" column="sport_intensity"/>
|
||||
<result property="sportAttention" column="sport_attention"/>
|
||||
<result property="sportRemark" column="sport_remark"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectBaseSportInfoVo">
|
||||
select id, sport_name, sport_type_id, sport_type_name, sport_way, sport_frequency, sport_duration, sport_time, sport_intensity, sport_attention, sport_remark, create_time, create_by, update_by, update_time from base_sport_info
|
||||
</sql>
|
||||
|
||||
<select id="selectBaseSportInfoList" parameterType="BaseSportInfo" resultMap="BaseSportInfoResult">
|
||||
<include refid="selectBaseSportInfoVo"/>
|
||||
<where>
|
||||
<if test="sportName != null and sportName != ''">
|
||||
and sport_name like concat('%', #{sportName}, '%')
|
||||
</if>
|
||||
<if test="sportTypeId != null ">
|
||||
and sport_type_id = #{sportTypeId}
|
||||
</if>
|
||||
<if test="sportTypeName != null and sportTypeName != ''">
|
||||
and sport_type_name like concat('%', #{sportTypeName}, '%')
|
||||
</if>
|
||||
<if test="sportWay != null and sportWay != ''">
|
||||
and sport_way = #{sportWay}
|
||||
</if>
|
||||
<if test="sportFrequency != null and sportFrequency != ''">
|
||||
and sport_frequency = #{sportFrequency}
|
||||
</if>
|
||||
<if test="sportDuration != null and sportDuration != ''">
|
||||
and sport_duration = #{sportDuration}
|
||||
</if>
|
||||
<if test="sportTime != null and sportTime != ''">
|
||||
and sport_time = #{sportTime}
|
||||
</if>
|
||||
<if test="sportIntensity != null and sportIntensity != ''">
|
||||
and sport_intensity = #{sportIntensity}
|
||||
</if>
|
||||
<if test="sportAttention != null and sportAttention != ''">
|
||||
and sport_attention = #{sportAttention}
|
||||
</if>
|
||||
<if test="sportRemark != null and sportRemark != ''">
|
||||
and sport_remark = #{sportRemark}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectBaseSportInfoById" parameterType="Long"
|
||||
resultMap="BaseSportInfoResult">
|
||||
<include refid="selectBaseSportInfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertBaseSportInfo" parameterType="BaseSportInfo" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into base_sport_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="sportName != null">sport_name,
|
||||
</if>
|
||||
<if test="sportTypeId != null">sport_type_id,
|
||||
</if>
|
||||
<if test="sportTypeName != null">sport_type_name,
|
||||
</if>
|
||||
<if test="sportWay != null">sport_way,
|
||||
</if>
|
||||
<if test="sportFrequency != null">sport_frequency,
|
||||
</if>
|
||||
<if test="sportDuration != null">sport_duration,
|
||||
</if>
|
||||
<if test="sportTime != null">sport_time,
|
||||
</if>
|
||||
<if test="sportIntensity != null">sport_intensity,
|
||||
</if>
|
||||
<if test="sportAttention != null">sport_attention,
|
||||
</if>
|
||||
<if test="sportRemark != null">sport_remark,
|
||||
</if>
|
||||
<if test="createTime != null">create_time,
|
||||
</if>
|
||||
<if test="createBy != null">create_by,
|
||||
</if>
|
||||
<if test="updateBy != null">update_by,
|
||||
</if>
|
||||
<if test="updateTime != null">update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="sportName != null">#{sportName},
|
||||
</if>
|
||||
<if test="sportTypeId != null">#{sportTypeId},
|
||||
</if>
|
||||
<if test="sportTypeName != null">#{sportTypeName},
|
||||
</if>
|
||||
<if test="sportWay != null">#{sportWay},
|
||||
</if>
|
||||
<if test="sportFrequency != null">#{sportFrequency},
|
||||
</if>
|
||||
<if test="sportDuration != null">#{sportDuration},
|
||||
</if>
|
||||
<if test="sportTime != null">#{sportTime},
|
||||
</if>
|
||||
<if test="sportIntensity != null">#{sportIntensity},
|
||||
</if>
|
||||
<if test="sportAttention != null">#{sportAttention},
|
||||
</if>
|
||||
<if test="sportRemark != null">#{sportRemark},
|
||||
</if>
|
||||
<if test="createTime != null">#{createTime},
|
||||
</if>
|
||||
<if test="createBy != null">#{createBy},
|
||||
</if>
|
||||
<if test="updateBy != null">#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateBaseSportInfo" parameterType="BaseSportInfo">
|
||||
update base_sport_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="sportName != null">sport_name =
|
||||
#{sportName},
|
||||
</if>
|
||||
<if test="sportTypeId != null">sport_type_id =
|
||||
#{sportTypeId},
|
||||
</if>
|
||||
<if test="sportTypeName != null">sport_type_name =
|
||||
#{sportTypeName},
|
||||
</if>
|
||||
<if test="sportWay != null">sport_way =
|
||||
#{sportWay},
|
||||
</if>
|
||||
<if test="sportFrequency != null">sport_frequency =
|
||||
#{sportFrequency},
|
||||
</if>
|
||||
<if test="sportDuration != null">sport_duration =
|
||||
#{sportDuration},
|
||||
</if>
|
||||
<if test="sportTime != null">sport_time =
|
||||
#{sportTime},
|
||||
</if>
|
||||
<if test="sportIntensity != null">sport_intensity =
|
||||
#{sportIntensity},
|
||||
</if>
|
||||
<if test="sportAttention != null">sport_attention =
|
||||
#{sportAttention},
|
||||
</if>
|
||||
<if test="sportRemark != null">sport_remark =
|
||||
#{sportRemark},
|
||||
</if>
|
||||
<if test="createTime != null">create_time =
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="createBy != null">create_by =
|
||||
#{createBy},
|
||||
</if>
|
||||
<if test="updateBy != null">update_by =
|
||||
#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">update_time =
|
||||
#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteBaseSportInfoById" parameterType="Long">
|
||||
delete from base_sport_info where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteBaseSportInfoByIds" parameterType="String">
|
||||
delete from base_sport_info where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue
Block a user