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
11dd527b
Commit
11dd527b
authored
Jan 16, 2020
by
何文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
ae468530
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
6 deletions
+25
-6
pom.xml
pom.xml
+6
-1
AppletConfigGoodsController.java
...lug/web/controller/goods/AppletConfigGoodsController.java
+17
-4
dubbo-gic-webapp-plug.xml
src/main/resources/dubbo-gic-webapp-plug.xml
+2
-1
No files found.
pom.xml
View file @
11dd527b
...
...
@@ -25,6 +25,7 @@
<gic-redis-data>
4.0-SNAPSHOT
</gic-redis-data>
<gic-goods-api>
4.0-SNAPSHOT
</gic-goods-api>
<gic-mall-share-api>
4.0-SNAPSHOT
</gic-mall-share-api>
<gic-member-config-api>
4.0-SNAPSHOT
</gic-member-config-api>
</properties>
<dependencies>
...
...
@@ -77,7 +78,11 @@
<artifactId>
gic-goods-api
</artifactId>
<version>
${gic-goods-api}
</version>
</dependency>
<dependency>
<groupId>
com.gic
</groupId>
<artifactId>
gic-member-config-api
</artifactId>
<version>
${gic-member-config-api}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
...
...
src/main/java/com/gic/plug/web/controller/goods/AppletConfigGoodsController.java
View file @
11dd527b
...
...
@@ -20,6 +20,8 @@ import com.gic.goods.api.util.Constant;
import
com.gic.mall.base.api.enums.ErrorCodeEnums
;
import
com.gic.mall.share.api.dto.shop.ShopDTO
;
import
com.gic.mall.share.api.service.ShopApiService
;
import
com.gic.member.config.api.dto.AppletsConfigSimpleOutputDTO
;
import
com.gic.member.config.api.service.AppletsConfigApiService
;
import
com.gic.plug.web.vo.goods.MallGoodsCordVO
;
import
com.gic.search.business.api.constant.enums.OperateEnum
;
import
com.gic.search.business.api.dto.DynamicSearchDTO
;
...
...
@@ -42,14 +44,21 @@ public class AppletConfigGoodsController {
private
ShopApiService
shopApiService
;
@Autowired
private
AppletsConfigApiService
appletsConfigApiService
;
@Autowired
private
EsScreeningSearchService
esScreeningSearchService
;
@Autowired
private
EsBusinessOperaApiService
esBusinessOperaApiService
;
@RequestMapping
(
"get-mall-cord-list"
)
public
RestResponse
getMallCordList
(
Long
appConfigId
)
{
ServiceResponse
<
ShopDTO
>
shopDTOServiceResponse
=
shopApiService
.
getShopByAppletId
(
appConfigId
,
1129
,
1
);
public
RestResponse
getMallCordList
(
String
appConfigId
)
{
ServiceResponse
<
AppletsConfigSimpleOutputDTO
>
appServiceResponse
=
appletsConfigApiService
.
selectAppletsConfigIdByAppId
(
appConfigId
,
1129
);
if
(
appServiceResponse
.
getResult
()
==
null
)
{
return
RestResponse
.
failure
(
ErrorCodeEnums
.
MAll_ERR
.
getCode
(),
"小程序不存在"
);
}
ServiceResponse
<
ShopDTO
>
shopDTOServiceResponse
=
shopApiService
.
getShopByAppletId
(
appServiceResponse
.
getResult
().
getAppletConfigId
(),
1129
,
1
);
if
(
shopDTOServiceResponse
.
getResult
()
==
null
)
{
return
RestResponse
.
failure
(
ErrorCodeEnums
.
MAll_ERR
.
getCode
(),
"不存在店铺"
);
}
...
...
@@ -70,9 +79,13 @@ public class AppletConfigGoodsController {
*/
@RequestMapping
(
"list-mall-goods-selector"
)
public
RestResponse
listGoodsByChannel
(
@RequestParam
(
value
=
"currentPage"
,
defaultValue
=
"1"
)
Integer
currentPage
,
@RequestParam
(
value
=
"pageSize"
,
defaultValue
=
"20"
)
Integer
pageSize
,
Long
appConfigId
,
String
search
,
Long
cordId
)
{
@RequestParam
(
value
=
"pageSize"
,
defaultValue
=
"20"
)
Integer
pageSize
,
String
appConfigId
,
String
search
,
Long
cordId
)
{
ServiceResponse
<
AppletsConfigSimpleOutputDTO
>
appServiceResponse
=
appletsConfigApiService
.
selectAppletsConfigIdByAppId
(
appConfigId
,
1129
);
if
(
appServiceResponse
.
getResult
()
==
null
)
{
return
RestResponse
.
failure
(
ErrorCodeEnums
.
MAll_ERR
.
getCode
(),
"小程序不存在"
);
}
Integer
shopType
=
1
;
ServiceResponse
<
ShopDTO
>
shopDTOServiceResponse
=
shopApiService
.
getShopByAppletId
(
app
ConfigId
,
1129
,
shopType
);
ServiceResponse
<
ShopDTO
>
shopDTOServiceResponse
=
shopApiService
.
getShopByAppletId
(
app
ServiceResponse
.
getResult
().
getAppletConfigId
()
,
1129
,
shopType
);
if
(
shopDTOServiceResponse
.
getResult
()
==
null
)
{
return
RestResponse
.
failure
(
ErrorCodeEnums
.
MAll_ERR
.
getCode
(),
"不存在店铺"
);
}
...
...
src/main/resources/dubbo-gic-webapp-plug.xml
View file @
11dd527b
...
...
@@ -55,5 +55,5 @@
<dubbo:reference
interface=
"com.gic.widget.screening.api.service.EsScreeningSearchService"
id=
"esScreeningSearchService"
timeout=
"60000"
retries=
"0"
/>
<dubbo:reference
interface=
"com.gic.store.service.StoreWidgetApiService"
id=
"storeWidgetApiService"
timeout=
"60000"
retries=
"0"
/>
<dubbo:reference
interface=
"com.gic.mall.share.api.service.ShopApiService"
id=
"shopApiService"
timeout=
"10000"
retries=
"0"
/>
<dubbo:reference
interface=
"com.gic.member.config.api.service.AppletsConfigApiService"
id=
"appletsConfigApiService"
timeout=
"10000"
retries=
"0"
/>
</beans>
\ No newline at end of file
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