|
@@ -13,6 +13,7 @@ import com.diagbot.vo.OperationConfigPageVO;
|
|
|
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;
|
|
@@ -62,6 +63,7 @@ public class OperationConfigController {
|
|
|
@ApiOperation(value = "保存或修改映射关系[by:zhaops]", notes = "")
|
|
|
@PostMapping("/saveOrUpdateRecord")
|
|
|
@SysLogger("saveOrUpdateRecord")
|
|
|
+ @Transactional
|
|
|
public RespDTO<Boolean> saveOrUpdateRecord(@RequestBody @Valid OperationConfig operationConfig) {
|
|
|
Boolean data = operationConfigFacade.saveOrUpdateRecord(operationConfig);
|
|
|
return RespDTO.onSuc(data);
|
|
@@ -76,6 +78,7 @@ public class OperationConfigController {
|
|
|
@ApiOperation(value = "批量保存或修改映射关系[by:zhaops]", notes = "")
|
|
|
@PostMapping("/saveOrUpdateRecords")
|
|
|
@SysLogger("saveOrUpdateRecords")
|
|
|
+ @Transactional
|
|
|
public RespDTO<Boolean> saveOrUpdateRecords(@RequestBody @Valid OperationConfigListVO operationConfigListVO) {
|
|
|
Boolean data = operationConfigFacade.saveOrUpdateRecords(operationConfigListVO);
|
|
|
return RespDTO.onSuc(data);
|
|
@@ -90,6 +93,7 @@ public class OperationConfigController {
|
|
|
@ApiOperation(value = "删除映射关系[by:zhaops]", notes = "")
|
|
|
@PostMapping("/deleteRecord")
|
|
|
@SysLogger("deleteRecord")
|
|
|
+ @Transactional
|
|
|
public RespDTO<Boolean> deleteRecord(@RequestBody @Valid IdVO idVO) {
|
|
|
Boolean data = operationConfigFacade.deleteRecord(idVO);
|
|
|
return RespDTO.onSuc(data);
|
|
@@ -104,6 +108,7 @@ public class OperationConfigController {
|
|
|
@ApiOperation(value = "批量删除映射关系[by:zhaops]", notes = "")
|
|
|
@PostMapping("/deleteRecords")
|
|
|
@SysLogger("deleteRecords")
|
|
|
+ @Transactional
|
|
|
public RespDTO<Boolean> deleteRecords(@RequestBody @Valid IdListVO idListVO) {
|
|
|
Boolean data = operationConfigFacade.deleteRecords(idListVO);
|
|
|
return RespDTO.onSuc(data);
|
|
@@ -133,6 +138,7 @@ public class OperationConfigController {
|
|
|
notes = "")
|
|
|
@PostMapping("/importExcel")
|
|
|
@SysLogger("importExcel")
|
|
|
+ @Transactional
|
|
|
public void importExcel(@RequestParam("file") MultipartFile file) {
|
|
|
operationConfigFacade.importExcel(file);
|
|
|
}
|