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
ad557816
Commit
ad557816
authored
Jun 18, 2019
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加修改1、 更改受理库中受理组的导入时间为当前时间
2、 更改受理库中受理组的处理标志 为0、1、2、3 提交时间为当前时间
parent
c4b02f89
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
124 additions
and
0 deletions
+124
-0
UtilApi.java
src/main/java/com/yxproject/start/api/UtilApi.java
+60
-0
UtilMapper.java
src/main/java/com/yxproject/start/mapper/UtilMapper.java
+25
-0
UtilService.java
src/main/java/com/yxproject/start/service/UtilService.java
+9
-0
UtilServiceImpl.java
...ava/com/yxproject/start/service/impl/UtilServiceImpl.java
+30
-0
No files found.
src/main/java/com/yxproject/start/api/UtilApi.java
0 → 100644
View file @
ad557816
package
com
.
yxproject
.
start
.
api
;
import
com.yxproject.start.service.UtilService
;
import
org.apache.log4j.Logger
;
import
org.apache.log4j.MDC
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.servlet.http.HttpServletRequest
;
/**
* Created by Administrator on 2019/6/18.
*/
@RestController
@RequestMapping
(
"UtilApi"
)
public
class
UtilApi
{
@Autowired
UtilService
utilService
;
Logger
logger
=
Logger
.
getLogger
(
UtilApi
.
class
);
/**
* 更新受理库导入时间
* @return
*/
@RequestMapping
(
"updateImportTime"
)
public
boolean
updateImportTime
(
@RequestParam
(
"groupNo"
)
String
groupNo
,
HttpServletRequest
requ
)
{
String
remoteAddr
=
requ
.
getRemoteAddr
();
MDC
.
put
(
"ip"
,
remoteAddr
);
try
{
utilService
.
updateImportTime
(
groupNo
);
}
catch
(
Exception
e
){
logger
.
error
(
"组号:"
+
groupNo
);
logger
.
error
(
"Exception 更新受理库导入时间异常"
,
e
);
}
return
true
;
}
/**
* 更新受理库处理标志
* @return
*/
@RequestMapping
(
"updateDealFlag"
)
public
boolean
updateDealFlag
(
@RequestParam
(
"dealFlag"
)
String
dealFlag
,
@RequestParam
(
"groupNo"
)
String
groupNo
,
HttpServletRequest
requ
)
{
String
remoteAddr
=
requ
.
getRemoteAddr
();
MDC
.
put
(
"ip"
,
remoteAddr
);
try
{
utilService
.
updateDealFlag
(
dealFlag
,
groupNo
);
}
catch
(
Exception
e
){
logger
.
error
(
"处理标志:"
+
dealFlag
+
"组号:"
+
groupNo
);
logger
.
error
(
"Exception 更新受理库处理标志异常"
,
e
);
}
return
true
;
}
}
src/main/java/com/yxproject/start/mapper/UtilMapper.java
0 → 100644
View file @
ad557816
package
com
.
yxproject
.
start
.
mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Update
;
/**
* Created by Administrator on 2019/6/18.
*/
@Mapper
public
interface
UtilMapper
{
/**
* 更新受理库导入时间
*/
@Update
(
"UPDATE ACC_GROUP_T@ACCU_LINK SET IMPORT_TIME = SYSDATE WHERE GROUP_NO = #{groupNo}"
)
public
boolean
updateImportTime
(
String
groupNo
);
/**
* 更新受理库处理标志
*/
@Update
(
"UPDATE ACC_GROUP_T@ACCU_LINK SET SUBMIT_DATE = SYSDATE, DEAL_FLAG = #{dealFlag} WHERE GROUP_NO = #{groupNo}"
)
public
boolean
updateDealFlag
(
@Param
(
"dealFlag"
)
String
dealFlag
,
@Param
(
"groupNo"
)
String
groupNo
);
}
src/main/java/com/yxproject/start/service/UtilService.java
0 → 100644
View file @
ad557816
package
com
.
yxproject
.
start
.
service
;
/**
* Created by Administrator on 2019/6/18.
*/
public
interface
UtilService
{
public
boolean
updateImportTime
(
String
groupNo
);
public
boolean
updateDealFlag
(
String
dealFlag
,
String
groupNo
);
}
src/main/java/com/yxproject/start/service/impl/UtilServiceImpl.java
0 → 100644
View file @
ad557816
package
com
.
yxproject
.
start
.
service
.
impl
;
import
com.yxproject.start.mapper.UtilMapper
;
import
com.yxproject.start.service.UtilService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
/**
* Created by Administrator on 2019/6/18.
*/
@Service
public
class
UtilServiceImpl
implements
UtilService
{
@Autowired
private
UtilMapper
utilMapper
;
@Override
public
boolean
updateImportTime
(
String
groupNo
)
{
utilMapper
.
updateImportTime
(
groupNo
);
return
true
;
}
@Override
public
boolean
updateDealFlag
(
String
dealFlag
,
String
groupNo
)
{
utilMapper
.
updateDealFlag
(
dealFlag
,
groupNo
);
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