前端对应数据库病患报餐增加是否开通营养配餐标志

This commit is contained in:
czx 2021-01-19 17:52:15 +08:00
parent d0f5c425b2
commit 5b1eb6d89d
2 changed files with 7 additions and 2 deletions

View File

@ -17,6 +17,8 @@ import java.util.List;
@AllArgsConstructor @AllArgsConstructor
public class FtPatientVo extends FtPatientDao { public class FtPatientVo extends FtPatientDao {
@TableField(exist = false)
private Boolean openFlag;
List<FtReportMealsDao> reportMealsList; List<FtReportMealsDao> reportMealsList;
} }

View File

@ -32,7 +32,8 @@
c.vegetables, c.vegetables,
c.meat, c.meat,
c.rice, c.rice,
c.egg c.egg,
c.open_flag
from ft_patient a from ft_patient a
LEFT JOIN ft_depart b on a.depart_id = b.depart_id LEFT JOIN ft_depart b on a.depart_id = b.depart_id
RIGHT JOIN ft_report_meals c on a.patient_id = c.patient_id RIGHT JOIN ft_report_meals c on a.patient_id = c.patient_id
@ -45,6 +46,7 @@
<result property="departName" column="depart_name"></result> <result property="departName" column="depart_name"></result>
<result property="bedId" column="bed_id"></result> <result property="bedId" column="bed_id"></result>
<result property="hospitalId" column="hospital_id"></result> <result property="hospitalId" column="hospital_id"></result>
<result property="openFlag" column="open_flag"></result>
<collection property="reportMealsList" ofType="com.ruoyi.system.fantang.domain.FtReportMealsDao"> <collection property="reportMealsList" ofType="com.ruoyi.system.fantang.domain.FtReportMealsDao">
<result property="id" column="id"></result> <result property="id" column="id"></result>
<result property="createAt" column="create_at"></result> <result property="createAt" column="create_at"></result>
@ -81,7 +83,8 @@
c.vegetables, c.vegetables,
c.meat, c.meat,
c.rice, c.rice,
c.egg c.egg,
c.open_flag
from ft_patient a from ft_patient a
LEFT JOIN ft_depart b on a.depart_id = b.depart_id LEFT JOIN ft_depart b on a.depart_id = b.depart_id
RIGHT JOIN ft_report_meals c on a.patient_id = c.patient_id RIGHT JOIN ft_report_meals c on a.patient_id = c.patient_id