|
@@ -18,6 +18,7 @@ use app\common\state\ProjectState;
|
|
|
use app\common\state\IntegralState;
|
|
|
use app\common\model\IntegralRecord;
|
|
|
use app\common\model\IntegralDetail;
|
|
|
+use app\common\state\CommonConst;
|
|
|
|
|
|
/**
|
|
|
* Description of Talent
|
|
@@ -343,7 +344,7 @@ class IntegralVerify extends AdminController {
|
|
|
*/
|
|
|
public function publicExport() {
|
|
|
$params = $this->request->param();
|
|
|
- $columns = ["序号", "批次", "姓名", "证件类型", "证件号码", "工作单位", "申请积分项目", "拟认定获得积分", "审核状态", "备注"];
|
|
|
+ $columns = ["序号", "批次", "姓名", "证件类型", "证件号码", "工作单位", "申请积分项目", "当前总积分", "当前人才层次", "增加后的总积分", "增加积分后的层次", "审核状态", "备注"];
|
|
|
$startTime = $params["startTime"];
|
|
|
$endTime = $params["endTime"];
|
|
|
if (!strtotime($startTime) || !strtotime($endTime))
|
|
@@ -366,8 +367,12 @@ class IntegralVerify extends AdminController {
|
|
|
$tmp_items[] = sprintf("%s(%s%s)+%d积分", $integral_item_info["name"], $_item["amount"], $integral_item_info["unit"], $_item["point"]);
|
|
|
$total_points += $_item["point"];
|
|
|
}
|
|
|
+ $where = [];
|
|
|
+ $where[] = ["card_type", "=", $item["card_type"]];
|
|
|
+ $where[] = ["card_number", "=", $item["card_number"]];
|
|
|
+ $log = Db::table("new_integral_log")->where($where)->order("createTime desc")->find();
|
|
|
$row = [
|
|
|
- $i, $item["apply_year"], $item["name"], $card_types[$item["card_type"]], $item["card_number"], $item["enterpriseName"], implode(";", $tmp_items), $total_points, $item["checkState"] == IntegralState::ANNOUNCED ? "审核通过" : "审核不通过", $item["description"]
|
|
|
+ $i, $item["apply_year"], $item["name"], $card_types[$item["card_type"]], $item["card_number"], $item["enterpriseName"], implode(";", $tmp_items), $log["nowPoints"], CommonConst::getLayerNameByLayer($log["talentLevel"]), $log["nowPoints"] + $total_points, CommonConst::getLayerNameByLayer(CommonConst::getLayerByPoints($log["nowPoints"] + $total_points)), $item["checkState"] == IntegralState::ANNOUNCED ? "审核通过" : "审核不通过", $item["description"]
|
|
|
];
|
|
|
$rows[] = $row;
|
|
|
$i++;
|