admin
2018-12-10 5d59c0ad6e82b6255cf38c3dba715395af1d60a7
fanli/src/main/java/com/yeshi/fanli/service/impl/hongbao/AccountDetailsHongBaoMapServiceImpl.java
@@ -4,6 +4,7 @@
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.yeshi.fanli.dao.mybatis.money.AccountDetailHongBaoMapMapper;
@@ -12,6 +13,7 @@
import com.yeshi.fanli.entity.money.AccountDetailHongBaoMap;
import com.yeshi.fanli.service.inter.hongbao.AccountDetailsHongBaoMapService;
@Service
public class AccountDetailsHongBaoMapServiceImpl implements AccountDetailsHongBaoMapService {
   @Resource
@@ -27,11 +29,11 @@
      AccountDetailHongBaoMap map = new AccountDetailHongBaoMap();
      map.setAccountDetails(new AccountDetails(accountDetailsId));
      map.setCreateTime(new Date());
      map.setHongBao(new HongBao());
      map.setHongBao(new HongBao(hongBaoId));
      map.setUpdateTime(new Date());
      AccountDetailHongBaoMap oldMap = accountDetailHongBaoMapMapper.selectByHongBaoId(hongBaoId);
      if (oldMap == null) {
         accountDetailHongBaoMapMapper.insertSelective(oldMap);
         accountDetailHongBaoMapMapper.insertSelective(map);
      }
   }