Commit 7589b6bd authored by hujun's avatar hujun

店长判断条件

parent a23bffd5
......@@ -59,11 +59,11 @@ class AStore extends BaseModel
if ($agents_id != $k) {
//40等级和店长降级为业务员
$agents_data[$k]['id'] = $k;
if ($v['level'] == 20) {
if ($v == 20) {
$agents_data[$k]['level'] = 10;
}
if ($v['level'] == 40){
if ($v == 40){
$agents_data[$k]['level'] = 30;
}
......@@ -85,11 +85,11 @@ class AStore extends BaseModel
if ($agents_id != $k) {
//40等级和店长降级为业务员
$agents_data[$k]['id'] = $k;
if ($v['level'] == 20) {
if ($v == 20) {
$agents_data[$k]['level'] = 10;
}
if ($v['level'] == 40){
if ($v == 40){
$agents_data[$k]['level'] = 30;
}
$agents_data[$k]['store_id'] = $result_id;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment