com.macro.mall.model.SmsFlashPromotionProductRelation Java Examples

The following examples show how to use com.macro.mall.model.SmsFlashPromotionProductRelation. 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: SmsFlashPromotionProductRelationController.java    From mall with Apache License 2.0 5 votes vote down vote up
@ApiOperation("获取管理商品促销信息")
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody
public CommonResult<SmsFlashPromotionProductRelation> getItem(@PathVariable Long id) {
    SmsFlashPromotionProductRelation relation = relationService.getItem(id);
    return CommonResult.success(relation);
}
 
Example #2
Source File: SmsFlashPromotionProductRelationController.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@ApiOperation("批量选择商品添加关联")
@RequestMapping(value = "/create", method = RequestMethod.POST)
@ResponseBody
public CommonResult create(@RequestBody List<SmsFlashPromotionProductRelation> relationList) {
    int count = relationService.create(relationList);
    if (count > 0) {
        return CommonResult.success(count);
    }
    return CommonResult.failed();
}
 
Example #3
Source File: SmsFlashPromotionProductRelationController.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@ApiOperation("修改关联相关信息")
@RequestMapping(value = "/update/{id}", method = RequestMethod.POST)
@ResponseBody
public CommonResult update(@PathVariable Long id, @RequestBody SmsFlashPromotionProductRelation relation) {
    int count = relationService.update(id, relation);
    if (count > 0) {
        return CommonResult.success(count);
    }
    return CommonResult.failed();
}
 
Example #4
Source File: SmsFlashPromotionProductRelationController.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@ApiOperation("批量选择商品添加关联")
@RequestMapping(value = "/create", method = RequestMethod.POST)
@ResponseBody
public Object create(@RequestBody List<SmsFlashPromotionProductRelation> relationList) {
    int count = relationService.create(relationList);
    if(count>0){
        return new CommonResult().success(count);
    }
    return new CommonResult().failed();
}
 
Example #5
Source File: SmsFlashPromotionProductRelationController.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@ApiOperation("修改关联相关信息")
@RequestMapping(value = "/update/{id}", method = RequestMethod.POST)
@ResponseBody
public Object update(@PathVariable Long id, @RequestBody SmsFlashPromotionProductRelation relation) {
    int count = relationService.update(id,relation);
    if(count>0){
        return new CommonResult().success(count);
    }
    return new CommonResult().failed();
}
 
Example #6
Source File: SmsFlashPromotionProductRelationController.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@ApiOperation("获取管理商品促销信息")
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody
public CommonResult<SmsFlashPromotionProductRelation> getItem(@PathVariable Long id) {
    SmsFlashPromotionProductRelation relation = relationService.getItem(id);
    return CommonResult.success(relation);
}
 
Example #7
Source File: SmsFlashPromotionProductRelationServiceImpl.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@Override
public int create(List<SmsFlashPromotionProductRelation> relationList) {
    for (SmsFlashPromotionProductRelation relation : relationList) {
        relationMapper.insert(relation);
    }
    return relationList.size();
}
 
Example #8
Source File: SmsFlashPromotionProductRelationServiceImpl.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@Override
public int create(List<SmsFlashPromotionProductRelation> relationList) {
    for (SmsFlashPromotionProductRelation relation : relationList) {
        relationMapper.insert(relation);
    }
    return relationList.size();
}
 
Example #9
Source File: SmsFlashPromotionProductRelationController.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@ApiOperation("获取管理商品促销信息")
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody
public CommonResult<SmsFlashPromotionProductRelation> getItem(@PathVariable Long id) {
    SmsFlashPromotionProductRelation relation = relationService.getItem(id);
    return CommonResult.success(relation);
}
 
Example #10
Source File: SmsFlashPromotionProductRelationController.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@ApiOperation("批量选择商品添加关联")
@RequestMapping(value = "/create", method = RequestMethod.POST)
@ResponseBody
public CommonResult create(@RequestBody List<SmsFlashPromotionProductRelation> relationList) {
    int count = relationService.create(relationList);
    if (count > 0) {
        return CommonResult.success(count);
    }
    return CommonResult.failed();
}
 
Example #11
Source File: SmsFlashPromotionProductRelationController.java    From mall with Apache License 2.0 5 votes vote down vote up
@ApiOperation("修改关联相关信息")
@RequestMapping(value = "/update/{id}", method = RequestMethod.POST)
@ResponseBody
public CommonResult update(@PathVariable Long id, @RequestBody SmsFlashPromotionProductRelation relation) {
    int count = relationService.update(id, relation);
    if (count > 0) {
        return CommonResult.success(count);
    }
    return CommonResult.failed();
}
 
Example #12
Source File: SmsFlashPromotionProductRelationServiceImpl.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@Override
public int create(List<SmsFlashPromotionProductRelation> relationList) {
    for (SmsFlashPromotionProductRelation relation : relationList) {
        relationMapper.insert(relation);
    }
    return relationList.size();
}
 
Example #13
Source File: SmsFlashPromotionProductRelationController.java    From mall with Apache License 2.0 5 votes vote down vote up
@ApiOperation("批量选择商品添加关联")
@RequestMapping(value = "/create", method = RequestMethod.POST)
@ResponseBody
public CommonResult create(@RequestBody List<SmsFlashPromotionProductRelation> relationList) {
    int count = relationService.create(relationList);
    if (count > 0) {
        return CommonResult.success(count);
    }
    return CommonResult.failed();
}
 
Example #14
Source File: SmsFlashPromotionProductRelationServiceImpl.java    From mall with Apache License 2.0 5 votes vote down vote up
@Override
public int create(List<SmsFlashPromotionProductRelation> relationList) {
    for (SmsFlashPromotionProductRelation relation : relationList) {
        relationMapper.insert(relation);
    }
    return relationList.size();
}
 
Example #15
Source File: SmsFlashPromotionProductRelationController.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@ApiOperation("获取管理商品促销信息")
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody
public Object getItem(@PathVariable Long id) {
    SmsFlashPromotionProductRelation relation = relationService.getItem(id);
    return new CommonResult().success(relation);
}
 
Example #16
Source File: SmsFlashPromotionProductRelationController.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@ApiOperation("修改关联相关信息")
@RequestMapping(value = "/update/{id}", method = RequestMethod.POST)
@ResponseBody
public CommonResult update(@PathVariable Long id, @RequestBody SmsFlashPromotionProductRelation relation) {
    int count = relationService.update(id, relation);
    if (count > 0) {
        return CommonResult.success(count);
    }
    return CommonResult.failed();
}
 
Example #17
Source File: SmsFlashPromotionProductRelationServiceImpl.java    From mall with Apache License 2.0 4 votes vote down vote up
@Override
public int update(Long id, SmsFlashPromotionProductRelation relation) {
    relation.setId(id);
    return relationMapper.updateByPrimaryKey(relation);
}
 
Example #18
Source File: SmsFlashPromotionProductRelationServiceImpl.java    From macrozheng with Apache License 2.0 4 votes vote down vote up
@Override
public int update(Long id, SmsFlashPromotionProductRelation relation) {
    relation.setId(id);
    return relationMapper.updateByPrimaryKey(relation);
}
 
Example #19
Source File: SmsFlashPromotionProductRelationServiceImpl.java    From macrozheng with Apache License 2.0 4 votes vote down vote up
@Override
public SmsFlashPromotionProductRelation getItem(Long id) {
    return relationMapper.selectByPrimaryKey(id);
}
 
Example #20
Source File: SmsFlashPromotionProductRelationServiceImpl.java    From mall with Apache License 2.0 4 votes vote down vote up
@Override
public SmsFlashPromotionProductRelation getItem(Long id) {
    return relationMapper.selectByPrimaryKey(id);
}
 
Example #21
Source File: SmsFlashPromotionProductRelationServiceImpl.java    From macrozheng-mall with MIT License 4 votes vote down vote up
@Override
public SmsFlashPromotionProductRelation getItem(Long id) {
    return relationMapper.selectByPrimaryKey(id);
}
 
Example #22
Source File: SmsFlashPromotionProductRelationServiceImpl.java    From mall-swarm with Apache License 2.0 4 votes vote down vote up
@Override
public int update(Long id, SmsFlashPromotionProductRelation relation) {
    relation.setId(id);
    return relationMapper.updateByPrimaryKey(relation);
}
 
Example #23
Source File: SmsFlashPromotionProductRelationServiceImpl.java    From macrozheng-mall with MIT License 4 votes vote down vote up
@Override
public int update(Long id, SmsFlashPromotionProductRelation relation) {
    relation.setId(id);
    return relationMapper.updateByPrimaryKey(relation);
}
 
Example #24
Source File: SmsFlashPromotionProductRelationServiceImpl.java    From mall-swarm with Apache License 2.0 4 votes vote down vote up
@Override
public SmsFlashPromotionProductRelation getItem(Long id) {
    return relationMapper.selectByPrimaryKey(id);
}
 
Example #25
Source File: SmsFlashPromotionProductRelationService.java    From mall with Apache License 2.0 2 votes vote down vote up
/**
 * 获取关联详情
 */
SmsFlashPromotionProductRelation getItem(Long id);
 
Example #26
Source File: SmsFlashPromotionProductRelationService.java    From mall-swarm with Apache License 2.0 2 votes vote down vote up
/**
 * 获取关联详情
 */
SmsFlashPromotionProductRelation getItem(Long id);
 
Example #27
Source File: SmsFlashPromotionProductRelationService.java    From mall-swarm with Apache License 2.0 2 votes vote down vote up
/**
 * 修改关联相关信息
 */
int update(Long id, SmsFlashPromotionProductRelation relation);
 
Example #28
Source File: SmsFlashPromotionProductRelationService.java    From mall-swarm with Apache License 2.0 2 votes vote down vote up
/**
 * 批量添加关联
 */
@Transactional
int create(List<SmsFlashPromotionProductRelation> relationList);
 
Example #29
Source File: SmsFlashPromotionProductRelationService.java    From macrozheng-mall with MIT License 2 votes vote down vote up
/**
 * 批量添加关联
 */
@Transactional
int create(List<SmsFlashPromotionProductRelation> relationList);
 
Example #30
Source File: SmsFlashPromotionProductRelationService.java    From macrozheng with Apache License 2.0 2 votes vote down vote up
/**
 * 修改关联相关信息
 */
int update(Long id, SmsFlashPromotionProductRelation relation);