com.macro.mall.model.OmsOrderOperateHistory Java Examples
The following examples show how to use
com.macro.mall.model.OmsOrderOperateHistory.
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 updateMoneyInfo(OmsMoneyInfoParam moneyInfoParam) { OmsOrder order = new OmsOrder(); order.setId(moneyInfoParam.getOrderId()); order.setFreightAmount(moneyInfoParam.getFreightAmount()); order.setDiscountAmount(moneyInfoParam.getDiscountAmount()); order.setModifyTime(new Date()); int count = orderMapper.updateByPrimaryKeySelective(order); //插入操作记录 OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(moneyInfoParam.getOrderId()); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(moneyInfoParam.getStatus()); history.setNote("修改费用信息"); orderOperateHistoryMapper.insert(history); 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 macrozheng with Apache License 2.0 | 6 votes |
@Override public int delivery(List<OmsOrderDeliveryParam> deliveryParamList) { //批量发货 int count = orderDao.delivery(deliveryParamList); //添加操作记录 List<OmsOrderOperateHistory> operateHistoryList = deliveryParamList.stream() .map(omsOrderDeliveryParam -> { OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(omsOrderDeliveryParam.getOrderId()); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(2); history.setNote("完成发货"); return history; }).collect(Collectors.toList()); orderOperateHistoryDao.insertList(operateHistoryList); return count; }
Example #4
Source File: OmsOrderServiceImpl.java From mall with Apache License 2.0 | 6 votes |
@Override public int updateMoneyInfo(OmsMoneyInfoParam moneyInfoParam) { OmsOrder order = new OmsOrder(); order.setId(moneyInfoParam.getOrderId()); order.setFreightAmount(moneyInfoParam.getFreightAmount()); order.setDiscountAmount(moneyInfoParam.getDiscountAmount()); order.setModifyTime(new Date()); int count = orderMapper.updateByPrimaryKeySelective(order); //插入操作记录 OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(moneyInfoParam.getOrderId()); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(moneyInfoParam.getStatus()); history.setNote("修改费用信息"); orderOperateHistoryMapper.insert(history); return count; }
Example #5
Source File: OmsOrderServiceImpl.java From mall with Apache License 2.0 | 6 votes |
@Override public int updateNote(Long id, String note, Integer status) { OmsOrder order = new OmsOrder(); order.setId(id); order.setNote(note); order.setModifyTime(new Date()); int count = orderMapper.updateByPrimaryKeySelective(order); OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(id); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(status); history.setNote("修改备注信息:"+note); orderOperateHistoryMapper.insert(history); return count; }
Example #6
Source File: OmsOrderServiceImpl.java From macrozheng with Apache License 2.0 | 6 votes |
@Override public int updateReceiverInfo(OmsReceiverInfoParam receiverInfoParam) { OmsOrder order = new OmsOrder(); order.setId(receiverInfoParam.getOrderId()); order.setReceiverName(receiverInfoParam.getReceiverName()); order.setReceiverPhone(receiverInfoParam.getReceiverPhone()); order.setReceiverPostCode(receiverInfoParam.getReceiverPostCode()); order.setReceiverDetailAddress(receiverInfoParam.getReceiverDetailAddress()); order.setReceiverProvince(receiverInfoParam.getReceiverProvince()); order.setReceiverCity(receiverInfoParam.getReceiverCity()); order.setReceiverRegion(receiverInfoParam.getReceiverRegion()); order.setModifyTime(new Date()); int count = orderMapper.updateByPrimaryKeySelective(order); //插入操作记录 OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(receiverInfoParam.getOrderId()); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(receiverInfoParam.getStatus()); history.setNote("修改收货人信息"); orderOperateHistoryMapper.insert(history); return count; }
Example #7
Source File: OmsOrderServiceImpl.java From macrozheng with Apache License 2.0 | 6 votes |
@Override public int updateMoneyInfo(OmsMoneyInfoParam moneyInfoParam) { OmsOrder order = new OmsOrder(); order.setId(moneyInfoParam.getOrderId()); order.setFreightAmount(moneyInfoParam.getFreightAmount()); order.setDiscountAmount(moneyInfoParam.getDiscountAmount()); order.setModifyTime(new Date()); int count = orderMapper.updateByPrimaryKeySelective(order); //插入操作记录 OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(moneyInfoParam.getOrderId()); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(moneyInfoParam.getStatus()); history.setNote("修改费用信息"); orderOperateHistoryMapper.insert(history); return count; }
Example #8
Source File: OmsOrderServiceImpl.java From macrozheng with Apache License 2.0 | 6 votes |
@Override public int updateNote(Long id, String note, Integer status) { OmsOrder order = new OmsOrder(); order.setId(id); order.setNote(note); order.setModifyTime(new Date()); int count = orderMapper.updateByPrimaryKeySelective(order); OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(id); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(status); history.setNote("修改备注信息:"+note); orderOperateHistoryMapper.insert(history); return count; }
Example #9
Source File: OmsOrderServiceImpl.java From mall with Apache License 2.0 | 6 votes |
@Override public int updateReceiverInfo(OmsReceiverInfoParam receiverInfoParam) { OmsOrder order = new OmsOrder(); order.setId(receiverInfoParam.getOrderId()); order.setReceiverName(receiverInfoParam.getReceiverName()); order.setReceiverPhone(receiverInfoParam.getReceiverPhone()); order.setReceiverPostCode(receiverInfoParam.getReceiverPostCode()); order.setReceiverDetailAddress(receiverInfoParam.getReceiverDetailAddress()); order.setReceiverProvince(receiverInfoParam.getReceiverProvince()); order.setReceiverCity(receiverInfoParam.getReceiverCity()); order.setReceiverRegion(receiverInfoParam.getReceiverRegion()); order.setModifyTime(new Date()); int count = orderMapper.updateByPrimaryKeySelective(order); //插入操作记录 OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(receiverInfoParam.getOrderId()); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(receiverInfoParam.getStatus()); history.setNote("修改收货人信息"); orderOperateHistoryMapper.insert(history); return count; }
Example #10
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 #11
Source File: OmsOrderServiceImpl.java From mall with Apache License 2.0 | 6 votes |
@Override public int delivery(List<OmsOrderDeliveryParam> deliveryParamList) { //批量发货 int count = orderDao.delivery(deliveryParamList); //添加操作记录 List<OmsOrderOperateHistory> operateHistoryList = deliveryParamList.stream() .map(omsOrderDeliveryParam -> { OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(omsOrderDeliveryParam.getOrderId()); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(2); history.setNote("完成发货"); return history; }).collect(Collectors.toList()); orderOperateHistoryDao.insertList(operateHistoryList); return count; }
Example #12
Source File: OmsOrderServiceImpl.java From mall-swarm with Apache License 2.0 | 6 votes |
@Override public int updateNote(Long id, String note, Integer status) { OmsOrder order = new OmsOrder(); order.setId(id); order.setNote(note); order.setModifyTime(new Date()); int count = orderMapper.updateByPrimaryKeySelective(order); OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(id); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(status); history.setNote("修改备注信息:"+note); orderOperateHistoryMapper.insert(history); return count; }
Example #13
Source File: OmsOrderServiceImpl.java From mall-swarm with Apache License 2.0 | 6 votes |
@Override public int updateReceiverInfo(OmsReceiverInfoParam receiverInfoParam) { OmsOrder order = new OmsOrder(); order.setId(receiverInfoParam.getOrderId()); order.setReceiverName(receiverInfoParam.getReceiverName()); order.setReceiverPhone(receiverInfoParam.getReceiverPhone()); order.setReceiverPostCode(receiverInfoParam.getReceiverPostCode()); order.setReceiverDetailAddress(receiverInfoParam.getReceiverDetailAddress()); order.setReceiverProvince(receiverInfoParam.getReceiverProvince()); order.setReceiverCity(receiverInfoParam.getReceiverCity()); order.setReceiverRegion(receiverInfoParam.getReceiverRegion()); order.setModifyTime(new Date()); int count = orderMapper.updateByPrimaryKeySelective(order); //插入操作记录 OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(receiverInfoParam.getOrderId()); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(receiverInfoParam.getStatus()); history.setNote("修改收货人信息"); orderOperateHistoryMapper.insert(history); return count; }
Example #14
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 #15
Source File: OmsOrderServiceImpl.java From mall-swarm with Apache License 2.0 | 6 votes |
@Override public int delivery(List<OmsOrderDeliveryParam> deliveryParamList) { //批量发货 int count = orderDao.delivery(deliveryParamList); //添加操作记录 List<OmsOrderOperateHistory> operateHistoryList = deliveryParamList.stream() .map(omsOrderDeliveryParam -> { OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(omsOrderDeliveryParam.getOrderId()); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(2); history.setNote("完成发货"); return history; }).collect(Collectors.toList()); orderOperateHistoryDao.insertList(operateHistoryList); return count; }
Example #16
Source File: OmsOrderServiceImpl.java From macrozheng-mall with MIT License | 6 votes |
@Override public int delivery(List<OmsOrderDeliveryParam> deliveryParamList) { //批量发货 int count = orderDao.delivery(deliveryParamList); //添加操作记录 List<OmsOrderOperateHistory> operateHistoryList = deliveryParamList.stream() .map(omsOrderDeliveryParam -> { OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(omsOrderDeliveryParam.getOrderId()); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(2); history.setNote("完成发货"); return history; }).collect(Collectors.toList()); orderOperateHistoryDao.insertList(operateHistoryList); return count; }
Example #17
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; }
Example #18
Source File: OmsOrderServiceImpl.java From macrozheng-mall with MIT License | 6 votes |
@Override public int updateReceiverInfo(OmsReceiverInfoParam receiverInfoParam) { OmsOrder order = new OmsOrder(); order.setId(receiverInfoParam.getOrderId()); order.setReceiverName(receiverInfoParam.getReceiverName()); order.setReceiverPhone(receiverInfoParam.getReceiverPhone()); order.setReceiverPostCode(receiverInfoParam.getReceiverPostCode()); order.setReceiverDetailAddress(receiverInfoParam.getReceiverDetailAddress()); order.setReceiverProvince(receiverInfoParam.getReceiverProvince()); order.setReceiverCity(receiverInfoParam.getReceiverCity()); order.setReceiverRegion(receiverInfoParam.getReceiverRegion()); order.setModifyTime(new Date()); int count = orderMapper.updateByPrimaryKeySelective(order); //插入操作记录 OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(receiverInfoParam.getOrderId()); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(receiverInfoParam.getStatus()); history.setNote("修改收货人信息"); orderOperateHistoryMapper.insert(history); return count; }
Example #19
Source File: OmsOrderServiceImpl.java From macrozheng-mall with MIT License | 6 votes |
@Override public int updateMoneyInfo(OmsMoneyInfoParam moneyInfoParam) { OmsOrder order = new OmsOrder(); order.setId(moneyInfoParam.getOrderId()); order.setFreightAmount(moneyInfoParam.getFreightAmount()); order.setDiscountAmount(moneyInfoParam.getDiscountAmount()); order.setModifyTime(new Date()); int count = orderMapper.updateByPrimaryKeySelective(order); //插入操作记录 OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(moneyInfoParam.getOrderId()); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(moneyInfoParam.getStatus()); history.setNote("修改费用信息"); orderOperateHistoryMapper.insert(history); return count; }
Example #20
Source File: OmsOrderServiceImpl.java From macrozheng-mall with MIT License | 6 votes |
@Override public int updateNote(Long id, String note, Integer status) { OmsOrder order = new OmsOrder(); order.setId(id); order.setNote(note); order.setModifyTime(new Date()); int count = orderMapper.updateByPrimaryKeySelective(order); OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(id); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(status); history.setNote("修改备注信息:"+note); orderOperateHistoryMapper.insert(history); return count; }
Example #21
Source File: OmsOrderOperateHistoryDao.java From mall with Apache License 2.0 | 2 votes |
/** * 批量创建 */ int insertList(@Param("list") List<OmsOrderOperateHistory> orderOperateHistoryList);
Example #22
Source File: OmsOrderOperateHistoryDao.java From mall-swarm with Apache License 2.0 | 2 votes |
/** * 批量创建 */ int insertList(@Param("list") List<OmsOrderOperateHistory> orderOperateHistoryList);
Example #23
Source File: OmsOrderOperateHistoryMapper.java From mall with Apache License 2.0 | votes |
int updateByPrimaryKeySelective(OmsOrderOperateHistory record);
Example #24
Source File: OmsOrderOperateHistoryMapper.java From mall with Apache License 2.0 | votes |
int updateByPrimaryKey(OmsOrderOperateHistory record);
Example #25
Source File: OmsOrderOperateHistoryMapper.java From mall with Apache License 2.0 | votes |
int insert(OmsOrderOperateHistory record);
Example #26
Source File: OmsOrderOperateHistoryMapper.java From macrozheng-mall with MIT License | votes |
int insert(OmsOrderOperateHistory record);
Example #27
Source File: OmsOrderOperateHistoryMapper.java From macrozheng-mall with MIT License | votes |
int insertSelective(OmsOrderOperateHistory record);
Example #28
Source File: OmsOrderOperateHistoryMapper.java From macrozheng-mall with MIT License | votes |
List<OmsOrderOperateHistory> selectByExample(OmsOrderOperateHistoryExample example);
Example #29
Source File: OmsOrderOperateHistoryMapper.java From macrozheng-mall with MIT License | votes |
OmsOrderOperateHistory selectByPrimaryKey(Long id);
Example #30
Source File: OmsOrderOperateHistoryMapper.java From macrozheng-mall with MIT License | votes |
int updateByExampleSelective(@Param("record") OmsOrderOperateHistory record, @Param("example") OmsOrderOperateHistoryExample example);