|  | @@ -2,7 +2,9 @@ package thyyxxk.wxservice_server.dao;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import org.apache.ibatis.annotations.*;
 | 
	
		
			
				|  |  |  import thyyxxk.wxservice_server.pojo.PureCodeName;
 | 
	
		
			
				|  |  | -import thyyxxk.wxservice_server.pojo.covidvaccinate.VaccinatePojo;
 | 
	
		
			
				|  |  | +import thyyxxk.wxservice_server.pojo.covidvaccinate.CovidVaccinate;
 | 
	
		
			
				|  |  | +import thyyxxk.wxservice_server.pojo.covidvaccinate.ZdCovidVaccinate;
 | 
	
		
			
				|  |  | +import thyyxxk.wxservice_server.pojo.covidvaccinate.ZdVaccinateFactory;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import java.util.Date;
 | 
	
		
			
				|  |  |  import java.util.List;
 | 
	
	
		
			
				|  | @@ -10,8 +12,17 @@ import java.util.List;
 | 
	
		
			
				|  |  |  @Mapper
 | 
	
		
			
				|  |  |  public interface CovidVaccinateAppointmentDao {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    @Select("select * from t_zd_covid_vaccinate where enable_flag=1")
 | 
	
		
			
				|  |  | +    List<ZdCovidVaccinate> selectVaccinates();
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    @Select("select * from t_zd_covid_vaccinate where id=#{id}")
 | 
	
		
			
				|  |  | +    ZdCovidVaccinate selectVaccinatesById(@Param("id") Integer id);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    @Select("select * from t_covid_vaccinate_factory where vaccinate_id=#{id} and enable_flag=1")
 | 
	
		
			
				|  |  | +    List<ZdVaccinateFactory> selectFactories(@Param("id") Integer id);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      @Select("select top 1 name,phone,social_no from t_wechat_patient_bind where patient_id=#{patientId}")
 | 
	
		
			
				|  |  | -    VaccinatePojo selectPatientInfo(@Param("patientId") String patientId);
 | 
	
		
			
				|  |  | +    CovidVaccinate selectPatientInfo(@Param("patientId") String patientId);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Select("select id as code,name from t_covid_appointment_job_category_dict order by id")
 | 
	
		
			
				|  |  |      List<PureCodeName> selectJobCategories();
 | 
	
	
		
			
				|  | @@ -22,9 +33,10 @@ public interface CovidVaccinateAppointmentDao {
 | 
	
		
			
				|  |  |                                  @Param("phone") String phone);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Insert("insert into t_covid_vaccinate_appointment (patient_id, name, sex, phone, social_no, age, corp_name, " +
 | 
	
		
			
				|  |  | -            "job_category, create_datetime, execute_date) values " +
 | 
	
		
			
				|  |  | -            "(#{patientId},#{name},#{sex},#{phone},#{socialNo},#{age},#{corpName},#{jobCategory},#{createDatetime},#{executeDate})")
 | 
	
		
			
				|  |  | -    void insertNewAppointment(VaccinatePojo param);
 | 
	
		
			
				|  |  | +            "job_category, create_datetime, execute_date, vaccinate_code, vaccinate_name, vaccinate_factory) values " +
 | 
	
		
			
				|  |  | +            "(#{patientId},#{name},#{sex},#{phone},#{socialNo},#{age},#{corpName},#{jobCategory},#{createDatetime}," +
 | 
	
		
			
				|  |  | +            "#{executeDate},#{vaccinateCode},#{vaccinateName},#{vaccinateFactory})")
 | 
	
		
			
				|  |  | +    void insertNewAppointment(CovidVaccinate param);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Select("select count(1) from t_covid_vaccinate_appointment where social_no=#{socialNo} and execute_date=#{executeDate} " +
 | 
	
		
			
				|  |  |              "and isnull(del_flag,0)!=1")
 |