|
@@ -565,7 +565,7 @@ class Api extends BaseController {
|
|
|
$info = \app\common\api\TalentAllowanceApi::getInfoById($id);
|
|
|
$list = [];
|
|
|
if ($info) {
|
|
|
- $where = [["batch", "=", $info["year"]], ["enterpriseId", "=", $info["enterpriseId"]]];
|
|
|
+ $where = [["batch", "=", $info["year"]], ["enterpriseId", "=", $info["enterpriseId"]], ["fileTypeId", "<>", 0]];
|
|
|
$list = Db::table("un_talent_allowance_common_file")->alias("f")->leftJoin("new_common_filetype ft", "ft.id=f.fileTypeId")->where($where)->field("f.*,ft.name as fileTypeName")->select()->toArray();
|
|
|
foreach ($list as $key => $item) {
|
|
|
$list[$key]["ext"] = pathinfo($item["url"])["extension"];
|