commit
5db2589081
@ -35,7 +35,7 @@ class TaskMember extends CommonModel
|
||||
}
|
||||
$currentMember = getCurrentMember();
|
||||
$taskExecutor = self::where(['is_executor' => 1, 'task_code' => $taskCode])->find(); //原执行者
|
||||
if ($taskExecutor['member_code'] == $memberCode) {
|
||||
if ($taskExecutor && $taskExecutor['member_code'] == $memberCode) {
|
||||
//已经是本人
|
||||
return true;
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
Source Server Type : MySQL
|
||||
Source Server Version : 50726
|
||||
Source Host : localhost:3306
|
||||
Source Schema : pearprojectpro
|
||||
Source Schema : pearproject
|
||||
|
||||
Target Server Type : MySQL
|
||||
Target Server Version : 50726
|
||||
|
@ -5,7 +5,7 @@
|
||||
Source Server Type : MySQL
|
||||
Source Server Version : 50726
|
||||
Source Host : localhost:3306
|
||||
Source Schema : pearprojectpro
|
||||
Source Schema : pearproject
|
||||
|
||||
Target Server Type : MySQL
|
||||
Target Server Version : 50726
|
||||
|
@ -565,7 +565,7 @@ class Query
|
||||
$seq = (ord(substr($type($value), 0, 1)) % $rule['num']) + 1;
|
||||
} else {
|
||||
// 按照字段的首字母的值分表
|
||||
$seq = (ord($value{0}) % $rule['num']) + 1;
|
||||
$seq = (ord($value[0]) % $rule['num']) + 1;
|
||||
}
|
||||
}
|
||||
return $this->getTable() . '_' . $seq;
|
||||
|
Loading…
x
Reference in New Issue
Block a user