Commit c0a69fb9e44496f3b23854449220f1cb753389fe

Authored by jiangchengyong
1 parent 1f6474e1

update rpc shopuser

mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/impl/DeliveryTimeRPCImpl.java
@@ -38,7 +38,7 @@ public class DeliveryTimeRPCImpl implements DeliveryTimeRPC { @@ -38,7 +38,7 @@ public class DeliveryTimeRPCImpl implements DeliveryTimeRPC {
38 BaseOutput<DeliveryTimeOutput> output = null; 38 BaseOutput<DeliveryTimeOutput> output = null;
39 try { 39 try {
40 output = myAppClient.getDeliveryTimeService().createShopDeliveryTime(deliveryTimeSaveInput); 40 output = myAppClient.getDeliveryTimeService().createShopDeliveryTime(deliveryTimeSaveInput);
41 - if(output.getCode().equals(200)){ 41 + if(output.getCode().equals("200")){
42 return output.getData(); 42 return output.getData();
43 }else{ 43 }else{
44 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult()); 44 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult());
@@ -61,7 +61,7 @@ public class DeliveryTimeRPCImpl implements DeliveryTimeRPC { @@ -61,7 +61,7 @@ public class DeliveryTimeRPCImpl implements DeliveryTimeRPC {
61 BaseOutput<Boolean> output = null; 61 BaseOutput<Boolean> output = null;
62 try { 62 try {
63 output = myAppClient.getDeliveryTimeService().deleteShopDeliveryTime(deliveryTimeId); 63 output = myAppClient.getDeliveryTimeService().deleteShopDeliveryTime(deliveryTimeId);
64 - if(output.getCode().equals(200)){ 64 + if(output.getCode().equals("200")){
65 return output.getData(); 65 return output.getData();
66 }else{ 66 }else{
67 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult()); 67 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult());
@@ -84,7 +84,7 @@ public class DeliveryTimeRPCImpl implements DeliveryTimeRPC { @@ -84,7 +84,7 @@ public class DeliveryTimeRPCImpl implements DeliveryTimeRPC {
84 BaseOutput<List<DeliveryTimeOutput>> output = null; 84 BaseOutput<List<DeliveryTimeOutput>> output = null;
85 try { 85 try {
86 output = myAppClient.getDeliveryTimeService().queryShopDeliveryTime(deliveryTimeListInput); 86 output = myAppClient.getDeliveryTimeService().queryShopDeliveryTime(deliveryTimeListInput);
87 - if(output.getCode().equals(200)){ 87 + if(output.getCode().equals("200")){
88 return output.getData(); 88 return output.getData();
89 }else{ 89 }else{
90 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult()); 90 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult());
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/impl/FundTradeRPCImpl.java
@@ -33,7 +33,7 @@ public class FundTradeRPCImpl implements FundTradeRPC { @@ -33,7 +33,7 @@ public class FundTradeRPCImpl implements FundTradeRPC {
33 BaseOutput<Page<FundTradeOutput>> output = null; 33 BaseOutput<Page<FundTradeOutput>> output = null;
34 try { 34 try {
35 output = myAppClient.getFundTradeService().queryFundTrade(fundTradeListInput); 35 output = myAppClient.getFundTradeService().queryFundTrade(fundTradeListInput);
36 - if(output.getCode().equals(200)){ 36 + if(output.getCode().equals("200")){
37 return output.getData(); 37 return output.getData();
38 }else{ 38 }else{
39 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult()); 39 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult());
@@ -55,7 +55,7 @@ public class FundTradeRPCImpl implements FundTradeRPC { @@ -55,7 +55,7 @@ public class FundTradeRPCImpl implements FundTradeRPC {
55 BaseOutput<Boolean> output = null; 55 BaseOutput<Boolean> output = null;
56 try { 56 try {
57 output = myAppClient.getFundTradeService().fundTrade(fundTradeSaveInput); 57 output = myAppClient.getFundTradeService().fundTrade(fundTradeSaveInput);
58 - if(output.getCode().equals(200)){ 58 + if(output.getCode().equals("200")){
59 return output.getData(); 59 return output.getData();
60 }else{ 60 }else{
61 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult()); 61 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult());
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/impl/PickInfoRPCImpl.java
@@ -37,7 +37,7 @@ public class PickInfoRPCImpl implements PickInfoRPC{ @@ -37,7 +37,7 @@ public class PickInfoRPCImpl implements PickInfoRPC{
37 BaseOutput<PickingInfoOutput> output = null; 37 BaseOutput<PickingInfoOutput> output = null;
38 try { 38 try {
39 output = myAppClient.getPickingInfoService().addPickingInfo(pickingInfoSaveInput); 39 output = myAppClient.getPickingInfoService().addPickingInfo(pickingInfoSaveInput);
40 - if(output.getCode().equals(200)){ 40 + if(output.getCode().equals("200")){
41 return output.getData(); 41 return output.getData();
42 }else{ 42 }else{
43 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult()); 43 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult());
@@ -59,7 +59,7 @@ public class PickInfoRPCImpl implements PickInfoRPC{ @@ -59,7 +59,7 @@ public class PickInfoRPCImpl implements PickInfoRPC{
59 BaseOutput<Boolean> output = null; 59 BaseOutput<Boolean> output = null;
60 try { 60 try {
61 output = myAppClient.getPickingInfoService().modify(pickingInfoUpdateInput); 61 output = myAppClient.getPickingInfoService().modify(pickingInfoUpdateInput);
62 - if(output.getCode().equals(200)){ 62 + if(output.getCode().equals("200")){
63 return output.getData(); 63 return output.getData();
64 }else{ 64 }else{
65 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult()); 65 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult());
@@ -81,7 +81,7 @@ public class PickInfoRPCImpl implements PickInfoRPC{ @@ -81,7 +81,7 @@ public class PickInfoRPCImpl implements PickInfoRPC{
81 BaseOutput<List<PickingInfoOutput>> output = null; 81 BaseOutput<List<PickingInfoOutput>> output = null;
82 try { 82 try {
83 output = myAppClient.getPickingInfoService().queryPickingInfosByBuyerId(buyerId); 83 output = myAppClient.getPickingInfoService().queryPickingInfosByBuyerId(buyerId);
84 - if(output.getCode().equals(200)){ 84 + if(output.getCode().equals("200")){
85 return output.getData(); 85 return output.getData();
86 }else{ 86 }else{
87 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult()); 87 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult());
@@ -104,7 +104,7 @@ public class PickInfoRPCImpl implements PickInfoRPC{ @@ -104,7 +104,7 @@ public class PickInfoRPCImpl implements PickInfoRPC{
104 BaseOutput<PickingInfoOutput> output = null; 104 BaseOutput<PickingInfoOutput> output = null;
105 try { 105 try {
106 output = myAppClient.getPickingInfoService().getDefaultPickingInfoByBuyerId(buyerId); 106 output = myAppClient.getPickingInfoService().getDefaultPickingInfoByBuyerId(buyerId);
107 - if(output.getCode().equals(200)){ 107 + if(output.getCode().equals("200")){
108 return output.getData(); 108 return output.getData();
109 }else{ 109 }else{
110 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult()); 110 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult());
@@ -127,7 +127,7 @@ public class PickInfoRPCImpl implements PickInfoRPC{ @@ -127,7 +127,7 @@ public class PickInfoRPCImpl implements PickInfoRPC{
127 BaseOutput<Boolean> output = null; 127 BaseOutput<Boolean> output = null;
128 try { 128 try {
129 output = myAppClient.getPickingInfoService().delPickingInfoById(id); 129 output = myAppClient.getPickingInfoService().delPickingInfoById(id);
130 - if(output.getCode().equals(200)){ 130 + if(output.getCode().equals("200")){
131 return output.getData(); 131 return output.getData();
132 }else{ 132 }else{
133 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult()); 133 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult());
@@ -149,7 +149,7 @@ public class PickInfoRPCImpl implements PickInfoRPC{ @@ -149,7 +149,7 @@ public class PickInfoRPCImpl implements PickInfoRPC{
149 BaseOutput<PickingInfoOutput> output = null; 149 BaseOutput<PickingInfoOutput> output = null;
150 try { 150 try {
151 output = myAppClient.getPickingInfoService().getPickingInfoById(id); 151 output = myAppClient.getPickingInfoService().getPickingInfoById(id);
152 - if(output.getCode().equals(200)){ 152 + if(output.getCode().equals("200")){
153 return output.getData(); 153 return output.getData();
154 }else{ 154 }else{
155 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult()); 155 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult());
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/impl/ShopBuyerRPCImpl.java
@@ -36,7 +36,7 @@ public class ShopBuyerRPCImpl implements ShopBuyerRPC { @@ -36,7 +36,7 @@ public class ShopBuyerRPCImpl implements ShopBuyerRPC {
36 boolean flag = false; 36 boolean flag = false;
37 try { 37 try {
38 output = myAppClient.getShopBuyerService().queryShopAllBuyerList(shopBuyerDetail); 38 output = myAppClient.getShopBuyerService().queryShopAllBuyerList(shopBuyerDetail);
39 - if(output.getCode().equals(200)){ 39 + if(output.getCode().equals("200")){
40 return output.getData(); 40 return output.getData();
41 }else{ 41 }else{
42 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult()); 42 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult());
@@ -60,7 +60,7 @@ public class ShopBuyerRPCImpl implements ShopBuyerRPC { @@ -60,7 +60,7 @@ public class ShopBuyerRPCImpl implements ShopBuyerRPC {
60 boolean flag = false; 60 boolean flag = false;
61 try { 61 try {
62 output = myAppClient.getShopBuyerService().bindAndActivate(buyerId,promoCode); 62 output = myAppClient.getShopBuyerService().bindAndActivate(buyerId,promoCode);
63 - if(output.getCode().equals(200)){ 63 + if(output.getCode().equals("200")){
64 return output.getData(); 64 return output.getData();
65 }else{ 65 }else{
66 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult()); 66 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult());
@@ -84,7 +84,7 @@ public class ShopBuyerRPCImpl implements ShopBuyerRPC { @@ -84,7 +84,7 @@ public class ShopBuyerRPCImpl implements ShopBuyerRPC {
84 boolean flag = false; 84 boolean flag = false;
85 try { 85 try {
86 output = myAppClient.getShopBuyerService().getShopBuyerKeys(shopBuyerId); 86 output = myAppClient.getShopBuyerService().getShopBuyerKeys(shopBuyerId);
87 - if(output.getCode().equals(200)){ 87 + if(output.getCode().equals("200")){
88 return output.getData(); 88 return output.getData();
89 }else{ 89 }else{
90 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult()); 90 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult());
@@ -109,7 +109,7 @@ public class ShopBuyerRPCImpl implements ShopBuyerRPC { @@ -109,7 +109,7 @@ public class ShopBuyerRPCImpl implements ShopBuyerRPC {
109 boolean flag = false; 109 boolean flag = false;
110 try { 110 try {
111 output = myAppClient.getShopBuyerService().modifyShopRemarkName(shopBuyerId,remarkName); 111 output = myAppClient.getShopBuyerService().modifyShopRemarkName(shopBuyerId,remarkName);
112 - if(output.getCode().equals(200)){ 112 + if(output.getCode().equals("200")){
113 return output.getData(); 113 return output.getData();
114 }else{ 114 }else{
115 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult()); 115 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult());
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/impl/ShopRPCImpl.java
@@ -44,7 +44,7 @@ public class ShopRPCImpl implements ShopRPC { @@ -44,7 +44,7 @@ public class ShopRPCImpl implements ShopRPC {
44 BaseOutput<ShopOutput> output = null; 44 BaseOutput<ShopOutput> output = null;
45 try{ 45 try{
46 output = myAppClient.getShopInfoService().createShopInfo(shopSaveInput); 46 output = myAppClient.getShopInfoService().createShopInfo(shopSaveInput);
47 - if(output.getCode().equals(200)){ 47 + if(output.getCode().equals("200")){
48 return output.getData(); 48 return output.getData();
49 }else{ 49 }else{
50 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult()); 50 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult());
@@ -67,7 +67,7 @@ public class ShopRPCImpl implements ShopRPC { @@ -67,7 +67,7 @@ public class ShopRPCImpl implements ShopRPC {
67 BaseOutput<ShopOutput> output = null; 67 BaseOutput<ShopOutput> output = null;
68 try{ 68 try{
69 output = myAppClient.getShopInfoService().getShopBySellerId(sellerId); 69 output = myAppClient.getShopInfoService().getShopBySellerId(sellerId);
70 - if(output.getCode().equals(200)){ 70 + if(output.getCode().equals("200")){
71 return output.getData(); 71 return output.getData();
72 }else{ 72 }else{
73 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult()); 73 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult());
@@ -90,7 +90,7 @@ public class ShopRPCImpl implements ShopRPC { @@ -90,7 +90,7 @@ public class ShopRPCImpl implements ShopRPC {
90 BaseOutput<ShopOutput> output = null; 90 BaseOutput<ShopOutput> output = null;
91 try{ 91 try{
92 output = myAppClient.getShopInfoService().getShopByShopId(shopId); 92 output = myAppClient.getShopInfoService().getShopByShopId(shopId);
93 - if(output.getCode().equals(200)){ 93 + if(output.getCode().equals("200")){
94 return output.getData(); 94 return output.getData();
95 }else{ 95 }else{
96 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult()); 96 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult());
@@ -113,7 +113,7 @@ public class ShopRPCImpl implements ShopRPC { @@ -113,7 +113,7 @@ public class ShopRPCImpl implements ShopRPC {
113 BaseOutput<ShopOutput> output = null; 113 BaseOutput<ShopOutput> output = null;
114 try{ 114 try{
115 output = myAppClient.getShopInfoService().getShopInfo(shopListInput); 115 output = myAppClient.getShopInfoService().getShopInfo(shopListInput);
116 - if(output.getCode().equals(200)){ 116 + if(output.getCode().equals("200")){
117 return output.getData(); 117 return output.getData();
118 }else{ 118 }else{
119 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult()); 119 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult());
@@ -136,7 +136,7 @@ public class ShopRPCImpl implements ShopRPC { @@ -136,7 +136,7 @@ public class ShopRPCImpl implements ShopRPC {
136 BaseOutput<Boolean> output = null; 136 BaseOutput<Boolean> output = null;
137 try{ 137 try{
138 output = myAppClient.getShopInfoService().modifyShopBasicInfo(shopUpdateInput); 138 output = myAppClient.getShopInfoService().modifyShopBasicInfo(shopUpdateInput);
139 - if(output.getCode().equals(200)){ 139 + if(output.getCode().equals("200")){
140 return output.getData(); 140 return output.getData();
141 }else{ 141 }else{
142 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult()); 142 throw new ServiceException(Integer.parseInt(output.getCode()),output.getResult());
mobsite-getway-web/pom.xml
@@ -84,9 +84,9 @@ @@ -84,9 +84,9 @@
84 84
85 85
86 <!-- 店铺域名 --> 86 <!-- 店铺域名 -->
87 - <project.shop.url>http://shopuser.zandeapp.com</project.shop.url>  
88 - <project.shop.sign></project.shop.sign>  
89 - <project.shop.system></project.shop.system> 87 + <project.shopuser.url>http://shopuser.zandeapp.com</project.shopuser.url>
  88 + <project.shopuser.sign></project.shopuser.sign>
  89 + <project.shopuser.system></project.shopuser.system>
90 90
91 <!-- sms.webchina.cn 短信发送接口的配置 --> 91 <!-- sms.webchina.cn 短信发送接口的配置 -->
92 <project.sms.webchina.SMSKey>2cf3264488ee3beef224</project.sms.webchina.SMSKey> 92 <project.sms.webchina.SMSKey>2cf3264488ee3beef224</project.sms.webchina.SMSKey>
@@ -198,10 +198,10 @@ @@ -198,10 +198,10 @@
198 <!-- 图片服务器前缀--> 198 <!-- 图片服务器前缀-->
199 <project.imageserver.prefix>http://10.28.6.153</project.imageserver.prefix> 199 <project.imageserver.prefix>http://10.28.6.153</project.imageserver.prefix>
200 200
201 - <!-- 店铺域名 -->  
202 - <project.shop.url>http://shop.zandeapp.com</project.shop.url>  
203 - <project.shop.sign>FzZGZxd2VycXdlYXNzZHZzdnp4Y3Z</project.shop.sign>  
204 - <project.shop.system>pnr-getway</project.shop.system> 201 + <!-- 店铺用户域名 -->
  202 + <project.shopuser.url>http://shopuser.zandeapp.com</project.shopuser.url>
  203 + <project.shopuser.sign>FzZGZxd2VycXdlYXNzZHZzdnp4Y3Z</project.shopuser.sign>
  204 + <project.shopuser.system>pnr-getway</project.shopuser.system>
205 205
206 <!-- sms.webchina.cn 短信发送接口的配置 --> 206 <!-- sms.webchina.cn 短信发送接口的配置 -->
207 <project.sms.webchina.SMSKey>2cf3264488ee3beef224</project.sms.webchina.SMSKey> 207 <project.sms.webchina.SMSKey>2cf3264488ee3beef224</project.sms.webchina.SMSKey>
@@ -352,9 +352,9 @@ @@ -352,9 +352,9 @@
352 <project.imageserver.domain>zandeapp.com</project.imageserver.domain> 352 <project.imageserver.domain>zandeapp.com</project.imageserver.domain>
353 353
354 <!-- 店铺域名 --> 354 <!-- 店铺域名 -->
355 - <project.shop.url>http://shop.zandeapp.com</project.shop.url>  
356 - <project.shop.sign>FzZGZxd2VycXdlYXNzZHZzdnp4Y3Z</project.shop.sign>  
357 - <project.shop.system>pnr-getway</project.shop.system> 355 + <project.shopuser.url>http://shopuser.zandeapp.com</project.shopuser.url>
  356 + <project.shopuser.sign>FzZGZxd2VycXdlYXNzZHZzdnp4Y3Z</project.shopuser.sign>
  357 + <project.shopuser.system>pnr-getway</project.shopuser.system>
358 358
359 <!-- sms.webchina.cn 短信发送接口的配置 --> 359 <!-- sms.webchina.cn 短信发送接口的配置 -->
360 <project.sms.webchina.SMSKey>2cf3264488ee3beef224</project.sms.webchina.SMSKey> 360 <project.sms.webchina.SMSKey>2cf3264488ee3beef224</project.sms.webchina.SMSKey>
@@ -505,9 +505,9 @@ @@ -505,9 +505,9 @@
505 505
506 506
507 <!-- 店铺域名 --> 507 <!-- 店铺域名 -->
508 - <project.shop.url>http://shop.zandeapp.com</project.shop.url>  
509 - <project.shop.sign>FzZGZxd2VycXdlYXNzZHZzdnp4Y3Z</project.shop.sign>  
510 - <project.shop.system>pnr-getway</project.shop.system> 508 + <project.shopuser.url>http://shopuser.zandeapp.com</project.shopuser.url>
  509 + <project.shopuser.sign>FzZGZxd2VycXdlYXNzZHZzdnp4Y3Z</project.shopuser.sign>
  510 + <project.shopuser.system>pnr-getway</project.shopuser.system>
511 511
512 <!-- sms.webchina.cn 短信发送接口的配置 --> 512 <!-- sms.webchina.cn 短信发送接口的配置 -->
513 <project.sms.webchina.SMSKey>2cf3264488ee3beef224</project.sms.webchina.SMSKey> 513 <project.sms.webchina.SMSKey>2cf3264488ee3beef224</project.sms.webchina.SMSKey>
mobsite-getway-web/src/main/resources/spring-rpc.xml
@@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
24 24
25 <bean id="myAppClient" class="com.b2c.myapp.sdk.MyAppClient"> 25 <bean id="myAppClient" class="com.b2c.myapp.sdk.MyAppClient">
26 <constructor-arg name="token" value="token"/> 26 <constructor-arg name="token" value="token"/>
27 - <constructor-arg name="baseUrl" value="${project.shop.url}"/> 27 + <constructor-arg name="baseUrl" value="${project.shopuser.url}"/>
28 </bean> 28 </bean>
29 29
30 <bean id="websiteClient" class="com.diligrp.website.web.interfaces.WebsiteClient"> 30 <bean id="websiteClient" class="com.diligrp.website.web.interfaces.WebsiteClient">