|
@ -48,6 +48,7 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
@ -105,6 +106,8 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
|
|
|
private EntranceService entranceService;
|
|
|
@Autowired
|
|
|
private XzzxEntranceService xzzxEntranceService;
|
|
|
@Value("${wechat.flag}")
|
|
|
private boolean flag;
|
|
|
|
|
|
|
|
|
|
|
@ -1166,6 +1169,12 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
|
|
|
BusinessOrderDO businessOrderDO = businessOrderDao.selectByRelationCode(consult);
|
|
|
if (wxId.equalsIgnoreCase("xm_ykyy_wx")){
|
|
|
this.orderRefund(wxId,businessOrderDO.getPatient(),businessOrderDO.getOrderNo(),businessOrderDO.getPayPrice(),businessOrderDO.getDescription());
|
|
|
//眼科接诊时更新眼科通状态
|
|
|
if (!flag){
|
|
|
if (businessOrderDO!=null){
|
|
|
ykyyService.updateYktOrderStatus(businessOrderDO.getOrderNo(),"9");
|
|
|
}
|
|
|
}
|
|
|
}else if (wxId.equalsIgnoreCase("xm_zsyy_wx")){
|
|
|
/*
|
|
|
this.ylzOrderRefund(wxId,businessOrderDO.getPatient(),businessOrderDO.getOrderNo(),businessOrderDO.getPayPrice(),businessOrderDO.getDescription());
|