Commit 48101350a53ad128fb0c6ff2f8278611541493dd
1 parent
e28871c9
shop
Showing
3 changed files
with
7 additions
and
3 deletions
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/DeliveryTimeRPC.java
... | ... | @@ -25,7 +25,7 @@ public interface DeliveryTimeRPC { |
25 | 25 | * @author kelan |
26 | 26 | * @time 2016/11/30 16:25 |
27 | 27 | */ |
28 | - public Boolean deleteShopDeliveryTime(Long deliveryTimeId); | |
28 | + public Boolean deleteShopDeliveryTime(Long... deliveryTimeId); | |
29 | 29 | /** |
30 | 30 | * @comment 查找店铺送货时间段 |
31 | 31 | * @param deliveryTimeListInput 店铺送货时间段对象 | ... | ... |
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/impl/DeliveryTimeRPCImpl.java
... | ... | @@ -42,7 +42,7 @@ public class DeliveryTimeRPCImpl implements DeliveryTimeRPC { |
42 | 42 | * @time 2016/11/30 16:25 |
43 | 43 | */ |
44 | 44 | @Override |
45 | - public Boolean deleteShopDeliveryTime(Long deliveryTimeId) { | |
45 | + public Boolean deleteShopDeliveryTime(Long... deliveryTimeId) { | |
46 | 46 | return null; |
47 | 47 | } |
48 | 48 | ... | ... |
mobsite-getway-service/src/main/java/com/diligrp/mobsite/getway/service/seller/impl/SellerShopServiceImpl.java
... | ... | @@ -122,7 +122,11 @@ public class SellerShopServiceImpl implements SellerShopService { |
122 | 122 | |
123 | 123 | @Override |
124 | 124 | public DelShopDeliveryTimeResp delShopDeliveryTime(DelShopDeliveryTimeReq req) { |
125 | - return null; | |
125 | + DelShopDeliveryTimeResp resp = new DelShopDeliveryTimeResp(); | |
126 | + if(!deliveryTimeRPC.deleteShopDeliveryTime(req.getIds())){ | |
127 | + resp.setCode(ResultCode.BUSINESS_FAILED); | |
128 | + } | |
129 | + return resp; | |
126 | 130 | } |
127 | 131 | |
128 | 132 | @Override | ... | ... |