...
|
...
|
@@ -128,11 +128,10 @@ class Role extends BaseController |
|
|
public function generateNumber(Request $request){
|
|
|
$data = $request->get();
|
|
|
$rule_name= Db::table('sos_user_rule')->where('mechanismId',$data['id'])->find();
|
|
|
$rule_num= Db::table('sos_user_role')->find();
|
|
|
$rule_num= Db::table('sos_user_role')->order('id desc')->find();
|
|
|
|
|
|
$rule_number=$rule_name['rule'].$rule_num['personalNumber'];
|
|
|
$rule_number['num']=$rule_name['rule'].(substr($rule_num['personalNumber'], 2, 7)+1);
|
|
|
|
|
|
return $rule_number;
|
|
|
echo json_encode($rule_number);
|
|
|
}
|
|
|
|
...
|
...
|
|