feat: 根据PID调整查询条件,优化打印发送平台信息逻辑
This commit is contained in:
parent
73db1cd0b7
commit
afc5defd6f
@ -45,7 +45,7 @@ class PushPlatformPrintSend implements Consumer
|
||||
$find['mer_user_mobile'] = $mer_user_info['mobile'];
|
||||
$find['nickname'] = $user['nickname'];
|
||||
$find['user_mobile'] = $user['mobile'];
|
||||
$find['info'] = Cashierinfo::where('pid', 445)->field('goods,nums,price,total')->select()->each(function ($item) {
|
||||
$find['info'] = Cashierinfo::where('pid', $find['id'])->field('goods,nums,price,total')->select()->each(function ($item) {
|
||||
$goods = Goods::where('id', $item['goods'])->field('name,unit')->find();
|
||||
$item['unit_name'] = Unit::where('id', $goods['unit'])->value('name');
|
||||
$item['goods_name'] = $goods['name'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user