|
@ -7,12 +7,15 @@ import com.yihu.wlyy.entity.SignFamily;
|
|
import com.yihu.wlyy.entity.WlyyAdminTeamMember;
|
|
import com.yihu.wlyy.entity.WlyyAdminTeamMember;
|
|
import com.yihu.wlyy.service.manager.sign.SignFamilyService;
|
|
import com.yihu.wlyy.service.manager.sign.SignFamilyService;
|
|
import com.yihu.wlyy.service.manager.team.WlyyAdminTeamMemberService;
|
|
import com.yihu.wlyy.service.manager.team.WlyyAdminTeamMemberService;
|
|
import com.yihu.wlyy.service.manager.team.WlyyAdminTeamService;
|
|
|
|
|
|
import com.yihu.wlyy.util.HttpClientUtil;
|
|
import io.swagger.annotations.ApiParam;
|
|
import io.swagger.annotations.ApiParam;
|
|
import jxl.Workbook;
|
|
import jxl.Workbook;
|
|
import jxl.write.*;
|
|
import jxl.write.*;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
import org.apache.http.NameValuePair;
|
|
|
|
import org.apache.http.message.BasicNameValuePair;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
@ -30,11 +33,15 @@ import java.util.Map;
|
|
@Controller
|
|
@Controller
|
|
@RequestMapping(value="admin/sign")
|
|
@RequestMapping(value="admin/sign")
|
|
public class SignFamilyController extends BaseController {
|
|
public class SignFamilyController extends BaseController {
|
|
|
|
|
|
|
|
@Value("${reservation.zyurl}")
|
|
|
|
private String baseUrl;
|
|
@Autowired
|
|
@Autowired
|
|
private SignFamilyService signFamilyService;
|
|
private SignFamilyService signFamilyService;
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private WlyyAdminTeamMemberService teamMemberService;
|
|
private WlyyAdminTeamMemberService teamMemberService;
|
|
|
|
@Autowired
|
|
|
|
private HttpClientUtil httpClientUtil;
|
|
|
|
|
|
//签约居民管理*******************************
|
|
//签约居民管理*******************************
|
|
@RequestMapping(value = "initial", method = RequestMethod.GET)
|
|
@RequestMapping(value = "initial", method = RequestMethod.GET)
|
|
@ -232,4 +239,26 @@ public class SignFamilyController extends BaseController {
|
|
}
|
|
}
|
|
ws.addCell(label);
|
|
ws.addCell(label);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@RequestMapping(value = "reservation/{patient}",method = RequestMethod.GET)
|
|
|
|
public String infoReservation(@PathVariable(value = "patient") String patient){
|
|
|
|
return "sign/sign_reservation_modify";
|
|
|
|
}
|
|
|
|
|
|
|
|
@RequestMapping(value = "reservationInfo/{patient}")
|
|
|
|
@ResponseBody
|
|
|
|
public String getReservation(@PathVariable(value = "patient")String patient){
|
|
|
|
try {
|
|
|
|
String url = baseUrl + "/third/guahao/GetRegList";
|
|
|
|
patient = "275f6e8c54874595bd92d8ac255535c4";
|
|
|
|
List<NameValuePair> params = new ArrayList<>();
|
|
|
|
params.add(new BasicNameValuePair("patient", patient));
|
|
|
|
String response = httpClientUtil.post(url, params, "UTF-8");
|
|
|
|
return write(200,"success","data",response);
|
|
|
|
}catch (Exception e){
|
|
|
|
error(e);
|
|
|
|
return error(-1,"操作失败!");
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
}
|