com.macro.mall.demo.dto.PmsBrandDto Java Examples
The following examples show how to use
com.macro.mall.demo.dto.PmsBrandDto.
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: DemoController.java From mall-swarm with Apache License 2.0 | 6 votes |
@ApiOperation(value = "更新品牌") @RequestMapping(value = "/brand/update/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult updateBrand(@PathVariable("id") Long id, @Validated @RequestBody PmsBrandDto pmsBrandDto,BindingResult result) { if(result.hasErrors()){ return CommonResult.validateFailed(result.getFieldError().getDefaultMessage()); } CommonResult commonResult; int count = demoService.updateBrand(id, pmsBrandDto); if (count == 1) { commonResult = CommonResult.success(pmsBrandDto); LOGGER.debug("updateBrand success:{}", pmsBrandDto); } else { commonResult = CommonResult.failed("操作失败"); LOGGER.debug("updateBrand failed:{}", pmsBrandDto); } return commonResult; }
Example #2
Source File: DemoController.java From macrozheng-mall with MIT License | 6 votes |
@ApiOperation(value = "更新品牌") @RequestMapping(value = "/brand/update/{id}", method = RequestMethod.POST) @ResponseBody public Object updateBrand(@PathVariable("id") Long id, @Validated @RequestBody PmsBrandDto pmsBrandDto,BindingResult result) { if(result.hasErrors()){ return new CommonResult().validateFailed(result.getFieldError().getDefaultMessage()); } CommonResult commonResult; int count = demoService.updateBrand(id, pmsBrandDto); if (count == 1) { commonResult = new CommonResult().success(pmsBrandDto); LOGGER.debug("updateBrand success:{}", pmsBrandDto); } else { commonResult = new CommonResult().failed(); LOGGER.debug("updateBrand failed:{}", pmsBrandDto); } return commonResult; }
Example #3
Source File: DemoController.java From macrozheng-mall with MIT License | 6 votes |
@ApiOperation(value = "添加品牌") @RequestMapping(value = "/brand/create", method = RequestMethod.POST) @ResponseBody public Object createBrand(@Validated @RequestBody PmsBrandDto pmsBrand, BindingResult result) { if (result.hasErrors()) { return new CommonResult().validateFailed(result.getFieldError().getDefaultMessage()); } CommonResult commonResult; int count = demoService.createBrand(pmsBrand); if (count == 1) { commonResult = new CommonResult().success(pmsBrand); LOGGER.debug("createBrand success:{}", pmsBrand); } else { commonResult = new CommonResult().failed(); LOGGER.debug("createBrand failed:{}", pmsBrand); } return commonResult; }
Example #4
Source File: DemoController.java From mall with Apache License 2.0 | 6 votes |
@ApiOperation(value = "更新品牌") @RequestMapping(value = "/brand/update/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult updateBrand(@PathVariable("id") Long id, @Validated @RequestBody PmsBrandDto pmsBrandDto,BindingResult result) { if(result.hasErrors()){ return CommonResult.validateFailed(result.getFieldError().getDefaultMessage()); } CommonResult commonResult; int count = demoService.updateBrand(id, pmsBrandDto); if (count == 1) { commonResult = CommonResult.success(pmsBrandDto); LOGGER.debug("updateBrand success:{}", pmsBrandDto); } else { commonResult = CommonResult.failed("操作失败"); LOGGER.debug("updateBrand failed:{}", pmsBrandDto); } return commonResult; }
Example #5
Source File: DemoController.java From mall with Apache License 2.0 | 6 votes |
@ApiOperation(value = "添加品牌") @RequestMapping(value = "/brand/create", method = RequestMethod.POST) @ResponseBody public CommonResult createBrand(@Validated @RequestBody PmsBrandDto pmsBrand, BindingResult result) { if (result.hasErrors()) { return CommonResult.validateFailed(result.getFieldError().getDefaultMessage()); } CommonResult commonResult; int count = demoService.createBrand(pmsBrand); if (count == 1) { commonResult = CommonResult.success(pmsBrand); LOGGER.debug("createBrand success:{}", pmsBrand); } else { commonResult = CommonResult.failed("操作失败"); LOGGER.debug("createBrand failed:{}", pmsBrand); } return commonResult; }
Example #6
Source File: DemoController.java From macrozheng with Apache License 2.0 | 6 votes |
@ApiOperation(value = "更新品牌") @RequestMapping(value = "/brand/update/{id}", method = RequestMethod.POST) @ResponseBody public CommonResult updateBrand(@PathVariable("id") Long id, @Validated @RequestBody PmsBrandDto pmsBrandDto,BindingResult result) { if(result.hasErrors()){ return CommonResult.validateFailed(result.getFieldError().getDefaultMessage()); } CommonResult commonResult; int count = demoService.updateBrand(id, pmsBrandDto); if (count == 1) { commonResult = CommonResult.success(pmsBrandDto); LOGGER.debug("updateBrand success:{}", pmsBrandDto); } else { commonResult = CommonResult.failed("操作失败"); LOGGER.debug("updateBrand failed:{}", pmsBrandDto); } return commonResult; }
Example #7
Source File: DemoController.java From macrozheng with Apache License 2.0 | 6 votes |
@ApiOperation(value = "添加品牌") @RequestMapping(value = "/brand/create", method = RequestMethod.POST) @ResponseBody public CommonResult createBrand(@Validated @RequestBody PmsBrandDto pmsBrand, BindingResult result) { if (result.hasErrors()) { return CommonResult.validateFailed(result.getFieldError().getDefaultMessage()); } CommonResult commonResult; int count = demoService.createBrand(pmsBrand); if (count == 1) { commonResult = CommonResult.success(pmsBrand); LOGGER.debug("createBrand success:{}", pmsBrand); } else { commonResult = CommonResult.failed("操作失败"); LOGGER.debug("createBrand failed:{}", pmsBrand); } return commonResult; }
Example #8
Source File: DemoController.java From mall-swarm with Apache License 2.0 | 6 votes |
@ApiOperation(value = "添加品牌") @RequestMapping(value = "/brand/create", method = RequestMethod.POST) @ResponseBody public CommonResult createBrand(@Validated @RequestBody PmsBrandDto pmsBrand, BindingResult result) { if (result.hasErrors()) { return CommonResult.validateFailed(result.getFieldError().getDefaultMessage()); } CommonResult commonResult; int count = demoService.createBrand(pmsBrand); if (count == 1) { commonResult = CommonResult.success(pmsBrand); LOGGER.debug("createBrand success:{}", pmsBrand); } else { commonResult = CommonResult.failed("操作失败"); LOGGER.debug("createBrand failed:{}", pmsBrand); } return commonResult; }
Example #9
Source File: DemoServiceImpl.java From mall-swarm with Apache License 2.0 | 5 votes |
@Override public int updateBrand(Long id, PmsBrandDto pmsBrandDto) { PmsBrand pmsBrand = new PmsBrand(); BeanUtils.copyProperties(pmsBrandDto,pmsBrand); pmsBrand.setId(id); return brandMapper.updateByPrimaryKeySelective(pmsBrand); }
Example #10
Source File: DemoServiceImpl.java From macrozheng-mall with MIT License | 5 votes |
@Override public int updateBrand(Long id, PmsBrandDto pmsBrandDto) { PmsBrand pmsBrand = new PmsBrand(); BeanUtils.copyProperties(pmsBrandDto,pmsBrand); pmsBrand.setId(id); return brandMapper.updateByPrimaryKeySelective(pmsBrand); }
Example #11
Source File: DemoServiceImpl.java From mall with Apache License 2.0 | 5 votes |
@Override public int updateBrand(Long id, PmsBrandDto pmsBrandDto) { PmsBrand pmsBrand = new PmsBrand(); BeanUtils.copyProperties(pmsBrandDto,pmsBrand); pmsBrand.setId(id); return brandMapper.updateByPrimaryKeySelective(pmsBrand); }
Example #12
Source File: DemoServiceImpl.java From macrozheng with Apache License 2.0 | 5 votes |
@Override public int updateBrand(Long id, PmsBrandDto pmsBrandDto) { PmsBrand pmsBrand = new PmsBrand(); BeanUtils.copyProperties(pmsBrandDto,pmsBrand); pmsBrand.setId(id); return brandMapper.updateByPrimaryKeySelective(pmsBrand); }
Example #13
Source File: DemoServiceImpl.java From mall-swarm with Apache License 2.0 | 4 votes |
@Override public int createBrand(PmsBrandDto pmsBrandDto) { PmsBrand pmsBrand = new PmsBrand(); BeanUtils.copyProperties(pmsBrandDto,pmsBrand); return brandMapper.insertSelective(pmsBrand); }
Example #14
Source File: DemoServiceImpl.java From mall with Apache License 2.0 | 4 votes |
@Override public int createBrand(PmsBrandDto pmsBrandDto) { PmsBrand pmsBrand = new PmsBrand(); BeanUtils.copyProperties(pmsBrandDto,pmsBrand); return brandMapper.insertSelective(pmsBrand); }
Example #15
Source File: DemoServiceImpl.java From macrozheng with Apache License 2.0 | 4 votes |
@Override public int createBrand(PmsBrandDto pmsBrandDto) { PmsBrand pmsBrand = new PmsBrand(); BeanUtils.copyProperties(pmsBrandDto,pmsBrand); return brandMapper.insertSelective(pmsBrand); }
Example #16
Source File: DemoServiceImpl.java From macrozheng-mall with MIT License | 4 votes |
@Override public int createBrand(PmsBrandDto pmsBrandDto) { PmsBrand pmsBrand = new PmsBrand(); BeanUtils.copyProperties(pmsBrandDto,pmsBrand); return brandMapper.insertSelective(pmsBrand); }
Example #17
Source File: DemoService.java From mall-swarm with Apache License 2.0 | votes |
int updateBrand(Long id, PmsBrandDto pmsBrandDto);
Example #18
Source File: DemoService.java From mall with Apache License 2.0 | votes |
int createBrand(PmsBrandDto pmsBrandDto);
Example #19
Source File: DemoService.java From mall with Apache License 2.0 | votes |
int updateBrand(Long id, PmsBrandDto pmsBrandDto);
Example #20
Source File: DemoService.java From mall-swarm with Apache License 2.0 | votes |
int createBrand(PmsBrandDto pmsBrandDto);
Example #21
Source File: DemoService.java From macrozheng with Apache License 2.0 | votes |
int updateBrand(Long id, PmsBrandDto pmsBrandDto);
Example #22
Source File: DemoService.java From macrozheng-mall with MIT License | votes |
int createBrand(PmsBrandDto pmsBrandDto);
Example #23
Source File: DemoService.java From macrozheng-mall with MIT License | votes |
int updateBrand(Long id, PmsBrandDto pmsBrandDto);
Example #24
Source File: DemoService.java From macrozheng with Apache License 2.0 | votes |
int createBrand(PmsBrandDto pmsBrandDto);