|
@@ -14,6 +14,7 @@ import com.ym.mec.common.page.WrapperUtil;
|
|
|
import com.ym.mec.thirdparty.message.MessageSenderPluginContext;
|
|
|
import com.ym.mec.util.excel.POIUtil;
|
|
|
import com.ym.mec.util.ini.IniFileUtil;
|
|
|
+import org.apache.commons.lang3.ObjectUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.core.io.ClassPathResource;
|
|
@@ -108,8 +109,8 @@ public class AppRedemptionCodeServiceImpl extends ServiceImpl<RedemptionCodeDao,
|
|
|
|
|
|
@Override
|
|
|
public void checkLowVolume() {
|
|
|
- int volume = redemptionCodeDao.findNull();
|
|
|
- if (volume < 10) {
|
|
|
+ Integer volume = redemptionCodeDao.findNull();
|
|
|
+ if (volume == null || volume < 10) {
|
|
|
Map<Integer, String> receivers = new HashMap<>(1);
|
|
|
receivers.put(0, "13512341234");
|
|
|
sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.AWSMS,
|