|
|
@@ -307,5 +307,19 @@ public interface SecondGoodsMapper extends BaseMapper<SecondGoods> {
|
|
|
"on sg.category_two_id = sgc2.id " +
|
|
|
"${ew.customSqlSegment}")
|
|
|
IPage<SecondGoodsVo> getAdminGoodsList(IPage<SecondGoodsVo> page, @Param(Constants.WRAPPER) QueryWrapper<SecondGoodsVo> queryWrapper);
|
|
|
-
|
|
|
+ @Select("SELECT " +
|
|
|
+ "sg.*, " +
|
|
|
+ "lu.user_name as userName, " +
|
|
|
+ "lu.user_phone as userPhone, " +
|
|
|
+ "sgc1.category_name as categoryOneName, " +
|
|
|
+ "sgc2.category_name as categoryTwoName " +
|
|
|
+ "FROM second_goods sg " +
|
|
|
+ "left JOIN second_goods_category sgc1 " +
|
|
|
+ "on sg.category_one_id = sgc1.id " +
|
|
|
+ "left JOIN second_goods_category sgc2 " +
|
|
|
+ "on sg.category_two_id = sgc2.id " +
|
|
|
+ "left JOIN life_user lu " +
|
|
|
+ "on lu.id = sg.userId " +
|
|
|
+ "${ew.customSqlSegment}")
|
|
|
+ SecondGoodsVo getGoodsById(@Param(Constants.WRAPPER) QueryWrapper<SecondGoodsVo> queryWrapper);
|
|
|
}
|