RD类型
This commit is contained in:
parent
3e5bdd456d
commit
887292689f
@ -82,7 +82,7 @@ class PackageSync extends Command
|
||||
$basePackages = array_keyBy($basePackages, 'sn');
|
||||
|
||||
$select = [
|
||||
DB::raw('1 as type'),
|
||||
DB::raw('2 as type'),
|
||||
'jxc_package_renewal.bag_number as sn',
|
||||
'jxc_package_renewal.package_sn as parent_sn',
|
||||
'jxc_package_renewal.name as name',
|
||||
@ -123,7 +123,7 @@ class PackageSync extends Command
|
||||
protected function getFlowPackages()
|
||||
{
|
||||
$select = [
|
||||
DB::raw('2 as type'),
|
||||
DB::raw('3 as type'),
|
||||
'jxc_package_flows.bag_number as sn',
|
||||
'jxc_package_flows.name as name',
|
||||
'jxc_package_flows.carrieroperator as carrier_operator',
|
||||
@ -152,7 +152,7 @@ class PackageSync extends Command
|
||||
protected function getOptionalPackages()
|
||||
{
|
||||
$select = [
|
||||
DB::raw('3 as type'),
|
||||
DB::raw('4 as type'),
|
||||
'jxc_package_optional.bag_number as sn',
|
||||
'jxc_package_optional.name as name',
|
||||
'jxc_package_optional.carrieroperator as carrier_operator',
|
||||
@ -181,7 +181,7 @@ class PackageSync extends Command
|
||||
protected function getAdditionalPackages()
|
||||
{
|
||||
$select = [
|
||||
DB::raw('4 as type'),
|
||||
DB::raw('5 as type'),
|
||||
'jxc_package_addoptional.bag_number as sn',
|
||||
'jxc_package_addoptional.name as name',
|
||||
DB::raw('"qw" as carrier_operator'),
|
||||
|
@ -22,7 +22,7 @@ class CreateRealPackagesTable extends Migration
|
||||
$table->integer('parent_id')->unsigned()->default(0)->comment('父级ID');
|
||||
$table->string('sn', 20)->comment('套餐编号');
|
||||
$table->string('name', 32)->comment('套餐名称');
|
||||
$table->tinyInteger('type')->unsigned()->default(255)->comment('套餐类型(0:基础套餐 1:续费包 2:加油包 3:可选包 4:附加包)');
|
||||
$table->tinyInteger('type')->unsigned()->default(255)->comment('套餐类型(0:基础套餐 2:续费包 3:加油包 4:可选包 5:附加包)');
|
||||
$table->tinyInteger('carrier_operator')->unsigned()->default(255)->comment('运营商(0:联通 1:移动 2:电信)');
|
||||
$table->integer('cost_price')->unsigned()->default(0)->comment('成本价格');
|
||||
$table->integer('guide_price')->unsigned()->default(0)->comment('指导价格');
|
||||
|
Loading…
x
Reference in New Issue
Block a user