|
|
@@ -12,6 +12,8 @@ import com.sqx.common.sms.SmsSendUtil;
|
|
|
import com.sqx.common.utils.Constant;
|
|
|
import com.sqx.common.utils.PageUtils;
|
|
|
import com.sqx.modules.app.entity.UserEntity;
|
|
|
+import com.sqx.modules.common.entity.CommonInfo;
|
|
|
+import com.sqx.modules.common.service.CommonInfoService;
|
|
|
import com.sqx.modules.errand.dao.TbIndentSmsTemplateDao;
|
|
|
import com.sqx.modules.errand.dto.SmsTemplateDTO;
|
|
|
import com.sqx.modules.errand.dto.SmsTemplateQueryDTO;
|
|
|
@@ -30,6 +32,7 @@ import java.util.Map;
|
|
|
@RequiredArgsConstructor
|
|
|
public class TbIndentSmsTemplateServiceImpl extends ServiceImpl<TbIndentSmsTemplateDao, TbIndentSmsTemplate> implements TbIndentSmsTemplateService {
|
|
|
|
|
|
+ private final CommonInfoService commonInfoService;
|
|
|
private final SmsConfigValueCache smsConfigValueCache;
|
|
|
|
|
|
@Override
|
|
|
@@ -115,6 +118,13 @@ public class TbIndentSmsTemplateServiceImpl extends ServiceImpl<TbIndentSmsTempl
|
|
|
return smsSendResult;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Double getPriceOfSms() {
|
|
|
+ // 查询短信发送费用
|
|
|
+ CommonInfo commonInfo = commonInfoService.findOne(421);
|
|
|
+ return Double.valueOf(commonInfo.getValue());
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 获取模板动态参数
|
|
|
* @param templateContent 模板
|