package com.xiaopeng.operation.service.impl;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.xiaopeng.operation.mapper.XpSystemSettingMapper;
|
import com.xiaopeng.api.model.operation.XpSystemSetting;
|
import com.xiaopeng.operation.service.XpSystemSettingService;
|
import org.springframework.stereotype.Service;
|
|
/**
|
* <p>
|
* 系统设置表 服务实现类
|
* </p>
|
*
|
* @author liu
|
* @since 2026-02-03
|
*/
|
@Service
|
public class XpSystemSettingServiceImpl extends ServiceImpl<XpSystemSettingMapper, XpSystemSetting> implements XpSystemSettingService {
|
|
@Override
|
public String getCustomerServicePhone() {
|
XpSystemSetting xpSystemSetting = this.getOne(null);
|
if (xpSystemSetting != null) {
|
return xpSystemSetting.getCustomerServicePhone();
|
}
|
return "";
|
}
|
|
@Override
|
public Integer getOrderDistance() {
|
XpSystemSetting xpSystemSetting = this.getOne(null);
|
if (xpSystemSetting != null) {
|
return xpSystemSetting.getOrderDistance();
|
}
|
return 0;
|
}
|
|
@Override
|
public Integer getOrderFinishTime() {
|
XpSystemSetting xpSystemSetting = this.getOne(null);
|
if (xpSystemSetting != null) {
|
return xpSystemSetting.getArriveTime();
|
}
|
return 15;
|
}
|
}
|