Java Code Examples for com.macro.mall.model.OmsOrder#setModifyTime()

The following examples show how to use com.macro.mall.model.OmsOrder#setModifyTime() . 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 vote down vote up
@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 2
Source File: OmsOrderServiceImpl.java    From mall-swarm with Apache License 2.0 6 votes vote down vote up
@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 3
Source File: OmsOrderServiceImpl.java    From mall-swarm with Apache License 2.0 6 votes vote down vote up
@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 4
Source File: OmsOrderServiceImpl.java    From macrozheng with Apache License 2.0 6 votes vote down vote up
@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 5
Source File: OmsOrderServiceImpl.java    From macrozheng with Apache License 2.0 6 votes vote down vote up
@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 6
Source File: OmsOrderServiceImpl.java    From macrozheng with Apache License 2.0 6 votes vote down vote up
@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 7
Source File: OmsOrderServiceImpl.java    From mall with Apache License 2.0 6 votes vote down vote up
@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 with Apache License 2.0 6 votes vote down vote up
@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 9
Source File: OmsOrderServiceImpl.java    From mall with Apache License 2.0 6 votes vote down vote up
@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 10
Source File: OmsOrderServiceImpl.java    From macrozheng-mall with MIT License 6 votes vote down vote up
@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 11
Source File: OmsOrderServiceImpl.java    From macrozheng-mall with MIT License 6 votes vote down vote up
@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 12
Source File: OmsOrderServiceImpl.java    From macrozheng-mall with MIT License 6 votes vote down vote up
@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;
}