Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
roo-cloud
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
万敏
roo-cloud
Commits
528075fc
Commit
528075fc
authored
Aug 04, 2021
by
chenwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
e765d29c
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
13 deletions
+16
-13
roo-admin/roo-admin-server/src/main/java/com/roo/dao/DappsAuditDao.java
...admin-server/src/main/java/com/roo/dao/DappsAuditDao.java
+4
-3
roo-admin/roo-admin-server/src/main/java/com/roo/dao/TokenAuditDao.java
...admin-server/src/main/java/com/roo/dao/TokenAuditDao.java
+4
-2
roo-admin/roo-admin-server/src/main/java/com/roo/service/impl/DappsAuditServiceImpl.java
...main/java/com/roo/service/impl/DappsAuditServiceImpl.java
+3
-3
roo-admin/roo-admin-server/src/main/java/com/roo/service/impl/TokenAuditServiceImpl.java
...main/java/com/roo/service/impl/TokenAuditServiceImpl.java
+3
-3
roo-admin/roo-admin-server/src/main/resources/mapper/DappsAuditMapper.xml
...min-server/src/main/resources/mapper/DappsAuditMapper.xml
+1
-1
roo-admin/roo-admin-server/src/main/resources/mapper/TokenAuditMapper.xml
...min-server/src/main/resources/mapper/TokenAuditMapper.xml
+1
-1
No files found.
roo-admin/roo-admin-server/src/main/java/com/roo/dao/DappsAudit
Mapper
.java
→
roo-admin/roo-admin-server/src/main/java/com/roo/dao/DappsAudit
Dao
.java
View file @
528075fc
...
...
@@ -3,11 +3,12 @@ package com.roo.dao;
import
com.roo.entity.DappsAudit
;
import
com.roo.entity.DappsAuditExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
@
Repository
public
interface
DappsAudit
Mapper
{
@
Mapper
public
interface
DappsAudit
Dao
{
int
countByExample
(
DappsAuditExample
example
);
int
deleteByExample
(
DappsAuditExample
example
);
...
...
roo-admin/roo-admin-server/src/main/java/com/roo/dao/TokenAudit
Mapper
.java
→
roo-admin/roo-admin-server/src/main/java/com/roo/dao/TokenAudit
Dao
.java
View file @
528075fc
...
...
@@ -3,11 +3,13 @@ package com.roo.dao;
import
com.roo.entity.TokenAudit
;
import
com.roo.entity.TokenAuditExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
@
Repository
public
interface
TokenAudit
Mapper
{
@
Mapper
public
interface
TokenAudit
Dao
{
int
countByExample
(
TokenAuditExample
example
);
int
deleteByExample
(
TokenAuditExample
example
);
...
...
roo-admin/roo-admin-server/src/main/java/com/roo/service/impl/DappsAuditServiceImpl.java
View file @
528075fc
package
com.roo.service.impl
;
import
com.roo.dao.DappsAudit
Mapper
;
import
com.roo.dao.DappsAudit
Dao
;
import
com.roo.dto.DappsAuditDTO
;
import
com.roo.entity.DappsAudit
;
import
com.roo.enums.AuditStatusEnum
;
...
...
@@ -14,11 +14,11 @@ import java.util.Date;
public
class
DappsAuditServiceImpl
implements
DappsAuditService
{
@Autowired
private
DappsAudit
Mapper
dappsAuditMapper
;
private
DappsAudit
Dao
dappsAuditDao
;
@Override
public
void
save
(
DappsAuditDTO
dto
)
{
dappsAudit
Mapper
.
insert
(
DappsAudit
.
builder
()
dappsAudit
Dao
.
insert
(
DappsAudit
.
builder
()
.
chainCode
(
dto
.
getChainCode
())
.
createTime
(
new
Date
())
.
description
(
dto
.
getDescription
())
...
...
roo-admin/roo-admin-server/src/main/java/com/roo/service/impl/TokenAuditServiceImpl.java
View file @
528075fc
package
com.roo.service.impl
;
import
com.roo.dao.TokenAudit
Mapper
;
import
com.roo.dao.TokenAudit
Dao
;
import
com.roo.dto.TokenAuditDTO
;
import
com.roo.entity.TokenAudit
;
import
com.roo.enums.AuditStatusEnum
;
...
...
@@ -14,11 +14,11 @@ import java.util.Date;
public
class
TokenAuditServiceImpl
implements
TokenAuditService
{
@Autowired
private
TokenAudit
Mapper
tokenAuditMapper
;
private
TokenAudit
Dao
tokenAuditDao
;
@Override
public
void
save
(
TokenAuditDTO
dto
)
{
tokenAudit
Mapper
.
insert
(
TokenAudit
.
builder
()
tokenAudit
Dao
.
insert
(
TokenAudit
.
builder
()
.
chainCode
(
dto
.
getChainCode
())
.
contractId
(
dto
.
getContractId
())
.
createTime
(
new
Date
())
...
...
roo-admin/roo-admin-server/src/main/resources/mapper/DappsAuditMapper.xml
View file @
528075fc
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"com.roo.dao.DappsAudit
Mapper
"
>
<mapper
namespace=
"com.roo.dao.DappsAudit
Dao
"
>
<resultMap
id=
"BaseResultMap"
type=
"com.roo.entity.DappsAudit"
>
<id
column=
"id"
property=
"id"
jdbcType=
"BIGINT"
/>
<result
column=
"chain_code"
property=
"chainCode"
jdbcType=
"VARCHAR"
/>
...
...
roo-admin/roo-admin-server/src/main/resources/mapper/TokenAuditMapper.xml
View file @
528075fc
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"com.roo.dao.TokenAudit
Mapper
"
>
<mapper
namespace=
"com.roo.dao.TokenAudit
Dao
"
>
<resultMap
id=
"BaseResultMap"
type=
"com.roo.entity.TokenAudit"
>
<id
column=
"id"
property=
"id"
jdbcType=
"BIGINT"
/>
<result
column=
"chain_code"
property=
"chainCode"
jdbcType=
"VARCHAR"
/>
...
...
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