作者 lyh

gx

... ... @@ -13,6 +13,7 @@ use App\Models\Manage\JobLevel;
use App\Models\Manage\Manage;
use App\Models\Manage\ManageHr;
use App\Models\Project\Project;
use App\Models\Project\Project;
use App\Models\Project\Project as ProjectModel;
use App\Models\Service\Service;
use App\Models\SmsLog;
... ... @@ -193,9 +194,16 @@ class ComController extends BaseController
}
public function ceshi(){
$length = strlen((string)123); // 获取变量的位数
$paddingLength = 5 - $length; // 计算填充前面的 0 的位数
$zeros = str_repeat("0", $paddingLength);
return '6'.'1'.$zeros.'123';
// $length = strlen((string)123); // 获取变量的位数
// $paddingLength = 5 - $length; // 计算填充前面的 0 的位数
// $zeros = str_repeat("0", $paddingLength);
// return '6'.'1'.$zeros.'123';
$data = Project::planMap();
arsort($data);
if(isset($data['标准版'])){
return $data['标准版'];
}else{
return 1;
}
}
}
... ...
... ... @@ -265,6 +265,13 @@ class ProjectLogic extends BaseLogic
}
/**
* @remark :导入数据
* @name :sync
* @author :lyh
* @method :post
* @time :2023/8/9 15:04
*/
public function sync($param){
$num = Cache::get('project_' . date('Ymd'), 1);
$title = date('Ymd') . '-' . $num . '-' . $param['company_name'];
... ...