chenweida 7 éve
szülő
commit
9eb42587db

+ 0 - 2
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/repository/concern/ConcernDao.java

@ -37,6 +37,4 @@ public interface ConcernDao extends
    @Query("select count(id) from  ConcernDO  where   status=1  and  concernDoctorCode=?1")
    Integer countPatientsByDoctorCode(String doctorCode);
    @Query("select count(id) from  ConcernDO  where   concernDoctorCode=?1 group by patient")
    Integer countAllPatientsByDoctorCode(String doctorCode);
}

+ 14 - 2
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/concern/ConcernService.java

@ -238,8 +238,20 @@ public class ConcernService extends BaseService {
     * @return
     */
    public Integer countAllPatientsByDoctorCode(String doctorCode) {
        Integer patients = concernDao.countAllPatientsByDoctorCode(doctorCode);
        String sql="SELECT " +
                "  count(*) " +
                "FROM " +
                "  ( " +
                "    SELECT " +
                "      id " +
                "    FROM " +
                "      wlyy_concern  " +
                "    WHERE " +
                "      concern_doctor_code = '"+doctorCode+"' " +
                "    GROUP BY " +
                "      patient " +
                "  ) t";
        Integer patients = jdbcTemplate.queryForObject(sql,Integer.class);
        return patients;
    }

+ 1 - 1
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/family/FamilyService.java

@ -58,7 +58,7 @@ public class FamilyService {
    @Autowired
    private ConsultService consultService;
    @Value("${wechat.message.doctor_invitel_template}")
   // @Value("${wechat.message.doctor_invitel_template}")
    private String templateId;
    @Value("${wechat.wechat_base_url}")
    private String wechat_base_url;

+ 2 - 2
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/web/third/template/ThirdTemplateController.java

@ -28,9 +28,9 @@ public class ThirdTemplateController extends BaseController {
    private WeiXinTempMsgSendUtils tempMsgSendUtils;
    @Autowired
    private PushMsgTask pushMsgTask;
    @Value("${wechat.message.template_doctor_survey}")
//    @Value("${wechat.message.template_doctor_survey}")
    private String template_doctor_survey;
    @Value("${wechat.message.template_deal_with}")
//    @Value("${wechat.message.template_deal_with}")
    private String template_deal_with;
    /**

+ 1 - 1
patient-co/patient-co-wlyy/src/main/resources/application.yml

@ -64,7 +64,7 @@ redis:
hibernate:
  dialect: org.hibernate.dialect.MySQL5Dialect
  show_sql: false
  show_sql: true
  ejb:
    naming_strategy: org.hibernate.cfg.ImprovedNamingStrategy