|
@@ -1118,6 +1118,11 @@ public class YongyouServiceImpl implements YongyouService {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public String pushMergePurchaseOrder(String id) {
|
|
public String pushMergePurchaseOrder(String id) {
|
|
|
|
+ if (RedisUtils.get(id)!=null){
|
|
|
|
+ throw new BusinessException("请不要重复提交!");
|
|
|
|
+ }
|
|
|
|
+ RedisUtils.set(id,id+LocalDateTime.now(),10);
|
|
|
|
+
|
|
LongYanPurchaseOrderMerge merge = longYanPurchaseOrderMergeMapper.selectByPrimaryKey(id);
|
|
LongYanPurchaseOrderMerge merge = longYanPurchaseOrderMergeMapper.selectByPrimaryKey(id);
|
|
if (merge==null){
|
|
if (merge==null){
|
|
throw new BusinessException("该合并单已不存在!");
|
|
throw new BusinessException("该合并单已不存在!");
|