package com.sy.service.impl; import com.sy.mapper.port_manifest_bodyMapper; import com.sy.mapper.port_manifest_headMapper; import com.sy.mapper.port_manifest_head_statMapper; import com.sy.model.port_manifest_body; import com.sy.model.port_manifest_head; import com.sy.model.port_manifest_head_stat; import com.sy.service.GATService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class GATServiceImpl implements GATService { @Autowired private port_manifest_headMapper headMapper; @Autowired private port_manifest_bodyMapper bodyMapper; @Autowired private port_manifest_head_statMapper statMapper; @Override public int savePortHead(port_manifest_head head) { int row = 0; try { row = headMapper.insert(head); }catch (Exception e){ e.printStackTrace(); } return row; } @Override public int savePortBody(port_manifest_body body) { int row = 0; try { row = bodyMapper.insert(body); }catch (Exception e){ e.printStackTrace(); } return row; } @Override public int savePortStat(port_manifest_head_stat stat) { int row = 0; try { row = statMapper.insert(stat); }catch (Exception e){ e.printStackTrace(); } return row; } }