Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-api-report
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
雷紫添
xzxt-api-report
Commits
dc032a5f
Commit
dc032a5f
authored
Sep 06, 2019
by
liu_xiaoxu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FTP执行上传文件后保存在日志表
parent
80dc72d4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
0 deletions
+43
-0
src/main/java/com/founder/dao/RycjDao.java
+1
-0
src/main/java/com/founder/service/impl/RycjServiceImpl.java
+1
-0
src/main/resources/mybatis/mapper/Rycj.xml
+41
-0
No files found.
src/main/java/com/founder/dao/RycjDao.java
View file @
dc032a5f
...
@@ -15,4 +15,5 @@ public interface RycjDao {
...
@@ -15,4 +15,5 @@ public interface RycjDao {
int
insertRycj
(
Rycj
rycj
);
int
insertRycj
(
Rycj
rycj
);
Rycj
selectByPrimaryKey
(
String
taskid
);
Rycj
selectByPrimaryKey
(
String
taskid
);
int
updateByPrimaryKey
(
Rycj
Rycj
);
int
updateByPrimaryKey
(
Rycj
Rycj
);
int
insertLog
(
Rycj
rycj
);
}
}
src/main/java/com/founder/service/impl/RycjServiceImpl.java
View file @
dc032a5f
...
@@ -78,6 +78,7 @@ public class RycjServiceImpl implements RycjService {
...
@@ -78,6 +78,7 @@ public class RycjServiceImpl implements RycjService {
bool
=
true
;
bool
=
true
;
}
}
}
}
rycjDao
.
insertLog
(
rycj
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
System
.
out
.
print
(
"增加或更新失败"
+
e
.
getMessage
());
System
.
out
.
print
(
"增加或更新失败"
+
e
.
getMessage
());
}
}
...
...
src/main/resources/mybatis/mapper/Rycj.xml
View file @
dc032a5f
...
@@ -131,4 +131,44 @@
...
@@ -131,4 +131,44 @@
</if>
</if>
)
)
</insert>
</insert>
<insert
id=
"insertLog"
parameterType=
"com.founder.model.Rycj"
>
INSERT INTO SYS_LOG_JCCJ_XXBS (
TASKID,
USERID,
STATUS_CODE,
ZXJGDM,
DJSJ
)VALUES (
<if
test=
"taskid != null"
>
#{taskid},
</if>
<if
test=
"taskid == null"
>
NULL ,
</if>
<if
test=
"user_id != null"
>
#{user_id},
</if>
<if
test=
"user_id == null"
>
NULL ,
</if>
<if
test=
"status_code != null"
>
#{status_code},
</if>
<if
test=
"status_code == null"
>
NULL,
</if>
<if
test=
"zxjgdm != null"
>
#{zxjgm},
</if>
<if
test=
"zxjgdm == null"
>
NULL,
</if>
<if
test=
"rycj_jlsj != null"
>
#{rycj_jlsj}
</if>
<if
test=
"rycj_jlsj == null"
>
NULL
</if>
)
</insert>
</mapper>
</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