Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-webapp-plug
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-webapp-plug
Commits
56ea917f
Commit
56ea917f
authored
May 18, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' into 'master'
企业id写死bug See merge request
!4
parents
8ec3bbb9
5df575c7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
17 deletions
+9
-17
ScreeningController.java
...java/com/gic/plug/web/controller/ScreeningController.java
+1
-9
AppletConfigGoodsController.java
...lug/web/controller/goods/AppletConfigGoodsController.java
+7
-7
GoodsSelectorController.java
...ic/plug/web/controller/goods/GoodsSelectorController.java
+1
-1
No files found.
src/main/java/com/gic/plug/web/controller/ScreeningController.java
View file @
56ea917f
...
@@ -50,14 +50,6 @@ public class ScreeningController {
...
@@ -50,14 +50,6 @@ public class ScreeningController {
private
EsScreeningInitService
esScreeningInitService
;
private
EsScreeningInitService
esScreeningInitService
;
@Autowired
@Autowired
private
EsScreeningTemplateService
esScreeningTemplateService
;
private
EsScreeningTemplateService
esScreeningTemplateService
;
@Autowired
private
StrategyInit
strategyInit
;
@Autowired
private
StoreWidgetApiService
storeWidgetApiService
;
@Autowired
private
UserResourceApiService
userResourceApiService
;
@Autowired
private
ResourceApiService
resourceApiService
;
/**
/**
* @return
* @return
...
@@ -90,7 +82,7 @@ public class ScreeningController {
...
@@ -90,7 +82,7 @@ public class ScreeningController {
}
}
if
(
Constant
.
ERP_GOODS_SCREEN
.
equals
(
sceneCode
)
||
Constant
.
WEIMOB_GOODS_SCREEN
.
equals
(
sceneCode
))
{
if
(
Constant
.
ERP_GOODS_SCREEN
.
equals
(
sceneCode
)
||
Constant
.
WEIMOB_GOODS_SCREEN
.
equals
(
sceneCode
))
{
//TODO
//TODO
enterpriseId
=
"goods-test-
1129"
;
enterpriseId
=
"goods-test-
"
+
enterpriseId
;
}
}
List
<
EsScreeningEnterpriseCategorySceneInfoDTO
>
list
=
this
.
esScreeningInitService
List
<
EsScreeningEnterpriseCategorySceneInfoDTO
>
list
=
this
.
esScreeningInitService
.
queryEsScreeningByEnterpriseAndScene
(
enterpriseId
,
sceneCode
);
.
queryEsScreeningByEnterpriseAndScene
(
enterpriseId
,
sceneCode
);
...
...
src/main/java/com/gic/plug/web/controller/goods/AppletConfigGoodsController.java
View file @
56ea917f
...
@@ -68,17 +68,17 @@ public class AppletConfigGoodsController extends BaseGoodsController {
...
@@ -68,17 +68,17 @@ public class AppletConfigGoodsController extends BaseGoodsController {
public
RestResponse
getMallCordList
(
String
appConfigId
,
Long
shopId
)
{
public
RestResponse
getMallCordList
(
String
appConfigId
,
Long
shopId
)
{
Long
areaId
=
null
;
Long
areaId
=
null
;
if
(
StringUtils
.
isNotBlank
(
appConfigId
))
{
if
(
StringUtils
.
isNotBlank
(
appConfigId
))
{
ServiceResponse
<
AppletsConfigSimpleOutputDTO
>
appServiceResponse
=
appletsConfigApiService
.
selectAppletsConfigIdByAppId
(
appConfigId
,
1129
);
ServiceResponse
<
AppletsConfigSimpleOutputDTO
>
appServiceResponse
=
appletsConfigApiService
.
selectAppletsConfigIdByAppId
(
appConfigId
,
getEnterpriseId
()
);
if
(
appServiceResponse
.
getResult
()
==
null
)
{
if
(
appServiceResponse
.
getResult
()
==
null
)
{
return
RestResponse
.
failure
(
ErrorCodeEnums
.
MAll_ERR
.
getCode
(),
"小程序不存在"
);
return
RestResponse
.
failure
(
ErrorCodeEnums
.
MAll_ERR
.
getCode
(),
"小程序不存在"
);
}
}
ServiceResponse
<
ShopDTO
>
shopDTOServiceResponse
=
shopApiService
.
getShopByAppletId
(
appServiceResponse
.
getResult
().
getAppletConfigId
(),
1129
,
1
);
ServiceResponse
<
ShopDTO
>
shopDTOServiceResponse
=
shopApiService
.
getShopByAppletId
(
appServiceResponse
.
getResult
().
getAppletConfigId
(),
getEnterpriseId
()
,
1
);
if
(
shopDTOServiceResponse
.
getResult
()
==
null
)
{
if
(
shopDTOServiceResponse
.
getResult
()
==
null
)
{
return
RestResponse
.
failure
(
ErrorCodeEnums
.
MAll_ERR
.
getCode
(),
"不存在店铺"
);
return
RestResponse
.
failure
(
ErrorCodeEnums
.
MAll_ERR
.
getCode
(),
"不存在店铺"
);
}
}
areaId
=
shopDTOServiceResponse
.
getResult
().
getAreaId
();
areaId
=
shopDTOServiceResponse
.
getResult
().
getAreaId
();
}
else
if
(
shopId
!=
null
)
{
}
else
if
(
shopId
!=
null
)
{
ServiceResponse
<
ShopDTO
>
shopDTOServiceResponse
=
shopApiService
.
getShopDetailsById
(
shopId
,
1129
);
ServiceResponse
<
ShopDTO
>
shopDTOServiceResponse
=
shopApiService
.
getShopDetailsById
(
shopId
,
getEnterpriseId
()
);
if
(
shopDTOServiceResponse
.
getResult
()
==
null
)
{
if
(
shopDTOServiceResponse
.
getResult
()
==
null
)
{
return
RestResponse
.
failure
(
ErrorCodeEnums
.
MAll_ERR
.
getCode
(),
"不存在店铺"
);
return
RestResponse
.
failure
(
ErrorCodeEnums
.
MAll_ERR
.
getCode
(),
"不存在店铺"
);
}
}
...
@@ -104,18 +104,18 @@ public class AppletConfigGoodsController extends BaseGoodsController {
...
@@ -104,18 +104,18 @@ public class AppletConfigGoodsController extends BaseGoodsController {
Long
shopId
)
{
Long
shopId
)
{
Long
areaId
=
null
;
Long
areaId
=
null
;
if
(
StringUtils
.
isNotBlank
(
appConfigId
))
{
if
(
StringUtils
.
isNotBlank
(
appConfigId
))
{
ServiceResponse
<
AppletsConfigSimpleOutputDTO
>
appServiceResponse
=
appletsConfigApiService
.
selectAppletsConfigIdByAppId
(
appConfigId
,
1129
);
ServiceResponse
<
AppletsConfigSimpleOutputDTO
>
appServiceResponse
=
appletsConfigApiService
.
selectAppletsConfigIdByAppId
(
appConfigId
,
getEnterpriseId
()
);
if
(
appServiceResponse
.
getResult
()
==
null
)
{
if
(
appServiceResponse
.
getResult
()
==
null
)
{
return
RestResponse
.
failure
(
ErrorCodeEnums
.
MAll_ERR
.
getCode
(),
"小程序不存在"
);
return
RestResponse
.
failure
(
ErrorCodeEnums
.
MAll_ERR
.
getCode
(),
"小程序不存在"
);
}
}
Integer
shopType
=
1
;
Integer
shopType
=
1
;
ServiceResponse
<
ShopDTO
>
shopDTOServiceResponse
=
shopApiService
.
getShopByAppletId
(
appServiceResponse
.
getResult
().
getAppletConfigId
(),
1129
,
shopType
);
ServiceResponse
<
ShopDTO
>
shopDTOServiceResponse
=
shopApiService
.
getShopByAppletId
(
appServiceResponse
.
getResult
().
getAppletConfigId
(),
getEnterpriseId
()
,
shopType
);
if
(
shopDTOServiceResponse
.
getResult
()
==
null
)
{
if
(
shopDTOServiceResponse
.
getResult
()
==
null
)
{
return
RestResponse
.
failure
(
ErrorCodeEnums
.
MAll_ERR
.
getCode
(),
"不存在店铺"
);
return
RestResponse
.
failure
(
ErrorCodeEnums
.
MAll_ERR
.
getCode
(),
"不存在店铺"
);
}
}
areaId
=
shopDTOServiceResponse
.
getResult
().
getAreaId
();
areaId
=
shopDTOServiceResponse
.
getResult
().
getAreaId
();
}
else
if
(
shopId
!=
null
)
{
}
else
if
(
shopId
!=
null
)
{
ServiceResponse
<
ShopDTO
>
shopDTOServiceResponse
=
shopApiService
.
getShopDetailsById
(
shopId
,
1129
);
ServiceResponse
<
ShopDTO
>
shopDTOServiceResponse
=
shopApiService
.
getShopDetailsById
(
shopId
,
getEnterpriseId
()
);
if
(
shopDTOServiceResponse
.
getResult
()
==
null
)
{
if
(
shopDTOServiceResponse
.
getResult
()
==
null
)
{
return
RestResponse
.
failure
(
ErrorCodeEnums
.
MAll_ERR
.
getCode
(),
"不存在店铺"
);
return
RestResponse
.
failure
(
ErrorCodeEnums
.
MAll_ERR
.
getCode
(),
"不存在店铺"
);
}
}
...
@@ -142,7 +142,7 @@ public class AppletConfigGoodsController extends BaseGoodsController {
...
@@ -142,7 +142,7 @@ public class AppletConfigGoodsController extends BaseGoodsController {
goodsIds
.
add
(
goodsId
);
goodsIds
.
add
(
goodsId
);
});
});
}
}
ServiceResponse
<
Map
<
Long
,
BigDecimal
>>
mapServiceResponse
=
mallGoodsBusinessApiService
.
getLowestSkuPrice
(
goodsIds
,
1129
);
ServiceResponse
<
Map
<
Long
,
BigDecimal
>>
mapServiceResponse
=
mallGoodsBusinessApiService
.
getLowestSkuPrice
(
goodsIds
,
getEnterpriseId
()
);
if
(
mapServiceResponse
.
isSuccess
())
{
if
(
mapServiceResponse
.
isSuccess
())
{
Map
<
Long
,
BigDecimal
>
map
=
mapServiceResponse
.
getResult
();
Map
<
Long
,
BigDecimal
>
map
=
mapServiceResponse
.
getResult
();
serviceResponse
.
getResult
().
getRes
().
forEach
(
json
->
{
serviceResponse
.
getResult
().
getRes
().
forEach
(
json
->
{
...
...
src/main/java/com/gic/plug/web/controller/goods/GoodsSelectorController.java
View file @
56ea917f
...
@@ -169,7 +169,7 @@ public class GoodsSelectorController extends BaseGoodsController {
...
@@ -169,7 +169,7 @@ public class GoodsSelectorController extends BaseGoodsController {
@RequestMapping
(
"check-selector-goods-hit"
)
@RequestMapping
(
"check-selector-goods-hit"
)
public
RestResponse
checkSelectorGoodsHit
(
Long
goodsSelectorId
,
String
goodsCode
,
String
skuCode
)
{
public
RestResponse
checkSelectorGoodsHit
(
Long
goodsSelectorId
,
String
goodsCode
,
String
skuCode
)
{
ServiceResponse
<
Boolean
>
serviceResponse
=
ServiceResponse
<
Boolean
>
serviceResponse
=
goodsSelectorApiService
.
isSelectorHitGoods
(
goodsSelectorId
,
skuCode
,
goodsCode
,
1129
);
goodsSelectorApiService
.
isSelectorHitGoods
(
goodsSelectorId
,
skuCode
,
goodsCode
,
getEnterpriseId
()
);
return
RestResponse
.
success
(
serviceResponse
.
getResult
());
return
RestResponse
.
success
(
serviceResponse
.
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