修改默认病人生成记录,早午晚加四餐全部启用状态

This commit is contained in:
czx 2021-01-14 16:15:59 +08:00
parent 5e8ac3b417
commit 7fa65bfe15
2 changed files with 4 additions and 4 deletions

View File

@ -6,9 +6,9 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:mysql://192.168.3.95:3306/fantang_test?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true
username: root
password: 123456
url: jdbc:mysql://120.77.157.122:3306/fantang_test?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true
username: fantang_test
password: FcK2GcNhK54bLGM6
# 从库数据源
slave:
# 从数据源开关/默认关闭

View File

@ -17,7 +17,7 @@ import java.util.List;
* @date 2020-12-03
*/
public interface FtFoodDemandDaoMapper extends BaseMapper<FtFoodDemandDao> {
@Insert("insert into ft_food_demand (patient_id, foods, type, flag) select #{patient_id}, food_list, type, 1 FROM ft_food_default")
@Insert("insert into ft_food_demand (patient_id, foods, type, flag,create_at ) select #{patient_id}, food_list, type, 1, now() FROM ft_food_default")
public Integer GenerateOrderByPatientId(@Param("patient_id") Long patientId);
@Select("select a.patient_id from ft_patient a where a.patient_id not in (select patient_id from ft_food_demand c )")