|
@@ -52,7 +52,7 @@ public class BizInspectionChamberController extends BaseController
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(BizInspectionChamber bizInspectionChamber) throws NoSuchFieldException, IllegalAccessException
|
|
|
{
|
|
|
- setTenantId(bizInspectionChamber);
|
|
|
+// setTenantId(bizInspectionChamber);
|
|
|
startPage();
|
|
|
List<BizInspectionChamber> list = bizInspectionChamberService.getList(bizInspectionChamber);
|
|
|
List<BizWorkshopChamber> chambers = bizWorkshopChamberService.query().in("chamber_id", list.isEmpty() ? Collections.singletonList(0L) : list.stream().map(BizInspectionChamber::getId).collect(Collectors.toList())).list();
|
|
@@ -73,7 +73,7 @@ public class BizInspectionChamberController extends BaseController
|
|
|
@PostMapping("/export")
|
|
|
public void export(HttpServletResponse response, BizInspectionChamber bizInspectionChamber) throws NoSuchFieldException, IllegalAccessException
|
|
|
{
|
|
|
- setTenantId(bizInspectionChamber);
|
|
|
+// setTenantId(bizInspectionChamber);
|
|
|
List<BizInspectionChamber> list = bizInspectionChamberService.getList(bizInspectionChamber);
|
|
|
ExcelUtil<BizInspectionChamber> util = new ExcelUtil<BizInspectionChamber>(BizInspectionChamber.class);
|
|
|
util.exportExcel(response, list, "检测室配置数据");
|
|
@@ -101,7 +101,7 @@ public class BizInspectionChamberController extends BaseController
|
|
|
if (bizInspectionChamberService.query().eq("chamber_name", bizInspectionChamber.getChamberName()).count() > 0) {
|
|
|
return error("仪器室名称不可重复");
|
|
|
}
|
|
|
- setTenantId(bizInspectionChamber);
|
|
|
+// setTenantId(bizInspectionChamber);
|
|
|
return toAjax(bizInspectionChamberService.save(bizInspectionChamber, bizInspectionChamber.getWorkShopIds()));
|
|
|
}
|
|
|
|
|
@@ -117,7 +117,7 @@ public class BizInspectionChamberController extends BaseController
|
|
|
if (bizInspectionChamberService.query().eq("chamber_name", bizInspectionChamber.getChamberName()).ne("id", bizInspectionChamber.getId()).count() > 0) {
|
|
|
return error("仪器室名称不可重复");
|
|
|
}
|
|
|
- setTenantId(bizInspectionChamber);
|
|
|
+// setTenantId(bizInspectionChamber);
|
|
|
return toAjax(bizInspectionChamberService.updateById(bizInspectionChamber, bizInspectionChamber.getWorkShopIds()));
|
|
|
}
|
|
|
|