package com.sy.service.impl; import com.sy.mapper.commandInfoMapper; import com.sy.model.commandInfo; import com.sy.service.CommandInfoService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class CommandInfoImpl implements CommandInfoService { @Autowired private commandInfoMapper infoMapper; @Override public int save(commandInfo info) { int row = 0; try { row =infoMapper.insert(info); }catch (Exception e){ e.printStackTrace(); } return row; } }