<select id="queryByShopId" resultMap="ShopMap" parameterType="com.gjc.o2o.entity.Shop"> SELECT s.shop_id, s.shop_name, s.shop_desc, s.shop_addr, s.phone, s.shop_img, s.priority, s.create_time, s.last_edit_time, s.enable_status, s.advice, a.area_id, a.area_name, sc.shop_category_id, sc.shop_category_name FROM tb_shop s, tb_area a, tb_shop_category sc WHERE s.area_id=a.area_id AND s.shop_category_id=sc.shop_category_id AND s.shop_id=#{shopId} </select>
翔仔老师,这段代码是ShopDao.xml中的,我觉得此处的parameterType的值应该是com.imooc.o2o.entity.shop,
老师在视频中写的是Long。
望老师解答。
SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需
了解课程