Java Code Examples for com.macro.mall.model.OmsOrder#setStatus()
The following examples show how to use
com.macro.mall.model.OmsOrder#setStatus() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OmsOrderServiceImpl.java From mall-swarm with Apache License 2.0 | 6 votes |
@Override public int close(List<Long> ids, String note) { OmsOrder record = new OmsOrder(); record.setStatus(4); OmsOrderExample example = new OmsOrderExample(); example.createCriteria().andDeleteStatusEqualTo(0).andIdIn(ids); int count = orderMapper.updateByExampleSelective(record, example); List<OmsOrderOperateHistory> historyList = ids.stream().map(orderId -> { OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(orderId); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(4); history.setNote("订单关闭:"+note); return history; }).collect(Collectors.toList()); orderOperateHistoryDao.insertList(historyList); return count; }
Example 2
Source File: OmsOrderServiceImpl.java From macrozheng with Apache License 2.0 | 6 votes |
@Override public int close(List<Long> ids, String note) { OmsOrder record = new OmsOrder(); record.setStatus(4); OmsOrderExample example = new OmsOrderExample(); example.createCriteria().andDeleteStatusEqualTo(0).andIdIn(ids); int count = orderMapper.updateByExampleSelective(record, example); List<OmsOrderOperateHistory> historyList = ids.stream().map(orderId -> { OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(orderId); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(4); history.setNote("订单关闭:"+note); return history; }).collect(Collectors.toList()); orderOperateHistoryDao.insertList(historyList); return count; }
Example 3
Source File: OmsOrderServiceImpl.java From mall with Apache License 2.0 | 6 votes |
@Override public int close(List<Long> ids, String note) { OmsOrder record = new OmsOrder(); record.setStatus(4); OmsOrderExample example = new OmsOrderExample(); example.createCriteria().andDeleteStatusEqualTo(0).andIdIn(ids); int count = orderMapper.updateByExampleSelective(record, example); List<OmsOrderOperateHistory> historyList = ids.stream().map(orderId -> { OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(orderId); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(4); history.setNote("订单关闭:"+note); return history; }).collect(Collectors.toList()); orderOperateHistoryDao.insertList(historyList); return count; }
Example 4
Source File: OmsOrderServiceImpl.java From macrozheng-mall with MIT License | 6 votes |
@Override public int close(List<Long> ids, String note) { OmsOrder record = new OmsOrder(); record.setStatus(4); OmsOrderExample example = new OmsOrderExample(); example.createCriteria().andDeleteStatusEqualTo(0).andIdIn(ids); int count = orderMapper.updateByExampleSelective(record, example); List<OmsOrderOperateHistory> historyList = ids.stream().map(orderId -> { OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(orderId); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(4); history.setNote("订单关闭:"+note); return history; }).collect(Collectors.toList()); orderOperateHistoryDao.insertList(historyList); return count; }