package com.sy.service.impl; import com.sy.mapper.airone_ex_stockMapper; import com.sy.model.airone_ex_stock; import com.sy.service.aironeExStockService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class aironeExStockServiceImpl implements aironeExStockService { @Autowired private airone_ex_stockMapper exStockMapper; @Override public int save(airone_ex_stock ex) { int row = 0; try{ row = exStockMapper.insert(ex); }catch (Exception e){ e.printStackTrace(); } return row; } @Override public airone_ex_stock selectByMawbNo(String mawbNo) { airone_ex_stock stock = null; try{ stock = exStockMapper.selectByMawbNo(mawbNo); }catch (Exception e){ e.printStackTrace(); } return stock; } @Override public int delectByWorkNo(String workNo) { int result = 0; try{ result = exStockMapper.deleteByPrimaryKey(workNo); }catch (Exception e){ e.printStackTrace(); } return result; } }