package com.brilliance.isc.common.wfe;


import com.brilliance.isc.bo.Wfe;
import com.brilliance.isc.mda.dao.WfeMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service("springWfeTransaction")
public class WfeImplWithSpringTransaction implements WfeService {

    private final Logger log = LoggerFactory.getLogger(this.getClass().getName());

    @Resource
    private WfeMapper wfeMapper;


    @Transactional(propagation=Propagation.REQUIRES_NEW)
    public void updateWfe(Wfe wfe) {
        wfeMapper.updateByPrimaryKey(wfe);
    }
}
