From 30d8e227e8d823b6c38c3b9c90ac2df03b63befe Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 25 二月 2025 16:41:22 +0800 Subject: [PATCH] 淘宝转链接口更新 --- fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushRecordServiceImpl.java | 104 ++++++++++++++++++++++++++-------------------------- 1 files changed, 52 insertions(+), 52 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushRecordServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushRecordServiceImpl.java index 2995f4e..f11e68f 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushRecordServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushRecordServiceImpl.java @@ -1,52 +1,52 @@ -package com.yeshi.fanli.service.impl.push; - -import java.util.List; - -import javax.annotation.Resource; - -import org.springframework.stereotype.Service; - -import com.yeshi.fanli.dao.mybatis.push.PushRecordMapper; -import com.yeshi.fanli.entity.xinge.PushRecord; -import com.yeshi.fanli.service.inter.push.PushRecordService; -@Service -public class PushRecordServiceImpl implements PushRecordService { - - @Resource - private PushRecordMapper pushRecordMapper; - - - public List<PushRecord> getPushRecordList(long start, int pageSize,String key, int type) { - return pushRecordMapper.listQuery(start, pageSize, key, type); - } - - public Long getCount(String title, int type) { - return pushRecordMapper.countQuery(title, type); - } - - public void increaseByAndroid(String pushId) { - PushRecord pushRecord = pushRecordMapper.getByAndroidPushId(pushId); - if (pushRecord != null) { - Long count = pushRecord.getCount(); - if(count == null) { - pushRecord.setCount(1L); - } else { - pushRecord.setCount(count + 1); - } - pushRecordMapper.updateByPrimaryKeySelective(pushRecord); - } - } - - public void increaseByIOS(String pushId) { - PushRecord pushRecord = pushRecordMapper.getByIosPushId(pushId); - if (pushRecord != null) { - Long count = pushRecord.getCount(); - if(count == null) { - pushRecord.setCount(1L); - } else { - pushRecord.setCount(count + 1); - } - pushRecordMapper.updateByPrimaryKeySelective(pushRecord); - } - } -} +package com.yeshi.fanli.service.impl.push; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.yeshi.fanli.dao.mybatis.push.PushRecordMapper; +import com.yeshi.fanli.entity.xinge.PushRecord; +import com.yeshi.fanli.service.inter.push.PushRecordService; +@Service +public class PushRecordServiceImpl implements PushRecordService { + + @Resource + private PushRecordMapper pushRecordMapper; + + + public List<PushRecord> getPushRecordList(long start, int pageSize,String key, int type) { + return pushRecordMapper.listQuery(start, pageSize, key, type); + } + + public Long getCount(String title, int type) { + return pushRecordMapper.countQuery(title, type); + } + + public void increaseByAndroid(String pushId) { + PushRecord pushRecord = pushRecordMapper.getByAndroidPushId(pushId); + if (pushRecord != null) { + Long count = pushRecord.getCount(); + if(count == null) { + pushRecord.setCount(1L); + } else { + pushRecord.setCount(count + 1); + } + pushRecordMapper.updateByPrimaryKeySelective(pushRecord); + } + } + + public void increaseByIOS(String pushId) { + PushRecord pushRecord = pushRecordMapper.getByIosPushId(pushId); + if (pushRecord != null) { + Long count = pushRecord.getCount(); + if(count == null) { + pushRecord.setCount(1L); + } else { + pushRecord.setCount(count + 1); + } + pushRecordMapper.updateByPrimaryKeySelective(pushRecord); + } + } +} -- Gitblit v1.8.0