DataHandlingController.java 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. package com.yihu.wlyy.statistics.data;
  2. import com.yihu.wlyy.statistics.controller.BaseController;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.http.MediaType;
  5. import org.springframework.stereotype.Controller;
  6. import org.springframework.web.bind.annotation.RequestMapping;
  7. import org.springframework.web.bind.annotation.ResponseBody;
  8. /**
  9. * Created by Administrator on 2016.10.08.
  10. * 修改历史数据处理控制器
  11. */
  12. @Controller
  13. @RequestMapping(value = "/dataHandling", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
  14. public class DataHandlingController extends BaseController {
  15. @Autowired
  16. private DataHandingService dataHandingService;
  17. /**
  18. * 生成医生和患者表中有身份的用户的密码
  19. * @return
  20. */
  21. @RequestMapping(value = "producePatientAndDoctorPassword")
  22. @ResponseBody
  23. public String producePatientAndDoctorPasswor() {
  24. try {
  25. return write(200, dataHandingService.producePatientAndDoctorPassword());
  26. } catch (Exception e) {
  27. error(e);
  28. return error(-1, e.getMessage());
  29. }
  30. }
  31. }