Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
O
OA
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
PHP
OA
Commits
bc600a7c
提交
bc600a7c
authored
8月 02, 2020
作者:
fengzy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
OA数据同步生产环境测试
上级
ef4bec13
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
39 行增加
和
84 行删除
+39
-84
emfkModel.php
webmain/model/flow/emfkModel.php
+4
-4
finfybxModel.php
webmain/model/flow/finfybxModel.php
+35
-80
没有找到文件。
webmain/model/flow/emfkModel.php
浏览文件 @
bc600a7c
...
...
@@ -189,23 +189,23 @@ class flow_emfkClassModel extends flowModel
$num
=
$array
[
'Result'
][
'Number'
];
$this
->
update
(
"`fbillno`='
$num
'"
,
$this
->
rs
[
'id'
]);
$this
->
erplog
(
$this
->
rs
[
'docnum'
],
'
fininfom
'
,
'保存成功'
,
json_encode
(
$array
),
date
(
"Y-m-d H:i:s"
),
2
,
$num
,
$array
[
'Result'
][
'Id'
],
1
);
$this
->
erplog
(
$this
->
rs
[
'docnum'
],
'
c_emfk
'
,
'保存成功'
,
json_encode
(
$array
),
date
(
"Y-m-d H:i:s"
),
2
,
$num
,
$array
[
'Result'
][
'Id'
],
1
);
if
(
$this
->
emfk_submit
(
$cloudUrl
,
$cookie_jar
,
$array
[
'Result'
][
'Id'
],
$array
[
'Result'
][
'Number'
])){
$this
->
erplog
(
$this
->
rs
[
'docnum'
],
'
fininfom
'
,
'提交成功'
,
json_encode
(
$array
),
date
(
"Y-m-d H:i:s"
),
2
,
$num
,
$array
[
'Result'
][
'Id'
],
2
);
$this
->
erplog
(
$this
->
rs
[
'docnum'
],
'
c_emfk
'
,
'提交成功'
,
json_encode
(
$array
),
date
(
"Y-m-d H:i:s"
),
2
,
$num
,
$array
[
'Result'
][
'Id'
],
2
);
}
else
{
$this
->
erplog
(
$this
->
rs
[
'docnum'
],
'
fininfom
'
,
'提交失败'
,
json_encode
(
$array
),
date
(
"Y-m-d H:i:s"
),
1
,
$num
,
$array
[
'Result'
][
'Id'
],
2
);
$this
->
erplog
(
$this
->
rs
[
'docnum'
],
'
c_emfk
'
,
'提交失败'
,
json_encode
(
$array
),
date
(
"Y-m-d H:i:s"
),
1
,
$num
,
$array
[
'Result'
][
'Id'
],
2
);
}
}
else
{
$this
->
erplog
(
$this
->
rs
[
'docnum'
],
'
fininfom
'
,
'保存失败'
,
json_encode
(
$array
),
date
(
"Y-m-d H:i:s"
),
1
,
$num
,
$array
[
'Result'
][
'Id'
],
1
);
$this
->
erplog
(
$this
->
rs
[
'docnum'
],
'
c_emfk
'
,
'保存失败'
,
json_encode
(
$array
),
date
(
"Y-m-d H:i:s"
),
1
,
$num
,
$array
[
'Result'
][
'Id'
],
1
);
m
(
'erplog'
)
->
insert
(
$erp_log
);
}
...
...
webmain/model/flow/finfybxModel.php
浏览文件 @
bc600a7c
...
...
@@ -316,98 +316,37 @@ class flow_finfybxClassModel extends flowModel
$post_content
=
self
::
create_postdata
(
$data
);
$result
=
self
::
invoke_add
(
$cloudUrl
,
$post_content
,
$cookie_jar
);
$array
=
json_decode
(
$result
,
true
);
var_dump
(
$array
);
if
(
$array
[
'Result'
][
'ResponseStatus'
][
'IsSuccess'
]){
$num
=
$array
[
'Result'
][
'Number'
];
$this
->
update
(
"`fbillno`='
$num
'"
,
$this
->
rs
[
'id'
]);
$erp_log
=
array
(
'sericnum'
=>
$this
->
rs
[
'docnum'
],
'table'
=>
'fininfom'
,
'name'
=>
'保存成功'
,
'remark'
=>
json_encode
(
$array
),
'optdt'
=>
date
(
"Y-m-d H:i:s"
),
'level'
=>
2
,
'fbillno'
=>
$num
,
'fbillnoid'
=>
$array
[
'Result'
][
'Id'
],
'fbillno_type'
=>
1
,
);
m
(
'erplog'
)
->
insert
(
$erp_log
);
$this
->
update
(
"`fsrcbillno`='
$num
'"
,
$this
->
rs
[
'id'
]);
$this
->
erplog
(
$this
->
rs
[
'docnum'
],
'fininfom'
,
'保存成功'
,
json_encode
(
$array
),
date
(
"Y-m-d H:i:s"
),
2
,
$num
,
$array
[
'Result'
][
'Id'
],
1
);
m
(
'erplog'
)
->
insert
(
$erp_log
);
if
(
$this
->
supplier_submit
(
$cloudUrl
,
$cookie_jar
,
$array
[
'Result'
][
'Id'
],
$array
[
'Result'
][
'Number'
])){
$erp_log
=
array
(
'sericnum'
=>
$this
->
rs
[
'docnum'
],
'table'
=>
'fininfom'
,
'name'
=>
'提交成功'
,
'remark'
=>
json_encode
(
$array
),
'optdt'
=>
date
(
"Y-m-d H:i:s"
),
'level'
=>
2
,
'fbillno'
=>
$num
,
'fbillnoid'
=>
$array
[
'Result'
][
'Id'
],
'fbillno_type'
=>
2
,
);
m
(
'erplog'
)
->
insert
(
$erp_log
);
$this
->
erplog
(
$this
->
rs
[
'docnum'
],
'fininfom'
,
'提交成功'
,
json_encode
(
$array
),
date
(
"Y-m-d H:i:s"
),
2
,
$num
,
$array
[
'Result'
][
'Id'
],
2
);
m
(
'erplog'
)
->
insert
(
$erp_log
);
}
else
{
$erp_log
=
array
(
'sericnum'
=>
$this
->
rs
[
'docnum'
],
'table'
=>
'fininfom'
,
'name'
=>
'提交失败'
,
'remark'
=>
json_encode
(
$array
),
'optdt'
=>
date
(
"Y-m-d H:i:s"
),
'level'
=>
1
,
'fbillno'
=>
$num
,
'fbillnoid'
=>
$array
[
'Result'
][
'Id'
],
'fbillno_type'
=>
2
,
);
m
(
'erplog'
)
->
insert
(
$erp_log
);
$this
->
erplog
(
$this
->
rs
[
'docnum'
],
'fininfom'
,
'提交失败'
,
json_encode
(
$array
),
date
(
"Y-m-d H:i:s"
),
1
,
$num
,
$array
[
'Result'
][
'Id'
],
2
);
m
(
'erplog'
)
->
insert
(
$erp_log
);
}
if
(
$this
->
supplier_audit
(
$cloudUrl
,
$cookie_jar
,
$array
[
'Result'
][
'Id'
],
$array
[
'Result'
][
'Number'
])){
$erp_log
=
array
(
'sericnum'
=>
$this
->
rs
[
'docnum'
],
'table'
=>
'fininfom'
,
'name'
=>
'审核成功'
,
'remark'
=>
json_encode
(
$array
),
'optdt'
=>
date
(
"Y-m-d H:i:s"
),
'level'
=>
2
,
'fbillno'
=>
$num
,
'fbillnoid'
=>
$array
[
'Result'
][
'Id'
],
'fbillno_type'
=>
3
,
);
m
(
'erplog'
)
->
insert
(
$erp_log
);
$this
->
erplog
(
$this
->
rs
[
'docnum'
],
'fininfom'
,
'审核成功'
,
json_encode
(
$array
),
date
(
"Y-m-d H:i:s"
),
2
,
$num
,
$array
[
'Result'
][
'Id'
],
3
);
m
(
'erplog'
)
->
insert
(
$erp_log
);
}
else
{
$erp_log
=
array
(
'sericnum'
=>
$this
->
rs
[
'docnum'
],
'table'
=>
'fininfom'
,
'name'
=>
'审核失败'
,
'remark'
=>
json_encode
(
$array
),
'optdt'
=>
date
(
"Y-m-d H:i:s"
),
'level'
=>
1
,
'fbillno'
=>
$num
,
'fbillnoid'
=>
$array
[
'Result'
][
'Id'
],
'fbillno_type'
=>
3
,
);
m
(
'erplog'
)
->
insert
(
$erp_log
);
$this
->
erplog
(
$this
->
rs
[
'docnum'
],
'fininfom'
,
'审核失败'
,
json_encode
(
$array
),
date
(
"Y-m-d H:i:s"
),
1
,
$num
,
$array
[
'Result'
][
'Id'
],
3
);
m
(
'erplog'
)
->
insert
(
$erp_log
);
}
}
else
{
$erp_log
=
array
(
'sericnum'
=>
$this
->
rs
[
'docnum'
],
'table'
=>
'fininfom'
,
'name'
=>
'保存失败'
,
'remark'
=>
json_encode
(
$array
),
'optdt'
=>
date
(
"Y-m-d H:i:s"
),
'level'
=>
1
,
'fbillno'
=>
$num
,
'fbillnoid'
=>
$array
[
'Result'
][
'Id'
],
'fbillno_type'
=>
1
,
);
m
(
'erplog'
)
->
insert
(
$erp_log
);
$this
->
erplog
(
$this
->
rs
[
'docnum'
],
'fininfom'
,
'保存失败'
,
json_encode
(
$array
),
date
(
"Y-m-d H:i:s"
),
1
,
$num
,
$array
[
'Result'
][
'Id'
],
1
);
m
(
'erplog'
)
->
insert
(
$erp_log
);
}
}
...
...
@@ -416,7 +355,23 @@ var_dump($array);
}
private
function
erplog
(
$sericnum
,
$table
,
$name
,
$remark
,
$optdt
,
$level
,
$fbillno
,
$fbillnoid
,
$fbillno_type
){
$erp_log
=
array
(
'sericnum'
=>
$sericnum
,
'table'
=>
$table
,
'name'
=>
$name
,
'remark'
=>
$remark
,
'optdt'
=>
$optdt
,
'level'
=>
$level
,
'fbillno'
=>
$fbillno
,
'fbillnoid'
=>
$fbillnoid
,
'fbillno_type'
=>
$fbillno_type
,
);
m
(
'erplog'
)
->
insert
(
$erp_log
);
}
//流程全部完成后调用
protected
function
flowcheckfinsh
(
$zt
){
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论