浏览代码

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

chenweida 8 年之前
父节点
当前提交
a5ccdef651
共有 1 个文件被更改,包括 7 次插入5 次删除
  1. 7 5
      src/main/java/com/yihu/wlyy/service/app/sign/FamilyContractService.java

+ 7 - 5
src/main/java/com/yihu/wlyy/service/app/sign/FamilyContractService.java

@ -1683,18 +1683,20 @@ public class FamilyContractService extends BaseService {
     */
     */
    public JSONObject updateSignInfo(String patient,String healthDoctor,String expensesType){
    public JSONObject updateSignInfo(String patient,String healthDoctor,String expensesType){
        JSONObject result = new JSONObject();
        JSONObject result = new JSONObject();
        Doctor doctor = doctorDao.findByCode(healthDoctor);
        SignFamily signFamily = signFamilyDao.findByjiatingPatientYes(patient);
        SignFamily signFamily = signFamilyDao.findByjiatingPatientYes(patient);
        if(signFamily == null){
        if(signFamily == null){
            result.put("status",-1);
            result.put("status",-1);
            result.put("msg","居民不存在家庭签约");
            result.put("msg","居民不存在家庭签约");
        }
        }
        if(doctor == null){
            result.put("status",-2);
            result.put("msg","医生不存在");
        }
        if(StringUtils.isNotEmpty(healthDoctor)) {
        if(StringUtils.isNotEmpty(healthDoctor)) {
            Doctor doctor = doctorDao.findByCode(healthDoctor);
            if(doctor == null){
                result.put("status",-2);
                result.put("msg","医生不存在");
            }
            if (StringUtils.isNotEmpty(signFamily.getDoctorHealth())) {
            if (StringUtils.isNotEmpty(signFamily.getDoctorHealth())) {
                // 取消原有健康管理师的家庭签约分组,并新增分组
                // 取消原有健康管理师的家庭签约分组,并新增分组
                List<DoctorPatientGroupInfo> groups = doctorPatientGroupInfoDao.findGroupInfoByPatientAndDoctor(signFamily.getDoctorHealth(), patient);
                List<DoctorPatientGroupInfo> groups = doctorPatientGroupInfoDao.findGroupInfoByPatientAndDoctor(signFamily.getDoctorHealth(), patient);