病患默认配餐配置删除price字段,调整sql语句

This commit is contained in:
czx 2020-12-07 13:50:05 +08:00
parent b99ab862ef
commit ac43c15b8b

View File

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