DataHandlingController.java 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package com.yihu.wlyy.web.data;
  2. import com.yihu.wlyy.entity.organization.HospitalDept;
  3. import com.yihu.wlyy.service.app.consult.ConsultTeamService;
  4. import com.yihu.wlyy.service.app.sign.FamilyContractService;
  5. import com.yihu.wlyy.web.BaseController;
  6. import org.json.JSONArray;
  7. import org.json.JSONObject;
  8. import org.springframework.beans.factory.annotation.Autowired;
  9. import org.springframework.data.domain.Page;
  10. import org.springframework.stereotype.Controller;
  11. import org.springframework.web.bind.annotation.RequestMapping;
  12. import org.springframework.web.bind.annotation.RequestParam;
  13. import org.springframework.web.bind.annotation.ResponseBody;
  14. /**
  15. * Created by Administrator on 2016.10.08.
  16. * 修改历史数据处理控制器
  17. */
  18. @Controller
  19. @RequestMapping(value = "/dataHandling")
  20. public class DataHandlingController extends BaseController {
  21. @Autowired
  22. private FamilyContractService familyContractService;
  23. @Autowired
  24. private ConsultTeamService consultTeamService;
  25. /**
  26. * 生成签约表中的行政团队的code
  27. */
  28. @RequestMapping(value = "produceSignAdminTeamCode")
  29. @ResponseBody
  30. public String produceSignAdminTeamCode() {
  31. try {
  32. return write(200, familyContractService.produceSignAdminTeamCode());
  33. } catch (Exception e) {
  34. error(e);
  35. return error(-1, e.getMessage());
  36. }
  37. }
  38. /**
  39. * 生成咨询表中中的行政团队的code
  40. * @return
  41. */
  42. @RequestMapping(value = "produceConsultAdminTeamCode")
  43. @ResponseBody
  44. public String produceConsultAdminTeamCode() {
  45. try {
  46. return write(200, consultTeamService.produceConsultAdminTeamCode());
  47. } catch (Exception e) {
  48. error(e);
  49. return error(-1, e.getMessage());
  50. }
  51. }
  52. }