xiaoyong931011
2021-07-22 4e0e2808594c48896aa76c61b171bc83ae8089cd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.xzx.gc.system.service;
 
import com.xzx.gc.common.constant.MqConstants;
import com.xzx.gc.common.dto.log.SysProgramLog;
import com.xzx.gc.common.utils.MqUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
 
@Slf4j
@Transactional
@Service
public class ProgramLogService {
 
 
    @Autowired
    private MqUtil mqUtil;
 
    public  void add(SysProgramLog programLog){
        mqUtil.send(MqConstants.SYS_PROGRAM_LOG_QUEUE,programLog);
    }
}