RepertoryServiceImpl.java
836 字节
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);
}
}