合并master

This commit is contained in:
东宝书记 committed 2021-04-23 18:34:29 +08:00
commit a88c8eaf77
4 files changed
+17 -8

No files matched your search

+6 -4
View File
@@ -481,11 +481,10 @@ class Index extends AdminBase
$i = 4;
foreach ($kaohao as $key=>$bj)
{
foreach ($bj->banjiKaohao as $k => $kh) {
$bjkh = $bj->banjiKaohao->toArray();
$bjkh = sortArrByManyField($bjkh, 'shoupin', SORT_ASC);
foreach ($bjkh as $k => $kh) {
$sheet->setCellValue('A' . $i, $i - 3);
$sheet->setCellValue('B' . $i, $md5::encrypt((string)$kh->id, 'dlbz'));
$sheet->setCellValue('C' . $i, $bj->banjiTitle);
$sheet->setCellValue('D' . $i, $kh->cjStudent['xingming']);
// if(isset($kh->cjStudent->xingming))
// {
// $sheet->setCellValue('D' . $i, $kh->cjStudent->xingming);
@@ -493,6 +492,9 @@ class Index extends AdminBase
// halt($kh->toArray());
// $sheet->setCellValue('D' . $i, '学生已经被删除');
// }
$sheet->setCellValue('B' . $i, $md5::encrypt((string)$kh['id'], 'dlbz'));
$sheet->setCellValue('C' . $i, $bj['banjiTitle']);
$sheet->setCellValue('D' . $i, $kh['cjStudent']['xingming']);
$i ++;
}