|
@@ -16,6 +16,7 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import com.tour.module.mapper.MakeCardMapper;
|
|
|
import com.tour.module.domain.MakeCard;
|
|
|
import com.tour.module.service.IMakeCardService;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.util.ArrayList;
|
|
@@ -32,6 +33,7 @@ public class MakeCardServiceImpl extends ServiceImpl<MakeCardMapper, MakeCard> i
|
|
|
|
|
|
@Resource
|
|
|
IMakeCardAllocationService iMakeCardAllocationService;
|
|
|
+ @Resource
|
|
|
ICardService iCardService;
|
|
|
@Resource
|
|
|
RedisCache redisCache;
|
|
@@ -69,6 +71,7 @@ public class MakeCardServiceImpl extends ServiceImpl<MakeCardMapper, MakeCard> i
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public boolean makeCard(MakeCard markCard) {
|
|
|
int result = baseMapper.insert(markCard);
|
|
|
Long cardNo =null;
|