|
@@ -16,6 +16,7 @@ import com.diagbot.vo.IdVO;
|
|
|
import io.swagger.annotations.Api;
|
|
|
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;
|
|
@@ -64,6 +65,7 @@ public class DeptConfigController {
|
|
|
@ApiOperation(value = "保存或修改映射关系[by:zhaops]", notes = "")
|
|
|
@PostMapping("/saveOrUpdateRecord")
|
|
|
@SysLogger("saveOrUpdateRecord")
|
|
|
+ @Transactional
|
|
|
public RespDTO<Boolean> saveOrUpdateRecord(@RequestBody @Valid DeptConfig deptConfig) {
|
|
|
Boolean data = deptConfigFacade.saveOrUpdateRecord(deptConfig);
|
|
|
return RespDTO.onSuc(data);
|
|
@@ -78,6 +80,7 @@ public class DeptConfigController {
|
|
|
@ApiOperation(value = "批量保存或修改映射关系[by:zhaops]", notes = "")
|
|
|
@PostMapping("/saveOrUpdateRecords")
|
|
|
@SysLogger("saveOrUpdateRecords")
|
|
|
+ @Transactional
|
|
|
public RespDTO<Boolean> saveOrUpdateRecords(@RequestBody @Valid DeptConfigListVO deptConfigListVO) {
|
|
|
Boolean data = deptConfigFacade.saveOrUpdateRecords(deptConfigListVO);
|
|
|
return RespDTO.onSuc(data);
|
|
@@ -92,6 +95,7 @@ public class DeptConfigController {
|
|
|
@ApiOperation(value = "删除映射关系[by:zhaops]", notes = "")
|
|
|
@PostMapping("/deleteRecord")
|
|
|
@SysLogger("deleteRecord")
|
|
|
+ @Transactional
|
|
|
public RespDTO<Boolean> deleteRecord(@RequestBody @Valid IdVO idVO) {
|
|
|
Boolean data = deptConfigFacade.deleteRecord(idVO);
|
|
|
return RespDTO.onSuc(data);
|
|
@@ -106,6 +110,7 @@ public class DeptConfigController {
|
|
|
@ApiOperation(value = "批量删除映射关系[by:zhaops]", notes = "")
|
|
|
@PostMapping("/deleteRecords")
|
|
|
@SysLogger("deleteRecords")
|
|
|
+ @Transactional
|
|
|
public RespDTO<Boolean> deleteRecords(@RequestBody @Valid IdListVO idListVO) {
|
|
|
Boolean data = deptConfigFacade.deleteRecords(idListVO);
|
|
|
return RespDTO.onSuc(data);
|
|
@@ -136,6 +141,7 @@ public class DeptConfigController {
|
|
|
notes = "")
|
|
|
@PostMapping("/importExcel")
|
|
|
@SysLogger("importExcel")
|
|
|
+ @Transactional
|
|
|
public void importExcel(@RequestParam("file") MultipartFile file, @RequestBody @Valid HospitalIdVO hospitalIdVO) {
|
|
|
deptConfigFacade.importExcel(file, hospitalIdVO);
|
|
|
}
|
|
@@ -168,4 +174,4 @@ public class DeptConfigController {
|
|
|
IPage<HosRelationNumDTO> data = deptConfigFacade.getRelationNumPage(hosRelationNumPageVO);
|
|
|
return RespDTO.onSuc(data);
|
|
|
}
|
|
|
-}
|
|
|
+}
|