Procházet zdrojové kódy

为所有控制器添加注解;增加团队医生签约患者列表API

Sand před 8 roky
rodič
revize
9c2b7dbe2c
64 změnil soubory, kde provedl 178 přidání a 23 odebrání
  1. 2 0
      src/main/java/com/yihu/wlyy/entity/consult/ConsultMoVi.java
  2. 1 1
      src/main/java/com/yihu/wlyy/interceptors/DoctorInterceptor.java
  3. 9 0
      src/main/java/com/yihu/wlyy/repository/doctor/DoctorAdminTeamDao.java
  4. 3 3
      src/main/java/com/yihu/wlyy/repository/doctor/DoctorAdminTeamMemberDao.java
  5. 18 2
      src/main/java/com/yihu/wlyy/service/app/team/AdminTeamService.java
  6. 2 0
      src/main/java/com/yihu/wlyy/task/PushMsgTask.java
  7. 2 0
      src/main/java/com/yihu/wlyy/web/common/FileUploadController.java
  8. 2 1
      src/main/java/com/yihu/wlyy/web/common/account/LoginController.java
  9. 3 2
      src/main/java/com/yihu/wlyy/web/common/account/WeinxinController.java
  10. 2 1
      src/main/java/com/yihu/wlyy/web/common/advert/AdvertController.java
  11. 2 0
      src/main/java/com/yihu/wlyy/web/common/data/DataController.java
  12. 2 0
      src/main/java/com/yihu/wlyy/web/common/district/DistrictController.java
  13. 2 0
      src/main/java/com/yihu/wlyy/web/common/im/imController.java
  14. 7 5
      src/main/java/com/yihu/wlyy/web/common/qrcode/QrcodeController.java
  15. 2 0
      src/main/java/com/yihu/wlyy/web/common/sms/SMSController.java
  16. 2 0
      src/main/java/com/yihu/wlyy/web/common/system/SystemDictController.java
  17. 2 0
      src/main/java/com/yihu/wlyy/web/common/util/ManagerUtilController.java
  18. 2 0
      src/main/java/com/yihu/wlyy/web/common/version/VersionController.java
  19. 2 0
      src/main/java/com/yihu/wlyy/web/doctor/account/DoctorController.java
  20. 2 0
      src/main/java/com/yihu/wlyy/web/doctor/consult/DoctorConsultController.java
  21. 2 0
      src/main/java/com/yihu/wlyy/web/doctor/consult/DoctorConsultMoviController.java
  22. 2 0
      src/main/java/com/yihu/wlyy/web/doctor/consult/DoctorConsultPublicController.java
  23. 3 1
      src/main/java/com/yihu/wlyy/web/doctor/discussion/DoctorTalkGroupController.java
  24. 2 0
      src/main/java/com/yihu/wlyy/web/doctor/family/DoctorFamilyController.java
  25. 2 0
      src/main/java/com/yihu/wlyy/web/doctor/followup/DoctorFollowUpController.java
  26. 2 0
      src/main/java/com/yihu/wlyy/web/doctor/followup/DoctorFollowUpControllerGeorge.java
  27. 2 0
      src/main/java/com/yihu/wlyy/web/doctor/followup/DoctorFollowUpPlanRemindController.java
  28. 1 1
      src/main/java/com/yihu/wlyy/web/doctor/health/DoctorHealthController.java
  29. 2 0
      src/main/java/com/yihu/wlyy/web/doctor/health/DoctorHealthEduArticleController.java
  30. 2 0
      src/main/java/com/yihu/wlyy/web/doctor/health/DoctorHealthGuidanceController.java
  31. 2 0
      src/main/java/com/yihu/wlyy/web/doctor/health/DoctorHealthRecordController.java
  32. 2 0
      src/main/java/com/yihu/wlyy/web/doctor/intervene/DoctorInterveneController.java
  33. 2 0
      src/main/java/com/yihu/wlyy/web/doctor/medical/DoctorMedicalRecordController.java
  34. 2 0
      src/main/java/com/yihu/wlyy/web/doctor/message/DoctorMessageController.java
  35. 2 0
      src/main/java/com/yihu/wlyy/web/doctor/patient/DoctorPatientGroupController.java
  36. 2 0
      src/main/java/com/yihu/wlyy/web/doctor/patient/PatientDiseaseController.java
  37. 2 0
      src/main/java/com/yihu/wlyy/web/doctor/scheduling/DoctorWorkTimeController.java
  38. 2 0
      src/main/java/com/yihu/wlyy/web/doctor/sign/DoctorFamilyContractController.java
  39. 2 0
      src/main/java/com/yihu/wlyy/web/doctor/sign/DoctorSignController.java
  40. 18 0
      src/main/java/com/yihu/wlyy/web/doctor/team/AdminTeamController.java
  41. 2 0
      src/main/java/com/yihu/wlyy/web/manager/IndexController.java
  42. 2 0
      src/main/java/com/yihu/wlyy/web/patient/account/PatientController.java
  43. 2 1
      src/main/java/com/yihu/wlyy/web/patient/consult/ConsultCommunicationController.java
  44. 2 0
      src/main/java/com/yihu/wlyy/web/patient/consult/ConsultController.java
  45. 2 0
      src/main/java/com/yihu/wlyy/web/patient/consult/ConsultPublicController.java
  46. 2 0
      src/main/java/com/yihu/wlyy/web/patient/family/PatientFamilyController.java
  47. 2 0
      src/main/java/com/yihu/wlyy/web/patient/followup/PatientFollowUpController.java
  48. 2 0
      src/main/java/com/yihu/wlyy/web/patient/health/HealthEduArticleController.java
  49. 2 0
      src/main/java/com/yihu/wlyy/web/patient/health/PatientHealthGuidanceController.java
  50. 2 0
      src/main/java/com/yihu/wlyy/web/patient/health/PatientHealthRecordController.java
  51. 3 1
      src/main/java/com/yihu/wlyy/web/patient/hosptail/HosptailController.java
  52. 3 1
      src/main/java/com/yihu/wlyy/web/patient/hosptail/HosptailWithOutFilterController.java
  53. 2 0
      src/main/java/com/yihu/wlyy/web/patient/intervene/PatientInterveneController.java
  54. 2 0
      src/main/java/com/yihu/wlyy/web/patient/medical/PatientMedicalRecordController.java
  55. 2 0
      src/main/java/com/yihu/wlyy/web/patient/scheduling/SchedulingController.java
  56. 2 0
      src/main/java/com/yihu/wlyy/web/patient/sign/FamilyContractController.java
  57. 3 1
      src/main/java/com/yihu/wlyy/web/patient/sign/FamilyWithOutfliterController.java
  58. 2 0
      src/main/java/com/yihu/wlyy/web/patient/sign/PatientSignController.java
  59. 2 0
      src/main/java/com/yihu/wlyy/web/quota/JobController.java
  60. 2 0
      src/main/java/com/yihu/wlyy/web/statistic/StatisticsController.java
  61. 2 0
      src/main/java/com/yihu/wlyy/web/wx/HealthServiceController.java
  62. 2 0
      src/main/java/com/yihu/wlyy/web/wx/MyInfoController.java
  63. 2 0
      src/main/java/com/yihu/wlyy/web/wx/SelfManagementController.java
  64. 4 2
      src/main/java/com/yihu/wlyy/web/wx/WeiXinCoreController.java

+ 2 - 0
src/main/java/com/yihu/wlyy/entity/consult/ConsultMoVi.java

@ -14,6 +14,7 @@ import javax.persistence.Table;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.wlyy.entity.doctor.profile.DoctorComment;
import com.yihu.wlyy.entity.IdEntity;
import io.swagger.annotations.Api;
/**
 * 电话视频咨询信息對象
@ -23,6 +24,7 @@ import com.yihu.wlyy.entity.IdEntity;
@Entity
@Table(name = "wlyy_consult_movi")
@Api(description = "电视咨询")
public class ConsultMoVi extends IdEntity {
	/**

+ 1 - 1
src/main/java/com/yihu/wlyy/interceptors/DoctorInterceptor.java

@ -51,7 +51,7 @@ public class DoctorInterceptor extends BaseInterceptor {
			if (token == null || token.getPlatform() != 2) {
				// 未登录
				response.getOutputStream().write(error(SystemConf.NOT_LOGIN, "请登录后再操作!").getBytes());
				flag = true/*false*/;
				flag = false;
			} else {
				if (token.getTimeout().getTime() < new Date().getTime()) {
					// 登录超时

+ 9 - 0
src/main/java/com/yihu/wlyy/repository/doctor/DoctorAdminTeamDao.java

@ -1,6 +1,9 @@
package com.yihu.wlyy.repository.doctor;
import com.yihu.wlyy.entity.doctor.team.admin.AdminTeam;
import com.yihu.wlyy.entity.patient.Patient;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
@ -24,4 +27,10 @@ public interface DoctorAdminTeamDao extends
    @Query("SELECT count(s) FROM SignFamily s WHERE doctorHealth = :healthDoctorCode AND doctor IN (:patterns)")
    Integer getHealthDoctorSignCount(@Param(value = "healthDoctorCode") String healthDoctorCode,
                                     @Param(value = "patterns") List<String> patterns);
    @Query("SELECT p FROM SignFamily s, Patient p WHERE doctor = :doctorCode AND doctorHealth IN (:patterns) AND s" +
            ".patient = p.code")
    Page<Patient> getHealthDoctorSigningPatients(@Param(value = "doctorCode") String doctorCode,
                                                 @Param(value = "patterns") List<String> patterns,
                                                 Pageable pageable);
}

+ 3 - 3
src/main/java/com/yihu/wlyy/repository/doctor/DoctorAdminTeamMemberDao.java

@ -35,7 +35,7 @@ public interface DoctorAdminTeamMemberDao extends
    @Query("SELECT d from Hospital h, Doctor d WHERE h.code = d.hospital AND h.code = :orgCode AND d.code not in " +
            "(select t.doctorCode from AdminTeamMember t WHERE t.teamId = :teamId)")
    Page<Doctor> findTeamExcledMembers(@Param(value = "orgCode") String orgCode,
                                       @Param(value = "teamId") long teamId,
                                       Pageable pageable);
    Page<Doctor> findTeamExcludedMembers(@Param(value = "orgCode") String orgCode,
                                         @Param(value = "teamId") long teamId,
                                         Pageable pageable);
}

+ 18 - 2
src/main/java/com/yihu/wlyy/service/app/team/AdminTeamService.java

@ -3,6 +3,7 @@ package com.yihu.wlyy.service.app.team;
import com.yihu.wlyy.entity.doctor.profile.Doctor;
import com.yihu.wlyy.entity.doctor.team.admin.AdminTeam;
import com.yihu.wlyy.entity.doctor.team.admin.AdminTeamMember;
import com.yihu.wlyy.entity.patient.Patient;
import com.yihu.wlyy.repository.doctor.DoctorAdminTeamDao;
import com.yihu.wlyy.repository.doctor.DoctorAdminTeamMemberDao;
import com.yihu.wlyy.service.BaseService;
@ -12,7 +13,6 @@ import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.StringUtils;
import java.util.*;
@ -102,7 +102,7 @@ public class AdminTeamService extends BaseService {
    public List<Doctor> getExcludedMembers(String orgCode, long teamId, int page, int size){
        Pageable pageable = new PageRequest(page, size);
        Page<Doctor> doctors = memberDao.findTeamExcledMembers(orgCode, teamId, pageable);
        Page<Doctor> doctors = memberDao.findTeamExcludedMembers(orgCode, teamId, pageable);
        if (doctors == null) return null;
        return doctors.getContent();
@ -142,6 +142,22 @@ public class AdminTeamService extends BaseService {
        return counts;
    }
    public List<Patient> getMemberSigningPatients(long teamId, String doctorCode, int page, int size){
        List<String> healthDoctors = new ArrayList<>();
        List<Doctor> doctors = getMembers(teamId);
        for (Doctor doctor : doctors){
            if (doctor.getLevel() != 3) continue;
            healthDoctors.add(doctor.getCode());
        }
        Page<Patient> result = teamDao.getHealthDoctorSigningPatients(
                doctorCode, healthDoctors,
                new PageRequest(page, size));
        return result.getContent();
    }
    private void saveTeam(AdminTeam team) {
        teamDao.save(team);
    }

+ 2 - 0
src/main/java/com/yihu/wlyy/task/PushMsgTask.java

@ -5,6 +5,7 @@ import java.util.Map;
import java.util.concurrent.LinkedBlockingQueue;
import com.yihu.wlyy.util.SystemConf;
import io.swagger.annotations.Api;
import org.json.JSONArray;
import org.json.JSONObject;
import org.slf4j.Logger;
@ -20,6 +21,7 @@ import com.yihu.wlyy.util.HttpUtil;
@Controller
@RequestMapping(value = "/pushMsgTask")
@Api(description = "消息推送")
public class PushMsgTask {
	private static Logger logger = LoggerFactory.getLogger(PushMsgTask.class);

+ 2 - 0
src/main/java/com/yihu/wlyy/web/common/FileUploadController.java

@ -12,6 +12,7 @@ import java.util.Random;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.Api;
import org.apache.commons.io.FileUtils;
import org.json.JSONObject;
import org.springframework.stereotype.Controller;
@ -29,6 +30,7 @@ import com.yihu.wlyy.web.BaseController;
@Controller
@RequestMapping(value = "/upload")
@Api(description = "文件上传")
public class FileUploadController extends BaseController {
	/** 

+ 2 - 1
src/main/java/com/yihu/wlyy/web/common/account/LoginController.java

@ -13,6 +13,7 @@ import com.yihu.wlyy.util.DateUtil;
import com.yihu.wlyy.util.RSAUtils;
import com.yihu.wlyy.util.SystemData;
import com.yihu.wlyy.web.BaseController;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONObject;
import org.patchca.color.SingleColorFactory;
@ -42,7 +43,7 @@ import java.util.List;
 */
@Controller
@RequestMapping(value = "/login")
//@Api(description = "用户登录")
@Api(description = "患者、医生及管理员登录")
public class LoginController extends BaseController {
    @Autowired

+ 3 - 2
src/main/java/com/yihu/wlyy/web/common/account/WeinxinController.java

@ -10,6 +10,7 @@ import com.yihu.wlyy.repository.patient.PatientDao;
import com.yihu.wlyy.repository.patient.SocialSecurityInfoDao;
import com.yihu.wlyy.service.app.family.FamilyService;
import com.yihu.wlyy.util.HttpUtil;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
@ -32,8 +33,8 @@ import com.yihu.wlyy.web.WeixinBaseController;
 */
@Controller
@RequestMapping(value = "/weixin")
//@Api(description = "微信端用户注册")
public class WeinxinController extends WeixinBaseController {
@Api(description = "微信端用户注册")
public class WechatController extends WeixinBaseController {
    @Autowired
    private PatientService patientService;

+ 2 - 1
src/main/java/com/yihu/wlyy/web/common/advert/AdvertController.java

@ -1,5 +1,6 @@
package com.yihu.wlyy.web.common.advert;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@ -10,7 +11,7 @@ import com.yihu.wlyy.web.BaseController;
@Controller
@RequestMapping(value = "common")
//@Api(description = "广告查询")
@Api(description = "广告")
public class AdvertController extends BaseController {
	
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/common/data/DataController.java

@ -2,6 +2,7 @@ package com.yihu.wlyy.web.common.data;
import java.util.List;
import io.swagger.annotations.Api;
import org.json.JSONArray;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
@ -15,6 +16,7 @@ import com.yihu.wlyy.web.BaseController;
@RequestMapping(value = "/common/data")
@Controller
@Api(description = "疾病与社区")
public class DataController extends BaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/common/district/DistrictController.java

@ -2,6 +2,7 @@ package com.yihu.wlyy.web.common.district;
import java.util.List;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@ -17,6 +18,7 @@ import com.yihu.wlyy.web.BaseController;
 */
@Controller
@RequestMapping(value = "common")
@Api(description = "省市区三级地址")
public class DistrictController extends BaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/common/im/imController.java

@ -1,6 +1,7 @@
package com.yihu.wlyy.web.common.im;
import io.swagger.annotations.Api;
import org.json.JSONObject;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@ -10,6 +11,7 @@ import com.yihu.wlyy.web.BaseController;
@RestController
@RequestMapping(value = "common")
@Api(description = "IM-即时消息")
public class imController extends BaseController {
	
	private static String host = "http://172.19.103.76:3000";

+ 7 - 5
src/main/java/com/yihu/wlyy/web/common/qrcode/QrcodeController.java

@ -4,6 +4,7 @@ import com.yihu.wlyy.entity.doctor.profile.Doctor;
import com.yihu.wlyy.service.common.QrcodeService;
import com.yihu.wlyy.service.common.account.DoctorService;
import com.yihu.wlyy.web.WeixinBaseController;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
@ -21,7 +22,8 @@ import java.io.OutputStream;
 */
@Controller
@RequestMapping(value = "/qrcode")
public class QrcodeController extends WeixinBaseController {
@Api(description = "二维码")
public class QrCodeController extends WeixinBaseController {
    @Autowired
    private QrcodeService qrcodeService;
@ -116,7 +118,7 @@ public class QrcodeController extends WeixinBaseController {
    @RequestMapping(value = "/hospital_img")
    public void downloadSqQrcode(String hospital, HttpServletResponse response){
        try{
            File file = new File(QrcodeController.class.getResource("/").getPath().replace("/WEB-INF/classes/", "") +
            File file = new File(QrCodeController.class.getResource("/").getPath().replace("/WEB-INF/classes/", "") +
                    File.separator +"qrcode" + File.separator + hospital + ".png");
            boolean flag = false;
            if(!file.exists()){
@ -158,7 +160,7 @@ public class QrcodeController extends WeixinBaseController {
    @RequestMapping(value = "/town_img")
    public void downloadTownQrcode(String town, HttpServletResponse response){
        try{
            File file = new File(QrcodeController.class.getResource("/").getPath().replace("/WEB-INF/classes/", "") +
            File file = new File(QrCodeController.class.getResource("/").getPath().replace("/WEB-INF/classes/", "") +
                    File.separator +"qrcode" + File.separator + town + ".png");
            boolean flag = false;
            if(!file.exists()){
@ -207,7 +209,7 @@ public class QrcodeController extends WeixinBaseController {
                    qrcodeService.makeDoctorQrcode(doctor,getAccessToken());
                    doc = doctorService.findDoctorByCode(doctor);
                }else{
                    File file = new File(QrcodeController.class.getResource("/").getPath().replace("/WEB-INF/classes/", "") +
                    File file = new File(QrCodeController.class.getResource("/").getPath().replace("/WEB-INF/classes/", "") +
                    File.separator +"qrcode" + File.separator + doc.getQrcode());
                    if(!file.exists()){
@ -259,7 +261,7 @@ public class QrcodeController extends WeixinBaseController {
                    qrcodeService.makeDoctorQrcode(doctor,getAccessToken());
                    doc = doctorService.findDoctorByCode(doctor);
                }else{
                    File file = new File(QrcodeController.class.getResource("/").getPath().replace("/WEB-INF/classes/", "") +
                    File file = new File(QrCodeController.class.getResource("/").getPath().replace("/WEB-INF/classes/", "") +
                            File.separator +"qrcode" + File.separator + doc.getQrcode());
                    if(!file.exists()){

+ 2 - 0
src/main/java/com/yihu/wlyy/web/common/sms/SMSController.java

@ -1,5 +1,6 @@
package com.yihu.wlyy.web.common.sms;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
@ -18,6 +19,7 @@ import com.yihu.wlyy.web.BaseController;
@Controller
@RequestMapping(value = "/common")
@Api(description = "短信")
public class SMSController extends BaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/common/system/SystemDictController.java

@ -3,6 +3,7 @@ package com.yihu.wlyy.web.common.system;
import com.yihu.wlyy.entity.dict.SystemDict;
import com.yihu.wlyy.service.system.SystemDictService;
import com.yihu.wlyy.web.BaseController;
import io.swagger.annotations.Api;
import org.json.JSONArray;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
@ -18,6 +19,7 @@ import java.util.List;
@Controller
@RequestMapping(value = "/common")
@Api(description = "系统字典")
public class SystemDictController extends BaseController {
    @Autowired
    private SystemDictService systemDictService;

+ 2 - 0
src/main/java/com/yihu/wlyy/web/common/util/ManagerUtilController.java

@ -5,6 +5,7 @@ import com.yihu.wlyy.job.consult.FamousConsultTimesJob;
import com.yihu.wlyy.service.app.disease.PatientDiseaseService;
import com.yihu.wlyy.service.app.scheduling.DoctorWorkTimeService;
import com.yihu.wlyy.web.BaseController;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.data.redis.hash.HashMapper;
@ -20,6 +21,7 @@ import java.util.HashMap;
 */
@RestController
@RequestMapping(value = "/manage_util")
@Api(description = "管理工具及后台任务控制")
public class ManagerUtilController extends BaseController{
    @Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/common/version/VersionController.java

@ -1,5 +1,6 @@
package com.yihu.wlyy.web.common.version;
import io.swagger.annotations.Api;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
@ -17,6 +18,7 @@ import com.yihu.wlyy.web.BaseController;
 */
@Controller
@RequestMapping(value = "/version")
@Api(description = "版本")
public class VersionController extends BaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/doctor/account/DoctorController.java

@ -16,6 +16,7 @@ import com.yihu.wlyy.service.app.consult.ConsultTeamService;
import com.yihu.wlyy.service.app.hospital.HospitalDeptService;
import com.yihu.wlyy.service.common.account.PatientService;
import com.yihu.wlyy.util.*;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONArray;
import org.json.JSONObject;
@ -44,6 +45,7 @@ import com.yihu.wlyy.repository.patient.SocialSecurityInfoDao;
 */
@Controller
@RequestMapping(value = "/doctor")
@Api(description = "医生")
public class DoctorController extends BaseController {
    @Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/doctor/consult/DoctorConsultController.java

@ -4,6 +4,7 @@ import java.util.List;
import java.util.Map;
import com.yihu.wlyy.service.app.health.PatientHealthGuidanceService;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONArray;
import org.json.JSONObject;
@ -33,6 +34,7 @@ import com.yihu.wlyy.web.WeixinBaseController;
 */
@Controller
@RequestMapping(value = "/doctor/consult")
@Api(description = "三师咨询")
public class DoctorConsultController extends WeixinBaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/doctor/consult/DoctorConsultMoviController.java

@ -3,6 +3,7 @@ package com.yihu.wlyy.web.doctor.consult;
import java.sql.Time;
import java.util.Date;
import io.swagger.annotations.Api;
import org.json.JSONArray;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
@ -26,6 +27,7 @@ import com.yihu.wlyy.web.BaseController;
 */
@Controller
@RequestMapping(value = "/doctor/consult")
@Api(description = "电话咨询")
public class DoctorConsultMoviController extends BaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/doctor/consult/DoctorConsultPublicController.java

@ -4,6 +4,7 @@ import java.util.Date;
import com.yihu.wlyy.entity.doctor.profile.Doctor;
import com.yihu.wlyy.service.app.account.DoctorInfoService;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONArray;
import org.json.JSONObject;
@ -30,6 +31,7 @@ import com.yihu.wlyy.web.BaseController;
 */
@Controller
@RequestMapping(value = "/doctor/consult/public")
@Api(description = "公共咨询")
public class DoctorConsultPublicController extends BaseController {
	@Autowired

+ 3 - 1
src/main/java/com/yihu/wlyy/web/doctor/discussion/DoctorTalkGroupController.java

@ -7,6 +7,7 @@ import com.yihu.wlyy.entity.discussion.WlyyTalkGroupMember;
import com.yihu.wlyy.entity.doctor.profile.Doctor;
import com.yihu.wlyy.entity.patient.Patient;
import com.yihu.wlyy.service.common.account.PatientService;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONArray;
import org.json.JSONObject;
@ -22,7 +23,8 @@ import com.yihu.wlyy.web.BaseController;
@Controller
@RequestMapping(value = "/doctor/talkgroup")
public class DoctorTalkGroupController extends BaseController {
@Api(description = "医生端-讨论组")
public class DoctorDiscussionGroupController extends BaseController {
	// 医生服务类
	@Autowired
	private DoctorService doctorService;

+ 2 - 0
src/main/java/com/yihu/wlyy/web/doctor/family/DoctorFamilyController.java

@ -2,6 +2,7 @@ package com.yihu.wlyy.web.doctor.family;
import com.yihu.wlyy.service.app.family.FamilyService;
import com.yihu.wlyy.web.WeixinBaseController;
import io.swagger.annotations.Api;
import org.json.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
@ -13,6 +14,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
 */
@Controller
@RequestMapping("/doctor/family")
@Api(description = "医生端-家庭查询")
public class DoctorFamilyController extends WeixinBaseController{
    @Autowired
    private FamilyService familyService;

+ 2 - 0
src/main/java/com/yihu/wlyy/web/doctor/followup/DoctorFollowUpController.java

@ -5,6 +5,7 @@ import java.util.Arrays;
import java.util.Date;
import java.util.List;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONArray;
import org.json.JSONObject;
@ -34,6 +35,7 @@ import com.yihu.wlyy.web.BaseController;
 */
@Controller
@RequestMapping(value = "/doctor/followup")
@Api(description = "医生端-随访干预")
public class DoctorFollowUpController extends BaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/doctor/followup/DoctorFollowUpControllerGeorge.java

@ -4,6 +4,7 @@ import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONArray;
import org.json.JSONObject;
@ -35,6 +36,7 @@ import com.yihu.wlyy.web.BaseController;
 */
@Controller
@RequestMapping(value = "/doctor/followup")
@Api(description = "随访干预")
public class DoctorFollowUpControllerGeorge extends BaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/doctor/followup/DoctorFollowUpPlanRemindController.java

@ -1,5 +1,6 @@
package com.yihu.wlyy.web.doctor.followup;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@ -18,6 +19,7 @@ import com.yihu.wlyy.web.BaseController;
 */
@Controller
@RequestMapping(value = "/doctor/followup/remind")
@Api(description = "随访提醒")
public class DoctorFollowUpPlanRemindController extends BaseController {
	@Autowired

+ 1 - 1
src/main/java/com/yihu/wlyy/web/doctor/health/DoctorHealthController.java

@ -26,7 +26,7 @@ import com.yihu.wlyy.web.BaseController;
@Controller
@RequestMapping(value = "/doctor/health_index")
@Api(description = "患者指标接口--医生端")
@Api(description = "医生端-患者指标")
public class DoctorHealthController extends BaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/doctor/health/DoctorHealthEduArticleController.java

@ -6,6 +6,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONArray;
import org.json.JSONObject;
@ -32,6 +33,7 @@ import com.yihu.wlyy.web.BaseController;
 */
@Controller
@RequestMapping(value = "/doctor/health/edu")
@Api(description = "健康教育")
public class DoctorHealthEduArticleController extends BaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/doctor/health/DoctorHealthGuidanceController.java

@ -1,5 +1,6 @@
package com.yihu.wlyy.web.doctor.health;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
@ -20,6 +21,7 @@ import com.yihu.wlyy.web.WeixinBaseController;
 */
@Controller
@RequestMapping(value = "/doctor/health/guidance")
@Api(description = "健康指导")
public class DoctorHealthGuidanceController extends WeixinBaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/doctor/health/DoctorHealthRecordController.java

@ -1,5 +1,6 @@
package com.yihu.wlyy.web.doctor.health;
import io.swagger.annotations.Api;
import org.json.JSONArray;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
@ -22,6 +23,7 @@ import com.yihu.wlyy.web.BaseController;
 */
@Controller
@RequestMapping(value = "/doctor/health_record")
@Api(description = "健康记录")
public class DoctorHealthRecordController extends BaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/doctor/intervene/DoctorInterveneController.java

@ -5,6 +5,7 @@ import java.util.Date;
import java.util.Iterator;
import java.util.List;
import io.swagger.annotations.Api;
import org.json.JSONArray;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
@ -34,6 +35,7 @@ import com.yihu.wlyy.web.BaseController;
 */
@Controller
@RequestMapping(value = "/doctor/intervene")
@Api(description = "医生端-预防与干预")
public class DoctorInterveneController extends BaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/doctor/medical/DoctorMedicalRecordController.java

@ -3,6 +3,7 @@ package com.yihu.wlyy.web.doctor.medical;
import java.util.Date;
import java.util.List;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONArray;
import org.json.JSONObject;
@ -31,6 +32,7 @@ import com.yihu.wlyy.web.BaseController;
 */
@Controller
@RequestMapping(value = "/doctor/medical/record")
@Api(description = "医生端-病历夹")
public class DoctorMedicalRecordController extends BaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/doctor/message/DoctorMessageController.java

@ -1,6 +1,7 @@
package com.yihu.wlyy.web.doctor.message;
import com.yihu.wlyy.entity.message.Message;
import io.swagger.annotations.Api;
import org.json.JSONArray;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
@ -17,6 +18,7 @@ import com.yihu.wlyy.web.BaseController;
@Controller
@RequestMapping(value = "/doctor/message")
@Api(description = "医生端-消息")
public class DoctorMessageController extends BaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/doctor/patient/DoctorPatientGroupController.java

@ -9,6 +9,7 @@ import com.yihu.wlyy.entity.doctor.team.sign.DoctorPatientGroupInfo;
import com.yihu.wlyy.entity.patient.Patient;
import com.yihu.wlyy.entity.patient.SignFamily;
import com.yihu.wlyy.repository.patient.SignFamilyDao;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONArray;
import org.json.JSONObject;
@ -34,6 +35,7 @@ import com.yihu.wlyy.web.BaseController;
 */
@Controller
@RequestMapping(value = "/doctor/patient_group")
@Api(description = "医生端-患者分组管理")
public class DoctorPatientGroupController extends BaseController {
    @Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/doctor/patient/PatientDiseaseController.java

@ -3,6 +3,7 @@ package com.yihu.wlyy.web.doctor.patient;
import com.yihu.wlyy.entity.patient.PatientDisease;
import com.yihu.wlyy.service.app.disease.PatientDiseaseService;
import com.yihu.wlyy.web.BaseController;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.bouncycastle.jce.provider.symmetric.ARC4;
import org.json.JSONArray;
@ -21,6 +22,7 @@ import java.util.List;
 */
@RestController
@RequestMapping(value = "/doctor/patient")
@Api(description = "患者疾病")
public class PatientDiseaseController extends BaseController{
    @Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/doctor/scheduling/DoctorWorkTimeController.java

@ -4,6 +4,7 @@ import com.yihu.wlyy.entity.doctor.profile.Doctor;
import com.yihu.wlyy.service.app.account.DoctorInfoService;
import com.yihu.wlyy.service.app.scheduling.DoctorWorkTimeService;
import com.yihu.wlyy.web.BaseController;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
@ -17,6 +18,7 @@ import org.springframework.web.bind.annotation.ResponseStatus;
 */
@Controller
@RequestMapping(value = "/doctor/work_scheduling")
@Api(description = "医生端-排班时间")
public class DoctorWorkTimeController extends BaseController {
    @Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/doctor/sign/DoctorFamilyContractController.java

@ -5,6 +5,7 @@ import java.util.Map;
import com.yihu.wlyy.entity.message.Message;
import com.yihu.wlyy.service.app.account.PatientInfoService;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONArray;
import org.json.JSONObject;
@ -36,6 +37,7 @@ import com.yihu.wlyy.web.WeixinBaseController;
 */
@Controller
@RequestMapping(value = "/doctor/family_contract")
@Api(description = "医生端-家庭签约")
public class DoctorFamilyContractController extends WeixinBaseController {
    @Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/doctor/sign/DoctorSignController.java

@ -5,6 +5,7 @@ import java.util.Date;
import java.util.List;
import java.util.Map;
import io.swagger.annotations.Api;
import org.json.JSONArray;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
@ -30,6 +31,7 @@ import com.yihu.wlyy.web.BaseController;
@RestController
@RequestMapping(value = "/doctor/sign")
@Api(description = "医生端-签约管理")
public class DoctorSignController extends BaseController {
//	@Autowired

+ 18 - 0
src/main/java/com/yihu/wlyy/web/doctor/team/AdminTeamController.java

@ -2,6 +2,7 @@ package com.yihu.wlyy.web.doctor.team;
import com.yihu.wlyy.entity.doctor.profile.Doctor;
import com.yihu.wlyy.entity.doctor.team.admin.AdminTeam;
import com.yihu.wlyy.entity.patient.Patient;
import com.yihu.wlyy.service.app.account.DoctorInfoService;
import com.yihu.wlyy.service.app.team.AdminTeamService;
import com.yihu.wlyy.web.BaseController;
@ -191,4 +192,21 @@ public class AdminTeamController extends BaseController {
            return error(-1, e.getMessage());
        }
    }
    @RequestMapping(value = "/teams/{team_id}/members/{doctor_code}/signing", method = RequestMethod.GET)
    @ApiOperation(value = "获取团队医生的队内签约患者列表")
    public String getDoctorSignPatients(@PathVariable("team_id") long teamId,
                                        @PathVariable("doctor_code") String doctorCode,
                                        @RequestParam(value = "page", defaultValue = "1", required = false) int page,
                                        @RequestParam(value = "size", defaultValue = "10", required = false) int size) {
        try {
            page = page <= 0 ? 0 : page - 1;
            List<Patient> patients = memberService.getMemberSigningPatients(teamId, doctorCode, page, size);
            return write(200, "OK", "data", new JSONArray(patients));
        } catch (Exception e) {
            error(e);
            return error(-1, e.getMessage());
        }
    }
}

+ 2 - 0
src/main/java/com/yihu/wlyy/web/manager/IndexController.java

@ -1,5 +1,6 @@
package com.yihu.wlyy.web.manager;
import io.swagger.annotations.Api;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@ -8,6 +9,7 @@ import com.yihu.wlyy.web.BaseController;
@Controller
@RequestMapping(value = "/index")
@Api(description = "主页-非API")
public class IndexController extends BaseController {
	
	@RequestMapping(method = RequestMethod.GET)

+ 2 - 0
src/main/java/com/yihu/wlyy/web/patient/account/PatientController.java

@ -12,6 +12,7 @@ import com.yihu.wlyy.util.CommonUtil;
import com.yihu.wlyy.util.DateUtil;
import com.yihu.wlyy.util.EncodesUtil;
import com.yihu.wlyy.web.WeixinBaseController;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONArray;
import org.json.JSONObject;
@ -31,6 +32,7 @@ import java.util.List;
 */
@Controller
@RequestMapping(value = "/patient")
@Api(description = "患者管理")
public class PatientController extends WeixinBaseController {
    @Autowired

+ 2 - 1
src/main/java/com/yihu/wlyy/web/patient/consult/ConsultCommunicationController.java

@ -3,6 +3,7 @@ package com.yihu.wlyy.web.patient.consult;
import java.util.Date;
//import io.swagger.annotations.Api;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONArray;
import org.json.JSONObject;
@ -25,7 +26,7 @@ import com.yihu.wlyy.web.WeixinBaseController;
@Controller
@RequestMapping(value = "/patient/consult/communication")
//@Api(description = "患者端-病友圈查询")
@Api(description = "患者端-病友圈")
public class ConsultCommunicationController extends WeixinBaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/patient/consult/ConsultController.java

@ -8,6 +8,7 @@ import com.yihu.wlyy.entity.doctor.profile.Doctor;
import com.yihu.wlyy.entity.doctor.schedule.WlyyDoctorWorkTime;
import com.yihu.wlyy.entity.doctor.schedule.WlyyDoctorWorkWeek;
import com.yihu.wlyy.service.app.scheduling.DoctorWorkTimeService;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONArray;
import org.json.JSONObject;
@ -37,6 +38,7 @@ import com.yihu.wlyy.web.WeixinBaseController;
 */
@Controller
@RequestMapping(value = "/patient/consult")
@Api(description = "患者端-患者咨询")
public class ConsultController extends WeixinBaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/patient/consult/ConsultPublicController.java

@ -4,6 +4,7 @@ import java.util.Date;
import com.yihu.wlyy.entity.patient.Patient;
import com.yihu.wlyy.service.app.account.PatientInfoService;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONArray;
import org.json.JSONObject;
@ -29,6 +30,7 @@ import com.yihu.wlyy.web.WeixinBaseController;
 */
@Controller
@RequestMapping(value = "/patient/consult/public")
@Api(description = "图文咨询,公共咨询,病友圈")
public class ConsultPublicController extends WeixinBaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/patient/family/PatientFamilyController.java

@ -3,6 +3,7 @@ package com.yihu.wlyy.web.patient.family;
import com.yihu.wlyy.entity.patient.invitation.PatientInvitationLog;
import com.yihu.wlyy.service.app.family.FamilyService;
import com.yihu.wlyy.web.BaseController;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@ -13,6 +14,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
 */
@Controller
@RequestMapping("/patient/family")
@Api(description = "患者家庭")
public class PatientFamilyController extends BaseController {
    @Autowired
    private FamilyService familyService;

+ 2 - 0
src/main/java/com/yihu/wlyy/web/patient/followup/PatientFollowUpController.java

@ -4,6 +4,7 @@ import java.util.Arrays;
import java.util.Date;
import java.util.List;
import io.swagger.annotations.Api;
import org.json.JSONArray;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
@ -31,6 +32,7 @@ import com.yihu.wlyy.web.patient.followup.vo.FollowupPlanVO;
 */
@Controller
@RequestMapping(value = "/patient/followup")
@Api(description = "患者端-随访干预")
public class PatientFollowUpController extends BaseController {
	@Autowired
	private PatientFollowUpService patientFollowUpService;

+ 2 - 0
src/main/java/com/yihu/wlyy/web/patient/health/HealthEduArticleController.java

@ -1,5 +1,6 @@
package com.yihu.wlyy.web.patient.health;
import io.swagger.annotations.Api;
import org.json.JSONArray;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
@ -20,6 +21,7 @@ import com.yihu.wlyy.web.BaseController;
 */
@Controller
@RequestMapping(value = "/patient/health/edu")
@Api(description = "患者端-健康教育")
public class HealthEduArticleController extends BaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/patient/health/PatientHealthGuidanceController.java

@ -1,5 +1,6 @@
package com.yihu.wlyy.web.patient.health;
import io.swagger.annotations.Api;
import org.json.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
@ -16,6 +17,7 @@ import com.yihu.wlyy.web.BaseController;
 */
@Controller
@RequestMapping(value = "/patient/health/guidance")
@Api(description = "患者端-健康指导")
public class PatientHealthGuidanceController extends BaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/patient/health/PatientHealthRecordController.java

@ -3,6 +3,7 @@ package com.yihu.wlyy.web.patient.health;
import java.util.Date;
import java.util.List;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONArray;
import org.json.JSONObject;
@ -33,6 +34,7 @@ import com.yihu.wlyy.web.WeixinBaseController;
 */
@Controller
@RequestMapping(value = "/patient/health_record")
@Api(description = "患者端-健康记录")
public class PatientHealthRecordController extends WeixinBaseController {
	@Autowired

+ 3 - 1
src/main/java/com/yihu/wlyy/web/patient/hosptail/HosptailController.java

@ -6,6 +6,7 @@ import com.yihu.wlyy.entity.address.Town;
import com.yihu.wlyy.service.app.account.DoctorInfoService;
import com.yihu.wlyy.service.app.hospital.HospitalService;
import com.yihu.wlyy.web.BaseController;
import io.swagger.annotations.Api;
import org.json.JSONArray;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
@ -22,7 +23,8 @@ import java.util.List;
 */
@Controller
@RequestMapping(value = "/patient/hosptail")
public class HosptailController extends BaseController {
@Api(description = "医院查询")
public class HospitalController extends BaseController {
    @Autowired
   private HospitalService hospitalService;

+ 3 - 1
src/main/java/com/yihu/wlyy/web/patient/hosptail/HosptailWithOutFilterController.java

@ -3,6 +3,7 @@ package com.yihu.wlyy.web.patient.hosptail;
import com.yihu.wlyy.entity.doctor.profile.Doctor;
import com.yihu.wlyy.service.app.account.DoctorInfoService;
import com.yihu.wlyy.web.BaseController;
import io.swagger.annotations.Api;
import org.json.JSONArray;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
@ -17,7 +18,8 @@ import org.springframework.web.bind.annotation.ResponseBody;
 */
@Controller
@RequestMapping(value = "/hosptail")
public class HosptailWithOutFilterController extends BaseController {
@Api(description = "医院查询-无过滤")
public class HospitalWithoutFilterController extends BaseController {
    @Autowired
    private DoctorInfoService doctorInfoService;
    /**

+ 2 - 0
src/main/java/com/yihu/wlyy/web/patient/intervene/PatientInterveneController.java

@ -2,6 +2,7 @@ package com.yihu.wlyy.web.patient.intervene;
import java.util.List;
import io.swagger.annotations.Api;
import org.json.JSONArray;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
@ -24,6 +25,7 @@ import com.yihu.wlyy.web.BaseController;
 */
@Controller
@RequestMapping(value = "/patient/intervene")
@Api(description = "患者端-干预控制")
public class PatientInterveneController extends BaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/patient/medical/PatientMedicalRecordController.java

@ -2,6 +2,7 @@ package com.yihu.wlyy.web.patient.medical;
import java.util.List;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONArray;
import org.json.JSONObject;
@ -24,6 +25,7 @@ import com.yihu.wlyy.web.BaseController;
 */
@Controller
@RequestMapping(value = "/patient/medical/record")
@Api(description = "患者端-病历夹")
public class PatientMedicalRecordController extends BaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/patient/scheduling/SchedulingController.java

@ -5,6 +5,7 @@ import java.util.List;
import com.yihu.wlyy.entity.patient.SignFamily;
import com.yihu.wlyy.service.app.sign.FamilyContractService;
import io.swagger.annotations.Api;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
@ -23,6 +24,7 @@ import com.yihu.wlyy.web.BaseController;
 */
@Controller
@RequestMapping(value = "patient/scheduling")
@Api(description = "医生排班")
public class SchedulingController extends BaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/patient/sign/FamilyContractController.java

@ -16,6 +16,7 @@ import com.yihu.wlyy.util.IdcardValidator;
import com.yihu.wlyy.util.RSAUtils;
import com.yihu.wlyy.web.BaseController;
import com.yihu.wlyy.entity.patient.invitation.PatientInvitationLog;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONArray;
import org.json.JSONObject;
@ -36,6 +37,7 @@ import java.util.List;
 */
@Controller
@RequestMapping(value = "/patient/family_contract")
@Api(description = "患者端-家庭签约")
public class FamilyContractController extends BaseController {
	@Autowired

+ 3 - 1
src/main/java/com/yihu/wlyy/web/patient/sign/FamilyWithOutfliterController.java

@ -2,6 +2,7 @@ package com.yihu.wlyy.web.patient.sign;
import com.yihu.wlyy.service.app.sign.FamilyContractService;
import com.yihu.wlyy.web.BaseController;
import io.swagger.annotations.Api;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
@ -13,7 +14,8 @@ import org.springframework.web.bind.annotation.ResponseBody;
 */
@Controller
@RequestMapping(value = "/family_contract/homepage")
public class FamilyWithOutfliterController extends BaseController {
@Api(description = "家庭查询-无过滤")
public class FamilyWithoutFilterController extends BaseController {
    @Autowired
    private FamilyContractService familyContractService;

+ 2 - 0
src/main/java/com/yihu/wlyy/web/patient/sign/PatientSignController.java

@ -4,6 +4,7 @@ import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONArray;
import org.json.JSONObject;
@ -19,6 +20,7 @@ import com.yihu.wlyy.web.BaseController;
@RequestMapping(value = "/patient/sign")
@RestController
@Api(description = "患者端-签约管理")
public class PatientSignController extends BaseController {
	@Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/quota/JobController.java

@ -3,6 +3,7 @@ package com.yihu.wlyy.web.quota;
import com.yihu.wlyy.job.*;
import com.yihu.wlyy.service.quota.JobService;
import com.yihu.wlyy.web.BaseController;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@ -14,6 +15,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
 */
@Controller
@RequestMapping("/job")
@Api(description = "后台-任务控制")
public class JobController extends BaseController {
    @Autowired
    private JobService jobService;

+ 2 - 0
src/main/java/com/yihu/wlyy/web/statistic/StatisticsController.java

@ -2,6 +2,7 @@ package com.yihu.wlyy.web.statistic;
import com.yihu.wlyy.service.app.statistics.StatisticsService;
import com.yihu.wlyy.web.BaseController;
import io.swagger.annotations.Api;
import org.json.JSONArray;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
@ -14,6 +15,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
 */
@Controller
@RequestMapping(value = "/statistics")
@Api(description = "统计")
public class StatisticsController extends BaseController {
    @Autowired

+ 2 - 0
src/main/java/com/yihu/wlyy/web/wx/HealthServiceController.java

@ -4,6 +4,7 @@ import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.Api;
import org.json.JSONException;
import org.json.JSONObject;
import org.springframework.stereotype.Controller;
@ -15,6 +16,7 @@ import com.yihu.wlyy.web.WeixinBaseController;
@Controller
@RequestMapping("/wx/health/service")
@Api(description = "患者端-健康服务在线咨询")
public class HealthServiceController extends WeixinBaseController {
	/**

+ 2 - 0
src/main/java/com/yihu/wlyy/web/wx/MyInfoController.java

@ -4,6 +4,7 @@ import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.Api;
import org.json.JSONException;
import org.json.JSONObject;
import org.springframework.stereotype.Controller;
@ -15,6 +16,7 @@ import com.yihu.wlyy.web.WeixinBaseController;
@Controller
@RequestMapping("/wx/my/info")
@Api(description = "患者端-个人信息")
public class MyInfoController extends WeixinBaseController {
	/**

+ 2 - 0
src/main/java/com/yihu/wlyy/web/wx/SelfManagementController.java

@ -4,6 +4,7 @@ import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONException;
import org.json.JSONObject;
@ -20,6 +21,7 @@ import com.yihu.wlyy.web.WeixinBaseController;
@Controller
@RequestMapping("/wx/self/management")
@Api(description = "自我管理")
public class SelfManagementController extends WeixinBaseController {
    @Autowired

+ 4 - 2
src/main/java/com/yihu/wlyy/web/wx/WeiXinCoreController.java

@ -4,6 +4,7 @@ import com.yihu.wlyy.service.weixin.WeiXinCoreService;
import com.yihu.wlyy.util.HttpUtil;
import com.yihu.wlyy.util.SystemConf;
import com.yihu.wlyy.web.WeixinBaseController;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
@ -24,7 +25,8 @@ import java.util.Arrays;
 */
@Controller
@RequestMapping(value = "/weixin")
public class WeiXinCoreController extends WeixinBaseController {
@Api(description = "微信")
public class WechatCoreController extends WeixinBaseController {
    @Autowired
    private WeiXinCoreService weiXinCoreService;
@ -149,7 +151,7 @@ public class WeiXinCoreController extends WeixinBaseController {
    @ResponseBody
    public String createMenuTest(){
        try{
            String filePath = WeiXinCoreController.class.getResource("/").getPath() +
            String filePath = WechatCoreController.class.getResource("/").getPath() +
                    File.separator + "weixin_menu.txt";
            String url = " https://api.weixin.qq.com/cgi-bin/menu/create?access_token=" + getAccessToken();
            // 读取微信菜单配置文件