SELECT
project_id as projectId,
account_name as accountName,
account as account,
billing_time as billingTime,
spend_type as spendType
FROM
zj_bookkeeping
WHERE
deleted='0'
AND ((convert(billing_time,DATETIME) like '%${StartingTime}%') or(convert(billing_time,DATETIME) like '%${EndTime}%'))
<if test="spendType !=null and spendType !='' ">
and spend_type=#{spendType}
</if>
and project_id=#{projectId}
</select>
%${StartingTime}%