|
@@ -1,26 +1,23 @@
|
|
package com.diagbot.web;
|
|
package com.diagbot.web;
|
|
|
|
|
|
|
|
|
|
-import java.util.List;
|
|
|
|
-
|
|
|
|
-import javax.validation.Valid;
|
|
|
|
-
|
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
-import org.springframework.transaction.annotation.Transactional;
|
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
-
|
|
|
|
import com.diagbot.annotation.SysLogger;
|
|
import com.diagbot.annotation.SysLogger;
|
|
import com.diagbot.dto.DoctorPageModeDTO;
|
|
import com.diagbot.dto.DoctorPageModeDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.facade.DoctorPageModeFacade;
|
|
import com.diagbot.facade.DoctorPageModeFacade;
|
|
import com.diagbot.vo.DoctorIdVO;
|
|
import com.diagbot.vo.DoctorIdVO;
|
|
import com.diagbot.vo.DoctorPageModeVO;
|
|
import com.diagbot.vo.DoctorPageModeVO;
|
|
-
|
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
+
|
|
|
|
+import javax.validation.Valid;
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
* <p>
|
|
* <p>
|
|
@@ -32,7 +29,6 @@ import io.swagger.annotations.ApiOperation;
|
|
*/
|
|
*/
|
|
|
|
|
|
/**
|
|
/**
|
|
- *
|
|
|
|
* @author wangfeng
|
|
* @author wangfeng
|
|
* @Description: 医生页面结构设置(文本和半结构) 前端控制器
|
|
* @Description: 医生页面结构设置(文本和半结构) 前端控制器
|
|
* @date 2018年11月20日 下午2:50:40
|
|
* @date 2018年11月20日 下午2:50:40
|
|
@@ -51,9 +47,7 @@ public class DoctorPageModeController {
|
|
@SysLogger("saveDoctorPageModes")
|
|
@SysLogger("saveDoctorPageModes")
|
|
@Transactional
|
|
@Transactional
|
|
public RespDTO<Boolean> saveDoctorPageModes(@Valid @RequestBody DoctorPageModeVO doctorPageModeVO) {
|
|
public RespDTO<Boolean> saveDoctorPageModes(@Valid @RequestBody DoctorPageModeVO doctorPageModeVO) {
|
|
-
|
|
|
|
boolean res = doctorPageModeFacade.saveDoctorPageMode(doctorPageModeVO);
|
|
boolean res = doctorPageModeFacade.saveDoctorPageMode(doctorPageModeVO);
|
|
-
|
|
|
|
return RespDTO.onSuc(res);
|
|
return RespDTO.onSuc(res);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -61,9 +55,7 @@ public class DoctorPageModeController {
|
|
@PostMapping("/getDoctorPageModes")
|
|
@PostMapping("/getDoctorPageModes")
|
|
@SysLogger("getDoctorPageModes")
|
|
@SysLogger("getDoctorPageModes")
|
|
public RespDTO<List<DoctorPageModeDTO>> getDoctorPageModes(@Valid @RequestBody DoctorIdVO doctorIdVO) {
|
|
public RespDTO<List<DoctorPageModeDTO>> getDoctorPageModes(@Valid @RequestBody DoctorIdVO doctorIdVO) {
|
|
-
|
|
|
|
- List<DoctorPageModeDTO> doctorPageModeData = doctorPageModeFacade.getDoctorPageMode(doctorIdVO);
|
|
|
|
-
|
|
|
|
|
|
+ List<DoctorPageModeDTO> doctorPageModeData = doctorPageModeFacade.getDoctorPageMode(doctorIdVO);
|
|
return RespDTO.onSuc(doctorPageModeData);
|
|
return RespDTO.onSuc(doctorPageModeData);
|
|
}
|
|
}
|
|
}
|
|
}
|