Commit e396c4ca authored by 向怀芳's avatar 向怀芳 🎱

1. 腰椎问卷,中医导医推荐

parent 6454de2d
...@@ -17,7 +17,9 @@ import javax.sql.DataSource; ...@@ -17,7 +17,9 @@ import javax.sql.DataSource;
*/ */
@Configuration @Configuration
@ConditionalOnClass(MybatisPlusConfig.class) @ConditionalOnClass(MybatisPlusConfig.class)
@MapperScan(basePackages = {"cn.sh.stc.sict.**.dao", "com.smarthealth.themestore.*.dao"}) @MapperScan(basePackages = {"cn.sh.stc.sict.**.dao",
"com.smarthealth.themestore.*.dao",
"cn.sh.stc.sict.**.**.dao"})
public class MybatisPlusConfig { public class MybatisPlusConfig {
/** /**
......
...@@ -63,7 +63,7 @@ public class HpAppointmentEvaController { ...@@ -63,7 +63,7 @@ public class HpAppointmentEvaController {
if(NumberUtil.isNullOrZero(eva.getPatientId())){ if(NumberUtil.isNullOrZero(eva.getPatientId())){
return new R().error("patientId 不可为空!"); return new R().error("patientId 不可为空!");
} }
HpAppointment app = hpAppointmentService.getById(eva.getId()); HpAppointment app = hpAppointmentService.getById(eva.getAppId());
if(ObjectUtil.isNull(app)){ if(ObjectUtil.isNull(app)){
return new R().error("未找到预约记录!"); return new R().error("未找到预约记录!");
} }
......
...@@ -8,7 +8,7 @@ import org.apache.ibatis.annotations.Param; ...@@ -8,7 +8,7 @@ import org.apache.ibatis.annotations.Param;
/** /**
* 预约评价(HpAppointmentEva)表数据库访问层 * 预约评价(HpAppointmentEva)表数据库访问层
* *
* @author makejava * @author F_xh
* @since 2022-06-23 10:46:03 * @since 2022-06-23 10:46:03
*/ */
public interface HpAppointmentEvaMapper extends BaseMapper<HpAppointmentEva> { public interface HpAppointmentEvaMapper extends BaseMapper<HpAppointmentEva> {
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
num_source_date appTime num_source_date appTime
from hp_appointment from hp_appointment
where patient_id = #{patientId} where patient_id = #{patientId}
and eva_status = 0
order by num_source_date desc order by num_source_date desc
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment