|
@@ -12,7 +12,7 @@ class ComjobsService extends BaseService
|
|
|
|
|
|
public function importComjobs($file_url, $worker_id)
|
|
|
{
|
|
|
- $data = ['title', 'cate', 'address', 'community', 'agegroup', 'enddate', 'comdetails', 'requirement', 'wtype', 'zwagall', 'telephone', 'remark', 'recruit_num', 'education'];
|
|
|
+ $data = ['title', 'cate', 'address', 'agegroup', 'enddate', 'comdetails', 'requirement', 'wtype', 'zwagall', 'telephone', 'remark', 'recruit_num', 'education'];
|
|
|
$list = importExecl($file_url, $data, 1);
|
|
|
$data = [];
|
|
|
$wtype = ['按月' => 1, '按时' => 2, '按件' => 3, '按项目' => 4, '其他' => 5];
|
|
@@ -28,7 +28,6 @@ class ComjobsService extends BaseService
|
|
|
'title' => '标题',
|
|
|
'cate' => '岗位',
|
|
|
'address' => '地址',
|
|
|
- 'community' => '社区',
|
|
|
'agegroup' => '招工年龄',
|
|
|
'enddate' => '截止日期',
|
|
|
'wtype' => '结算类型',
|
|
@@ -50,13 +49,9 @@ class ComjobsService extends BaseService
|
|
|
$item['cateid'] = $cateList[$v['cate']];
|
|
|
$item['title'] = $v['title'];
|
|
|
$item['province'] = '福建省';
|
|
|
- $item['city'] = '泉州市';
|
|
|
- $item['district'] = '晋江市';
|
|
|
+ $item['city'] = '福州市';
|
|
|
+ $item['district'] = '马尾区';
|
|
|
$item['address'] = $v['address'];
|
|
|
- if (empty($renshe['community'][$v['community']])) {
|
|
|
- return $this->error('第' . ($k + 2) . '行的社区选择有误');
|
|
|
- }
|
|
|
- $item['community'] = $renshe['community'][$v['community']];
|
|
|
$item['agegroup'] = $v['agegroup'];
|
|
|
$enddate = strtotime($v['enddate']);
|
|
|
if ($enddate <= 0) {
|