ExamineSpare.php 948 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace app\common\command;
  3. use app\adminapi\logic\spare_part\SparePartLogic;
  4. use app\common\model\bank_account\BankAccount;
  5. use app\common\model\export\Export;
  6. use app\common\model\master_worker\MasterWorker;
  7. use app\common\model\master_worker\MasterWorkerInfo;
  8. use app\common\service\ExcelExportService;
  9. use think\console\Command;
  10. use think\console\Input;
  11. use think\console\Output;
  12. use think\facade\Log;
  13. /**
  14. * 审核配件-结算
  15. * Class ExamineSpare
  16. * @package app\command
  17. */
  18. class ExamineSpare extends Command
  19. {
  20. protected function configure()
  21. {
  22. $this->setName('examine_spare')->setDescription('审核配件');
  23. }
  24. protected function execute(Input $input, Output $output)
  25. {
  26. try {
  27. SparePartLogic::examineSpare();
  28. return true;
  29. } catch (\Exception $e) {
  30. Log::write('ExamineSpare:'.$e->getMessage());
  31. return $e->getMessage();
  32. }
  33. }
  34. }