feat:期间核查-创建计划
This commit is contained in:
@@ -0,0 +1,16 @@
|
|||||||
|
package com.zt.plat.module.qms.resource.device.common;
|
||||||
|
|
||||||
|
public class DeviceConstant {
|
||||||
|
|
||||||
|
//业务类型
|
||||||
|
public static final String DAILY_CHECK_TYPE = "dailyCheck"; //点检
|
||||||
|
public static final String MAINTAIN_TYPE = "maintain"; //维护
|
||||||
|
public static final String CALIBRATION_TYPE = "calibration"; //检定校准
|
||||||
|
public static final String PERIOD_TYPE = "period"; //期间核查
|
||||||
|
|
||||||
|
//频率类型
|
||||||
|
public static final String FREQUENCY_TYPE_YEAR = "year";
|
||||||
|
public static final String FREQUENCY_TYPE_MONTH = "month";
|
||||||
|
public static final String FREQUENCY_TYPE_DAY = "day";
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,10 +1,8 @@
|
|||||||
package com.zt.plat.module.qms.resource.device.controller.admin;
|
package com.zt.plat.module.qms.resource.device.controller.admin;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
||||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceConfigBusinessRulePageReqVO;
|
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceConfigBusinessRulePageReqVO;
|
||||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceConfigBusinessRuleRespVO;
|
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceConfigBusinessRuleRespVO;
|
||||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceConfigBusinessRuleSaveReqVO;
|
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceConfigBusinessRuleSaveReqVO;
|
||||||
import com.zt.plat.module.qms.resource.device.dal.mapper.DeviceConfigBusinessRuleMapper;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
@@ -55,11 +53,9 @@ public class DeviceConfigBusinessRuleController extends AbstractFileUploadContro
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Resource private DeviceConfigBusinessRuleService deviceConfigBusinessRuleService;
|
@Resource private DeviceConfigBusinessRuleService deviceConfigBusinessRuleService;
|
||||||
@Resource private DeviceConfigBusinessRuleMapper deviceConfigBusinessRuleMapper;
|
|
||||||
|
|
||||||
@PostMapping("/create")
|
@PostMapping("/create")
|
||||||
@Operation(summary = "创建设备-业务配置")
|
@Operation(summary = "创建设备-业务配置")
|
||||||
@PreAuthorize("@ss.hasPermission('qms:device-config-business-rule:create')")
|
|
||||||
public CommonResult<DeviceConfigBusinessRuleRespVO> createDeviceConfigBusinessRule(@Valid @RequestBody DeviceConfigBusinessRuleSaveReqVO createReqVO) {
|
public CommonResult<DeviceConfigBusinessRuleRespVO> createDeviceConfigBusinessRule(@Valid @RequestBody DeviceConfigBusinessRuleSaveReqVO createReqVO) {
|
||||||
return success(deviceConfigBusinessRuleService.createDeviceConfigBusinessRule(createReqVO));
|
return success(deviceConfigBusinessRuleService.createDeviceConfigBusinessRule(createReqVO));
|
||||||
}
|
}
|
||||||
@@ -77,7 +73,6 @@ public class DeviceConfigBusinessRuleController extends AbstractFileUploadContro
|
|||||||
|
|
||||||
@PutMapping("/update")
|
@PutMapping("/update")
|
||||||
@Operation(summary = "更新设备-业务配置")
|
@Operation(summary = "更新设备-业务配置")
|
||||||
@PreAuthorize("@ss.hasPermission('qms:device-config-business-rule:update')")
|
|
||||||
public CommonResult<Boolean> updateDeviceConfigBusinessRule(@Valid @RequestBody DeviceConfigBusinessRuleSaveReqVO updateReqVO) {
|
public CommonResult<Boolean> updateDeviceConfigBusinessRule(@Valid @RequestBody DeviceConfigBusinessRuleSaveReqVO updateReqVO) {
|
||||||
deviceConfigBusinessRuleService.updateDeviceConfigBusinessRule(updateReqVO);
|
deviceConfigBusinessRuleService.updateDeviceConfigBusinessRule(updateReqVO);
|
||||||
return success(true);
|
return success(true);
|
||||||
@@ -86,7 +81,6 @@ public class DeviceConfigBusinessRuleController extends AbstractFileUploadContro
|
|||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
@Operation(summary = "删除设备-业务配置")
|
@Operation(summary = "删除设备-业务配置")
|
||||||
@Parameter(name = "id", description = "编号", required = true)
|
@Parameter(name = "id", description = "编号", required = true)
|
||||||
@PreAuthorize("@ss.hasPermission('qms:device-config-business-rule:delete')")
|
|
||||||
public CommonResult<Boolean> deleteDeviceConfigBusinessRule(@RequestParam("id") Long id) {
|
public CommonResult<Boolean> deleteDeviceConfigBusinessRule(@RequestParam("id") Long id) {
|
||||||
deviceConfigBusinessRuleService.deleteDeviceConfigBusinessRule(id);
|
deviceConfigBusinessRuleService.deleteDeviceConfigBusinessRule(id);
|
||||||
return success(true);
|
return success(true);
|
||||||
@@ -95,7 +89,7 @@ public class DeviceConfigBusinessRuleController extends AbstractFileUploadContro
|
|||||||
@DeleteMapping("/delete-list")
|
@DeleteMapping("/delete-list")
|
||||||
@Parameter(name = "ids", description = "编号", required = true)
|
@Parameter(name = "ids", description = "编号", required = true)
|
||||||
@Operation(summary = "批量删除设备-业务配置")
|
@Operation(summary = "批量删除设备-业务配置")
|
||||||
@PreAuthorize("@ss.hasPermission('qms:device-config-business-rule:delete')")
|
@PreAuthorize("@ss.hasPermission('qms:device-config-business-rule:delete')")
|
||||||
public CommonResult<Boolean> deleteDeviceConfigBusinessRuleList(@RequestBody BatchDeleteReqVO req) {
|
public CommonResult<Boolean> deleteDeviceConfigBusinessRuleList(@RequestBody BatchDeleteReqVO req) {
|
||||||
deviceConfigBusinessRuleService.deleteDeviceConfigBusinessRuleListByIds(req.getIds());
|
deviceConfigBusinessRuleService.deleteDeviceConfigBusinessRuleListByIds(req.getIds());
|
||||||
return success(true);
|
return success(true);
|
||||||
@@ -104,7 +98,6 @@ public class DeviceConfigBusinessRuleController extends AbstractFileUploadContro
|
|||||||
@GetMapping("/get")
|
@GetMapping("/get")
|
||||||
@Operation(summary = "获得设备-业务配置")
|
@Operation(summary = "获得设备-业务配置")
|
||||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||||
@PreAuthorize("@ss.hasPermission('qms:device-config-business-rule:query')")
|
|
||||||
public CommonResult<DeviceConfigBusinessRuleRespVO> getDeviceConfigBusinessRule(@RequestParam("id") Long id) {
|
public CommonResult<DeviceConfigBusinessRuleRespVO> getDeviceConfigBusinessRule(@RequestParam("id") Long id) {
|
||||||
DeviceConfigBusinessRuleDO deviceConfigBusinessRule = deviceConfigBusinessRuleService.getDeviceConfigBusinessRule(id);
|
DeviceConfigBusinessRuleDO deviceConfigBusinessRule = deviceConfigBusinessRuleService.getDeviceConfigBusinessRule(id);
|
||||||
return success(BeanUtils.toBean(deviceConfigBusinessRule, DeviceConfigBusinessRuleRespVO.class));
|
return success(BeanUtils.toBean(deviceConfigBusinessRule, DeviceConfigBusinessRuleRespVO.class));
|
||||||
@@ -112,7 +105,6 @@ public class DeviceConfigBusinessRuleController extends AbstractFileUploadContro
|
|||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@Operation(summary = "获得设备-业务配置分页")
|
@Operation(summary = "获得设备-业务配置分页")
|
||||||
@PreAuthorize("@ss.hasPermission('qms:device-config-business-rule:query')")
|
|
||||||
public CommonResult<PageResult<DeviceConfigBusinessRuleRespVO>> getDeviceConfigBusinessRulePage(@Valid DeviceConfigBusinessRulePageReqVO pageReqVO) {
|
public CommonResult<PageResult<DeviceConfigBusinessRuleRespVO>> getDeviceConfigBusinessRulePage(@Valid DeviceConfigBusinessRulePageReqVO pageReqVO) {
|
||||||
PageResult<DeviceConfigBusinessRuleDO> pageResult = deviceConfigBusinessRuleService.getDeviceConfigBusinessRulePage(pageReqVO);
|
PageResult<DeviceConfigBusinessRuleDO> pageResult = deviceConfigBusinessRuleService.getDeviceConfigBusinessRulePage(pageReqVO);
|
||||||
return success(BeanUtils.toBean(pageResult, DeviceConfigBusinessRuleRespVO.class));
|
return success(BeanUtils.toBean(pageResult, DeviceConfigBusinessRuleRespVO.class));
|
||||||
@@ -122,13 +114,11 @@ public class DeviceConfigBusinessRuleController extends AbstractFileUploadContro
|
|||||||
@Operation(summary = "导出设备-业务配置 Excel")
|
@Operation(summary = "导出设备-业务配置 Excel")
|
||||||
@PreAuthorize("@ss.hasPermission('qms:device-config-business-rule:export')")
|
@PreAuthorize("@ss.hasPermission('qms:device-config-business-rule:export')")
|
||||||
@ApiAccessLog(operateType = EXPORT)
|
@ApiAccessLog(operateType = EXPORT)
|
||||||
public void exportDeviceConfigBusinessRuleExcel(@Valid DeviceConfigBusinessRulePageReqVO pageReqVO,
|
public void exportDeviceConfigBusinessRuleExcel(@Valid DeviceConfigBusinessRulePageReqVO pageReqVO, HttpServletResponse response) throws IOException {
|
||||||
HttpServletResponse response) throws IOException {
|
|
||||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||||
List<DeviceConfigBusinessRuleDO> list = deviceConfigBusinessRuleService.getDeviceConfigBusinessRulePage(pageReqVO).getList();
|
List<DeviceConfigBusinessRuleDO> list = deviceConfigBusinessRuleService.getDeviceConfigBusinessRulePage(pageReqVO).getList();
|
||||||
// 导出 Excel
|
// 导出 Excel
|
||||||
ExcelUtils.write(response, "设备-业务配置.xls", "数据", DeviceConfigBusinessRuleRespVO.class,
|
ExcelUtils.write(response, "设备-业务配置.xls", "数据", DeviceConfigBusinessRuleRespVO.class, BeanUtils.toBean(list, DeviceConfigBusinessRuleRespVO.class));
|
||||||
BeanUtils.toBean(list, DeviceConfigBusinessRuleRespVO.class));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -17,6 +17,7 @@ import com.zt.plat.module.qms.resource.device.controller.vo.DeviceInfomationPage
|
|||||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceInfomationRespVO;
|
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceInfomationRespVO;
|
||||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceInfomationSaveReqVO;
|
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceInfomationSaveReqVO;
|
||||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceInfomationWithProductVO;
|
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceInfomationWithProductVO;
|
||||||
|
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceInfoWithBizConfigVO;
|
||||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceInfomationDO;
|
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceInfomationDO;
|
||||||
import com.zt.plat.module.qms.resource.device.service.DeviceInfomationService;
|
import com.zt.plat.module.qms.resource.device.service.DeviceInfomationService;
|
||||||
import com.zt.plat.module.qms.resource.device.service.DeviceProductService;
|
import com.zt.plat.module.qms.resource.device.service.DeviceProductService;
|
||||||
@@ -32,6 +33,7 @@ import org.springframework.validation.annotation.Validated;
|
|||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
|
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
|
||||||
@@ -180,4 +182,15 @@ public class DeviceInfomationController extends AbstractFileUploadController imp
|
|||||||
BeanUtils.toBean(list, DeviceInfomationRespVO.class));
|
BeanUtils.toBean(list, DeviceInfomationRespVO.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/test")
|
||||||
|
@Operation(summary = "获得设备-设备信息分页")
|
||||||
|
public CommonResult<List<DeviceInfoWithBizConfigVO>> test() {
|
||||||
|
JSONObject params = new JSONObject();
|
||||||
|
Long deviceId = 2010903332962000897L;
|
||||||
|
params.put("businessType", "dailyCheck");
|
||||||
|
params.put("deviceId", deviceId);
|
||||||
|
List<DeviceInfoWithBizConfigVO> list = deviceInfomationService.getListNeedByRule(params);
|
||||||
|
return success(list);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -57,14 +57,12 @@ public class DevicePeriodCheckController extends AbstractFileUploadController im
|
|||||||
|
|
||||||
@PostMapping("/create")
|
@PostMapping("/create")
|
||||||
@Operation(summary = "创建设备-期间核查")
|
@Operation(summary = "创建设备-期间核查")
|
||||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check:create')")
|
|
||||||
public CommonResult<DevicePeriodCheckRespVO> createDevicePeriodCheck(@Valid @RequestBody DevicePeriodCheckSaveReqVO createReqVO) {
|
public CommonResult<DevicePeriodCheckRespVO> createDevicePeriodCheck(@Valid @RequestBody DevicePeriodCheckSaveReqVO createReqVO) {
|
||||||
return success(devicePeriodCheckService.createDevicePeriodCheck(createReqVO));
|
return success(devicePeriodCheckService.createDevicePeriodCheck(createReqVO));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping("/update")
|
@PutMapping("/update")
|
||||||
@Operation(summary = "更新设备-期间核查")
|
@Operation(summary = "更新设备-期间核查")
|
||||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check:update')")
|
|
||||||
public CommonResult<Boolean> updateDevicePeriodCheck(@Valid @RequestBody DevicePeriodCheckSaveReqVO updateReqVO) {
|
public CommonResult<Boolean> updateDevicePeriodCheck(@Valid @RequestBody DevicePeriodCheckSaveReqVO updateReqVO) {
|
||||||
devicePeriodCheckService.updateDevicePeriodCheck(updateReqVO);
|
devicePeriodCheckService.updateDevicePeriodCheck(updateReqVO);
|
||||||
return success(true);
|
return success(true);
|
||||||
@@ -73,7 +71,6 @@ public class DevicePeriodCheckController extends AbstractFileUploadController im
|
|||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
@Operation(summary = "删除设备-期间核查")
|
@Operation(summary = "删除设备-期间核查")
|
||||||
@Parameter(name = "id", description = "编号", required = true)
|
@Parameter(name = "id", description = "编号", required = true)
|
||||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check:delete')")
|
|
||||||
public CommonResult<Boolean> deleteDevicePeriodCheck(@RequestParam("id") Long id) {
|
public CommonResult<Boolean> deleteDevicePeriodCheck(@RequestParam("id") Long id) {
|
||||||
devicePeriodCheckService.deleteDevicePeriodCheck(id);
|
devicePeriodCheckService.deleteDevicePeriodCheck(id);
|
||||||
return success(true);
|
return success(true);
|
||||||
@@ -82,7 +79,7 @@ public class DevicePeriodCheckController extends AbstractFileUploadController im
|
|||||||
@DeleteMapping("/delete-list")
|
@DeleteMapping("/delete-list")
|
||||||
@Parameter(name = "ids", description = "编号", required = true)
|
@Parameter(name = "ids", description = "编号", required = true)
|
||||||
@Operation(summary = "批量删除设备-期间核查")
|
@Operation(summary = "批量删除设备-期间核查")
|
||||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check:delete')")
|
@PreAuthorize("@ss.hasPermission('qms:device-period-check:delete')")
|
||||||
public CommonResult<Boolean> deleteDevicePeriodCheckList(@RequestBody BatchDeleteReqVO req) {
|
public CommonResult<Boolean> deleteDevicePeriodCheckList(@RequestBody BatchDeleteReqVO req) {
|
||||||
devicePeriodCheckService.deleteDevicePeriodCheckListByIds(req.getIds());
|
devicePeriodCheckService.deleteDevicePeriodCheckListByIds(req.getIds());
|
||||||
return success(true);
|
return success(true);
|
||||||
@@ -91,7 +88,6 @@ public class DevicePeriodCheckController extends AbstractFileUploadController im
|
|||||||
@GetMapping("/get")
|
@GetMapping("/get")
|
||||||
@Operation(summary = "获得设备-期间核查")
|
@Operation(summary = "获得设备-期间核查")
|
||||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check:query')")
|
|
||||||
public CommonResult<DevicePeriodCheckRespVO> getDevicePeriodCheck(@RequestParam("id") Long id) {
|
public CommonResult<DevicePeriodCheckRespVO> getDevicePeriodCheck(@RequestParam("id") Long id) {
|
||||||
DevicePeriodCheckDO devicePeriodCheck = devicePeriodCheckService.getDevicePeriodCheck(id);
|
DevicePeriodCheckDO devicePeriodCheck = devicePeriodCheckService.getDevicePeriodCheck(id);
|
||||||
return success(BeanUtils.toBean(devicePeriodCheck, DevicePeriodCheckRespVO.class));
|
return success(BeanUtils.toBean(devicePeriodCheck, DevicePeriodCheckRespVO.class));
|
||||||
@@ -99,7 +95,6 @@ public class DevicePeriodCheckController extends AbstractFileUploadController im
|
|||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@Operation(summary = "获得设备-期间核查分页")
|
@Operation(summary = "获得设备-期间核查分页")
|
||||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check:query')")
|
|
||||||
public CommonResult<PageResult<DevicePeriodCheckRespVO>> getDevicePeriodCheckPage(@Valid DevicePeriodCheckPageReqVO pageReqVO) {
|
public CommonResult<PageResult<DevicePeriodCheckRespVO>> getDevicePeriodCheckPage(@Valid DevicePeriodCheckPageReqVO pageReqVO) {
|
||||||
PageResult<DevicePeriodCheckDO> pageResult = devicePeriodCheckService.getDevicePeriodCheckPage(pageReqVO);
|
PageResult<DevicePeriodCheckDO> pageResult = devicePeriodCheckService.getDevicePeriodCheckPage(pageReqVO);
|
||||||
return success(BeanUtils.toBean(pageResult, DevicePeriodCheckRespVO.class));
|
return success(BeanUtils.toBean(pageResult, DevicePeriodCheckRespVO.class));
|
||||||
@@ -109,13 +104,11 @@ public class DevicePeriodCheckController extends AbstractFileUploadController im
|
|||||||
@Operation(summary = "导出设备-期间核查 Excel")
|
@Operation(summary = "导出设备-期间核查 Excel")
|
||||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check:export')")
|
@PreAuthorize("@ss.hasPermission('qms:device-period-check:export')")
|
||||||
@ApiAccessLog(operateType = EXPORT)
|
@ApiAccessLog(operateType = EXPORT)
|
||||||
public void exportDevicePeriodCheckExcel(@Valid DevicePeriodCheckPageReqVO pageReqVO,
|
public void exportDevicePeriodCheckExcel(@Valid DevicePeriodCheckPageReqVO pageReqVO, HttpServletResponse response) throws IOException {
|
||||||
HttpServletResponse response) throws IOException {
|
|
||||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||||
List<DevicePeriodCheckDO> list = devicePeriodCheckService.getDevicePeriodCheckPage(pageReqVO).getList();
|
List<DevicePeriodCheckDO> list = devicePeriodCheckService.getDevicePeriodCheckPage(pageReqVO).getList();
|
||||||
// 导出 Excel
|
// 导出 Excel
|
||||||
ExcelUtils.write(response, "设备-期间核查.xls", "数据", DevicePeriodCheckRespVO.class,
|
ExcelUtils.write(response, "设备-期间核查.xls", "数据", DevicePeriodCheckRespVO.class, BeanUtils.toBean(list, DevicePeriodCheckRespVO.class));
|
||||||
BeanUtils.toBean(list, DevicePeriodCheckRespVO.class));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -57,14 +57,12 @@ public class DevicePeriodCheckPlanController extends AbstractFileUploadControlle
|
|||||||
|
|
||||||
@PostMapping("/create")
|
@PostMapping("/create")
|
||||||
@Operation(summary = "创建设备-期间核查计划")
|
@Operation(summary = "创建设备-期间核查计划")
|
||||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check-plan:create')")
|
public CommonResult<DevicePeriodCheckPlanRespVO> createDevicePeriodCheckPlan(String checkYear) {
|
||||||
public CommonResult<DevicePeriodCheckPlanRespVO> createDevicePeriodCheckPlan(@Valid @RequestBody DevicePeriodCheckPlanSaveReqVO createReqVO) {
|
return success(devicePeriodCheckPlanService.createPlan(checkYear));
|
||||||
return success(devicePeriodCheckPlanService.createDevicePeriodCheckPlan(createReqVO));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping("/update")
|
@PutMapping("/update")
|
||||||
@Operation(summary = "更新设备-期间核查计划")
|
@Operation(summary = "更新设备-期间核查计划")
|
||||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check-plan:update')")
|
|
||||||
public CommonResult<Boolean> updateDevicePeriodCheckPlan(@Valid @RequestBody DevicePeriodCheckPlanSaveReqVO updateReqVO) {
|
public CommonResult<Boolean> updateDevicePeriodCheckPlan(@Valid @RequestBody DevicePeriodCheckPlanSaveReqVO updateReqVO) {
|
||||||
devicePeriodCheckPlanService.updateDevicePeriodCheckPlan(updateReqVO);
|
devicePeriodCheckPlanService.updateDevicePeriodCheckPlan(updateReqVO);
|
||||||
return success(true);
|
return success(true);
|
||||||
@@ -73,7 +71,6 @@ public class DevicePeriodCheckPlanController extends AbstractFileUploadControlle
|
|||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
@Operation(summary = "删除设备-期间核查计划")
|
@Operation(summary = "删除设备-期间核查计划")
|
||||||
@Parameter(name = "id", description = "编号", required = true)
|
@Parameter(name = "id", description = "编号", required = true)
|
||||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check-plan:delete')")
|
|
||||||
public CommonResult<Boolean> deleteDevicePeriodCheckPlan(@RequestParam("id") Long id) {
|
public CommonResult<Boolean> deleteDevicePeriodCheckPlan(@RequestParam("id") Long id) {
|
||||||
devicePeriodCheckPlanService.deleteDevicePeriodCheckPlan(id);
|
devicePeriodCheckPlanService.deleteDevicePeriodCheckPlan(id);
|
||||||
return success(true);
|
return success(true);
|
||||||
@@ -82,7 +79,7 @@ public class DevicePeriodCheckPlanController extends AbstractFileUploadControlle
|
|||||||
@DeleteMapping("/delete-list")
|
@DeleteMapping("/delete-list")
|
||||||
@Parameter(name = "ids", description = "编号", required = true)
|
@Parameter(name = "ids", description = "编号", required = true)
|
||||||
@Operation(summary = "批量删除设备-期间核查计划")
|
@Operation(summary = "批量删除设备-期间核查计划")
|
||||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check-plan:delete')")
|
@PreAuthorize("@ss.hasPermission('qms:device-period-check-plan:delete')")
|
||||||
public CommonResult<Boolean> deleteDevicePeriodCheckPlanList(@RequestBody BatchDeleteReqVO req) {
|
public CommonResult<Boolean> deleteDevicePeriodCheckPlanList(@RequestBody BatchDeleteReqVO req) {
|
||||||
devicePeriodCheckPlanService.deleteDevicePeriodCheckPlanListByIds(req.getIds());
|
devicePeriodCheckPlanService.deleteDevicePeriodCheckPlanListByIds(req.getIds());
|
||||||
return success(true);
|
return success(true);
|
||||||
@@ -91,7 +88,6 @@ public class DevicePeriodCheckPlanController extends AbstractFileUploadControlle
|
|||||||
@GetMapping("/get")
|
@GetMapping("/get")
|
||||||
@Operation(summary = "获得设备-期间核查计划")
|
@Operation(summary = "获得设备-期间核查计划")
|
||||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check-plan:query')")
|
|
||||||
public CommonResult<DevicePeriodCheckPlanRespVO> getDevicePeriodCheckPlan(@RequestParam("id") Long id) {
|
public CommonResult<DevicePeriodCheckPlanRespVO> getDevicePeriodCheckPlan(@RequestParam("id") Long id) {
|
||||||
DevicePeriodCheckPlanDO devicePeriodCheckPlan = devicePeriodCheckPlanService.getDevicePeriodCheckPlan(id);
|
DevicePeriodCheckPlanDO devicePeriodCheckPlan = devicePeriodCheckPlanService.getDevicePeriodCheckPlan(id);
|
||||||
return success(BeanUtils.toBean(devicePeriodCheckPlan, DevicePeriodCheckPlanRespVO.class));
|
return success(BeanUtils.toBean(devicePeriodCheckPlan, DevicePeriodCheckPlanRespVO.class));
|
||||||
@@ -99,7 +95,6 @@ public class DevicePeriodCheckPlanController extends AbstractFileUploadControlle
|
|||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@Operation(summary = "获得设备-期间核查计划分页")
|
@Operation(summary = "获得设备-期间核查计划分页")
|
||||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check-plan:query')")
|
|
||||||
public CommonResult<PageResult<DevicePeriodCheckPlanRespVO>> getDevicePeriodCheckPlanPage(@Valid DevicePeriodCheckPlanPageReqVO pageReqVO) {
|
public CommonResult<PageResult<DevicePeriodCheckPlanRespVO>> getDevicePeriodCheckPlanPage(@Valid DevicePeriodCheckPlanPageReqVO pageReqVO) {
|
||||||
PageResult<DevicePeriodCheckPlanDO> pageResult = devicePeriodCheckPlanService.getDevicePeriodCheckPlanPage(pageReqVO);
|
PageResult<DevicePeriodCheckPlanDO> pageResult = devicePeriodCheckPlanService.getDevicePeriodCheckPlanPage(pageReqVO);
|
||||||
return success(BeanUtils.toBean(pageResult, DevicePeriodCheckPlanRespVO.class));
|
return success(BeanUtils.toBean(pageResult, DevicePeriodCheckPlanRespVO.class));
|
||||||
@@ -109,13 +104,11 @@ public class DevicePeriodCheckPlanController extends AbstractFileUploadControlle
|
|||||||
@Operation(summary = "导出设备-期间核查计划 Excel")
|
@Operation(summary = "导出设备-期间核查计划 Excel")
|
||||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check-plan:export')")
|
@PreAuthorize("@ss.hasPermission('qms:device-period-check-plan:export')")
|
||||||
@ApiAccessLog(operateType = EXPORT)
|
@ApiAccessLog(operateType = EXPORT)
|
||||||
public void exportDevicePeriodCheckPlanExcel(@Valid DevicePeriodCheckPlanPageReqVO pageReqVO,
|
public void exportDevicePeriodCheckPlanExcel(@Valid DevicePeriodCheckPlanPageReqVO pageReqVO, HttpServletResponse response) throws IOException {
|
||||||
HttpServletResponse response) throws IOException {
|
|
||||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||||
List<DevicePeriodCheckPlanDO> list = devicePeriodCheckPlanService.getDevicePeriodCheckPlanPage(pageReqVO).getList();
|
List<DevicePeriodCheckPlanDO> list = devicePeriodCheckPlanService.getDevicePeriodCheckPlanPage(pageReqVO).getList();
|
||||||
// 导出 Excel
|
// 导出 Excel
|
||||||
ExcelUtils.write(response, "设备-期间核查计划.xls", "数据", DevicePeriodCheckPlanRespVO.class,
|
ExcelUtils.write(response, "设备-期间核查计划.xls", "数据", DevicePeriodCheckPlanRespVO.class, BeanUtils.toBean(list, DevicePeriodCheckPlanRespVO.class));
|
||||||
BeanUtils.toBean(list, DevicePeriodCheckPlanRespVO.class));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
package com.zt.plat.module.qms.resource.device.controller.admin;
|
package com.zt.plat.module.qms.resource.device.controller.admin;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONArray;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||||
import com.zt.plat.framework.business.annotation.FileUploadController;
|
import com.zt.plat.framework.business.annotation.FileUploadController;
|
||||||
import com.zt.plat.framework.business.controller.AbstractFileUploadController;
|
import com.zt.plat.framework.business.controller.AbstractFileUploadController;
|
||||||
@@ -15,8 +17,10 @@ import com.zt.plat.module.qms.core.constant.DataTypeConstant;
|
|||||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceProductPageReqVO;
|
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceProductPageReqVO;
|
||||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceProductRespVO;
|
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceProductRespVO;
|
||||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceProductSaveReqVO;
|
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceProductSaveReqVO;
|
||||||
|
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceConfigBusinessRuleDO;
|
||||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceProductDO;
|
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceProductDO;
|
||||||
import com.zt.plat.module.qms.resource.device.controller.vo.*;
|
import com.zt.plat.module.qms.resource.device.controller.vo.*;
|
||||||
|
import com.zt.plat.module.qms.resource.device.service.DeviceConfigBusinessRuleService;
|
||||||
import com.zt.plat.module.qms.resource.device.service.DeviceProductService;
|
import com.zt.plat.module.qms.resource.device.service.DeviceProductService;
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
@@ -30,6 +34,8 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
|
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
|
||||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||||
@@ -49,8 +55,8 @@ public class DeviceProductController extends AbstractFileUploadController implem
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Resource
|
@Resource private DeviceProductService deviceProductService;
|
||||||
private DeviceProductService deviceProductService;
|
@Resource private DeviceConfigBusinessRuleService deviceConfigBusinessRuleService;
|
||||||
|
|
||||||
@PostMapping("/saveData")
|
@PostMapping("/saveData")
|
||||||
@Operation(summary = "保存数据")
|
@Operation(summary = "保存数据")
|
||||||
@@ -78,6 +84,35 @@ public class DeviceProductController extends AbstractFileUploadController implem
|
|||||||
return success(BeanUtils.toBean(list, DeviceProductRespVO.class));
|
return success(BeanUtils.toBean(list, DeviceProductRespVO.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/getProductTreeDataWithRuleStatus")
|
||||||
|
@Operation(summary = "获取分类和产品树_含规则配置状态")
|
||||||
|
public CommonResult<JSONArray> getProductTreeDataWithRuleStatus() {
|
||||||
|
List<DeviceProductDO> list = deviceProductService.getTreeData("");
|
||||||
|
JSONArray jsonArray = new JSONArray();
|
||||||
|
for (DeviceProductDO item : list) {
|
||||||
|
jsonArray.add(item);
|
||||||
|
}
|
||||||
|
|
||||||
|
List<Long> productIdList = list.stream().filter(item -> item.getNodeType().equals(DataTypeConstant.DATA_TYPE_DATA)).map(DeviceProductDO::getId).toList();
|
||||||
|
|
||||||
|
List<DeviceConfigBusinessRuleDO> ruleList = deviceConfigBusinessRuleService.getByProductIdListAndBusinessDomain(productIdList, "");
|
||||||
|
for(DeviceProductDO product: list){
|
||||||
|
Long id = product.getId();
|
||||||
|
JSONObject jsonObject = jsonArray.getJSONObject(jsonArray.indexOf(product));
|
||||||
|
for(DeviceConfigBusinessRuleDO rule: ruleList){
|
||||||
|
Long productId = rule.getProductId();
|
||||||
|
if(!Objects.equals(productId, id))
|
||||||
|
continue;
|
||||||
|
String businessDomain = rule.getBusinessDomain();
|
||||||
|
String key = businessDomain + "_on";
|
||||||
|
jsonObject.put(key, "1");
|
||||||
|
}
|
||||||
|
jsonArray.set(jsonArray.indexOf(product), jsonObject);
|
||||||
|
}
|
||||||
|
return success(jsonArray);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("/create")
|
@PostMapping("/create")
|
||||||
@Operation(summary = "创建设备-设备大类")
|
@Operation(summary = "创建设备-设备大类")
|
||||||
@PreAuthorize("@ss.hasPermission('resource:device-product:create')")
|
@PreAuthorize("@ss.hasPermission('resource:device-product:create')")
|
||||||
|
|||||||
@@ -2,47 +2,52 @@ package com.zt.plat.module.qms.resource.device.dal.dataobject;
|
|||||||
|
|
||||||
import com.zt.plat.module.qms.core.aspect.annotation.Dict;
|
import com.zt.plat.module.qms.core.aspect.annotation.Dict;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
public class DeviceInfoWithBizConfigVO extends DeviceInfomationDO{
|
public class DeviceInfoWithBizConfigVO extends DeviceInfomationDO{
|
||||||
|
|
||||||
@Schema(description = "规则id")
|
@Schema(description = "业务规则")
|
||||||
private String ruleId;
|
private DeviceConfigBusinessRuleDO rule;
|
||||||
|
|
||||||
@Schema(description = "业务领域:点检|检定校准|期间核查|等")
|
// @Schema(description = "规则id")
|
||||||
@Dict(dicCode = "device_business_domain")
|
// private Long ruleId;
|
||||||
private String businessDomain;
|
//
|
||||||
|
// @Schema(description = "业务领域:点检|检定校准|期间核查|等")
|
||||||
@Schema(description = "是否需要")
|
// @Dict(dicCode = "device_business_domain")
|
||||||
private Integer needFlag;
|
// private String businessDomain;
|
||||||
|
//
|
||||||
@Schema(description = "子业务类型")
|
// @Schema(description = "是否需要")
|
||||||
private String subDomainType;
|
// private String requireFlag;
|
||||||
|
//
|
||||||
@Schema(description = "频次类型")
|
// @Schema(description = "子业务类型")
|
||||||
private String frequencyType;
|
// private String subDomainType;
|
||||||
|
//
|
||||||
@Schema(description = "频次")
|
// @Schema(description = "频次类型")
|
||||||
private String frequency;
|
// private String frequencyType;
|
||||||
|
//
|
||||||
@Schema(description = "频次说明")
|
// @Schema(description = "频次")
|
||||||
private String frequencyRemark;
|
// private String frequency;
|
||||||
|
//
|
||||||
@Schema(description = "报表模板")
|
// @Schema(description = "频次说明")
|
||||||
private String reportTemplateKey;
|
// private String frequencyRemark;
|
||||||
|
//
|
||||||
@Schema(description = "表单组件")
|
// @Schema(description = "报表模板")
|
||||||
private String formComponent;
|
// private String reportTemplateKey;
|
||||||
|
//
|
||||||
@Schema(description = "处理方法")
|
// @Schema(description = "表单组件")
|
||||||
private String processMethod;
|
// private String formComponent;
|
||||||
|
//
|
||||||
@Schema(description = "处理人")
|
// @Schema(description = "处理方法")
|
||||||
private String processUser;
|
// private String treatmentMethod;
|
||||||
|
//
|
||||||
@Schema(description = "标准/规范")
|
// @Schema(description = "处理人")
|
||||||
private String standard;
|
// private String treatmentUser;
|
||||||
|
//
|
||||||
@Schema(description = "检定/校准类型")
|
// @Schema(description = "标准/规范")
|
||||||
private String calibrationCheckType;
|
// private String standard;
|
||||||
|
//
|
||||||
|
// @Schema(description = "检定/校准类型")
|
||||||
|
// private String calibrationCheckType;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,20 @@
|
|||||||
package com.zt.plat.module.qms.resource.device.dal.mapper;
|
package com.zt.plat.module.qms.resource.device.dal.mapper;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.zt.plat.framework.common.pojo.PageResult;
|
import com.zt.plat.framework.common.pojo.PageResult;
|
||||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||||
|
import com.zt.plat.framework.mybatis.core.query.MPJLambdaWrapperX;
|
||||||
import com.zt.plat.module.qms.core.aspect.annotation.QmsPermission;
|
import com.zt.plat.module.qms.core.aspect.annotation.QmsPermission;
|
||||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceInfomationPageReqVO;
|
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceInfomationPageReqVO;
|
||||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceInfomationWithProductVO;
|
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceInfomationWithProductVO;
|
||||||
|
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceConfigBusinessRuleDO;
|
||||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceInfoWithBizConfigVO;
|
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceInfoWithBizConfigVO;
|
||||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceInfomationDO;
|
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceInfomationDO;
|
||||||
|
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceProductDO;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
@@ -30,6 +35,22 @@ public interface DeviceInfomationMapper extends BaseMapperX<DeviceInfomationDO>
|
|||||||
Page<DeviceInfomationWithProductVO> selectPage(IPage<?> page, @Param("param") DeviceInfomationPageReqVO param);
|
Page<DeviceInfomationWithProductVO> selectPage(IPage<?> page, @Param("param") DeviceInfomationPageReqVO param);
|
||||||
|
|
||||||
//查询需要“某个业务类型”的设备列表
|
//查询需要“某个业务类型”的设备列表
|
||||||
List<DeviceInfoWithBizConfigVO> getListNeedByRule(@Param("param") Map<String, Object> param);
|
default List<DeviceInfoWithBizConfigVO> getListNeedByRule(JSONObject param){
|
||||||
|
String businessType = param.getString("businessType");
|
||||||
|
Long deviceId = param.getLong("deviceId");
|
||||||
|
List deptIdList = param.getJSONArray("deptIdList");
|
||||||
|
MPJLambdaWrapperX<DeviceInfomationDO> wrapper = new MPJLambdaWrapperX<DeviceInfomationDO>();
|
||||||
|
wrapper.leftJoin(DeviceProductDO.class, DeviceProductDO::getId, DeviceInfomationDO::getProductId)
|
||||||
|
.leftJoin(DeviceProductDO.class, DeviceProductDO::getId, DeviceInfomationDO::getProductId)
|
||||||
|
.selectAssociation(DeviceConfigBusinessRuleDO.class, DeviceInfoWithBizConfigVO::getRule)
|
||||||
|
.leftJoin(DeviceConfigBusinessRuleDO.class, DeviceConfigBusinessRuleDO::getProductId, DeviceInfomationDO::getProductId)
|
||||||
|
.selectAll(DeviceInfomationDO.class);
|
||||||
|
wrapper.eqIfPresent(DeviceInfomationDO::getId, deviceId)
|
||||||
|
.inIfPresent(DeviceInfomationDO::getDeptId, deptIdList)
|
||||||
|
.eq(DeviceConfigBusinessRuleDO::getBusinessDomain, businessType)
|
||||||
|
.eq(DeviceConfigBusinessRuleDO::getRequireFlag, "1");
|
||||||
|
|
||||||
|
return selectJoinList(DeviceInfoWithBizConfigVO.class, wrapper);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1,12 +1,17 @@
|
|||||||
package com.zt.plat.module.qms.resource.device.dal.mapper;
|
package com.zt.plat.module.qms.resource.device.dal.mapper;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.zt.plat.framework.common.pojo.PageResult;
|
import com.zt.plat.framework.common.pojo.PageResult;
|
||||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||||
|
import com.zt.plat.framework.mybatis.core.query.MPJLambdaWrapperX;
|
||||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DevicePeriodCheckDO;
|
import com.zt.plat.module.qms.resource.device.dal.dataobject.DevicePeriodCheckDO;
|
||||||
import com.zt.plat.module.qms.resource.device.controller.vo.DevicePeriodCheckPageReqVO;
|
import com.zt.plat.module.qms.resource.device.controller.vo.DevicePeriodCheckPageReqVO;
|
||||||
|
import com.zt.plat.module.qms.resource.device.dal.dataobject.DevicePeriodCheckPlanDO;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备-期间核查 Mapper
|
* 设备-期间核查 Mapper
|
||||||
*
|
*
|
||||||
@@ -43,4 +48,9 @@ public interface DevicePeriodCheckMapper extends BaseMapperX<DevicePeriodCheckDO
|
|||||||
.orderByDesc(DevicePeriodCheckDO::getId));
|
.orderByDesc(DevicePeriodCheckDO::getId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 查询指定设备的最新数据
|
||||||
|
* */
|
||||||
|
List<DevicePeriodCheckDO> getLastDataCheckList(JSONObject param);
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -21,7 +21,7 @@ public interface DeviceConfigBusinessRuleService {
|
|||||||
|
|
||||||
CommonResult<DeviceConfigBusinessRuleDO> getRuleByDeviceIdAndType(Long deviceId, String type);
|
CommonResult<DeviceConfigBusinessRuleDO> getRuleByDeviceIdAndType(Long deviceId, String type);
|
||||||
|
|
||||||
List<DeviceConfigBusinessRuleDO> getByProductIdListAndBusinessDomain(List<String> productIdList, String businessDomain);
|
List<DeviceConfigBusinessRuleDO> getByProductIdListAndBusinessDomain(List<Long> productIdList, String businessDomain);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建设备-业务配置
|
* 创建设备-业务配置
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user