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
e4141454
Commit
e4141454
authored
Mar 08, 2021
by
zhiheng.zhang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/20210224-订单添加备注信息-张志恒'
parents
fe9c74d2
a206df90
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
346 additions
and
40 deletions
+346
-40
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
+43
-39
shopping-cart-application-service/src/main/java/cn/freemud/constant/RedisKeyConstant.java
+5
-0
shopping-cart-application-service/src/main/java/cn/freemud/controller/ShoppingCartController.java
+13
-0
shopping-cart-application-service/src/main/java/cn/freemud/entities/db/OpenStoreIappWxappConfig.java
+193
-0
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/OpenStoreIappWxappConfigRequestVo.java
+12
-0
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/ShoppingCartGoodsResponseVo.java
+3
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/OpenStoreIappWxappConfigService.java
+11
-0
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/OpenStoreIappWxappConfigServiceImpl.java
+66
-0
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
View file @
e4141454
...
@@ -931,49 +931,53 @@ public class OrderServiceImpl implements Orderservice {
...
@@ -931,49 +931,53 @@ public class OrderServiceImpl implements Orderservice {
Long
pickUpTime
=
0L
;
//预计
Long
pickUpTime
=
0L
;
//预计
Integer
totalSumTime
=
0
;
Integer
totalSumTime
=
0
;
String
progress
=
"0"
;
//进度
String
progress
=
"0"
;
//进度
JSONObject
storeJsonObject
=
JSONObject
.
parseObject
(
storeResponseDto
.
getConfiguration
());
Integer
orderProgressBarStatus
=
2
;
StoreResponse
.
Configuration
configuration
=
storeJsonObject
.
toJavaObject
(
StoreResponse
.
Configuration
.
class
);
StoreResponse
.
Configuration
configuration
=
storeResponseDto
.
getStoreConfig
();
log
.
info
(
"StoreResponse.Configuration {}"
,
JSONObject
.
toJSONString
(
configuration
));
if
(
null
!=
configuration
)
{
Integer
orderProgressBarStatus
=
configuration
.
getOrderProgressBarStatus
();;
//默认关闭
log
.
info
(
"StoreResponse.Configuration {}"
,
JSONObject
.
toJSONString
(
configuration
));
//订单状态为已接单并且无售后单展示进度条
orderProgressBarStatus
=
configuration
.
getOrderProgressBarStatus
();
if
(
OrderStatus
.
RECEIPT
.
getCode
()
==
orderBean
.
getStatus
()
&&
null
==
orderBean
.
getAfterSalesOrderResp
()
&&
null
!=
orderProgressBarStatus
&&
null
!=
configuration
.
getTurnOnTimeOfMaking
())
{
;
//默认关闭
try
{
//订单状态为已接单并且无售后单展示进度条
// 查询订单的排队人数
if
(
OrderStatus
.
RECEIPT
.
getCode
()
==
orderBean
.
getStatus
()
&&
null
==
orderBean
.
getAfterSalesOrderResp
()
&&
null
!=
orderProgressBarStatus
&&
null
!=
configuration
.
getTurnOnTimeOfMaking
())
{
QueryLineUpOrderReq
queryLineUpOrderReq
=
new
QueryLineUpOrderReq
();
try
{
queryLineUpOrderReq
.
setPartnerId
(
orderBean
.
getCompanyId
());
// 查询订单的排队人数
queryLineUpOrderReq
.
setStoreId
(
orderBean
.
getShopId
());
QueryLineUpOrderReq
queryLineUpOrderReq
=
new
QueryLineUpOrderReq
();
queryLineUpOrderReq
.
setStartTime
(
DateUtil
.
addHours
(
new
Date
(
orderBean
.
getGmtCreate
()),
-
24
).
getTime
());
queryLineUpOrderReq
.
setPartnerId
(
orderBean
.
getCompanyId
());
queryLineUpOrderReq
.
setEndTime
(
orderBean
.
getGmtCreate
());
queryLineUpOrderReq
.
setStoreId
(
orderBean
.
getShopId
());
// 取餐排队人数查询代码去除
queryLineUpOrderReq
.
setStartTime
(
DateUtil
.
addHours
(
new
Date
(
orderBean
.
getGmtCreate
()),
-
24
).
getTime
());
QueryLineUpResponse
response
=
orderCenterSdkService
.
queryLineUpOrder
(
queryLineUpOrderReq
);;
queryLineUpOrderReq
.
setEndTime
(
orderBean
.
getGmtCreate
());
if
(
RESPONSE_SUCCESS_CODE
.
equals
(
response
.
getErrcode
()))
{
// 取餐排队人数查询代码去除
if
(
null
==
response
.
getOrderCodes
())
{
QueryLineUpResponse
response
=
orderCenterSdkService
.
queryLineUpOrder
(
queryLineUpOrderReq
);
progress
=
"100"
;
;
returnWords
=
""
;
if
(
RESPONSE_SUCCESS_CODE
.
equals
(
response
.
getErrcode
()))
{
}
else
{
if
(
null
==
response
.
getOrderCodes
())
{
List
<
String
>
orderCodeList
=
response
.
getOrderCodes
();
progress
=
"100"
;
if
(
null
!=
orderCodeList
&&
orderCodeList
.
size
()
>
0
)
{
returnWords
=
""
;
returnWords
+=
"前方还有 "
+
orderCodeList
.
size
()
+
" 单"
;
}
else
{
//开启制作时间 1 :是 , 2 :否"
List
<
String
>
orderCodeList
=
response
.
getOrderCodes
();
if
(
1
!=
configuration
.
getTurnOnTimeOfMaking
())
{
if
(
null
!=
orderCodeList
&&
orderCodeList
.
size
()
>
0
)
{
totalSumTime
=
orderCodeList
.
size
()
*
AutoOrderConfigTime
.
getTime
(
configuration
.
getAutoSelfmentionTakeOrderWorkflowFinishTime
());
//分钟
returnWords
+=
"前方还有 "
+
orderCodeList
.
size
()
+
" 单"
;
}
else
{
//开启制作时间 1 :是 , 2 :否"
Integer
goodsAvgTimeOfMaking
=
(
null
==
configuration
.
getGoodsAvgTimeOfMaking
()
||
0
==
configuration
.
getGoodsAvgTimeOfMaking
())?
5
:
configuration
.
getGoodsAvgTimeOfMaking
();
if
(
1
!=
configuration
.
getTurnOnTimeOfMaking
())
{
productSum
=
orderCodeList
.
stream
().
mapToInt
(
product
->
Integer
.
parseInt
(
product
.
split
(
"-"
)[
1
])).
sum
();
totalSumTime
=
orderCodeList
.
size
()
*
AutoOrderConfigTime
.
getTime
(
configuration
.
getAutoSelfmentionTakeOrderWorkflowFinishTime
());
//分钟
totalSumTime
=
productSum
*
goodsAvgTimeOfMaking
;
}
else
{
returnWords
+=
" / "
+
productSum
+
" 件"
;
Integer
goodsAvgTimeOfMaking
=
(
null
==
configuration
.
getGoodsAvgTimeOfMaking
()
||
0
==
configuration
.
getGoodsAvgTimeOfMaking
())
?
5
:
configuration
.
getGoodsAvgTimeOfMaking
();
productSum
=
orderCodeList
.
stream
().
mapToInt
(
product
->
Integer
.
parseInt
(
product
.
split
(
"-"
)[
1
])).
sum
();
totalSumTime
=
productSum
*
goodsAvgTimeOfMaking
;
returnWords
+=
" / "
+
productSum
+
" 件"
;
}
pickUpTime
=
DateUtil
.
addMinutes
(
new
Date
(
orderBean
.
getGmtAccept
()),
totalSumTime
).
getTime
();
Date
date
=
new
Date
(
pickUpTime
);
returnWords
+=
",预计 "
+
(
String
.
valueOf
(
date
.
getHours
()).
length
()
==
1
?
"0"
+
(
String
.
valueOf
(
date
.
getHours
()))
:
date
.
getHours
())
+
":"
+
(
String
.
valueOf
(
date
.
getMinutes
()).
length
()
==
1
?
"0"
+
(
String
.
valueOf
(
date
.
getMinutes
()))
:
date
.
getMinutes
())
+
" 可取餐"
;
//制餐进度(当前时间-接单时间)/总时长(制餐时长)x100%
BigDecimal
progressB
=
new
BigDecimal
(
DateUtil
.
diffMinute
(
new
Date
(
orderBean
.
getGmtAccept
()),
new
Date
())).
divide
(
new
BigDecimal
(
totalSumTime
),
2
,
BigDecimal
.
ROUND_HALF_UP
);
progress
=
progressB
.
compareTo
(
new
BigDecimal
(
1
))
==
1
?
"100"
:
progressB
.
multiply
(
new
BigDecimal
(
100
)).
toString
();
}
}
pickUpTime
=
DateUtil
.
addMinutes
(
new
Date
(
orderBean
.
getGmtAccept
()),
totalSumTime
).
getTime
();
Date
date
=
new
Date
(
pickUpTime
);
returnWords
+=
",预计 "
+
(
String
.
valueOf
(
date
.
getHours
()).
length
()==
1
?
"0"
+(
String
.
valueOf
(
date
.
getHours
()))
:
date
.
getHours
())
+
":"
+
(
String
.
valueOf
(
date
.
getMinutes
()).
length
()==
1
?
"0"
+(
String
.
valueOf
(
date
.
getMinutes
()))
:
date
.
getMinutes
())
+
" 可取餐"
;
//制餐进度(当前时间-接单时间)/总时长(制餐时长)x100%
BigDecimal
progressB
=
new
BigDecimal
(
DateUtil
.
diffMinute
(
new
Date
(
orderBean
.
getGmtAccept
()),
new
Date
())).
divide
(
new
BigDecimal
(
totalSumTime
),
2
,
BigDecimal
.
ROUND_HALF_UP
);
progress
=
progressB
.
compareTo
(
new
BigDecimal
(
1
))
==
1
?
"100"
:
progressB
.
multiply
(
new
BigDecimal
(
100
)).
toString
();
}
}
}
}
}
catch
(
Exception
e
)
{
log
.
error
(
"get returnWords error :{},StoreResponse.Configuration:{}"
,
e
.
getMessage
(),
JSONObject
.
toJSONString
(
configuration
));
}
}
}
catch
(
Exception
e
)
{
log
.
error
(
"get returnWords error :{},StoreResponse.Configuration:{}"
,
e
.
getMessage
(),
JSONObject
.
toJSONString
(
configuration
));
}
}
}
}
orderBean
.
setProgress
(
String
.
valueOf
(
progress
));
orderBean
.
setProgress
(
String
.
valueOf
(
progress
));
...
...
shopping-cart-application-service/src/main/java/cn/freemud/constant/RedisKeyConstant.java
View file @
e4141454
...
@@ -46,4 +46,9 @@ public class RedisKeyConstant {
...
@@ -46,4 +46,9 @@ public class RedisKeyConstant {
* 新版支付白名单在redis的key前缀
* 新版支付白名单在redis的key前缀
*/
*/
public
final
static
String
SAAS_MICRO_PAYMENT_PARTNER
=
"saas:micro:payment:partner:"
;
public
final
static
String
SAAS_MICRO_PAYMENT_PARTNER
=
"saas:micro:payment:partner:"
;
/**
* wxapp_config配置表
*/
public
final
static
String
KGD_ORDER_OPEN_STORE_IAPP_WXAPP_CONFIG_WXAPPID_
=
"kgd:order:open_store_iapp_wxapp_config:wxappid_"
;
}
}
shopping-cart-application-service/src/main/java/cn/freemud/controller/ShoppingCartController.java
View file @
e4141454
...
@@ -19,6 +19,7 @@ import cn.freemud.entities.dto.GetMemberInfoRequestDto;
...
@@ -19,6 +19,7 @@ import cn.freemud.entities.dto.GetMemberInfoRequestDto;
import
cn.freemud.entities.vo.*
;
import
cn.freemud.entities.vo.*
;
import
cn.freemud.enums.OrderChannelType
;
import
cn.freemud.enums.OrderChannelType
;
import
cn.freemud.enums.ResponseResult
;
import
cn.freemud.enums.ResponseResult
;
import
cn.freemud.service.OpenStoreIappWxappConfigService
;
import
cn.freemud.service.ShoppingCartNewService
;
import
cn.freemud.service.ShoppingCartNewService
;
import
cn.freemud.service.impl.ShoppingCartMallServiceImpl
;
import
cn.freemud.service.impl.ShoppingCartMallServiceImpl
;
import
cn.freemud.service.impl.ShoppingCartMealServiceImpl
;
import
cn.freemud.service.impl.ShoppingCartMealServiceImpl
;
...
@@ -51,6 +52,9 @@ public class ShoppingCartController {
...
@@ -51,6 +52,9 @@ public class ShoppingCartController {
@Autowired
@Autowired
private
AssortmentCustomerInfoManager
customerInfoManager
;
private
AssortmentCustomerInfoManager
customerInfoManager
;
@Autowired
private
OpenStoreIappWxappConfigService
openStoreIappWxappConfigService
;
/**
/**
* 从微信卡券向购物车中添加商品
* 从微信卡券向购物车中添加商品
*/
*/
...
@@ -187,4 +191,13 @@ public class ShoppingCartController {
...
@@ -187,4 +191,13 @@ public class ShoppingCartController {
return
SDKCommonBaseContextWare
.
getBean
(
ShoppingCartNewServiceImpl
.
class
).
getMemberInfo
(
request
);
return
SDKCommonBaseContextWare
.
getBean
(
ShoppingCartNewServiceImpl
.
class
).
getMemberInfo
(
request
);
}
}
/**
* 结算页获取是否展示订单那备注配置
*/
@PostMapping
(
value
=
"/getOpenStoreIappWxappConfig"
)
@LogIgnore
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
logMessage
=
"/getOpenStoreIappWxappConfig"
)
public
BaseResponse
getOpenStoreIappWxappConfig
(
@LogParams
@RequestBody
OpenStoreIappWxappConfigRequestVo
request
)
{
return
openStoreIappWxappConfigService
.
getOpenStoreIappWxappConfig
(
request
);
}
}
}
shopping-cart-application-service/src/main/java/cn/freemud/entities/db/OpenStoreIappWxappConfig.java
0 → 100644
View file @
e4141454
package
cn
.
freemud
.
entities
.
db
;
import
javax.persistence.*
;
import
java.util.Date
;
@Table
(
name
=
"open_store_iapp_wxapp_config"
)
public
class
OpenStoreIappWxappConfig
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Long
id
;
/**
* 自定义小程序appid
*/
private
String
appid
;
/**
* 微信小程序appid
*/
@Column
(
name
=
"wx_appid"
)
private
String
wxAppid
;
/**
* 是否允许填写备注文案,0=否,1=是
*/
@Column
(
name
=
"take_inside"
)
private
Integer
takeInside
;
/**
* 到店订单默认文案
*/
@Column
(
name
=
"inside_remark"
)
private
String
insideRemark
;
/**
* 外卖订单默认文案
*/
@Column
(
name
=
"take_out_remark"
)
private
String
takeOutRemark
;
/**
* 创建时间
*/
@Column
(
name
=
"gmt_created"
)
private
Date
gmtCreated
;
/**
* 修改时间
*/
@Column
(
name
=
"gmt_modified"
)
private
Date
gmtModified
;
/**
* @return id
*/
public
Long
getId
()
{
return
id
;
}
/**
* @param id
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* 获取自定义小程序appid
*
* @return appid - 自定义小程序appid
*/
public
String
getAppid
()
{
return
appid
;
}
/**
* 设置自定义小程序appid
*
* @param appid 自定义小程序appid
*/
public
void
setAppid
(
String
appid
)
{
this
.
appid
=
appid
;
}
/**
* 获取微信小程序appid
*
* @return wx_appid - 微信小程序appid
*/
public
String
getWxAppid
()
{
return
wxAppid
;
}
/**
* 设置微信小程序appid
*
* @param wxAppid 微信小程序appid
*/
public
void
setWxAppid
(
String
wxAppid
)
{
this
.
wxAppid
=
wxAppid
;
}
/**
* 获取是否允许填写备注文案,0=否,1=是
*
* @return take_inside - 是否允许填写备注文案,0=否,1=是
*/
public
Integer
getTakeInside
()
{
return
takeInside
;
}
/**
* 设置是否允许填写备注文案,0=否,1=是
*
* @param takeInside 是否允许填写备注文案,0=否,1=是
*/
public
void
setTakeInside
(
Integer
takeInside
)
{
this
.
takeInside
=
takeInside
;
}
/**
* 获取到店订单默认文案
*
* @return inside_remark - 到店订单默认文案
*/
public
String
getInsideRemark
()
{
return
insideRemark
;
}
/**
* 设置到店订单默认文案
*
* @param insideRemark 到店订单默认文案
*/
public
void
setInsideRemark
(
String
insideRemark
)
{
this
.
insideRemark
=
insideRemark
;
}
/**
* 获取外卖订单默认文案
*
* @return take_out_remark - 外卖订单默认文案
*/
public
String
getTakeOutRemark
()
{
return
takeOutRemark
;
}
/**
* 设置外卖订单默认文案
*
* @param takeOutRemark 外卖订单默认文案
*/
public
void
setTakeOutRemark
(
String
takeOutRemark
)
{
this
.
takeOutRemark
=
takeOutRemark
;
}
/**
* 获取创建时间
*
* @return gmt_created - 创建时间
*/
public
Date
getGmtCreated
()
{
return
gmtCreated
;
}
/**
* 设置创建时间
*
* @param gmtCreated 创建时间
*/
public
void
setGmtCreated
(
Date
gmtCreated
)
{
this
.
gmtCreated
=
gmtCreated
;
}
/**
* 获取修改时间
*
* @return gmt_modified - 修改时间
*/
public
Date
getGmtModified
()
{
return
gmtModified
;
}
/**
* 设置修改时间
*
* @param gmtModified 修改时间
*/
public
void
setGmtModified
(
Date
gmtModified
)
{
this
.
gmtModified
=
gmtModified
;
}
}
\ No newline at end of file
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/OpenStoreIappWxappConfigRequestVo.java
0 → 100644
View file @
e4141454
package
cn
.
freemud
.
entities
.
vo
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.NotEmpty
;
@Data
public
class
OpenStoreIappWxappConfigRequestVo
{
@NotEmpty
(
message
=
"sessionId不能为空"
)
private
String
sessionId
;
}
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/ShoppingCartGoodsResponseVo.java
View file @
e4141454
...
@@ -222,4 +222,6 @@ public class ShoppingCartGoodsResponseVo extends ShoppingCartGoodsBaseResponseV
...
@@ -222,4 +222,6 @@ public class ShoppingCartGoodsResponseVo extends ShoppingCartGoodsBaseResponseV
* 是否已选择寄杯
* 是否已选择寄杯
*/
*/
private
Boolean
sendCoupon
;
private
Boolean
sendCoupon
;
}}
}
}
shopping-cart-application-service/src/main/java/cn/freemud/service/OpenStoreIappWxappConfigService.java
0 → 100644
View file @
e4141454
package
cn
.
freemud
.
service
;
import
cn.freemud.base.entity.BaseResponse
;
import
cn.freemud.entities.vo.OpenStoreIappWxappConfigRequestVo
;
import
cn.freemud.redis.RedisCache
;
import
org.springframework.beans.factory.annotation.Autowired
;
public
interface
OpenStoreIappWxappConfigService
{
BaseResponse
getOpenStoreIappWxappConfig
(
OpenStoreIappWxappConfigRequestVo
openStoreIappWxappConfigRequestVo
);
}
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/OpenStoreIappWxappConfigServiceImpl.java
0 → 100644
View file @
e4141454
package
cn
.
freemud
.
service
.
impl
;
import
cn.freemud.base.entity.BaseResponse
;
import
cn.freemud.constant.RedisKeyConstant
;
import
cn.freemud.entities.db.OpenStoreIappWxappConfig
;
import
cn.freemud.entities.dto.user.GetSessionUserInfoDto
;
import
cn.freemud.entities.vo.CustomerInfoVo
;
import
cn.freemud.entities.vo.OpenStoreIappWxappConfigRequestVo
;
import
cn.freemud.enums.ResponseResult
;
import
cn.freemud.interceptor.ServiceException
;
import
cn.freemud.redis.RedisCache
;
import
cn.freemud.service.OpenStoreIappWxappConfigService
;
import
cn.freemud.service.thirdparty.CustomerApplicationClient
;
import
cn.freemud.utils.BeanUtil
;
import
cn.freemud.utils.ResponseUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.beanutils.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
@Service
@Slf4j
public
class
OpenStoreIappWxappConfigServiceImpl
implements
OpenStoreIappWxappConfigService
{
@Autowired
private
RedisCache
redisCache
;
@Autowired
private
CustomerApplicationClient
customerApplicationClient
;
public
BaseResponse
getOpenStoreIappWxappConfig
(
OpenStoreIappWxappConfigRequestVo
openStoreIappWxappConfigRequestVo
){
// 获取用户信息
CustomerInfoVo
assortmentCustomerInfoVo
=
getCustomerInfoVo
(
openStoreIappWxappConfigRequestVo
.
getSessionId
());
//缓存为空则初始化为展示备注,默认备注为空,
OpenStoreIappWxappConfig
defauleConfig
=
new
OpenStoreIappWxappConfig
();
defauleConfig
.
setTakeInside
(
1
);
defauleConfig
.
setInsideRemark
(
""
);
defauleConfig
.
setTakeOutRemark
(
""
);
OpenStoreIappWxappConfig
config
;
try
{
config
=
redisCache
.
hashGet
(
RedisKeyConstant
.
KGD_ORDER_OPEN_STORE_IAPP_WXAPP_CONFIG_WXAPPID_
,
assortmentCustomerInfoVo
.
getWxAppId
());
if
(
null
==
config
)
{
config
=
new
OpenStoreIappWxappConfig
();
BeanUtils
.
copyProperties
(
config
,
defauleConfig
);
return
ResponseUtil
.
success
(
config
);
}
else
{
return
ResponseUtil
.
success
(
config
);
}
}
catch
(
Exception
e
){
//异常打印日常日志,返回默认config
log
.
error
(
"getOpenStoreIappWxappConfig error {}"
,
e
.
getMessage
());
return
ResponseUtil
.
success
(
defauleConfig
);
}
}
private
CustomerInfoVo
getCustomerInfoVo
(
String
sessionId
)
{
GetSessionUserInfoDto
getSessionUserInfoDto
=
new
GetSessionUserInfoDto
();
getSessionUserInfoDto
.
setIsGetPaid
(
true
);
getSessionUserInfoDto
.
setSessionId
(
sessionId
);
BaseResponse
<
CustomerInfoVo
>
sessionUserInfo
=
customerApplicationClient
.
getSessionUserInfo
(
getSessionUserInfoDto
);
if
(!
ResponseResult
.
SUCCESS
.
getCode
().
equals
(
sessionUserInfo
.
getCode
())
||
sessionUserInfo
.
getResult
()
==
null
)
{
throw
new
ServiceException
(
ResponseResult
.
NOT_LOGIN
);
}
return
sessionUserInfo
.
getResult
();
}
}
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