From c4fe017d4de6944d66f6c66ffe27089079919211 Mon Sep 17 00:00:00 2001 From: xiezhijun <15270898033@163.com> Date: Sat, 23 Jan 2021 22:11:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E5=81=A5=E5=BA=B7=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E3=80=81=E8=A1=A8=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../custom/SysCustomerHealthyController.java | 103 ++ .../custom/domain/SysCustomerHealthy.java | 1244 +++++++++++++++++ .../mapper/SysCustomerHealthyMapper.java | 61 + .../service/ISysCustomerHealthyService.java | 61 + .../impl/SysCustomerHealthyServiceImpl.java | 96 ++ .../custom/SysCustomerHealthyMapper.xml | 415 ++++++ .../custom/subhealthy/investigation/index.vue | 545 +++++--- 7 files changed, 2325 insertions(+), 200 deletions(-) create mode 100644 stdiet-admin/src/main/java/com/stdiet/web/controller/custom/SysCustomerHealthyController.java create mode 100644 stdiet-custom/src/main/java/com/stdiet/custom/domain/SysCustomerHealthy.java create mode 100644 stdiet-custom/src/main/java/com/stdiet/custom/mapper/SysCustomerHealthyMapper.java create mode 100644 stdiet-custom/src/main/java/com/stdiet/custom/service/ISysCustomerHealthyService.java create mode 100644 stdiet-custom/src/main/java/com/stdiet/custom/service/impl/SysCustomerHealthyServiceImpl.java create mode 100644 stdiet-custom/src/main/resources/mapper/custom/SysCustomerHealthyMapper.xml diff --git a/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/SysCustomerHealthyController.java b/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/SysCustomerHealthyController.java new file mode 100644 index 000000000..b61f9e02f --- /dev/null +++ b/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/SysCustomerHealthyController.java @@ -0,0 +1,103 @@ +package com.stdiet.custom.controller; + +import java.util.List; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +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.stdiet.common.annotation.Log; +import com.stdiet.common.core.controller.BaseController; +import com.stdiet.common.core.domain.AjaxResult; +import com.stdiet.common.enums.BusinessType; +import com.stdiet.custom.domain.SysCustomerHealthy; +import com.stdiet.custom.service.ISysCustomerHealthyService; +import com.stdiet.common.utils.poi.ExcelUtil; +import com.stdiet.common.core.page.TableDataInfo; + +/** + * 客户健康Controller + * + * @author xzj + * @date 2021-01-23 + */ +@RestController +@RequestMapping("/customer/healthy") +public class SysCustomerHealthyController extends BaseController +{ + @Autowired + private ISysCustomerHealthyService sysCustomerHealthyService; + + /** + * 查询客户健康列表 + */ + @PreAuthorize("@ss.hasPermi('customer:healthy:list')") + @GetMapping("/list") + public TableDataInfo list(SysCustomerHealthy sysCustomerHealthy) + { + startPage(); + List list = sysCustomerHealthyService.selectSysCustomerHealthyList(sysCustomerHealthy); + return getDataTable(list); + } + + /** + * 导出客户健康列表 + */ + @PreAuthorize("@ss.hasPermi('customer:healthy:export')") + @Log(title = "客户健康", businessType = BusinessType.EXPORT) + @GetMapping("/export") + public AjaxResult export(SysCustomerHealthy sysCustomerHealthy) + { + List list = sysCustomerHealthyService.selectSysCustomerHealthyList(sysCustomerHealthy); + ExcelUtil util = new ExcelUtil(SysCustomerHealthy.class); + return util.exportExcel(list, "healthy"); + } + + /** + * 获取客户健康详细信息 + */ + @PreAuthorize("@ss.hasPermi('customer:healthy:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return AjaxResult.success(sysCustomerHealthyService.selectSysCustomerHealthyById(id)); + } + + /** + * 新增客户健康 + */ + @PreAuthorize("@ss.hasPermi('customer:healthy:add')") + @Log(title = "客户健康", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody SysCustomerHealthy sysCustomerHealthy) + { + return toAjax(sysCustomerHealthyService.insertSysCustomerHealthy(sysCustomerHealthy)); + } + + /** + * 修改客户健康 + */ + @PreAuthorize("@ss.hasPermi('customer:healthy:edit')") + @Log(title = "客户健康", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody SysCustomerHealthy sysCustomerHealthy) + { + return toAjax(sysCustomerHealthyService.updateSysCustomerHealthy(sysCustomerHealthy)); + } + + /** + * 删除客户健康 + */ + @PreAuthorize("@ss.hasPermi('customer:healthy:remove')") + @Log(title = "客户健康", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(sysCustomerHealthyService.deleteSysCustomerHealthyByIds(ids)); + } +} \ No newline at end of file diff --git a/stdiet-custom/src/main/java/com/stdiet/custom/domain/SysCustomerHealthy.java b/stdiet-custom/src/main/java/com/stdiet/custom/domain/SysCustomerHealthy.java new file mode 100644 index 000000000..b8e32cfcd --- /dev/null +++ b/stdiet-custom/src/main/java/com/stdiet/custom/domain/SysCustomerHealthy.java @@ -0,0 +1,1244 @@ +package com.stdiet.custom.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.stdiet.common.annotation.Excel; +import com.stdiet.common.core.domain.BaseEntity; + +/** + * 客户健康对象 sys_customer_healthy + * + * @author xzj + * @date 2021-01-23 + */ +public class SysCustomerHealthy extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private Long id; + + /** 客户ID */ + @Excel(name = "客户ID") + private Long customerId; + + /** 调理项目id */ + @Excel(name = "调理项目id") + private Long conditioningProjectId; + + /** 0男 1女 2未知,默认2 */ + @Excel(name = "0男 1女 2未知,默认2") + private Long sex; + + /** 年龄 */ + @Excel(name = "年龄") + private Long age; + + /** 调味品种类,使用 , 隔开 */ + @Excel(name = "调味品种类,使用 , 隔开") + private String condiment; + + /** 其他调味品种类 */ + @Excel(name = "其他调味品种类") + private String otherCondiment; + + /** 喜好的烹调方式,使用 , 隔开 */ + @Excel(name = "喜好的烹调方式,使用 , 隔开") + private String cookingStyle; + + /** 烹调方式对应频次,每周几次,使用 , 隔开 */ + @Excel(name = "烹调方式对应频次,每周几次,使用 , 隔开") + private String cookingStyleRate; + + /** 洗菜方式,使用 , 隔开 */ + @Excel(name = "洗菜方式,使用 , 隔开") + private String washVegetablesStyle; + + /** 其他洗菜方式 */ + @Excel(name = "其他洗菜方式") + private String otherWashVegetablesStyle; + + /** 早餐习惯 */ + @Excel(name = "早餐习惯") + private String breakfastType; + + /** 早餐吃的食物 */ + @Excel(name = "早餐吃的食物") + private String breakfastFood; + + /** 午餐习惯,使用 , 隔开 */ + @Excel(name = "午餐习惯,使用 , 隔开") + private String lunchType; + + /** 晚餐习惯,使用 , 隔开 */ + @Excel(name = "晚餐习惯,使用 , 隔开") + private String dinner; + + /** 早餐当中素菜占比 */ + @Excel(name = "早餐当中素菜占比") + private Long vegetableRate; + + /** 最常吃的肉类 */ + @Excel(name = "最常吃的肉类") + private String commonMeat; + + /** 晚餐时间(24小时制) */ + @Excel(name = "晚餐时间", readConverterExp = "2=4小时制") + private String dinnerTime; + + /** 每周吃夜宵次数,默认0 */ + @Excel(name = "每周吃夜宵次数,默认0") + private Long supperNum; + + /** 夜宵通常吃的食物 */ + @Excel(name = "夜宵通常吃的食物") + private String supperFood; + + /** 食物的冷热偏好 */ + @Excel(name = "食物的冷热偏好") + private String dietHotAndCold; + + /** 食物的口味偏好,使用 , 隔开 */ + @Excel(name = "食物的口味偏好,使用 , 隔开") + private String dietFlavor; + + /** 平均每周吃生菜几次 */ + @Excel(name = "平均每周吃生菜几次") + private Long vegetablesNum; + + /** 每周吃生菜的频次类型 */ + @Excel(name = "每周吃生菜的频次类型") + private String vegetablesRateType; + + /** 平均每天吃水果次数,默认0 */ + @Excel(name = "平均每天吃水果次数,默认0") + private Long fruitsNum; + + /** 吃水果的时间段 */ + @Excel(name = "吃水果的时间段") + private String fruitsTime; + + /** 平时吃水果的频次 */ + @Excel(name = "平时吃水果的频次") + private String fruitsRate; + + /** 一餐吃几碗饭 */ + @Excel(name = "一餐吃几碗饭") + private Long riceNum; + + /** 吃几成饱 */ + @Excel(name = "吃几成饱") + private Long riceFull; + + /** 吃饭速度 */ + @Excel(name = "吃饭速度") + private String eatingSpeed; + + /** 常吃的零食,使用 , 隔开 */ + @Excel(name = "常吃的零食,使用 , 隔开") + private String snacks; + + /** 其他零食 */ + @Excel(name = "其他零食") + private String otherSnacks; + + /** 有无服用营养保健品,0无 1有 */ + @Excel(name = "有无服用营养保健品,0无 1有") + private Long healthProductsFlag; + + /** 营养保健品品牌名 */ + @Excel(name = "营养保健品品牌名") + private String healthProductsBrand; + + /** 营养保健品产品名 */ + @Excel(name = "营养保健品产品名") + private String healthProductsName; + + /** 服用营养保健品频次,每周几次 */ + @Excel(name = "服用营养保健品频次,每周几次") + private Long healthProductsWeekRate; + + /** 服用营养保健品频次,每天几次 */ + @Excel(name = "服用营养保健品频次,每天几次") + private Long healthProductsDayRate; + + /** 每天的饮水量,单位:毫升 */ + @Excel(name = "每天的饮水量,单位:毫升") + private Long waterNum; + + /** 喜欢喝什么水,使用 , 隔开 */ + @Excel(name = "喜欢喝什么水,使用 , 隔开") + private String waterType; + + /** 喝水习惯,使用 , 隔开 */ + @Excel(name = "喝水习惯,使用 , 隔开") + private String waterHabit; + + /** 常喝的饮品的每周频次,使用,隔开 */ + @Excel(name = "常喝的饮品的每周频次,使用,隔开") + private String drinksNum; + + /** 是否喝酒 */ + @Excel(name = "是否喝酒") + private String drinkWineFlag; + + /** 喝酒种类,使用,隔开 */ + @Excel(name = "喝酒种类,使用,隔开") + private String drinkWineClassify; + + /** 其他酒种类 */ + @Excel(name = "其他酒种类") + private String otherWineClassify; + + /** 对应酒的量 */ + @Excel(name = "对应酒的量") + private String drinkWineAmount; + + /** 是否抽烟,0否 1是,默认0 */ + @Excel(name = "是否抽烟,0否 1是,默认0") + private Long smokeFlag; + + /** 抽烟频次和烟龄,戒烟几年,使用,隔开 */ + @Excel(name = "抽烟频次和烟龄,戒烟几年,使用,隔开") + private String smokeRate; + + /** 是否经常抽二手烟 0否 1是,默认0 */ + @Excel(name = "是否经常抽二手烟 0否 1是,默认0") + private Long secondSmoke; + + /** 工作行业 */ + @Excel(name = "工作行业") + private String workIndustry; + + /** 工作性质,使用,隔开 */ + @Excel(name = "工作性质,使用,隔开") + private String workType; + + /** 排便次数 */ + @Excel(name = "排便次数") + private String defecationNum; + + /** 其他手动输入的排便次数 */ + @Excel(name = "其他手动输入的排便次数") + private Long otherDefecationNum; + + /** 排便时间段,使用,隔开 */ + @Excel(name = "排便时间段,使用,隔开") + private String defecationTime; + + /** 排便的形状 */ + @Excel(name = "排便的形状") + private String defecationShape; + + /** 排便的气味 */ + @Excel(name = "排便的气味") + private String defecationSmell; + + /** 排便的速度 */ + @Excel(name = "排便的速度") + private String defecationSpeed; + + /** 排便的颜色 */ + @Excel(name = "排便的颜色") + private String defecationColor; + + /** 每周运动次数 */ + @Excel(name = "每周运动次数") + private Long motionNum; + + /** 每次运动的时长,分钟 */ + @Excel(name = "每次运动的时长,分钟") + private Long motionDuration; + + /** 每天运动的时间,24小时制 */ + @Excel(name = "每天运动的时间,24小时制") + private String motionTime; + + /** 有氧运动项目,使用,隔开 */ + @Excel(name = "有氧运动项目,使用,隔开") + private String aerobicMotionClassify; + + /** 无氧运动项目,使用,隔开 */ + @Excel(name = "无氧运动项目,使用,隔开") + private String anaerobicMotionClassify; + + /** 无氧有氧项目,使用,隔开 */ + @Excel(name = "无氧有氧项目,使用,隔开") + private String anaerobicAerobicMotionClassify; + + /** 其他运动项目,使用,隔开 */ + @Excel(name = "其他运动项目,使用,隔开") + private String otherMotionClassify; + + /** 运动场地,使用,隔开 */ + @Excel(name = "运动场地,使用,隔开") + private String motionField; + + /** 其他运动场地 */ + @Excel(name = "其他运动场地") + private String otherMotionField; + + /** 睡觉时间,24小时制 */ + @Excel(name = "睡觉时间,24小时制") + private String sleepTime; + + /** 睡眠质量 */ + @Excel(name = "睡眠质量") + private String sleepQuality; + + /** 是否有辅助入睡药物,0否 1是,默认0 */ + @Excel(name = "是否有辅助入睡药物,0否 1是,默认0") + private Long sleepDrugFlag; + + /** 辅助睡眠类药物名称 */ + @Excel(name = "辅助睡眠类药物名称") + private String sleepDrug; + + /** 是否经常熬夜(超过11点)0否 1是,默认0 */ + @Excel(name = "是否经常熬夜", readConverterExp = "超=过11点") + private Long stayupLateFlag; + + /** 熬夜频次,每周几次 */ + @Excel(name = "熬夜频次,每周几次") + private Long stayupLateWeekNum; + + /** 家族疾病史,使用,隔开 */ + @Excel(name = "家族疾病史,使用,隔开") + private String familyIllnessHistory; + + /** 其他家族病史 */ + @Excel(name = "其他家族病史") + private String otherFamilyIllnessHistory; + + /** 手术史,使用,隔开 */ + @Excel(name = "手术史,使用,隔开") + private String operationHistory; + + /** 其他手术史 */ + @Excel(name = "其他手术史") + private String otherOperationHistory; + + /** 近期是否做过手术,0否 1是,默认0 */ + @Excel(name = "近期是否做过手术,0否 1是,默认0") + private Long nearOperationFlag; + + /** 手术恢复情况 */ + @Excel(name = "手术恢复情况") + private String recoveryeSituation; + + /** 是否长期服用药物,0否 1是,默认0 */ + @Excel(name = "是否长期服用药物,0否 1是,默认0") + private Long longEatDrugFlag; + + /** 长期服用的药物,使用,隔开 */ + @Excel(name = "长期服用的药物,使用,隔开") + private String longEatDrugClassify; + + /** 其他长期服用的药物 */ + @Excel(name = "其他长期服用的药物") + private String otherLongEatDrugClassify; + + /** 是否出现过过敏症状,0否 1是,默认0 */ + @Excel(name = "是否出现过过敏症状,0否 1是,默认0") + private Long allergyFlag; + + /** 过敏症状 */ + @Excel(name = "过敏症状") + private String allergySituation; + + /** 过敏源,使用,隔开 */ + @Excel(name = "过敏源,使用,隔开") + private String allergen; + + /** 其他过敏源 */ + @Excel(name = "其他过敏源") + private String otherAllergen; + + /** 体检报告 */ + @Excel(name = "体检报告") + private String medicalReport; + + /** 删除标识 0未删除 1已删除。默认0 */ + private Long delFlag; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setCustomerId(Long customerId) + { + this.customerId = customerId; + } + + public Long getCustomerId() + { + return customerId; + } + public void setConditioningProjectId(Long conditioningProjectId) + { + this.conditioningProjectId = conditioningProjectId; + } + + public Long getConditioningProjectId() + { + return conditioningProjectId; + } + public void setSex(Long sex) + { + this.sex = sex; + } + + public Long getSex() + { + return sex; + } + public void setAge(Long age) + { + this.age = age; + } + + public Long getAge() + { + return age; + } + public void setCondiment(String condiment) + { + this.condiment = condiment; + } + + public String getCondiment() + { + return condiment; + } + public void setOtherCondiment(String otherCondiment) + { + this.otherCondiment = otherCondiment; + } + + public String getOtherCondiment() + { + return otherCondiment; + } + public void setCookingStyle(String cookingStyle) + { + this.cookingStyle = cookingStyle; + } + + public String getCookingStyle() + { + return cookingStyle; + } + public void setCookingStyleRate(String cookingStyleRate) + { + this.cookingStyleRate = cookingStyleRate; + } + + public String getCookingStyleRate() + { + return cookingStyleRate; + } + public void setWashVegetablesStyle(String washVegetablesStyle) + { + this.washVegetablesStyle = washVegetablesStyle; + } + + public String getWashVegetablesStyle() + { + return washVegetablesStyle; + } + public void setOtherWashVegetablesStyle(String otherWashVegetablesStyle) + { + this.otherWashVegetablesStyle = otherWashVegetablesStyle; + } + + public String getOtherWashVegetablesStyle() + { + return otherWashVegetablesStyle; + } + public void setBreakfastType(String breakfastType) + { + this.breakfastType = breakfastType; + } + + public String getBreakfastType() + { + return breakfastType; + } + public void setBreakfastFood(String breakfastFood) + { + this.breakfastFood = breakfastFood; + } + + public String getBreakfastFood() + { + return breakfastFood; + } + public void setLunchType(String lunchType) + { + this.lunchType = lunchType; + } + + public String getLunchType() + { + return lunchType; + } + public void setDinner(String dinner) + { + this.dinner = dinner; + } + + public String getDinner() + { + return dinner; + } + public void setVegetableRate(Long vegetableRate) + { + this.vegetableRate = vegetableRate; + } + + public Long getVegetableRate() + { + return vegetableRate; + } + public void setCommonMeat(String commonMeat) + { + this.commonMeat = commonMeat; + } + + public String getCommonMeat() + { + return commonMeat; + } + public void setDinnerTime(String dinnerTime) + { + this.dinnerTime = dinnerTime; + } + + public String getDinnerTime() + { + return dinnerTime; + } + public void setSupperNum(Long supperNum) + { + this.supperNum = supperNum; + } + + public Long getSupperNum() + { + return supperNum; + } + public void setSupperFood(String supperFood) + { + this.supperFood = supperFood; + } + + public String getSupperFood() + { + return supperFood; + } + public void setDietHotAndCold(String dietHotAndCold) + { + this.dietHotAndCold = dietHotAndCold; + } + + public String getDietHotAndCold() + { + return dietHotAndCold; + } + public void setDietFlavor(String dietFlavor) + { + this.dietFlavor = dietFlavor; + } + + public String getDietFlavor() + { + return dietFlavor; + } + public void setVegetablesNum(Long vegetablesNum) + { + this.vegetablesNum = vegetablesNum; + } + + public Long getVegetablesNum() + { + return vegetablesNum; + } + public void setVegetablesRateType(String vegetablesRateType) + { + this.vegetablesRateType = vegetablesRateType; + } + + public String getVegetablesRateType() + { + return vegetablesRateType; + } + public void setFruitsNum(Long fruitsNum) + { + this.fruitsNum = fruitsNum; + } + + public Long getFruitsNum() + { + return fruitsNum; + } + public void setFruitsTime(String fruitsTime) + { + this.fruitsTime = fruitsTime; + } + + public String getFruitsTime() + { + return fruitsTime; + } + public void setFruitsRate(String fruitsRate) + { + this.fruitsRate = fruitsRate; + } + + public String getFruitsRate() + { + return fruitsRate; + } + public void setRiceNum(Long riceNum) + { + this.riceNum = riceNum; + } + + public Long getRiceNum() + { + return riceNum; + } + public void setRiceFull(Long riceFull) + { + this.riceFull = riceFull; + } + + public Long getRiceFull() + { + return riceFull; + } + public void setEatingSpeed(String eatingSpeed) + { + this.eatingSpeed = eatingSpeed; + } + + public String getEatingSpeed() + { + return eatingSpeed; + } + public void setSnacks(String snacks) + { + this.snacks = snacks; + } + + public String getSnacks() + { + return snacks; + } + public void setOtherSnacks(String otherSnacks) + { + this.otherSnacks = otherSnacks; + } + + public String getOtherSnacks() + { + return otherSnacks; + } + public void setHealthProductsFlag(Long healthProductsFlag) + { + this.healthProductsFlag = healthProductsFlag; + } + + public Long getHealthProductsFlag() + { + return healthProductsFlag; + } + public void setHealthProductsBrand(String healthProductsBrand) + { + this.healthProductsBrand = healthProductsBrand; + } + + public String getHealthProductsBrand() + { + return healthProductsBrand; + } + public void setHealthProductsName(String healthProductsName) + { + this.healthProductsName = healthProductsName; + } + + public String getHealthProductsName() + { + return healthProductsName; + } + public void setHealthProductsWeekRate(Long healthProductsWeekRate) + { + this.healthProductsWeekRate = healthProductsWeekRate; + } + + public Long getHealthProductsWeekRate() + { + return healthProductsWeekRate; + } + public void setHealthProductsDayRate(Long healthProductsDayRate) + { + this.healthProductsDayRate = healthProductsDayRate; + } + + public Long getHealthProductsDayRate() + { + return healthProductsDayRate; + } + public void setWaterNum(Long waterNum) + { + this.waterNum = waterNum; + } + + public Long getWaterNum() + { + return waterNum; + } + public void setWaterType(String waterType) + { + this.waterType = waterType; + } + + public String getWaterType() + { + return waterType; + } + public void setWaterHabit(String waterHabit) + { + this.waterHabit = waterHabit; + } + + public String getWaterHabit() + { + return waterHabit; + } + public void setDrinksNum(String drinksNum) + { + this.drinksNum = drinksNum; + } + + public String getDrinksNum() + { + return drinksNum; + } + public void setDrinkWineFlag(String drinkWineFlag) + { + this.drinkWineFlag = drinkWineFlag; + } + + public String getDrinkWineFlag() + { + return drinkWineFlag; + } + public void setDrinkWineClassify(String drinkWineClassify) + { + this.drinkWineClassify = drinkWineClassify; + } + + public String getDrinkWineClassify() + { + return drinkWineClassify; + } + public void setOtherWineClassify(String otherWineClassify) + { + this.otherWineClassify = otherWineClassify; + } + + public String getOtherWineClassify() + { + return otherWineClassify; + } + public void setDrinkWineAmount(String drinkWineAmount) + { + this.drinkWineAmount = drinkWineAmount; + } + + public String getDrinkWineAmount() + { + return drinkWineAmount; + } + public void setSmokeFlag(Long smokeFlag) + { + this.smokeFlag = smokeFlag; + } + + public Long getSmokeFlag() + { + return smokeFlag; + } + public void setSmokeRate(String smokeRate) + { + this.smokeRate = smokeRate; + } + + public String getSmokeRate() + { + return smokeRate; + } + public void setSecondSmoke(Long secondSmoke) + { + this.secondSmoke = secondSmoke; + } + + public Long getSecondSmoke() + { + return secondSmoke; + } + public void setWorkIndustry(String workIndustry) + { + this.workIndustry = workIndustry; + } + + public String getWorkIndustry() + { + return workIndustry; + } + public void setWorkType(String workType) + { + this.workType = workType; + } + + public String getWorkType() + { + return workType; + } + public void setDefecationNum(String defecationNum) + { + this.defecationNum = defecationNum; + } + + public String getDefecationNum() + { + return defecationNum; + } + public void setOtherDefecationNum(Long otherDefecationNum) + { + this.otherDefecationNum = otherDefecationNum; + } + + public Long getOtherDefecationNum() + { + return otherDefecationNum; + } + public void setDefecationTime(String defecationTime) + { + this.defecationTime = defecationTime; + } + + public String getDefecationTime() + { + return defecationTime; + } + public void setDefecationShape(String defecationShape) + { + this.defecationShape = defecationShape; + } + + public String getDefecationShape() + { + return defecationShape; + } + public void setDefecationSmell(String defecationSmell) + { + this.defecationSmell = defecationSmell; + } + + public String getDefecationSmell() + { + return defecationSmell; + } + public void setDefecationSpeed(String defecationSpeed) + { + this.defecationSpeed = defecationSpeed; + } + + public String getDefecationSpeed() + { + return defecationSpeed; + } + public void setDefecationColor(String defecationColor) + { + this.defecationColor = defecationColor; + } + + public String getDefecationColor() + { + return defecationColor; + } + public void setMotionNum(Long motionNum) + { + this.motionNum = motionNum; + } + + public Long getMotionNum() + { + return motionNum; + } + public void setMotionDuration(Long motionDuration) + { + this.motionDuration = motionDuration; + } + + public Long getMotionDuration() + { + return motionDuration; + } + public void setMotionTime(String motionTime) + { + this.motionTime = motionTime; + } + + public String getMotionTime() + { + return motionTime; + } + public void setAerobicMotionClassify(String aerobicMotionClassify) + { + this.aerobicMotionClassify = aerobicMotionClassify; + } + + public String getAerobicMotionClassify() + { + return aerobicMotionClassify; + } + public void setAnaerobicMotionClassify(String anaerobicMotionClassify) + { + this.anaerobicMotionClassify = anaerobicMotionClassify; + } + + public String getAnaerobicMotionClassify() + { + return anaerobicMotionClassify; + } + public void setAnaerobicAerobicMotionClassify(String anaerobicAerobicMotionClassify) + { + this.anaerobicAerobicMotionClassify = anaerobicAerobicMotionClassify; + } + + public String getAnaerobicAerobicMotionClassify() + { + return anaerobicAerobicMotionClassify; + } + public void setOtherMotionClassify(String otherMotionClassify) + { + this.otherMotionClassify = otherMotionClassify; + } + + public String getOtherMotionClassify() + { + return otherMotionClassify; + } + public void setMotionField(String motionField) + { + this.motionField = motionField; + } + + public String getMotionField() + { + return motionField; + } + public void setOtherMotionField(String otherMotionField) + { + this.otherMotionField = otherMotionField; + } + + public String getOtherMotionField() + { + return otherMotionField; + } + public void setSleepTime(String sleepTime) + { + this.sleepTime = sleepTime; + } + + public String getSleepTime() + { + return sleepTime; + } + public void setSleepQuality(String sleepQuality) + { + this.sleepQuality = sleepQuality; + } + + public String getSleepQuality() + { + return sleepQuality; + } + public void setSleepDrugFlag(Long sleepDrugFlag) + { + this.sleepDrugFlag = sleepDrugFlag; + } + + public Long getSleepDrugFlag() + { + return sleepDrugFlag; + } + public void setSleepDrug(String sleepDrug) + { + this.sleepDrug = sleepDrug; + } + + public String getSleepDrug() + { + return sleepDrug; + } + public void setStayupLateFlag(Long stayupLateFlag) + { + this.stayupLateFlag = stayupLateFlag; + } + + public Long getStayupLateFlag() + { + return stayupLateFlag; + } + public void setStayupLateWeekNum(Long stayupLateWeekNum) + { + this.stayupLateWeekNum = stayupLateWeekNum; + } + + public Long getStayupLateWeekNum() + { + return stayupLateWeekNum; + } + public void setFamilyIllnessHistory(String familyIllnessHistory) + { + this.familyIllnessHistory = familyIllnessHistory; + } + + public String getFamilyIllnessHistory() + { + return familyIllnessHistory; + } + public void setOtherFamilyIllnessHistory(String otherFamilyIllnessHistory) + { + this.otherFamilyIllnessHistory = otherFamilyIllnessHistory; + } + + public String getOtherFamilyIllnessHistory() + { + return otherFamilyIllnessHistory; + } + public void setOperationHistory(String operationHistory) + { + this.operationHistory = operationHistory; + } + + public String getOperationHistory() + { + return operationHistory; + } + public void setOtherOperationHistory(String otherOperationHistory) + { + this.otherOperationHistory = otherOperationHistory; + } + + public String getOtherOperationHistory() + { + return otherOperationHistory; + } + public void setNearOperationFlag(Long nearOperationFlag) + { + this.nearOperationFlag = nearOperationFlag; + } + + public Long getNearOperationFlag() + { + return nearOperationFlag; + } + public void setRecoveryeSituation(String recoveryeSituation) + { + this.recoveryeSituation = recoveryeSituation; + } + + public String getRecoveryeSituation() + { + return recoveryeSituation; + } + public void setLongEatDrugFlag(Long longEatDrugFlag) + { + this.longEatDrugFlag = longEatDrugFlag; + } + + public Long getLongEatDrugFlag() + { + return longEatDrugFlag; + } + public void setLongEatDrugClassify(String longEatDrugClassify) + { + this.longEatDrugClassify = longEatDrugClassify; + } + + public String getLongEatDrugClassify() + { + return longEatDrugClassify; + } + public void setOtherLongEatDrugClassify(String otherLongEatDrugClassify) + { + this.otherLongEatDrugClassify = otherLongEatDrugClassify; + } + + public String getOtherLongEatDrugClassify() + { + return otherLongEatDrugClassify; + } + public void setAllergyFlag(Long allergyFlag) + { + this.allergyFlag = allergyFlag; + } + + public Long getAllergyFlag() + { + return allergyFlag; + } + public void setAllergySituation(String allergySituation) + { + this.allergySituation = allergySituation; + } + + public String getAllergySituation() + { + return allergySituation; + } + public void setAllergen(String allergen) + { + this.allergen = allergen; + } + + public String getAllergen() + { + return allergen; + } + public void setOtherAllergen(String otherAllergen) + { + this.otherAllergen = otherAllergen; + } + + public String getOtherAllergen() + { + return otherAllergen; + } + public void setMedicalReport(String medicalReport) + { + this.medicalReport = medicalReport; + } + + public String getMedicalReport() + { + return medicalReport; + } + public void setDelFlag(Long delFlag) + { + this.delFlag = delFlag; + } + + public Long getDelFlag() + { + return delFlag; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("customerId", getCustomerId()) + .append("conditioningProjectId", getConditioningProjectId()) + .append("sex", getSex()) + .append("age", getAge()) + .append("condiment", getCondiment()) + .append("otherCondiment", getOtherCondiment()) + .append("cookingStyle", getCookingStyle()) + .append("cookingStyleRate", getCookingStyleRate()) + .append("washVegetablesStyle", getWashVegetablesStyle()) + .append("otherWashVegetablesStyle", getOtherWashVegetablesStyle()) + .append("breakfastType", getBreakfastType()) + .append("breakfastFood", getBreakfastFood()) + .append("lunchType", getLunchType()) + .append("dinner", getDinner()) + .append("vegetableRate", getVegetableRate()) + .append("commonMeat", getCommonMeat()) + .append("dinnerTime", getDinnerTime()) + .append("supperNum", getSupperNum()) + .append("supperFood", getSupperFood()) + .append("dietHotAndCold", getDietHotAndCold()) + .append("dietFlavor", getDietFlavor()) + .append("vegetablesNum", getVegetablesNum()) + .append("vegetablesRateType", getVegetablesRateType()) + .append("fruitsNum", getFruitsNum()) + .append("fruitsTime", getFruitsTime()) + .append("fruitsRate", getFruitsRate()) + .append("riceNum", getRiceNum()) + .append("riceFull", getRiceFull()) + .append("eatingSpeed", getEatingSpeed()) + .append("snacks", getSnacks()) + .append("otherSnacks", getOtherSnacks()) + .append("healthProductsFlag", getHealthProductsFlag()) + .append("healthProductsBrand", getHealthProductsBrand()) + .append("healthProductsName", getHealthProductsName()) + .append("healthProductsWeekRate", getHealthProductsWeekRate()) + .append("healthProductsDayRate", getHealthProductsDayRate()) + .append("waterNum", getWaterNum()) + .append("waterType", getWaterType()) + .append("waterHabit", getWaterHabit()) + .append("drinksNum", getDrinksNum()) + .append("drinkWineFlag", getDrinkWineFlag()) + .append("drinkWineClassify", getDrinkWineClassify()) + .append("otherWineClassify", getOtherWineClassify()) + .append("drinkWineAmount", getDrinkWineAmount()) + .append("smokeFlag", getSmokeFlag()) + .append("smokeRate", getSmokeRate()) + .append("secondSmoke", getSecondSmoke()) + .append("workIndustry", getWorkIndustry()) + .append("workType", getWorkType()) + .append("defecationNum", getDefecationNum()) + .append("otherDefecationNum", getOtherDefecationNum()) + .append("defecationTime", getDefecationTime()) + .append("defecationShape", getDefecationShape()) + .append("defecationSmell", getDefecationSmell()) + .append("defecationSpeed", getDefecationSpeed()) + .append("defecationColor", getDefecationColor()) + .append("motionNum", getMotionNum()) + .append("motionDuration", getMotionDuration()) + .append("motionTime", getMotionTime()) + .append("aerobicMotionClassify", getAerobicMotionClassify()) + .append("anaerobicMotionClassify", getAnaerobicMotionClassify()) + .append("anaerobicAerobicMotionClassify", getAnaerobicAerobicMotionClassify()) + .append("otherMotionClassify", getOtherMotionClassify()) + .append("motionField", getMotionField()) + .append("otherMotionField", getOtherMotionField()) + .append("sleepTime", getSleepTime()) + .append("sleepQuality", getSleepQuality()) + .append("sleepDrugFlag", getSleepDrugFlag()) + .append("sleepDrug", getSleepDrug()) + .append("stayupLateFlag", getStayupLateFlag()) + .append("stayupLateWeekNum", getStayupLateWeekNum()) + .append("familyIllnessHistory", getFamilyIllnessHistory()) + .append("otherFamilyIllnessHistory", getOtherFamilyIllnessHistory()) + .append("operationHistory", getOperationHistory()) + .append("otherOperationHistory", getOtherOperationHistory()) + .append("nearOperationFlag", getNearOperationFlag()) + .append("recoveryeSituation", getRecoveryeSituation()) + .append("longEatDrugFlag", getLongEatDrugFlag()) + .append("longEatDrugClassify", getLongEatDrugClassify()) + .append("otherLongEatDrugClassify", getOtherLongEatDrugClassify()) + .append("allergyFlag", getAllergyFlag()) + .append("allergySituation", getAllergySituation()) + .append("allergen", getAllergen()) + .append("otherAllergen", getOtherAllergen()) + .append("medicalReport", getMedicalReport()) + .append("createTime", getCreateTime()) + .append("createBy", getCreateBy()) + .append("updateTime", getUpdateTime()) + .append("updateBy", getUpdateBy()) + .append("delFlag", getDelFlag()) + .toString(); + } +} \ No newline at end of file diff --git a/stdiet-custom/src/main/java/com/stdiet/custom/mapper/SysCustomerHealthyMapper.java b/stdiet-custom/src/main/java/com/stdiet/custom/mapper/SysCustomerHealthyMapper.java new file mode 100644 index 000000000..8b9d17154 --- /dev/null +++ b/stdiet-custom/src/main/java/com/stdiet/custom/mapper/SysCustomerHealthyMapper.java @@ -0,0 +1,61 @@ +package com.stdiet.custom.mapper; + +import java.util.List; +import com.stdiet.custom.domain.SysCustomerHealthy; + +/** + * 客户健康Mapper接口 + * + * @author xzj + * @date 2021-01-23 + */ +public interface SysCustomerHealthyMapper +{ + /** + * 查询客户健康 + * + * @param id 客户健康ID + * @return 客户健康 + */ + public SysCustomerHealthy selectSysCustomerHealthyById(Long id); + + /** + * 查询客户健康列表 + * + * @param sysCustomerHealthy 客户健康 + * @return 客户健康集合 + */ + public List selectSysCustomerHealthyList(SysCustomerHealthy sysCustomerHealthy); + + /** + * 新增客户健康 + * + * @param sysCustomerHealthy 客户健康 + * @return 结果 + */ + public int insertSysCustomerHealthy(SysCustomerHealthy sysCustomerHealthy); + + /** + * 修改客户健康 + * + * @param sysCustomerHealthy 客户健康 + * @return 结果 + */ + public int updateSysCustomerHealthy(SysCustomerHealthy sysCustomerHealthy); + + /** + * 删除客户健康 + * + * @param id 客户健康ID + * @return 结果 + */ + public int deleteSysCustomerHealthyById(Long id); + + /** + * 批量删除客户健康 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteSysCustomerHealthyByIds(Long[] ids); +} \ No newline at end of file diff --git a/stdiet-custom/src/main/java/com/stdiet/custom/service/ISysCustomerHealthyService.java b/stdiet-custom/src/main/java/com/stdiet/custom/service/ISysCustomerHealthyService.java new file mode 100644 index 000000000..8f491c06d --- /dev/null +++ b/stdiet-custom/src/main/java/com/stdiet/custom/service/ISysCustomerHealthyService.java @@ -0,0 +1,61 @@ +package com.stdiet.custom.service; + +import java.util.List; +import com.stdiet.custom.domain.SysCustomerHealthy; + +/** + * 客户健康Service接口 + * + * @author xzj + * @date 2021-01-23 + */ +public interface ISysCustomerHealthyService +{ + /** + * 查询客户健康 + * + * @param id 客户健康ID + * @return 客户健康 + */ + public SysCustomerHealthy selectSysCustomerHealthyById(Long id); + + /** + * 查询客户健康列表 + * + * @param sysCustomerHealthy 客户健康 + * @return 客户健康集合 + */ + public List selectSysCustomerHealthyList(SysCustomerHealthy sysCustomerHealthy); + + /** + * 新增客户健康 + * + * @param sysCustomerHealthy 客户健康 + * @return 结果 + */ + public int insertSysCustomerHealthy(SysCustomerHealthy sysCustomerHealthy); + + /** + * 修改客户健康 + * + * @param sysCustomerHealthy 客户健康 + * @return 结果 + */ + public int updateSysCustomerHealthy(SysCustomerHealthy sysCustomerHealthy); + + /** + * 批量删除客户健康 + * + * @param ids 需要删除的客户健康ID + * @return 结果 + */ + public int deleteSysCustomerHealthyByIds(Long[] ids); + + /** + * 删除客户健康信息 + * + * @param id 客户健康ID + * @return 结果 + */ + public int deleteSysCustomerHealthyById(Long id); +} \ No newline at end of file diff --git a/stdiet-custom/src/main/java/com/stdiet/custom/service/impl/SysCustomerHealthyServiceImpl.java b/stdiet-custom/src/main/java/com/stdiet/custom/service/impl/SysCustomerHealthyServiceImpl.java new file mode 100644 index 000000000..3f1b86077 --- /dev/null +++ b/stdiet-custom/src/main/java/com/stdiet/custom/service/impl/SysCustomerHealthyServiceImpl.java @@ -0,0 +1,96 @@ +package com.stdiet.custom.service.impl; + +import java.util.List; +import com.stdiet.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.stdiet.custom.mapper.SysCustomerHealthyMapper; +import com.stdiet.custom.domain.SysCustomerHealthy; +import com.stdiet.custom.service.ISysCustomerHealthyService; + +/** + * 客户健康Service业务层处理 + * + * @author xzj + * @date 2021-01-23 + */ +@Service +public class SysCustomerHealthyServiceImpl implements ISysCustomerHealthyService +{ + @Autowired + private SysCustomerHealthyMapper sysCustomerHealthyMapper; + + /** + * 查询客户健康 + * + * @param id 客户健康ID + * @return 客户健康 + */ + @Override + public SysCustomerHealthy selectSysCustomerHealthyById(Long id) + { + return sysCustomerHealthyMapper.selectSysCustomerHealthyById(id); + } + + /** + * 查询客户健康列表 + * + * @param sysCustomerHealthy 客户健康 + * @return 客户健康 + */ + @Override + public List selectSysCustomerHealthyList(SysCustomerHealthy sysCustomerHealthy) + { + return sysCustomerHealthyMapper.selectSysCustomerHealthyList(sysCustomerHealthy); + } + + /** + * 新增客户健康 + * + * @param sysCustomerHealthy 客户健康 + * @return 结果 + */ + @Override + public int insertSysCustomerHealthy(SysCustomerHealthy sysCustomerHealthy) + { + sysCustomerHealthy.setCreateTime(DateUtils.getNowDate()); + return sysCustomerHealthyMapper.insertSysCustomerHealthy(sysCustomerHealthy); + } + + /** + * 修改客户健康 + * + * @param sysCustomerHealthy 客户健康 + * @return 结果 + */ + @Override + public int updateSysCustomerHealthy(SysCustomerHealthy sysCustomerHealthy) + { + sysCustomerHealthy.setUpdateTime(DateUtils.getNowDate()); + return sysCustomerHealthyMapper.updateSysCustomerHealthy(sysCustomerHealthy); + } + + /** + * 批量删除客户健康 + * + * @param ids 需要删除的客户健康ID + * @return 结果 + */ + @Override + public int deleteSysCustomerHealthyByIds(Long[] ids) + { + return sysCustomerHealthyMapper.deleteSysCustomerHealthyByIds(ids); + } + + /** + * 删除客户健康信息 + * + * @param id 客户健康ID + * @return 结果 + */ + @Override + public int deleteSysCustomerHealthyById(Long id) + { + return sysCustomerHealthyMapper.deleteSysCustomerHealthyById(id); + } +} \ No newline at end of file diff --git a/stdiet-custom/src/main/resources/mapper/custom/SysCustomerHealthyMapper.xml b/stdiet-custom/src/main/resources/mapper/custom/SysCustomerHealthyMapper.xml new file mode 100644 index 000000000..352d6afbd --- /dev/null +++ b/stdiet-custom/src/main/resources/mapper/custom/SysCustomerHealthyMapper.xml @@ -0,0 +1,415 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, customer_id, conditioning_project_id, sex, age, condiment, other_condiment, cooking_style, cooking_style_rate, wash_vegetables_style, other_wash_vegetables_style, breakfast_type, breakfast_food, lunch_type, dinner, vegetable_rate, common_meat, dinner_time, supper_num, supper_food, diet_hot_and_cold, diet_flavor, vegetables_num, vegetables_rate_type, fruits_num, fruits_time, fruits_rate, rice_num, rice_full, eating_speed, snacks, other_snacks, health_products_flag, health_products_brand, health_products_name, health_products_week_rate, health_products_day_rate, water_num, water_type, water_habit, drinks_num, drink_wine_flag, drink_wine_classify, other_wine_classify, drink_wine_amount, smoke_flag, smoke_rate, second_smoke, work_industry, work_type, defecation_num, other_defecation_num, defecation_time, defecation_shape, defecation_smell, defecation_speed, defecation_color, motion_num, motion_duration, motion_time, aerobic_motion_classify, anaerobic_motion_classify, anaerobic_aerobic_motion_classify, other_motion_classify, motion_field, other_motion_field, sleep_time, sleep_quality, sleep_drug_flag, sleep_drug, stayup_late_flag, stayup_late_week_num, family_illness_history, other_family_illness_history, operation_history, other_operation_history, near_operation_flag, recoverye_situation, long_eat_drug_flag, long_eat_drug_classify, other_long_eat_drug_classify, allergy_flag, allergy_situation, allergen, other_allergen, medical_report, create_time, create_by, update_time, update_by, del_flag from sys_customer_healthy + + + + + + + + insert into sys_customer_healthy + + id, + customer_id, + conditioning_project_id, + sex, + age, + condiment, + other_condiment, + cooking_style, + cooking_style_rate, + wash_vegetables_style, + other_wash_vegetables_style, + breakfast_type, + breakfast_food, + lunch_type, + dinner, + vegetable_rate, + common_meat, + dinner_time, + supper_num, + supper_food, + diet_hot_and_cold, + diet_flavor, + vegetables_num, + vegetables_rate_type, + fruits_num, + fruits_time, + fruits_rate, + rice_num, + rice_full, + eating_speed, + snacks, + other_snacks, + health_products_flag, + health_products_brand, + health_products_name, + health_products_week_rate, + health_products_day_rate, + water_num, + water_type, + water_habit, + drinks_num, + drink_wine_flag, + drink_wine_classify, + other_wine_classify, + drink_wine_amount, + smoke_flag, + smoke_rate, + second_smoke, + work_industry, + work_type, + defecation_num, + other_defecation_num, + defecation_time, + defecation_shape, + defecation_smell, + defecation_speed, + defecation_color, + motion_num, + motion_duration, + motion_time, + aerobic_motion_classify, + anaerobic_motion_classify, + anaerobic_aerobic_motion_classify, + other_motion_classify, + motion_field, + other_motion_field, + sleep_time, + sleep_quality, + sleep_drug_flag, + sleep_drug, + stayup_late_flag, + stayup_late_week_num, + family_illness_history, + other_family_illness_history, + operation_history, + other_operation_history, + near_operation_flag, + recoverye_situation, + long_eat_drug_flag, + long_eat_drug_classify, + other_long_eat_drug_classify, + allergy_flag, + allergy_situation, + allergen, + other_allergen, + medical_report, + create_time, + create_by, + update_time, + update_by, + del_flag, + + + #{id}, + #{customerId}, + #{conditioningProjectId}, + #{sex}, + #{age}, + #{condiment}, + #{otherCondiment}, + #{cookingStyle}, + #{cookingStyleRate}, + #{washVegetablesStyle}, + #{otherWashVegetablesStyle}, + #{breakfastType}, + #{breakfastFood}, + #{lunchType}, + #{dinner}, + #{vegetableRate}, + #{commonMeat}, + #{dinnerTime}, + #{supperNum}, + #{supperFood}, + #{dietHotAndCold}, + #{dietFlavor}, + #{vegetablesNum}, + #{vegetablesRateType}, + #{fruitsNum}, + #{fruitsTime}, + #{fruitsRate}, + #{riceNum}, + #{riceFull}, + #{eatingSpeed}, + #{snacks}, + #{otherSnacks}, + #{healthProductsFlag}, + #{healthProductsBrand}, + #{healthProductsName}, + #{healthProductsWeekRate}, + #{healthProductsDayRate}, + #{waterNum}, + #{waterType}, + #{waterHabit}, + #{drinksNum}, + #{drinkWineFlag}, + #{drinkWineClassify}, + #{otherWineClassify}, + #{drinkWineAmount}, + #{smokeFlag}, + #{smokeRate}, + #{secondSmoke}, + #{workIndustry}, + #{workType}, + #{defecationNum}, + #{otherDefecationNum}, + #{defecationTime}, + #{defecationShape}, + #{defecationSmell}, + #{defecationSpeed}, + #{defecationColor}, + #{motionNum}, + #{motionDuration}, + #{motionTime}, + #{aerobicMotionClassify}, + #{anaerobicMotionClassify}, + #{anaerobicAerobicMotionClassify}, + #{otherMotionClassify}, + #{motionField}, + #{otherMotionField}, + #{sleepTime}, + #{sleepQuality}, + #{sleepDrugFlag}, + #{sleepDrug}, + #{stayupLateFlag}, + #{stayupLateWeekNum}, + #{familyIllnessHistory}, + #{otherFamilyIllnessHistory}, + #{operationHistory}, + #{otherOperationHistory}, + #{nearOperationFlag}, + #{recoveryeSituation}, + #{longEatDrugFlag}, + #{longEatDrugClassify}, + #{otherLongEatDrugClassify}, + #{allergyFlag}, + #{allergySituation}, + #{allergen}, + #{otherAllergen}, + #{medicalReport}, + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + #{delFlag}, + + + + + update sys_customer_healthy + + customer_id = #{customerId}, + conditioning_project_id = #{conditioningProjectId}, + sex = #{sex}, + age = #{age}, + condiment = #{condiment}, + other_condiment = #{otherCondiment}, + cooking_style = #{cookingStyle}, + cooking_style_rate = #{cookingStyleRate}, + wash_vegetables_style = #{washVegetablesStyle}, + other_wash_vegetables_style = #{otherWashVegetablesStyle}, + breakfast_type = #{breakfastType}, + breakfast_food = #{breakfastFood}, + lunch_type = #{lunchType}, + dinner = #{dinner}, + vegetable_rate = #{vegetableRate}, + common_meat = #{commonMeat}, + dinner_time = #{dinnerTime}, + supper_num = #{supperNum}, + supper_food = #{supperFood}, + diet_hot_and_cold = #{dietHotAndCold}, + diet_flavor = #{dietFlavor}, + vegetables_num = #{vegetablesNum}, + vegetables_rate_type = #{vegetablesRateType}, + fruits_num = #{fruitsNum}, + fruits_time = #{fruitsTime}, + fruits_rate = #{fruitsRate}, + rice_num = #{riceNum}, + rice_full = #{riceFull}, + eating_speed = #{eatingSpeed}, + snacks = #{snacks}, + other_snacks = #{otherSnacks}, + health_products_flag = #{healthProductsFlag}, + health_products_brand = #{healthProductsBrand}, + health_products_name = #{healthProductsName}, + health_products_week_rate = #{healthProductsWeekRate}, + health_products_day_rate = #{healthProductsDayRate}, + water_num = #{waterNum}, + water_type = #{waterType}, + water_habit = #{waterHabit}, + drinks_num = #{drinksNum}, + drink_wine_flag = #{drinkWineFlag}, + drink_wine_classify = #{drinkWineClassify}, + other_wine_classify = #{otherWineClassify}, + drink_wine_amount = #{drinkWineAmount}, + smoke_flag = #{smokeFlag}, + smoke_rate = #{smokeRate}, + second_smoke = #{secondSmoke}, + work_industry = #{workIndustry}, + work_type = #{workType}, + defecation_num = #{defecationNum}, + other_defecation_num = #{otherDefecationNum}, + defecation_time = #{defecationTime}, + defecation_shape = #{defecationShape}, + defecation_smell = #{defecationSmell}, + defecation_speed = #{defecationSpeed}, + defecation_color = #{defecationColor}, + motion_num = #{motionNum}, + motion_duration = #{motionDuration}, + motion_time = #{motionTime}, + aerobic_motion_classify = #{aerobicMotionClassify}, + anaerobic_motion_classify = #{anaerobicMotionClassify}, + anaerobic_aerobic_motion_classify = #{anaerobicAerobicMotionClassify}, + other_motion_classify = #{otherMotionClassify}, + motion_field = #{motionField}, + other_motion_field = #{otherMotionField}, + sleep_time = #{sleepTime}, + sleep_quality = #{sleepQuality}, + sleep_drug_flag = #{sleepDrugFlag}, + sleep_drug = #{sleepDrug}, + stayup_late_flag = #{stayupLateFlag}, + stayup_late_week_num = #{stayupLateWeekNum}, + family_illness_history = #{familyIllnessHistory}, + other_family_illness_history = #{otherFamilyIllnessHistory}, + operation_history = #{operationHistory}, + other_operation_history = #{otherOperationHistory}, + near_operation_flag = #{nearOperationFlag}, + recoverye_situation = #{recoveryeSituation}, + long_eat_drug_flag = #{longEatDrugFlag}, + long_eat_drug_classify = #{longEatDrugClassify}, + other_long_eat_drug_classify = #{otherLongEatDrugClassify}, + allergy_flag = #{allergyFlag}, + allergy_situation = #{allergySituation}, + allergen = #{allergen}, + other_allergen = #{otherAllergen}, + medical_report = #{medicalReport}, + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + del_flag = #{delFlag}, + + where id = #{id} + + + + delete from sys_customer_healthy where id = #{id} + + + + delete from sys_customer_healthy where id in + + #{id} + + + + \ No newline at end of file diff --git a/stdiet-ui/src/views/custom/subhealthy/investigation/index.vue b/stdiet-ui/src/views/custom/subhealthy/investigation/index.vue index f4f4a7f64..7ed11ce32 100644 --- a/stdiet-ui/src/views/custom/subhealthy/investigation/index.vue +++ b/stdiet-ui/src/views/custom/subhealthy/investigation/index.vue @@ -3,109 +3,86 @@
logo
+
+ + + +
-

基础信息

- - - - - - - - - - - - - - - -

一、食品安全评估

+
+

一、基础信息

+ + + + + + + + + + + + + + + +
+ +
+

二、食品安全评估

1、家庭调味品

- 鸡精 - 耗油 - 生抽 - 老抽 - 香油 - 浓汤宝 - 鸡粉 - 花椒 - 辣椒油 + {{item.name}}
其他调味品

2、喜好的烹调方式和周频次

- - - - - - - - - - 刺身 - 水煮 + {{item.name}}
- 煎  次 - 炸  次 + 煎  次 + 炸  次
卤  次 - 腌  次 + 腌  次
- 腊  次 - 煲  次 + 腊  次 + 煲  次

3、洗菜方式

- 先切后洗 - 先洗后切 - 切后浸泡 + {{item.name}}
其他洗菜方式
+
- -

二、饮食结构评估

+
+

三、饮食结构评估

1、您三餐的习惯

- - 不吃 - 偶尔吃 - 每天吃 + {{item.name}}
早餐通常吃 
- 外卖 - 自带餐 - 快餐 - 餐厅 + {{item.name}} - 餐馆吃 - 在家吃 - 丰盛 - 清淡 + {{item.name}} @@ -116,7 +93,7 @@

2、您晚餐时间点和夜宵习惯

- + @@ -127,19 +104,12 @@

3、您的饮食偏好

- 偏冷食 - 偏烫食 - 正常 + {{item.name}} - 偏油 - 偏咸 - 偏辣 - 偏甜 - 偏酸 - 清淡 + {{item.name}}

4、生食果蔬状况

@@ -148,28 +118,28 @@
-
每天吃 - 经常吃 - 偶尔吃
-
从不吃
+ {{item.name}} +
- 餐前 - 餐后 - 餐间 + {{item.name}} -
- 每天吃 - 经常吃 - 偶尔吃 -
-
从不吃
+ {{item.name}} +

5、饮食习惯

@@ -181,32 +151,13 @@ -
- 很快 - 偏快 - 正常 -
-
- 偏慢 - 很慢 -
+ {{item.name}}

6、您常吃的零食

- 面包 - 蛋糕 - 饼干 - 冰淇淋 - 糖果 - 巧克力 - 方便面 - 薯条 - 肉干 - 饮料 - 果脯 - 牛奶 + {{item.name}}
其他零食
@@ -225,26 +176,21 @@  次/天
- -

三、生活习惯评估

+ +
+

四、生活习惯评估

1、您每天的饮水习惯

- 冰水 - 温水 - 常温水 + {{item.name}} - 均匀地喝 - 餐前多喝 - 餐后多喝 - 餐间多喝 - 随时喝 + {{item.name}}

2、您常喝的饮品和每周频次

@@ -277,16 +223,12 @@

3、您的饮酒习惯

- 经常饮酒 - 不饮酒 - 偶尔 + {{item.name}} - 白酒 - 红酒 - 啤酒 + {{item.name}}
其他酒
@@ -334,13 +276,7 @@ - 工作时间长 - 久坐 - 久站 - 走动多 - 强度大 - 用电脑多 - 体力工作多 + {{item.name}}

4、您的排便状况

@@ -355,12 +291,9 @@ - 上午 - 中午 - 晚上 + {{item.name}} -
形状 @@ -375,8 +308,9 @@ 颜色
- -

四、运动习惯评估

+
+
+

五、运动习惯评估

1、运动频率

@@ -390,58 +324,47 @@

2、运动方式、项目

- + +
有氧运动 - 跳绳 - 跑步 - 游泳 + {{item.name}}
有氧运动 - 撸铁 - 俯卧撑 + {{item.name}}
有氧无氧结合运动 - 拳击 - 瑜伽 + {{item.name}}
其他项目
- 居家 - 健身房 - 居家 - 健身房 + {{item.name}}
其他场地
- -

五、睡眠质量评估

+
+
+

六、睡眠质量评估

1、您的睡眠状况

- - 一般 - 入睡难 - 失眠 - 易醒 - 多梦 + {{item.name}}

2、辅助入睡药物情况

@@ -462,12 +385,13 @@ 熬夜频率 次/周
- -

六、既往病史/用药史评估

+ +
+

七、既往病史/用药史评估

1、家族疾病史情况

- {{item}} + {{item.name}}
其他家族病史 2、手术情况

- {{item}} + {{item.name}}
其他手术史 - {{item}} + {{item.name}}
其他长期服用的药物 - {{item}} + {{item.name}}
其他过敏源
+
- +
+

八、调理项目和提交报告

+

1、调理项目

+ + + + + +
+ + 上一步 + 下一步 已填写完成,提交数据提交数据 +