|
|
|
@@ -69,6 +69,12 @@ public class WxBrandServiceImpl implements WxBrandService { |
|
|
|
|
|
|
|
@Override |
|
|
|
public ResultData update(WxBrand wxBrand) { |
|
|
|
if(wxBrand.getIsDel().equals(1)){ |
|
|
|
wxBrand.setUpdatetime(new Date()); |
|
|
|
wxBrandMapper.updateByPrimaryKeySelective(wxBrand); |
|
|
|
return new ResultData(Result.SUCCESS, "操作成功"); |
|
|
|
} |
|
|
|
|
|
|
|
if(StringUtils.isEmpty(wxBrand.getName())){ |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL,"品牌名称不能为空"); |
|
|
|
} |
|
|
|
|