Commit acba13e7 authored by dahai's avatar dahai

更新交接单日期

parent 860c2a89
......@@ -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;
}
/**
* 查询交接单
......
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