A method for generating a semi-static hybrid automatic repeat request acknowledgment, HARQ-ACK, codebook, the method performed by a terminal and comprising: determining, based on at least one of a K 1 set corresponding to a first physical downlink shared channel, PDSCH, and a K 1 set corresponding to a second PDSCH, a K 1 set associated with an active uplink bandwidth part, UL BWP; determining, for each K 1, k value in the K 1 set associated with the active UL BWP, based on at least one of a time domain resource assignment, TDRA, table corresponding to the first PDSCH and a TDRA table corresponding to the second PDSCH, a candidate PDSCH reception occasion in a slot corresponding to the K 1, k value, wherein k = 0,..., M-1, and M is a quantity of elements in the K 1 set associated with the active UL BWP; and determining the semi-static HARQ-ACK codebook based on the candidate PDSCH reception occasion; wherein the determining, based on at least one of a TDRA table corresponding to the first PDSCH and a TDRA table corresponding to the second PDSCH, a candidate PDSCH reception occasion in a slot corresponding to the K 1, k value comprises: in a case that the K 1, k value belongs to an intersection set of the K 1 set corresponding to the first PDSCH and the K 1 set corresponding to the second PDSCH, determining, based on a union set of a row index of the TDRA table corresponding to the first PDSCH and a row index of the TDRA table corresponding to the second PDSCH, the candidate PDSCH reception occasion in the slot corresponding to the K 1, k value; and in a case that the K 1, k value does not belong to the intersection set, determining, based on the row index of the TDRA table corresponding to the first PDSCH or the row index of the TDRA table corresponding to the second PDSCH, the candidate PDSCH reception occasion in the slot corresponding to the K 1, k value, wherein the first PDSCH is a unicast PDSCH, and the second PDSCH is a multicast PDSCH. determining, based on at least one of a K 1 set corresponding to a first physical downlink shared channel, PDSCH, and a K 1 set corresponding to a second PDSCH, a K 1 set associated with an active uplink bandwidth part, UL BWP; determining, for each K 1, k value in the K 1 set associated with the active UL BWP, based on at least one of a time domain resource assignment, TDRA, table corresponding to the first PDSCH and a TDRA table corresponding to the second PDSCH, a candidate PDSCH reception occasion in a slot corresponding to the K 1, k value, wherein k = 0,..., M-1, and M is a quantity of elements in the K 1 set associated with the active UL BWP; and determining the semi-static HARQ-ACK codebook based on the candidate PDSCH reception occasion; wherein the determining, based on at least one of a TDRA table corresponding to the first PDSCH and a TDRA table corresponding to the second PDSCH, a candidate PDSCH reception occasion in a slot corresponding to the K 1, k value comprises: in a case that the K 1, k value belongs to an intersection set of the K 1 set corresponding to the first PDSCH and the K 1 set corresponding to the second PDSCH, determining, based on a union set of a row index of the TDRA table corresponding to the first PDSCH and a row index of the TDRA table corresponding to the second PDSCH, the candidate PDSCH reception occasion in the slot corresponding to the K 1, k value; and in a case that the K 1, k value does not belong to the intersection set, determining, based on the row index of the TDRA table corresponding to the first PDSCH or the row index of the TDRA table corresponding to the second PDSCH, the candidate PDSCH reception occasion in the slot corresponding to the K 1, k value, wherein the first PDSCH is a unicast PDSCH, and the second PDSCH is a multicast PDSCH. in a case that the K 1, k value belongs to an intersection set of the K 1 set corresponding to the first PDSCH and the K 1 set corresponding to the second PDSCH, determining, based on a union set of a row index of the TDRA table corresponding to the first PDSCH and a row index of the TDRA table corresponding to the second PDSCH, the candidate PDSCH reception occasion in the slot corresponding to the K 1, k value; and in a case that the K 1, k value does not belong to the intersection set, determining, based on the row index of the TDRA table corresponding to the first PDSCH or the row index of the TDRA table corresponding to the second PDSCH, the candidate PDSCH reception occasion in the slot corresponding to the K 1, k value, wherein the first PDSCH is a unicast PDSCH, and the second PDSCH is a multicast PDSCH.