## 报单时激活判断调整;还原指定商品盒数累计;
This commit is contained in:
parent
622a066e0f
commit
75ad4f97a3
|
@ -148,7 +148,7 @@ public class IMemberAccountAuditServiceProvider implements IMemberAccountAuditSe
|
||||||
}
|
}
|
||||||
//驳回
|
//驳回
|
||||||
if (approveOperation == (EApproveOperation.REJECT.getValue())) {
|
if (approveOperation == (EApproveOperation.REJECT.getValue())) {
|
||||||
// TODO: 2023/2/17 根据后需求,是否重新发起
|
// 根据后需求,是否重新发起
|
||||||
// cuMemberRechargeService.updateDelFlagByRechargeCode(businessCode);
|
// cuMemberRechargeService.updateDelFlagByRechargeCode(businessCode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -464,11 +464,9 @@ public class CuMemberRechargeServiceImpl extends ServiceImpl<CuMemberRechargeMap
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CuMemberRechargeDetailVO queryCuMemberRechargeDetail(Long pkId) {
|
public CuMemberRechargeDetailVO queryCuMemberRechargeDetail(Long pkId) {
|
||||||
// TODO: 2022/11/9 详情功能暂无
|
|
||||||
CuMemberRechargeDetailVO memberRechargeDetailVo = new CuMemberRechargeDetailVO();
|
CuMemberRechargeDetailVO memberRechargeDetailVo = new CuMemberRechargeDetailVO();
|
||||||
CuMemberRechargeExt memberRecharge = baseMapper.selectMemberRechargeById(pkId);
|
CuMemberRechargeExt memberRecharge = baseMapper.selectMemberRechargeById(pkId);
|
||||||
BeanUtils.copyProperties(memberRecharge, memberRechargeDetailVo);
|
BeanUtils.copyProperties(memberRecharge, memberRechargeDetailVo);
|
||||||
|
|
||||||
return memberRechargeDetailVo;
|
return memberRechargeDetailVo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -298,11 +298,6 @@ public class RetailOrderServiceImpl implements IRetailOrderService {
|
||||||
// // 2025.03.11 添加需求,复购专区、重消专区,指定盒数商品每用户每月限购50件
|
// // 2025.03.11 添加需求,复购专区、重消专区,指定盒数商品每用户每月限购50件
|
||||||
// this.checkWaresLimit(cuMember.getPkId(), orderParam.getSpecialArea(), waresDetailExtList, boxProductList);
|
// this.checkWaresLimit(cuMember.getPkId(), orderParam.getSpecialArea(), waresDetailExtList, boxProductList);
|
||||||
|
|
||||||
// 商品编号列表
|
|
||||||
List<String> waresCodeList = waresDetailExtList.stream().map(BdWaresDetailExt::getWaresCode).collect(Collectors.toList());
|
|
||||||
// 根据商品获取商品下所有产品数据
|
|
||||||
Map<Integer, BdProduct> productMap = iBdProductService.listProductInfoByWaresCode(orderParam.getSpecialArea(), waresCodeList);
|
|
||||||
|
|
||||||
// 遍历生成订单明细数据
|
// 遍历生成订单明细数据
|
||||||
for (BdWaresDetailExt waresDetailExt : waresDetailExtList) {
|
for (BdWaresDetailExt waresDetailExt : waresDetailExtList) {
|
||||||
// // 价格KEY(商品编号 + 价格)
|
// // 价格KEY(商品编号 + 价格)
|
||||||
|
@ -322,10 +317,9 @@ public class RetailOrderServiceImpl implements IRetailOrderService {
|
||||||
saOrderHandle.setPostageTmpMap(orderParam.getTranType(), postageMap, waresDetailExt, orderItems);
|
saOrderHandle.setPostageTmpMap(orderParam.getTranType(), postageMap, waresDetailExt, orderItems);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (null != productMap.get(orderItems.getPkProduct())
|
if (boxProductList.contains(waresDetailExt.getWaresCode())) {
|
||||||
&& boxProductList.contains(productMap.get(orderItems.getPkProduct()).getProductCode())) {
|
// 商品是盒数商品,需要累计数量
|
||||||
// 产品是盒数产品,需要累计数量
|
boxNum += orderItems.getWaresQuantity();
|
||||||
boxNum += orderItems.getQuantity();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -791,27 +785,6 @@ public class RetailOrderServiceImpl implements IRetailOrderService {
|
||||||
return resultStr;
|
return resultStr;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 保存订单处理
|
|
||||||
*
|
|
||||||
* @param saOrderExt 订单信息
|
|
||||||
*/
|
|
||||||
private void saveOrderHandle(SaOrderExt saOrderExt) {
|
|
||||||
iSaOrderService.save(saOrderExt);
|
|
||||||
// for (int i = 0; i < 3; i++) {
|
|
||||||
// // 保存订单时,如果出现异常,最多重试3次
|
|
||||||
// try {
|
|
||||||
// iSaOrderService.save(saOrderExt);
|
|
||||||
// return;
|
|
||||||
// } catch (Exception e) {
|
|
||||||
// log.error("保存订单失败,retry: {}, order: {}", i, saOrderExt, e);
|
|
||||||
//
|
|
||||||
// saOrderExt.setOrderCode(saOrderExt.getOrderCode() + RandomUtil.randomString("ABCEFGHIJKLMNOPQRSTUVWXYZ", 1));
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// throw new ServiceException("保存订单并重试失败");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 保存订单以及明细
|
* 保存订单以及明细
|
||||||
*
|
*
|
||||||
|
@ -820,7 +793,7 @@ public class RetailOrderServiceImpl implements IRetailOrderService {
|
||||||
private void saveOrder(SaOrderExt saOrderExt) {
|
private void saveOrder(SaOrderExt saOrderExt) {
|
||||||
saOrderExt.setPayTime(new Date());
|
saOrderExt.setPayTime(new Date());
|
||||||
saOrderExt.setOrderStatus(EOrderStatus.PAY.getValue());
|
saOrderExt.setOrderStatus(EOrderStatus.PAY.getValue());
|
||||||
this.saveOrderHandle(saOrderExt);
|
iSaOrderService.save(saOrderExt);
|
||||||
|
|
||||||
// 订单商品拆分数据
|
// 订单商品拆分数据
|
||||||
List<SaOrderWares> orderWaresList = new ArrayList<>();
|
List<SaOrderWares> orderWaresList = new ArrayList<>();
|
||||||
|
@ -899,7 +872,6 @@ public class RetailOrderServiceImpl implements IRetailOrderService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (orderWaresList.size() > 0) {
|
if (orderWaresList.size() > 0) {
|
||||||
// 订单商品拆分表
|
// 订单商品拆分表
|
||||||
iSaOrderWaresService.saveBatch(orderWaresList);
|
iSaOrderWaresService.saveBatch(orderWaresList);
|
||||||
|
@ -957,11 +929,10 @@ public class RetailOrderServiceImpl implements IRetailOrderService {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
private Boolean handleMemberActivate(CuMember cuMember, SaOrderExt saOrder) {
|
private Boolean handleMemberActivate(CuMember cuMember, SaOrderExt saOrder) {
|
||||||
if (EYesNo.YES.getIntValue() != cuMember.getIsActivate()
|
if ((null == cuMember.getIsActivate() || EYesNo.YES.getIntValue() != cuMember.getIsActivate())
|
||||||
&& (EOrderType.RETAIL_REGISTER.getValue() == saOrder.getOrderType()
|
&& (EOrderType.RETAIL_REGISTER.getValue() == saOrder.getOrderType() || EOrderType.RETAIL_UPGRADE.getValue() == saOrder.getOrderType())
|
||||||
|| EOrderType.RETAIL_UPGRADE.getValue() == saOrder.getOrderType())
|
|
||||||
) {
|
) {
|
||||||
// 会员未激活,并且是 注册、升级 订单,判断会员是否激活
|
// 会员激活状态为空 或 未激活,并且是 注册、升级 订单,判断会员是否激活
|
||||||
if (saOrder.getBoxNum() > 0) {
|
if (saOrder.getBoxNum() > 0) {
|
||||||
// 存在指定盒数商品
|
// 存在指定盒数商品
|
||||||
cuMember.setIsActivate(EYesNo.YES.getIntValue());
|
cuMember.setIsActivate(EYesNo.YES.getIntValue());
|
||||||
|
|
|
@ -31,9 +31,4 @@ public class WaresItemsParam implements Serializable {
|
||||||
*/
|
*/
|
||||||
private Integer pkProduct;
|
private Integer pkProduct;
|
||||||
|
|
||||||
/**
|
|
||||||
* 产品编号
|
|
||||||
*/
|
|
||||||
private String productCode;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1575,6 +1575,7 @@ public class SaOrderServiceImpl extends ServiceImpl<SaOrderMapper, SaOrder> impl
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 验证第二部门是否需要验证首单
|
* 验证第二部门是否需要验证首单
|
||||||
|
*
|
||||||
* @param pkParent 推荐人
|
* @param pkParent 推荐人
|
||||||
* @param pkCountry 国家
|
* @param pkCountry 国家
|
||||||
*/
|
*/
|
||||||
|
@ -1589,12 +1590,10 @@ public class SaOrderServiceImpl extends ServiceImpl<SaOrderMapper, SaOrder> impl
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* 验证第二部门是否需要验证首单
|
||||||
|
*
|
||||||
* @param pkPlaceParent 安置位置
|
* @param pkPlaceParent 安置位置
|
||||||
* @param pkCountry 国家
|
* @param pkCountry 国家
|
||||||
* @Description: 验证第二部门是否需要验证首单
|
|
||||||
* @return: boolean
|
|
||||||
* @Author: sui q
|
|
||||||
* @Date: 2022/9/7 9:29
|
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean validateLeftExistMember(Long pkPlaceParent, Integer pkCountry) {
|
public boolean validateLeftExistMember(Long pkPlaceParent, Integer pkCountry) {
|
||||||
|
@ -2620,8 +2619,6 @@ public class SaOrderServiceImpl extends ServiceImpl<SaOrderMapper, SaOrder> impl
|
||||||
gradeList = iGradeServiceApi.getRetailGradeList().getData();
|
gradeList = iGradeServiceApi.getRetailGradeList().getData();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 补全产品编号
|
|
||||||
handleOrderItemsParamsProduct(orderItemsParams);
|
|
||||||
// 盒数产品
|
// 盒数产品
|
||||||
List<String> boxProductList = BoxProductUtil.getBoxProductListBySystemType(systemType);
|
List<String> boxProductList = BoxProductUtil.getBoxProductListBySystemType(systemType);
|
||||||
|
|
||||||
|
@ -2629,11 +2626,9 @@ public class SaOrderServiceImpl extends ServiceImpl<SaOrderMapper, SaOrder> impl
|
||||||
int boxNum = 0;
|
int boxNum = 0;
|
||||||
// 判断订单明细中指定产品数量,校验等级
|
// 判断订单明细中指定产品数量,校验等级
|
||||||
for (OrderItemsParam orderItemsParam : orderItemsParams) {
|
for (OrderItemsParam orderItemsParam : orderItemsParams) {
|
||||||
for (WaresItemsParam waresItemsParam : orderItemsParam.getWaresItemsParamList()) {
|
if (boxProductList.contains(orderItemsParam.getWaresCode())) {
|
||||||
if (boxProductList.contains(waresItemsParam.getProductCode())) {
|
// 存在指定商品,需要累计盒数
|
||||||
// 存在指定产品,需要累计盒数(产品数量 * 商品数量)
|
boxNum += orderItemsParam.getQuantity();
|
||||||
boxNum += waresItemsParam.getQuantity() * orderItemsParam.getQuantity();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3586,29 +3581,4 @@ public class SaOrderServiceImpl extends ServiceImpl<SaOrderMapper, SaOrder> impl
|
||||||
return cuMemberLevel;
|
return cuMemberLevel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 处理订单明细产品编号信息
|
|
||||||
*
|
|
||||||
* @param orderItemsParams
|
|
||||||
*/
|
|
||||||
private void handleOrderItemsParamsProduct(List<OrderItemsParam> orderItemsParams) {
|
|
||||||
if (CollectionUtil.isNotEmpty(orderItemsParams)) {
|
|
||||||
Set<Integer> pkProductSet = new HashSet<>();
|
|
||||||
for (OrderItemsParam orderItemsParam : orderItemsParams) {
|
|
||||||
for (WaresItemsParam waresItemsParam : orderItemsParam.getWaresItemsParamList()) {
|
|
||||||
pkProductSet.add(waresItemsParam.getPkProduct());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (pkProductSet.size() > 0) {
|
|
||||||
Map<Integer, String> productCodeMap = iBdProductService.getProductCodeMap(pkProductSet);
|
|
||||||
for (OrderItemsParam orderItemsParam : orderItemsParams) {
|
|
||||||
for (WaresItemsParam waresItemsParam : orderItemsParam.getWaresItemsParamList()) {
|
|
||||||
// 补全产品编号
|
|
||||||
waresItemsParam.setProductCode(productCodeMap.get(waresItemsParam.getPkProduct()));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,14 +62,4 @@ public interface BdProductMapper extends BaseMapper<BdProduct> {
|
||||||
*/
|
*/
|
||||||
ProductVo getByProductId(@Param("productId") Integer productId);
|
ProductVo getByProductId(@Param("productId") Integer productId);
|
||||||
|
|
||||||
/**
|
|
||||||
* 根据商品获取对应产品信息
|
|
||||||
*
|
|
||||||
* @param specialArea 商品专区
|
|
||||||
* @param waresCodeList 商品编码列表
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
List<BdProduct> listProductInfoByWaresCode(@Param("specialArea") Integer specialArea,
|
|
||||||
@Param("waresCodeList") List<String> waresCodeList);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -123,21 +123,4 @@ public interface IBdProductService extends IService<BdProduct> {
|
||||||
*/
|
*/
|
||||||
ProductVo getByProductId(Integer productId);
|
ProductVo getByProductId(Integer productId);
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取产品编号map
|
|
||||||
*
|
|
||||||
* @param pkProductSet
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
Map<Integer, String> getProductCodeMap(Collection<Integer> pkProductSet);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 根据商品获取对应产品信息
|
|
||||||
*
|
|
||||||
* @param specialArea 商品专区
|
|
||||||
* @param waresCodeList 商品编码列表
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
Map<Integer, BdProduct> listProductInfoByWaresCode(Integer specialArea, List<String> waresCodeList);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -527,30 +527,4 @@ public class BdProductServiceImpl extends ServiceImpl<BdProductMapper, BdProduct
|
||||||
return baseMapper.getByProductId(productId);
|
return baseMapper.getByProductId(productId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Map<Integer, String> getProductCodeMap(Collection<Integer> pkProductSet) {
|
|
||||||
Map<Integer, String> productCodeMap = new HashMap<>();
|
|
||||||
|
|
||||||
LambdaQueryWrapper<BdProduct> queryWrapper = new LambdaQueryWrapper<>();
|
|
||||||
queryWrapper.in(BdProduct::getPkId, pkProductSet);
|
|
||||||
List<BdProduct> productList = this.list(queryWrapper);
|
|
||||||
for (BdProduct bdProduct : productList) {
|
|
||||||
productCodeMap.put(bdProduct.getPkId(), bdProduct.getProductCode());
|
|
||||||
}
|
|
||||||
return productCodeMap;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Map<Integer, BdProduct> listProductInfoByWaresCode(Integer specialArea, List<String> waresCodeList) {
|
|
||||||
Map<Integer, BdProduct> productMap = new HashMap<>();
|
|
||||||
|
|
||||||
List<BdProduct> bdProductList = baseMapper.listProductInfoByWaresCode(specialArea, waresCodeList);
|
|
||||||
if (CollectionUtil.isNotEmpty(bdProductList)) {
|
|
||||||
for (BdProduct bdProduct : bdProductList) {
|
|
||||||
productMap.put(bdProduct.getPkId(), bdProduct);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return productMap;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -235,24 +235,4 @@
|
||||||
and bp.pk_id = #{productId}
|
and bp.pk_id = #{productId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 根据商品获取对应产品信息 -->
|
|
||||||
<select id="listProductInfoByWaresCode" resultType="com.hzs.common.domain.sale.product.BdProduct">
|
|
||||||
select bp.pk_id, bp.product_code
|
|
||||||
from bd_wares bw
|
|
||||||
left join BD_WARES_DETAIL bwd
|
|
||||||
on bw.pk_id = bwd.pk_wares
|
|
||||||
and bwd.del_flag = 0
|
|
||||||
and bwd.is_gift = 1
|
|
||||||
left join bd_product bp
|
|
||||||
on bp.pk_id = bwd.pk_product
|
|
||||||
and bp.del_flag = 0
|
|
||||||
where bw.del_flag = 0
|
|
||||||
and bw.special_area = #{specialArea}
|
|
||||||
and bw.wares_code in
|
|
||||||
<foreach collection="waresCodeList" item="item" open="(" close=")" separator=",">
|
|
||||||
#{item}
|
|
||||||
</foreach>
|
|
||||||
order by bw.pk_id
|
|
||||||
</select>
|
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
@ -25,11 +25,7 @@ import javax.servlet.http.HttpServletRequest;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author: sui q
|
* 防止重复提交的切面类
|
||||||
* @time: 2022/8/27 14:45
|
|
||||||
* @description:防止重复提交的切面类
|
|
||||||
* @classname: RepeatSubmitAspectAdvice
|
|
||||||
* @package_name: com.hzs.common.core.aspect
|
|
||||||
*/
|
*/
|
||||||
@Aspect
|
@Aspect
|
||||||
@Component
|
@Component
|
||||||
|
|
|
@ -12,14 +12,28 @@ public class RetailProductConstants {
|
||||||
* 盒数产品列表
|
* 盒数产品列表
|
||||||
*/
|
*/
|
||||||
public static final List<String> BOX_PRODUCT_LIST = Arrays.asList(
|
public static final List<String> BOX_PRODUCT_LIST = Arrays.asList(
|
||||||
"CP20250001", "CP20250002", "CP20250003", "CP20250004", "CP20250005", "CP20250006"
|
// 注册
|
||||||
|
"SP02410001", "SP02410002", "SP02410003", "SP02410004", "SP02410005", "SP02410006",
|
||||||
|
// 升级
|
||||||
|
"SP02420001", "SP02420002", "SP02420003", "SP02420004", "SP02420005", "SP02420006",
|
||||||
|
// 复消
|
||||||
|
"SP02430001", "SP02430002", "SP02430003", "SP02430004", "SP02430005", "SP02430006",
|
||||||
|
// 重消
|
||||||
|
"SP02440001", "SP02440002", "SP02440003", "SP02440005", "SP02440005", "SP02440006"
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 盒数产品列表
|
* 盒数产品列表
|
||||||
*/
|
*/
|
||||||
public static final List<String> ALL_BOX_WARES_LIST = Arrays.asList(
|
public static final List<String> ALL_BOX_WARES_LIST = Arrays.asList(
|
||||||
"CP20250001", "CP20250002", "CP20250003", "CP20250004", "CP20250005", "CP20250006"
|
// 注册
|
||||||
|
"SP02410001", "SP02410002", "SP02410003", "SP02410004", "SP02410005", "SP02410006",
|
||||||
|
// 升级
|
||||||
|
"SP02420001", "SP02420002", "SP02420003", "SP02420004", "SP02420005", "SP02420006",
|
||||||
|
// 复消
|
||||||
|
"SP02430001", "SP02430002", "SP02430003", "SP02430004", "SP02430005", "SP02430006",
|
||||||
|
// 重消
|
||||||
|
"SP02440001", "SP02440002", "SP02440003", "SP02440005", "SP02440005", "SP02440006"
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,157 +1,153 @@
|
||||||
package com.hzs.common.core.constant.msg;
|
package com.hzs.common.core.constant.msg;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 产品相关
|
* 产品相关
|
||||||
* @Author: yuhui
|
|
||||||
* @Time: 2022/9/8 9:31
|
|
||||||
* @Classname: ProductMsgConstants
|
|
||||||
* @PackageName: com.hzs.common.core.constant.msg
|
|
||||||
*/
|
*/
|
||||||
public class ProductMsgConstants {
|
public class ProductMsgConstants {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品提交没有选择专区 -- 所属专区必选
|
* 商品提交没有选择专区 -- 所属专区必选
|
||||||
*/
|
*/
|
||||||
public static final String SPECIAL_AREA_REQUIRED = "所属专区必选";
|
public static final String SPECIAL_AREA_REQUIRED = "所属专区必选";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品没有选择专区分类提示 -- 分类名称必填
|
* 商品没有选择专区分类提示 -- 分类名称必填
|
||||||
*/
|
*/
|
||||||
public static final String SPECIAL_AREA_CLASSIFY_REQUIRED = "分类名称必填";
|
public static final String SPECIAL_AREA_CLASSIFY_REQUIRED = "分类名称必填";
|
||||||
/**
|
/**
|
||||||
* 排序重复 -- 排序重复
|
* 排序重复 -- 排序重复
|
||||||
*/
|
*/
|
||||||
public static final String SORT_REPEAT = "排序重复";
|
public static final String SORT_REPEAT = "排序重复";
|
||||||
/**
|
/**
|
||||||
* 规格分类已被占用 -- 规格分类已被占用
|
* 规格分类已被占用 -- 规格分类已被占用
|
||||||
*/
|
*/
|
||||||
public static final String SPECS_TYPE_IS_USE = "规格分类已被占用";
|
public static final String SPECS_TYPE_IS_USE = "规格分类已被占用";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分类名称重复 -- 分类名称重复
|
* 分类名称重复 -- 分类名称重复
|
||||||
*/
|
*/
|
||||||
public static final String CLASSIFY_NAME_REPEAT = "分类名称重复";
|
public static final String CLASSIFY_NAME_REPEAT = "分类名称重复";
|
||||||
/**
|
/**
|
||||||
* 排序值超出限制 -- 排序值超出限制
|
* 排序值超出限制 -- 排序值超出限制
|
||||||
*/
|
*/
|
||||||
public static final String SORT_VALUES_OVERLIMIT = "排序值超出限制";
|
public static final String SORT_VALUES_OVERLIMIT = "排序值超出限制";
|
||||||
/**
|
/**
|
||||||
* 新增产品编号已存在 -- 产品编号已存在
|
* 新增产品编号已存在 -- 产品编号已存在
|
||||||
*/
|
*/
|
||||||
public static final String PRODUCT_NUMBER_ALREADY_EXISTS = "产品编号已存在";
|
public static final String PRODUCT_NUMBER_ALREADY_EXISTS = "产品编号已存在";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 产品已被占用 -- 产品已被占用
|
* 产品已被占用 -- 产品已被占用
|
||||||
*/
|
*/
|
||||||
public static final String PRODUCT_OCCUPIED = "产品已被占用";
|
public static final String PRODUCT_OCCUPIED = "产品已被占用";
|
||||||
/**
|
/**
|
||||||
* 产品名称必填 -- 产品名称必填
|
* 产品名称必填 -- 产品名称必填
|
||||||
*/
|
*/
|
||||||
public static final String PRODUCT_NAME_REQUIRED = "产品名称必填";
|
public static final String PRODUCT_NAME_REQUIRED = "产品名称必填";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 产品划线价 -- 产品划线价必填
|
* 产品划线价 -- 产品划线价必填
|
||||||
*/
|
*/
|
||||||
public static final String PRODUCT_PRICE_REQUIRED = "产品划线价必填";
|
public static final String PRODUCT_PRICE_REQUIRED = "产品划线价必填";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 产品不存在 -- 产品不存在
|
* 产品不存在 -- 产品不存在
|
||||||
*/
|
*/
|
||||||
public static final String PRODUCT_NOT_REQUIRED = "产品不存在";
|
public static final String PRODUCT_NOT_REQUIRED = "产品不存在";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 发货渠道/发货类型 -- 产品发货渠道必填
|
* 发货渠道/发货类型 -- 产品发货渠道必填
|
||||||
*/
|
*/
|
||||||
public static final String PRODUCT_SHIPPING_CHANNEL_REQUIRED = "产品发货渠道必填";
|
public static final String PRODUCT_SHIPPING_CHANNEL_REQUIRED = "产品发货渠道必填";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 产品保质期 -- 产品保质期必填
|
* 产品保质期 -- 产品保质期必填
|
||||||
*/
|
*/
|
||||||
public static final String PRODUCT_SHELFLIFE_REQUIRED = "产品保质期必填";
|
public static final String PRODUCT_SHELFLIFE_REQUIRED = "产品保质期必填";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 产品单位 -- 产品单位必填
|
* 产品单位 -- 产品单位必填
|
||||||
*/
|
*/
|
||||||
public static final String PRODUCT_UNIT_REQUIRED = "产品单位必填";
|
public static final String PRODUCT_UNIT_REQUIRED = "产品单位必填";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 产品重量 -- 产品重量必填
|
* 产品重量 -- 产品重量必填
|
||||||
*/
|
*/
|
||||||
public static final String PRODUCT_WEIGHT_REQUIRED = "产品重量必填";
|
public static final String PRODUCT_WEIGHT_REQUIRED = "产品重量必填";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 邮费重量 -- 邮费重量必填
|
* 邮费重量 -- 邮费重量必填
|
||||||
*/
|
*/
|
||||||
public static final String PRODUCT_POSTAGE_WEIGHT_REQUIRED = "邮费重量必填";
|
public static final String PRODUCT_POSTAGE_WEIGHT_REQUIRED = "邮费重量必填";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 产品属性 -- 产品属性必选
|
* 产品属性 -- 产品属性必选
|
||||||
*/
|
*/
|
||||||
public static final String PRODUCT_ATTR_REQUIRED = "产品属性必选";
|
public static final String PRODUCT_ATTR_REQUIRED = "产品属性必选";
|
||||||
/**
|
/**
|
||||||
* 产品分类 -- 产品分类必选
|
* 产品分类 -- 产品分类必选
|
||||||
*/
|
*/
|
||||||
public static final String PRODUCT_CLASSIFY_REQUIRED = "产品分类必选";
|
public static final String PRODUCT_CLASSIFY_REQUIRED = "产品分类必选";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 排序序号 -- 产品排序序号必填
|
* 排序序号 -- 产品排序序号必填
|
||||||
*/
|
*/
|
||||||
public static final String PRODUCT_SORT_REQUIRED = "产品排序序号必填";
|
public static final String PRODUCT_SORT_REQUIRED = "产品排序序号必填";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 产品长 -- 产品长度必填
|
* 产品长 -- 产品长度必填
|
||||||
*/
|
*/
|
||||||
public static final String PRODUCT_LENGTH_REQUIRED = "产品长度必填";
|
public static final String PRODUCT_LENGTH_REQUIRED = "产品长度必填";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 产品宽 -- 产品宽度必填
|
* 产品宽 -- 产品宽度必填
|
||||||
*/
|
*/
|
||||||
public static final String PRODUCT_WIDTH_REQUIRED = "产品宽度必填";
|
public static final String PRODUCT_WIDTH_REQUIRED = "产品宽度必填";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 产品高 -- 产品高度必填
|
* 产品高 -- 产品高度必填
|
||||||
*/
|
*/
|
||||||
public static final String PRODUCT_HEIGHT_REQUIRED = "产品高度必填";
|
public static final String PRODUCT_HEIGHT_REQUIRED = "产品高度必填";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 产品主图 -- 请上传产品主图
|
* 产品主图 -- 请上传产品主图
|
||||||
*/
|
*/
|
||||||
public static final String PRODUCT_COVER_REQUIRED = "请上传产品主图";
|
public static final String PRODUCT_COVER_REQUIRED = "请上传产品主图";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 请选择商品 -- 请选择商品
|
* 请选择商品 -- 请选择商品
|
||||||
*/
|
*/
|
||||||
public static final String PLEASE_SELECT_PRODUCT = "请选择商品";
|
public static final String PLEASE_SELECT_PRODUCT = "请选择商品";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 请选择产品规格 -- 请选择产品规格
|
* 请选择产品规格 -- 请选择产品规格
|
||||||
*/
|
*/
|
||||||
public static final String PRODUCT_SPECSTYPE_REQUIRED = "请选择产品规格";
|
public static final String PRODUCT_SPECSTYPE_REQUIRED = "请选择产品规格";
|
||||||
/**
|
/**
|
||||||
* 规格类型名称 -- 规格类型名称必填
|
* 规格类型名称 -- 规格类型名称必填
|
||||||
*/
|
*/
|
||||||
public static final String PRODUCT_SPECS_TYPE_NAME_REQUIRED = "规格类型名称必填";
|
public static final String PRODUCT_SPECS_TYPE_NAME_REQUIRED = "规格类型名称必填";
|
||||||
/**
|
/**
|
||||||
* 规格类型分类 -- 规格类型分类必选
|
* 规格类型分类 -- 规格类型分类必选
|
||||||
*/
|
*/
|
||||||
public static final String PRODUCT_SPECS_TYPE_PKCLASSIFY_REQUIRED = "规格类型分类必选";
|
public static final String PRODUCT_SPECS_TYPE_PKCLASSIFY_REQUIRED = "规格类型分类必选";
|
||||||
/**
|
/**
|
||||||
* 规格值必填 -- 请填写规格值
|
* 规格值必填 -- 请填写规格值
|
||||||
*/
|
*/
|
||||||
public static final String PRODUCT_SPECS_TYPE_SPECS_REQUIRED = "请填写规格值";
|
public static final String PRODUCT_SPECS_TYPE_SPECS_REQUIRED = "请填写规格值";
|
||||||
/**
|
/**
|
||||||
* 商品分类展示图片必穿 -- 请上传商品分类展示图片
|
* 商品分类展示图片必穿 -- 请上传商品分类展示图片
|
||||||
*/
|
*/
|
||||||
public static final String WARES_AREA_CLASSIFY_IMG_REQUIRED = "请上传商品分类展示图片";
|
public static final String WARES_AREA_CLASSIFY_IMG_REQUIRED = "请上传商品分类展示图片";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 上级商品分类必传 -- 请选择上级分类
|
* 上级商品分类必传 -- 请选择上级分类
|
||||||
*/
|
*/
|
||||||
public static final String WARES_PARENT_AREA_CLASSIFY_REQUIRED = "请选择上级分类";
|
public static final String WARES_PARENT_AREA_CLASSIFY_REQUIRED = "请选择上级分类";
|
||||||
/**
|
/**
|
||||||
* 商品分类存在子级 -- 当前商品分类下存在子级类目,无法删除,请先删除子级
|
* 商品分类存在子级 -- 当前商品分类下存在子级类目,无法删除,请先删除子级
|
||||||
*/
|
*/
|
||||||
public static final String THIS_CLASSIFY_EXIST_BELOW = "当前商品分类下存在子级类目,无法删除,请先删除子级";
|
public static final String THIS_CLASSIFY_EXIST_BELOW = "当前商品分类下存在子级类目,无法删除,请先删除子级";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 该产品每个国家只能存在一款
|
* 该产品每个国家只能存在一款
|
||||||
|
|
|
@ -5,11 +5,7 @@ import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description: 用户类型分类
|
* 用户类型分类
|
||||||
* Author: sui q
|
|
||||||
* Time: 2022/9/8 16:39
|
|
||||||
* Classname: ECategory
|
|
||||||
* PackageName: com.hzs.common.core.enums
|
|
||||||
*/
|
*/
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@Getter
|
@Getter
|
||||||
|
|
|
@ -8,11 +8,7 @@ import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 系统配置参数初始化,该点不需要翻译
|
* 系统配置参数初始化,该点不需要翻译
|
||||||
* @Author: sui q
|
|
||||||
* @Time: 2022/9/6 19:49
|
|
||||||
* @Classname: ESystemConfig
|
|
||||||
* @PackageName: com.hzs.common.core.enums
|
|
||||||
*/
|
*/
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@Getter
|
@Getter
|
||||||
|
@ -41,7 +37,7 @@ public enum ESystemConfig {
|
||||||
/**
|
/**
|
||||||
* 安置位置 1=任意 2=左 3=右 安置校验的
|
* 安置位置 1=任意 2=左 3=右 安置校验的
|
||||||
*/
|
*/
|
||||||
PLACE_POSITION("0","安置位置", 0, "PLACE_3"),
|
PLACE_POSITION("0", "安置位置", 0, "PLACE_3"),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 注册等级 参照等级
|
* 注册等级 参照等级
|
||||||
|
@ -163,8 +159,8 @@ public enum ESystemConfig {
|
||||||
* 专区时间
|
* 专区时间
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public static List<ESystemConfig> getPayMentTimeList(){
|
public static List<ESystemConfig> getPayMentTimeList() {
|
||||||
List<ESystemConfig> list =new ArrayList<>();
|
List<ESystemConfig> list = new ArrayList<>();
|
||||||
list.add(REGISTER_ORDER_TIME);
|
list.add(REGISTER_ORDER_TIME);
|
||||||
list.add(UPGRADE_ORDER_TIME);
|
list.add(UPGRADE_ORDER_TIME);
|
||||||
list.add(REPURCHASE_ORDER_TIME);
|
list.add(REPURCHASE_ORDER_TIME);
|
||||||
|
|
|
@ -18,7 +18,7 @@ public class BoxProductUtil {
|
||||||
List<String> productList = new ArrayList<>(0);
|
List<String> productList = new ArrayList<>(0);
|
||||||
|
|
||||||
if (null == systemType || ESystemType.ALL.getValue() == systemType) {
|
if (null == systemType || ESystemType.ALL.getValue() == systemType) {
|
||||||
productList.addAll(RetailProductConstants.BOX_PRODUCT_LIST);
|
productList.addAll(RetailProductConstants.ALL_BOX_WARES_LIST);
|
||||||
return productList;
|
return productList;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,6 @@ public class ExpressServiceImpl implements IExpressService {
|
||||||
String url = expressConfig.getUrl();
|
String url = expressConfig.getUrl();
|
||||||
|
|
||||||
QueryTrackParam queryTrackParam = new QueryTrackParam();
|
QueryTrackParam queryTrackParam = new QueryTrackParam();
|
||||||
// TODO: 2022/4/18 快递公司的编码现在暂不传,后期根据需求而定
|
|
||||||
// queryTrackParam.setCom("JD");
|
// queryTrackParam.setCom("JD");
|
||||||
queryTrackParam.setNum(trackingNumber);
|
queryTrackParam.setNum(trackingNumber);
|
||||||
queryTrackParam.setPhone(mobile);
|
queryTrackParam.setPhone(mobile);
|
||||||
|
|
Loading…
Reference in New Issue