| | |
| | | and c.shop_id =#{shopId} |
| | | </if> |
| | | <if test="vipQueryKey != null and vipQueryKey != '' "> |
| | | and e.VIP_NAME like concat('%',#{vipQueryKey},'%') |
| | | or (e.VIP_NO like concat('%',#{vipQueryKey},'%') |
| | | or e.PHONE like concat('%',#{vipQueryKey},'%') |
| | | and c.VIP_NAME like concat('%',#{vipQueryKey},'%') |
| | | or (c.VIP_NO like concat('%',#{vipQueryKey},'%') |
| | | or c.PHONE like concat('%',#{vipQueryKey},'%') |
| | | ) |
| | | </if> |
| | | <if test="goodsName != null and goodsName != '' "> |
| | |
| | | </select> |
| | | |
| | | |
| | | <select id="selectHasValidMoneyCardUse" resultMap="MoneyCardUseSimpleMap"> |
| | | select * from money_card_use |
| | | where date_format(now(), '%Y-%m-%d') > date_format(FAIL_TIME, '%Y-%m-%d') and STATUS='有效' |
| | | </select> |
| | | </mapper> |