Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CnChunfeng
/
scm_wms_outstore_service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
da5b3369
authored
May 16, 2020
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改事物逻辑
parent
f64e9a4a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
6 deletions
app/Http/Model/Logic/OutStoreLogic.php
app/Http/Model/Logic/PickTaskLogic.php
storage/laravels.json
storage/laravels.pid
app/Http/Model/Logic/OutStoreLogic.php
View file @
da5b3369
...
@@ -177,10 +177,10 @@ class OutStoreLogic
...
@@ -177,10 +177,10 @@ class OutStoreLogic
$outStoreDetailId
=
OutStoreDetailModel
::
insertGetId
(
array_merge
(
self
::
handleOutStoreDetailInsertData
(
$value
,
$insertData
),[
'pick_task_id'
=>
$pickTaskId
]));
$outStoreDetailId
=
OutStoreDetailModel
::
insertGetId
(
array_merge
(
self
::
handleOutStoreDetailInsertData
(
$value
,
$insertData
),[
'pick_task_id'
=>
$pickTaskId
]));
//is_apply_customs报关任务默认隐藏
//is_apply_customs报关任务默认隐藏
PickTaskDetailModel
::
insertGetId
([
PickTaskDetailModel
::
insertGetId
(
PickTaskLogic
::
handleInsertData
(
[
'out_store_id'
=>
$outStoreId
,
'out_store_detail_id'
=>
$outStoreDetailId
,
'store_id'
=>
$insertData
[
'store_id'
],
'out_store_id'
=>
$outStoreId
,
'out_store_detail_id'
=>
$outStoreDetailId
,
'store_id'
=>
$insertData
[
'store_id'
],
'pick_task_id'
=>
$pickTaskId
,
'is_show'
=>
empty
(
$insertData
[
'is_apply_customs'
])
?
1
:
0
'pick_task_id'
=>
$pickTaskId
,
'is_show'
=>
empty
(
$insertData
[
'is_apply_customs'
])
?
1
:
0
]);
])
)
;
}
}
DB
::
commit
();
DB
::
commit
();
...
...
app/Http/Model/Logic/PickTaskLogic.php
View file @
da5b3369
...
@@ -65,16 +65,47 @@ class PickTaskLogic
...
@@ -65,16 +65,47 @@ class PickTaskLogic
}
}
}
}
//判断是否没有卡板箱子数据
$isAllGoods
=
0
;
//生成拣货记录
//生成拣货记录
foreach
(
$pickData
as
$key
=>
$value
){
foreach
(
$pickData
as
$key
=>
$value
){
$locatiion
=
explode
(
'_'
,
$key
);
$locatiion
=
explode
(
'_'
,
$key
);
$data
[
'number'
]
=
$value
;
$data
[
'number'
]
=
$value
;
$data
[
'location_id'
]
=
$locatiion
[
0
];
$data
[
'location_id'
]
=
$locatiion
[
0
];
$data
[
'pallet_id'
]
=
$locatiion
[
1
];
$data
[
'pallet_id'
]
=
$locatiion
[
1
];
if
(
!
empty
(
$data
[
'pallet_id'
])){
if
(
StockModel
::
where
(
'pallet_id'
,
$data
[
'pallet_id'
])
->
where
(
'warehousing_sn'
,
$outStoreDetail
[
'warehousing_sn'
])
->
sum
(
'stock'
)
==
$value
){
$data
[
'pick_remark'
]
=
'整卡板'
;
}
else
{
$data
[
'pick_remark'
]
=
'拆零'
;
}
$isAllGoods
++
;
}
$data
[
'box_id'
]
=
$locatiion
[
2
];
$data
[
'box_id'
]
=
$locatiion
[
2
];
if
(
!
empty
(
$data
[
'box_id'
])){
if
(
StockModel
::
where
(
'pallet_id'
,
$data
[
'pallet_id'
])
->
where
(
'warehousing_sn'
,
$outStoreDetail
[
'warehousing_sn'
])
->
sum
(
'stock'
)
==
$value
){
$data
[
'pick_remark'
]
=
'整箱'
;
}
else
{
$data
[
'pick_remark'
]
=
'拆零'
;
}
}
$returData
[]
=
array_merge
(
$value
,
$data
);
$returData
[]
=
array_merge
(
$value
,
$data
);
}
}
if
(
empty
(
$isAllGoods
)){
//判断是当前商品是否是整拣
if
(
StockModel
::
where
(
'goods_id'
,
$outStoreDetail
[
'goods_id'
])
->
where
(
'warehousing_sn'
,
$outStoreDetail
[
'warehousing_sn'
])
->
sum
(
'stock'
)
==
$returData
[
0
][
'numebr'
]){
$returData
[
0
][
'pick_remark'
]
=
'整拣'
;
}
else
{
$returData
[
0
][
'pick_remark'
]
=
'拆零'
;
}
}
return
$returData
;
return
$returData
;
}
}
...
...
storage/laravels.json
View file @
da5b3369
{
"server"
:{
"listen_ip"
:
"0.0.0.0"
,
"listen_port"
:
"40003"
,
"socket_type"
:
1
,
"enable_coroutine_runtime"
:
false
,
"server"
:
"LaravelS"
,
"handle_static"
:
false
,
"laravel_base_path"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service"
,
"inotify_reload"
:{
"enable"
:
false
,
"watch_path"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service"
,
"file_types"
:[
".php"
],
"excluded_dirs"
:[],
"log"
:
true
},
"event_handlers"
:[],
"websocket"
:{
"enable"
:
false
},
"sockets"
:[],
"processes"
:[],
"timer"
:{
"enable"
:
false
,
"jobs"
:[],
"pid_file"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service/storage/laravels-timer.pid"
,
"max_wait_time"
:
5
},
"events"
:[],
"swoole_tables"
:[],
"register_providers"
:[],
"cleaners"
:[],
"swoole"
:{
"daemonize"
:
false
,
"dispatch_mode"
:
2
,
"reactor_num"
:
4
,
"worker_num"
:
"3"
,
"task_worker_num"
:
3
,
"task_ipc_mode"
:
1
,
"task_max_request"
:
8000
,
"task_tmpdir"
:
"/tmp"
,
"max_request"
:
8000
,
"open_tcp_nodelay"
:
true
,
"pid_file"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service/storage/laravels.pid"
,
"log_file"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service/storage/logs/swoole-2020-05.log"
,
"log_level"
:
4
,
"document_root"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service/public"
,
"buffer_output_size"
:
2097152
,
"socket_buffer_size"
:
134217728
,
"package_max_length"
:
4194304
,
"reload_async"
:
true
,
"max_wait_time"
:
60
,
"enable_reuse_port"
:
true
,
"enable_coroutine"
:
false
,
"http_compression"
:
false
},
"enable_gzip"
:
false
,
"process_prefix"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service"
,
"ignore_check_pid"
:
false
},
"laravel"
:{
"root_path"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service"
,
"static_path"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service/public"
,
"cleaners"
:[],
"register_providers"
:[],
"is_lumen"
:
true
,
"_SERVER"
:{
"SHELL"
:
"/bin/bash"
,
"TERM"
:
"xterm-256color"
,
"HOMEBREW_BOTTLE_DOMAIN"
:
"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"
,
"TMPDIR"
:
"/var/folders/vd/95yw3kdx65n1qw9ggmkkkp7c0000gn/T/"
,
"Apple_PubSub_Socket_Render"
:
"/private/tmp/com.apple.launchd.wWtj0v7Agw/Render"
,
"USER"
:
"gongyang"
,
"SSH_AUTH_SOCK"
:
"/private/tmp/com.apple.launchd.tXmktxiIKD/Listeners"
,
"__CF_USER_TEXT_ENCODING"
:
"0x1F5:0x19:0x34"
,
"PATH"
:
"/usr/local/opt/mysql@5.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin"
,
"_"
:
"/usr/bin/php"
,
"PWD"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service"
,
"XPC_FLAGS"
:
"0x0"
,
"XPC_SERVICE_NAME"
:
"0"
,
"HOME"
:
"/Users/gongyang"
,
"SHLVL"
:
"2"
,
"LOGNAME"
:
"gongyang"
,
"LC_CTYPE"
:
"zh_CN.UTF-8"
,
"PHP_SELF"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service/artisan"
,
"SCRIPT_NAME"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service/artisan"
,
"SCRIPT_FILENAME"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service/artisan"
,
"PATH_TRANSLATED"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service/artisan"
,
"DOCUMENT_ROOT"
:
""
,
"REQUEST_TIME_FLOAT"
:
1589516151.55909
,
"REQUEST_TIME"
:
1589516151
,
"argv"
:[
"/usr/local/var/www/ichunt/scm_wms_outstore_service/artisan"
,
"laravels"
,
"config"
],
"argc"
:
3
,
"APP_ENV"
:
"local"
,
"APP_DEBUG"
:
"true"
,
"APP_KEY"
:
""
,
"APP_TIMEZONE"
:
"PRC"
,
"DB_TIMEZONE"
:
"+08:00"
,
"SYSTEM_CODE"
:
"01"
,
"SYSTEM_NAME"
:
"服务初始服务(开发环境)"
,
"LARAVELS_LISTEN_IP"
:
"0.0.0.0"
,
"LARAVELS_LISTEN_PORT"
:
"40003"
,
"worker_num"
:
"3"
,
"DB_CONNECTION"
:
"mysql"
,
"DB_HOST"
:
"192.168.2.232"
,
"DB_USERNAME"
:
"liexin_scm_wms"
,
"DB_PASSWORD"
:
"liexin_scm_wms#zsyM"
,
"DB_PORT"
:
"3306"
,
"DB_DATABASE"
:
"liexin_scm_wms"
,
"DB_PREFIX"
:
"lie_"
,
"REDIS_HOST"
:
"192.168.1.235"
,
"REDIS_PASSWORD"
:
"icDb29mLy2s"
,
"REDIS_PORT"
:
"6379"
,
"REDIS_READ_HOST"
:
"192.168.1.237"
,
"REDIS_READ_PASSWORD"
:
"icDb29mLy2s"
,
"REDIS_READ_PORT"
:
"6379"
,
"CACHE_DRIVER"
:
"file"
,
"QUEUE_DRIVER"
:
"sync"
,
"RABBIT_IP"
:
"192.168.1.237"
,
"RABBIT_PORT"
:
"5672"
,
"RABBIT_USER"
:
"huntadmin"
,
"RABBIT_PASS"
:
"jy2y2900"
,
"RABBITMQ_LOG_HOST"
:
"192.168.1.237"
,
"RABBITMQ_LOG_PORT"
:
"5672"
,
"RABBITMQ_LOG_VHOST"
:
"/"
,
"RABBITMQ_LOG_LOGIN"
:
"huntadmin"
,
"RABBITMQ_LOG_PASSWORD"
:
"jy2y2900"
,
"RABBITMQ_LOG_QUEUE"
:
"scm_wms_log"
,
"SHELL_VERBOSITY"
:
0
},
"_ENV"
:{
"APP_ENV"
:
"local"
,
"APP_DEBUG"
:
"true"
,
"APP_KEY"
:
""
,
"APP_TIMEZONE"
:
"PRC"
,
"DB_TIMEZONE"
:
"+08:00"
,
"SYSTEM_CODE"
:
"01"
,
"SYSTEM_NAME"
:
"服务初始服务(开发环境)"
,
"LARAVELS_LISTEN_IP"
:
"0.0.0.0"
,
"LARAVELS_LISTEN_PORT"
:
"40003"
,
"worker_num"
:
"3"
,
"DB_CONNECTION"
:
"mysql"
,
"DB_HOST"
:
"192.168.2.232"
,
"DB_USERNAME"
:
"liexin_scm_wms"
,
"DB_PASSWORD"
:
"liexin_scm_wms#zsyM"
,
"DB_PORT"
:
"3306"
,
"DB_DATABASE"
:
"liexin_scm_wms"
,
"DB_PREFIX"
:
"lie_"
,
"REDIS_HOST"
:
"192.168.1.235"
,
"REDIS_PASSWORD"
:
"icDb29mLy2s"
,
"REDIS_PORT"
:
"6379"
,
"REDIS_READ_HOST"
:
"192.168.1.237"
,
"REDIS_READ_PASSWORD"
:
"icDb29mLy2s"
,
"REDIS_READ_PORT"
:
"6379"
,
"CACHE_DRIVER"
:
"file"
,
"QUEUE_DRIVER"
:
"sync"
,
"RABBIT_IP"
:
"192.168.1.237"
,
"RABBIT_PORT"
:
"5672"
,
"RABBIT_USER"
:
"huntadmin"
,
"RABBIT_PASS"
:
"jy2y2900"
,
"RABBITMQ_LOG_HOST"
:
"192.168.1.237"
,
"RABBITMQ_LOG_PORT"
:
"5672"
,
"RABBITMQ_LOG_VHOST"
:
"/"
,
"RABBITMQ_LOG_LOGIN"
:
"huntadmin"
,
"RABBITMQ_LOG_PASSWORD"
:
"jy2y2900"
,
"RABBITMQ_LOG_QUEUE"
:
"scm_wms_log"
,
"SHELL_VERBOSITY"
:
0
}}}
{
"server"
:{
"listen_ip"
:
"0.0.0.0"
,
"listen_port"
:
"40003"
,
"socket_type"
:
1
,
"enable_coroutine_runtime"
:
false
,
"server"
:
"LaravelS"
,
"handle_static"
:
false
,
"laravel_base_path"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service"
,
"inotify_reload"
:{
"enable"
:
false
,
"watch_path"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service"
,
"file_types"
:[
".php"
],
"excluded_dirs"
:[],
"log"
:
true
},
"event_handlers"
:[],
"websocket"
:{
"enable"
:
false
},
"sockets"
:[],
"processes"
:[],
"timer"
:{
"enable"
:
false
,
"jobs"
:[],
"pid_file"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service/storage/laravels-timer.pid"
,
"max_wait_time"
:
5
},
"events"
:[],
"swoole_tables"
:[],
"register_providers"
:[],
"cleaners"
:[],
"swoole"
:{
"daemonize"
:
false
,
"dispatch_mode"
:
2
,
"reactor_num"
:
4
,
"worker_num"
:
"3"
,
"task_worker_num"
:
3
,
"task_ipc_mode"
:
1
,
"task_max_request"
:
8000
,
"task_tmpdir"
:
"/tmp"
,
"max_request"
:
8000
,
"open_tcp_nodelay"
:
true
,
"pid_file"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service/storage/laravels.pid"
,
"log_file"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service/storage/logs/swoole-2020-05.log"
,
"log_level"
:
4
,
"document_root"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service/public"
,
"buffer_output_size"
:
2097152
,
"socket_buffer_size"
:
134217728
,
"package_max_length"
:
4194304
,
"reload_async"
:
true
,
"max_wait_time"
:
60
,
"enable_reuse_port"
:
true
,
"enable_coroutine"
:
false
,
"http_compression"
:
false
},
"enable_gzip"
:
false
,
"process_prefix"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service"
,
"ignore_check_pid"
:
false
},
"laravel"
:{
"root_path"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service"
,
"static_path"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service/public"
,
"cleaners"
:[],
"register_providers"
:[],
"is_lumen"
:
true
,
"_SERVER"
:{
"SHELL"
:
"/bin/bash"
,
"TERM"
:
"xterm-256color"
,
"HOMEBREW_BOTTLE_DOMAIN"
:
"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"
,
"TMPDIR"
:
"/var/folders/vd/95yw3kdx65n1qw9ggmkkkp7c0000gn/T/"
,
"Apple_PubSub_Socket_Render"
:
"/private/tmp/com.apple.launchd.Kf23TI0KAV/Render"
,
"USER"
:
"gongyang"
,
"SSH_AUTH_SOCK"
:
"/private/tmp/com.apple.launchd.DbjEFRUETz/Listeners"
,
"__CF_USER_TEXT_ENCODING"
:
"0x1F5:0x19:0x34"
,
"PATH"
:
"/usr/local/opt/mysql@5.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin"
,
"_"
:
"/usr/bin/php"
,
"PWD"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service"
,
"XPC_FLAGS"
:
"0x0"
,
"XPC_SERVICE_NAME"
:
"0"
,
"HOME"
:
"/Users/gongyang"
,
"SHLVL"
:
"2"
,
"LOGNAME"
:
"gongyang"
,
"LC_CTYPE"
:
"zh_CN.UTF-8"
,
"PHP_SELF"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service/artisan"
,
"SCRIPT_NAME"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service/artisan"
,
"SCRIPT_FILENAME"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service/artisan"
,
"PATH_TRANSLATED"
:
"/usr/local/var/www/ichunt/scm_wms_outstore_service/artisan"
,
"DOCUMENT_ROOT"
:
""
,
"REQUEST_TIME_FLOAT"
:
1589626033.516496
,
"REQUEST_TIME"
:
1589626033
,
"argv"
:[
"/usr/local/var/www/ichunt/scm_wms_outstore_service/artisan"
,
"laravels"
,
"config"
],
"argc"
:
3
,
"APP_ENV"
:
"local"
,
"APP_DEBUG"
:
"true"
,
"APP_KEY"
:
""
,
"APP_TIMEZONE"
:
"PRC"
,
"DB_TIMEZONE"
:
"+08:00"
,
"SYSTEM_CODE"
:
"01"
,
"SYSTEM_NAME"
:
"服务初始服务(开发环境)"
,
"LARAVELS_LISTEN_IP"
:
"0.0.0.0"
,
"LARAVELS_LISTEN_PORT"
:
"40003"
,
"worker_num"
:
"3"
,
"DB_CONNECTION"
:
"mysql"
,
"DB_HOST"
:
"192.168.2.232"
,
"DB_USERNAME"
:
"liexin_scm_wms"
,
"DB_PASSWORD"
:
"liexin_scm_wms#zsyM"
,
"DB_PORT"
:
"3306"
,
"DB_DATABASE"
:
"liexin_scm_wms"
,
"DB_PREFIX"
:
"lie_"
,
"REDIS_HOST"
:
"192.168.1.235"
,
"REDIS_PASSWORD"
:
"icDb29mLy2s"
,
"REDIS_PORT"
:
"6379"
,
"REDIS_READ_HOST"
:
"192.168.1.237"
,
"REDIS_READ_PASSWORD"
:
"icDb29mLy2s"
,
"REDIS_READ_PORT"
:
"6379"
,
"CACHE_DRIVER"
:
"file"
,
"QUEUE_DRIVER"
:
"sync"
,
"RABBIT_IP"
:
"192.168.1.237"
,
"RABBIT_PORT"
:
"5672"
,
"RABBIT_USER"
:
"huntadmin"
,
"RABBIT_PASS"
:
"jy2y2900"
,
"RABBITMQ_LOG_HOST"
:
"192.168.1.237"
,
"RABBITMQ_LOG_PORT"
:
"5672"
,
"RABBITMQ_LOG_VHOST"
:
"/"
,
"RABBITMQ_LOG_LOGIN"
:
"huntadmin"
,
"RABBITMQ_LOG_PASSWORD"
:
"jy2y2900"
,
"RABBITMQ_LOG_QUEUE"
:
"scm_wms_log"
,
"SHELL_VERBOSITY"
:
0
},
"_ENV"
:{
"APP_ENV"
:
"local"
,
"APP_DEBUG"
:
"true"
,
"APP_KEY"
:
""
,
"APP_TIMEZONE"
:
"PRC"
,
"DB_TIMEZONE"
:
"+08:00"
,
"SYSTEM_CODE"
:
"01"
,
"SYSTEM_NAME"
:
"服务初始服务(开发环境)"
,
"LARAVELS_LISTEN_IP"
:
"0.0.0.0"
,
"LARAVELS_LISTEN_PORT"
:
"40003"
,
"worker_num"
:
"3"
,
"DB_CONNECTION"
:
"mysql"
,
"DB_HOST"
:
"192.168.2.232"
,
"DB_USERNAME"
:
"liexin_scm_wms"
,
"DB_PASSWORD"
:
"liexin_scm_wms#zsyM"
,
"DB_PORT"
:
"3306"
,
"DB_DATABASE"
:
"liexin_scm_wms"
,
"DB_PREFIX"
:
"lie_"
,
"REDIS_HOST"
:
"192.168.1.235"
,
"REDIS_PASSWORD"
:
"icDb29mLy2s"
,
"REDIS_PORT"
:
"6379"
,
"REDIS_READ_HOST"
:
"192.168.1.237"
,
"REDIS_READ_PASSWORD"
:
"icDb29mLy2s"
,
"REDIS_READ_PORT"
:
"6379"
,
"CACHE_DRIVER"
:
"file"
,
"QUEUE_DRIVER"
:
"sync"
,
"RABBIT_IP"
:
"192.168.1.237"
,
"RABBIT_PORT"
:
"5672"
,
"RABBIT_USER"
:
"huntadmin"
,
"RABBIT_PASS"
:
"jy2y2900"
,
"RABBITMQ_LOG_HOST"
:
"192.168.1.237"
,
"RABBITMQ_LOG_PORT"
:
"5672"
,
"RABBITMQ_LOG_VHOST"
:
"/"
,
"RABBITMQ_LOG_LOGIN"
:
"huntadmin"
,
"RABBITMQ_LOG_PASSWORD"
:
"jy2y2900"
,
"RABBITMQ_LOG_QUEUE"
:
"scm_wms_log"
,
"SHELL_VERBOSITY"
:
0
}}}
\ No newline at end of file
\ No newline at end of file
storage/laravels.pid
View file @
da5b3369
25343
62165
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment