wuggemail@foxmail.com преди 3 месеца
родител
ревизия
469ed0c4e5
променени са 4 файла, в които са добавени 3 реда и са изтрити 12 реда
  1. 1 1
      app/cxinv/command/CreateFz.php
  2. 0 9
      app/cxinv/command/MakeSeal.php
  3. 1 1
      app/cxinv/controller/FinancialSeal.php
  4. 1 1
      app/wechat/controller/Base.php

+ 1 - 1
app/cxinv/command/CreateFz.php

@@ -35,7 +35,7 @@ class CreateFz extends Command
         $info = $this->getManager();
         while ($info->valid()){
             $output->writeln($info->current()->id.'正在执行中');
-            $output->writeln($info->current()->id);
+            #$output->writeln($info->current()->id);
             $item=$info->current();
             $this->active($item);
             $info->next();

+ 0 - 9
app/cxinv/command/MakeSeal.php

@@ -97,15 +97,6 @@ class MakeSeal extends Command
                   'fz_id'=>$row['id'],
               ];
           }
-          if($item['type']==2){
-              $manager= FinancialManager::where([['id','=',$item['order_item_id']]])->findOrEmpty();
-              $date = date('Y-m-d H:i:s');
-
-              if($manager->isEmpty()|| $manager['status']==1){
-                  echo "[{$date}]:【{$item['order_item_id']}】 采购单不存在或未处理".PHP_EOL;
-                  continue;
-              }
-          }
           if($item['type']==3|| $item['type']==1|| $item['type']==5){
               $list[$item['product_id']]['balance_num']=bcadd($list[$item['product_id']]['balance_num'],$item['num'],8);
               $list[$item['product_id']]['in_num']=bcadd($list[$item['product_id']]['in_num'],$item['num'],8);

+ 1 - 1
app/cxinv/controller/FinancialSeal.php

@@ -61,7 +61,7 @@ class FinancialSeal extends Base{
                     [['buyer_code','=',$row['company_code']],['type','in',[1,3]]],
                     [['seller_code','=',$row['company_code']],['type','in',[2,4]]]
                 ]);
-            })->where(["status"=>1,"fz_date"=>$row['fz_date']])->findOrEmpty();
+            })->where(["status"=>[1,4],"fz_date"=>$row['fz_date']])->findOrEmpty();
             if(!$mamger->isEmpty()) return error(FinancialManager::$ManagerType[$mamger['type']]."【{$mamger['id']}】未处理");
         }
         $row->status=$params['status'];

+ 1 - 1
app/wechat/controller/Base.php

@@ -19,7 +19,7 @@ class Base extends \app\BaseController{
     }
 
      /**授权token鉴定
-	* @return \think\response\Json|void
+	 * @return \think\response\Json|void
 	 */
    protected function Auth(){
    	  $User = \app\common\User::instance();