|
@@ -60,7 +60,7 @@
|
|
|
limit #{offset}, #{limit}
|
|
|
</if>
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="queryTotal" resultType="int">
|
|
|
select count(*) from mk_activities_association
|
|
|
WHERE 1=1
|
|
@@ -68,7 +68,28 @@
|
|
|
AND name LIKE concat('%',#{name},'%')
|
|
|
</if>
|
|
|
</select>
|
|
|
-
|
|
|
+ <select id="queryByMkCodeAndTopic" resultType="com.kmall.admin.entity.mk.MkActivitiesAssociationEntity">
|
|
|
+ select
|
|
|
+ maa.mkaa_id,
|
|
|
+ maa.mk_code,
|
|
|
+ maa.mka_id,
|
|
|
+ maa.mka_store_id,
|
|
|
+ maa.mka_status,
|
|
|
+ maa.mka_start_time,
|
|
|
+ maa.mkd_end_time,
|
|
|
+ maa.mka_end_early,
|
|
|
+ maa.mkd_end_early_time
|
|
|
+ from mk_activities_association maa,
|
|
|
+ mk_activities ma
|
|
|
+ <where>
|
|
|
+ maa.mka_id = ma.mka_id
|
|
|
+ and maa.mk_code = #{mkCode}
|
|
|
+ and ma.mka_topic = #{mkaTopic}
|
|
|
+ and maa.mka_store_id = #{mkaStoreId}
|
|
|
+ </where>
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
<insert id="save" parameterType="com.kmall.admin.entity.mk.MkActivitiesAssociationEntity" useGeneratedKeys="true" keyProperty="mkaaId">
|
|
|
insert into mk_activities_association(
|
|
|
`mk_code`,
|
|
@@ -110,11 +131,11 @@
|
|
|
</set>
|
|
|
where mkaa_id = #{mkaaId}
|
|
|
</update>
|
|
|
-
|
|
|
+
|
|
|
<delete id="delete">
|
|
|
delete from mk_activities_association where mkaa_id = #{value}
|
|
|
</delete>
|
|
|
-
|
|
|
+
|
|
|
<delete id="deleteBatch">
|
|
|
delete from mk_activities_association where mka_id in
|
|
|
<foreach item="mkaId" collection="array" open="(" separator="," close=")">
|
|
@@ -122,4 +143,6 @@
|
|
|
</foreach>
|
|
|
</delete>
|
|
|
|
|
|
-</mapper>
|
|
|
+
|
|
|
+
|
|
|
+</mapper>
|