From 48a204f4c90a80c0bb4e5ba1f9f0f42939cadba8 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 01 一月 2020 10:19:34 +0800 Subject: [PATCH] 用户资金记录bug修改,京东,拼多多小程序商品转链 --- fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/FloatADServiceImpl.java | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/FloatADServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/FloatADServiceImpl.java index b6fa8c1..867cbb0 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/FloatADServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/FloatADServiceImpl.java @@ -53,6 +53,10 @@ throw new FloatADException(1, "璺宠浆鍙傛暟闈濲SON鏍煎紡"); } + FloatADTypeEnum typeEnum = record.getTypeEnum(); + if (typeEnum == null) + throw new FloatADException(1, "绫诲瀷涓嶈兘涓虹┖"); + if (!StringUtil.isNullOrEmpty(jumpType)) { List<JumpDetailV2> listByType = jumpDetailV2Service.listByType(jumpType); if (listByType !=null && listByType.size() > 0) { @@ -161,7 +165,7 @@ } @Override - @Transactional + @Transactional(rollbackFor=Exception.class) public void updateOrder(Long id, Integer moveType) throws FloatADException { if (id == null || moveType == null || (!moveType.equals(1) && !moveType.equals(-1))) { @@ -194,7 +198,7 @@ } @Override - @Transactional + @Transactional(rollbackFor=Exception.class) public int deleteByPrimaryKeyList(List<Long> list) throws Exception{ List<FloatAD> listSwiper = floatADMapper.ListByPrimaryKey(list); -- Gitblit v1.8.0