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 {
}
// /**
// * 生成交接单
// *
// * @param receiptId
// * @return
// */
// @RequestMapping("updateReceiptDateByReceiptId")
// public boolean updateReceiptDateByReceiptId(@RequestParam("receiptId") String receiptId, HttpServletRequest requ) {
// String remoteAddr = requ.getRemoteAddr();
// MDC.put("ip", remoteAddr);
// try {
// receiptService.updateReceiptDateByReceiptId(receiptId);
// } catch (Exception e) {
// logger.error("交接单ID:" + receiptId);
// logger.error("Exception 生成交接单异常", e);
// }
// return true;
// }
/**
* 更新交接单交接日期
*
* @param list
* @return
*/
@RequestMapping
(
"updateReceiptDateByReceiptId"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
updateReceiptDateByReceiptId
(
@RequestBody
String
list
,
HttpServletRequest
requ
)
{
String
remoteAddr
=
requ
.
getRemoteAddr
();
MDC
.
put
(
"ip"
,
remoteAddr
);
JSONArray
jsonArray
=
JSONArray
.
fromObject
(
list
);
try
{
for
(
Object
o
:
jsonArray
)
{
receiptService
.
updateReceiptDateByReceiptId
(
o
.
toString
());
}
}
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