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