日志工具类-Mapper静态调用

@Component
public class MatchLogUtil {
@Autowired
private OtcMatchLogMapper otcMatchLogMapper;
private static MatchLogUtil matchLogUtil;
@PostConstruct
public void init() {
matchLogUtil = this;
matchLogUtil.otcMatchLogMapper = this.otcMatchLogMapper;
}
public static int add(String orderId,
Integer matchOrderId,
String msg,
Integer state,
String remark,
Date updateTime,
Date createTime) {
return matchLogUtil.otcMatchLogMapper.insert(orderId,matchOrderId,msg,state,remark,updateTime,createTime);
}
}

posted @ 2020-11-22 14:45  DiligentCoder  阅读(169)  评论(0编辑  收藏  举报