<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # 導出照片及其他附件信息 > author:machun > date:2022-04-03 需求:按照每個公司使用公司名稱作為目錄名導出照片及附件信息; ***** ## 數據庫查詢語句: > ``` > select > CONCAT('copy ','form\\',substring_index(substring_index(a.tce_contract,'\\',-3),'\\',1),'/',substring_index(substring_index(a.tce_contract,'\\',-1),'"',1),' cp\\',b.name,'\\',b.name,'-合同','-',a.tce_cert_no,'-',a.tce_username,'.',substring_index(substring_index(substring_index(a.tce_contract,'\\',-1),'"',1),'.',-1) ) as aa, > CONCAT('copy ','form\\',substring_index(substring_index(a.tce_photo,'\\',-3),'\\',1),'/',substring_index(substring_index(a.tce_photo,'\\',-1),'"',1),' cp\\',b.name,'\\',b.name,'-照片','-',a.tce_cert_no,'-',a.tce_username,'.',substring_index(substring_index(substring_index(a.tce_photo,'\\',-1),'"',1),'.',-1) ) as nn > from t_corp_employee a join sdata.sys_office b on a.tce_corp=b.id > ``` > aa字段為合同取值規則(其中cp為目錄名稱,和創建公司名稱一致即可) > bb字段獲取照片腳本(其中cp為目錄名稱,和創建公司名稱一致即可) > copy :復制指令 > form:為照片存放路徑的上一層文件夾名稱 ***** ## 為每個公司創建以公司名命名的目錄 > ``` > select concat('md cp\\',name) from sxxx.sys_office > ``` > 其中cp名稱可以更換為任意一個名稱。 ***** ## 批處理制作 > 現在計算機本地創建一個txt文本,將數據庫腳本跑出來的信息復制到文本中。期間注意需要將文本中的"/"改為"\"即可。最后將文件后綴改為.bat即可。 > 這樣腳本就做成功了。最后把腳本放到與form同層目錄中去。(注意:不要放到form目錄中去)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看