| | |
| | | SELECT id, |
| | | card_no, |
| | | balance, |
| | | company_id, |
| | | fleet_id, |
| | | init_quota, |
| | | status, |
| | | del_flag, |
| | | create_time, |
| | |
| | | </if> |
| | | <if test="query.status != null"> |
| | | AND status = #{query.status} |
| | | </if> |
| | | <if test="query.companyId != null"> |
| | | AND company_id = #{query.companyId} |
| | | </if> |
| | | <if test="query.fleetId != null"> |
| | | AND fleet_id = #{query.fleetId} |
| | | </if> |
| | | ORDER BY create_time DESC, id DESC |
| | | </select> |
| | |
| | | <if test="query.status != null"> |
| | | AND status = #{query.status} |
| | | </if> |
| | | <if test="query.companyId != null"> |
| | | AND company_id = #{query.companyId} |
| | | </if> |
| | | <if test="query.fleetId != null"> |
| | | AND fleet_id = #{query.fleetId} |
| | | </if> |
| | | ORDER BY create_time DESC, id DESC |
| | | </select> |
| | | |