Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meibuyu-rpc
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
without authentication
meibuyu-rpc
Commits
624c4616
Commit
624c4616
authored
Nov 05, 2020
by
fuyunnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 原料rpc 先出库 再入库的rpc
parent
7081e331
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
StoreServiceInterface.php
src/Service/Interfaces/StoreServiceInterface.php
+23
-0
functions.php
src/functions.php
+12
-0
No files found.
src/Service/Interfaces/StoreServiceInterface.php
View file @
624c4616
...
...
@@ -196,4 +196,27 @@ interface StoreServiceInterface
*/
public
function
updateExOrder
(
$sourceNos
,
$where
,
$update
)
:
int
;
/**
* description:通过出库来源单号获取-对应的信息
* author: fuyunnan
* @param array $sources 来源单号数组
* @param array $status 出库单状态
* @param array $where 查询条件数组
* @return array
* @throws
* Date: 2020/11/5
*/
public
function
getByExSourceList
(
$sources
,
$status
=
[],
$where
=
[])
:
array
;
/**
* description:整合 先出库 然后 再入库数量 失败回滚
* author: fuyunnan
* @param array $outData 出库数组
* @param array $inData 出库数组
* @return array
* @throws
* Date: 2020/11/5
*/
public
function
transferUpdateOutAfterIn
(
$outData
,
$inData
)
:
array
;
}
src/functions.php
View file @
624c4616
...
...
@@ -787,3 +787,15 @@ if (!function_exists('str_replace_first')) {
return
$subject
;
}
}
if
(
!
function_exists
(
'create_file_dir'
))
{
/**
* 检查当前目录是否存在 不存在就创建一个目录
* @param mixed $dir 文件目录
* @return bool
* @author zero
*/
function
create_file_dir
(
$dir
)
{
return
!
is_dir
(
$dir
)
&&
mkdir
(
$dir
,
0777
,
true
);
}
}
\ 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