| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 | <?phpnamespace App\Console\Commands;use App\Service\CloudDataService;use App\Service\InspectService;use Illuminate\Console\Command;class InsertCloudCommand extends Command{    /**     * The name and signature of the console command.     *     * @var string     */    protected $signature = 'command:insert_cloud';    /**     * The console command description.     *     * @var string     */    protected $description = 'Command description';    /**     * Create a new command instance.     *     * @return void     */    public function __construct()    {        parent::__construct();    }    /**     * Execute the console command.     *     * @return mixed     */    public function handle()    {        echo '生产巡检单据--------start---------------';        $service = new InspectService();        list($status,$msg) = $service->addOnSiteInspectionOrder();        if(! $status) echo $msg;        echo '生产巡检单据--------end-------------';        echo '更新巡检单据--------start---------------';        $service = new InspectService();        list($status,$msg) = $service->editOnSiteInspectionOrder();        if(! $status) echo $msg;        echo '更新巡检单据--------end---------------';    }}
 |