Commit acba13e7 authored by dahai's avatar dahai

更新交接单日期

parent 860c2a89
...@@ -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;
}
/** /**
* 查询交接单 * 查询交接单
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment