Commit 5f299c543212920a95f3188b93b21135e1ddd044

Authored by jiangchengyong
1 parent 1ec2af62

资金和收货地址

Showing 29 changed files with 394 additions and 372 deletions
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/cart/DelConsigneeResp.java deleted 100644 → 0
1 -package com.diligrp.mobsite.getway.domain.protocol.cart;  
2 -  
3 -import com.diligrp.mobsite.getway.domain.protocol.BaseResp;  
4 -  
5 -/**  
6 - * <B>Description</B> 删除关注品类resp <br />  
7 - * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />  
8 - * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />  
9 - * <B>Company</B> 地利集团  
10 - *  
11 - * @author wujianjun  
12 - * @createTime 2014/8/28 10:37  
13 - */  
14 -@SuppressWarnings("serial")  
15 -public class DelConsigneeResp extends BaseResp {  
16 -}  
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/fund/GetFundsReq.java
@@ -11,6 +11,8 @@ public class GetFundsReq extends BaseReq { @@ -11,6 +11,8 @@ public class GetFundsReq extends BaseReq {
11 private String keyword; 11 private String keyword;
12 @ApiModelProperty(value="店铺ID") 12 @ApiModelProperty(value="店铺ID")
13 private Long shopId; 13 private Long shopId;
  14 + @ApiModelProperty(value = "页码")
  15 + private Integer pageNum;
14 16
15 public String getKeyword() { 17 public String getKeyword() {
16 return keyword; 18 return keyword;
@@ -27,4 +29,12 @@ public class GetFundsReq extends BaseReq { @@ -27,4 +29,12 @@ public class GetFundsReq extends BaseReq {
27 public void setShopId(Long shopId) { 29 public void setShopId(Long shopId) {
28 this.shopId = shopId; 30 this.shopId = shopId;
29 } 31 }
  32 +
  33 + public Integer getPageNum() {
  34 + return pageNum;
  35 + }
  36 +
  37 + public void setPageNum(Integer pageNum) {
  38 + this.pageNum = pageNum;
  39 + }
30 } 40 }
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/cart/AddConsigneeReq.java renamed to mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/pickinfo/AddPickInfoReq.java
1 -package com.diligrp.mobsite.getway.domain.protocol.cart; 1 +package com.diligrp.mobsite.getway.domain.protocol.pickinfo;
2 2
3 import com.diligrp.mobsite.getway.domain.protocol.BaseReq; 3 import com.diligrp.mobsite.getway.domain.protocol.BaseReq;
4 import com.diligrp.mobsite.getway.domain.protocol.ConsigneeInfo; 4 import com.diligrp.mobsite.getway.domain.protocol.ConsigneeInfo;
@@ -13,7 +13,7 @@ import com.diligrp.mobsite.getway.domain.protocol.ConsigneeInfo; @@ -13,7 +13,7 @@ import com.diligrp.mobsite.getway.domain.protocol.ConsigneeInfo;
13 * @createTime 2014/8/28 10:23 13 * @createTime 2014/8/28 10:23
14 */ 14 */
15 @SuppressWarnings("serial") 15 @SuppressWarnings("serial")
16 -public class AddConsigneeReq extends BaseReq { 16 +public class AddPickInfoReq extends BaseReq {
17 private ConsigneeInfo consigneeInfo; 17 private ConsigneeInfo consigneeInfo;
18 18
19 public ConsigneeInfo getConsigneeInfo() { 19 public ConsigneeInfo getConsigneeInfo() {
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/cart/AddConsigneeResp.java renamed to mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/pickinfo/AddPickInfoResp.java
1 -package com.diligrp.mobsite.getway.domain.protocol.cart; 1 +package com.diligrp.mobsite.getway.domain.protocol.pickinfo;
2 2
3 import com.diligrp.mobsite.getway.domain.protocol.BaseResp; 3 import com.diligrp.mobsite.getway.domain.protocol.BaseResp;
4 4
@@ -12,7 +12,7 @@ import com.diligrp.mobsite.getway.domain.protocol.BaseResp; @@ -12,7 +12,7 @@ import com.diligrp.mobsite.getway.domain.protocol.BaseResp;
12 * @createTime 2014/8/28 10:32 12 * @createTime 2014/8/28 10:32
13 */ 13 */
14 @SuppressWarnings("serial") 14 @SuppressWarnings("serial")
15 -public class AddConsigneeResp extends BaseResp{ 15 +public class AddPickInfoResp extends BaseResp{
16 private Long id; 16 private Long id;
17 17
18 public Long getId() { 18 public Long getId() {
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/cart/DelConsigneeReq.java renamed to mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/pickinfo/DelPickInfoReq.java
1 -package com.diligrp.mobsite.getway.domain.protocol.cart; 1 +package com.diligrp.mobsite.getway.domain.protocol.pickinfo;
2 2
3 import com.diligrp.mobsite.getway.domain.protocol.BaseReq; 3 import com.diligrp.mobsite.getway.domain.protocol.BaseReq;
4 import io.swagger.annotations.ApiModelProperty; 4 import io.swagger.annotations.ApiModelProperty;
@@ -13,16 +13,9 @@ import io.swagger.annotations.ApiModelProperty; @@ -13,16 +13,9 @@ import io.swagger.annotations.ApiModelProperty;
13 * @createTime 2014/8/28 10:36 13 * @createTime 2014/8/28 10:36
14 */ 14 */
15 @SuppressWarnings("serial") 15 @SuppressWarnings("serial")
16 -public class DelConsigneeReq extends BaseReq {  
17 - /**  
18 - * 提货人ID  
19 - */  
20 - @ApiModelProperty(value = "收货人id",required = true) 16 +public class DelPickInfoReq extends BaseReq {
  17 + @ApiModelProperty(value = "收货信息id",required = true)
21 private Long id; 18 private Long id;
22 - /**  
23 - * 是否是默认  
24 - */  
25 - private Integer isDefault;  
26 19
27 public Long getId() { 20 public Long getId() {
28 return id; 21 return id;
@@ -31,12 +24,4 @@ public class DelConsigneeReq extends BaseReq { @@ -31,12 +24,4 @@ public class DelConsigneeReq extends BaseReq {
31 public void setId(Long id) { 24 public void setId(Long id) {
32 this.id = id; 25 this.id = id;
33 } 26 }
34 -  
35 - public Integer getIsDefault() {  
36 - return isDefault;  
37 - }  
38 -  
39 - public void setIsDefault(Integer isDefault) {  
40 - this.isDefault = isDefault;  
41 - }  
42 } 27 }
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/pickinfo/DelPickInfoResp.java 0 → 100644
  1 +package com.diligrp.mobsite.getway.domain.protocol.pickinfo;
  2 +
  3 +import com.diligrp.mobsite.getway.domain.protocol.BaseResp;
  4 +
  5 +/**
  6 + * Created by jiangchengyong on 2017/1/12.
  7 + */
  8 +public class DelPickInfoResp extends BaseResp {
  9 +}
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/cart/GetDefaultConsigneeReq.java renamed to mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/pickinfo/GetDefaultPickInfoReq.java
1 -package com.diligrp.mobsite.getway.domain.protocol.cart; 1 +package com.diligrp.mobsite.getway.domain.protocol.pickinfo;
2 2
3 import com.diligrp.mobsite.getway.domain.protocol.BaseReq; 3 import com.diligrp.mobsite.getway.domain.protocol.BaseReq;
4 4
@@ -12,5 +12,5 @@ import com.diligrp.mobsite.getway.domain.protocol.BaseReq; @@ -12,5 +12,5 @@ import com.diligrp.mobsite.getway.domain.protocol.BaseReq;
12 * @createTime 2014/8/28 10:38 12 * @createTime 2014/8/28 10:38
13 */ 13 */
14 @SuppressWarnings("serial") 14 @SuppressWarnings("serial")
15 -public class GetDefaultConsigneeReq extends BaseReq{ 15 +public class GetDefaultPickInfoReq extends BaseReq{
16 } 16 }
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/cart/GetDefaultConsigneeResp.java renamed to mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/pickinfo/GetDefaultPickInfoResp.java
1 -package com.diligrp.mobsite.getway.domain.protocol.cart; 1 +package com.diligrp.mobsite.getway.domain.protocol.pickinfo;
2 2
  3 +import com.b2c.myapp.common.api.pickingInfo.output.PickingInfoOutput;
3 import com.diligrp.mobsite.getway.domain.protocol.BaseResp; 4 import com.diligrp.mobsite.getway.domain.protocol.BaseResp;
4 -import com.diligrp.mobsite.getway.domain.protocol.ConsigneeInfo;  
5 5
6 /** 6 /**
7 * <B>Description</B> 获取默认提货人 <br /> 7 * <B>Description</B> 获取默认提货人 <br />
@@ -13,17 +13,17 @@ import com.diligrp.mobsite.getway.domain.protocol.ConsigneeInfo; @@ -13,17 +13,17 @@ import com.diligrp.mobsite.getway.domain.protocol.ConsigneeInfo;
13 * @createTime 2014/8/28 10:39 13 * @createTime 2014/8/28 10:39
14 */ 14 */
15 @SuppressWarnings("serial") 15 @SuppressWarnings("serial")
16 -public class GetDefaultConsigneeResp extends BaseResp{ 16 +public class GetDefaultPickInfoResp extends BaseResp{
17 /** 17 /**
18 * 提货人信息 18 * 提货人信息
19 */ 19 */
20 - private ConsigneeInfo consigneeInfo; 20 + private PickingInfoOutput pickingInfoOutput;
21 21
22 - public ConsigneeInfo getConsigneeInfo() {  
23 - return consigneeInfo; 22 + public PickingInfoOutput getPickingInfoOutput() {
  23 + return pickingInfoOutput;
24 } 24 }
25 25
26 - public void setConsigneeInfo(ConsigneeInfo consigneeInfo) {  
27 - this.consigneeInfo = consigneeInfo; 26 + public void setPickingInfoOutput(PickingInfoOutput pickingInfoOutput) {
  27 + this.pickingInfoOutput = pickingInfoOutput;
28 } 28 }
29 } 29 }
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/cart/GetConsigneeListReq.java renamed to mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/pickinfo/GetPickInfoListReq.java
1 -package com.diligrp.mobsite.getway.domain.protocol.cart; 1 +package com.diligrp.mobsite.getway.domain.protocol.pickinfo;
2 2
3 import com.diligrp.mobsite.getway.domain.protocol.BaseReq; 3 import com.diligrp.mobsite.getway.domain.protocol.BaseReq;
4 4
@@ -12,5 +12,5 @@ import com.diligrp.mobsite.getway.domain.protocol.BaseReq; @@ -12,5 +12,5 @@ import com.diligrp.mobsite.getway.domain.protocol.BaseReq;
12 * @createTime 2014/8/28 10:38 12 * @createTime 2014/8/28 10:38
13 */ 13 */
14 @SuppressWarnings("serial") 14 @SuppressWarnings("serial")
15 -public class GetConsigneeListReq extends BaseReq { 15 +public class GetPickInfoListReq extends BaseReq {
16 } 16 }
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/cart/GetConsigneeListResp.java renamed to mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/pickinfo/GetPickInfoListResp.java
1 -package com.diligrp.mobsite.getway.domain.protocol.cart;  
2 -  
3 -import java.util.List; 1 +package com.diligrp.mobsite.getway.domain.protocol.pickinfo;
4 2
  3 +import com.b2c.myapp.common.api.pickingInfo.output.PickingInfoOutput;
5 import com.diligrp.mobsite.getway.domain.protocol.BaseResp; 4 import com.diligrp.mobsite.getway.domain.protocol.BaseResp;
6 -import com.diligrp.mobsite.getway.domain.protocol.ConsigneeInfo; 5 +
  6 +import java.util.List;
7 7
8 /** 8 /**
9 * <B>Description</B> 获取提货人列表响应 <br /> 9 * <B>Description</B> 获取提货人列表响应 <br />
@@ -15,17 +15,10 @@ import com.diligrp.mobsite.getway.domain.protocol.ConsigneeInfo; @@ -15,17 +15,10 @@ import com.diligrp.mobsite.getway.domain.protocol.ConsigneeInfo;
15 * @createTime 2014/8/28 10:38 15 * @createTime 2014/8/28 10:38
16 */ 16 */
17 @SuppressWarnings("serial") 17 @SuppressWarnings("serial")
18 -public class GetConsigneeListResp extends BaseResp { 18 +public class GetPickInfoListResp extends BaseResp {
19 /** 19 /**
20 * 提货人信息列表 20 * 提货人信息列表
21 */ 21 */
22 - private List<ConsigneeInfo> consigneeInfos;  
23 -  
24 - public List<ConsigneeInfo> getConsigneeInfos() {  
25 - return consigneeInfos;  
26 - } 22 + private List<PickingInfoOutput> pickInfos;
27 23
28 - public void setConsigneeInfos(List<ConsigneeInfo> consigneeInfos) {  
29 - this.consigneeInfos = consigneeInfos;  
30 - }  
31 } 24 }
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/cart/GetConsigneeReq.java renamed to mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/pickinfo/GetPickInfoReq.java
1 -package com.diligrp.mobsite.getway.domain.protocol.cart; 1 +package com.diligrp.mobsite.getway.domain.protocol.pickinfo;
2 2
3 import com.diligrp.mobsite.getway.domain.protocol.BaseReq; 3 import com.diligrp.mobsite.getway.domain.protocol.BaseReq;
4 import io.swagger.annotations.ApiModelProperty; 4 import io.swagger.annotations.ApiModelProperty;
@@ -13,11 +13,8 @@ import io.swagger.annotations.ApiModelProperty; @@ -13,11 +13,8 @@ import io.swagger.annotations.ApiModelProperty;
13 * @createTime 2014/8/28 10:36 13 * @createTime 2014/8/28 10:36
14 */ 14 */
15 @SuppressWarnings("serial") 15 @SuppressWarnings("serial")
16 -public class GetConsigneeReq extends BaseReq {  
17 - /**  
18 - * 提货人ID  
19 - */  
20 - @ApiModelProperty(value = "收货人id",required = true) 16 +public class GetPickInfoReq extends BaseReq {
  17 + @ApiModelProperty(value = "收货人信息id",required = true)
21 private Long id; 18 private Long id;
22 19
23 public Long getId() { 20 public Long getId() {
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/cart/GetConsigneeResp.java renamed to mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/pickinfo/GetPickInfoResp.java
1 -package com.diligrp.mobsite.getway.domain.protocol.cart; 1 +package com.diligrp.mobsite.getway.domain.protocol.pickinfo;
2 2
  3 +import com.b2c.myapp.common.api.pickingInfo.output.PickingInfoOutput;
3 import com.diligrp.mobsite.getway.domain.protocol.BaseResp; 4 import com.diligrp.mobsite.getway.domain.protocol.BaseResp;
4 -import com.diligrp.mobsite.getway.domain.protocol.ConsigneeInfo;  
5 5
6 /** 6 /**
7 * <B>Description</B> 获取单个提货人响应 <br /> 7 * <B>Description</B> 获取单个提货人响应 <br />
@@ -13,17 +13,17 @@ import com.diligrp.mobsite.getway.domain.protocol.ConsigneeInfo; @@ -13,17 +13,17 @@ import com.diligrp.mobsite.getway.domain.protocol.ConsigneeInfo;
13 * @createTime 2014/8/28 10:36 13 * @createTime 2014/8/28 10:36
14 */ 14 */
15 @SuppressWarnings("serial") 15 @SuppressWarnings("serial")
16 -public class GetConsigneeResp extends BaseResp { 16 +public class GetPickInfoResp extends BaseResp {
17 /** 17 /**
18 * 提货人信息 18 * 提货人信息
19 */ 19 */
20 - private ConsigneeInfo consigneeInfo; 20 + private PickingInfoOutput pickingInfo;
21 21
22 - public ConsigneeInfo getConsigneeInfo() {  
23 - return consigneeInfo; 22 + public PickingInfoOutput getPickingInfo() {
  23 + return pickingInfo;
24 } 24 }
25 25
26 - public void setConsigneeInfo(ConsigneeInfo consigneeInfo) {  
27 - this.consigneeInfo = consigneeInfo; 26 + public void setPickingInfo(PickingInfoOutput pickingInfo) {
  27 + this.pickingInfo = pickingInfo;
28 } 28 }
29 } 29 }
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/cart/SetDefaultConsigneeReq.java renamed to mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/pickinfo/SetDefaultPickInfoReq.java
1 -package com.diligrp.mobsite.getway.domain.protocol.cart; 1 +package com.diligrp.mobsite.getway.domain.protocol.pickinfo;
2 2
3 import com.diligrp.mobsite.getway.domain.protocol.BaseReq; 3 import com.diligrp.mobsite.getway.domain.protocol.BaseReq;
4 import io.swagger.annotations.ApiModelProperty; 4 import io.swagger.annotations.ApiModelProperty;
@@ -13,7 +13,7 @@ import io.swagger.annotations.ApiModelProperty; @@ -13,7 +13,7 @@ import io.swagger.annotations.ApiModelProperty;
13 * @createTime 2014/8/28 16:23 13 * @createTime 2014/8/28 16:23
14 */ 14 */
15 @SuppressWarnings("serial") 15 @SuppressWarnings("serial")
16 -public class SetDefaultConsigneeReq extends BaseReq { 16 +public class SetDefaultPickInfoReq extends BaseReq {
17 /** 17 /**
18 * 提货人信息Id 18 * 提货人信息Id
19 */ 19 */
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/cart/SetDefaultConsigneeResp.java renamed to mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/pickinfo/SetDefaultPickInfoResp.java
1 -package com.diligrp.mobsite.getway.domain.protocol.cart; 1 +package com.diligrp.mobsite.getway.domain.protocol.pickinfo;
2 2
3 import com.diligrp.mobsite.getway.domain.protocol.BaseResp; 3 import com.diligrp.mobsite.getway.domain.protocol.BaseResp;
4 4
@@ -12,5 +12,5 @@ import com.diligrp.mobsite.getway.domain.protocol.BaseResp; @@ -12,5 +12,5 @@ import com.diligrp.mobsite.getway.domain.protocol.BaseResp;
12 * @createTime 2014/8/28 16:23 12 * @createTime 2014/8/28 16:23
13 */ 13 */
14 @SuppressWarnings("serial") 14 @SuppressWarnings("serial")
15 -public class SetDefaultConsigneeResp extends BaseResp { 15 +public class SetDefaultPickInfoResp extends BaseResp {
16 } 16 }
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/cart/UpdateConsigneeReq.java renamed to mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/pickinfo/UpdatePickInfoReq.java
1 -package com.diligrp.mobsite.getway.domain.protocol.cart; 1 +package com.diligrp.mobsite.getway.domain.protocol.pickinfo;
2 2
3 import com.diligrp.mobsite.getway.domain.protocol.BaseReq; 3 import com.diligrp.mobsite.getway.domain.protocol.BaseReq;
4 import com.diligrp.mobsite.getway.domain.protocol.ConsigneeInfo; 4 import com.diligrp.mobsite.getway.domain.protocol.ConsigneeInfo;
@@ -13,7 +13,7 @@ import com.diligrp.mobsite.getway.domain.protocol.ConsigneeInfo; @@ -13,7 +13,7 @@ import com.diligrp.mobsite.getway.domain.protocol.ConsigneeInfo;
13 * @createTime 2014/8/28 10:35 13 * @createTime 2014/8/28 10:35
14 */ 14 */
15 @SuppressWarnings("serial") 15 @SuppressWarnings("serial")
16 -public class UpdateConsigneeReq extends BaseReq{ 16 +public class UpdatePickInfoReq extends BaseReq{
17 /** 17 /**
18 * 提货人信息 18 * 提货人信息
19 */ 19 */
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/cart/UpdateConsigneeResp.java renamed to mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/pickinfo/UpdatePickInfoResp.java
1 -package com.diligrp.mobsite.getway.domain.protocol.cart; 1 +package com.diligrp.mobsite.getway.domain.protocol.pickinfo;
2 2
3 import com.diligrp.mobsite.getway.domain.protocol.BaseResp; 3 import com.diligrp.mobsite.getway.domain.protocol.BaseResp;
4 4
@@ -12,5 +12,5 @@ import com.diligrp.mobsite.getway.domain.protocol.BaseResp; @@ -12,5 +12,5 @@ import com.diligrp.mobsite.getway.domain.protocol.BaseResp;
12 * @createTime 2014/8/28 10:35 12 * @createTime 2014/8/28 10:35
13 */ 13 */
14 @SuppressWarnings("serial") 14 @SuppressWarnings("serial")
15 -public class UpdateConsigneeResp extends BaseResp { 15 +public class UpdatePickInfoResp extends BaseResp {
16 } 16 }
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/PickInfoRPC.java 0 → 100644
  1 +package com.diligrp.mobsite.getway.rpc;
  2 +
  3 +import com.b2c.myapp.common.api.pickingInfo.input.PickingInfoSaveInput;
  4 +import com.b2c.myapp.common.api.pickingInfo.input.PickingInfoUpdateInput;
  5 +import com.b2c.myapp.common.api.pickingInfo.output.PickingInfoOutput;
  6 +
  7 +import java.util.List;
  8 +
  9 +/**
  10 + * Created by jiangchengyong on 2017/1/12.
  11 + */
  12 +public interface PickInfoRPC {
  13 + /**
  14 + * 新增收货人
  15 + * @param pickingInfoSaveInput
  16 + * @return
  17 + */
  18 + Integer addPickingInfo(PickingInfoSaveInput pickingInfoSaveInput);
  19 +
  20 +
  21 + /**
  22 + * 修改收货人信息
  23 + * @param pickingInfoUpdateInput
  24 + * @return
  25 + */
  26 + Boolean modify(PickingInfoUpdateInput pickingInfoUpdateInput);
  27 +
  28 + /**
  29 + * 按买家ID查询收货人
  30 + * @param buyerId
  31 + * @return
  32 + */
  33 + List<PickingInfoOutput> queryPickingInfosByBuyerId(Long buyerId);
  34 + /**
  35 + * @comment 根据买家id获取默认收货地址
  36 + * @param buyerId
  37 + * @return PickingInfoOutput
  38 + * @author kelan
  39 + * @time 2016/12/15 10:38
  40 + */
  41 + PickingInfoOutput getDefaultPickingInfoByBuyerId(Long buyerId);
  42 + /**
  43 + * @comment 删除收货地址(需要判断是否是默认地址)
  44 + * @param id 收货地址id
  45 + * @return Boolean
  46 + * @author kelan
  47 + * @time 2016/12/16 17:58
  48 + */
  49 + public Boolean delPickingInfoById(Long id);
  50 +}
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/UserRPC.java
@@ -19,33 +19,6 @@ import java.util.List; @@ -19,33 +19,6 @@ import java.util.List;
19 */ 19 */
20 public interface UserRPC { 20 public interface UserRPC {
21 21
22 - /**  
23 - *  
24 - * @param id  
25 - * @param userId  
26 - * @param type :1-收藏商品,2-店铺收藏  
27 - * @return  
28 - * @createTime 2015年6月9日 下午2:21:16  
29 - * @author zhangshirui  
30 - */  
31 - boolean checkFavorites(Long id, Long userId, Integer type);  
32 -  
33 - /**  
34 - * 收藏商品和店铺  
35 - * @param userId  
36 - * @param type  
37 - * @param id  
38 - * @param type:1-收藏商品,2-店铺收藏  
39 - * @return  
40 - * @createTime 2014年10月13日 上午11:45:22  
41 - * @author zhangshirui  
42 - */  
43 - boolean addFavorite(Long userId, Long id, Integer type);  
44 -  
45 - boolean delFavorite(Long userId, Long id, Integer type);  
46 -  
47 -  
48 -  
49 boolean addShoppingCart(List<AddCartProduct> cartProducts, Long userId); 22 boolean addShoppingCart(List<AddCartProduct> cartProducts, Long userId);
50 23
51 /** 24 /**
@@ -102,21 +75,6 @@ public interface UserRPC { @@ -102,21 +75,6 @@ public interface UserRPC {
102 */ 75 */
103 boolean modifyPwd(String accountName, String newPassword); 76 boolean modifyPwd(String accountName, String newPassword);
104 77
105 - Long addConsignee(ConsigneeInfo consigneeInfo, Long userId);  
106 -  
107 - boolean updateConsignee(ConsigneeInfo consigneeInfo, Long userId);  
108 -  
109 - ConsigneeInfo getConsignee(Long id);  
110 -  
111 - boolean delConsignee(Long id);  
112 -  
113 - List<ConsigneeInfo> getConsigneeByUserId(Long userId);  
114 -  
115 - ConsigneeInfo getDefaultConsignee(Long userId);  
116 -  
117 - boolean setDefaultConsignee(Long id, Long userId);  
118 -  
119 -  
120 /** 78 /**
121 * 密码加密 79 * 密码加密
122 * @param pwd 80 * @param pwd
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/impl/PickInfoRPCImpl.java 0 → 100644
  1 +package com.diligrp.mobsite.getway.rpc.impl;
  2 +
  3 +import com.b2c.myapp.common.api.pickingInfo.input.PickingInfoSaveInput;
  4 +import com.b2c.myapp.common.api.pickingInfo.input.PickingInfoUpdateInput;
  5 +import com.b2c.myapp.common.api.pickingInfo.output.PickingInfoOutput;
  6 +import com.diligrp.mobsite.getway.rpc.PickInfoRPC;
  7 +
  8 +import java.util.List;
  9 +
  10 +/**
  11 + * Created by jiangchengyong on 2017/1/12.
  12 + */
  13 +public class PickInfoRPCImpl implements PickInfoRPC{
  14 +
  15 +
  16 + /**
  17 + * 新增收货人
  18 + *
  19 + * @param pickingInfoSaveInput
  20 + * @return
  21 + */
  22 + @Override
  23 + public Integer addPickingInfo(PickingInfoSaveInput pickingInfoSaveInput) {
  24 + return null;
  25 + }
  26 +
  27 + /**
  28 + * 修改收货人信息
  29 + *
  30 + * @param pickingInfoUpdateInput
  31 + * @return
  32 + */
  33 + @Override
  34 + public Boolean modify(PickingInfoUpdateInput pickingInfoUpdateInput) {
  35 + return null;
  36 + }
  37 +
  38 + /**
  39 + * 按买家ID查询收货人
  40 + *
  41 + * @param buyerId
  42 + * @return
  43 + */
  44 + @Override
  45 + public List<PickingInfoOutput> queryPickingInfosByBuyerId(Long buyerId) {
  46 + return null;
  47 + }
  48 +
  49 + /**
  50 + * @param buyerId
  51 + * @return PickingInfoOutput
  52 + * @comment 根据买家id获取默认收货地址
  53 + * @author kelan
  54 + * @time 2016/12/15 10:38
  55 + */
  56 + @Override
  57 + public PickingInfoOutput getDefaultPickingInfoByBuyerId(Long buyerId) {
  58 + return null;
  59 + }
  60 +
  61 + /**
  62 + * @param id 收货地址id
  63 + * @return Boolean
  64 + * @comment 删除收货地址(需要判断是否是默认地址)
  65 + * @author kelan
  66 + * @time 2016/12/16 17:58
  67 + */
  68 + @Override
  69 + public Boolean delPickingInfoById(Long id) {
  70 + return null;
  71 + }
  72 +}
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/impl/UserRPCImpl.java
@@ -38,7 +38,7 @@ public class UserRPCImpl implements UserRPC { @@ -38,7 +38,7 @@ public class UserRPCImpl implements UserRPC {
38 @Resource 38 @Resource
39 private RedisUtil redisUtil; 39 private RedisUtil redisUtil;
40 @Resource 40 @Resource
41 - private MyAppClient userClient; 41 + private MyAppClient myAppClient;
42 @Resource 42 @Resource
43 private WebsiteClient websiteClient; 43 private WebsiteClient websiteClient;
44 @Resource 44 @Resource
@@ -48,21 +48,6 @@ public class UserRPCImpl implements UserRPC { @@ -48,21 +48,6 @@ public class UserRPCImpl implements UserRPC {
48 private static final Logger logger = LoggerFactory.getLogger(UserRPCImpl.class); 48 private static final Logger logger = LoggerFactory.getLogger(UserRPCImpl.class);
49 49
50 @Override 50 @Override
51 - public boolean checkFavorites(Long id, Long userId, Integer type) {  
52 - return false;  
53 - }  
54 -  
55 - @Override  
56 - public boolean addFavorite(Long userId, Long id, Integer type) {  
57 - return false;  
58 - }  
59 -  
60 - @Override  
61 - public boolean delFavorite(Long userId, Long id, Integer type) {  
62 - return false;  
63 - }  
64 -  
65 - @Override  
66 public boolean addShoppingCart(List<AddCartProduct> cartProducts, Long userId) { 51 public boolean addShoppingCart(List<AddCartProduct> cartProducts, Long userId) {
67 return false; 52 return false;
68 } 53 }
@@ -82,7 +67,7 @@ public class UserRPCImpl implements UserRPC { @@ -82,7 +67,7 @@ public class UserRPCImpl implements UserRPC {
82 BaseOutput<BuyerInfoOutput> output = null; 67 BaseOutput<BuyerInfoOutput> output = null;
83 boolean flag = false; 68 boolean flag = false;
84 try { 69 try {
85 - output = userClient.getBuyerInfoService().getBuyerInfoByMobilePhone(mobile); 70 + output = myAppClient.getBuyerInfoService().getBuyerInfoByMobilePhone(mobile);
86 } catch (Exception e) { 71 } catch (Exception e) {
87 logger.error("检测电话号码接口挂掉:msg={}",e.getMessage()); 72 logger.error("检测电话号码接口挂掉:msg={}",e.getMessage());
88 throw new ServiceException(); 73 throw new ServiceException();
@@ -112,41 +97,6 @@ public class UserRPCImpl implements UserRPC { @@ -112,41 +97,6 @@ public class UserRPCImpl implements UserRPC {
112 } 97 }
113 98
114 @Override 99 @Override
115 - public Long addConsignee(ConsigneeInfo consigneeInfo, Long userId) {  
116 - return null;  
117 - }  
118 -  
119 - @Override  
120 - public boolean updateConsignee(ConsigneeInfo consigneeInfo, Long userId) {  
121 - return false;  
122 - }  
123 -  
124 - @Override  
125 - public ConsigneeInfo getConsignee(Long id) {  
126 - return null;  
127 - }  
128 -  
129 - @Override  
130 - public boolean delConsignee(Long id) {  
131 - return false;  
132 - }  
133 -  
134 - @Override  
135 - public List<ConsigneeInfo> getConsigneeByUserId(Long userId) {  
136 - return null;  
137 - }  
138 -  
139 - @Override  
140 - public ConsigneeInfo getDefaultConsignee(Long userId) {  
141 - return null;  
142 - }  
143 -  
144 - @Override  
145 - public boolean setDefaultConsignee(Long id, Long userId) {  
146 - return false;  
147 - }  
148 -  
149 - @Override  
150 public String getEncryptPwd(String pwd) { 100 public String getEncryptPwd(String pwd) {
151 return null; 101 return null;
152 } 102 }
@@ -161,7 +111,7 @@ public class UserRPCImpl implements UserRPC { @@ -161,7 +111,7 @@ public class UserRPCImpl implements UserRPC {
161 BaseOutput<BuyerInfoOutput> output = null; 111 BaseOutput<BuyerInfoOutput> output = null;
162 boolean flag = false; 112 boolean flag = false;
163 try { 113 try {
164 - output = userClient.getBuyerInfoService().getBuyerInfoByMobilePhone(accountName); 114 + output = myAppClient.getBuyerInfoService().getBuyerInfoByMobilePhone(accountName);
165 } catch (Exception e) { 115 } catch (Exception e) {
166 logger.error("检测电话号码接口挂掉:msg={}",e.getMessage()); 116 logger.error("检测电话号码接口挂掉:msg={}",e.getMessage());
167 throw new ServiceException(); 117 throw new ServiceException();
mobsite-getway-service/src/main/java/com/diligrp/mobsite/getway/service/buyer/pickinfo/PickInfoService.java 0 → 100644
  1 +package com.diligrp.mobsite.getway.service.buyer.pickinfo;
  2 +
  3 +import com.b2c.myapp.common.api.pickingInfo.input.PickingInfoSaveInput;
  4 +import com.b2c.myapp.common.api.pickingInfo.input.PickingInfoUpdateInput;
  5 +import com.b2c.myapp.common.api.pickingInfo.output.PickingInfoOutput;
  6 +import com.diligrp.mobsite.getway.domain.protocol.cart.*;
  7 +import com.diligrp.mobsite.getway.domain.protocol.pickinfo.*;
  8 +
  9 +import java.util.List;
  10 +
  11 +/**
  12 + * Created by jiangchengyong on 2017/1/12.
  13 + */
  14 +public interface PickInfoService {
  15 + /**
  16 + * 新增收货人
  17 + * @param req
  18 + * @return
  19 + */
  20 + AddPickInfoResp addPickInfo(AddPickInfoReq req);
  21 +
  22 + /**
  23 + * 修改收货人信息
  24 + * @param req
  25 + * @return
  26 + */
  27 + UpdatePickInfoResp updatePickInfo(UpdatePickInfoReq req);
  28 +
  29 + /**
  30 + * 获取单个收货人信息
  31 + * @param req
  32 + * @return
  33 + */
  34 + GetPickInfoResp getPickInfo(GetPickInfoReq req);
  35 +
  36 +
  37 + /**
  38 + * 按收货人信息ID删除收货人
  39 + * @param req
  40 + * @return
  41 + */
  42 + DelPickInfoResp delPickInfo(DelPickInfoReq req);
  43 +
  44 + /**
  45 + * 按买家ID查询收货列表
  46 + * @param req
  47 + * @return
  48 + */
  49 + GetPickInfoListResp getPickInfoList(GetPickInfoListReq req);
  50 +
  51 + /**
  52 + * @comment 根据买家id获取默认收货地址
  53 + * @param req
  54 + * @return PickingInfoOutput
  55 + * @author kelan
  56 + * @time 2016/12/15 10:38
  57 + */
  58 + GetDefaultPickInfoResp getDefaultPickInfo(GetDefaultPickInfoReq req);
  59 +
  60 + /**
  61 + * 设置默认
  62 + * @param consigneeId
  63 + * @param userId
  64 + * @return
  65 + */
  66 + SetDefaultPickInfoResp setDefault(Long consigneeId,Long userId);
  67 +}
mobsite-getway-service/src/main/java/com/diligrp/mobsite/getway/service/buyer/pickinfo/impl/PickInfoServiceImpl.java 0 → 100644
  1 +package com.diligrp.mobsite.getway.service.buyer.pickinfo.impl;
  2 +
  3 +import com.diligrp.mobsite.getway.domain.protocol.pickinfo.*;
  4 +import com.diligrp.mobsite.getway.service.buyer.pickinfo.PickInfoService;
  5 +import org.springframework.stereotype.Service;
  6 +
  7 +/**
  8 + * Created by jiangchengyong on 2017/1/12.
  9 + */
  10 +@Service
  11 +public class PickInfoServiceImpl implements PickInfoService{
  12 + /**
  13 + * 新增收货人
  14 + *
  15 + * @param req@return
  16 + */
  17 + @Override
  18 + public AddPickInfoResp addPickInfo(AddPickInfoReq req) {
  19 + return null;
  20 + }
  21 +
  22 + /**
  23 + * 修改收货人信息
  24 + *
  25 + * @param req
  26 + * @return
  27 + */
  28 + @Override
  29 + public UpdatePickInfoResp updatePickInfo(UpdatePickInfoReq req) {
  30 + return null;
  31 + }
  32 +
  33 + /**
  34 + * 获取单个收货人信息
  35 + *
  36 + * @param req
  37 + * @return
  38 + */
  39 + @Override
  40 + public GetPickInfoResp getPickInfo(GetPickInfoReq req) {
  41 + return null;
  42 + }
  43 +
  44 + /**
  45 + * 按收货人信息ID删除收货人
  46 + *
  47 + * @param req
  48 + * @return
  49 + */
  50 + @Override
  51 + public DelPickInfoResp delPickInfo(DelPickInfoReq req) {
  52 + return null;
  53 + }
  54 +
  55 + /**
  56 + * 按买家ID查询收货列表
  57 + *
  58 + * @param req
  59 + * @return
  60 + */
  61 + @Override
  62 + public GetPickInfoListResp getPickInfoList(GetPickInfoListReq req) {
  63 + return null;
  64 + }
  65 +
  66 + /**
  67 + * @param req
  68 + * @return PickingInfoOutput
  69 + * @comment 根据买家id获取默认收货地址
  70 + * @author kelan
  71 + * @time 2016/12/15 10:38
  72 + */
  73 + @Override
  74 + public GetDefaultPickInfoResp getDefaultPickInfo(GetDefaultPickInfoReq req) {
  75 + return null;
  76 + }
  77 +
  78 + /**
  79 + * 设置默认
  80 + *
  81 + * @param consigneeId
  82 + * @param userId
  83 + * @return
  84 + */
  85 + @Override
  86 + public SetDefaultPickInfoResp setDefault(Long consigneeId, Long userId) {
  87 + return null;
  88 + }
  89 +}
mobsite-getway-service/src/main/java/com/diligrp/mobsite/getway/service/buyer/settle/ConsigneeService.java deleted 100644 → 0
1 -package com.diligrp.mobsite.getway.service.buyer.settle;  
2 -  
3 -import com.diligrp.mobsite.getway.domain.protocol.cart.AddConsigneeReq;  
4 -import com.diligrp.mobsite.getway.domain.protocol.cart.AddConsigneeResp;  
5 -import com.diligrp.mobsite.getway.domain.protocol.cart.DelConsigneeReq;  
6 -import com.diligrp.mobsite.getway.domain.protocol.cart.DelConsigneeResp;  
7 -import com.diligrp.mobsite.getway.domain.protocol.cart.GetConsigneeListReq;  
8 -import com.diligrp.mobsite.getway.domain.protocol.cart.GetConsigneeListResp;  
9 -import com.diligrp.mobsite.getway.domain.protocol.cart.GetConsigneeReq;  
10 -import com.diligrp.mobsite.getway.domain.protocol.cart.GetConsigneeResp;  
11 -import com.diligrp.mobsite.getway.domain.protocol.cart.GetDefaultConsigneeReq;  
12 -import com.diligrp.mobsite.getway.domain.protocol.cart.GetDefaultConsigneeResp;  
13 -import com.diligrp.mobsite.getway.domain.protocol.cart.SetDefaultConsigneeResp;  
14 -import com.diligrp.mobsite.getway.domain.protocol.cart.UpdateConsigneeReq;  
15 -import com.diligrp.mobsite.getway.domain.protocol.cart.UpdateConsigneeResp;  
16 -  
17 -/**  
18 - * <B>Description</B> 提货人接口 <br />  
19 - * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />  
20 - * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />  
21 - * <B>Company</B> 地利集团  
22 - *  
23 - * @author wujianjun  
24 - * @createTime 2014/8/28 10:34  
25 - */  
26 -public interface ConsigneeService {  
27 - AddConsigneeResp addConsignee(AddConsigneeReq req);  
28 -  
29 - UpdateConsigneeResp updateConsignee(UpdateConsigneeReq req);  
30 -  
31 - GetConsigneeResp getConsignee(GetConsigneeReq req);  
32 -  
33 - DelConsigneeResp delConsignee(DelConsigneeReq req);  
34 -  
35 - GetConsigneeListResp getConsigneeList(GetConsigneeListReq req);  
36 -  
37 - GetDefaultConsigneeResp getDefaultConsignee(GetDefaultConsigneeReq req);  
38 -  
39 - SetDefaultConsigneeResp setDefault(Long consigneeId,Long userId);  
40 -}  
mobsite-getway-service/src/main/java/com/diligrp/mobsite/getway/service/buyer/settle/impl/ConsigneeServiceImpl.java deleted 100644 → 0
1 -package com.diligrp.mobsite.getway.service.buyer.settle.impl;  
2 -  
3 -import com.diligrp.mobsite.getway.domain.common.ErrorMessage;  
4 -import com.diligrp.mobsite.getway.domain.common.ResultCode;  
5 -import com.diligrp.mobsite.getway.domain.except.ServiceException;  
6 -import com.diligrp.mobsite.getway.domain.protocol.ConsigneeInfo;  
7 -import com.diligrp.mobsite.getway.domain.protocol.cart.*;  
8 -import com.diligrp.mobsite.getway.rpc.UserRPC;  
9 -import com.diligrp.mobsite.getway.service.buyer.settle.ConsigneeService;  
10 -import com.diligrp.website.util.security.Validator;  
11 -import org.springframework.stereotype.Service;  
12 -  
13 -import javax.annotation.Resource;  
14 -import java.util.List;  
15 -  
16 -/**  
17 - * <B>Description</B> 提货人业务实现 <br />  
18 - * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />  
19 - * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />  
20 - * <B>Company</B> 地利集团  
21 - *  
22 - * @author wujianjun  
23 - * @createTime 2014/8/28 14:33  
24 - */  
25 -@Service  
26 -public class ConsigneeServiceImpl implements ConsigneeService {  
27 -  
28 - @Resource  
29 - private UserRPC userRPC;  
30 -  
31 - @Override  
32 - public AddConsigneeResp addConsignee(AddConsigneeReq req) {  
33 - Long id = userRPC.addConsignee(req.getConsigneeInfo(), req.getUserId());  
34 - if(Validator.isNull(id)){  
35 - throw new RuntimeException("添加提货人信息失败");  
36 - }  
37 - if (!Validator.isNull(req.getConsigneeInfo().getIsDefault()) &&  
38 - ConsigneeInfo.ISDEFAULT_YES == req.getConsigneeInfo().getIsDefault()) {  
39 - setDefault(id,req.getUserId());  
40 - }  
41 - AddConsigneeResp resp = new AddConsigneeResp();  
42 - resp.setId(id);  
43 - return resp;  
44 - }  
45 -  
46 - @Override  
47 - public UpdateConsigneeResp updateConsignee(UpdateConsigneeReq req) {  
48 - boolean result = userRPC.updateConsignee(req.getConsigneeInfo(), req.getUserId());  
49 - if(!result) {  
50 - throw new RuntimeException("修改提货人信息失败!");  
51 - }  
52 - return new UpdateConsigneeResp();  
53 - }  
54 -  
55 - @Override  
56 - public GetConsigneeResp getConsignee(GetConsigneeReq req) {  
57 - ConsigneeInfo info = userRPC.getConsignee(req.getId());  
58 - GetConsigneeResp resp = new GetConsigneeResp();  
59 - resp.setConsigneeInfo(info);  
60 - return resp;  
61 - }  
62 -  
63 - @Override  
64 - public DelConsigneeResp delConsignee(DelConsigneeReq req) {  
65 - boolean result = userRPC.delConsignee(req.getId());  
66 - if(!result) {  
67 - throw new RuntimeException("删除提货人信息失败!");  
68 - }  
69 - return new DelConsigneeResp();  
70 - }  
71 -  
72 - @Override  
73 - public GetConsigneeListResp getConsigneeList(GetConsigneeListReq req) {  
74 - List<ConsigneeInfo> consigneeInfos =  
75 - userRPC.getConsigneeByUserId(req.getUserId());  
76 - GetConsigneeListResp resp = new GetConsigneeListResp();  
77 - resp.setConsigneeInfos(consigneeInfos);  
78 - return resp;  
79 - }  
80 -  
81 - @Override  
82 - public GetDefaultConsigneeResp getDefaultConsignee(GetDefaultConsigneeReq req) {  
83 - GetDefaultConsigneeResp resp = new GetDefaultConsigneeResp();  
84 - ConsigneeInfo info = userRPC.getDefaultConsignee(req.getUserId());  
85 - if (Validator.isNull(info)) {  
86 - List<ConsigneeInfo> infoList = userRPC.getConsigneeByUserId(req.getUserId());  
87 - if (!Validator.isEmpty(infoList)) {  
88 - info = infoList.get(0);  
89 - }  
90 - }  
91 - resp.setConsigneeInfo(info);  
92 - return resp;  
93 - }  
94 -  
95 - @Override  
96 - public SetDefaultConsigneeResp setDefault(Long consigneeId,Long userId) {  
97 - boolean result = userRPC.setDefaultConsignee(consigneeId, userId);  
98 - if(!result) {  
99 - throw new ServiceException(ResultCode.USER_CONSIGNEE_SET_DEFAULT_FAILED,ErrorMessage.USER_CONSIGNEE_SET_DEFAULT_FAILED);  
100 - }  
101 - return new SetDefaultConsigneeResp();  
102 - }  
103 -}  
mobsite-getway-service/src/main/java/com/diligrp/mobsite/getway/service/buyer/user/impl/OrderServiceImpl.java
@@ -9,6 +9,7 @@ import com.diligrp.website.web.interfaces.WebsiteClient; @@ -9,6 +9,7 @@ import com.diligrp.website.web.interfaces.WebsiteClient;
9 import com.yqyw.filter.client.KeyWordsClient; 9 import com.yqyw.filter.client.KeyWordsClient;
10 import org.apache.log4j.Logger; 10 import org.apache.log4j.Logger;
11 import org.springframework.beans.factory.annotation.Autowired; 11 import org.springframework.beans.factory.annotation.Autowired;
  12 +import org.springframework.stereotype.Service;
12 13
13 import javax.annotation.Resource; 14 import javax.annotation.Resource;
14 15
@@ -22,7 +23,7 @@ import javax.annotation.Resource; @@ -22,7 +23,7 @@ import javax.annotation.Resource;
22 * @author zhangshirui 23 * @author zhangshirui
23 * @createTime 2014年9月1日 下午5:34:45 24 * @createTime 2014年9月1日 下午5:34:45
24 */ 25 */
25 -@org.springframework.stereotype.Service("orderService") 26 +@Service
26 public class OrderServiceImpl implements OrderService { 27 public class OrderServiceImpl implements OrderService {
27 28
28 @Resource 29 @Resource
mobsite-getway-service/src/main/java/com/diligrp/mobsite/getway/service/seller/impl/FundServiceImpl.java
@@ -26,6 +26,7 @@ public class FundServiceImpl implements FundService{ @@ -26,6 +26,7 @@ public class FundServiceImpl implements FundService{
26 ShopBuyerDetail shopBuyerDetail = new ShopBuyerDetail(); 26 ShopBuyerDetail shopBuyerDetail = new ShopBuyerDetail();
27 shopBuyerDetail.setShopId(fundsReq.getShopId()); 27 shopBuyerDetail.setShopId(fundsReq.getShopId());
28 shopBuyerDetail.setBuyerMobilePhone(fundsReq.getKeyword()); 28 shopBuyerDetail.setBuyerMobilePhone(fundsReq.getKeyword());
  29 + shopBuyerDetail.setCurrentPage(fundsReq.getPageNum());
29 Page<ShopBuyerDetailOutput> shopBuyerDetailOutputPage = shopBuyerRPC.queryShopAllBuyerList(shopBuyerDetail); 30 Page<ShopBuyerDetailOutput> shopBuyerDetailOutputPage = shopBuyerRPC.queryShopAllBuyerList(shopBuyerDetail);
30 ShopOutput shopOutput = shopRPC.getShopByShopId(fundsReq.getShopId()); 31 ShopOutput shopOutput = shopRPC.getShopByShopId(fundsReq.getShopId());
31 32
mobsite-getway-web/src/main/java/com/diligrp/mobsite/getway/web/api/buyer/home/ConsigneeController.java renamed to mobsite-getway-web/src/main/java/com/diligrp/mobsite/getway/web/api/buyer/home/PickInfoController.java
1 package com.diligrp.mobsite.getway.web.api.buyer.home; 1 package com.diligrp.mobsite.getway.web.api.buyer.home;
2 2
3 import com.diligrp.mobsite.getway.domain.except.ServiceException; 3 import com.diligrp.mobsite.getway.domain.except.ServiceException;
4 -import com.diligrp.mobsite.getway.domain.protocol.cart.*;  
5 -import com.diligrp.mobsite.getway.service.buyer.settle.ConsigneeService; 4 +import com.diligrp.mobsite.getway.domain.protocol.pickinfo.*;
  5 +import com.diligrp.mobsite.getway.service.buyer.pickinfo.PickInfoService;
6 import com.diligrp.mobsite.getway.web.api.base.BaseApiController; 6 import com.diligrp.mobsite.getway.web.api.base.BaseApiController;
7 import io.swagger.annotations.Api; 7 import io.swagger.annotations.Api;
8 import io.swagger.annotations.ApiOperation; 8 import io.swagger.annotations.ApiOperation;
9 import org.slf4j.Logger; 9 import org.slf4j.Logger;
10 import org.slf4j.LoggerFactory; 10 import org.slf4j.LoggerFactory;
  11 +import org.springframework.beans.factory.annotation.Autowired;
11 import org.springframework.stereotype.Controller; 12 import org.springframework.stereotype.Controller;
12 import org.springframework.web.bind.annotation.RequestBody; 13 import org.springframework.web.bind.annotation.RequestBody;
13 import org.springframework.web.bind.annotation.RequestMapping; 14 import org.springframework.web.bind.annotation.RequestMapping;
@@ -26,24 +27,24 @@ import javax.annotation.Resource; @@ -26,24 +27,24 @@ import javax.annotation.Resource;
26 * @createTime 2014/8/28 10:24 27 * @createTime 2014/8/28 10:24
27 */ 28 */
28 @Controller 29 @Controller
29 -@RequestMapping("/mobsiteApp/consignee")  
30 -@Api(value = "/mobsiteApp-consignee", description = "收货人接口")  
31 -public class ConsigneeController extends BaseApiController { 30 +@RequestMapping("/mobsiteApp/pickInfo")
  31 +@Api(value = "/mobsiteApp-pickInfo", description = "收货人接口")
  32 +public class PickInfoController extends BaseApiController {
32 33
33 - @Resource  
34 - private ConsigneeService consigneeService; 34 + @Autowired
  35 + private PickInfoService pickInfoService;
35 private Logger log = LoggerFactory.getLogger(getClass()); 36 private Logger log = LoggerFactory.getLogger(getClass());
36 37
37 /** 38 /**
38 * 获取默认提货人信息 39 * 获取默认提货人信息
39 */ 40 */
40 - @ApiOperation(value = "获取默认提货人信息", httpMethod = "POST",response = GetDefaultConsigneeResp.class)  
41 - @RequestMapping(value = "/getDefaultConsignee",method = RequestMethod.POST) 41 + @ApiOperation(value = "获取默认提货人信息", httpMethod = "POST",response = GetDefaultPickInfoResp.class)
  42 + @RequestMapping(value = "/getDefaultPickInfo",method = RequestMethod.POST)
42 @ResponseBody 43 @ResponseBody
43 - public void getDefaultConsignee() {  
44 - GetDefaultConsigneeReq req = getRequest(GetDefaultConsigneeReq.class); 44 + public void getDefaultPickInfo(@RequestBody GetDefaultPickInfoReq temp) {
  45 + GetDefaultPickInfoReq req = getRequest(GetDefaultPickInfoReq.class);
45 try { 46 try {
46 - GetDefaultConsigneeResp resp = consigneeService.getDefaultConsignee(req); 47 + GetDefaultPickInfoResp resp = pickInfoService.getDefaultPickInfo(req);
47 sendSuccessResp(resp); 48 sendSuccessResp(resp);
48 } catch (ServiceException e){ 49 } catch (ServiceException e){
49 log.error(String.format("Code=%s,ErrorMessage=%s,UserId=%s", e.getCode(), e.getMessage(), req.getUserId()), e); 50 log.error(String.format("Code=%s,ErrorMessage=%s,UserId=%s", e.getCode(), e.getMessage(), req.getUserId()), e);
@@ -57,13 +58,13 @@ public class ConsigneeController extends BaseApiController { @@ -57,13 +58,13 @@ public class ConsigneeController extends BaseApiController {
57 /** 58 /**
58 * 获取提货人信息列表 59 * 获取提货人信息列表
59 */ 60 */
60 - @ApiOperation(value = "获取提货人信息列表", httpMethod = "POST",response = GetConsigneeListResp.class)  
61 - @RequestMapping(value = "/getConsigneeList",method = RequestMethod.POST) 61 + @ApiOperation(value = "获取提货人信息列表", httpMethod = "POST",response = GetPickInfoListResp.class)
  62 + @RequestMapping(value = "/getPickInfoList",method = RequestMethod.POST)
62 @ResponseBody 63 @ResponseBody
63 - public void getConsigneeList() {  
64 - GetConsigneeListReq req = getRequest(GetConsigneeListReq.class); 64 + public void getPickInfoList(@RequestBody GetPickInfoListReq temp) {
  65 + GetPickInfoListReq req = getRequest(GetPickInfoListReq.class);
65 try { 66 try {
66 - GetConsigneeListResp resp = consigneeService.getConsigneeList(req); 67 + GetPickInfoListResp resp = pickInfoService.getPickInfoList(req);
67 sendSuccessResp(resp); 68 sendSuccessResp(resp);
68 } catch (ServiceException e){ 69 } catch (ServiceException e){
69 log.error(String.format("Code=%s,ErrorMessage=%s,UserId=%s", e.getCode(), e.getMessage(), req.getUserId()), e); 70 log.error(String.format("Code=%s,ErrorMessage=%s,UserId=%s", e.getCode(), e.getMessage(), req.getUserId()), e);
@@ -77,13 +78,13 @@ public class ConsigneeController extends BaseApiController { @@ -77,13 +78,13 @@ public class ConsigneeController extends BaseApiController {
77 /** 78 /**
78 * 删除提货人信息 79 * 删除提货人信息
79 */ 80 */
80 - @ApiOperation(value = "删除收货人", httpMethod = "POST",response = DelConsigneeResp.class)  
81 - @RequestMapping(value = "/delConsignee",method = RequestMethod.POST) 81 + @ApiOperation(value = "删除收货人", httpMethod = "POST",response = DelPickInfoResp.class)
  82 + @RequestMapping(value = "/delPickInfo",method = RequestMethod.POST)
82 @ResponseBody 83 @ResponseBody
83 - public void delConsignee(@RequestBody DelConsigneeReq temp) {  
84 - DelConsigneeReq req = getRequest(DelConsigneeReq.class); 84 + public void delPickInfo(@RequestBody DelPickInfoReq temp) {
  85 + DelPickInfoReq req = getRequest(DelPickInfoReq.class);
85 try { 86 try {
86 - DelConsigneeResp resp = consigneeService.delConsignee(req); 87 + DelPickInfoResp resp = pickInfoService.delPickInfo(req);
87 sendSuccessResp(resp); 88 sendSuccessResp(resp);
88 } catch (ServiceException e){ 89 } catch (ServiceException e){
89 log.error(String.format("Code=%s,ErrorMessage=%s,UserId=%s", e.getCode(), e.getMessage(), req.getUserId()), e); 90 log.error(String.format("Code=%s,ErrorMessage=%s,UserId=%s", e.getCode(), e.getMessage(), req.getUserId()), e);
@@ -97,13 +98,13 @@ public class ConsigneeController extends BaseApiController { @@ -97,13 +98,13 @@ public class ConsigneeController extends BaseApiController {
97 /** 98 /**
98 * 通过ID获取提货人详情 99 * 通过ID获取提货人详情
99 */ 100 */
100 - @ApiOperation(value = "修改收货人", httpMethod = "POST",response = GetConsigneeResp.class)  
101 - @RequestMapping(value = "/getConsignee",method = RequestMethod.POST) 101 + @ApiOperation(value = "修改收货人", httpMethod = "POST",response = GetPickInfoResp.class)
  102 + @RequestMapping(value = "/getPickInfo",method = RequestMethod.POST)
102 @ResponseBody 103 @ResponseBody
103 - public void getConsignee(@RequestBody GetConsigneeReq temp) {  
104 - GetConsigneeReq req = getRequest(GetConsigneeReq.class); 104 + public void getPickInfo(@RequestBody GetPickInfoReq temp) {
  105 + GetPickInfoReq req = getRequest(GetPickInfoReq.class);
105 try { 106 try {
106 - GetConsigneeResp resp = consigneeService.getConsignee(req); 107 + GetPickInfoResp resp = pickInfoService.getPickInfo(req);
107 sendSuccessResp(resp); 108 sendSuccessResp(resp);
108 } catch (ServiceException e){ 109 } catch (ServiceException e){
109 log.error(String.format("Code=%s,ErrorMessage=%s,UserId=%s", e.getCode(), e.getMessage(), req.getUserId()), e); 110 log.error(String.format("Code=%s,ErrorMessage=%s,UserId=%s", e.getCode(), e.getMessage(), req.getUserId()), e);
@@ -117,13 +118,13 @@ public class ConsigneeController extends BaseApiController { @@ -117,13 +118,13 @@ public class ConsigneeController extends BaseApiController {
117 /** 118 /**
118 * 修改提货人信息 119 * 修改提货人信息
119 */ 120 */
120 - @ApiOperation(value = "修改收货人", httpMethod = "POST",response = UpdateConsigneeResp.class)  
121 - @RequestMapping(value = "/updateConsignee",method = RequestMethod.POST) 121 + @ApiOperation(value = "修改收货人", httpMethod = "POST",response = UpdatePickInfoResp.class)
  122 + @RequestMapping(value = "/updatePickInfo",method = RequestMethod.POST)
122 @ResponseBody 123 @ResponseBody
123 - public void updateConsignee(@RequestBody UpdateConsigneeReq temp) {  
124 - UpdateConsigneeReq req = getRequest(UpdateConsigneeReq.class); 124 + public void updatePickInfo(@RequestBody UpdatePickInfoReq temp) {
  125 + UpdatePickInfoReq req = getRequest(UpdatePickInfoReq.class);
125 try { 126 try {
126 - UpdateConsigneeResp resp = consigneeService.updateConsignee(req); 127 + UpdatePickInfoResp resp = pickInfoService.updatePickInfo(req);
127 sendSuccessResp(resp); 128 sendSuccessResp(resp);
128 } catch (ServiceException e){ 129 } catch (ServiceException e){
129 log.error(String.format("Code=%s,ErrorMessage=%s,UserId=%s", e.getCode(), e.getMessage(), req.getUserId()), e); 130 log.error(String.format("Code=%s,ErrorMessage=%s,UserId=%s", e.getCode(), e.getMessage(), req.getUserId()), e);
@@ -137,13 +138,13 @@ public class ConsigneeController extends BaseApiController { @@ -137,13 +138,13 @@ public class ConsigneeController extends BaseApiController {
137 /** 138 /**
138 * 新增提货人 139 * 新增提货人
139 */ 140 */
140 - @ApiOperation(value = "新增收货人", httpMethod = "POST",response = AddConsigneeResp.class)  
141 - @RequestMapping(value = "/addConsignee",method = RequestMethod.POST) 141 + @ApiOperation(value = "新增收货人", httpMethod = "POST",response = AddPickInfoResp.class)
  142 + @RequestMapping(value = "/addPickInfo",method = RequestMethod.POST)
142 @ResponseBody 143 @ResponseBody
143 - public void addConsignee(@RequestBody AddConsigneeReq temp) {  
144 - AddConsigneeReq req = getRequest(AddConsigneeReq.class); 144 + public void addPickInfo(@RequestBody AddPickInfoReq temp) {
  145 + AddPickInfoReq req = getRequest(AddPickInfoReq.class);
145 try { 146 try {
146 - AddConsigneeResp resp = consigneeService.addConsignee(req); 147 + AddPickInfoResp resp = pickInfoService.addPickInfo(req);
147 sendSuccessResp(resp); 148 sendSuccessResp(resp);
148 } catch (ServiceException e){ 149 } catch (ServiceException e){
149 log.error(String.format("Code=%s,ErrorMessage=%s,UserId=%s", e.getCode(), e.getMessage(), req.getUserId()), e); 150 log.error(String.format("Code=%s,ErrorMessage=%s,UserId=%s", e.getCode(), e.getMessage(), req.getUserId()), e);
@@ -157,13 +158,13 @@ public class ConsigneeController extends BaseApiController { @@ -157,13 +158,13 @@ public class ConsigneeController extends BaseApiController {
157 /** 158 /**
158 * 设置默认提货人 159 * 设置默认提货人
159 */ 160 */
160 - @ApiOperation(value = "设置默认收货人", httpMethod = "POST",response = SetDefaultConsigneeReq.class) 161 + @ApiOperation(value = "设置默认收货人", httpMethod = "POST",response = SetDefaultPickInfoReq.class)
161 @RequestMapping(value = "/setDefault",method = RequestMethod.POST) 162 @RequestMapping(value = "/setDefault",method = RequestMethod.POST)
162 @ResponseBody 163 @ResponseBody
163 - public void setDefault(@RequestBody SetDefaultConsigneeReq temp) {  
164 - SetDefaultConsigneeReq req = getRequest(SetDefaultConsigneeReq.class); 164 + public void setDefault(@RequestBody SetDefaultPickInfoReq temp) {
  165 + SetDefaultPickInfoReq req = getRequest(SetDefaultPickInfoReq.class);
165 try { 166 try {
166 - SetDefaultConsigneeResp resp = consigneeService.setDefault(req.getId(),req.getUserId()); 167 + SetDefaultPickInfoResp resp = pickInfoService.setDefault(req.getId(),req.getUserId());
167 sendSuccessResp(resp); 168 sendSuccessResp(resp);
168 } catch (Exception e) { 169 } catch (Exception e) {
169 log.error(String.format("ErrorMessage=%s,UserId=%s",e.getMessage(),req.getUserId()), e); 170 log.error(String.format("ErrorMessage=%s,UserId=%s",e.getMessage(),req.getUserId()), e);
mobsite-getway-web/src/main/java/com/diligrp/mobsite/getway/web/api/seller/fund/FundController.java
@@ -41,9 +41,10 @@ public class FundController extends BaseApiController{ @@ -41,9 +41,10 @@ public class FundController extends BaseApiController{
41 @ApiOperation(value = "获取储值列表", httpMethod = "POST",response = GetFundsResp.class) 41 @ApiOperation(value = "获取储值列表", httpMethod = "POST",response = GetFundsResp.class)
42 @RequestMapping(value = "/getFunds",method = RequestMethod.POST) 42 @RequestMapping(value = "/getFunds",method = RequestMethod.POST)
43 @ResponseBody 43 @ResponseBody
44 - public void getFunds(@ModelAttribute GetFundsReq fundsReq) { 44 + public void getFunds(@RequestBody GetFundsReq temp) {
  45 + GetFundsReq req = super.getRequest(GetFundsReq.class);
45 try { 46 try {
46 - GetFundsResp resp = fundService.getFunds(fundsReq); 47 + GetFundsResp resp = fundService.getFunds(req);
47 super.sendSuccessResp(resp); 48 super.sendSuccessResp(resp);
48 } catch (ServiceException e) { 49 } catch (ServiceException e) {
49 log.error("获取储值列表出现业务异常", e); 50 log.error("获取储值列表出现业务异常", e);
@@ -66,14 +67,12 @@ public class FundController extends BaseApiController{ @@ -66,14 +67,12 @@ public class FundController extends BaseApiController{
66 * @author weili 67 * @author weili
67 */ 68 */
68 @ApiOperation(value = "储值卡操作", httpMethod = "POST",response = FundTradeResp.class) 69 @ApiOperation(value = "储值卡操作", httpMethod = "POST",response = FundTradeResp.class)
69 - @ApiImplicitParam(paramType = "query",name = "price",dataType = "Long", required = true, value = "储值金额")  
70 @RequestMapping(value = "/storeValue",method = RequestMethod.POST) 70 @RequestMapping(value = "/storeValue",method = RequestMethod.POST)
71 @ResponseBody 71 @ResponseBody
72 - public void storeValue(Long price) {  
73 - 72 + public void storeValue(@RequestBody FundTradeReq temp) {
74 FundTradeReq req = super.getRequest(FundTradeReq.class); 73 FundTradeReq req = super.getRequest(FundTradeReq.class);
75 try { 74 try {
76 - FundTradeResp resp = fundService.storeValue(price); 75 + FundTradeResp resp = fundService.storeValue(req.getTradePrice());
77 super.sendSuccessResp(resp); 76 super.sendSuccessResp(resp);
78 } catch (ServiceException e) { 77 } catch (ServiceException e) {
79 log.error("获取储值列表出现业务异常", e); 78 log.error("获取储值列表出现业务异常", e);
mobsite-getway-web/src/main/java/com/diligrp/mobsite/getway/web/api/seller/order/SellerOrderController.java
@@ -30,7 +30,6 @@ import javax.annotation.Resource; @@ -30,7 +30,6 @@ import javax.annotation.Resource;
30 @RequestMapping("/mobsiteApp/seller/order") 30 @RequestMapping("/mobsiteApp/seller/order")
31 @Api(value = "/mobsiteApp-order-seller", description = "订单接口-卖家") 31 @Api(value = "/mobsiteApp-order-seller", description = "订单接口-卖家")
32 public class SellerOrderController extends BaseApiController { 32 public class SellerOrderController extends BaseApiController {
33 -  
34 @Resource 33 @Resource
35 private SellerOrderService sellerOrderService; 34 private SellerOrderService sellerOrderService;
36 35