Compare commits
12 Commits
afca9b2998
...
release-20
| Author | SHA1 | Date | |
|---|---|---|---|
| 6b052f0c10 | |||
|
|
4f02e78db1 | ||
|
|
16fcb1c714 | ||
| a929e49db7 | |||
| 40e1a3070f | |||
|
|
bc6f3d47d8 | ||
|
|
b15c8e82d0 | ||
|
|
f3e626050b | ||
|
|
fbad45da65 | ||
|
|
ad0beed1c5 | ||
| c07e7ec5fd | |||
| 53ab15a5ca |
@@ -6,7 +6,10 @@ CREATE TABLE merchant_flagship_store
|
||||
id int8 NOT NULL PRIMARY KEY, -- [主键]
|
||||
store_name VARCHAR(255) NOT NULL, -- 商家全称
|
||||
contact_phone VARCHAR(20), -- 商家联系电话
|
||||
province_id int8 NOT NULL,
|
||||
city_id int8 NOT NULL,
|
||||
regions_id int8 NOT NULL,
|
||||
region_name text NOT NULL, -- 地区名
|
||||
full_address text NOT NULL, -- 详细地址
|
||||
location geometry(Point, 4326) NOT NULL, -- 门店经纬度坐标(用于地图打点和距离计算)
|
||||
thumbnail_url text, -- 缩略图
|
||||
@@ -28,7 +31,10 @@ COMMENT ON TABLE merchant_flagship_store IS '商家旗舰店信息表';
|
||||
COMMENT ON COLUMN merchant_flagship_store.id IS '主键 ID';
|
||||
COMMENT ON COLUMN merchant_flagship_store.store_name IS '店铺名字';
|
||||
COMMENT ON COLUMN merchant_flagship_store.contact_phone IS '商家联系电话';
|
||||
COMMENT ON COLUMN merchant_flagship_store.province_id IS '省份id';
|
||||
COMMENT ON COLUMN merchant_flagship_store.city_id IS '城市id';
|
||||
COMMENT ON COLUMN merchant_flagship_store.regions_id IS '地址id';
|
||||
COMMENT ON COLUMN merchant_flagship_store.region_name IS '地区名';
|
||||
COMMENT ON COLUMN merchant_flagship_store.full_address IS '完整详细地址';
|
||||
COMMENT ON COLUMN merchant_flagship_store.location IS '地理坐标 POINT(经度,纬度),用于地图定位和距离计算';
|
||||
COMMENT ON COLUMN merchant_flagship_store.main_image_url IS '商家主图';
|
||||
@@ -224,6 +230,8 @@ CREATE TABLE tour_product
|
||||
description text DEFAULT NULL, -- 产品详情描述
|
||||
visit_count int4 DEFAULT 0, -- 已成团次数/销量
|
||||
rating decimal(3, 2) DEFAULT 0.00, -- 用户评分
|
||||
province_id int8 NOT NULL,
|
||||
city_id int8 NOT NULL,
|
||||
create_user int8 NULL, -- 创建人ID
|
||||
create_dept int8 NULL, -- 创建部门ID
|
||||
create_time timestamp(6) NULL, -- 创建时间
|
||||
@@ -259,6 +267,8 @@ COMMENT ON COLUMN tour_product.require_hk_macau_pass IS '是否强制港澳通
|
||||
COMMENT ON COLUMN tour_product.description IS '产品详情描述';
|
||||
COMMENT ON COLUMN tour_product.visit_count IS '已成团次数/销量';
|
||||
COMMENT ON COLUMN tour_product.rating IS '用户评分';
|
||||
COMMENT ON COLUMN tour_product.province_id IS '省份id';
|
||||
COMMENT ON COLUMN tour_product.city_id IS '城市id';
|
||||
COMMENT ON COLUMN tour_product.create_user IS '创建人ID';
|
||||
COMMENT ON COLUMN tour_product.create_dept IS '创建部门ID';
|
||||
COMMENT ON COLUMN tour_product.create_time IS '创建时间';
|
||||
@@ -378,5 +388,51 @@ INSERT INTO mall_category (id, category_name, image_url, pid, level, sort, is_de
|
||||
--------------------------------------------- 系统参数 -app支付宝aesKey ---------------------------------------------
|
||||
INSERT INTO blade_param (id, param_name, param_key, param_value, remark, create_user, create_dept, create_time, update_user, update_time, status, is_deleted) VALUES (2037772595062923266, 'app支付宝aesKey', 'yichuyilu.app.ali.aes.key', 'VS14+f0md0HjJ1D0Wp3Lgw==', 'app支付宝aesKey', null, null, '2026-03-28 14:03:41.282000', null, '2026-03-28 14:03:41.282000', 1, 0);
|
||||
|
||||
--------------------------------------------- 后台菜单 ---------------------------------------------
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2033415593821937665, 1123598815738675201, 'ecosystemProduct', '生态产品', 'menu', '/mall/ecosystemProduct', 'iconfont iconicon_addressbook', 11, 1, -1, 1, '', '', 0);
|
||||
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2033749606692487170, 1123598815738675201, 'merchantFlagshipStore', '商家旗舰店信息', 'menu', '/common/merchantFlagshipStore', 'iconfont iconicon_message', 13, 1, 0, 1, '', '', 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120179162013698', '2033749606692487170', 'merchantFlagshipStore_add', '新增', 'add', '/common/merchantFlagshipStore/add', 'plus', 1, 2, 1, 1, NULL, 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120179162013699', '2033749606692487170', 'merchantFlagshipStore_edit', '修改', 'edit', '/common/merchantFlagshipStore/edit', 'form', 2, 2, 2, 1, NULL, 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120179162013700', '2033749606692487170', 'merchantFlagshipStore_delete', '删除', 'delete', '/api/common/merchant-store/merchantFlagshipStore/remove', 'delete', 3, 2, 3, 1, NULL, 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120179162013701', '2033749606692487170', 'merchantFlagshipStore_view', '查看', 'view', '/common/merchantFlagshipStore/view', 'file-text', 4, 2, 2, 1, NULL, 0);
|
||||
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2033749607145472001, 1123598815738675201, 'culturalTourismSpot', '文旅景点信息', 'menu', '/common/culturalTourismSpot', 'iconfont iconicon_message', 14, 1, 0, 1, '', '', 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120179677913091', '2033749607145472001', 'culturalTourismSpot_add', '新增', 'add', '/common/culturalTourismSpot/add', 'plus', 1, 2, 1, 1, NULL, 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120179677913092', '2033749607145472001', 'culturalTourismSpot_edit', '修改', 'edit', '/common/culturalTourismSpot/edit', 'form', 2, 2, 2, 1, NULL, 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120179677913093', '2033749607145472001', 'culturalTourismSpot_delete', '删除', 'delete', '/api/common/tourism-spot/culturalTourismSpot/remove', 'delete', 3, 2, 3, 1, NULL, 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120179677913094', '2033749607145472001', 'culturalTourismSpot_view', '查看', 'view', '/common/culturalTourismSpot/view', 'file-text', 4, 2, 2, 1, NULL, 0);
|
||||
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2033749607535542273, 1123598815738675201, 'newsCategory', '资讯分类', 'menu', '/common/newsCategory', 'iconfont iconicon_message', 15, 1, 0, 1, '', '', 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120180067983362', '2033749607535542273', 'newsCategory_add', '新增', 'add', '/common/newsCategory/add', 'plus', 1, 2, 1, 1, NULL, 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120180067983363', '2033749607535542273', 'newsCategory_edit', '修改', 'edit', '/common/newsCategory/edit', 'form', 2, 2, 2, 1, NULL, 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120180067983364', '2033749607535542273', 'newsCategory_delete', '删除', 'delete', '/api/common/news-category/newsCategory/remove', 'delete', 3, 2, 3, 1, NULL, 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120180067983365', '2033749607535542273', 'newsCategory_view', '查看', 'view', '/common/newsCategory/view', 'file-text', 4, 2, 2, 1, NULL, 0);
|
||||
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2033749607929806849, 1123598815738675201, 'newsContent', '资讯内容', 'menu', '/common/newsContent', 'iconfont iconicon_message', 15, 1, 0, 1, '', '', 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120180458053634', '2033749607929806849', 'newsContent_add', '新增', 'add', '/common/newsContent/add', 'plus', 1, 2, 1, 1, NULL, 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120180458053635', '2033749607929806849', 'newsContent_edit', '修改', 'edit', '/common/newsContent/edit', 'form', 2, 2, 2, 1, NULL, 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120180458053636', '2033749607929806849', 'newsContent_delete', '删除', 'delete', '/api/common/news-content/newsContent/remove', 'delete', 3, 2, 3, 1, NULL, 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120180458053637', '2033749607929806849', 'newsContent_view', '查看', 'view', '/common/newsContent/view', 'file-text', 4, 2, 2, 1, NULL, 0);
|
||||
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2034868678830284801, 1123598815738675201, 'tourProduct', '旅游团产品', 'menu', '/common/tourProduct', 'iconfont iconicon_addressbook', 16, 1, 0, 1, '', '', 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120180839735298', '2034868678830284801', 'tourProduct_add', '新增', 'add', '/common/tourProduct/add', 'plus', 1, 2, 1, 1, NULL, 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120180839735299', '2034868678830284801', 'tourProduct_edit', '修改', 'edit', '/common/tourProduct/edit', 'form', 2, 2, 2, 1, NULL, 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120180839735300', '2034868678830284801', 'tourProduct_delete', '删除', 'delete', '/api/common/tour-product/tourProduct/remove', 'delete', 3, 2, 3, 1, NULL, 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120180839735301', '2034868678830284801', 'tourProduct_view', '查看', 'view', '/common/tourProduct/view', 'file-text', 4, 2, 2, 1, NULL, 0);
|
||||
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2034920957235105793, 1123598815738675201, 'commonTourProductOrder', '旅游团订单', 'menu', '/common/commonTourProductOrder', 'iconfont iconicon_addressbook', 17, 1, null, 1, null, '', 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2037361283308748801, 1123598815738675201, 'commonEcoOrder', '生态产品订单', 'menu', '/common/commonEcoOrder', 'iconfont iconicon_message', 12, 1, -1, 1, '', '', 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2037414831325212674, 0, 'upgrade', '动态升级', 'upgrade', '/upgrade', 'iconfont iconicon_message', 16, 1, null, 1, null, '', 0);
|
||||
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2037416131144216577, 2037414831325212674, 'marketUpgradeConfig', '用户升级配置', 'menu', '/market/marketUpgradeConfig', null, 1, 1, 0, 1, null, null, 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120182441959427', '2037416131144216577', 'marketUpgradeConfig_add', '新增', 'add', '/market/marketUpgradeConfig/add', 'plus', 1, 2, 1, 1, NULL, 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120182441959428', '2037416131144216577', 'marketUpgradeConfig_edit', '修改', 'edit', '/market/marketUpgradeConfig/edit', 'form', 2, 2, 2, 1, NULL, 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120182441959429', '2037416131144216577', 'marketUpgradeConfig_delete', '删除', 'delete', '/api/market/upgrade-config/marketUpgradeConfig/remove', 'delete', 3, 2, 3, 1, NULL, 0);
|
||||
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)VALUES ('2038120182441959430', '2037416131144216577', 'marketUpgradeConfig_view', '查看', 'view', '/market/marketUpgradeConfig/view', 'file-text', 4, 2, 2, 1, NULL, 0);
|
||||
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2037416131601395714, 2037414831325212674, 'marketUpgradeCashLog', '用户现金升级日志', 'menu', '/market/marketUpgradeCashLog', null, 2, 1, 0, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2037416131991465985, 2037414831325212674, 'marketUpgradeWelfareLog', '用户福利包升级日志', 'menu', '/market/marketUpgradeWelfareLog', null, 3, 1, 0, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2037416132381536257, 2037414831325212674, 'marketCashPerformanceLog', '现金业绩日志', 'menu', '/market/marketCashPerformanceLog', null, 4, 1, 0, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2037416132771606529, 2037414831325212674, 'marketWelfarePerformanceLog', '福利包业绩日志', 'menu', '/market/marketWelfarePerformanceLog', null, 5, 1, 0, 1, null, null, 0);
|
||||
|
||||
@@ -5,6 +5,8 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springblade.common.utils.date.DateUtil;
|
||||
import org.springblade.core.cache.utils.CacheUtil;
|
||||
import org.springblade.modules.market.constant.BladeMarketConstant;
|
||||
import org.springblade.modules.market.eums.MarketBusinessModule;
|
||||
import org.springblade.modules.market.pojo.entity.MarketBenefitPackageEntity;
|
||||
import org.springblade.modules.market.pojo.entity.MarketBenefitPointEntity;
|
||||
@@ -14,6 +16,8 @@ import org.springblade.modules.market.service.IMarketBenefitPackageService;
|
||||
import org.springblade.modules.market.service.IMarketBenefitPointLogService;
|
||||
import org.springblade.modules.market.service.IMarketBenefitPointService;
|
||||
import org.springblade.modules.market.service.IMarketPackageDailySettlementService;
|
||||
import org.springblade.modules.system.pojo.entity.Param;
|
||||
import org.springblade.modules.system.service.IParamService;
|
||||
import org.springframework.stereotype.Component;
|
||||
import tech.powerjob.worker.core.processor.ProcessResult;
|
||||
import tech.powerjob.worker.core.processor.TaskContext;
|
||||
@@ -27,6 +31,8 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static org.springblade.core.cache.constant.CacheConstant.PARAM_CACHE;
|
||||
|
||||
|
||||
/**
|
||||
* 福利包每日发放福利积分到用户
|
||||
@@ -40,6 +46,7 @@ public class BenefitPackageSendPointProcessor implements BasicProcessor {
|
||||
private final IMarketPackageDailySettlementService userPackageDailySettlementService;
|
||||
private final IMarketBenefitPointService benefitPointService;
|
||||
private final IMarketBenefitPointLogService benefitPointLogService;
|
||||
private final IParamService paramService;
|
||||
|
||||
@Override
|
||||
public ProcessResult process(TaskContext context) {
|
||||
@@ -56,6 +63,10 @@ public class BenefitPackageSendPointProcessor implements BasicProcessor {
|
||||
return new ProcessResult(false, "系统异常: " + e.getMessage());
|
||||
}
|
||||
|
||||
CacheUtil.clear(PARAM_CACHE);
|
||||
CacheUtil.clear(PARAM_CACHE, Boolean.FALSE);
|
||||
|
||||
paramService.update(Wrappers.<Param>lambdaUpdate().eq(Param::getParamKey, BladeMarketConstant.APP_BENEFIT_PACK_ALLOCATE_ENABLED).set(Param::getParamValue, Boolean.TRUE));
|
||||
// 返回结果,该结果会被持久化到数据库,在前端页面直接查看,极为方便
|
||||
return new ProcessResult(true, "result is success");
|
||||
}
|
||||
|
||||
@@ -4,10 +4,14 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springblade.common.utils.date.DateUtil;
|
||||
import org.springblade.core.cache.utils.CacheUtil;
|
||||
import org.springblade.modules.market.constant.BladeMarketConstant;
|
||||
import org.springblade.modules.market.pojo.entity.MarketBenefitPackageEntity;
|
||||
import org.springblade.modules.market.pojo.entity.MarketPackageDailySettlementEntity;
|
||||
import org.springblade.modules.market.service.IMarketBenefitPackageService;
|
||||
import org.springblade.modules.market.service.IMarketPackageDailySettlementService;
|
||||
import org.springblade.modules.system.pojo.entity.Param;
|
||||
import org.springblade.modules.system.service.IParamService;
|
||||
import org.springframework.stereotype.Component;
|
||||
import tech.powerjob.worker.core.processor.ProcessResult;
|
||||
import tech.powerjob.worker.core.processor.TaskContext;
|
||||
@@ -19,6 +23,8 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static org.springblade.core.cache.constant.CacheConstant.PARAM_CACHE;
|
||||
|
||||
/**
|
||||
* 福利包每日发放结算记录
|
||||
*/
|
||||
@@ -29,6 +35,7 @@ public class InitBenefitPackageSettlementProcessor implements BasicProcessor {
|
||||
|
||||
private final IMarketBenefitPackageService userBenefitPackageService;
|
||||
private final IMarketPackageDailySettlementService userPackageDailySettlementService;
|
||||
private final IParamService paramService;
|
||||
|
||||
@Override
|
||||
public ProcessResult process(TaskContext context) {
|
||||
@@ -36,6 +43,10 @@ public class InitBenefitPackageSettlementProcessor implements BasicProcessor {
|
||||
OmsLogger omsLogger = context.getOmsLogger(); // PowerJob 内置日志,控制台可查
|
||||
|
||||
try {
|
||||
CacheUtil.clear(PARAM_CACHE);
|
||||
CacheUtil.clear(PARAM_CACHE, Boolean.FALSE);
|
||||
|
||||
paramService.update(Wrappers.<Param>lambdaUpdate().eq(Param::getParamKey, BladeMarketConstant.APP_BENEFIT_PACK_ALLOCATE_ENABLED).set(Param::getParamValue, Boolean.TRUE));
|
||||
omsLogger.info("开始执行定时任务-初始化用户福利包每天结算记录...");
|
||||
initUserPackageDailySettlement();
|
||||
omsLogger.info("结束执行定时任务-初始化用户福利包每天结算记录");
|
||||
|
||||
@@ -45,7 +45,7 @@ public class MerchantFlagshipStoreController extends BladeController {
|
||||
@ApiOperationSupport(order = 1)
|
||||
@Operation(summary = "详情", description = "传入merchantFlagshipStore")
|
||||
public R<MerchantFlagshipStoreVO> detail(MerchantFlagshipStoreEntity merchantFlagshipStore) {
|
||||
MerchantFlagshipStoreEntity detail = merchantFlagshipStoreService.getById(merchantFlagshipStore.getId());
|
||||
MerchantFlagshipStoreEntity detail = merchantFlagshipStoreService.getByDetail(merchantFlagshipStore.getId());
|
||||
return R.data(MerchantFlagshipStoreWrapper.build().entityVO(detail));
|
||||
|
||||
}
|
||||
|
||||
@@ -43,10 +43,11 @@ public class MerchantFlagshipStoreEntity extends BaseEntity {
|
||||
*/
|
||||
@Schema(description = "地址id")
|
||||
private Long regionsId;
|
||||
private String regionName;
|
||||
/**
|
||||
* 完整详细地址文本
|
||||
* 详细地址
|
||||
*/
|
||||
@Schema(description = "完整详细地址文本")
|
||||
@Schema(description = "详细地址")
|
||||
private String fullAddress;
|
||||
/**
|
||||
* 地理坐标 POINT(经度,纬度),用于地图定位和距离计算
|
||||
@@ -87,6 +88,10 @@ public class MerchantFlagshipStoreEntity extends BaseEntity {
|
||||
@Schema(description = "商家详细介绍")
|
||||
private String storeDescription;
|
||||
|
||||
private Long provinceId;
|
||||
|
||||
private Long cityId;
|
||||
|
||||
|
||||
public void setLocation(double longitude, double latitude) {
|
||||
this.location = new org.locationtech.jts.geom.GeometryFactory()
|
||||
|
||||
@@ -131,5 +131,10 @@ public class TourProductEntity extends BaseEntity {
|
||||
@Schema(description = "评分,范围0.00~5.00")
|
||||
private BigDecimal rating;
|
||||
|
||||
private Long provinceId;
|
||||
|
||||
private Long cityId;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@ import org.springblade.modules.common.pojo.entity.MerchantFlagshipStoreEntity;
|
||||
public class MerchantFlagshipStoreVO extends MerchantFlagshipStoreEntity {
|
||||
|
||||
|
||||
private Long area;
|
||||
private String addressDetail;
|
||||
|
||||
}
|
||||
|
||||
@@ -42,6 +42,4 @@ public class TourProductVO extends TourProductEntity {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Long city;
|
||||
|
||||
}
|
||||
|
||||
@@ -37,4 +37,6 @@ public interface IMerchantFlagshipStoreService extends BaseService<MerchantFlags
|
||||
IPage<CommonMerchantStoreApiVO> merchantStoreList(MerchantStoreRequest request , IPage<CommonMerchantStoreApiVO> page);
|
||||
|
||||
CommonMerchantStoreDetailApiVO merchantStoreDetail(@NotNull(message = "无效店铺") Long id);
|
||||
|
||||
MerchantFlagshipStoreEntity getByDetail(Long id);
|
||||
}
|
||||
|
||||
@@ -141,14 +141,14 @@ public class CommonUserOrderServiceImpl extends ServiceImpl<CommonUserOrderMappe
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CommonUserOrderVO> exportUserMallOrderToExcel(Integer orderStatus, String account ,Date startDate, Date endDate) {
|
||||
public List<CommonUserOrderVO> exportUserMallOrderToExcel(Integer orderStatus, String account, Date startDate, Date endDate) {
|
||||
|
||||
Long countItem = baseMapper.countOrderExcelList(orderStatus, account, startDate, endDate, BusinessModule.SELF_OPERATED_MALL.getCode());
|
||||
if (countItem > 10000) {
|
||||
throw new ServiceException("导出数据量过大,超过" + 10000 + "条数据,请缩小范围导出");
|
||||
}
|
||||
|
||||
return baseMapper.selectOrderExcelList(orderStatus, account ,startDate, endDate ,BusinessModule.SELF_OPERATED_MALL.getCode());
|
||||
return baseMapper.selectOrderExcelList(orderStatus, account, startDate, endDate, BusinessModule.SELF_OPERATED_MALL.getCode());
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -158,7 +158,7 @@ public class CommonUserOrderServiceImpl extends ServiceImpl<CommonUserOrderMappe
|
||||
throw new ServiceException("导出数据量过大,超过" + 10000 + "条数据,请缩小范围导出");
|
||||
}
|
||||
|
||||
return baseMapper.selectOrderExcelList(orderStatus, account ,startDate, endDate ,BusinessModule.ECOSYSTEM_PRODUCT.getCode());
|
||||
return baseMapper.selectOrderExcelList(orderStatus, account, startDate, endDate, BusinessModule.ECOSYSTEM_PRODUCT.getCode());
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -168,7 +168,7 @@ public class CommonUserOrderServiceImpl extends ServiceImpl<CommonUserOrderMappe
|
||||
throw new ServiceException("导出数据量过大,超过" + 10000 + "条数据,请缩小范围导出");
|
||||
}
|
||||
|
||||
return baseMapper.selectOrderExcelList(orderStatus, account ,startDate, endDate ,BusinessModule.TRAVEL_GROUP.getCode());
|
||||
return baseMapper.selectOrderExcelList(orderStatus, account, startDate, endDate, BusinessModule.TRAVEL_GROUP.getCode());
|
||||
}
|
||||
|
||||
|
||||
@@ -185,22 +185,23 @@ public class CommonUserOrderServiceImpl extends ServiceImpl<CommonUserOrderMappe
|
||||
public CreateOrderResponse createMallOrder(CreateMallOrderRequest request) {
|
||||
BigDecimal discount = BigDecimal.ZERO;
|
||||
String orderType = request.getOrderType().toUpperCase();
|
||||
if (!request.getIsOfflinePayment()) {
|
||||
discount = BigDecimal.valueOf(new Random().nextInt(99) + 1, 2);
|
||||
}
|
||||
if (!BusinessModule.fromCodeIgnoreCaseOrNull(orderType).equals(BusinessModule.SELF_OPERATED_MALL)){
|
||||
|
||||
if (!BusinessModule.fromCodeIgnoreCaseOrNull(orderType).equals(BusinessModule.SELF_OPERATED_MALL)) {
|
||||
throw new ServiceException("无效业务订单");
|
||||
}
|
||||
if (request.getConsigneePhone() == null){
|
||||
if (request.getConsigneePhone() == null) {
|
||||
throw new ServiceException("请填写联系电话");
|
||||
}
|
||||
|
||||
if (request.getConsignee() == null){
|
||||
if (request.getConsignee() == null) {
|
||||
throw new ServiceException("请填写联系人");
|
||||
}
|
||||
|
||||
MallProductEntity product = productService.getById(Long.valueOf(request.getItemCode()));
|
||||
Assert.notNull(product, "无效商品");
|
||||
if (!request.getIsOfflinePayment() && product.getRetailPrice().compareTo(BigDecimal.ONE) > 0) {
|
||||
discount = BigDecimal.valueOf(new Random().nextInt(99) + 1, 2);
|
||||
}
|
||||
CommonUserOrderEntity order = AppCommonConvert.INSTANCE.convertMallProductToOrder(request, product);
|
||||
BigDecimal totalAmount = product.getRetailPrice().multiply(BigDecimal.valueOf(request.getQuantity())).setScale(2, RoundingMode.DOWN);
|
||||
BigDecimal actualAmount = totalAmount.subtract(discount);
|
||||
@@ -209,7 +210,7 @@ public class CommonUserOrderServiceImpl extends ServiceImpl<CommonUserOrderMappe
|
||||
order.setTotalAmount(totalAmount);
|
||||
order.setActualAmount(actualAmount);
|
||||
order.setOrderType(orderType);
|
||||
order.setPaymentType(request.getIsOfflinePayment() ? request.getPaymentType() : null);
|
||||
order.setPaymentType(request.getPaymentType());
|
||||
order.setCreateTime(new Date());
|
||||
this.save(order);
|
||||
return new CreateOrderResponse(String.valueOf(order.getId()), actualAmount, totalAmount, discount);
|
||||
@@ -232,11 +233,11 @@ public class CommonUserOrderServiceImpl extends ServiceImpl<CommonUserOrderMappe
|
||||
throw new ServiceException("商品ID格式非法");
|
||||
}
|
||||
|
||||
if (request.getPaymentType() != 1 && request.getPaymentType() != 2){
|
||||
if (request.getPaymentType() != 1 && request.getPaymentType() != 2) {
|
||||
throw new ServiceException("请选择正确的支付方式");
|
||||
}
|
||||
|
||||
if (!BusinessModule.fromCodeIgnoreCaseOrNull(request.getOrderType()).equals(BusinessModule.TRAVEL_GROUP)){
|
||||
if (!BusinessModule.fromCodeIgnoreCaseOrNull(request.getOrderType()).equals(BusinessModule.TRAVEL_GROUP)) {
|
||||
throw new ServiceException("无效业务订单");
|
||||
}
|
||||
|
||||
@@ -245,11 +246,11 @@ public class CommonUserOrderServiceImpl extends ServiceImpl<CommonUserOrderMappe
|
||||
throw new ServiceException("请至少选择一名出行人");
|
||||
}
|
||||
|
||||
if (request.getTourStartDate() == null || request.getTourEndDate() == null){
|
||||
if (request.getTourStartDate() == null || request.getTourEndDate() == null) {
|
||||
throw new ServiceException("请选择出行时间");
|
||||
}
|
||||
|
||||
if (request.getTourStartDate().getTime() >= request.getTourEndDate().getTime()){
|
||||
if (request.getTourStartDate().getTime() >= request.getTourEndDate().getTime()) {
|
||||
throw new ServiceException("开始时间不能大于结束时间");
|
||||
}
|
||||
|
||||
@@ -259,8 +260,6 @@ public class CommonUserOrderServiceImpl extends ServiceImpl<CommonUserOrderMappe
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
int selectedCount = travelerIds.size();
|
||||
// 使用 Optional 处理数据库中可能为 NULL 的最大/最小人数限制
|
||||
int minPeople = Optional.ofNullable(tourProduct.getMinPeople()).orElse(1);
|
||||
@@ -309,7 +308,6 @@ public class CommonUserOrderServiceImpl extends ServiceImpl<CommonUserOrderMappe
|
||||
}
|
||||
|
||||
|
||||
|
||||
BigDecimal actualAmount = totalAmount.subtract(discount);
|
||||
if (actualAmount.compareTo(BigDecimal.ZERO) < 0) {
|
||||
actualAmount = BigDecimal.ZERO; // 防止实付金额为负
|
||||
@@ -351,8 +349,6 @@ public class CommonUserOrderServiceImpl extends ServiceImpl<CommonUserOrderMappe
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public IPage<CommonUserOrderApiVO> selectOrderApiPage(IPage<CommonUserOrderApiVO> page, CommonUserOrderApiVO userOrder) {
|
||||
CommonUserOrderEntity entity = new CommonUserOrderEntity();
|
||||
@@ -453,7 +449,7 @@ public class CommonUserOrderServiceImpl extends ServiceImpl<CommonUserOrderMappe
|
||||
if (order == null) {
|
||||
throw new ServiceException("无效订单");
|
||||
}
|
||||
if (!BusinessModule.fromCodeIgnoreCaseOrNull(order.getOrderType()).equals(BusinessModule.SELF_OPERATED_MALL)){
|
||||
if (!BusinessModule.fromCodeIgnoreCaseOrNull(order.getOrderType()).equals(BusinessModule.SELF_OPERATED_MALL)) {
|
||||
throw new ServiceException("无效业务订单");
|
||||
}
|
||||
boolean updated = update(Wrappers.<CommonUserOrderEntity>lambdaUpdate()
|
||||
@@ -498,14 +494,14 @@ public class CommonUserOrderServiceImpl extends ServiceImpl<CommonUserOrderMappe
|
||||
if (!request.getIsOfflinePayment()) {
|
||||
discount = BigDecimal.valueOf(new Random().nextInt(99) + 1, 2);
|
||||
}
|
||||
if (!BusinessModule.fromCodeIgnoreCaseOrNull(orderType).equals(BusinessModule.ECOSYSTEM_PRODUCT)){
|
||||
if (!BusinessModule.fromCodeIgnoreCaseOrNull(orderType).equals(BusinessModule.ECOSYSTEM_PRODUCT)) {
|
||||
throw new ServiceException("无效业务订单");
|
||||
}
|
||||
if (request.getConsigneePhone() == null){
|
||||
if (request.getConsigneePhone() == null) {
|
||||
throw new ServiceException("请填写联系电话");
|
||||
}
|
||||
|
||||
if (request.getConsignee() == null){
|
||||
if (request.getConsignee() == null) {
|
||||
throw new ServiceException("请填写联系人");
|
||||
}
|
||||
|
||||
@@ -519,7 +515,7 @@ public class CommonUserOrderServiceImpl extends ServiceImpl<CommonUserOrderMappe
|
||||
order.setTotalAmount(totalAmount);
|
||||
order.setActualAmount(actualAmount);
|
||||
order.setOrderType(orderType);
|
||||
order.setPaymentType(request.getIsOfflinePayment() ? request.getPaymentType() : null);
|
||||
order.setPaymentType(request.getPaymentType());
|
||||
order.setCreateTime(new Date());
|
||||
this.save(order);
|
||||
return new CreateOrderResponse(String.valueOf(order.getId()), actualAmount, totalAmount, discount);
|
||||
@@ -531,7 +527,7 @@ public class CommonUserOrderServiceImpl extends ServiceImpl<CommonUserOrderMappe
|
||||
if (order == null) {
|
||||
throw new ServiceException("无效订单");
|
||||
}
|
||||
if (!BusinessModule.fromCodeIgnoreCaseOrNull(order.getOrderType()).equals(BusinessModule.ECOSYSTEM_PRODUCT)){
|
||||
if (!BusinessModule.fromCodeIgnoreCaseOrNull(order.getOrderType()).equals(BusinessModule.ECOSYSTEM_PRODUCT)) {
|
||||
throw new ServiceException("无效业务订单");
|
||||
}
|
||||
boolean updated = update(Wrappers.<CommonUserOrderEntity>lambdaUpdate()
|
||||
@@ -553,7 +549,7 @@ public class CommonUserOrderServiceImpl extends ServiceImpl<CommonUserOrderMappe
|
||||
if (order == null) {
|
||||
throw new ServiceException("无效订单");
|
||||
}
|
||||
if (!BusinessModule.fromCodeIgnoreCaseOrNull(order.getOrderType()).equals(BusinessModule.TRAVEL_GROUP)){
|
||||
if (!BusinessModule.fromCodeIgnoreCaseOrNull(order.getOrderType()).equals(BusinessModule.TRAVEL_GROUP)) {
|
||||
throw new ServiceException("无效业务订单");
|
||||
}
|
||||
boolean updated = update(Wrappers.<CommonUserOrderEntity>lambdaUpdate()
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package org.springblade.modules.common.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
@@ -42,11 +43,11 @@ public class MerchantFlagshipStoreServiceImpl extends BaseServiceImpl<MerchantFl
|
||||
|
||||
@Override
|
||||
public boolean saveStore(MerchantFlagshipStoreVO storeVO) {
|
||||
if (storeVO.getArea() == null){
|
||||
if (storeVO.getRegionsId() == null){
|
||||
throw new ServiceException("请选择地址");
|
||||
}
|
||||
|
||||
CommonRegionsInfoEntity regionsInfo = commonRegionsInfoService.getById(storeVO.getArea());
|
||||
CommonRegionsInfoEntity regionsInfo = commonRegionsInfoService.getById(storeVO.getRegionsId());
|
||||
if (regionsInfo == null){
|
||||
throw new ServiceException("请选择正确的地址");
|
||||
}
|
||||
@@ -57,7 +58,10 @@ public class MerchantFlagshipStoreServiceImpl extends BaseServiceImpl<MerchantFl
|
||||
|
||||
store.setLocation(locationDTO.getLongitude() , locationDTO.getLatitude());
|
||||
store.setRegionsId(regionsInfo.getId());
|
||||
store.setFullAddress(regionsInfo.getFullName() + storeVO.getAddressDetail());
|
||||
store.setProvinceId(storeVO.getProvinceId());
|
||||
store.setCityId(storeVO.getCityId());
|
||||
store.setFullAddress( storeVO.getFullAddress());
|
||||
store.setRegionName( regionsInfo.getFullName());
|
||||
|
||||
store.setStoreName(storeVO.getStoreName());
|
||||
store.setContactPhone(storeVO.getContactPhone());
|
||||
@@ -74,11 +78,11 @@ public class MerchantFlagshipStoreServiceImpl extends BaseServiceImpl<MerchantFl
|
||||
|
||||
@Override
|
||||
public boolean updateStore(MerchantFlagshipStoreVO storeVO) {
|
||||
if (storeVO.getArea() == null) {
|
||||
if (storeVO.getRegionsId() == null) {
|
||||
throw new ServiceException("请选择地址");
|
||||
}
|
||||
|
||||
CommonRegionsInfoEntity regionsInfo = commonRegionsInfoService.getById(storeVO.getArea());
|
||||
CommonRegionsInfoEntity regionsInfo = commonRegionsInfoService.getById(storeVO.getRegionsId());
|
||||
if (regionsInfo == null) {
|
||||
throw new ServiceException("请选择正确的地址");
|
||||
}
|
||||
@@ -89,7 +93,10 @@ public class MerchantFlagshipStoreServiceImpl extends BaseServiceImpl<MerchantFl
|
||||
|
||||
store.setLocation(locationDTO.getLongitude(), locationDTO.getLatitude());
|
||||
store.setRegionsId(regionsInfo.getId());
|
||||
store.setFullAddress(regionsInfo.getFullName() + storeVO.getAddressDetail());
|
||||
store.setProvinceId(storeVO.getProvinceId());
|
||||
store.setCityId(storeVO.getCityId());
|
||||
store.setFullAddress( storeVO.getFullAddress());
|
||||
store.setRegionName( regionsInfo.getFullName());
|
||||
|
||||
store.setId(storeVO.getId());
|
||||
store.setStoreName(storeVO.getStoreName());
|
||||
@@ -129,5 +136,28 @@ public class MerchantFlagshipStoreServiceImpl extends BaseServiceImpl<MerchantFl
|
||||
return this.baseMapper.merchantStoreDetail(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MerchantFlagshipStoreEntity getByDetail(Long id) {
|
||||
return getOne(
|
||||
new LambdaQueryWrapper<MerchantFlagshipStoreEntity>()
|
||||
.select(MerchantFlagshipStoreEntity::getId,
|
||||
MerchantFlagshipStoreEntity::getStoreName,
|
||||
MerchantFlagshipStoreEntity::getContactPhone,
|
||||
MerchantFlagshipStoreEntity::getThumbnailUrl,
|
||||
MerchantFlagshipStoreEntity::getMainImageUrl,
|
||||
MerchantFlagshipStoreEntity::getDetailImages,
|
||||
MerchantFlagshipStoreEntity::getBusinessHours,
|
||||
MerchantFlagshipStoreEntity::getStoreDescription,
|
||||
MerchantFlagshipStoreEntity::getRegionsId,
|
||||
MerchantFlagshipStoreEntity::getProvinceId,
|
||||
MerchantFlagshipStoreEntity::getCityId,
|
||||
MerchantFlagshipStoreEntity::getFullAddress,
|
||||
MerchantFlagshipStoreEntity::getRegionName
|
||||
)
|
||||
.eq(MerchantFlagshipStoreEntity::getId, id)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -47,11 +47,11 @@ public class TourProductServiceImpl extends BaseServiceImpl<TourProductMapper, T
|
||||
throw new ServiceException("评分在0.1在5.0之间");
|
||||
}
|
||||
|
||||
if (tourProduct.getCity() == null){
|
||||
if (tourProduct.getCityId() == null){
|
||||
throw new ServiceException("请选择地址");
|
||||
}
|
||||
|
||||
CommonRegionsInfoEntity regionsInfo = commonRegionsInfoService.getById(tourProduct.getCity());
|
||||
CommonRegionsInfoEntity regionsInfo = commonRegionsInfoService.getById(tourProduct.getCityId());
|
||||
if (regionsInfo == null){
|
||||
throw new ServiceException("请选择正确的地址");
|
||||
}
|
||||
@@ -63,7 +63,9 @@ public class TourProductServiceImpl extends BaseServiceImpl<TourProductMapper, T
|
||||
tourProductEntity.setThumbnailUrl(tourProduct.getThumbnailUrl());
|
||||
tourProductEntity.setMainImageUrl(tourProduct.getMainImageUrl());
|
||||
tourProductEntity.setDetailImages(tourProduct.getDetailImages());
|
||||
tourProductEntity.setCityName(regionsInfo.getName());
|
||||
tourProductEntity.setCityName(regionsInfo.getFullName());
|
||||
tourProductEntity.setProvinceId(tourProduct.getProvinceId());
|
||||
tourProductEntity.setCityId(tourProduct.getCityId());
|
||||
tourProductEntity.setDurationDays(tourProduct.getDurationDays());
|
||||
tourProductEntity.setDurationNights(tourProduct.getDurationNights());
|
||||
tourProductEntity.setBasePrice(tourProduct.getBasePrice());
|
||||
@@ -95,10 +97,10 @@ public class TourProductServiceImpl extends BaseServiceImpl<TourProductMapper, T
|
||||
}
|
||||
|
||||
|
||||
if (tourProduct.getCity() == null){
|
||||
if (tourProduct.getCityId() == null){
|
||||
throw new ServiceException("请选择地址");
|
||||
}
|
||||
CommonRegionsInfoEntity regionsInfo = commonRegionsInfoService.getById(tourProduct.getCity());
|
||||
CommonRegionsInfoEntity regionsInfo = commonRegionsInfoService.getById(tourProduct.getCityId());
|
||||
if (regionsInfo == null){
|
||||
throw new ServiceException("请选择正确的地址");
|
||||
}
|
||||
@@ -110,7 +112,9 @@ public class TourProductServiceImpl extends BaseServiceImpl<TourProductMapper, T
|
||||
tourProductEntity.setThumbnailUrl(tourProduct.getThumbnailUrl());
|
||||
tourProductEntity.setMainImageUrl(tourProduct.getMainImageUrl());
|
||||
tourProductEntity.setDetailImages(tourProduct.getDetailImages());
|
||||
tourProductEntity.setCityName(regionsInfo.getName());
|
||||
tourProductEntity.setCityName(regionsInfo.getFullName());
|
||||
tourProductEntity.setProvinceId(tourProduct.getProvinceId());
|
||||
tourProductEntity.setCityId(tourProduct.getCityId());
|
||||
tourProductEntity.setDurationDays(tourProduct.getDurationDays());
|
||||
tourProductEntity.setDurationNights(tourProduct.getDurationNights());
|
||||
tourProductEntity.setBasePrice(tourProduct.getBasePrice());
|
||||
|
||||
@@ -12,5 +12,8 @@ public interface BladeMarketConstant {
|
||||
// 用户兑换福利包-上级福利积分奖励配置
|
||||
String BENEFIT_PACK_SUPERIOR_REWARD_CONFIG = "market.benefit.pack.superior.reward.config";
|
||||
|
||||
// 是否开启兑换福利包
|
||||
String APP_BENEFIT_PACK_ALLOCATE_ENABLED = "app.market.benefit.pack.allocate.enabled";
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ import org.springblade.modules.market.pojo.vo.UserMallSpendVO;
|
||||
import org.springblade.modules.market.pojo.vo.UserPerformanceVO;
|
||||
import org.springblade.modules.market.service.*;
|
||||
import org.springblade.modules.system.pojo.entity.User;
|
||||
import org.springblade.modules.system.service.IParamService;
|
||||
import org.springblade.modules.system.service.IUserService;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
@@ -62,6 +63,8 @@ public class MarketUserManager {
|
||||
private final IMarketCashPerformanceService cashPerformanceService;
|
||||
private final IMarketWelfarePerformanceService welfarePerformanceService;
|
||||
|
||||
private final IParamService paramService;
|
||||
|
||||
public List<MarketDirectInfoApiVO> findUserPackList() {
|
||||
Long userId = AuthUtil.getUserId();
|
||||
MarketInfoEntity marketInfoEntity = marketInfoService.getById(userId);
|
||||
@@ -150,6 +153,11 @@ public class MarketUserManager {
|
||||
|
||||
@Transactional(rollbackFor = ServiceException.class)
|
||||
public boolean acquireBenefitPackage(AcquireBenefitPackageRequest request) {
|
||||
|
||||
if (!Boolean.parseBoolean(ParamCache.getValue(BladeMarketConstant.APP_BENEFIT_PACK_ALLOCATE_ENABLED))){
|
||||
throw new ServiceException("系统结算中,请于结算完成之后再兑换。");
|
||||
}
|
||||
|
||||
Long userId = AuthUtil.getUserId();
|
||||
User user = userService.getById(userId);
|
||||
if(user == null){
|
||||
|
||||
@@ -323,13 +323,4 @@ blade:
|
||||
enabled: false
|
||||
|
||||
|
||||
forest:
|
||||
max-connections: 1000 # 连接池最大连接数
|
||||
connect-timeout: 60000 # 连接超时时间,单位为毫秒
|
||||
read-timeout: 60000 # 数据读取超时时间,单位为毫秒
|
||||
max-retry-count: 3 # 最大请求重试次数,默认为 0 次
|
||||
max-retry-interval: 1000 # 为最大重试时间间隔, 单位为毫秒
|
||||
log-response-content: true
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user