| | |
| | | SELECT |
| | | t.*, |
| | | s.name as stationName, |
| | | st.`name` as typeName |
| | | st.`name` as typeName, |
| | | us.login_name as registerTel |
| | | FROM |
| | | t_supplier_info t |
| | | LEFT JOIN t_station s ON t.station_id = s.id |
| | | LEFT JOIN t_supplier_type st ON t.type_id = st.id |
| | | LEFT JOIN t_user us ON t.user_id = us.id and us.type='supplier' |
| | | WHERE t.deleted = 0 |
| | | <if test="dto.name!=null and dto.name!=''"> |
| | | AND t.name LIKE CONCAT('%',#{dto.name}, '%') |
| | |
| | | <if test="dto.isEnabled!=null"> |
| | | AND t.is_enabled = #{dto.isEnabled} |
| | | </if> |
| | | <if test="dto.id!=null"> |
| | | AND t.id = #{dto.id} |
| | | </if> |
| | | order by t.create_time desc |
| | | </select> |
| | | <select id="findSupplierDetail" resultType="com.mzl.flower.dto.response.supplier.SupplierDTO" |