审查视图

src/main/java/com/sy/service/impl/RepertoryServiceImpl.java 836 字节
zhangFan authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
package com.sy.service.impl;

import com.sy.mapper.T_AIR_REPERTORYMapper;
import com.sy.model.T_AIR_REPERTORY;
import com.sy.service.RepertoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author
 * @time 2019-05-28 10:16
 */
@Service
public class RepertoryServiceImpl implements RepertoryService {

    @Autowired
    private T_AIR_REPERTORYMapper mapper;

    @Override
    public int updateEntry(T_AIR_REPERTORY repertory) {
        return mapper.updateByPrimaryKeySelective(repertory);
    }

    @Override
    public T_AIR_REPERTORY selectByPermaryKey(String mawb) {
        return mapper.selectByPrimaryKey(mawb);
    }

    @Override
    public int insertEntry(T_AIR_REPERTORY repertory) {
        return mapper.insertSelective(repertory);
    }
}