新增离职后无需确认绩效

master
chenzhi 3 years ago
parent 5fbe327cba
commit f5f20300c7

@ -595,13 +595,20 @@ class MarketPercentageController extends ThinkController
->select(false);
$data = M("auth_group_access")
->field("sys_member.nickname,sys_member.real_name,sys_member.uid,sys_auth_group_access.group_id,IF(coefficient is not NULL, coefficient, 100) coefficient")
->field("sys_member.nickname,sys_member.real_name,sys_member.uid,sys_auth_group_access.group_id,IF(coefficient is not NULL, coefficient, 100) coefficient,sys_ucenter_member.leave_time")
->join("left join ({$data}) auth on auth.id = sys_auth_group_access.group_id")
->join("left join sys_member on sys_member.uid = sys_auth_group_access.uid")
->join("left join sys_ucenter_member on sys_member.uid = sys_ucenter_member.id")
->join("left join tab_coefficient on tab_coefficient.admin_id = sys_member.uid and pay_time='{$pay_time}'")
->where("auth.title is not null")
->select();
$hideTime = strtotime(date('Y-m-01') . " - 1 month")-1;
foreach ($data as &$v) {
$v['is_hide'] = 0;
if($v['leave_time'] > 0 && $v['leave_time'] <= $hideTime){
$v['is_hide'] = 1;
}
}
$this->assign('list_data', $data);
$this->display("coefficient");

@ -107,7 +107,7 @@
</tr>
</if>
<volist name="list_data" id="data">
<tr>
<tr <if condition = "$data.is_hide eq 1"> style="display:none;" </if>>
<td >{$data['real_name']}</td>
<td ><input style="width: auto;" name="{$data['nickname']}-{$data['uid']}-{$data['real_name']}" value="{$data['coefficient']/100}"></td>
</tr>

Loading…
Cancel
Save