jyy
2021-01-25 4d4805096b898a6e99f31794facb81794bd1fcf7
zq-erp/src/main/resources/mybatis/mapper/hive/MoneyCardUseDao.xml
@@ -517,9 +517,9 @@
                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 != ''  ">
@@ -616,4 +616,8 @@
    </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>