shiyunteng
7 天以前 0ad13cb4bf387d4f2db2d62540ebb73a376087f5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.by4cloud.platformx.device.service.impl;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.by4cloud.platformx.common.core.util.R;
import com.by4cloud.platformx.device.entity.InspectionStandards;
import com.by4cloud.platformx.device.mapper.InspectionStandardsMapper;
import com.by4cloud.platformx.device.service.InspectionStandardsService;
import org.springframework.stereotype.Service;
/**
 * 巡检标准
 *
 * @author syt
 * @date 2025-04-22 09:13:46
 */
@Service
public class InspectionStandardsServiceImpl extends ServiceImpl<InspectionStandardsMapper, InspectionStandards> implements InspectionStandardsService {
    @Override
    public R openOrOffById(Long id, Integer status) {
        InspectionStandards standards = baseMapper.selectById(id);
        standards.setStatus(status);
        baseMapper.updateById(standards);
        return R.ok();
    }
}