获取返补已满但是未读状态的数量
This commit is contained in:
parent
abfb8d9e93
commit
f88a41a890
@ -2,13 +2,8 @@
|
||||
|
||||
namespace app\api\logic;
|
||||
|
||||
use app\admin\logic\WechatCorporatePaymentLogic;
|
||||
use app\admin\logic\WechatMerchantTransferLogic;
|
||||
use app\common\basics\Logic;
|
||||
use app\common\enum\WithdrawEnum;
|
||||
use app\common\logic\AccountLogLogic;
|
||||
use app\common\model\AccountLog;
|
||||
use app\common\model\BalanceWithdrawApply;
|
||||
use app\common\model\billions\Billions;
|
||||
use app\common\model\distribution\Distribution;
|
||||
use app\common\model\distribution\DistributionOrderGoods;
|
||||
@ -20,8 +15,6 @@ use app\common\model\user\User;
|
||||
use app\common\model\order\Order;
|
||||
use app\common\model\RechargeOrder;
|
||||
use app\common\model\shop\Shop;
|
||||
use app\common\model\WithdrawApply;
|
||||
use app\common\server\ConfigServer;
|
||||
use think\Exception;
|
||||
use think\facade\Db;
|
||||
use app\common\enum\PayEnum;
|
||||
|
||||
@ -22,6 +22,7 @@ use app\common\server\WeChatServer;
|
||||
use EasyWeChat\Factory;
|
||||
use EasyWeChat\Kernel\Exceptions\Exception;
|
||||
use think\facade\Db;
|
||||
use app\common\model\billions\Billions;
|
||||
|
||||
class UserLogic extends Logic
|
||||
{
|
||||
@ -99,6 +100,12 @@ class UserLogic extends Logic
|
||||
}
|
||||
// 获取集采信息
|
||||
$procurement = Mprocurement::where(['user_id' => $user_id, 'u_examine_state' => 1, 'u_state' => 1])->find();
|
||||
|
||||
// 获取返补已满但是未读状态的数量
|
||||
$billion_where[] = ['user_id', '=', $user_id];
|
||||
$billion_where[] = ['state', '>', 0];
|
||||
$billion_where[] = ['is_read', '=', 0];
|
||||
$user['unread_billios'] = Billions::where($billion_where)->count();
|
||||
if($procurement != null){
|
||||
$user['u_id'] = $procurement['u_id'];
|
||||
$user['wholesale_state'] = $procurement['wholesale_state'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user