当前位置: 首页 > news >正文

房地产网站模版seo是什么姓

房地产网站模版,seo是什么姓,定制网站建设宝安西乡,新公司怎样做网站在四川眉山P75 品牌分类关联和级联更新 第一步 1、把renren-fast-vue\src\views\modules下的common和product模块复制到vue中 2、mybatisplus的分页插件#xff0c;来调整品牌管理页面的页数不对问题 product新建config/MybatisPlusConfig.java文件#xff0c;参照官网#xff0c;…P75 品牌分类关联和级联更新 第一步 1、把renren-fast-vue\src\views\modules下的common和product模块复制到vue中 2、mybatisplus的分页插件来调整品牌管理页面的页数不对问题 product新建config/MybatisPlusConfig.java文件参照官网添加依赖导入类 mapperScan扫描的包是dao层下的其他一样 MapperScan(com.atguigu.gulimail.product.dao)3、品牌管理页面的查询功能不对 是在brandController的list请求中 StringUtils用的是lang包下的 String s (String) params.get(key);QueryWrapperBrandEntity brandEntityQueryWrapper new QueryWrapper();if(!StringUtils.isEmpty(s)){brandEntityQueryWrapper.eq(brand_id,s).or().like(name,s);}IPageBrandEntity page this.page(new QueryBrandEntity().getPage(params),brandEntityQueryWrapper);4、执行pms.sql恢复原始形状删除所有数据 第二步 1、品牌管理页面关联分类显示信息 /product/categorybrandrelation/catelog/listCategoryBrandRelationController.java RequestMapping(/catelog/list)public R categoryList(RequestParam(brandId) Long brandId){ListCategoryBrandRelationEntity list categoryBrandRelationService.list(new QueryWrapperCategoryBrandRelationEntity().eq(brand_id,brandId));return R.ok().put(page, list);}2、保存关联分类详细信息 RequestMapping(/save)public R save(RequestBody CategoryBrandRelationEntity categoryBrandRelation){// 查到对应的品牌名称和分类名称categoryBrandRelationService.saveDetail(categoryBrandRelation);return R.ok();}这里面三方表自动注入 不是service否则双向依赖。 品牌有注入关联表关联表也注入有品牌服务。 这里用 Dao Autowired private CategoryDao categoryDao; Autowired private BrandDao brandDao;public void saveDetail(CategoryBrandRelationEntity categoryBrandRelation) {Long brandId categoryBrandRelation.getBrandId();Long catelogId categoryBrandRelation.getCatelogId();// 查询品牌名和分类名BrandEntity brand brandDao.selectById(brandId);CategoryEntity category categoryDao.selectById(catelogId);categoryBrandRelation.setBrandName(brand.getName());categoryBrandRelation.setCatelogName(category.getName());this.save(categoryBrandRelation);}第三步 品牌页面更新名字时category_brand数据表也要更新 是用的update里面不是save RequestMapping(/update)public R update(Validated({UpdataGroup.class}) RequestBody BrandEntity brand){brandService.updateDetail(brand);return R.ok();}Autowired private CategoryBrandRelationService categoryBrandRelationService;Transactional Override public void updateDetail(BrandEntity brand) {this.updateById(brand);// 更新其他关联表if(!StringUtils.isEmpty(brand.getName())){categoryBrandRelationService.updateBrandName(brand.getBrandId(),brand.getName());}} Overridepublic void updateCatelogName(Long catId, String name) {CategoryBrandRelationEntity categoryBrandRelation new CategoryBrandRelationEntity();categoryBrandRelation.setCatelogId(catId);categoryBrandRelation.setBrandName(name);this.update(categoryBrandRelation,new UpdateWrapperCategoryBrandRelationEntity().eq(catelog_id,catId));}第四步 同理分类信息更新时category_brand数据表也要更新 RequestMapping(/update)public R update(RequestBody CategoryEntity category){categoryService.updateDetail(category);return R.ok();}Transactional Overridepublic void updateDetail(CategoryEntity category) {this.updateById(category);// 更新其他关联表if(!StringUtils.isEmpty(category.getName())){categoryBrandRelationService.updateCatelogName(category.getCatId(), category.getName());}}换一种方法实现用mybatisplus。需要安装mybatisX插件 Overridepublic void updateCatelogName(Long catId, String name) {this.baseMapper.updateCatelogName(catId, name);}之后自动创建方法提示生成。起名字 Mapper public interface CategoryBrandRelationDao extends BaseMapperCategoryBrandRelationEntity {void updateCatelogName(Param(id) Long catId,Param(name) String name); }update idupdateCatelogNameUPDATE pms_category_brand_relation SET catelog_name #{name} WHERE catelog_id #{id}/update其他 异常根类是Throwable它有两个子类 Error: 错误非常严重 Exception:编译时异常写代码时的异常。也就是平时所说的异常使用不当导致可避免。它有个子类 RuntimeException运行时异常
http://www.pierceye.com/news/675085/

相关文章:

  • 重庆建设医院官方网站医疗网站源码
  • 大学生想做网站天元建设集团有限公司商业承兑汇票拒付最新消息
  • 怎么区分营销型网站文章类型的网站模版
  • 网站充值接口怎么做国家企业官网查询系统
  • 厦门网站建设工程网站备案幕布大小
  • 做家教去什么网站滕州做网站哪家好
  • 深圳市涂能装饰设计公司网站网站建设活动策划方案
  • 建设三合一网站找设计公司上哪个网站
  • 代理ip做网站流量饭店网站模板
  • 保险网站查询软件开发工程师和程序员的区别
  • 江都区城乡建设局网站马局下载app下载安卓免费
  • 网站做后台kuler 网站
  • 北京建网站公司飞沐扬中信息网
  • 商河网站建设公司南县网站建设推荐
  • 湛江企业网站建站模板网站开发 平台
  • c做的网站app开发制作专业吗
  • 杭州做网站公司做网站的文章
  • 那里有制作网站公司做网站需要了解的内容
  • 网站防护怎么做企业网站建设的ppt
  • 凡科网的网站建设好用吗wordpress在线朗读
  • 闽侯县建设局网站营销网站seo推广费用
  • 长乐区住房和城乡建设局网站测网站打开的速度的网址
  • 手机网站产品展示模板wordpress评论改成微博
  • 后盾网原创实战网站建设教程做网站和编程序
  • 东莞整站优化推广公司找火速如何做网站连接
  • 做ppt的模板的网站想学服装设计怎么入门
  • 短视频网站如何做推广网站申请域名
  • 餐饮行业网站建设风格建网站费用
  • 北京网站建设与维护石家庄做淘宝网站
  • seo网站关键词优化费用linux wordpress 伪静态