## 充值提货商品添加提货来源;
This commit is contained in:
parent
defe92fa25
commit
be644782af
|
@ -1,13 +1,9 @@
|
||||||
package com.hzs.common.util;
|
package com.hzs.common.util;
|
||||||
|
|
||||||
import com.hzs.common.core.constant.CacheConstants;
|
|
||||||
import com.hzs.common.core.enums.ELanguages;
|
|
||||||
import com.hzs.common.core.service.RedisService;
|
import com.hzs.common.core.service.RedisService;
|
||||||
import com.hzs.common.core.utils.SpringUtils;
|
import com.hzs.common.core.utils.SpringUtils;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
|
||||||
import org.springframework.beans.factory.InitializingBean;
|
import org.springframework.beans.factory.InitializingBean;
|
||||||
import org.springframework.context.i18n.LocaleContextHolder;
|
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -19,7 +15,7 @@ import org.springframework.stereotype.Component;
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class TransactionUtils implements InitializingBean {
|
public class TransactionUtils implements InitializingBean {
|
||||||
|
|
||||||
private static RedisService redisService;
|
// private static RedisService redisService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取国际化翻译内容
|
* 获取国际化翻译内容
|
||||||
|
@ -53,7 +49,7 @@ public class TransactionUtils implements InitializingBean {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void afterPropertiesSet() {
|
public void afterPropertiesSet() {
|
||||||
redisService = SpringUtils.getBean(RedisService.class);
|
// redisService = SpringUtils.getBean(RedisService.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -280,8 +280,6 @@ public class AcPickController extends BaseController {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description: 删除充值提货卡
|
* @description: 删除充值提货卡
|
||||||
* @author: zhang jing
|
|
||||||
* @date: 2023/10/17 17:35
|
|
||||||
* @param: [anpParam]
|
* @param: [anpParam]
|
||||||
* @return: com.hzs.common.core.web.domain.AjaxResult
|
* @return: com.hzs.common.core.web.domain.AjaxResult
|
||||||
**/
|
**/
|
||||||
|
|
|
@ -76,4 +76,9 @@ public class AcPickSaveDetailParam implements Serializable {
|
||||||
*/
|
*/
|
||||||
private String productName;
|
private String productName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 提货类型
|
||||||
|
*/
|
||||||
|
private Integer pickType;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,16 +73,12 @@ public interface IAcPickService extends IService<AcPick> {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @description: 更新提货单
|
* @description: 更新提货单
|
||||||
* @author: sui q
|
|
||||||
* @date: 2023/5/30 19:49
|
|
||||||
* @param: null null
|
* @param: null null
|
||||||
**/
|
**/
|
||||||
boolean updatePickUse(List<AcPickExt> acPickExtList, Integer signSource, List<AcPickMemberLog> acPickMemberLogList);
|
boolean updatePickUse(List<AcPickExt> acPickExtList, Integer signSource, List<AcPickMemberLog> acPickMemberLogList);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @description: 更新提货单
|
* @description: 更新提货单
|
||||||
* @author: sui q
|
|
||||||
* @date: 2023/5/30 19:49
|
|
||||||
* @param: null null
|
* @param: null null
|
||||||
**/
|
**/
|
||||||
boolean updatePickUse(List<AcPickExt> acPickExtList, List<AcPickMemberLog> acPickMemberLogList);
|
boolean updatePickUse(List<AcPickExt> acPickExtList, List<AcPickMemberLog> acPickMemberLogList);
|
||||||
|
@ -116,8 +112,6 @@ public interface IAcPickService extends IService<AcPick> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description: 删除充值提货卡发起签呈
|
* @description: 删除充值提货卡发起签呈
|
||||||
* @author: zhang jing
|
|
||||||
* @date: 2023/10/17 18:00
|
|
||||||
* @param: [anpParam]
|
* @param: [anpParam]
|
||||||
* @return: boolean
|
* @return: boolean
|
||||||
**/
|
**/
|
||||||
|
@ -133,8 +127,6 @@ public interface IAcPickService extends IService<AcPick> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description: 审核删除充值提货卡
|
* @description: 审核删除充值提货卡
|
||||||
* @author: zhang jing
|
|
||||||
* @date: 2023/10/18 16:19
|
|
||||||
* @param: [resultDTO]
|
* @param: [resultDTO]
|
||||||
* @return: java.lang.String
|
* @return: java.lang.String
|
||||||
**/
|
**/
|
||||||
|
|
|
@ -265,13 +265,6 @@ public class AcPickServiceImpl extends ServiceImpl<AcPickMapper, AcPick> impleme
|
||||||
return TransactionUtils.getContent(CommonMsgConstants.OPERATION_FAILED);
|
return TransactionUtils.getContent(CommonMsgConstants.OPERATION_FAILED);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @description: 删除充值提货卡发起签呈
|
|
||||||
* @author: zhang jing
|
|
||||||
* @date: 2023/10/17 18:01
|
|
||||||
* @param: [anpParam]
|
|
||||||
* @return: boolean
|
|
||||||
**/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean delPick(AcPickSaveParam param) {
|
public boolean delPick(AcPickSaveParam param) {
|
||||||
// 会员ID
|
// 会员ID
|
||||||
|
@ -380,13 +373,6 @@ public class AcPickServiceImpl extends ServiceImpl<AcPickMapper, AcPick> impleme
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @description: 审核新增提货卡
|
|
||||||
* @author:
|
|
||||||
* @date: 2023/10/18 15:58
|
|
||||||
* @param: [resultDTO]
|
|
||||||
* @return: java.lang.String
|
|
||||||
**/
|
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
@Override
|
@Override
|
||||||
public String pickApprovalAgree(ApprovalBusinessResultDTO resultDTO) {
|
public String pickApprovalAgree(ApprovalBusinessResultDTO resultDTO) {
|
||||||
|
@ -419,9 +405,12 @@ public class AcPickServiceImpl extends ServiceImpl<AcPickMapper, AcPick> impleme
|
||||||
CuMember cuMember = iMemberServiceApi.getMember(detailParam.getMemberCode()).getData();
|
CuMember cuMember = iMemberServiceApi.getMember(detailParam.getMemberCode()).getData();
|
||||||
// 提货ID
|
// 提货ID
|
||||||
Long pickId = null;
|
Long pickId = null;
|
||||||
|
// 提货类型
|
||||||
|
Integer pickType = null != detailParam.getPickType() ? detailParam.getPickType() : EPickType.PICK_PRODUCT.getValue();
|
||||||
|
|
||||||
if (null == detailParam.getPkId()) {
|
if (null == detailParam.getPkId()) {
|
||||||
LambdaQueryWrapper<AcPick> queryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<AcPick> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
queryWrapper.eq(AcPick::getPickType, EPickType.PICK_PRODUCT.getValue());
|
queryWrapper.eq(AcPick::getPickType, pickType);
|
||||||
queryWrapper.eq(AcPick::getPkBaseConfig, 0);
|
queryWrapper.eq(AcPick::getPkBaseConfig, 0);
|
||||||
queryWrapper.eq(AcPick::getPkDataId, detailParam.getPkProduct());
|
queryWrapper.eq(AcPick::getPkDataId, detailParam.getPkProduct());
|
||||||
queryWrapper.eq(AcPick::getSpecsNameId, detailParam.getSpecsNameId());
|
queryWrapper.eq(AcPick::getSpecsNameId, detailParam.getSpecsNameId());
|
||||||
|
@ -438,7 +427,7 @@ public class AcPickServiceImpl extends ServiceImpl<AcPickMapper, AcPick> impleme
|
||||||
if (null == pickId) {
|
if (null == pickId) {
|
||||||
// 新增提货数据
|
// 新增提货数据
|
||||||
acPick.setPkMember(cuMember.getPkId());
|
acPick.setPkMember(cuMember.getPkId());
|
||||||
acPick.setPickType(EPickType.PICK_PRODUCT.getValue());
|
acPick.setPickType(pickType);
|
||||||
acPick.setPkDataId(detailParam.getPkProduct().longValue());
|
acPick.setPkDataId(detailParam.getPkProduct().longValue());
|
||||||
acPick.setSpecsName(detailParam.getSpecsName());
|
acPick.setSpecsName(detailParam.getSpecsName());
|
||||||
acPick.setSpecsNameId(detailParam.getSpecsNameId());
|
acPick.setSpecsNameId(detailParam.getSpecsNameId());
|
||||||
|
@ -506,13 +495,6 @@ public class AcPickServiceImpl extends ServiceImpl<AcPickMapper, AcPick> impleme
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @description: 审核删除充值提货卡
|
|
||||||
* @author: zhang jing
|
|
||||||
* @date: 2023/10/18 16:01
|
|
||||||
* @param: [resultDTO]
|
|
||||||
* @return: java.lang.String
|
|
||||||
**/
|
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
@Override
|
@Override
|
||||||
public String delpickApprovalAgree(ApprovalBusinessResultDTO resultDTO) {
|
public String delpickApprovalAgree(ApprovalBusinessResultDTO resultDTO) {
|
||||||
|
|
Loading…
Reference in New Issue