package com.sinata.appointment.service;
|
|
import com.sinata.appointment.constants.AppointmentOrderStatus;
|
import com.sinata.appointment.entity.AppointmentOrder;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.stereotype.Service;
|
|
/**
|
* 微信公众号模板消息适配桩。
|
*/
|
@Slf4j
|
@Service
|
public class IntegrationWechatService {
|
|
public void notifyApprovalFinalResult(AppointmentOrder order, boolean approved) {
|
log.info(
|
"WeChat stub: notify submitterId={} orderNo={} result={}",
|
order.getSubmitterId(),
|
order.getOrderNo(),
|
approved ? AppointmentOrderStatus.APPROVED : AppointmentOrderStatus.REJECTED);
|
}
|
}
|