| 12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace app\common\command;
- use app\adminapi\logic\spare_part\SparePartLogic;
- use app\common\model\bank_account\BankAccount;
- use app\common\model\export\Export;
- use app\common\model\master_worker\MasterWorker;
- use app\common\model\master_worker\MasterWorkerInfo;
- use app\common\service\ExcelExportService;
- use think\console\Command;
- use think\console\Input;
- use think\console\Output;
- use think\facade\Log;
- /**
- * 审核配件-结算
- * Class ExamineSpare
- * @package app\command
- */
- class ExamineSpare extends Command
- {
- protected function configure()
- {
- $this->setName('examine_spare')->setDescription('审核配件');
- }
- protected function execute(Input $input, Output $output)
- {
- try {
- SparePartLogic::examineSpare();
- return true;
- } catch (\Exception $e) {
- Log::write('ExamineSpare:'.$e->getMessage());
- return $e->getMessage();
- }
- }
- }
|