Browse Source

Merge branch 'dev' of linzhuo/patient-co-management into dev

linzhuo 8 years ago
parent
commit
ea5a88ca7b

+ 8 - 3
patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/consult/ConsultTeamService.java

@ -675,7 +675,9 @@ public class ConsultTeamService extends ConsultService {
            } else {
            } else {
                users.put(doctorTeamMemberHealthy.getMemberCode(), 0);
                users.put(doctorTeamMemberHealthy.getMemberCode(), 0);
                if (doctorTeamMember != null) {
                if (doctorTeamMember != null) {
                    users.put(doctorTeamMember.getMemberCode(), 1);
                    if(users.get(doctorTeamMember.getMemberCode())==null){
                        users.put(doctorTeamMember.getMemberCode(), 1);
                    }
                }
                }
                ct.setDoctor(doctorTeamMemberHealthy.getMemberCode());
                ct.setDoctor(doctorTeamMemberHealthy.getMemberCode());
            }
            }
@ -701,7 +703,10 @@ public class ConsultTeamService extends ConsultService {
            } else {
            } else {
                users.put(doctorTeamMemberHealthy.getMemberCode(), 0);
                users.put(doctorTeamMemberHealthy.getMemberCode(), 0);
                if (doctorTeamMember != null) {
                if (doctorTeamMember != null) {
                    users.put(doctorTeamMember.getMemberCode(), 1);
                    //全健同一个人导致会话成员状态问题处理
                    if(users.get(doctorTeamMember.getMemberCode())==null){
                        users.put(doctorTeamMember.getMemberCode(), 1);
                    }
                }
                }
                ct.setDoctor(doctorTeamMemberHealthy.getMemberCode());
                ct.setDoctor(doctorTeamMemberHealthy.getMemberCode());
            }
            }
@ -737,7 +742,7 @@ public class ConsultTeamService extends ConsultService {
        // 添加医生咨询日志
        // 添加医生咨询日志
        String content = addLogs(ct);
        String content = addLogs(ct);
        //推送给IM去创建议题,取得成员消息
        //推送给IM去创建议题,取得成员消息
        JSONObject messages = ImUtill.getCreateTopicMessage(patient, tempPatient.getName(), consult.getTitle(), consult.getSymptoms(), consult.getImages());
        JSONObject messages = ImUtill.getCreateTopicMessage(patient, tempPatient.getName(), consult.getTitle(), "咨询问题:"+consult.getSymptoms(), consult.getImages());
        users.put(patient, 0);
        users.put(patient, 0);
        JSONObject obj = ImUtill.createTopics(patient + "_consult_" + ct.getType(), consult.getCode(), tempPatient.getName() + " " + IdCardUtil.getAgeForIdcard(tempPatient.getIdcard()), users, messages, "1");
        JSONObject obj = ImUtill.createTopics(patient + "_consult_" + ct.getType(), consult.getCode(), tempPatient.getName() + " " + IdCardUtil.getAgeForIdcard(tempPatient.getIdcard()), users, messages, "1");
        if (obj == null) {
        if (obj == null) {

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

@ -57,6 +57,7 @@ public class FamilyMemberService extends BaseService {
        relations.put(4, "老婆");
        relations.put(4, "老婆");
        relations.put(5, "儿子");
        relations.put(5, "儿子");
        relations.put(6, "女儿");
        relations.put(6, "女儿");
        relations.put(7, "未知");
    }
    }
    /**
    /**

+ 3 - 2
patient-co-wlyy/src/main/java/com/yihu/wlyy/web/patient/health/FoodCompController.java

@ -1,4 +1,4 @@
package com.yihu.wlyy.web.patient.health;
package com.yihu.wlyy.web.common.health;
import com.yihu.wlyy.entity.education.FoodComp;
import com.yihu.wlyy.entity.education.FoodComp;
import com.yihu.wlyy.service.app.health.FoodCompService;
import com.yihu.wlyy.service.app.health.FoodCompService;
@ -12,13 +12,14 @@ import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.List;
import java.util.List;
/**
/**
 * 患者端:食物热量查询
 * 患者端:食物热量查询
 * @author George
 * @author George
 *
 *
 */
 */
@Controller
@Controller
@RequestMapping(value = "/patient/health/food", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
@RequestMapping(value = "/common/health/food", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
@Api(description = "患者端-食物热量查询")
@Api(description = "患者端-食物热量查询")
public class FoodCompController extends BaseController {
public class FoodCompController extends BaseController {

+ 11 - 5
patient-co-wlyy/src/main/resources/weixin_menu.txt

@ -22,7 +22,13 @@
            "type":"view",
            "type":"view",
            "name":"健康文章",
            "name":"健康文章",
            "url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=appId&redirect_uri=server_url%2fwx%2fhtml%2fjkjy%2fhtml%2farticle_list.html&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect"
            "url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=appId&redirect_uri=server_url%2fwx%2fhtml%2fjkjy%2fhtml%2farticle_list.html&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect"
          },
          {
               "type":"view",
               "name":"热量查询",
               "url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=appId&redirect_uri=server_url%2fwx%2fhtml%2frlcx%2fhtml%2fserach-index.html&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect"
          }
          }
	  ]
	  ]
   },
   },
@ -49,11 +55,11 @@
			"name":"就诊记录",
			"name":"就诊记录",
			"url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=appId&redirect_uri=server_url%2fwx%2fhtml%2fjkda%2fhtml%2fjiuzhenjilu.html&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect"
			"url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=appId&redirect_uri=server_url%2fwx%2fhtml%2fjkda%2fhtml%2fjiuzhenjilu.html&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect"
		},
		},
		{
			"type":"view",
			"name":"检查检验",
			"url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=appId&redirect_uri=server_url%2fwx%2fhtml%2fjkda%2fhtml%2fjianchajianyan.html&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect"
		}
        {
            "type":"view",
            "name":"检查检验",
            "url":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=appId&redirect_uri=server_url%2fwx%2fhtml%2fjkda%2fhtml%2fjianchajianyan.html&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect"
        }
	  ]
	  ]
   },
   },
   {
   {