com.macro.mall.model.OmsOrderExample Java Examples

The following examples show how to use com.macro.mall.model.OmsOrderExample. 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-mall with MIT License 6 votes vote down vote up
@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 mall-swarm with Apache License 2.0 6 votes vote down vote up
@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 vote down vote up
@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 with Apache License 2.0 6 votes vote down vote up
@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 #5
Source File: OmsOrderServiceImpl.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@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 #6
Source File: OmsOrderServiceImpl.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@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 #7
Source File: OmsOrderServiceImpl.java    From mall with Apache License 2.0 5 votes vote down vote up
@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 #8
Source File: OmsOrderServiceImpl.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@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 #9
Source File: OmsOrderMapper.java    From mall with Apache License 2.0 votes vote down vote up
long countByExample(OmsOrderExample example); 
Example #10
Source File: OmsOrderMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int updateByExample(@Param("record") OmsOrder record, @Param("example") OmsOrderExample example); 
Example #11
Source File: OmsOrderMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int updateByExampleSelective(@Param("record") OmsOrder record, @Param("example") OmsOrderExample example); 
Example #12
Source File: OmsOrderMapper.java    From macrozheng-mall with MIT License votes vote down vote up
List<OmsOrder> selectByExample(OmsOrderExample example); 
Example #13
Source File: OmsOrderMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int deleteByExample(OmsOrderExample example); 
Example #14
Source File: OmsOrderMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int countByExample(OmsOrderExample example); 
Example #15
Source File: OmsOrderMapper.java    From mall with Apache License 2.0 votes vote down vote up
int updateByExample(@Param("record") OmsOrder record, @Param("example") OmsOrderExample example); 
Example #16
Source File: OmsOrderMapper.java    From mall with Apache License 2.0 votes vote down vote up
int updateByExampleSelective(@Param("record") OmsOrder record, @Param("example") OmsOrderExample example); 
Example #17
Source File: OmsOrderMapper.java    From mall with Apache License 2.0 votes vote down vote up
List<OmsOrder> selectByExample(OmsOrderExample example); 
Example #18
Source File: OmsOrderMapper.java    From mall with Apache License 2.0 votes vote down vote up
int deleteByExample(OmsOrderExample example); 
Example #19
Source File: OmsOrderMapper.java    From mall-swarm with Apache License 2.0 votes vote down vote up
long countByExample(OmsOrderExample example); 
Example #20
Source File: OmsOrderMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
int updateByExample(@Param("record") OmsOrder record, @Param("example") OmsOrderExample example); 
Example #21
Source File: OmsOrderMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
int updateByExampleSelective(@Param("record") OmsOrder record, @Param("example") OmsOrderExample example); 
Example #22
Source File: OmsOrderMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
List<OmsOrder> selectByExample(OmsOrderExample example); 
Example #23
Source File: OmsOrderMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
int deleteByExample(OmsOrderExample example); 
Example #24
Source File: OmsOrderMapper.java    From macrozheng with Apache License 2.0 votes vote down vote up
int countByExample(OmsOrderExample example); 
Example #25
Source File: OmsOrderMapper.java    From mall-swarm with Apache License 2.0 votes vote down vote up
int updateByExample(@Param("record") OmsOrder record, @Param("example") OmsOrderExample example); 
Example #26
Source File: OmsOrderMapper.java    From mall-swarm with Apache License 2.0 votes vote down vote up
int updateByExampleSelective(@Param("record") OmsOrder record, @Param("example") OmsOrderExample example); 
Example #27
Source File: OmsOrderMapper.java    From mall-swarm with Apache License 2.0 votes vote down vote up
List<OmsOrder> selectByExample(OmsOrderExample example); 
Example #28
Source File: OmsOrderMapper.java    From mall-swarm with Apache License 2.0 votes vote down vote up
int deleteByExample(OmsOrderExample example);