com.macro.mall.model.OmsOrderReturnApply Java Examples

The following examples show how to use com.macro.mall.model.OmsOrderReturnApply. 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: OmsOrderReturnApplyServiceImpl.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@Override
public int updateStatus(Long id, OmsUpdateStatusParam statusParam) {
    Integer status = statusParam.getStatus();
    OmsOrderReturnApply returnApply = new OmsOrderReturnApply();
    if(status.equals(1)){
        //确认退货
        returnApply.setId(id);
        returnApply.setStatus(1);
        returnApply.setReturnAmount(statusParam.getReturnAmount());
        returnApply.setCompanyAddressId(statusParam.getCompanyAddressId());
        returnApply.setHandleTime(new Date());
        returnApply.setHandleMan(statusParam.getHandleMan());
        returnApply.setHandleNote(statusParam.getHandleNote());
    }else if(status.equals(2)){
        //完成退货
        returnApply.setId(id);
        returnApply.setStatus(2);
        returnApply.setReceiveTime(new Date());
        returnApply.setReceiveMan(statusParam.getReceiveMan());
        returnApply.setReceiveNote(statusParam.getReceiveNote());
    }else if(status.equals(3)){
        //拒绝退货
        returnApply.setId(id);
        returnApply.setStatus(3);
        returnApply.setHandleTime(new Date());
        returnApply.setHandleMan(statusParam.getHandleMan());
        returnApply.setHandleNote(statusParam.getHandleNote());
    }else{
        return 0;
    }
    return returnApplyMapper.updateByPrimaryKeySelective(returnApply);
}
 
Example #2
Source File: OmsOrderReturnApplyController.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@ApiOperation("分页查询退货申请")
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ResponseBody
public CommonResult<CommonPage<OmsOrderReturnApply>> list(OmsReturnApplyQueryParam queryParam,
                                                          @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize,
                                                          @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) {
    List<OmsOrderReturnApply> returnApplyList = returnApplyService.list(queryParam, pageSize, pageNum);
    return CommonResult.success(CommonPage.restPage(returnApplyList));
}
 
Example #3
Source File: OmsPortalOrderReturnApplyServiceImpl.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@Override
public int create(OmsOrderReturnApplyParam returnApply) {
    OmsOrderReturnApply realApply = new OmsOrderReturnApply();
    BeanUtils.copyProperties(returnApply,realApply);
    realApply.setCreateTime(new Date());
    realApply.setStatus(0);
    return returnApplyMapper.insert(realApply);
}
 
Example #4
Source File: OmsOrderReturnApplyServiceImpl.java    From mall with Apache License 2.0 5 votes vote down vote up
@Override
public int updateStatus(Long id, OmsUpdateStatusParam statusParam) {
    Integer status = statusParam.getStatus();
    OmsOrderReturnApply returnApply = new OmsOrderReturnApply();
    if(status.equals(1)){
        //确认退货
        returnApply.setId(id);
        returnApply.setStatus(1);
        returnApply.setReturnAmount(statusParam.getReturnAmount());
        returnApply.setCompanyAddressId(statusParam.getCompanyAddressId());
        returnApply.setHandleTime(new Date());
        returnApply.setHandleMan(statusParam.getHandleMan());
        returnApply.setHandleNote(statusParam.getHandleNote());
    }else if(status.equals(2)){
        //完成退货
        returnApply.setId(id);
        returnApply.setStatus(2);
        returnApply.setReceiveTime(new Date());
        returnApply.setReceiveMan(statusParam.getReceiveMan());
        returnApply.setReceiveNote(statusParam.getReceiveNote());
    }else if(status.equals(3)){
        //拒绝退货
        returnApply.setId(id);
        returnApply.setStatus(3);
        returnApply.setHandleTime(new Date());
        returnApply.setHandleMan(statusParam.getHandleMan());
        returnApply.setHandleNote(statusParam.getHandleNote());
    }else{
        return 0;
    }
    return returnApplyMapper.updateByPrimaryKeySelective(returnApply);
}
 
Example #5
Source File: OmsOrderReturnApplyServiceImpl.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@Override
public int updateStatus(Long id, OmsUpdateStatusParam statusParam) {
    Integer status = statusParam.getStatus();
    OmsOrderReturnApply returnApply = new OmsOrderReturnApply();
    if(status.equals(1)){
        //确认退货
        returnApply.setId(id);
        returnApply.setStatus(1);
        returnApply.setReturnAmount(statusParam.getReturnAmount());
        returnApply.setCompanyAddressId(statusParam.getCompanyAddressId());
        returnApply.setHandleTime(new Date());
        returnApply.setHandleMan(statusParam.getHandleMan());
        returnApply.setHandleNote(statusParam.getHandleNote());
    }else if(status.equals(2)){
        //完成退货
        returnApply.setId(id);
        returnApply.setStatus(2);
        returnApply.setReceiveTime(new Date());
        returnApply.setReceiveMan(statusParam.getReceiveMan());
        returnApply.setReceiveNote(statusParam.getReceiveNote());
    }else if(status.equals(3)){
        //拒绝退货
        returnApply.setId(id);
        returnApply.setStatus(3);
        returnApply.setHandleTime(new Date());
        returnApply.setHandleMan(statusParam.getHandleMan());
        returnApply.setHandleNote(statusParam.getHandleNote());
    }else{
        return 0;
    }
    return returnApplyMapper.updateByPrimaryKeySelective(returnApply);
}
 
Example #6
Source File: OmsOrderReturnApplyController.java    From mall with Apache License 2.0 5 votes vote down vote up
@ApiOperation("分页查询退货申请")
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ResponseBody
public CommonResult<CommonPage<OmsOrderReturnApply>> list(OmsReturnApplyQueryParam queryParam,
                                                          @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize,
                                                          @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) {
    List<OmsOrderReturnApply> returnApplyList = returnApplyService.list(queryParam, pageSize, pageNum);
    return CommonResult.success(CommonPage.restPage(returnApplyList));
}
 
Example #7
Source File: OmsPortalOrderReturnApplyServiceImpl.java    From mall with Apache License 2.0 5 votes vote down vote up
@Override
public int create(OmsOrderReturnApplyParam returnApply) {
    OmsOrderReturnApply realApply = new OmsOrderReturnApply();
    BeanUtils.copyProperties(returnApply,realApply);
    realApply.setCreateTime(new Date());
    realApply.setStatus(0);
    return returnApplyMapper.insert(realApply);
}
 
Example #8
Source File: OmsOrderReturnApplyServiceImpl.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@Override
public int updateStatus(Long id, OmsUpdateStatusParam statusParam) {
    Integer status = statusParam.getStatus();
    OmsOrderReturnApply returnApply = new OmsOrderReturnApply();
    if(status.equals(1)){
        //确认退货
        returnApply.setId(id);
        returnApply.setStatus(1);
        returnApply.setReturnAmount(statusParam.getReturnAmount());
        returnApply.setCompanyAddressId(statusParam.getCompanyAddressId());
        returnApply.setHandleTime(new Date());
        returnApply.setHandleMan(statusParam.getHandleMan());
        returnApply.setHandleNote(statusParam.getHandleNote());
    }else if(status.equals(2)){
        //完成退货
        returnApply.setId(id);
        returnApply.setStatus(2);
        returnApply.setReceiveTime(new Date());
        returnApply.setReceiveMan(statusParam.getReceiveMan());
        returnApply.setReceiveNote(statusParam.getReceiveNote());
    }else if(status.equals(3)){
        //拒绝退货
        returnApply.setId(id);
        returnApply.setStatus(3);
        returnApply.setHandleTime(new Date());
        returnApply.setHandleMan(statusParam.getHandleMan());
        returnApply.setHandleNote(statusParam.getHandleNote());
    }else{
        return 0;
    }
    return returnApplyMapper.updateByPrimaryKeySelective(returnApply);
}
 
Example #9
Source File: OmsOrderReturnApplyController.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@ApiOperation("分页查询退货申请")
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ResponseBody
public CommonResult<CommonPage<OmsOrderReturnApply>> list(OmsReturnApplyQueryParam queryParam,
                                                          @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize,
                                                          @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) {
    List<OmsOrderReturnApply> returnApplyList = returnApplyService.list(queryParam, pageSize, pageNum);
    return CommonResult.success(CommonPage.restPage(returnApplyList));
}
 
Example #10
Source File: OmsPortalOrderReturnApplyServiceImpl.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@Override
public int create(OmsOrderReturnApplyParam returnApply) {
    OmsOrderReturnApply realApply = new OmsOrderReturnApply();
    BeanUtils.copyProperties(returnApply,realApply);
    realApply.setCreateTime(new Date());
    realApply.setStatus(0);
    return returnApplyMapper.insert(realApply);
}
 
Example #11
Source File: OmsOrderReturnApplyController.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@ApiOperation("分页查询退货申请")
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ResponseBody
public Object list(OmsReturnApplyQueryParam queryParam,
                   @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize,
                   @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) {
    List<OmsOrderReturnApply> returnApplyList = returnApplyService.list(queryParam, pageSize, pageNum);
    return new CommonResult().pageSuccess(returnApplyList);
}
 
Example #12
Source File: OmsPortalOrderReturnApplyServiceImpl.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@Override
public int create(OmsOrderReturnApplyParam returnApply) {
    OmsOrderReturnApply realApply = new OmsOrderReturnApply();
    BeanUtils.copyProperties(returnApply,realApply);
    realApply.setCreateTime(new Date());
    realApply.setStatus(0);
    return returnApplyMapper.insert(realApply);
}
 
Example #13
Source File: OmsOrderReturnApplyServiceImpl.java    From mall-swarm with Apache License 2.0 4 votes vote down vote up
@Override
public List<OmsOrderReturnApply> list(OmsReturnApplyQueryParam queryParam, Integer pageSize, Integer pageNum) {
    PageHelper.startPage(pageNum,pageSize);
    return returnApplyDao.getList(queryParam);
}
 
Example #14
Source File: OmsOrderReturnApplyServiceImpl.java    From macrozheng-mall with MIT License 4 votes vote down vote up
@Override
public List<OmsOrderReturnApply> list(OmsReturnApplyQueryParam queryParam, Integer pageSize, Integer pageNum) {
    PageHelper.startPage(pageNum,pageSize);
    return returnApplyDao.getList(queryParam);
}
 
Example #15
Source File: OmsOrderReturnApplyServiceImpl.java    From mall with Apache License 2.0 4 votes vote down vote up
@Override
public List<OmsOrderReturnApply> list(OmsReturnApplyQueryParam queryParam, Integer pageSize, Integer pageNum) {
    PageHelper.startPage(pageNum,pageSize);
    return returnApplyDao.getList(queryParam);
}
 
Example #16
Source File: OmsOrderReturnApplyServiceImpl.java    From macrozheng with Apache License 2.0 4 votes vote down vote up
@Override
public List<OmsOrderReturnApply> list(OmsReturnApplyQueryParam queryParam, Integer pageSize, Integer pageNum) {
    PageHelper.startPage(pageNum,pageSize);
    return returnApplyDao.getList(queryParam);
}
 
Example #17
Source File: OmsOrderReturnApplyService.java    From mall with Apache License 2.0 2 votes vote down vote up
/**
 * 分页查询申请
 */
List<OmsOrderReturnApply> list(OmsReturnApplyQueryParam queryParam, Integer pageSize, Integer pageNum);
 
Example #18
Source File: OmsOrderReturnApplyService.java    From macrozheng with Apache License 2.0 2 votes vote down vote up
/**
 * 分页查询申请
 */
List<OmsOrderReturnApply> list(OmsReturnApplyQueryParam queryParam, Integer pageSize, Integer pageNum);
 
Example #19
Source File: OmsOrderReturnApplyDao.java    From macrozheng with Apache License 2.0 2 votes vote down vote up
/**
 * 查询申请列表
 */
List<OmsOrderReturnApply> getList(@Param("queryParam") OmsReturnApplyQueryParam queryParam);
 
Example #20
Source File: OmsOrderReturnApplyService.java    From macrozheng-mall with MIT License 2 votes vote down vote up
/**
 * 分页查询申请
 */
List<OmsOrderReturnApply> list(OmsReturnApplyQueryParam queryParam, Integer pageSize, Integer pageNum);
 
Example #21
Source File: OmsOrderReturnApplyDao.java    From macrozheng-mall with MIT License 2 votes vote down vote up
/**
 * 查询申请列表
 */
List<OmsOrderReturnApply> getList(@Param("queryParam") OmsReturnApplyQueryParam queryParam);
 
Example #22
Source File: OmsOrderReturnApplyDao.java    From mall with Apache License 2.0 2 votes vote down vote up
/**
 * 查询申请列表
 */
List<OmsOrderReturnApply> getList(@Param("queryParam") OmsReturnApplyQueryParam queryParam);
 
Example #23
Source File: OmsOrderReturnApplyService.java    From mall-swarm with Apache License 2.0 2 votes vote down vote up
/**
 * 分页查询申请
 */
List<OmsOrderReturnApply> list(OmsReturnApplyQueryParam queryParam, Integer pageSize, Integer pageNum);
 
Example #24
Source File: OmsOrderReturnApplyDao.java    From mall-swarm with Apache License 2.0 2 votes vote down vote up
/**
 * 查询申请列表
 */
List<OmsOrderReturnApply> getList(@Param("queryParam") OmsReturnApplyQueryParam queryParam);
 
Example #25
Source File: OmsOrderReturnApplyMapper.java    From mall with Apache License 2.0 votes vote down vote up
int insert(OmsOrderReturnApply record); 
Example #26
Source File: OmsOrderReturnApplyMapper.java    From mall with Apache License 2.0 votes vote down vote up
int updateByPrimaryKey(OmsOrderReturnApply record); 
Example #27
Source File: OmsOrderReturnApplyMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int insert(OmsOrderReturnApply record); 
Example #28
Source File: OmsOrderReturnApplyMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int insertSelective(OmsOrderReturnApply record); 
Example #29
Source File: OmsOrderReturnApplyMapper.java    From macrozheng-mall with MIT License votes vote down vote up
List<OmsOrderReturnApply> selectByExample(OmsOrderReturnApplyExample example); 
Example #30
Source File: OmsOrderReturnApplyMapper.java    From macrozheng-mall with MIT License votes vote down vote up
OmsOrderReturnApply selectByPrimaryKey(Long id);