Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-store
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-store
Commits
fec26ba3
Commit
fec26ba3
authored
Jun 25, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
9b7c1be9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
57 deletions
+2
-57
StoreRegionApiServiceImpl.java
...om/gic/store/service/outer/StoreRegionApiServiceImpl.java
+1
-1
AppTest.java
gic-store-service/src/test/java/com/gic/AppTest.java
+0
-55
Main.java
gic-store-web/src/main/java/com/gic/store/web/Main.java
+1
-1
No files found.
gic-store-service/src/main/java/com/gic/store/service/outer/StoreRegionApiServiceImpl.java
View file @
fec26ba3
...
...
@@ -15,7 +15,7 @@ import java.util.List;
* @author zhiwj
* @date 2019/6/24
*/
@Service
@Service
(
"storeRegionApiService"
)
public
class
StoreRegionApiServiceImpl
implements
StoreRegionApiService
{
@Autowired
...
...
gic-store-service/src/test/java/com/gic/AppTest.java
deleted
100644 → 0
View file @
9b7c1be9
package
com
.
gic
;
import
com.alibaba.fastjson.JSON
;
import
com.dexcoder.commons.utils.UUIDUtils
;
import
com.gic.demo.single.dao.mapper.DemoEnterpriseMapper
;
import
com.gic.demo.single.dao.mapper.DemoStoreMapper
;
import
com.gic.demo.single.entity.TabGicDemoEnterprise
;
import
com.gic.demo.single.entity.TabGicDemoStore
;
import
org.apache.commons.lang3.RandomStringUtils
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
/**
* Unit test for simple App.
*/
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@ContextConfiguration
(
locations
=
{
"classpath*:applicationContext-conf.xml"
})
public
class
AppTest
{
@Autowired
private
DemoEnterpriseMapper
enterpriseMapper
;
@Autowired
private
DemoStoreMapper
storeMapper
;
@Test
public
void
test1
()
{
TabGicDemoEnterprise
tabGicDemoEnterprise
=
enterpriseMapper
.
selectByPrimaryKey
(
"22323423"
);
System
.
out
.
println
(
JSON
.
toJSONString
(
tabGicDemoEnterprise
,
true
));
}
@Test
public
void
test2
()
{
TabGicDemoStore
tabGicDemoStore
=
storeMapper
.
selectByPrimaryKey
(
"11b"
);
System
.
out
.
println
(
JSON
.
toJSONString
(
tabGicDemoStore
,
true
));
}
@Test
public
void
test3
()
{
for
(
int
i
=
0
;
i
<
10
;
i
++)
{
System
.
out
.
println
(
"insert >> "
+
i
);
TabGicDemoStore
store
=
new
TabGicDemoStore
();
if
(
i
%
2
==
0
)
{
store
.
setStoreId
(
UUIDUtils
.
getUUID32
());
}
store
.
setStoreName
(
RandomStringUtils
.
random
(
10
,
"abcdefghigklmn0123456789"
));
storeMapper
.
insertSelective
(
store
);
System
.
out
.
println
(
JSON
.
toJSONString
(
store
));
}
}
}
gic-store-web/src/main/java/com/gic/store/web/Main.java
View file @
fec26ba3
...
...
@@ -15,7 +15,7 @@ import org.springframework.context.annotation.ImportResource;
@ImportResource
(
value
=
{
"classpath*:applicationContext-init.xml"
,
"classpath*:dubbo-setting.xml"
,
"classpath*:dubbo-gic-
demo
-web.xml"
,
"classpath*:dubbo-gic-
store
-web.xml"
,
"classpath*:spring-interceptor.xml"
})
public
class
Main
{
...
...
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