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/tlj/UserTaoLiJinReportServiceImpl.java | 130 +++++++++++++++++++++--------------------- 1 files changed, 65 insertions(+), 65 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/tlj/UserTaoLiJinReportServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/tlj/UserTaoLiJinReportServiceImpl.java index bbc0e3a..0301c01 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/tlj/UserTaoLiJinReportServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/tlj/UserTaoLiJinReportServiceImpl.java @@ -1,65 +1,65 @@ -package com.yeshi.fanli.service.impl.tlj; - -import java.math.BigDecimal; -import java.util.Date; - -import javax.annotation.Resource; - -import org.springframework.stereotype.Service; - -import com.yeshi.fanli.dao.mybatis.tlj.UserTaoLiJinReportMapper; -import com.yeshi.fanli.entity.bus.tlj.UserTaoLiJinReport; -import com.yeshi.fanli.service.inter.tlj.UserTaoLiJinOriginService; -import com.yeshi.fanli.service.inter.tlj.UserTaoLiJinReportService; -import com.yeshi.fanli.util.StringUtil; - -@Service -public class UserTaoLiJinReportServiceImpl implements UserTaoLiJinReportService{ - - @Resource - private UserTaoLiJinReportMapper userTaoLiJinReportMapper; - - @Resource - private UserTaoLiJinOriginService userTaoLiJinOriginService; - - @Override - public void insertDefault(String rightsId) { - if (StringUtil.isNullOrEmpty(rightsId)) { - return; - } - - UserTaoLiJinReport report = new UserTaoLiJinReport(); - report.setId(rightsId); - report.setUnfreezeAmount(new BigDecimal(0)); - report.setUnfreezeNum(0); - report.setRefundAmount(new BigDecimal(0)); - report.setRefundNum(0); - report.setAlipayAmount(new BigDecimal(0)); - report.setUseAmount(new BigDecimal(0)); - report.setUseNum(0); - report.setWinAmount(new BigDecimal(0)); - report.setWinNum(0); - report.setPreCommissionAmount(new BigDecimal(0)); - report.setCreateTime(new Date()); - report.setUpdateTime(new Date()); - userTaoLiJinReportMapper.insertSelective(report); - } - - - @Override - public void updateByPrimaryKeySelective(UserTaoLiJinReport record) { - if (record == null || record.getId() == null) { - return; - } - record.setUpdateTime(new Date()); - - userTaoLiJinReportMapper.updateByPrimaryKeySelective(record); - } - - - @Override - public UserTaoLiJinReport selectByPrimaryKey(String id) { - return userTaoLiJinReportMapper.selectByPrimaryKeyStr(id); - } - -} +package com.yeshi.fanli.service.impl.tlj; + +import java.math.BigDecimal; +import java.util.Date; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.yeshi.fanli.dao.mybatis.tlj.UserTaoLiJinReportMapper; +import com.yeshi.fanli.entity.bus.tlj.UserTaoLiJinReport; +import com.yeshi.fanli.service.inter.tlj.UserTaoLiJinOriginService; +import com.yeshi.fanli.service.inter.tlj.UserTaoLiJinReportService; +import com.yeshi.fanli.util.StringUtil; + +@Service +public class UserTaoLiJinReportServiceImpl implements UserTaoLiJinReportService{ + + @Resource + private UserTaoLiJinReportMapper userTaoLiJinReportMapper; + + @Resource + private UserTaoLiJinOriginService userTaoLiJinOriginService; + + @Override + public void insertDefault(String rightsId) { + if (StringUtil.isNullOrEmpty(rightsId)) { + return; + } + + UserTaoLiJinReport report = new UserTaoLiJinReport(); + report.setId(rightsId); + report.setUnfreezeAmount(new BigDecimal(0)); + report.setUnfreezeNum(0); + report.setRefundAmount(new BigDecimal(0)); + report.setRefundNum(0); + report.setAlipayAmount(new BigDecimal(0)); + report.setUseAmount(new BigDecimal(0)); + report.setUseNum(0); + report.setWinAmount(new BigDecimal(0)); + report.setWinNum(0); + report.setPreCommissionAmount(new BigDecimal(0)); + report.setCreateTime(new Date()); + report.setUpdateTime(new Date()); + userTaoLiJinReportMapper.insertSelective(report); + } + + + @Override + public void updateByPrimaryKeySelective(UserTaoLiJinReport record) { + if (record == null || record.getId() == null) { + return; + } + record.setUpdateTime(new Date()); + + userTaoLiJinReportMapper.updateByPrimaryKeySelective(record); + } + + + @Override + public UserTaoLiJinReport selectByPrimaryKey(String id) { + return userTaoLiJinReportMapper.selectByPrimaryKeyStr(id); + } + +} -- Gitblit v1.8.0