A method for generating hybrid automatic repeat request HARQ information, comprising: receiving, by a terminal device, a first message sent by a network device, wherein the first message indicates a plurality of active bandwidth parts BWPs in a cell or indicates M BWP groups in a cell, the M BWP groups comprise N BWPs, wherein a BWP group of the M BWP groups comprises an active BWP, M and N are integers greater than or equal to 2, and M≤N; and generating, by the terminal device, HARQ information based on the first message; wherein when the first message is used to indicate that there are a plurality of active BWPs in a cell, the first message is specifically used to indicate a plurality of identifiers IDs corresponding to the plurality of active BWPs; and the generating, by the terminal device, HARQ information based on the first message comprises: determining, by the terminal device based on the ID of the active BWP, a physical downlink shared channel PDSCH receiving occasion set corresponding to the active BWP; and generating, by the terminal device, first HARQ information based on the PDSCH receiving occasion set corresponding to the active BWP; or wherein when the first message is used to indicate that there are M BWP groups in a cell, the first message is specifically used to indicate a plurality of identifiers IDs corresponding to the M BWP groups; and the generating, by the terminal device, HARQ information based on the first message comprises: determining, by the terminal device based on the ID of the BWP group, a PDSCH receiving occasion set corresponding to the active BWP in the BWP group, wherein the BWP group comprises one active BWP; and generating, by the terminal device, second HARQ information based on the PDSCH receiving occasion set corresponding to the active BWP in the BWP group. receiving, by a terminal device, a first message sent by a network device, wherein the first message indicates a plurality of active bandwidth parts BWPs in a cell or indicates M BWP groups in a cell, the M BWP groups comprise N BWPs, wherein a BWP group of the M BWP groups comprises an active BWP, M and N are integers greater than or equal to 2, and M≤N; and generating, by the terminal device, HARQ information based on the first message; wherein when the first message is used to indicate that there are a plurality of active BWPs in a cell, the first message is specifically used to indicate a plurality of identifiers IDs corresponding to the plurality of active BWPs; and the generating, by the terminal device, HARQ information based on the first message comprises: determining, by the terminal device based on the ID of the active BWP, a physical downlink shared channel PDSCH receiving occasion set corresponding to the active BWP; and generating, by the terminal device, first HARQ information based on the PDSCH receiving occasion set corresponding to the active BWP; or wherein when the first message is used to indicate that there are M BWP groups in a cell, the first message is specifically used to indicate a plurality of identifiers IDs corresponding to the M BWP groups; and the generating, by the terminal device, HARQ information based on the first message comprises: determining, by the terminal device based on the ID of the BWP group, a PDSCH receiving occasion set corresponding to the active BWP in the BWP group, wherein the BWP group comprises one active BWP; and generating, by the terminal device, second HARQ information based on the PDSCH receiving occasion set corresponding to the active BWP in the BWP group. determining, by the terminal device based on the ID of the active BWP, a physical downlink shared channel PDSCH receiving occasion set corresponding to the active BWP; and generating, by the terminal device, first HARQ information based on the PDSCH receiving occasion set corresponding to the active BWP; or wherein when the first message is used to indicate that there are M BWP groups in a cell, the first message is specifically used to indicate a plurality of identifiers IDs corresponding to the M BWP groups; and the generating, by the terminal device, HARQ information based on the first message comprises: determining, by the terminal device based on the ID of the BWP group, a PDSCH receiving occasion set corresponding to the active BWP in the BWP group, wherein the BWP group comprises one active BWP; and generating, by the terminal device, second HARQ information based on the PDSCH receiving occasion set corresponding to the active BWP in the BWP group. determining, by the terminal device based on the ID of the BWP group, a PDSCH receiving occasion set corresponding to the active BWP in the BWP group, wherein the BWP group comprises one active BWP; and generating, by the terminal device, second HARQ information based on the PDSCH receiving occasion set corresponding to the active BWP in the BWP group.