Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
O
OA
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
PHP
OA
Commits
e4ea485c
提交
e4ea485c
authored
5月 09, 2020
作者:
chengye
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
初始化项目2020-5-9
上级
5db83e68
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
10 行增加
和
24 行删除
+10
-24
opencustomerAction.php
webmain/task/openapi/opencustomerAction.php
+5
-13
openfkAction.php
webmain/task/openapi/openfkAction.php
+1
-1
opensupplierAction.php
webmain/task/openapi/opensupplierAction.php
+4
-10
没有找到文件。
webmain/task/openapi/opencustomerAction.php
浏览文件 @
e4ea485c
...
...
@@ -14,20 +14,12 @@ class opencustomerClassAction extends openapiAction
//客户列表
public
function
listAction
(){
$post
=
$_POST
;
$email
=
$post
[
'email'
];
$sql
=
"select u.id,u.email from oa_userinfo u where u.email = '
$email
'"
;
$post
=
$_POST
;
$page
=
$post
[
'size'
]
?
$post
[
'size'
]
:
0
;
$page_size
=
$post
[
'page_size'
]
?
$post
[
'page_size'
]
:
10
;
$sort
=
$post
[
'sort'
]
?
$post
[
'sort'
]
:
'desc'
;
$sql
=
'select id,contract_number,name from [Q]customer as c order by c.id '
.
$sort
.
' limit '
.
$page
.
','
.
$page_size
;
$data
=
$this
->
db
->
getall
(
$sql
);
$uid
=
$data
[
0
][
'id'
];
//用户id
$data
=
$this
->
db
->
getall
(
'select id,contract_number,name from
oa_customer
where (uid = '
.
$uid
.
'
or department_id=(select deptname from oa_userinfo where id='
.
$uid
.
')
or department_id like concat((select deptname from oa_userinfo where id='
.
$uid
.
'),",%")
or department_id like concat("%,",(select deptname from oa_userinfo where id='
.
$uid
.
'))
or department_id like concat("%,",(select deptname from oa_userinfo where id='
.
$uid
.
'),",%"))
and status = 1
order by id desc'
);
foreach
(
$data
as
$key
=>
$vo
){
$supp
=
'select open_bank_name,bank_code,bank_holder,open_address from [Q]customer_bank_info where mid='
.
$vo
[
'id'
];
$contacts
=
'select name,job,tel,email,adress,remarks from [Q]contracts where mid='
.
$vo
[
'id'
];
...
...
webmain/task/openapi/openfkAction.php
浏览文件 @
e4ea485c
...
...
@@ -69,7 +69,7 @@ class openfkClassAction extends openapiAction
}
//启动流程
$this
->
goflow
(
$id
);
$this
->
showreturn
([
'numb'
=>
$this
->
data
[
'docnum'
]],
'插入数据成功'
,
'200'
);
$this
->
showreturn
([
'numb'
=>
$this
->
data
[
'docnum'
]
,
'id'
=>
$id
],
'插入数据成功'
,
'200'
);
}
else
$this
->
showreturn
([],
'插入数据失败'
,
'201'
);
}
...
...
webmain/task/openapi/opensupplierAction.php
浏览文件 @
e4ea485c
...
...
@@ -15,17 +15,11 @@ class opensupplierClassAction extends openapiAction
//供应商列表
public
function
listAction
(){
$post
=
$_POST
;
$email
=
$post
[
'email'
];
$sql
=
"select u.id,u.email from oa_userinfo u where u.email = '
$email
'"
;
$page
=
$post
[
'size'
]
?
$post
[
'size'
]
:
0
;
$page_size
=
$post
[
'page_size'
]
?
$post
[
'page_size'
]
:
10
;
$sort
=
$post
[
'sort'
]
?
$post
[
'sort'
]
:
'desc'
;
$sql
=
'select id,number,name from [Q]supplier as c order by c.id '
.
$sort
.
' limit '
.
$page
.
','
.
$page_size
;
$data
=
$this
->
db
->
getall
(
$sql
);
$uid
=
$data
[
0
][
'id'
];
//用户id
$data
=
$this
->
db
->
getall
(
'select id,number,name from oa_supplier where (uid = '
.
$uid
.
'
or department_id=(select deptname from oa_userinfo where id='
.
$uid
.
')
or department_id like concat((select deptname from oa_userinfo where id='
.
$uid
.
'),",%")
or department_id like concat("%,",(select deptname from oa_userinfo where id='
.
$uid
.
'))
or department_id like concat("%,",(select deptname from oa_userinfo where id='
.
$uid
.
'),",%"))
and status = 1
order by id desc'
);
foreach
(
$data
as
$key
=>
$vo
){
$supp
=
'select open_bank_name,bank_code,bank_holder,open_address from [Q]supplier_bank_info where mid='
.
$vo
[
'id'
];
$contacts
=
'select name,job,tel,email,adress,remarks from [Q]supplier_contract where mid='
.
$vo
[
'id'
];
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论