Commit f0ccd835 by wenyi.chen

v1

parent c2f2e0f0
...@@ -291,6 +291,7 @@ class ExcelFile extends BaseController ...@@ -291,6 +291,7 @@ class ExcelFile extends BaseController
array_push($extendValue,[$kk['value']]); array_push($extendValue,[$kk['value']]);
} }
} }
// 用户填写端自定义 // 用户填写端自定义
foreach ($value['userData'] as $kk){ foreach ($value['userData'] as $kk){
if(in_array($kk['name'],$extendUserName)){ if(in_array($kk['name'],$extendUserName)){
...@@ -420,10 +421,12 @@ class ExcelFile extends BaseController ...@@ -420,10 +421,12 @@ class ExcelFile extends BaseController
]; ];
array_push($normExtendSql,$normExtendArr); array_push($normExtendSql,$normExtendArr);
} }
// 指标扩展信息 foreach ($normExtendSql as $value){
$sqlInser = Db::name('norm_extend')->insertAll($normExtendSql); // 指标扩展信息
if(empty($sqlInser)){ $sqlInser = Db::name('norm_extend')->insertGetId($value);
$control++; if(empty($sqlInser)){
$control++;
}
} }
} }
// 文件格式化有问题 // 文件格式化有问题
......
a:1:{s:5:"users";a:10:{s:2:"id";i:1;s:4:"name";s:12:"开发人员";s:5:"phone";s:11:"18417180202";s:7:"account";s:5:"admin";s:8:"password";s:32:"e10adc3949ba59abbe56e057f20f883e";s:6:"status";i:1;s:4:"type";i:1;s:11:"create_time";s:1:"1";s:5:"email";s:18:"wesley_prc@163.com";s:13:"department_id";i:3;}}
\ No newline at end of file
a:1:{s:5:"users";a:10:{s:2:"id";i:3;s:4:"name";s:10:"管理员1";s:5:"phone";s:11:"18417180202";s:7:"account";s:8:"admin001";s:8:"password";s:32:"e10adc3949ba59abbe56e057f20f883e";s:6:"status";i:1;s:4:"type";i:1;s:11:"create_time";s:10:"1709196711";s:5:"email";s:0:"";s:13:"department_id";i:1;}} a:1:{s:5:"users";a:10:{s:2:"id";i:1;s:4:"name";s:12:"开发人员";s:5:"phone";s:11:"18417180202";s:7:"account";s:5:"admin";s:8:"password";s:32:"e10adc3949ba59abbe56e057f20f883e";s:6:"status";i:1;s:4:"type";i:1;s:11:"create_time";s:1:"1";s:5:"email";s:18:"wesley_prc@163.com";s:13:"department_id";i:3;}}
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment