admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
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);
   }
}