|
|
@ -40,6 +40,11 @@ public interface BsDiscountUserMapperExt { |
|
|
|
"</script>"}) |
|
|
|
"</script>"}) |
|
|
|
List<DiscountUserModel> queryUserDiscountList(@Param("param") Map<String,Object> param); |
|
|
|
List<DiscountUserModel> queryUserDiscountList(@Param("param") Map<String,Object> param); |
|
|
|
|
|
|
|
|
|
|
|
@Update("<script>update bs_discount_user SET `status` = 3 where `status` = 1 <![CDATA[ and expiration_date <= NOW() ]]></script>") |
|
|
|
@Update("<script>" + |
|
|
|
|
|
|
|
" update bs_discount_user a" + |
|
|
|
|
|
|
|
" LEFT JOIN bs_discount_stock_code b on b.id = a.discount_stock_code " + |
|
|
|
|
|
|
|
" SET a.`status` = 3,b.`status` = 4" + |
|
|
|
|
|
|
|
" where a.`status` = 1 <![CDATA[ and a.expiration_date <= NOW() ]]>" + |
|
|
|
|
|
|
|
" </script>") |
|
|
|
void expiration(); |
|
|
|
void expiration(); |
|
|
|
} |
|
|
|
} |
|
|
|