| | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.yeshi.fanli.entity.SystemEnum; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | |
| | | @Resource |
| | | private PushInfoMapper pushInfoMapper; |
| | | |
| | | private Logger logger = LoggerFactory.getLogger("debugLog"); |
| | | |
| | | @Override |
| | | public void save(PushInfo record) throws PushInfoException, Exception { |
| | |
| | | msg = e.getMsg(); |
| | | } catch (Exception e) { |
| | | msg = "系统推送失败"; |
| | | logger.error("系统推送失败",e); |
| | | } |
| | | record.setState(state); |
| | | record.setPushTime(new Date()); |