|
@@ -1,25 +1,24 @@
|
|
|
package com.ym.mec.biz.dal.dao;
|
|
|
|
|
|
-import com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender;
|
|
|
-import com.ym.mec.biz.dal.enums.PaymentStatusEnum;
|
|
|
-import com.ym.mec.common.dal.BaseDAO;
|
|
|
+import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
|
|
-import java.util.List;
|
|
|
+import com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender;
|
|
|
+import com.ym.mec.biz.dal.enums.PaymentStatusEnum;
|
|
|
+import com.ym.mec.common.dal.BaseDAO;
|
|
|
|
|
|
public interface MusicGroupPaymentCalenderDao extends BaseDAO<Long, MusicGroupPaymentCalender> {
|
|
|
|
|
|
/**
|
|
|
* 根据乐团编号删除乐团缴费周期
|
|
|
- *
|
|
|
* @param musicGroupId
|
|
|
*/
|
|
|
void delByGroupId(String musicGroupId);
|
|
|
|
|
|
/**
|
|
|
* 根据乐团编号获取乐团缴费日历
|
|
|
- *
|
|
|
* @param musicGroupId
|
|
|
* @return
|
|
|
*/
|
|
@@ -27,7 +26,6 @@ public interface MusicGroupPaymentCalenderDao extends BaseDAO<Long, MusicGroupPa
|
|
|
|
|
|
/**
|
|
|
* 批量新增乐团缴费周期
|
|
|
- *
|
|
|
* @param calender
|
|
|
* @param musicGroupId
|
|
|
*/
|
|
@@ -35,7 +33,6 @@ public interface MusicGroupPaymentCalenderDao extends BaseDAO<Long, MusicGroupPa
|
|
|
|
|
|
/**
|
|
|
* 批量修改
|
|
|
- *
|
|
|
* @param musicGroupPaymentCalenderList
|
|
|
* @return
|
|
|
*/
|
|
@@ -43,16 +40,25 @@ public interface MusicGroupPaymentCalenderDao extends BaseDAO<Long, MusicGroupPa
|
|
|
|
|
|
/**
|
|
|
* 查询指定状态的记录
|
|
|
- *
|
|
|
* @param status
|
|
|
* @return
|
|
|
*/
|
|
|
List<MusicGroupPaymentCalender> queryByPaymentStatus(List<PaymentStatusEnum> status);
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 获取缴费信息锁
|
|
|
* @param id
|
|
|
* @return
|
|
|
*/
|
|
|
MusicGroupPaymentCalender getForLock(@Param("id") Long id);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据指定乐团的缴费日期查询交集
|
|
|
+ * @param musicGroupId 乐团编号
|
|
|
+ * @param startPaymentDate 开始缴费日期
|
|
|
+ * @param deadlinePaymentDate 截止缴费日期
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ int queryIntersectionByPaymentDate(@Param("musicGroupId") String musicGroupId, @Param("startPaymentDate") Date startPaymentDate,
|
|
|
+ @Param("deadlinePaymentDate") Date deadlinePaymentDate);
|
|
|
}
|