com.macro.mall.dto.PmsProductResult Java Examples

The following examples show how to use com.macro.mall.dto.PmsProductResult. 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: PmsProductController.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@ApiOperation("根据商品id获取商品编辑信息")
@RequestMapping(value = "/updateInfo/{id}", method = RequestMethod.GET)
@ResponseBody
public CommonResult<PmsProductResult> getUpdateInfo(@PathVariable Long id) {
    PmsProductResult productResult = productService.getUpdateInfo(id);
    return CommonResult.success(productResult);
}
 
Example #2
Source File: PmsProductController.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@ApiOperation("根据商品id获取商品编辑信息")
@RequestMapping(value = "/updateInfo/{id}", method = RequestMethod.GET)
@ResponseBody
@PreAuthorize("hasAuthority('pms:product:read')")
public Object getUpdateInfo(@PathVariable Long id) {
    PmsProductResult productResult = productService.getUpdateInfo(id);
    return new CommonResult().success(productResult);
}
 
Example #3
Source File: PmsProductController.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@ApiOperation("根据商品id获取商品编辑信息")
@RequestMapping(value = "/updateInfo/{id}", method = RequestMethod.GET)
@ResponseBody
@PreAuthorize("hasAuthority('pms:product:read')")
public CommonResult<PmsProductResult> getUpdateInfo(@PathVariable Long id) {
    PmsProductResult productResult = productService.getUpdateInfo(id);
    return CommonResult.success(productResult);
}
 
Example #4
Source File: PmsProductController.java    From mall with Apache License 2.0 5 votes vote down vote up
@ApiOperation("根据商品id获取商品编辑信息")
@RequestMapping(value = "/updateInfo/{id}", method = RequestMethod.GET)
@ResponseBody
public CommonResult<PmsProductResult> getUpdateInfo(@PathVariable Long id) {
    PmsProductResult productResult = productService.getUpdateInfo(id);
    return CommonResult.success(productResult);
}
 
Example #5
Source File: PmsDaoTests.java    From macrozheng-mall with MIT License 4 votes vote down vote up
@Test
public void  testGetProductUpdateInfo(){
    PmsProductResult productResult = productDao.getUpdateInfo(7L);
    String json = JsonUtil.objectToJson(productResult);
    LOGGER.info(json);
}
 
Example #6
Source File: PmsProductServiceImpl.java    From macrozheng-mall with MIT License 4 votes vote down vote up
@Override
public PmsProductResult getUpdateInfo(Long id) {
    return productDao.getUpdateInfo(id);
}
 
Example #7
Source File: PmsDaoTests.java    From mall with Apache License 2.0 4 votes vote down vote up
@Test
public void  testGetProductUpdateInfo(){
    PmsProductResult productResult = productDao.getUpdateInfo(7L);
    String json = JSONUtil.parse(productResult).toString();
    LOGGER.info(json);
}
 
Example #8
Source File: PmsProductServiceImpl.java    From mall with Apache License 2.0 4 votes vote down vote up
@Override
public PmsProductResult getUpdateInfo(Long id) {
    return productDao.getUpdateInfo(id);
}
 
Example #9
Source File: PmsDaoTests.java    From macrozheng with Apache License 2.0 4 votes vote down vote up
@Test
public void  testGetProductUpdateInfo(){
    PmsProductResult productResult = productDao.getUpdateInfo(7L);
    String json = JSONUtil.parse(productResult).toString();
    LOGGER.info(json);
}
 
Example #10
Source File: PmsProductServiceImpl.java    From macrozheng with Apache License 2.0 4 votes vote down vote up
@Override
public PmsProductResult getUpdateInfo(Long id) {
    return productDao.getUpdateInfo(id);
}
 
Example #11
Source File: PmsDaoTests.java    From mall-swarm with Apache License 2.0 4 votes vote down vote up
@Test
public void  testGetProductUpdateInfo(){
    PmsProductResult productResult = productDao.getUpdateInfo(7L);
    String json = JSONUtil.parse(productResult).toString();
    LOGGER.info(json);
}
 
Example #12
Source File: PmsProductServiceImpl.java    From mall-swarm with Apache License 2.0 4 votes vote down vote up
@Override
public PmsProductResult getUpdateInfo(Long id) {
    return productDao.getUpdateInfo(id);
}
 
Example #13
Source File: PmsProductService.java    From macrozheng with Apache License 2.0 2 votes vote down vote up
/**
 * 根据商品编号获取更新信息
 */
PmsProductResult getUpdateInfo(Long id);
 
Example #14
Source File: PmsProductDao.java    From mall with Apache License 2.0 2 votes vote down vote up
/**
 * 获取商品编辑信息
 */
PmsProductResult getUpdateInfo(@Param("id") Long id);
 
Example #15
Source File: PmsProductService.java    From mall with Apache License 2.0 2 votes vote down vote up
/**
 * 根据商品编号获取更新信息
 */
PmsProductResult getUpdateInfo(Long id);
 
Example #16
Source File: PmsProductDao.java    From macrozheng with Apache License 2.0 2 votes vote down vote up
/**
 * 获取商品编辑信息
 */
PmsProductResult getUpdateInfo(@Param("id") Long id);
 
Example #17
Source File: PmsProductDao.java    From macrozheng-mall with MIT License 2 votes vote down vote up
/**
 * 获取商品编辑信息
 */
PmsProductResult getUpdateInfo(@Param("id") Long id);
 
Example #18
Source File: PmsProductService.java    From macrozheng-mall with MIT License 2 votes vote down vote up
/**
 * 根据商品编号获取更新信息
 */
PmsProductResult getUpdateInfo(Long id);
 
Example #19
Source File: PmsProductService.java    From mall-swarm with Apache License 2.0 2 votes vote down vote up
/**
 * 根据商品编号获取更新信息
 */
PmsProductResult getUpdateInfo(Long id);
 
Example #20
Source File: PmsProductDao.java    From mall-swarm with Apache License 2.0 2 votes vote down vote up
/**
 * 获取商品编辑信息
 */
PmsProductResult getUpdateInfo(@Param("id") Long id);