Commit 8ebe951f by 章家宝

feat:联调,补充提交

1 parent 7bf071d2
...@@ -118,7 +118,7 @@ public interface CouponDistributionRecordRepository extends BaseRepository<Coupo ...@@ -118,7 +118,7 @@ public interface CouponDistributionRecordRepository extends BaseRepository<Coupo
r.activityId, r.activityId,
r.activityName, r.activityName,
r.templateId, r.templateId,
r.templateName, temp.templateName,
r.couponId, r.couponId,
r.accountId, r.accountId,
a.accountName, a.accountName,
...@@ -142,6 +142,7 @@ public interface CouponDistributionRecordRepository extends BaseRepository<Coupo ...@@ -142,6 +142,7 @@ public interface CouponDistributionRecordRepository extends BaseRepository<Coupo
) )
FROM CouponDistributionRecord r FROM CouponDistributionRecord r
LEFT JOIN CouponAccount c ON r.couponId = c.couponId AND c.deleteFlag = 'N' LEFT JOIN CouponAccount c ON r.couponId = c.couponId AND c.deleteFlag = 'N'
LEFT JOIN CouponTemplate temp ON temp.id = c.templateId AND c.deleteFlag = 'N'
LEFT JOIN Account a ON r.accountId = a.accountId LEFT JOIN Account a ON r.accountId = a.accountId
LEFT JOIN CouponVerificationRecord v ON r.couponId = v.couponId AND v.deleteFlag = 'N' LEFT JOIN CouponVerificationRecord v ON r.couponId = v.couponId AND v.deleteFlag = 'N'
WHERE r.deleteFlag = 'N' WHERE r.deleteFlag = 'N'
...@@ -157,8 +158,8 @@ public interface CouponDistributionRecordRepository extends BaseRepository<Coupo ...@@ -157,8 +158,8 @@ public interface CouponDistributionRecordRepository extends BaseRepository<Coupo
AND (:startTime IS NULL OR r.distributionTime >= :startTime) AND (:startTime IS NULL OR r.distributionTime >= :startTime)
AND (:endTime IS NULL OR r.distributionTime <= :endTime) AND (:endTime IS NULL OR r.distributionTime <= :endTime)
AND (:idList IS NULL OR r.id IN :idList) AND (:idList IS NULL OR r.id IN :idList)
AND (:couponTemplateId IS NULL OR :couponTemplateId = '' OR r.templateId = :couponTemplateId) AND (:couponTemplateId IS NULL OR :couponTemplateId = '' OR temp.templateId = :couponTemplateId)
AND (:templateName IS NULL OR :templateName = '' OR r.templateName LIKE %:templateName%) AND (:templateName IS NULL OR :templateName = '' OR temp.templateName LIKE %:templateName%)
""") """)
Page<CouponDistributionRecordDTO> findDistributionRecords( Page<CouponDistributionRecordDTO> findDistributionRecords(
@Param("keyword") String keyword, @Param("keyword") String keyword,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!