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
924e783f
Commit
924e783f
authored
Nov 12, 2019
by
zhiwj
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://115.159.76.241/base_platform_enterprise/gic-store
into developer
parents
76fa85fc
34b5bb15
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
26 deletions
+28
-26
TabAuthStoreLogMapper.java
.../java/com/gic/store/dao/mapper/TabAuthStoreLogMapper.java
+1
-1
TabAuthStoreLog.java
...e/src/main/java/com/gic/store/entity/TabAuthStoreLog.java
+10
-9
AuthStoreLogServiceImpl.java
...a/com/gic/store/service/impl/AuthStoreLogServiceImpl.java
+1
-1
TabAuthStoreLogMapper.xml
...rvice/src/main/resources/mapper/TabAuthStoreLogMapper.xml
+16
-15
No files found.
gic-store-service/src/main/java/com/gic/store/dao/mapper/TabAuthStoreLogMapper.java
View file @
924e783f
...
...
@@ -55,7 +55,7 @@ public interface TabAuthStoreLogMapper {
int
updateByPrimaryKey
(
TabAuthStoreLog
record
);
List
<
TabAuthStoreLog
>
listLogByKey
(
@Param
(
"key"
)
String
key
,
@Param
(
"status"
)
int
status
);
@Param
(
"status"
)
Integer
status
);
List
<
TabAuthStoreLog
>
listFailedStore
(
@Param
(
"key"
)
String
key
);
...
...
gic-store-service/src/main/java/com/gic/store/entity/TabAuthStoreLog.java
View file @
924e783f
...
...
@@ -27,7 +27,7 @@ public class TabAuthStoreLog {
/**
*
*/
private
String
k
ey
;
private
String
authK
ey
;
/**
* 1 授权成功 2 授权失败
...
...
@@ -66,14 +66,6 @@ public class TabAuthStoreLog {
this
.
toEnterpriseId
=
toEnterpriseId
;
}
public
String
getKey
()
{
return
key
;
}
public
void
setKey
(
String
key
)
{
this
.
key
=
key
;
}
public
Integer
getStatus
()
{
return
status
;
}
...
...
@@ -81,4 +73,12 @@ public class TabAuthStoreLog {
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
String
getAuthKey
()
{
return
authKey
;
}
public
void
setAuthKey
(
String
authKey
)
{
this
.
authKey
=
authKey
;
}
}
\ No newline at end of file
gic-store-service/src/main/java/com/gic/store/service/impl/AuthStoreLogServiceImpl.java
View file @
924e783f
...
...
@@ -23,7 +23,7 @@ public class AuthStoreLogServiceImpl implements AuthStoreLogService {
TabAuthStoreLog
log
=
new
TabAuthStoreLog
();
log
.
setStoreInfoId
(
storeInfoId
);
log
.
setFromEnterpriseId
(
fromEnterpriseId
);
log
.
setKey
(
key
);
log
.
set
Auth
Key
(
key
);
log
.
setToEnterpriseId
(
toEnterpriseId
);
log
.
setStatus
(
0
);
this
.
tabAuthStoreLogMapper
.
insertSelective
(
log
);
...
...
gic-store-service/src/main/resources/mapper/TabAuthStoreLogMapper.xml
View file @
924e783f
...
...
@@ -6,11 +6,11 @@
<result
column=
"store_info_id"
jdbcType=
"INTEGER"
property=
"storeInfoId"
/>
<result
column=
"from_enterprise_id"
jdbcType=
"INTEGER"
property=
"fromEnterpriseId"
/>
<result
column=
"to_enterprise_id"
jdbcType=
"INTEGER"
property=
"toEnterpriseId"
/>
<result
column=
"
key"
jdbcType=
"VARCHAR"
property=
"k
ey"
/>
<result
column=
"
auth_key"
jdbcType=
"VARCHAR"
property=
"authK
ey"
/>
<result
column=
"status"
jdbcType=
"INTEGER"
property=
"status"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, store_info_id, from_enterprise_id, to_enterprise_id, key, status
id, store_info_id, from_enterprise_id, to_enterprise_id,
auth_
key, status
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
...
...
@@ -27,14 +27,14 @@
SELECT LAST_INSERT_ID()
</selectKey>
insert into tab_auth_store_log (id, store_info_id, from_enterprise_id,
to_enterprise_id, key, status
to_enterprise_id,
auth_
key, status
)
values (#{id,jdbcType=INTEGER}, #{storeInfoId,jdbcType=INTEGER}, #{fromEnterpriseId,jdbcType=INTEGER},
#{toEnterpriseId,jdbcType=INTEGER}, #{
k
ey,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}
#{toEnterpriseId,jdbcType=INTEGER}, #{
authK
ey,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.store.entity.TabAuthStoreLog"
>
<selectKey
keyProperty=
"
storeInfoI
d"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
<selectKey
keyProperty=
"
i
d"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into tab_auth_store_log
...
...
@@ -51,8 +51,8 @@
<if
test=
"toEnterpriseId != null"
>
to_enterprise_id,
</if>
<if
test=
"
k
ey != null"
>
key,
<if
test=
"
authK
ey != null"
>
auth_
key,
</if>
<if
test=
"status != null"
>
status,
...
...
@@ -71,8 +71,8 @@
<if
test=
"toEnterpriseId != null"
>
#{toEnterpriseId,jdbcType=INTEGER},
</if>
<if
test=
"
k
ey != null"
>
#{
k
ey,jdbcType=VARCHAR},
<if
test=
"
authK
ey != null"
>
#{
authK
ey,jdbcType=VARCHAR},
</if>
<if
test=
"status != null"
>
#{status,jdbcType=INTEGER},
...
...
@@ -91,8 +91,8 @@
<if
test=
"toEnterpriseId != null"
>
to_enterprise_id = #{toEnterpriseId,jdbcType=INTEGER},
</if>
<if
test=
"
k
ey != null"
>
key = #{key,jdbcType=VARCHAR},
<if
test=
"
authK
ey != null"
>
auth_
key = #{key,jdbcType=VARCHAR},
</if>
<if
test=
"status != null"
>
status = #{status,jdbcType=INTEGER},
...
...
@@ -105,7 +105,7 @@
set store_info_id = #{storeInfoId,jdbcType=INTEGER},
from_enterprise_id = #{fromEnterpriseId,jdbcType=INTEGER},
to_enterprise_id = #{toEnterpriseId,jdbcType=INTEGER},
key = #{k
ey,jdbcType=VARCHAR},
auth_key = #{authK
ey,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
...
...
@@ -113,7 +113,7 @@
select
<include
refid=
"Base_Column_List"
/>
from tab_auth_store_log
where key = #{key}
where
auth_
key = #{key}
<if
test=
"status != null"
>
and status = #{status}
</if>
...
...
@@ -122,12 +122,12 @@
select
<include
refid=
"Base_Column_List"
/>
from tab_auth_store_log
where key = #{key} and (status =0 or status = 2)
where
auth_
key = #{key} and (status =0 or status = 2)
</select>
<select
id=
"listLog"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_auth_store_log
where key = #{key} and to_enterprise_id=#{toEnterpriseId} and store_info_id=#{storeInfoId}
where
auth_
key = #{key} and to_enterprise_id=#{toEnterpriseId} and store_info_id=#{storeInfoId}
</select>
</mapper>
\ 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