|
@@ -228,9 +228,9 @@ public interface DiscountMapper {
|
|
|
" join t_template t2 on t1.template_id = t2.id" +
|
|
|
" where t1.delete_flag = 0 and t1.discount_begin_time <=getDate() and t1.discount_end_time>=getDate()")
|
|
|
List<Discount> queryTcDiscunt();
|
|
|
- @Select(" select * from t_discount where template_id =#{templateId} limit 1")
|
|
|
+ @Select(" select top 1 * from t_discount where template_id =#{templateId} ")
|
|
|
Discount queryTcDiscuntByTemplateId(Long templateId);
|
|
|
- @Select(" select name from t_discount where template_id =#{templateId} limit 1 ")
|
|
|
+ @Select(" select top 1 name from t_discount where template_id =#{templateId} ")
|
|
|
String selectNameByTmplateId(Long templateId);
|
|
|
@Select(" select * from t_discount where where template_id is not null")
|
|
|
List<Discount> selectNotNullTemplate();
|