songxingwei 2 years ago
parent
commit
631da32b8b

+ 15 - 1
app/data/controller/api/auth/Center.php

@@ -1651,8 +1651,22 @@ class Center extends Auth
 
 
     public function ccc(){
+//        $dir = dirname(realpath(dirname($_SERVER['SCRIPT_FILENAME']))) . '/public/';
+//        $templateProcessor = new TemplateProcessor($dir.'/wxdd.docx');
+//        $templateProcessor->setValue('order_no','1234');
+//        $templateProcessor->setValue('date','2023-02-20 15:05:50');
+//        $templateProcessor->setValue('fbz','张三');
+//        $templateProcessor->setValue('jdf','李四');
+//        $templateProcessor->setValue('fbzphone','15800000000');
+//        $templateProcessor->setValue('jdfphone','15800000001');
+//        $templateProcessor->setValue('address','藕粉色大后方胡搜凤凰山佛山房');
+//        $templateProcessor->setValue('time','2023-02-20 15:10:00');
+//        $templateProcessor->setValue('desc','维修单维修单');
+//        $templateProcessor->setValue('price','100');
+//        $templateProcessor->saveAs($dir."b.docx");
+
         $dir = dirname(realpath(dirname($_SERVER['SCRIPT_FILENAME']))) . '/public/';
-        $templateProcessor = new TemplateProcessor($dir.'/wxdd.docx');
+        $templateProcessor = new TemplateProcessor($dir.'/cgdd.docx');
         $templateProcessor->setValue('order_no','1234');
         $templateProcessor->setValue('date','2023-02-20 15:05:50');
         $templateProcessor->setValue('fbz','张三');

+ 3 - 3
app/data/controller/api/auth/DemandLabor.php

@@ -56,9 +56,9 @@ class DemandLabor extends Auth
                 $list = DataRecruitment::mk()
                     ->where('is_del',1)
                     ->where('state',1)
-                    ->hasWhere('shipyard',function ($query) use ($keyword){
-                        $query->whereLike('data_recruitment.title|name','%'.$keyword.'%');
-                    },'data_recruitment.id,shipyard_id,title,data_recruitment.province,data_recruitment.city,schooling,salary_start,salary_end,contact_person,contact_headimg,contact_position,experience')
+//                    ->hasWhere('shipyard',function ($query) use ($keyword){
+//                        $query->whereLike('data_recruitment.title|name','%'.$keyword.'%');
+//                    },'data_recruitment.id,shipyard_id,title,data_recruitment.province,data_recruitment.city,schooling,salary_start,salary_end,contact_person,contact_headimg,contact_position,experience')
                     ->when($salary,function ($query) use ($salary){
                         switch ($salary){
                             case 1:

BIN
public/.~cgdd.docx


BIN
public/cgdd.docx


BIN
public/wxdd.docx