xiaogang
2021-07-28 a035603b566cc5bd7523612fc42eed825eab4f13
java110-db/src/main/resources/mapper/user/OwnerCarServiceDaoImplMapper.xml
@@ -214,8 +214,14 @@
        <if test="state !=null and state != ''">
            and t.state= #{state}
        </if>
        <if test="valid == '1'">
        <if test="valid == 1">
            and t.end_time &gt; now()
        </if>
        <if test="valid == 3">
            and t.end_time &lt; now()
        </if>
        <if test="valid == 2">
            and t.ps_id= '-1'
        </if>
        group by t.car_id
        order by t.create_time desc
@@ -362,11 +368,16 @@
        <if test="state !=null and state != ''">
            and t.state= #{state}
        </if>
        <if test="valid == '1'">
        <if test="valid == 1">
            and t.end_time &gt; now()
        </if>
        <if test="valid == 3">
            and t.end_time &lt; now()
        </if>
        <if test="valid == 2">
            and t.ps_id= '-1'
        </if>
        group by t.car_id
    </select>