| | |
| | | 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; |
| | |
| | | } |
| | | |
| | | //生成术后回访-定时器数据生成 |
| | | 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 { |
| | |
| | | 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); |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |