|
@@ -12,6 +12,8 @@ import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.transaction.annotation.Propagation;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
@@ -129,6 +131,7 @@ public class PatientController extends LifeCenterController {
|
|
|
}
|
|
|
|
|
|
@RequestMapping("/new/insert")
|
|
|
+ @Transactional(propagation=Propagation.REQUIRED)
|
|
|
public String patientNewInsert(
|
|
|
@ModelAttribute("dto") final PatientDTO dto,
|
|
|
HttpServletRequest request,HttpServletResponse response ) throws Exception {
|
|
@@ -243,6 +246,7 @@ public class PatientController extends LifeCenterController {
|
|
|
}
|
|
|
|
|
|
@RequestMapping("/edit/update")
|
|
|
+ @Transactional(propagation=Propagation.REQUIRED)
|
|
|
public String patientEditUpdate(
|
|
|
@ModelAttribute("dto") final PatientDTO dto,
|
|
|
HttpServletRequest request,HttpServletResponse response ) throws Exception {
|
|
@@ -316,7 +320,6 @@ public class PatientController extends LifeCenterController {
|
|
|
String message = "";
|
|
|
String token = "";
|
|
|
for(String key : object.keySet()) {
|
|
|
- logger.error("key -- > " + key);
|
|
|
if (key.equals("errorCode")) {
|
|
|
message = object.getString("message");
|
|
|
} else if (key.equals("token")){
|