(SELECT group_concat(distinct m.user_name) FROM sys_eve_user_staff m WHERE INSTR(CONCAT(',', a.hands_person_id, ','), CONCAT(',', m.user_id, ','))) hansPersonName,
a.remark,
s.supplier supplierName
FROM
erp_accounthead a
LEFT JOIN erp_supplier s ON a.organ_id = s.id
WHERE
a.delete_flag = '0'
AND a.type = #{type}
<iftest="billNo != '' and billNo != null">
AND a.bill_no LIKE '%${billNo}%'
</if>
<iftest="startTime != '' and startTime != null and endTime != '' and endTime != null">
AND a.bill_time >= #{startTime} AND #{endTime} >= a.bill_time