1 Introduction

Enterprise competitiveness reflects an enterprise's ability to outperform its competitors and focuses on economic value creation and relative performance (Wang et al., 2022b). However, competitiveness is not static and sustainable. It is influenced by the environment, and in order to maintain and expand their position and advantage in the market, firms need to constantly adapt to market changes to achieve sustainable competitive advantage (Huang et al., 2015). In recent years, more and more countries have undergone digital transformation to adapt to market changes and achieve competitiveness (Dabbous et al., 2023). In addition, emerging digital technologies, such as 3D printing, artificial intelligence (AI), virtual reality (VR), blockchain, cloud computing, and big data, have become disruptive drivers of digital transformation (Van Veldhoven & Vanthienen, 2022). Nowadays, digital technology application (DTA) is exponentially growing worldwide, and most countries have considered it as a strategic tool for industrial development and business success (Fu, 2022). As a result, many scholars are exploring the impact of DTA on enterprise competitiveness (EC). Most scholars believe that DTA allows firms to boost resource efficiency, utilize virtualization and visualization to exploit business opportunities, and ensure business continuity and success (Al-Swidi et al., 2023). Consequently, today DTA has altered firms’ business strategies, including production strategy, to boost production efficiency and increase EC (Dabbous et al., 2023).

Recently, a series of natural disasters, stock collapse, and enterprise disputes have happened worldwide, making the world pay attention to green development (Adomako & Mai Dong, 2022). Now that sustainability is increasingly seen as the driving force behind many economic policies. Consequently, the question of how to ensure the sustainable competitiveness of companies has become a hot topic of discussion today (Dabbous et al., 2023). From the above, we can see that digitalization and greening have gradually become two major trends in global economic and social transformation, which have received wide attention from various countries (Verhoef et al., 2021). In China, digitalization and greening have received great attention. Outline of the 14th Five-Year Plan (2021–2025) for National Economic and Social Development and Vision 2035 of the People's Republic of China has been promulgated, focusing on deploying digital development and green development. These plans clearly point out that digital development and green development are the new engines for China's economic growth to achieve high-quality development, and only the deep integration of digital development and green development promotes each other while enhancing enterprise competitiveness (China, 2021). The dynamic innovation of the digital economy will give great momentum to green development, which is considered the future direction of socio-economic development, and green development, in turn, provides new guidelines for fostering innovations in the digital economy (Yang & Han, 2023). Further, these two development strategies complement each other to provide ways for enterprises to build competitiveness in adversity (Li et al., 2022; Sun & Tang, 2022). In this context, the concept of twin transitions was born, which conveys the undisputed complementarity between digital and green transformation (Dabbous et al., 2023). However, most scholars currently study the impact of these transformations on enterprise competitiveness from digitization and greening separately. For instance, Awan et al. (2022), Chatterjee and Mariani (2022), and Dabbous et al. (2023) studied the impact of digital transformation on enterprise competitiveness. In contrast, Li et al. (2019), Tang et al. (2022) and Wang et al. (2022d) examined the effect of green transformation on enterprise competitiveness. Only a few scholars have integrated digitization and greening into one exploration to assess how such transformation influences enterprise competitiveness. In this context, the findings of this paper will address the void in the existing literature to help companies to achieve sustainability commitments while rationally allocating limited resources available to ensure economic efficiency and enterprise competitiveness (Del Río Castro et al., 2021).

Environmental, social, and governance (ESG) performance has been a top priority for any business firm in the context of green transformation. To realize an enterprise's sustainable development efforts, the enterprise must adopt a stakeholders-oriented approach, focusing on reducing externality and maximizing social value (Xie et al., 2019). Prior literature has found that in a firm, investors will usually be affected by its ESG score (Drempetic et al., 2020). Additionally, enterprises with good ESG performance (ESGP) will be in favor of investors (Park & Oh, 2022). Wu et al. (2022b) showed that technology is vital for reaping the maximum potential of ESGP of an enterprise. In line with that, Gao et al. (2021) found that ESG prompts an enterprise’s sustainable development efforts. Prior literature on ESG focuses on the following aspects: examining the effect of ESG performance on shareholder value, organizational performance, corporate philanthropy, transparency, and organization and system theory (Li et al., 2021). However, only a few scholars have examined ESG performance as a mediating variable in the link between the sustainability efforts of enterprises and their competitiveness.

In the context of sustainability, green technology innovation (GTI) has also become important for enterprises (Hong et al., 2021). An enterprise that carries out GTI will result in a "win–win" situation while protecting the environment and increasing the economic value it generates simultaneously (Fang & Shao, 2022). Zhao and Qian (2023) have evidenced that diffusion of technology adoption can significantly enhance an enterprise’s GTI potential. Guo et al. (2020) proposed that GTI prompts sustainable development efforts of enterprises. Further in line with them, Zhang et al. (2020b) have also found that attracting more investors will benefit an enterprise’s GTI and foster the development of GTI. However, until now, not many scholars have investigated how the ESGP of an organization affects its GTI potential.

It is undeniable that enterprise scale (ES) has a moderating effect on the relationship between DTA and EC. The development of small-scale enterprises will be subject to many restrictions. In contrast, large-scale enterprises have more resources and comprehensive management systems (Annarelli et al., 2021). Therefore, large-scale enterprises are more conducive to developing and adopting digital technology, thereby enhancing their competitiveness. However, with limited funds, this effect will take up the proportion of the funds the enterprise uses for GTI and add to the company's capital pressure (Fang & Shao, 2022). Thus, a large cash flow will help enterprises innovate smoothly.

Although the concepts discussed above (e.g., DTA, EC, ESGP, and GTI) are conceptually interlinked broadly, empirical findings are scattered, and linkages remain understudied in prior literature. Against this backdrop, grounded on the dynamic capabilities view and stakeholder theory, this paper proposes a theoretically driven model to investigate how DTA drives the EC through GTI and ESGP. The outcome of this study contributes to the existing literature in several important ways. First, this paper proposes a theory-driven model to investigate the specific impact paths of corporate DTA affecting EC from the perspective of digitization and greening. In this model, this paper introduces ESGP and GTI as mediating variables and ES and CH as moderating variables in order to complement existing research gaps. Second, this paper will provide a better understanding of some aspects of the twin transitions concept, which is still an emerging topic. Third, this paper compares and analyses the differences between the development of listed companies in the two major urban agglomerations in China, the Yangtze River Delta and the Pearl River Delta, to provide suggestions for developing the two urban agglomerations.

The remainder of the paper is structured as follows. The evolution of hypotheses and their theoretical foundation are reviewed in the next section. Then the chosen study approach, data analysis, findings, and discussion are presented. This article concludes by outlining the study's theoretical and practical contributions as well as its limits in terms of research.

2 Theoretical background and hypotheses development

2.1 Theoretical background

This paper has examined how the DTA of a business firm contributes to EC, explicitly focusing on the pathways through which ESGP and GTI can mediate them and the moderating effects of ES and cash holding (CH). For this purpose, the dynamic capability view (DCV) and stakeholder theory serve as the theoretical foundation of this paper.

According to the DCV, an enterprise’s competitive edge stems from its capability to quickly adapt to changing external environmental conditions by introducing rapid and flexible innovations while utilizing its managerial skills for efficient coordination and bundling of organizational capabilities (Teece et al., 1997). Thus, developing new technologies and the appropriate application of digital technology may assist businesses in increasing resource utilization and managerial effectiveness, which will enhance EC (Shan et al., 2019). In addition, the DCT also highlights the crucial role that capital plays in achieving an enterprise’s competitive advantage (Teece & Pisano, 1994). The enterprise's existing resources may serve as the basis for its creative actions, sustaining its competitive edge. However, compared with large-scale enterprises, financing small- and medium-sized enterprises is more complex (Lu et al., 2022). Therefore, large-scale enterprises can invest more funds in developing and adopting digital technology, thereby improving their competitiveness (Guan et al., 2023).

The stakeholder theory was developed in this context due to the rapidly changing enterprise environment (Freeman & Mcvea, 2005). Stakeholder theory emphasizes that to obtain resources from stakeholders and foster the growth of the enterprise, the interests of stakeholders should be taken into consideration by businesses (Freeman, 2016). Further, the stakeholder theory also shows that enterprise managers have to make efforts to keep cooperative relationships with stakeholders by balancing their interests (Bridoux & Stoelhorst, 2022). Enterprises can obtain competitive advantages by concentrating on ESGP and GTI since stakeholders have become more aware of concerns about the enterprise's environment, social responsibility, and governance in recent years (Esposito De Falco et al., 2021).

2.2 Hypotheses development

2.2.1 Digital technology application and enterprise competitiveness

The rapid pace of continuous technological progression and accelerated technological changes has become essential for countries worldwide (Stankovic et al., 2021). In addition, in the contemporary marketplace defined by rapid technological changes, developing and adopting digital technologies and strategic thinking will benefit business firms in becoming competitive (Xue et al., 2022). The production processes of businesses are evolving due to the advancement of modern electronics, information, and manufacturing technology, which turns traditional manufacturing into intelligent manufacturing and boosts the organization's flexibility and competitiveness (Dos Santos et al., 2021). Furthermore, DTA can promote the rise in the high-end value chain and stimulate the production efficiency of enterprises (Wu et al., 2021). As the DCV emphasized, primary sources of competitive advantages for a business firm in the shifting competitive landscape lie in its dynamic capabilities, which are also regarded as a component of competence or capacity and allow enterprises to develop new goods and procedures and adapt to shifting market conditions (Hartono et al., 2020). Thus, we hypothesize the following:

H1:

DTA has a positively impact on the EC.

2.2.2 Digital technology and enterprise’s ESG performance

ESG is a systematic framework that can assess an enterprise’s business practices and performance on various sustainability and ethical issues, including environment, social responsibility, and enterprise governance factors (Li et al., 2021). Due to the ubiquitous nature of the DTA and the rapid growth of the digital economy, enterprises' production efficiency has significantly increased, and their approach to business development has altered dramatically. As we can see, technology is already crucial in implementing ESG practices within enterprises (Ren et al., 2023). Firstly, it is possible and practical for the general public to become aware of the ESG practices of enterprises due to the accessibility, interaction, and real-time nature of the Internet. In addition, the Internet has facilitated business firms’ environmental management initiatives by increasing the intelligence and accuracy of environmental supervision, government, and services (Wu et al., 2022a, 2022b). Secondly, the development of digital technology has enabled enterprises to fulfill their social responsibilities better. For example, enterprises may produce environmentally friendly products and safeguard endangered species by utilizing emerging technologies like AI and machine learning (Lobschat et al., 2021). Thirdly, using DTA in the workplace can improve the availability, accessibility, and openness of real-time information (Ren et al., 2023), reducing the irrationality of managers' decision-making (Riaz et al., 2022). Thus, we hypothesize the following:

H2:

DTA has a positive impact on ESGP of enterprises.

2.2.3 Digital technology application and green technology innovation

Big data, AI, and other digital technologies have increasingly become the primary forces behind innovation and change. One of the key differences between GTI and conventional innovation is the twin externality of knowledge overflow and environmental conservation (Shao & Chen, 2022). Digital technology is used by businesses to manage massive amounts of data better, increase information availability, support decision-making, guarantee that production and manufacturing processes adhere to environmental requirements, and lessen negative environmental consequences through process innovations (Li & Shen, 2021; Shao & Chen, 2022). Moreover, enterprises employ cutting-edge digital technologies to locate and acquire additional network resources, understand consumers’ needs, wants, and industry trends, and quickly develop green innovations while enhancing resource networks (Xue et al., 2022). Thus, we hypothesize the following:

H3:

DTA has a positive impact on GTI.

2.2.4 Enterprise’s ESG performance and enterprise competitiveness

ESG has always driven an enterprise’s business strategy and performance (Arvidsson & Dumay, 2022). Environment, society, and governance are the three key components of an organization's ESGP. As emphasized in the stakeholder theory, enterprises with strong ESGP will assist enterprises in building investor confidence and attracting additional resources. Therefore, enterprises with good ESGP maximize benefits to their stakeholders and consider optimizing resource allocation to promote sustainable development efforts (Gao et al., 2021). The environmental performance of an enterprise reflects the effective use of the best environmental protection management methods to continuously improve its efficiency and effectiveness concerning pollution prevention and resource utilization, which helps the enterprise to achieve a competitive advantage (Ren et al., 2023). The social performance of an enterprise not only emphasizes that the enterprise strengthens the relationships between the stakeholders by creating diversified and comprehensive values for all its stakeholders in its full potential (Li et al., 2021). The governance performance of an enterprise includes two aspects: internal governance and external governance. Through a successful institutional framework, it coordinates the interaction between the company and the stakeholders, and in the end, it defends the interests of the enterprise and all its stakeholders (Li et al., 2021; Ren et al., 2023). Therefore, we hypothesize the following:

H4:

Enterprise’s ESGP has a positive impact on EC.

2.2.5 Green technology innovation and enterprise competitiveness

The global industrial revolution and rapid technological progression have made GTI a central tenant in the enterprises operating in the modern marketplace (Yu et al., 2021). China recently stressed the value of green innovation and developed several constitutional laws to raise the bar for GTI (Hong et al., 2021). GTI is a broad phrase encompassing all relevant innovations focusing on reducing resource consumption, environmental devastation, and human harm. Examples of GTI include technological research and development, technology-enabled production, social consumption research, and trash recycling (Yin et al., 2020). Unlike non-GTI, GTI may enhance the intermediate manufacturing process while lowering pollutants, thus reducing a company’s overall operating costs and increasing EC (Cai et al., 2020). In addition, by using GTI, enterprises may increase resource efficiency and foster long-term growth (Hong et al., 2021). Thus, we hypothesize the following:

H5:

GTI has a positive impact on EC.

2.2.6 Enterprise’s ESG performance and green technology innovation

In their ESG research, most scholars have primarily concentrated on the market for enterprise operations, enterprise structure, leadership and ownership, and enterprise risk and performance (Gillan et al., 2021). The stakeholder theory emphasizes the importance of stakeholders in creating company value, and it predicts that managing stakeholder relationships will be the key to business success. Promoting ESG development reduces the pressure on stakeholders and maintains long-term relationships with them (Zhang et al., 2020a). The good environmental performance of an enterprise indicates that the enterprise uses environmentally friendly materials for production and manufacturing (Ge et al., 2022). Consequently, businesses will be required to enhance their research and development expenditure and boost resource utilization throughout corporate manufacturing (Xu et al., 2021).

Enterprises will project a positive picture of green responsibility practice to the outside world if they actively engage in environmental protection and disseminate information related to their environmental-friendly operations. As a result, businesses could attract investors and receive significant financial aid from the government (Xiao et al., 2022), to support the research and development of enterprises to stimulate their innovation potential. To foster high-quality research and development capabilities and enter and strengthen its own GTI, an enterprise must integrate emerging technologies into its key business processes and practices (Huang et al., 2023). A sound enterprise management mechanism will help reduce coordination costs and lessen the risks of major enterprise innovation decisions (Ge et al., 2022). Therefore, enterprises are incentivized to live up to stakeholder expectations by upholding their social commitments, enhancing environmental protection, and standardizing enterprise governance. They are also incentivized to assist other businesses in obtaining the funding they require for technological innovation to increase their competitiveness. Based on this, we hypothesize the following:

H6:

Enterprise’s ESGP has a positive impact on GTI.

2.2.7 Enterprise’s ESG performance as a mediator

The higher an organization's ESG rating, the lower its investment portfolio risk is. Due to the investment it will get from stakeholders, businesses will be able to improve their resources, advance their technology, and gain a competitive advantage (Lee et al., 2021). Enterprise environmental governance, social responsibility fulfillment, and enterprise governance may all be affected by the growth and deployment of digital technology by businesses, boosting stakeholder ties, attracting investment, and enhancing the EC.

As per the prior literature on the ESG performance of enterprises, only a few scholars discuss ESGP as a mediating variable. For instance, Xu et al. (2021) recently found that green innovation is improved with a stronger ESGP. The new generation of information technology can break innovation boundaries, reduce transaction costs, improve collaborative innovation, and thus promote enterprise GTI (Zhao & Qian, 2023). Therefore, enterprises are motivated to boost their investment in research and development funds, extend DTA to promote their own ESGP, decrease the distance with stakeholders to get more resources, and promote the GTI of their enterprises. Therefore, we hypothesize the following:

H7:

An enterprise’s ESGP has a mediating effect on the relationship between DTA and EC.

H8:

An enterprise’s ESGP plays a mediating effect on the relationship between DTA and GTI.

2.2.8 Green technology innovation as a mediator

AI, cloud computing, and big data analytics are examples of digital technologies impacting an enterprise’s innovative business practices regarding waste reduction, green manufacturing, and efficient manufacturing. These technologies also increase the enterprise's utilization rate and support sustainable growth (Xue et al., 2022). Enterprise GTI will be supported by digital development to help boost enterprise performance and green transformation (Zhao & Qian, 2023), thereby enhancing the competitiveness of sustainable development initiatives of enterprises (Ashtianipour & Zandhessami, 2015). Therefore, DTA can promote GTI, thereby improving EC.

Enterprises with good ESGP will foster closer relationships with stakeholders, thus gaining more capital and resources, which allows them to expand their GTI by removing financial restrictions. At the same time, the greater the capabilities of an enterprise in fostering GTI, the enterprise will have good innovation output and transformation ability. Such capabilities make enterprise development meet the demand of environmental regulation, reduce the impact of environmental risk, and provide green products to make the enterprise always occupy a dominant position in the fiercely competitive marketplace. By formulating reasonable technological innovation strategies, enterprises use green innovation to achieve green sustainable development (Su & Li, 2021), thus strengthening the relationships with their stakeholders to obtain more resources and improve their EC. Therefore, we hypothesize the following:

H9:

GTI mediates the impact of DTA on EC.

H10:

GTI mediates the impact of an enterprise’s ESGP on EC.

2.2.9 Enterprise scale and cash holding as a moderator

ES initially manifests itself in the enterprise's workforce. Different sizes of enterprises have different benefits in the DTA development process, as varying firm sizes will result in varying resources and capabilities (Del Giudice et al., 2021). Generally speaking, the larger the ES, the easier it will be to recruit and keep top-tier scientific and technological talent, the easier it will be for the enterprise to innovate with its human capital reserves, and the more positive adjustment effect the EC will have. This suggests that large-scale enterprises can become competitive compared to their small-scale counterparts in the face of a generally stable marketplace (Annarelli et al., 2021). In addition, large-scale enterprises take advantage of having a quality human capital and knowledge base and a more mature internal management and learning management system (Yusof et al., 2020), which can be used to develop and adopt digital technology to solve difficulties more flexibly in par with the rapid technological changes (Wang et al., 2022a). At the same time, it will increase the workforce efficiency of traditional manufacturing firms, thus strengthening the competitive market positioning.

Because cash is the most liquid asset in an enterprise's resource portfolio, the enterprise's cash policy is crucial to the enterprise's financial strategy (Zhang et al., 2022). In the meantime, an enterprise's cash flow is of great strategic significance for the enterprise's daily operations and sustainable development initiatives, which can respond to the uncertainty and economic crisis of the modern marketplace (Liao et al.). Innovation activities rely on the cash holding (CH) of corporations due to the high cost of GTI (Alam et al., 2022). Therefore, when enterprises have large CH, they can devote more to GTI activities and then will transform into EC. Thus, we hypothesize the following:

H11:

ES plays a positive moderating effect on the relationship between DTA and EC.

H12:

CH plays a positive moderating effect on the relationship between GTI and EC.

In summary, the hypothesized research model of this paper is shown in Fig. 1.

Fig. 1
figure 1

Hypothesis research model

3 Methodology

3.1 Sampling and data collection

According to the China Securities Regulatory Commission (CSRC), industry classification standards not only consider ESG scores in the Wind database since 2018 but also consider the Yangtze River Delta (YRD) and the Pearl River Delta (PRD) as two economic growth poles in China, playing an important role in China's economic development (Wang et al., 2022c). Therefore, this paper selects China’s A-share listed companies in YRD and PRD from 2018–2020 as the sample. The sample used for this paper is selected as follows to guarantee the reliability and integrity of the data evaluated: (1) Exclude the companies with an abnormal business status (ST and *ST) during 2018–2020. (2) Exclude the seriously lacking ESGP during the observation period. (3) All continuous variables are winsorized at the upper and lower 1% significance levels. In the end, 3,267 effective observations were obtained from 1089 listed companies. Raw data were processed by manual curation, and the empirical analysis was conducted using Stata17 software.

With the help of Python text mining, the count frequency of keywords related to DTA is obtained from the annual reports of the selected companies. Green patent data refer to the green list of international patent classifications published by the World Intellectual Property Organization (WIPO), which is selected in the patented database of the China National Intellectual Property Administration. Other data were extracted from the Wind and China Stock Market & Accounting Research (CSMAR) databases and hand-organized.

3.2 Measurement development

3.2.1 Enterprise competitiveness

In this paper, EC is the explained variable and measured, referring to Su and Li (2021). Accordingly, this article employs the asset contribution rate of enterprises to quantify EC since it can accurately depict the business performance and competitiveness level of businesses. The specific calculation formula is as follows:

$$\text{EC} = (\text{total} \, \text{profit} + \text{total}\, \text{tax}\, + \text{interest}\, \text{expense})/\text{average}\, \text{total} \, \text{assets}$$
(1)

3.2.2 Digital technology application

In this paper, the explanatory variable is DTA. The annual reports of the selected listed companies objectively reflect the business development and their status of reforming the enterprise (Pivac et al., 2017). Referring to Li and Shen (2021), this paper selects the number of keywords related to digital technology in the annual report published by an enterprise to measure DTA. These are the precise operations: First, manually organized the annual reports and various regular and temporary announcements of Chinese A-share listed companies. It then used Python text analysis technology to search keywords related to big data technology, artificial intelligence technology, DTA, and cloud computing technology and, finally, organized the frequency of keywords. A detailed description of related variables is given in Table 1.

Table 1 Variable and measures

3.3 Data analysis

The following measuring model is created to investigate how DTA affects EC:

$$\text{Com}_{\text{it}} = \beta_{0} + \beta_{{1}} \text{Digit}_{\text{it}} + \beta_{{2}} \sum {\text{Control}_{\text{it}} } + \gamma_{\text{t}} + \text{Ind}_{\text{it}} + \eta_{\text{i}} + \varepsilon_{\text{it}}$$
(2)

The following measuring model is created to investigate how DTA affects an enterprise's ESGP:

$$\text{ESG}_{\text{it}} = \alpha_{0} + \alpha_{1} \text{Digit}_{\text{it}} + \alpha_{{3}} \sum {\text{Contral}_{\text{it}} } + \gamma_{\text{t}} + \text{Ind}_{\text{it}} + \eta_{\text{i}} + \varepsilon_{\text{it}}$$
(3)

The following measuring model is created to investigate how DTA affects GTI:

$$\text{Green}_{\text{it}} = d_{0} + d_{1} \text{Digit}_{\text{it}} + d_{{2}} \sum {\text{Control}_{\text{it}} } + \gamma_{\text{t}} + \text{Ind}_{\text{it}} + \eta_{\text{i}} + \varepsilon_{\text{it}}$$
(4)

The following measuring model is created to investigate how an enterprise’s ESGP affects its EC:

$$\text{Com}_{\text{it}} = g_{0} + g_{1} \text{ESG}_{\text{it}} + g_{4} \sum {\text{Control}_{\text{it}} } + \gamma_{\text{t}} + \text{Ind}_\text{{i}t} + \eta_{\text{i}} + \varepsilon_\text{{it}}$$
(5)

The following measuring model is created to investigate how GTI affects EC:

$$\text{Com}_{\text{it}} = j_{0} + j_{1} \text{Green}_{\text{it}} + j_{2} \sum {\text{Control}_{\text{it}} } + \gamma_{\text{t}} + \text{Ind}_{\text{it}} + \eta_{i} + \varepsilon_{\text{it}}$$
(6)

The following measuring model is created to investigate how an enterprise’s ESGP affects GTI:

$$\text{Green}_{\text{it}} = h_{0} + h_{1} \text{ESG}_{\text{it}} + h_{4} \sum {\text{Control}_{\text{it}} } + \gamma_{\text{t}} + \text{Ind}_{\text{it}} + \eta_{\text{i}} + \varepsilon_{\text{it}}$$
(7)

In the formulas above, \(i\) is the enterprise; \(t\) is the year; \(\text{Com}_{\text{it}}\) is the dependent variable which is the EC of the year; \(\beta_{{0}}\) is the intercept item; \(\text{Digit}_{\text{it}}\) is the primary item of DTA; \(\text{Control}_{\text{it}}\) is the additional factors within the control that might have an impact on EC; \(\gamma_{{\text{t}}}\) is the time fixed effect to control other unobservable factors that change over time; \(Ind_{it}\) is the industry fixed effect; \(\eta_{{\text{i}}}\) is the regional fixed effect; and \(\varepsilon {}_{{{\text{it}}}}\) is the random error item.

4 Results analysis

4.1 Descriptive statistics

Table 2 displays the descriptive statistics regarding the key constructs used in this paper. The largest standard deviation is from GTI and EC. It shows that the GTI level and competitiveness differ significantly among the enterprises. Although the enterprise size and CH fluctuate little overall, they have specific differences.

Table 2 Descriptive statistics of the variables

4.2 Baseline regression results

For the regression analysis, combining with the results of F test (F (1088, 2169) = 9.44, p < 0.001), LM test (chibar2 = 1676.19, p < 0.001), and Hausman test (chi2 = 120.64, p < 0. 001), the original hypothesis was rejected, the fixed effects model was chosen. Table 3 displays the regression's findings. The regression's findings indicate that: (1) DTA significantly and positively affects EC, so H1 is assumed to be established. (2) DTA positively affects the enterprise’s ESGP and GTI at the significance level of 5% and 1%, respectively, so we assume that H2 and H3 are established. (3) Enterprise’s ESGP has a significant negative impact on EC, so it is assumed that H4 is untrue. (4) GTI does not significantly impact EC, so it is assumed that H5 is untrue. (5) Enterprise’s ESGP has a significant positive impact on GTI, so H6 is assumed to be established.

Table 3 Baseline regression result

4.3 Robustness tests

In order to test the robustness of the above findings, the following method is used in this paper. If the results of the robustness test are consistent with the conclusions that have been drawn, the above conclusions are considered reliable.

First, the endogeneity test (2SLS) was performed. Although the fixed effects of time, industry, and province are controlled in the benchmark regression model, there may also be potential endogenous problems such as reverse causality. Therefore, the instrumental variable method is selected for testing. The lag phase of the DTA is chosen as the instrumental variable in this research, following the convention of most scholars (Hill et al., 2021). The test results are shown in column (1) of Table 4. The results showed that the LM statistic values passed the significance test and the Cragg–Donald Wald F statistic was greater than 10, indicating that there were no inadequately identified or weakly identified instrumental variables after the application of instrumental factors. Additionally, the link between DTA and EC is still in good agreement with the current research findings. This further confirmed the fact that this study's result is reliable.

Table 4 The results of robustness test of DTA and EC

Secondly, the independent variable is replaced (Is_Digit) based on whether the DTA keywords appear in the enterprise annual report (Caliskan et al., 2021). If it appears, it is 1; if there is no appearance, it is 0. As can be seen in column (2) of Table 4, the regression results are consistent with the initial results, so the conclusion is robust.

Finally, to further assess the reliability of the findings, the measurement methodology is changed. Referring to Luo et al. (2023), this paper considers replacing the original model with the OLS model with fixed effects. The test results in column (2) of Table 4 indicate that the conclusion is robust.

The robustness test for the remaining direct effects is performed as follows. First, the explanatory variable in Eq. (2) lagged for one period and performed the above regression while considering the explanatory variable's lag impact on the explained variable. The results are shown in column (1) of Table 5, and the regression results are the same as those indicated above. Thus, the reliability of the results is further confirmed.

Table 5 Results of the remaining relationships’ robustness test

Secondly, when the initial model was replaced, formula (4) used the OLS model for regression, and the regression results are listed in column (3) of Table 5. As the results show, an enterprise’s ESGP still significantly and negatively affects its EC.

Finally, by changing the variables referring to Yi et al. (2023), GTI in Eqs. (3),  (5), and  (6) were replaced with the number of green invention patents (Green_I). The regression results are shown in columns (2), (4), and (5) in Table 5. The findings indicate that the initial conclusions are aligned with regression findings, demonstrating the conclusion's relative robustness.

4.4 Regression results for assessing the mediating effects

The positive relationship between DTA and EC has been tested above, but the transmission mechanism between the two has not been further discussed. Therefore, the following measurement model is created using the previously developed model as the foundation.

$$\text{Com}_{\text{it}} = b_{0} + b_{1} \text{Digit}_{\text{it}} + b_{{2}} \text{ESG}_{\text{it}} + b_{{3}} \sum {{\text{Control}}_{\text{it}} } + \gamma_{t} + \text{Ind}_{\text{it}} + \eta_{\text{i}} + \varepsilon_{\text{it}}$$
(8)
$$\text{Green}_{\text{it}} = e_{0} + e_{1} {\text{Digit}}_{\text{it}} + e_{{2}} \text{ESG}_{\text{it}} + e_{{3}} \sum {\text{Control}_{\text{it}} } + \gamma_{\text{t}} + \text{Ind}_{\text{it}} + \eta_{\text{i}} + \varepsilon_{\text{it}}$$
(9)
$$\text{Com}_{\text{it}} = f_{0} + f_{1} \text{Digit}_{\text{it}} + f_{2} \text{Green}_{\text{it}} + f_{{3}} \sum {\text{Control}_{\text{it}} } + \gamma_{\text{t}} + \text{Ind}_{\text{it}} + \eta_{\text{i}} + \varepsilon_{\text{it}}$$
(10)
$${\text{Com}}_{\text{it}} = i_{0} + i_{1} \text{ESG}_{\text{it}} + i_{2} \text{Green}_{\text{it}} + i_{3} \sum {\text{Control}_{\text{it}} } + \gamma_{\text{t}} + \text{Ind}_{\text{it}} + \eta_{\text{i}} + \varepsilon_{\text{it}}$$
(11)

Based on Eqs. (7), (8), (9), and (10), benchmark regression was performed to assess the mediating effects, and the results are shown in Table 6. Regression results show that: (1) the direct and indirect effects between DTA and EC differ, indicating a suppressing effect of 0.04. This means that the more the ESGP more investment can be made; thus, H7 is not established. (2) The link between DTA and GTI is partially mediated by ESGP, which has a considerable mediating effect of 0.12. Thus, H8 is established. (3) The indirect impact is insignificant. Thus, to assess the role of GTI as the mediating variable in the relationship between DTA and EC necessitates the Bootstrap test.

Table 6 The benchmark regression results for assessing the mediating effects

4.5 Test for assessing mediating effect

To evaluate the aforementioned mediating effects, this article uses the Bootstrap statistical method, where the sampling 1,000 times is tested, and the confidence range of the deviation correction is used. The test results in Table 7 show that the path with ESGP as the mediator variable contains no 0 in the confidence interval, once again proving that hypothesis H8 holds true. The confidence interval of the mediating test of GTI between DTA and EC does not include 0, but because the direct effect and indirect effect have different symbols, there is a suppressing effect which is 0.02; The confidence interval of GTI between an enterprise’s ESGP and EC includes 0, indicating that GTI does not play a mediating role between enterprise’s ESGP and EC, so hypotheses 9 and 10 are untrue.

Table 7 Results of the bootstrap test

4.6 Regression results for assessing the moderating effect

The following measurement model is designed to assess the moderating effect of ES and CH.

$$\text{Com}_{\text{it}} = \phi_{1} + \phi_{2} \text{Digit}_{\text{it}} + \phi_{{3}} \text{Scale} + \phi_{4} X\_Z_{1} + \phi_{{5}} \sum {{\text{Control}}_{\text{it}} } + \gamma_{\text{t}} + \text{Ind}_{\text{it}} + \eta_{\text{i}} + \varepsilon_{\text{it}}$$
(12)
$$\text{Com}_{\text{it}} = \omega_{1} + \omega_{2} \text{Green}_{\text{it}} + \omega_{3} \text{Cash} + \omega_{4} X\_Z_{2} + \omega_{5} \sum {{\text{Control}}_{\text{it}} } + \gamma_{\text{t}} + \text{Ind}_{\text{it}} + \eta_{\text{i}} + \varepsilon_{\text{it}}$$
(13)

Among them, \(X\_Z_{1}\) represents the intersection of DTA and ES, and \(X\_Z_{2}\) represents the intersection of GTI and CH. This paper first decentralized DTA, GTI, and the two moderating factors to prevent the potential multicollinearity issues. To avoid the problem of covariance between the interaction term and the original variables, the continuous variables are centralized in this paper.

As demonstrated by the test outcomes indicated in Table 8, the multiplication term,\(X\_Z_{1}\), coefficient is significant, and it is the opposite of the symbol of DTA, which shows ES negatively moderates the relationship between DTA and EC. Therefore, H11 is rejected. The multiplication,\(X\_Z_{2}\), coefficient is not significant, indicating that CH does not moderate the interaction between GTI and EC. Thus, H12 is also rejected.

Table 8 Results of the moderating effect tests

4.7 Heterogeneity analysis

The above research mainly focuses on assessing the overall impact of DTA on EC. However, the DTA deployment and adoption levels of listed companies selected from YRD and PRD differ. Therefore, this paper repeated the above regression model to YRD and the PRD, respectively. The results in Table 9 indicate differences between YRD and PRD in some aspects.

Table 9 The regression results for the heterogeneity analysis

As seen in the regression results, firstly, YRD and PRD differ in some aspects, but not significantly. Secondly, although the ESGP of an enterprise has a negative impact on its EC for the companies selected from YRD, the impact is less than the same for the companies selected from the PRD. Thirdly, the DTA of enterprises in YRD and PRD significantly impacted the enterprise’s ESGP. However, the coefficient for the companies selected from PRD is greater than those selected from YRD. In the end, the ESGP of the listed companies in PRD significantly affected GTI, while it was not the same for the companies selected from YRD.

5 Discussion and conclusion

5.1 Result discussion

This study uses the DCV and stakeholder theory as the theoretical foundation to examine the linkages between DTA and EC. To examine the mechanism through which the DTA of an enterprise influence its EC, we introduce the ESGP, GTI, ES, and CH.

  1. 1.

    DTA significantly influences EC, which shows that enterprises actively apply advanced digital technologies to enhance their competitiveness in the contemporary marketplace. The result is aligned with the findings of Hartono et al. (2020) and Ahmed et al. (2022), who also point out that advances in digital technology will help accelerate the digitalization process of companies and achieve increased competitiveness.

  2. 2.

    DTA significantly affects an enterprise’s ESGP, indicating that developing and adopting sophisticated DTA will enhance its ESGP. The result is consistent with the findings of Wang et al. (2023) and Ren et al. (2023). The findings demonstrate that enterprises prioritize lowering environmental pollution while concentrating on technical advancements and encouraging the establishment of enterprises with high quality. However, neither effect is significant in YRD and PRD. This is because of the benefit of economies of scale, which shows that the two regions together will play a greater role.

  3. 3.

    DTA significantly affects GTI. The result is the same as Li and Wang (2022). Because digital technology reduces the uncertainty inherently associated with the innovation process, it leads to higher economic performance (Lehrer et al., 2018). This study also finds that the said positive impact on the listed companies in PRD is higher than that of the listed companies in YRD, indicating that the DTA of listed companies in PRD has a more significant influence in fostering GTI.

  4. 4.

    An enterprise’s ESGP has a significant negative impact on EC. However, the result is different from the study of Rabaya and Saleh (2022), who use international firms as an example to explore, while this paper is based on Chinese firms, and the difference in the selected objects will lead to differences in the conclusions.

  5. 5.

    This study further proves that GTI has no significant impact on EC. There is no unanimous conclusion on the impact of GTI on EC, with some scholars arguing that GTI has a positive impact on EC, profitability, and enterprise performance (Li et al., 2019) and others arguing the opposite insight (Climent & Soriano, 2011). The findings of this paper complement existing research by suggesting that when enterprises emphasize GTI, they tend to make more investments, thereby reducing their EC. The findings also discovered that the said negative impact on the listed companies in YRD is lower than those listed in the PRD. This shows that the listed companies in YRD pay more attention to their ESG development initiatives, reducing their competitiveness.

  6. 6.

    An enterprise’s ESGP has a significant positive impact on GTI. This finding is similar to the study of Xu et al. (2021) and In et al. (2019). Enterprises with strong ESGP can boost enterprise value (Thompson & Garbacz, 2011). Therefore, stakeholders will be more inclined to invest in such enterprises to boost the growth of GTI and acquire additional resources (Li et al., 2023; Xi & Xu, 2014). This study further discovered that the listed companies in PRD follow the said significant positive impact, while those listed in YRD do not. It shows that an enterprise’s ESGP is relatively well implemented in the listed companies in the PRD, and the listed companies in PRD can make good use of their own ESGP to foster GTI.

  7. 7.

    This study reveals the mediating effects of an enterprise’s ESGP and GTI on the relationship between DTA and EC. These are novel findings. The mediating effect of an enterprise’s ESGP is reflected through the suppressing effect on the relationship between DTA and EC. This is because ESGP will not directly impact EC; thus, the mediating effect is not statistically significant. At the same time, ESGP plays a significant mediating effect in the relationship between DTA and GTI, which shows that DTA can improve the enterprise GTI, enhancing its ESGP. Moreover, GTI has a suppressing effect on the relationship between DTA and EC. It may be because the impact of GTI on EC has a lagging effect, so it will not significantly impact EC in the current circumstances. Meanwhile, the findings indicate that GTI does not mediate an enterprise’s ESGP and EC relationship.

  8. 8.

    This study also reveals the moderating effect of ES and CH on the relationship between DTA and EC. As the findings indicate, ES negatively moderates the impact of the DTA on EC. This is because the larger the enterprise, the weaker the flexibility and responsiveness (Ardito et al., 2021). As a result, due to the early stage's overwhelming input, the EC may not be effectively converted into DTA with time but instead may be reduced. Moreover, it was found that CH does not moderate the relationship between GTI and EC. The explanation might be that although enterprises recently started making significant investments in GTI operations, the results of innovation activities are highly unpredictable. Consequently, enterprise financial asset speculation is more likely to be difficult (Palmer et al., 1995). However, Deloof (2001) study found that in an enterprise, if the chief executive officer (CEO)’s incentives are not aligned with stakeholder incentives, high cash reserves can create agency conflicts between CEOS and stakeholders. Therefore, in that case, the enterprise cannot gain the support of stakeholders. Therefore, based on the above argument, it can be justified why CH does not moderate the relationship between GTI and EC.

5.2 Conclusion

In order to analyze how the DTA of an enterprise influences its EC and how that interrelationship has changed over time, this research uses data from A-share listed companies in YRD and PRD from 2018 to 2020. To make that investigation robust, this article also investigates the moderating effects of ES and CH and the mediating effects of DTA and GTI on the relationship between DTA and EC.

5.2.1 Theoretical contributions

Based on DCV and stakeholder theory, this paper investigates the relationship between DTA and EC in firms by empirically examining the intervening variables that may affect this relationship. The theoretical contributions of this paper are as follows:

First, previous studies have mainly examined the relationship between DTA and EC in different research contexts. However, few studies have comprehensively examined the relationship between DTA and EC in firms by considering possible intervening variables in the dual contexts of green transformation and digital transformation. Therefore, this study complements the existing research on DTA and EC and provides a better understanding in response to the twin transitions. This study shows that a firm's DTA can enhance a firm's EC and improve its ESGP through profit maximization, rational allocation of resources, and management of multi-stakeholder interests (Gao et al., 2021).

Second, this study has expanded the scope of existing literature on investigating the relationship between DTA and EC by considering ES and CH as potential moderating variables that can influence the said relationship. Most prior studies have used ES and CH as control variables, and only a few have used them as moderating variables. This paper has found that ES has a negative moderating effect when the lower development of DTA within an enterprise. However, contrary to the expectation, CH does not moderate the relationship between GTI and EC, supporting the existing literature (Deloof, 2001).

Third and most importantly, although there are many studies on ESGP and GTI, most used ESGP and GTI as independent or dependent variables. Only a few scholars used ESGP and GTI as mediating variables in their studies. This study has contributed to addressing this void by examining the relationship between an enterprise’s DTA and EC by considering ESGP and GTI as potential mediators. In par with the expectation, the empirical findings reveal that ESGP and GTI mediated the relationship between an enterprise’s GTA and ECD. Moreover, an enterprise’s ESGP can significantly positively foster GTI. Furthermore, an enterprise can stimulate the capability of GTI by enhancing ESGP, which shows that DTA can not only directly influence GTI but also indirectly impact GTI by improving ESGP.

5.2.2 Practical contributions

The findings of this paper offer several significant implications for managers and industry practitioners.

First, this study explains the impact of a firm's DTA on its EC by considering potential intervening variables such as ESGP, GTI, ES, and CH. Therefore, in the context of sustainable development, enterprise managers should recognize the important role of digital development and green development and should actively carry out activities such as digital technology training and training on applying advanced digital technologies to enhance EC. On the one hand, it breaks the original production and operation mode of the traditional manufacturing industry. It improves the willingness and confidence of enterprises to implement digital transformation to achieve green manufacturing. On the other hand, the collaborative, predictive, and intelligent analysis of digital technology will fully penetrate the whole process of green design, green production, processing, and market value transformation of enterprises, accelerating the promotion of green innovation technology. It further improves the collaborative innovation ability of enterprises by allowing deep integration of digital development and green development, thus allowing organizations to achieve the goals of energy saving, carbon emission reduction, and competitiveness enhancement.

Second, managers should pay attention to the construction of talents by stimulating the green innovation ability of enterprises, accelerating the synergistic development of talent construction and digital technology, and thus fundamentally promoting GTI. In addition, enterprise managers should also see the negative regulating effect of ES and pay attention to controlling the number of employees in enterprises to meet the demand for talent. Large enterprises should focus on appropriately streamlining their employees to make their enterprises more agile. In contrast, small enterprises should focus on the application of digital technology so that it can play the best role. What’s more, the government can appropriately encourage small-scale enterprises to enhance the practical effects of their digital technology applications.

Third, when enterprises conduct ESG activities and invest in green innovation activities, they should consider the current cost issues and sustainable returns from them. In addition, enterprise managers should enhance their awareness of ESG concepts and recognize that by improving ESGP, enterprises can strengthen their GTI capabilities. Enterprise managers should designate a complete ESG disclosure system and actively participate in ESG activities to enhance the reputation of the enterprise to transmit information about enterprise's environment, social responsibility, and enterprise governance to the capital market, which can reduce friction in capital allocation, solve financing problems, and fundamentally promote green innovation in enterprises.

Finally, based on regional differences, local enterprises should establish regulations considering their unique traits and local circumstances to capitalize on their unique capabilities fully. Listed companies in YRD and PRD should pay attention to their ESG activities concerning social responsibilities, environmental and internal enterprise governance and link ESGP with green innovations. When an enterprise does it in the long-term, its EC will be improved. Listed companies in YRD and PRD should focus on their own ESG activities concerning social responsibilities and environmental and internal enterprise governance and link ESGP with green innovations. When an enterprise does it in long-term, its EC will be improved.

5.2.3 Limitations and future research directions

As with any empirical research study, this paper has shortcomings that open up possibilities for future studies.

The first limitation is caused by the data used in this study. Due to the issues in accessing reliable and updated data, this study adopts data from listed companies in the China YRD and PRD from 2018–2020. Therefore, the findings may not be generalizable to all enterprises in China. Hence, more studies are required to investigate how the DTA of an enterprise influence its EC by considering a broader sample, particularly from different regions within the country.

The second limitation is associated with the indicators used to measure the key constructs of the study. The number of keywords that appeared in the enterprise annual report is used in this study to gauge an enterprise’s DTA. However, other areas of a company's operations also may reflect its DTA development and adoption. Future researchers can think about using more robust measurement scales to measure an enterprise's DTA. Third, the cross-sectional survey design used in this study restrained the inferences drawn about causality and interconnections among the concepts of interest. Thus, future research could collect data about an enterprise’s DTA at time 1, ESGP and GTI at time 2, and finally, EC at time 3. Such a cross-lagged panel analysis would allow a more precise understanding of relationships between constructs.

Finally, this study has considered only ESGP and GTI as mediators in the relationship between DTA and EC. Further, ES and CH have only been considered moderators. However, some potential mediators and moderators can intervene in this relationship that this paper has not studied. Consequently, future researchers can consider expanding this model by incorporating possible intervening variables into this model.