工会归属会长必填

master
liuweiwen 5 years ago
parent e2095af7a8
commit 51844a824e

@ -1225,6 +1225,9 @@ class PromoteController extends ThinkController
public function belong_add($promote_id=null, $company_belong = null, $company_relation = null, $remark = null) public function belong_add($promote_id=null, $company_belong = null, $company_relation = null, $remark = null)
{ {
if (IS_POST) { if (IS_POST) {
if (empty($promote_id)) {
$this->error('请选择会长');
}
$data = array( $data = array(
'promote_id' => $promote_id, 'promote_id' => $promote_id,
'company_belong' => $company_belong, 'company_belong' => $company_belong,
@ -1258,6 +1261,9 @@ class PromoteController extends ThinkController
public function belong_edit($promote_id=null, $company_belong = null, $company_relation = null, $remark = null) public function belong_edit($promote_id=null, $company_belong = null, $company_relation = null, $remark = null)
{ {
if (IS_POST) { if (IS_POST) {
if (empty($promote_id)) {
$this->error('请选择会长');
}
$data = array( $data = array(
'promote_id' => $promote_id, 'promote_id' => $promote_id,
'company_belong' => $company_belong, 'company_belong' => $company_belong,

Loading…
Cancel
Save