first commit
This commit is contained in:
14
src/main/resources/mapper/banner/ActivityDao.xml
Normal file
14
src/main/resources/mapper/banner/ActivityDao.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.sqx.modules.banner.dao.ActivityDao">
|
||||
|
||||
|
||||
<select id="selectByState" resultType="com.sqx.modules.banner.entity.Activity">
|
||||
select * from activity where state=#{state} order by id desc
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
27
src/main/resources/mapper/banner/BannerDao.xml
Normal file
27
src/main/resources/mapper/banner/BannerDao.xml
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.sqx.modules.banner.dao.BannerDao">
|
||||
|
||||
<select id="selectList" resultType="com.sqx.modules.banner.entity.Banner">
|
||||
select * from banner
|
||||
where classify=#{classify} and `state`=1
|
||||
order by `sort` desc
|
||||
</select>
|
||||
|
||||
<select id="selectLists" resultType="com.sqx.modules.banner.entity.Banner">
|
||||
select * from banner
|
||||
where classify=#{classify}
|
||||
order by `sort` desc
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectBannerPage" resultType="com.sqx.modules.banner.entity.Banner">
|
||||
select * from banner
|
||||
where classify=#{classify}
|
||||
order by `sort` desc
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user