Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
Project
Project
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
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
6a466128
Commit
6a466128
authored
Jun 19, 2019
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改更新受理库导入时间 更新受理库处理标志
parent
42066b6a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
16 deletions
+15
-16
UtilApi.java
src/main/java/com/yxproject/start/api/UtilApi.java
+5
-6
UtilMapper.java
src/main/java/com/yxproject/start/mapper/UtilMapper.java
+4
-4
UtilService.java
src/main/java/com/yxproject/start/service/UtilService.java
+2
-2
UtilServiceImpl.java
...ava/com/yxproject/start/service/impl/UtilServiceImpl.java
+4
-4
No files found.
src/main/java/com/yxproject/start/api/UtilApi.java
View file @
6a466128
...
@@ -28,13 +28,12 @@ public class UtilApi {
...
@@ -28,13 +28,12 @@ public class UtilApi {
* @return
* @return
*/
*/
@RequestMapping
(
"updateImportTime"
)
@RequestMapping
(
"updateImportTime"
)
public
boolean
updateImportTime
(
@RequestParam
(
"groupNo"
)
String
groupNo
,
HttpServletRequest
requ
)
{
public
boolean
updateImportTime
(
HttpServletRequest
requ
)
{
String
remoteAddr
=
requ
.
getRemoteAddr
();
String
remoteAddr
=
requ
.
getRemoteAddr
();
MDC
.
put
(
"ip"
,
remoteAddr
);
MDC
.
put
(
"ip"
,
remoteAddr
);
try
{
try
{
utilService
.
updateImportTime
(
groupNo
);
utilService
.
updateImportTime
();
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
logger
.
error
(
"组号:"
+
groupNo
);
logger
.
error
(
"Exception 更新受理库导入时间异常"
,
e
);
logger
.
error
(
"Exception 更新受理库导入时间异常"
,
e
);
}
}
return
true
;
return
true
;
...
@@ -45,13 +44,13 @@ public class UtilApi {
...
@@ -45,13 +44,13 @@ public class UtilApi {
* @return
* @return
*/
*/
@RequestMapping
(
"updateDealFlag"
)
@RequestMapping
(
"updateDealFlag"
)
public
boolean
updateDealFlag
(
@RequestParam
(
"dealFlag"
)
String
dealFlag
,
@RequestParam
(
"groupNo"
)
String
groupNo
,
HttpServletRequest
requ
)
{
public
boolean
updateDealFlag
(
@RequestParam
(
"dealFlag"
)
String
dealFlag
,
HttpServletRequest
requ
)
{
String
remoteAddr
=
requ
.
getRemoteAddr
();
String
remoteAddr
=
requ
.
getRemoteAddr
();
MDC
.
put
(
"ip"
,
remoteAddr
);
MDC
.
put
(
"ip"
,
remoteAddr
);
try
{
try
{
utilService
.
updateDealFlag
(
dealFlag
,
groupNo
);
utilService
.
updateDealFlag
(
dealFlag
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
logger
.
error
(
"处理标志:"
+
dealFlag
+
"组号:"
+
groupNo
);
logger
.
error
(
"处理标志:"
+
dealFlag
);
logger
.
error
(
"Exception 更新受理库处理标志异常"
,
e
);
logger
.
error
(
"Exception 更新受理库处理标志异常"
,
e
);
}
}
return
true
;
return
true
;
...
...
src/main/java/com/yxproject/start/mapper/UtilMapper.java
View file @
6a466128
...
@@ -13,13 +13,13 @@ public interface UtilMapper {
...
@@ -13,13 +13,13 @@ public interface UtilMapper {
/**
/**
* 更新受理库导入时间
* 更新受理库导入时间
*/
*/
@Update
(
"UPDATE ACC_GROUP_T@ACCU_LINK SET IMPORT_TIME = SYSDATE
WHERE GROUP_NO = #{groupNo}
"
)
@Update
(
"UPDATE ACC_GROUP_T@ACCU_LINK SET IMPORT_TIME = SYSDATE"
)
public
boolean
updateImportTime
(
String
groupNo
);
public
boolean
updateImportTime
();
/**
/**
* 更新受理库处理标志
* 更新受理库处理标志
*/
*/
@Update
(
"UPDATE ACC_GROUP_T@ACCU_LINK SET SUBMIT_DATE = SYSDATE, DEAL_FLAG = #{dealFlag}
WHERE GROUP_NO = #{groupNo}
"
)
@Update
(
"UPDATE ACC_GROUP_T@ACCU_LINK SET SUBMIT_DATE = SYSDATE, DEAL_FLAG = #{dealFlag}"
)
public
boolean
updateDealFlag
(
@Param
(
"dealFlag"
)
String
dealFlag
,
@Param
(
"groupNo"
)
String
groupNo
);
public
boolean
updateDealFlag
(
String
dealFlag
);
}
}
src/main/java/com/yxproject/start/service/UtilService.java
View file @
6a466128
...
@@ -4,6 +4,6 @@ package com.yxproject.start.service;
...
@@ -4,6 +4,6 @@ package com.yxproject.start.service;
* Created by Administrator on 2019/6/18.
* Created by Administrator on 2019/6/18.
*/
*/
public
interface
UtilService
{
public
interface
UtilService
{
public
boolean
updateImportTime
(
String
groupNo
);
public
boolean
updateImportTime
();
public
boolean
updateDealFlag
(
String
dealFlag
,
String
groupNo
);
public
boolean
updateDealFlag
(
String
dealFlag
);
}
}
src/main/java/com/yxproject/start/service/impl/UtilServiceImpl.java
View file @
6a466128
...
@@ -16,14 +16,14 @@ public class UtilServiceImpl implements UtilService {
...
@@ -16,14 +16,14 @@ public class UtilServiceImpl implements UtilService {
private
UtilMapper
utilMapper
;
private
UtilMapper
utilMapper
;
@Override
@Override
public
boolean
updateImportTime
(
String
groupNo
)
{
public
boolean
updateImportTime
()
{
utilMapper
.
updateImportTime
(
groupNo
);
utilMapper
.
updateImportTime
();
return
true
;
return
true
;
}
}
@Override
@Override
public
boolean
updateDealFlag
(
String
dealFlag
,
String
groupNo
)
{
public
boolean
updateDealFlag
(
String
dealFlag
)
{
utilMapper
.
updateDealFlag
(
dealFlag
,
groupNo
);
utilMapper
.
updateDealFlag
(
dealFlag
);
return
true
;
return
true
;
}
}
...
...
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