| | |
| | | import com.dy.pmsGlobal.pojoBa.BaLog; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.Date; |
| | | |
| | | @Service |
| | | public class LogService { |
| | | |
| | | @Autowired |
| | | private BaLogMapper dao; |
| | | |
| | | @Autowired |
| | | public void setDao(BaLogMapper dao) { |
| | | this.dao = dao; |
| | | } |
| | | @Transactional |
| | | public void save(long operator,String operatorName, String operation,String ip,String code,String msg) { |
| | | BaLog log = new BaLog(); |
| | | log.userId=operator; |