表名问题
This commit is contained in:
@@ -17,7 +17,7 @@ public interface TbShopAdDao {
|
|||||||
*
|
*
|
||||||
* @return 对象列表
|
* @return 对象列表
|
||||||
*/
|
*/
|
||||||
@Select("select * from fycashier.tb_shop_ad where (shop_id = #{songId} or shop_id = 1) and status=1")
|
@Select("select * from tb_shop_ad where (shop_id = #{songId} or shop_id = 1) and status=1")
|
||||||
List<TbShopAd> shopAdList(Integer shopId);
|
List<TbShopAd> shopAdList(Integer shopId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -30,10 +30,10 @@ public interface TbShopSongMapper {
|
|||||||
|
|
||||||
List<TbShopSong> selectAllAndSearch(Integer shopId, String keyWord);
|
List<TbShopSong> selectAllAndSearch(Integer shopId, String keyWord);
|
||||||
|
|
||||||
@Select("select * from fycashier.tb_shop_song where id=#{songId} and status=1")
|
@Select("select * from tb_shop_song where id=#{songId} and status=1")
|
||||||
TbShopSong selectById(@Param("songId") Integer songId);
|
TbShopSong selectById(@Param("songId") Integer songId);
|
||||||
|
|
||||||
|
|
||||||
@Update("update fycashier.tb_shop_song set sales_number=sales_number+#{num} where id=#{id}")
|
@Update("update tb_shop_song set sales_number=sales_number+#{num} where id=#{id}")
|
||||||
int incrNum(@Param("num") Integer num,@Param("id") Integer id);
|
int incrNum(@Param("num") Integer num,@Param("id") Integer id);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ public interface TbShopSongOrderMapper {
|
|||||||
" AND a.id=#{id}")
|
" AND a.id=#{id}")
|
||||||
Map<String, Object> selectByUserIdAndId(@Param("openId") String openId, @Param("id") Integer id);
|
Map<String, Object> selectByUserIdAndId(@Param("openId") String openId, @Param("id") Integer id);
|
||||||
|
|
||||||
@Select("select * from fycashier.tb_shop_song_order where order_no=#{orderNo};")
|
@Select("select * from tb_shop_song_order where order_no=#{orderNo};")
|
||||||
TbShopSongOrder selectByOrderNo(@Param("orderNo") String orderNo);
|
TbShopSongOrder selectByOrderNo(@Param("orderNo") String orderNo);
|
||||||
|
|
||||||
@Delete("DELETE FROM tb_shop_song_order\n" +
|
@Delete("DELETE FROM tb_shop_song_order\n" +
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
</select>
|
</select>
|
||||||
<select id="selectAllAndSearch" resultType="com.chaozhanggui.system.cashierservice.entity.TbShopSong">
|
<select id="selectAllAndSearch" resultType="com.chaozhanggui.system.cashierservice.entity.TbShopSong">
|
||||||
select *
|
select *
|
||||||
from fycashier.tb_shop_song where shop_id=#{shopId}
|
from tb_shop_song where shop_id=#{shopId}
|
||||||
and status=1
|
and status=1
|
||||||
<if test="keyWord != null and keyWord != ''">
|
<if test="keyWord != null and keyWord != ''">
|
||||||
and name like CONCAT('%',#{keyWord},'%')
|
and name like CONCAT('%',#{keyWord},'%')
|
||||||
|
|||||||
Reference in New Issue
Block a user