EnterCancelServerImpl.java 1.1 KB
package com.sy.service.impl;

import com.sy.mapper.ENTERCANCCELMapper;
import com.sy.model.ENTERCANCCEL;
import com.sy.service.EnterCancelServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author
 * @time 2019-05-20 14:41
 */
@Service
public class EnterCancelServerImpl implements EnterCancelServer {

    @Autowired
    private ENTERCANCCELMapper mapper;

    @Override
    public int insertEntry(ENTERCANCCEL entercanccel){
        int row = 0;
        try {
            row = mapper.insertSelective(entercanccel);
        }catch (NullPointerException e){
            e.printStackTrace();
        }
        return row;
    }

    @Override
    public int updateByPermaryKey(ENTERCANCCEL entercanccel) {
        int row = 0;
        try {
            row = mapper.updateByPrimaryKey(entercanccel);
        }catch (NullPointerException e){
            e.printStackTrace();
        }
        return row;
    }

    @Override
    public ENTERCANCCEL selectByManifest(String manifest) {
        ENTERCANCCEL entercanccel = mapper.selectByManifest(manifest);
        return entercanccel;
    }
}