|
|
@@ -10,6 +10,7 @@ import jakarta.servlet.http.HttpServletResponse;
|
|
|
import jakarta.validation.constraints.*;
|
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
+import org.dromara.backstage.basics.domain.bo.PtRoomBatchSetBo;
|
|
|
import org.dromara.backstage.basics.domain.vo.PtRoomTempImportVo;
|
|
|
import org.dromara.backstage.basics.listener.PtRoomImportListener;
|
|
|
import org.dromara.common.excel.core.ExcelResult;
|
|
|
@@ -81,7 +82,7 @@ public class PtRoomController extends BaseController {
|
|
|
* 导出房间定义的导入模板
|
|
|
*/
|
|
|
@SaCheckPermission("room:ptRoom:import")
|
|
|
- @Log(title = "房间定义的导入模板", businessType = BusinessType.IMPORT)
|
|
|
+ @Log(title = "房间定义的导入", businessType = BusinessType.IMPORT)
|
|
|
@PostMapping(value="/importData",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
|
|
public R<Void> importData(@RequestPart("file") MultipartFile file, boolean updateSupport) throws Exception{
|
|
|
ExcelResult<PtRoomTempImportVo> rs = ExcelUtil.importExcel(file.getInputStream(), PtRoomTempImportVo.class, new PtRoomImportListener(updateSupport));
|
|
|
@@ -112,6 +113,20 @@ public class PtRoomController extends BaseController {
|
|
|
return toAjax(ptRoomService.insertByBo(bo));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 批量设置房间类型
|
|
|
+ */
|
|
|
+ @SaCheckPermission("room:ptRoom:set")
|
|
|
+ @Log(title = "批量设置房间类型", businessType = BusinessType.OTHER)
|
|
|
+ @RepeatSubmit()
|
|
|
+ @PostMapping("/batchSet")
|
|
|
+ public R<Void> batchSet(@Validated @RequestBody PtRoomBatchSetBo bo) {
|
|
|
+ return toAjax(ptRoomService.batchSet(bo));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 修改房间定义
|
|
|
*/
|