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
acba13e7
Commit
acba13e7
authored
Jun 25, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新交接单日期
parent
860c2a89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
18 deletions
+23
-18
ReceiptApi.java
src/main/java/com/yxproject/start/api/ReceiptApi.java
+23
-18
No files found.
src/main/java/com/yxproject/start/api/ReceiptApi.java
View file @
acba13e7
...
@@ -392,24 +392,29 @@ public class ReceiptApi {
...
@@ -392,24 +392,29 @@ public class ReceiptApi {
}
}
// /**
/**
// * 生成交接单
* 更新交接单交接日期
// *
*
// * @param receiptId
* @param list
// * @return
* @return
// */
*/
// @RequestMapping("updateReceiptDateByReceiptId")
@RequestMapping
(
"updateReceiptDateByReceiptId"
)
// public boolean updateReceiptDateByReceiptId(@RequestParam("receiptId") String receiptId, HttpServletRequest requ) {
@Transactional
(
rollbackFor
=
Exception
.
class
)
// String remoteAddr = requ.getRemoteAddr();
public
boolean
updateReceiptDateByReceiptId
(
@RequestBody
String
list
,
HttpServletRequest
requ
)
{
// MDC.put("ip", remoteAddr);
String
remoteAddr
=
requ
.
getRemoteAddr
();
// try {
MDC
.
put
(
"ip"
,
remoteAddr
);
// receiptService.updateReceiptDateByReceiptId(receiptId);
JSONArray
jsonArray
=
JSONArray
.
fromObject
(
list
);
// } catch (Exception e) {
try
{
// logger.error("交接单ID:" + receiptId);
for
(
Object
o
:
jsonArray
)
{
// logger.error("Exception 生成交接单异常", e);
receiptService
.
updateReceiptDateByReceiptId
(
o
.
toString
());
// }
}
// return true;
}
catch
(
Exception
e
)
{
// }
logger
.
error
(
"交接单ID:"
+
list
);
logger
.
error
(
"Exception 更新交接单交接日期异常"
,
e
);
}
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