com.macro.mall.model.OmsOrder Java Examples
The following examples show how to use
com.macro.mall.model.OmsOrder.
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 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 #2
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 #3
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 #4
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 #5
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 #6
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 #7
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 #8
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 #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-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 #11
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 #12
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 #13
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 #14
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 #15
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 #16
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 #17
Source File: OmsOrderServiceImpl.java From macrozheng with Apache License 2.0 | 5 votes |
@Override public int delete(List<Long> ids) { OmsOrder record = new OmsOrder(); record.setDeleteStatus(1); OmsOrderExample example = new OmsOrderExample(); example.createCriteria().andDeleteStatusEqualTo(0).andIdIn(ids); return orderMapper.updateByExampleSelective(record, example); }
Example #18
Source File: OmsOrderController.java From macrozheng with Apache License 2.0 | 5 votes |
@ApiOperation("查询订单") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<OmsOrder>> list(OmsOrderQueryParam queryParam, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<OmsOrder> orderList = orderService.list(queryParam, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(orderList)); }
Example #19
Source File: OmsOrderServiceImpl.java From macrozheng-mall with MIT License | 5 votes |
@Override public int delete(List<Long> ids) { OmsOrder record = new OmsOrder(); record.setDeleteStatus(1); OmsOrderExample example = new OmsOrderExample(); example.createCriteria().andDeleteStatusEqualTo(0).andIdIn(ids); return orderMapper.updateByExampleSelective(record, example); }
Example #20
Source File: OmsOrderServiceImpl.java From mall-swarm with Apache License 2.0 | 5 votes |
@Override public int delete(List<Long> ids) { OmsOrder record = new OmsOrder(); record.setDeleteStatus(1); OmsOrderExample example = new OmsOrderExample(); example.createCriteria().andDeleteStatusEqualTo(0).andIdIn(ids); return orderMapper.updateByExampleSelective(record, example); }
Example #21
Source File: OmsOrderServiceImpl.java From mall with Apache License 2.0 | 5 votes |
@Override public int delete(List<Long> ids) { OmsOrder record = new OmsOrder(); record.setDeleteStatus(1); OmsOrderExample example = new OmsOrderExample(); example.createCriteria().andDeleteStatusEqualTo(0).andIdIn(ids); return orderMapper.updateByExampleSelective(record, example); }
Example #22
Source File: OmsOrderController.java From macrozheng-mall with MIT License | 5 votes |
@ApiOperation("查询订单") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public Object list(OmsOrderQueryParam queryParam, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<OmsOrder> orderList = orderService.list(queryParam, pageSize, pageNum); return new CommonResult().pageSuccess(orderList); }
Example #23
Source File: OmsOrderController.java From mall-swarm with Apache License 2.0 | 5 votes |
@ApiOperation("查询订单") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<OmsOrder>> list(OmsOrderQueryParam queryParam, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<OmsOrder> orderList = orderService.list(queryParam, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(orderList)); }
Example #24
Source File: OmsOrderController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("查询订单") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<OmsOrder>> list(OmsOrderQueryParam queryParam, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<OmsOrder> orderList = orderService.list(queryParam, pageSize, pageNum); return CommonResult.success(CommonPage.restPage(orderList)); }
Example #25
Source File: OmsOrderServiceImpl.java From macrozheng with Apache License 2.0 | 4 votes |
@Override public List<OmsOrder> list(OmsOrderQueryParam queryParam, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum, pageSize); return orderDao.getList(queryParam); }
Example #26
Source File: OmsOrderServiceImpl.java From macrozheng-mall with MIT License | 4 votes |
@Override public List<OmsOrder> list(OmsOrderQueryParam queryParam, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum, pageSize); return orderDao.getList(queryParam); }
Example #27
Source File: OmsOrderServiceImpl.java From mall with Apache License 2.0 | 4 votes |
@Override public List<OmsOrder> list(OmsOrderQueryParam queryParam, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum, pageSize); return orderDao.getList(queryParam); }
Example #28
Source File: OmsOrderServiceImpl.java From mall-swarm with Apache License 2.0 | 4 votes |
@Override public List<OmsOrder> list(OmsOrderQueryParam queryParam, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum, pageSize); return orderDao.getList(queryParam); }
Example #29
Source File: OmsOrderService.java From mall with Apache License 2.0 | 2 votes |
/** * 订单查询 */ List<OmsOrder> list(OmsOrderQueryParam queryParam, Integer pageSize, Integer pageNum);
Example #30
Source File: OmsOrderDao.java From mall with Apache License 2.0 | 2 votes |
/** * 条件查询订单 */ List<OmsOrder> getList(@Param("queryParam") OmsOrderQueryParam queryParam);