首页>代码>基于springboot+MySQL的养老院管理系统>/info-manage-main/src/main/java/com/sm/graduation/accident/service/AccidentRecordService.java
package com.sm.graduation.accident.service;

import com.sm.graduation.accident.pojo.AccidentRecord;
import com.sm.graduation.accident.dao.AccidentRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class AccidentRecordService {

    @Autowired
    private AccidentRecordMapper accidentRecordMapper;

    public List<AccidentRecord> listAll(Map map) {
    	return accidentRecordMapper.listAll(map);
    }

    public AccidentRecord getById(Long id) {
    	return accidentRecordMapper.getById(id);
    }

    public int insert(AccidentRecord accidentRecord) {
    	return accidentRecordMapper.insert(accidentRecord);
    }

    public int update(AccidentRecord accidentRecord) {
    	return accidentRecordMapper.update(accidentRecord);
    }

    public int delete(Integer id) {
    	return accidentRecordMapper.delete(id);
    }

}
最近下载更多
漫步的南瓜  LV1 3月24日
陈小灏  LV18 2月21日
zolscy  LV24 2024年11月26日
citybird  LV4 2024年11月19日
gxqgwq  LV6 2024年11月16日
hx0204  LV2 2024年11月2日
wuying8208  LV15 2024年10月23日
韩健威  LV3 2024年9月18日
yyhrhv  LV8 2024年9月3日
最近浏览更多
helloworldsbsb  LV8 6月25日
lkke23047  LV1 5月26日
Yj123456k  LV2 5月10日
gann2015  LV25 4月8日
漫步的南瓜  LV1 3月24日
docnnxxy688 3月22日
暂无贡献等级
sunlzh888888  LV29 3月12日
orang801  LV2 3月3日
陈小灏  LV18 2月21日
pxqtsht  LV16 2月21日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友