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
80dda007
Commit
80dda007
authored
Aug 12, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' into 'master'
Developer See merge request
!7
parents
98d2b5d4
0a43205e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
9 deletions
+31
-9
UploadImgController.java
...java/com/gic/plug/web/controller/UploadImgController.java
+1
-1
GoodsBrandController.java
...m/gic/plug/web/controller/goods/GoodsBrandController.java
+4
-0
GoodsPropertyController.java
...ic/plug/web/controller/goods/GoodsPropertyController.java
+5
-0
GoodsStandardController.java
...ic/plug/web/controller/goods/GoodsStandardController.java
+5
-0
StoreCustomBackImpl.java
...a/com/gic/plug/web/strategy/impl/StoreCustomBackImpl.java
+7
-4
StoreSelectBackImpl.java
...a/com/gic/plug/web/strategy/impl/StoreSelectBackImpl.java
+9
-4
No files found.
src/main/java/com/gic/plug/web/controller/UploadImgController.java
View file @
80dda007
...
...
@@ -149,7 +149,7 @@ public class UploadImgController {
os
.
close
();
ins
.
close
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
logger
.
warn
(
"e"
,
e
);
}
}
...
...
src/main/java/com/gic/plug/web/controller/goods/GoodsBrandController.java
View file @
80dda007
...
...
@@ -38,8 +38,11 @@ public class GoodsBrandController extends BaseGoodsController {
@Autowired
private
GoodsSelectorApiService
goodsSelectorApiService
;
private
static
final
int
DEFAULT_PAGE_SIZE
=
999
;
@RequestMapping
(
"/goods-brand-list"
)
public
RestResponse
goodsBrandList
(
int
pageSize
,
int
currentPage
,
String
search
,
Long
goodsDomainId
,
String
channelCode
,
Long
goodsSelectorId
)
{
pageSize
=
DEFAULT_PAGE_SIZE
;
String
goodsRightsBrands
=
null
;
if
(
goodsSelectorId
!=
null
)
{
ServiceResponse
<
GoodsSelectorDTO
>
selectorServiceResponse
=
goodsSelectorApiService
...
...
@@ -91,6 +94,7 @@ public class GoodsBrandController extends BaseGoodsController {
}
private
RestResponse
findBrandListByParams
(
int
currentPage
,
int
pageSize
,
Long
goodsDomainId
,
String
search
,
Integer
enterpriseId
)
{
pageSize
=
DEFAULT_PAGE_SIZE
;
List
<
Long
>
branIdList
=
new
ArrayList
<>();
ServiceResponse
<
Page
<
BrandDTO
>>
serviceResponse
=
brandApiService
.
findBrandPage
(
currentPage
,
pageSize
,
goodsDomainId
,
search
,
branIdList
,
SortType
.
sortDescType
,
enterpriseId
);
if
(!
serviceResponse
.
isSuccess
())
{
...
...
src/main/java/com/gic/plug/web/controller/goods/GoodsPropertyController.java
View file @
80dda007
...
...
@@ -28,8 +28,12 @@ public class GoodsPropertyController extends BaseGoodsController {
@Autowired
private
PropertyValueApiService
propertyValueApiService
;
private
static
final
int
DEFAULT_PAGE_SIZE
=
999
;
@RequestMapping
(
"/property-list"
)
public
RestResponse
propertyList
(
int
pageSize
,
int
currentPage
,
String
search
,
Long
goodsDomainId
)
{
pageSize
=
DEFAULT_PAGE_SIZE
;
List
<
String
>
arrayList
=
new
ArrayList
<>();
arrayList
.
add
(
Constant
.
PROPERTY_TYPE_TEXT
);
arrayList
.
add
(
Constant
.
PROPERTY_TYPE_TIME
);
...
...
@@ -47,6 +51,7 @@ public class GoodsPropertyController extends BaseGoodsController {
@RequestMapping
(
"/property-value-list"
)
public
RestResponse
propertyValueList
(
int
pageSize
,
int
currentPage
,
String
search
,
Long
specPropertyId
)
{
pageSize
=
DEFAULT_PAGE_SIZE
;
ServiceResponse
<
Page
<
PropertyValueDTO
>>
serviceResponse
=
propertyValueApiService
.
pagePropertyValue
(
currentPage
,
pageSize
,
specPropertyId
,
search
,
SortType
.
sortDescType
,
getEnterpriseId
());
if
(!
serviceResponse
.
isSuccess
())
{
...
...
src/main/java/com/gic/plug/web/controller/goods/GoodsStandardController.java
View file @
80dda007
...
...
@@ -30,8 +30,11 @@ public class GoodsStandardController extends BaseGoodsController {
@Autowired
private
StandardValueGroupApiService
standardValueGroupApiService
;
private
static
final
int
DEFAULT_PAGE_SIZE
=
999
;
@RequestMapping
(
"/list-standard"
)
public
RestResponse
listStandard
(
int
currentPage
,
int
pageSize
,
String
search
,
Long
goodsDomainId
)
{
pageSize
=
DEFAULT_PAGE_SIZE
;
ServiceResponse
<
Page
<
StandardDTO
>>
serviceResponse
=
standardApiService
.
listByPage
(
currentPage
,
pageSize
,
goodsDomainId
,
search
,
getEnterpriseId
());
if
(!
serviceResponse
.
isSuccess
())
{
return
RestResponse
.
failure
(
serviceResponse
.
getCode
(),
serviceResponse
.
getMessage
());
...
...
@@ -43,6 +46,7 @@ public class GoodsStandardController extends BaseGoodsController {
@RequestMapping
(
"/list-standard-value-group"
)
public
RestResponse
listStandardValueGroup
(
int
currentPage
,
int
pageSize
,
Long
specStandardId
,
String
search
)
{
pageSize
=
DEFAULT_PAGE_SIZE
;
ServiceResponse
<
Page
<
StandardValueGroupDTO
>>
serviceResponse
=
standardValueGroupApiService
.
listByPage
(
currentPage
,
pageSize
,
specStandardId
,
search
,
SortType
.
sortDescType
,
getEnterpriseId
());
if
(!
serviceResponse
.
isSuccess
())
{
...
...
@@ -54,6 +58,7 @@ public class GoodsStandardController extends BaseGoodsController {
@RequestMapping
(
"/list-standard-value"
)
public
RestResponse
listStandardValue
(
int
currentPage
,
int
pageSize
,
Long
specStandardId
,
String
search
,
Long
specStandardValueGroupId
)
{
pageSize
=
DEFAULT_PAGE_SIZE
;
ServiceResponse
<
Page
<
StandardValueDTO
>>
serviceResponse
=
standardValueApiService
.
listByPage
(
currentPage
,
pageSize
,
specStandardId
,
search
,
SortType
.
sortDescType
,
specStandardValueGroupId
,
getEnterpriseId
());
if
(!
serviceResponse
.
isSuccess
())
{
...
...
src/main/java/com/gic/plug/web/strategy/impl/StoreCustomBackImpl.java
View file @
80dda007
...
...
@@ -16,6 +16,8 @@ import com.gic.store.service.StoreFieldSelectApiService;
import
com.gic.store.utils.StoreRedisKeyUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
...
...
@@ -31,6 +33,7 @@ import java.util.Map;
@Component
public
class
StoreCustomBackImpl
implements
ScreenBackStrategy
{
private
static
Logger
log
=
LogManager
.
getLogger
(
StoreCustomBackImpl
.
class
);
@Autowired
private
StoreFieldApiService
storeFieldApiService
;
@Autowired
...
...
@@ -85,15 +88,15 @@ public class StoreCustomBackImpl implements ScreenBackStrategy {
view
.
add
(
message
);
return
screenBack
;
}
catch
(
IllegalAccessException
e
)
{
e
.
printStackTrace
(
);
log
.
warn
(
"e"
,
e
);
}
catch
(
InvocationTargetException
e
)
{
e
.
printStackTrace
(
);
log
.
warn
(
"e"
,
e
);
}
}
catch
(
ClassNotFoundException
e
)
{
e
.
printStackTrace
(
);
log
.
warn
(
"e"
,
e
);
}
}
catch
(
NoSuchMethodException
e
)
{
e
.
printStackTrace
(
);
log
.
warn
(
"e"
,
e
);
}
}
return
null
;
...
...
src/main/java/com/gic/plug/web/strategy/impl/StoreSelectBackImpl.java
View file @
80dda007
...
...
@@ -11,6 +11,8 @@ import com.gic.store.constant.StoreStatusEnum;
import
com.gic.store.dto.StoreDictDTO
;
import
com.gic.store.service.StoreDictApiService
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
...
...
@@ -24,6 +26,7 @@ import java.util.Map;
@Component
public
class
StoreSelectBackImpl
implements
ScreenBackStrategy
{
private
static
Logger
log
=
LogManager
.
getLogger
(
StoreSelectBackImpl
.
class
);
@Autowired
private
StoreDictApiService
storeDictApiService
;
private
Map
<
String
,
String
>
methodMap
=
new
HashMap
<>();
...
...
@@ -48,15 +51,15 @@ public class StoreSelectBackImpl implements ScreenBackStrategy {
Object
invoke
=
method
.
invoke
(
this
,
compute
,
value
,
enterpriseId
);
return
(
ScreenBack
)
invoke
;
}
catch
(
IllegalAccessException
e
)
{
e
.
printStackTrace
(
);
log
.
warn
(
"e"
,
e
);
}
catch
(
InvocationTargetException
e
)
{
e
.
printStackTrace
(
);
log
.
warn
(
"e"
,
e
);
}
}
catch
(
ClassNotFoundException
e
)
{
e
.
printStackTrace
(
);
log
.
warn
(
"e"
,
e
);
}
}
catch
(
NoSuchMethodException
e
)
{
e
.
printStackTrace
(
);
log
.
warn
(
"e"
,
e
);
}
}
return
null
;
...
...
@@ -75,6 +78,7 @@ public class StoreSelectBackImpl implements ScreenBackStrategy {
}
}
screenBack
.
setView
(
view
);
screenBack
.
setHideView
(
new
ArrayList
<>());
return
screenBack
;
}
return
null
;
...
...
@@ -92,6 +96,7 @@ public class StoreSelectBackImpl implements ScreenBackStrategy {
}
}
screenBack
.
setView
(
view
);
screenBack
.
setHideView
(
new
ArrayList
<>());
return
screenBack
;
}
return
null
;
...
...
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