This commit is contained in:
mashuai 2025-03-19 17:12:47 +08:00
parent efe800a554
commit 96adeade60
3 changed files with 6 additions and 4 deletions

View File

@ -121,9 +121,9 @@ public class MaLeaseInfoServiceImpl implements MaLeaseInfoService {
phoneNumber = Sm4Utils.decrypt(info.getPhoneNumber());
}
// 根据电话号码数量发送短信
//JSONObject sendResult = SmsTool.sendSms(new SmsParam(phoneNumber, notice.getNoticeContent()), BmConfigItems.ANHUI_COMPANY_SMS_KEY);
String sendResult = SmsUtils.smsToken(phoneNumber, maLeaseInfo.getLeaseName(), "");
if (StringUtils.isBlank(sendResult)) {
JSONObject sendResult = SmsTool.sendSms(new SmsParam(phoneNumber, notice.getNoticeContent()), BmConfigItems.ANHUI_COMPANY_SMS_KEY);
//String sendResult = SmsUtils.smsToken(phoneNumber, maLeaseInfo.getLeaseName(), "");
if (StringUtils.isBlank(sendResult.toString())) {
return AjaxResult.error("短信发送失败");
} else {
System.out.println("短信发送成功:" + sendResult);

View File

@ -996,6 +996,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
sum(total_lease_day) as totalLeaseDay
FROM
ma_dev_info
where is_active = '1'
</select>
<update id="updateTotalDevUpDay">

View File

@ -628,7 +628,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND mt.`level` = '4'
LEFT JOIN ma_type mt1 ON mt.parent_id = mt1.type_id
AND mt1.`level` = '3'
WHERE 1 =1
WHERE
md.is_active = '1'
<if test="keyWord != null and keyWord != ''">
and mt1.type_name like concat('%', #{keyWord}, '%') or
md.device_name like concat('%', #{keyWord}, '%') or