|
@@ -1,19 +1,34 @@
|
|
package com.lemon.lifecenter.controller;
|
|
package com.lemon.lifecenter.controller;
|
|
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
|
+import java.util.List;
|
|
|
|
+
|
|
|
|
+import org.slf4j.Logger;
|
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
import com.lemon.lifecenter.common.LifeCenterController;
|
|
import com.lemon.lifecenter.common.LifeCenterController;
|
|
|
|
+import com.lemon.lifecenter.dto.PatientDTO;
|
|
|
|
+import com.lemon.lifecenter.service.PatientService;
|
|
|
|
|
|
@Controller
|
|
@Controller
|
|
@RequestMapping("/patient")
|
|
@RequestMapping("/patient")
|
|
public class PatientController extends LifeCenterController {
|
|
public class PatientController extends LifeCenterController {
|
|
|
|
|
|
|
|
+ private final Logger logger = LoggerFactory.getLogger(this.getClass());
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private PatientService patientService;
|
|
@RequestMapping("/list")
|
|
@RequestMapping("/list")
|
|
public ModelAndView patientList() {
|
|
public ModelAndView patientList() {
|
|
|
|
+ PatientDTO dto = new PatientDTO();
|
|
|
|
+ List<PatientDTO> result = patientService.selectPatietList(dto);
|
|
|
|
+ logger.debug("result -- > " + result);
|
|
ModelAndView mv = setMV( "patient/list" );
|
|
ModelAndView mv = setMV( "patient/list" );
|
|
-
|
|
|
|
|
|
+ mv.addObject("jksong", result);
|
|
return mv;
|
|
return mv;
|
|
}
|
|
}
|
|
|
|
|