Kaynağa Gözat

Merge branch 'test' of http://git.mokasz.com/marketing/moka-private into test

leon 4 yıl önce
ebeveyn
işleme
c329eb1d8c

+ 9 - 0
src/main/java/com/mokamrp/privates/service/pangu/impl/FosterwxCashScheduleTaskListServiceImpl.java

@@ -173,6 +173,15 @@ public class FosterwxCashScheduleTaskListServiceImpl extends ServiceImpl<Fosterw
     @Override
     public void editBoxUrl(FosterwxCashScheduleTaskList fosterwxCashScheduleTaskList, FosterwxCashTaskList fosterwxCashTaskList) {
         FosterwxCashOasBox fosterwxCashOasBox = fosterwxCashOasBoxService.getRandBox(fosterwxCashScheduleTaskList.getGroupId());
+        if (null == fosterwxCashOasBox) {
+            // 状态
+            fosterwxCashScheduleTaskList.setStatus(3);
+            // 失败原因
+            fosterwxCashScheduleTaskList.setErrInfo("该分组下没有可用的公众号");
+
+            fosterwxCashScheduleTaskListMapper.updateById(fosterwxCashScheduleTaskList);
+        }
+
         fosterwxCashOasBoxService.addSendTextCnt(fosterwxCashScheduleTaskList.getGroupId(), fosterwxCashOasBox.getGhId());
 
         // 状态