chenjiahe
2024-07-22 1c37127136d7cb223119c258ac157b69d0f6a48a
定时器优化-20240722
3个文件已修改
21 ■■■■■ 已修改文件
phi_platform_user/src/main/java/com/hx/phip/controller/deduction/DeductionController.java 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phi_platform_user/src/main/java/com/hx/phip/service/deduction/impl/DeductionSingleServiceImpl.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phi_platform_user/src/main/java/com/hx/phip/service/userMoney/impl/UserMoneyUnclaimedServiceImpl.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phi_platform_user/src/main/java/com/hx/phip/controller/deduction/DeductionController.java
@@ -8,10 +8,7 @@
import com.hx.phiappt.common.DeductionSingleConstants;
import com.hx.phiappt.constants.tool.PerformanceInfoTool;
import com.hx.phiappt.constants.tool.user.UserProjectTool;
import com.hx.phiappt.dao.mapper.NotificationLogMapper;
import com.hx.phiappt.dao.mapper.ProjectMapper;
import com.hx.phiappt.dao.mapper.ShopMapper;
import com.hx.phiappt.dao.mapper.UserMapper;
import com.hx.phiappt.dao.mapper.*;
import com.hx.phiappt.model.*;
import com.hx.phiappt.model.deduction.*;
import com.hx.phiappt.model.intro.IntroProjectManual;
phi_platform_user/src/main/java/com/hx/phip/service/deduction/impl/DeductionSingleServiceImpl.java
@@ -1332,11 +1332,13 @@
            }
            //生成术后回访-定时器数据生成
            TimerHandleItem timerHandleItem = new TimerHandleItem();
            timerHandleItem.setType(TimerHandleItem.TYPE_RETURN_VISIT_POSTOPERATIVE);
            timerHandleItem.setItemStr(deductionSingle.getId());
            TimerHandleItem timerHandleItem = new TimerHandleItem(TimerHandleItem.TYPE_RETURN_VISIT_POSTOPERATIVE,deductionSingle.getId());
            commonService.insert(TimerHandleItemMapper.class, timerHandleItem);
            //生成划扣赠送积分定时器
            timerHandleItem = new TimerHandleItem(TimerHandleItem.TYPE_DEDUCTION_OBTAIN_INTEGRAL,deductionSingle.getId(),deductionSingle.getUserId(),null);
            commonService.insert(TimerHandleItemMapper.class,timerHandleItem);
            // 返回记录id
            return deductionSingle.getId();
        } else {
phi_platform_user/src/main/java/com/hx/phip/service/userMoney/impl/UserMoneyUnclaimedServiceImpl.java
@@ -273,6 +273,14 @@
                this.sentCorpNotice(checkUserMoneyUnclaimed);
            }
        }
        if(UserMoneyUnclaimed.YES.equals(userMoneyUnclaimed.getIsValid())
                && UserMoneyUnclaimed.YES.equals(userMoneyUnclaimed.getIsSentSMS())
                && UserMoneyUnclaimed.SMS_STATUS_UNSENT.equals(userMoneyUnclaimed.getSMSStatus())){
            //新增消息通知,待领取,发送消息,未发送通知才发送
            TimerHandleItem timerHandleItem = new TimerHandleItem(TimerHandleItem.TYPE_WAIT_RECEIVE_NOTICE,userMoneyUnclaimed.getId());
            commonService.insert(TimerHandleItemMapper.class,timerHandleItem);
        }
    }
    /**