审查视图

src/main/java/com/sy/service/impl/GatherInfoServiceImpl.java 617 字节
1 2
package com.sy.service.impl;
zhangFan authored
3 4
import com.sy.mapper.GatherInfoMapper;
import com.sy.model.GatherInfo;
5 6 7 8 9 10 11 12
import com.sy.service.GatherInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GatherInfoServiceImpl implements GatherInfoService {

    @Autowired
zhangFan authored
13
    private GatherInfoMapper infoMapper;
14 15

    @Override
zhangFan authored
16
    public int save(GatherInfo info) {
17 18 19 20 21 22 23 24 25
        int row = 0;
        try {
            row =infoMapper.insert(info);
        }catch (Exception e){
            e.printStackTrace();
        }
        return row;
    }
}