Commit d4e232028d8e60a5a23687aa45f5cc62c9fc97c1
1 parent
ce323d7b
时间段 update
Showing
5 changed files
with
115 additions
and
8 deletions
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/shop/AddShopDeliveryTimeReq.java
@@ -10,15 +10,25 @@ import java.util.List; | @@ -10,15 +10,25 @@ import java.util.List; | ||
10 | */ | 10 | */ |
11 | public class AddShopDeliveryTimeReq extends BaseReq { | 11 | public class AddShopDeliveryTimeReq extends BaseReq { |
12 | 12 | ||
13 | - @ApiModelProperty(value = "时间段",required = true) | ||
14 | - private List<DeliveryTimeInfo> deliveryTimeInfos; | 13 | + @ApiModelProperty(value = "开始时间",required = true) |
14 | + private String beginTime; | ||
15 | 15 | ||
16 | + @ApiModelProperty(value = "结束时间",required = true) | ||
17 | + private String endTime; | ||
16 | 18 | ||
17 | - public List<DeliveryTimeInfo> getDeliveryTimeInfos() { | ||
18 | - return deliveryTimeInfos; | 19 | + public String getBeginTime() { |
20 | + return beginTime; | ||
19 | } | 21 | } |
20 | 22 | ||
21 | - public void setDeliveryTimeInfos(List<DeliveryTimeInfo> deliveryTimeInfos) { | ||
22 | - this.deliveryTimeInfos = deliveryTimeInfos; | 23 | + public void setBeginTime(String beginTime) { |
24 | + this.beginTime = beginTime; | ||
25 | + } | ||
26 | + | ||
27 | + public String getEndTime() { | ||
28 | + return endTime; | ||
29 | + } | ||
30 | + | ||
31 | + public void setEndTime(String endTime) { | ||
32 | + this.endTime = endTime; | ||
23 | } | 33 | } |
24 | } | 34 | } |
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/DeliveryTimeRPC.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.rpc; | ||
2 | + | ||
3 | +import com.b2c.myapp.common.api.deliveryTime.input.DeliveryTimeListInput; | ||
4 | +import com.b2c.myapp.common.api.deliveryTime.input.DeliveryTimeSaveInput; | ||
5 | +import com.b2c.myapp.common.api.deliveryTime.output.DeliveryTimeOutput; | ||
6 | + | ||
7 | +import java.util.List; | ||
8 | + | ||
9 | +/** | ||
10 | + * Created by jiangchengyong on 2017/1/18. | ||
11 | + */ | ||
12 | +public interface DeliveryTimeRPC { | ||
13 | + /** | ||
14 | + * @comment 创建店铺送货时间段 | ||
15 | + * @param deliveryTimeSaveInput | ||
16 | + * @return BaseOutput<Integer> | ||
17 | + * @author kelan | ||
18 | + * @time 2016/11/30 16:23 | ||
19 | + */ | ||
20 | + public DeliveryTimeOutput createShopDeliveryTime(DeliveryTimeSaveInput deliveryTimeSaveInput); | ||
21 | + /** | ||
22 | + * @comment 删除店铺送货时间段 | ||
23 | + * @param deliveryTimeId 送货时间段id | ||
24 | + * @return BaseOutput<Integer> | ||
25 | + * @author kelan | ||
26 | + * @time 2016/11/30 16:25 | ||
27 | + */ | ||
28 | + public Boolean deleteShopDeliveryTime(Long deliveryTimeId); | ||
29 | + /** | ||
30 | + * @comment 查找店铺送货时间段 | ||
31 | + * @param deliveryTimeListInput 店铺送货时间段对象 | ||
32 | + * @return BaseOutput<List<DeliveryTimeOutput>> 店铺送货时间段列表 | ||
33 | + * @author kelan | ||
34 | + * @time 2016/11/30 16:26 | ||
35 | + */ | ||
36 | + public List<DeliveryTimeOutput> queryShopDeliveryTime(DeliveryTimeListInput deliveryTimeListInput); | ||
37 | +} |
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/PickInfoRPC.java
@@ -15,7 +15,7 @@ public interface PickInfoRPC { | @@ -15,7 +15,7 @@ public interface PickInfoRPC { | ||
15 | * @param pickingInfoSaveInput | 15 | * @param pickingInfoSaveInput |
16 | * @return | 16 | * @return |
17 | */ | 17 | */ |
18 | - Integer addPickingInfo(PickingInfoSaveInput pickingInfoSaveInput); | 18 | + PickingInfoOutput addPickingInfo(PickingInfoSaveInput pickingInfoSaveInput); |
19 | 19 | ||
20 | 20 | ||
21 | /** | 21 | /** |
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/impl/DeliveryTimeRPCImpl.java
0 → 100644
1 | +package com.diligrp.mobsite.getway.rpc.impl; | ||
2 | + | ||
3 | +import com.b2c.myapp.common.api.deliveryTime.input.DeliveryTimeListInput; | ||
4 | +import com.b2c.myapp.common.api.deliveryTime.input.DeliveryTimeSaveInput; | ||
5 | +import com.b2c.myapp.common.api.deliveryTime.output.DeliveryTimeOutput; | ||
6 | +import com.b2c.myapp.sdk.MyAppClient; | ||
7 | +import com.diligrp.mobsite.getway.rpc.DeliveryTimeRPC; | ||
8 | +import org.slf4j.Logger; | ||
9 | +import org.slf4j.LoggerFactory; | ||
10 | +import org.springframework.stereotype.Component; | ||
11 | + | ||
12 | +import javax.annotation.Resource; | ||
13 | +import java.util.List; | ||
14 | + | ||
15 | +/** | ||
16 | + * Created by jiangchengyong on 2017/1/18. | ||
17 | + */ | ||
18 | +@Component | ||
19 | +public class DeliveryTimeRPCImpl implements DeliveryTimeRPC { | ||
20 | + private Logger logger = LoggerFactory.getLogger(DeliveryTimeRPCImpl.class); | ||
21 | + | ||
22 | + @Resource | ||
23 | + private MyAppClient myAppClient; | ||
24 | + | ||
25 | + /** | ||
26 | + * @param deliveryTimeSaveInput | ||
27 | + * @return BaseOutput<Integer> | ||
28 | + * @comment 创建店铺送货时间段 | ||
29 | + * @author kelan | ||
30 | + * @time 2016/11/30 16:23 | ||
31 | + */ | ||
32 | + @Override | ||
33 | + public DeliveryTimeOutput createShopDeliveryTime(DeliveryTimeSaveInput deliveryTimeSaveInput) { | ||
34 | + return null; | ||
35 | + } | ||
36 | + | ||
37 | + /** | ||
38 | + * @param deliveryTimeId 送货时间段id | ||
39 | + * @return BaseOutput<Integer> | ||
40 | + * @comment 删除店铺送货时间段 | ||
41 | + * @author kelan | ||
42 | + * @time 2016/11/30 16:25 | ||
43 | + */ | ||
44 | + @Override | ||
45 | + public Boolean deleteShopDeliveryTime(Long deliveryTimeId) { | ||
46 | + return null; | ||
47 | + } | ||
48 | + | ||
49 | + /** | ||
50 | + * @param deliveryTimeListInput 店铺送货时间段对象 | ||
51 | + * @return BaseOutput<List<DeliveryTimeOutput>> 店铺送货时间段列表 | ||
52 | + * @comment 查找店铺送货时间段 | ||
53 | + * @author kelan | ||
54 | + * @time 2016/11/30 16:26 | ||
55 | + */ | ||
56 | + @Override | ||
57 | + public List<DeliveryTimeOutput> queryShopDeliveryTime(DeliveryTimeListInput deliveryTimeListInput) { | ||
58 | + return null; | ||
59 | + } | ||
60 | +} |
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/impl/PickInfoRPCImpl.java
@@ -20,7 +20,7 @@ public class PickInfoRPCImpl implements PickInfoRPC{ | @@ -20,7 +20,7 @@ public class PickInfoRPCImpl implements PickInfoRPC{ | ||
20 | * @return | 20 | * @return |
21 | */ | 21 | */ |
22 | @Override | 22 | @Override |
23 | - public Integer addPickingInfo(PickingInfoSaveInput pickingInfoSaveInput) { | 23 | + public PickingInfoOutput addPickingInfo(PickingInfoSaveInput pickingInfoSaveInput) { |
24 | return null; | 24 | return null; |
25 | } | 25 | } |
26 | 26 |