Browse Source

8.7 屏蔽短信发送

Mechrevo 1 year ago
parent
commit
399964fe05

+ 1 - 1
sp-core/sp-base/src/main/java/com/pj/enummj/GoodsStatus.java

@@ -15,7 +15,7 @@ public enum GoodsStatus {
      * 商品goodsTransit
      */
     GOODS_STATUS_ON(1,"在售"),
-    GOODS_STATUS_OFF(2,"下架");
+    GOODS_STATUS_OFF(0,"下架");
 
     private Integer code;
 

+ 3 - 7
sp-service/level-one-server/src/main/java/com/pj/tb_goods_transit/TbGoodsTransitService.java

@@ -8,9 +8,7 @@ import java.util.Date;
 import java.util.List;
 
 import cn.dev33.satoken.stp.StpUtil;
-import com.alibaba.druid.support.json.JSONUtils;
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
-import com.pj.aliyun.sms.AliyunSmsService;
 import com.pj.current.dto.APPLoginUserInfo;
 import com.pj.current.satoken.StpAPPUserUtil;
 import com.pj.enummj.*;
@@ -22,8 +20,6 @@ import com.pj.tb_goods.TbGoodsMapper;
 import com.pj.tb_goods_transit.param.JudgeTransitParam;
 import com.pj.tb_goods_transit.param.PurchaseLevelOneGoodsTransitParam;
 import com.pj.tb_goods_transit.param.TransactionGoodsParam;
-import com.pj.tb_group.TbGroup;
-import com.pj.tb_group.TbGroupMapper;
 import com.pj.tb_order.TbOrder;
 import com.pj.tb_order.TbOrderMapper;
 import com.pj.tb_people.TbPeople;
@@ -205,7 +201,7 @@ public class TbGoodsTransitService extends ServiceImpl<TbGoodsTransitMapper, TbG
 		tbGoodsTransit.setCreateTime(new Date());
 		tbGoodsTransit.setCreateBy(appLoginInfo.getLoginId() + "");
 		tbGoodsTransit.setCreateName(appLoginInfo.getLoginName());
-		tbGoodsTransit.setDeleteStatus(1);
+		tbGoodsTransit.setDeleteStatus(DeleteStatus.DELETE_STATUS_ON.getCode());
 		//执行保存
 		int insert = tbGoodsTransitMapper.insert(tbGoodsTransit);
 		return insert == 1;
@@ -277,8 +273,8 @@ public class TbGoodsTransitService extends ServiceImpl<TbGoodsTransitMapper, TbG
 				//获取商家信息
 				TbEnterprise tbEnterprise = tbEnterpriseMapper.selectById(tbGoodsTransit.getMerchantId());
 				if(tbEnterprise == null)throw new RuntimeException("商家不存在!");
-				//通知短信
-				return smsRetryService.sendSmsMsg(tbEnterprise.getContact());
+				//todo:通知短信
+//				return smsRetryService.sendSmsMsg(tbEnterprise.getContact());
 			}
 		}
 		throw new RuntimeException("订单预创建异常!");

+ 3 - 1
sp-service/level-two-server/src/main/java/com/pj/tb_demand_quotation/TbDemandQuotationService.java

@@ -115,7 +115,9 @@ public class TbDemandQuotationService extends ServiceImpl<TbDemandQuotationMappe
 			//短信提示二级市场收购商,需求已报价,进入app进行确认接单
 			TbPurchaser tbPurchaser = tbPurchaserMapper.selectById(tbGoodsDemand.getPurchaserId());
 			if(tbPurchaser == null)throw new RuntimeException("服务器繁忙~");
-			return smsRetryService.sendSmsMsg(tbPurchaser.getContact());
+			//todo:发送短信
+//			smsRetryService.sendSmsMsg(tbPurchaser.getContact());
+			return true;
 		}
 			throw new RuntimeException("抢单报价失败!");
 	}