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
b843b0e7
Commit
b843b0e7
authored
Aug 29, 2019
by
何文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加goodsProperty的值
parent
eac4701d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
176 additions
and
4 deletions
+176
-4
GoodsErpPropertyController.java
...plug/web/controller/goods/GoodsErpPropertyController.java
+0
-4
GoodsPropertyController.java
...ic/plug/web/controller/goods/GoodsPropertyController.java
+55
-0
GoodsPropertyVO.java
src/main/java/com/gic/plug/web/vo/goods/GoodsPropertyVO.java
+73
-0
GoodsPropertyValueVO.java
.../java/com/gic/plug/web/vo/goods/GoodsPropertyValueVO.java
+45
-0
dubbo-gic-webapp-plug.xml
src/main/resources/dubbo-gic-webapp-plug.xml
+3
-0
No files found.
src/main/java/com/gic/plug/web/controller/goods/GoodsErpPropertyController.java
deleted
100644 → 0
View file @
eac4701d
package
com
.
gic
.
plug
.
web
.
controller
.
goods
;
public
class
GoodsErpPropertyController
{
}
src/main/java/com/gic/plug/web/controller/goods/GoodsPropertyController.java
0 → 100644
View file @
b843b0e7
package
com
.
gic
.
plug
.
web
.
controller
.
goods
;
import
java.util.ArrayList
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.commons.contants.SortType
;
import
com.gic.commons.util.PageHelperUtils
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.goods.api.dto.PropertyDTO
;
import
com.gic.goods.api.dto.PropertyValueDTO
;
import
com.gic.goods.api.service.PropertyApiService
;
import
com.gic.goods.api.service.PropertyValueApiService
;
import
com.gic.goods.api.util.Constant
;
import
com.gic.plug.web.vo.goods.GoodsPropertyVO
;
import
com.gic.plug.web.vo.goods.GoodsPropertyValueVO
;
@RestController
public
class
GoodsPropertyController
{
@Autowired
private
PropertyApiService
propertyApiService
;
@Autowired
private
PropertyValueApiService
propertyValueApiService
;
@RequestMapping
(
"/property-list"
)
public
RestResponse
propertyList
(
int
pageSize
,
int
currentPage
,
String
search
,
Long
goodsDomainId
)
{
List
<
String
>
arrayList
=
new
ArrayList
<>();
arrayList
.
add
(
Constant
.
PROPERTY_TYPE_TEXT
);
ServiceResponse
<
Page
<
PropertyDTO
>>
serviceResponse
=
propertyApiService
.
findPropertyExceptType
(
currentPage
,
pageSize
,
goodsDomainId
,
arrayList
,
search
);
if
(!
serviceResponse
.
isSuccess
())
{
return
RestResponse
.
failure
(
serviceResponse
.
getCode
(),
serviceResponse
.
getMessage
());
}
Page
<
GoodsPropertyVO
>
page
=
PageHelperUtils
.
changePageToCurrentPage
(
serviceResponse
.
getResult
(),
GoodsPropertyVO
.
class
);
return
RestResponse
.
success
(
page
);
}
@RequestMapping
(
"/property-value-list"
)
public
RestResponse
propertyValueList
(
int
pageSize
,
int
currentPage
,
String
search
,
Long
specPropertyId
)
{
ServiceResponse
<
Page
<
PropertyValueDTO
>>
serviceResponse
=
propertyValueApiService
.
pagePropertyValue
(
currentPage
,
pageSize
,
specPropertyId
,
search
,
SortType
.
sortDescType
);
if
(!
serviceResponse
.
isSuccess
())
{
return
RestResponse
.
failure
(
serviceResponse
.
getCode
(),
serviceResponse
.
getMessage
());
}
Page
<
GoodsPropertyValueVO
>
page
=
PageHelperUtils
.
changePageToCurrentPage
(
serviceResponse
.
getResult
(),
GoodsPropertyValueVO
.
class
);
return
RestResponse
.
success
(
page
);
}
}
src/main/java/com/gic/plug/web/vo/goods/GoodsPropertyVO.java
0 → 100644
View file @
b843b0e7
package
com
.
gic
.
plug
.
web
.
vo
.
goods
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
public
class
GoodsPropertyVO
{
/**
*
*/
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
private
Long
specPropertyId
;
/**
* 属性名
*/
private
String
specPropertyName
;
/**
* 属性code
*/
private
String
specPropertyCode
;
/**
* 属性类型
*/
private
String
specPropertyType
;
/**
* 小数点位数
*/
private
Integer
points
;
public
Long
getSpecPropertyId
()
{
return
specPropertyId
;
}
public
void
setSpecPropertyId
(
Long
specPropertyId
)
{
this
.
specPropertyId
=
specPropertyId
;
}
public
String
getSpecPropertyName
()
{
return
specPropertyName
;
}
public
void
setSpecPropertyName
(
String
specPropertyName
)
{
this
.
specPropertyName
=
specPropertyName
;
}
public
String
getSpecPropertyCode
()
{
return
specPropertyCode
;
}
public
void
setSpecPropertyCode
(
String
specPropertyCode
)
{
this
.
specPropertyCode
=
specPropertyCode
;
}
public
String
getSpecPropertyType
()
{
return
specPropertyType
;
}
public
void
setSpecPropertyType
(
String
specPropertyType
)
{
this
.
specPropertyType
=
specPropertyType
;
}
public
Integer
getPoints
()
{
return
points
;
}
public
void
setPoints
(
Integer
points
)
{
this
.
points
=
points
;
}
}
src/main/java/com/gic/plug/web/vo/goods/GoodsPropertyValueVO.java
0 → 100644
View file @
b843b0e7
package
com
.
gic
.
plug
.
web
.
vo
.
goods
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
public
class
GoodsPropertyValueVO
{
/**
*
*/
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
private
Long
specPropertyValueId
;
/**
* 属性值名称
*/
private
String
specPropertyValueName
;
/**
* 属性值code
*/
private
String
specPropertyValueCode
;
public
Long
getSpecPropertyValueId
()
{
return
specPropertyValueId
;
}
public
void
setSpecPropertyValueId
(
Long
specPropertyValueId
)
{
this
.
specPropertyValueId
=
specPropertyValueId
;
}
public
String
getSpecPropertyValueName
()
{
return
specPropertyValueName
;
}
public
void
setSpecPropertyValueName
(
String
specPropertyValueName
)
{
this
.
specPropertyValueName
=
specPropertyValueName
;
}
public
String
getSpecPropertyValueCode
()
{
return
specPropertyValueCode
;
}
public
void
setSpecPropertyValueCode
(
String
specPropertyValueCode
)
{
this
.
specPropertyValueCode
=
specPropertyValueCode
;
}
}
src/main/resources/dubbo-gic-webapp-plug.xml
View file @
b843b0e7
...
...
@@ -38,5 +38,7 @@
<dubbo:reference
interface=
"com.gic.goods.api.service.StandardValueApiService"
id=
"standardValueApiService"
timeout=
"60000"
retries=
"0"
/>
<dubbo:reference
interface=
"com.gic.goods.api.service.StandardValueGroupApiService"
id=
"standardValueGroupApiService"
timeout=
"60000"
retries=
"0"
/>
<dubbo:reference
interface=
"com.gic.goods.api.service.CategoryApiService"
id=
"categoryApiService"
timeout=
"60000"
retries=
"0"
/>
<dubbo:reference
interface=
"com.gic.goods.api.service.PropertyValueApiService"
id=
"propertyValueApiService"
timeout=
"60000"
retries=
"0"
/>
<dubbo:reference
interface=
"com.gic.goods.api.service.PropertyApiService"
id=
"propertyApiService"
timeout=
"60000"
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