package com.whyc.service; import com.whyc.mapper.AlarmInspectionIdMapper; import com.whyc.pojo.web_site.AlarmInspectionId; import org.springframework.stereotype.Service; import javax.annotation.Resource; @Service public class AlarmInspectionIdService { @Resource private AlarmInspectionIdMapper mapper; public AlarmInspectionId get(){ return mapper.selectById(1); } public void update(AlarmInspectionId inspectionId){ mapper.updateById(inspectionId); } }