Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-demo-project
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
gic_demo
gic-demo-project
Commits
8ad453eb
Commit
8ad453eb
authored
Jun 06, 2019
by
朱瑞泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码调整
parent
12e9d9bd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
DemoProjectApiConstant.java
...om/gic/demo/project/api/utils/DemoProjectApiConstant.java
+1
-1
DemoStoreApiServiceImpl.java
...project/service/service/impl/DemoStoreApiServiceImpl.java
+2
-2
No files found.
gic-demo-project-api/src/main/java/com/gic/demo/project/api/utils/Demo
Store
ApiConstant.java
→
gic-demo-project-api/src/main/java/com/gic/demo/project/api/utils/Demo
Project
ApiConstant.java
View file @
8ad453eb
...
...
@@ -5,7 +5,7 @@ package com.gic.demo.project.api.utils;
*
* @author zhurz
*/
public
class
Demo
Store
ApiConstant
{
public
class
Demo
Project
ApiConstant
{
/**
* 服务异常
...
...
gic-demo-project-service/src/main/java/com/gic/demo/project/service/service/impl/DemoStoreApiServiceImpl.java
View file @
8ad453eb
...
...
@@ -4,7 +4,7 @@ import com.gic.api.base.commons.ServiceResponse;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.demo.project.api.dto.DemoStoreDTO
;
import
com.gic.demo.project.api.service.DemoStoreApiService
;
import
com.gic.demo.project.api.utils.Demo
Store
ApiConstant
;
import
com.gic.demo.project.api.utils.Demo
Project
ApiConstant
;
import
com.gic.demo.project.service.entity.TabGicDemoStore
;
import
com.gic.demo.project.service.inner.service.DemoStoreInnerService
;
import
org.apache.commons.lang3.RandomUtils
;
...
...
@@ -29,7 +29,7 @@ public class DemoStoreApiServiceImpl implements DemoStoreApiService {
@Override
public
ServiceResponse
<
DemoStoreDTO
>
findDemoStoreById
(
String
storeId
)
{
if
(
RandomUtils
.
nextInt
(
0
,
10
)
>
5
)
{
return
ServiceResponse
.
failure
(
Demo
Store
ApiConstant
.
ERROR
,
"服务异常"
);
return
ServiceResponse
.
failure
(
Demo
Project
ApiConstant
.
ERROR
,
"服务异常"
);
}
TabGicDemoStore
store
=
localService
.
findDemoStoreById
(
storeId
);
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityByOrika
(
DemoStoreDTO
.
class
,
store
));
...
...
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