jyy
2021-08-20 5f29f86819e170faaf0159f730d83ad19c8bd2a7
zq-erp/src/main/resources/mybatis/mapper/hive/SysProjUseDao.xml
@@ -856,10 +856,7 @@
    <update id="updateInvalidProjUse"  >
        update   sys_proj_use set STATUS='无效'
        where
            (   date_format(now(), '%Y-%m-%d') > date_format(FAIL_TIME, '%Y-%m-%d')
                or SURPLUS_COUNT=0
                or balance =0 )
        where  date_format(now(), '%Y-%m-%d') > date_format(FAIL_TIME, '%Y-%m-%d')
          and STATUS='有效'
    </update>
@@ -927,7 +924,7 @@
            left join shopping_goods f on e.proj_id=f.id
        where 1=1 and a.type='套餐' and a.TAOCAN_ID IS NULL
        <if test="record.queryKey != null and record.queryKey !='' ">
            and (instr(b.name, #{record.queryKey}) or instr(b.zjm, #{record.queryKey}) or instr(goods_no, #{record.queryKey}))
            and (instr(b.name, #{record.queryKey}) or instr(b.zjm, #{record.queryKey}) or instr(b.goods_no, #{record.queryKey}))
        </if>
        <if test="record.isOver != null and record.isOver !='' ">
            and a.IS_OVER = #{record.isOver}