Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
c3c52a50
Commit
c3c52a50
authored
Jun 28, 2021
by
ping.wu
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/featur/20210609-会员信息-zy' into featur/20210609-会员信息-zy
parents
93e08e0b
ed5faea8
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
13 deletions
+22
-13
shopping-cart-application-service/src/main/java/cn/freemud/factory/AbstractShoppingCartImpl.java
+4
-2
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/OpenStoreIappWxappConfigServiceImpl.java
+5
-3
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartMallServiceImpl.java
+3
-2
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartMealServiceImpl.java
+4
-2
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
+3
-2
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
+3
-2
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/factory/AbstractShoppingCartImpl.java
View file @
c3c52a50
...
@@ -23,6 +23,7 @@ import cn.freemud.service.thirdparty.CustomerApplicationClient;
...
@@ -23,6 +23,7 @@ import cn.freemud.service.thirdparty.CustomerApplicationClient;
import
cn.freemud.service.thirdparty.StockClient
;
import
cn.freemud.service.thirdparty.StockClient
;
import
cn.freemud.utils.BeanUtil
;
import
cn.freemud.utils.BeanUtil
;
import
cn.freemud.utils.PromotionFactory
;
import
cn.freemud.utils.PromotionFactory
;
import
com.alibaba.fastjson.JSON
;
import
com.freemud.api.assortment.datamanager.entity.db.AssortmentOpenPlatformPartnerStoreDeliveryConfig
;
import
com.freemud.api.assortment.datamanager.entity.db.AssortmentOpenPlatformPartnerStoreDeliveryConfig
;
import
com.freemud.api.assortment.datamanager.entity.vo.AssortmentCustomerInfoVo
;
import
com.freemud.api.assortment.datamanager.entity.vo.AssortmentCustomerInfoVo
;
import
com.freemud.api.assortment.datamanager.manager.AssortmentOpenPlatformPartnerStoreDeliveryConfigManager
;
import
com.freemud.api.assortment.datamanager.manager.AssortmentOpenPlatformPartnerStoreDeliveryConfigManager
;
...
@@ -123,8 +124,9 @@ public abstract class AbstractShoppingCartImpl implements ShoppingCartNewService
...
@@ -123,8 +124,9 @@ public abstract class AbstractShoppingCartImpl implements ShoppingCartNewService
// }
// }
AssortmentCustomerInfoVo
customerInfoVo
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
AssortmentCustomerInfoVo
customerInfoVo
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
if
(
customerInfoVo
==
null
)
throw
new
ServiceException
(
ResponseResult
.
NOT_LOGIN
);;
if
(
customerInfoVo
==
null
)
throw
new
ServiceException
(
ResponseResult
.
NOT_LOGIN
);;
CustomerInfoVo
customerInfoVo1
=
new
CustomerInfoVo
();
String
jsonObject
=
JSON
.
toJSONString
(
customerInfoVo
);
BeanUtil
.
convertBean
(
customerInfoVo
,
customerInfoVo1
);
CustomerInfoVo
customerInfoVo1
=
JSON
.
parseObject
(
jsonObject
,
CustomerInfoVo
.
class
);
// BeanUtil.convertBean(customerInfoVo,customerInfoVo1);
return
customerInfoVo1
;
return
customerInfoVo1
;
}
}
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/OpenStoreIappWxappConfigServiceImpl.java
View file @
c3c52a50
...
@@ -14,6 +14,7 @@ import cn.freemud.service.thirdparty.CustomerApplicationClient;
...
@@ -14,6 +14,7 @@ import cn.freemud.service.thirdparty.CustomerApplicationClient;
import
cn.freemud.utils.BeanUtil
;
import
cn.freemud.utils.BeanUtil
;
import
cn.freemud.utils.LogUtil
;
import
cn.freemud.utils.LogUtil
;
import
cn.freemud.utils.ResponseUtil
;
import
cn.freemud.utils.ResponseUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.freemud.api.assortment.datamanager.entity.vo.AssortmentCustomerInfoVo
;
import
com.freemud.api.assortment.datamanager.entity.vo.AssortmentCustomerInfoVo
;
import
com.freemud.api.assortment.datamanager.manager.customer.AssortmentCustomerInfoManager
;
import
com.freemud.api.assortment.datamanager.manager.customer.AssortmentCustomerInfoManager
;
import
com.freemud.application.sdk.api.log.ApiLog
;
import
com.freemud.application.sdk.api.log.ApiLog
;
...
@@ -69,9 +70,10 @@ public class OpenStoreIappWxappConfigServiceImpl implements OpenStoreIappWxappCo
...
@@ -69,9 +70,10 @@ public class OpenStoreIappWxappConfigServiceImpl implements OpenStoreIappWxappCo
// }
// }
// return sessionUserInfo.getResult();
// return sessionUserInfo.getResult();
AssortmentCustomerInfoVo
customerInfoVo
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
AssortmentCustomerInfoVo
customerInfoVo
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
if
(
customerInfoVo
==
null
)
throw
new
ServiceException
(
ResponseResult
.
NOT_LOGIN
);;
if
(
customerInfoVo
==
null
)
throw
new
ServiceException
(
ResponseResult
.
NOT_LOGIN
);
CustomerInfoVo
customerInfoVo1
=
new
CustomerInfoVo
();
String
jsonObject
=
JSON
.
toJSONString
(
customerInfoVo
);
BeanUtil
.
convertBean
(
customerInfoVo
,
customerInfoVo1
);
CustomerInfoVo
customerInfoVo1
=
JSON
.
parseObject
(
jsonObject
,
CustomerInfoVo
.
class
);
// BeanUtil.convertBean(customerInfoVo,customerInfoVo1);
return
customerInfoVo1
;
return
customerInfoVo1
;
}
}
}
}
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartMallServiceImpl.java
View file @
c3c52a50
...
@@ -905,8 +905,9 @@ public class ShoppingCartMallServiceImpl implements ShoppingCartNewService {
...
@@ -905,8 +905,9 @@ public class ShoppingCartMallServiceImpl implements ShoppingCartNewService {
// return sessionUserInfo.getResult();
// return sessionUserInfo.getResult();
AssortmentCustomerInfoVo
customerInfoVo
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
AssortmentCustomerInfoVo
customerInfoVo
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
if
(
customerInfoVo
==
null
)
throw
new
ServiceException
(
ResponseResult
.
NOT_LOGIN
);;
if
(
customerInfoVo
==
null
)
throw
new
ServiceException
(
ResponseResult
.
NOT_LOGIN
);;
CustomerInfoVo
customerInfoVo1
=
new
CustomerInfoVo
();
String
jsonObject
=
JSON
.
toJSONString
(
customerInfoVo
);
BeanUtil
.
convertBean
(
customerInfoVo
,
customerInfoVo1
);
CustomerInfoVo
customerInfoVo1
=
JSON
.
parseObject
(
jsonObject
,
CustomerInfoVo
.
class
);
// BeanUtil.convertBean(customerInfoVo,customerInfoVo1);
return
customerInfoVo1
;
return
customerInfoVo1
;
}
}
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartMealServiceImpl.java
View file @
c3c52a50
...
@@ -22,6 +22,7 @@ import cn.freemud.service.ShoppingCartNewService;
...
@@ -22,6 +22,7 @@ import cn.freemud.service.ShoppingCartNewService;
import
cn.freemud.service.thirdparty.ActivityClient
;
import
cn.freemud.service.thirdparty.ActivityClient
;
import
cn.freemud.service.thirdparty.CustomerApplicationClient
;
import
cn.freemud.service.thirdparty.CustomerApplicationClient
;
import
cn.freemud.utils.*
;
import
cn.freemud.utils.*
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.freemud.api.assortment.datamanager.entity.vo.AssortmentCustomerInfoVo
;
import
com.freemud.api.assortment.datamanager.entity.vo.AssortmentCustomerInfoVo
;
...
@@ -709,8 +710,9 @@ public class ShoppingCartMealServiceImpl implements ShoppingCartNewService {
...
@@ -709,8 +710,9 @@ public class ShoppingCartMealServiceImpl implements ShoppingCartNewService {
// return sessionUserInfo.getResult();
// return sessionUserInfo.getResult();
AssortmentCustomerInfoVo
customerInfoVo
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
AssortmentCustomerInfoVo
customerInfoVo
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
if
(
customerInfoVo
==
null
)
return
null
;
if
(
customerInfoVo
==
null
)
return
null
;
CustomerInfoVo
customerInfoVo1
=
new
CustomerInfoVo
();
String
jsonObject
=
JSON
.
toJSONString
(
customerInfoVo
);
BeanUtil
.
convertBean
(
customerInfoVo
,
customerInfoVo1
);
CustomerInfoVo
customerInfoVo1
=
JSON
.
parseObject
(
jsonObject
,
CustomerInfoVo
.
class
);
// BeanUtil.convertBean(customerInfoVo,customerInfoVo1);
return
customerInfoVo1
;
return
customerInfoVo1
;
}
}
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
View file @
c3c52a50
...
@@ -2382,8 +2382,9 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
...
@@ -2382,8 +2382,9 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
// return sessionUserInfo.getResult();
// return sessionUserInfo.getResult();
AssortmentCustomerInfoVo
customerInfoVo
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
AssortmentCustomerInfoVo
customerInfoVo
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
if
(
customerInfoVo
==
null
)
throw
new
ServiceException
(
ResponseResult
.
NOT_LOGIN
);;
if
(
customerInfoVo
==
null
)
throw
new
ServiceException
(
ResponseResult
.
NOT_LOGIN
);;
CustomerInfoVo
customerInfoVo1
=
new
CustomerInfoVo
();
String
jsonObject
=
JSON
.
toJSONString
(
customerInfoVo
);
BeanUtil
.
convertBean
(
customerInfoVo
,
customerInfoVo1
);
CustomerInfoVo
customerInfoVo1
=
JSON
.
parseObject
(
jsonObject
,
CustomerInfoVo
.
class
);
// BeanUtil.convertBean(customerInfoVo,customerInfoVo1);
return
customerInfoVo1
;
return
customerInfoVo1
;
}
}
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
View file @
c3c52a50
...
@@ -1584,8 +1584,9 @@ public class ShoppingCartMCoffeeServiceImpl {
...
@@ -1584,8 +1584,9 @@ public class ShoppingCartMCoffeeServiceImpl {
AssortmentCustomerInfoVo
customerInfoVo
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
AssortmentCustomerInfoVo
customerInfoVo
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
if
(
customerInfoVo
==
null
)
if
(
customerInfoVo
==
null
)
throw
new
ServiceException
(
ResponseResult
.
NOT_LOGIN
);
throw
new
ServiceException
(
ResponseResult
.
NOT_LOGIN
);
CustomerInfoVo
customerInfoVo1
=
new
CustomerInfoVo
();
String
jsonObject
=
JSON
.
toJSONString
(
customerInfoVo
);
BeanUtil
.
convertBean
(
customerInfoVo
,
customerInfoVo1
);
CustomerInfoVo
customerInfoVo1
=
JSON
.
parseObject
(
jsonObject
,
CustomerInfoVo
.
class
);
// BeanUtil.convertBean(customerInfoVo,customerInfoVo1);
return
customerInfoVo1
;
return
customerInfoVo1
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment