Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
O
OA
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
PHP
OA
Commits
9810fc35
提交
9810fc35
authored
5月 26, 2020
作者:
chengye
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test api接口
上级
ea6062c1
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
30 行增加
和
72 行删除
+30
-72
finfybxModel.php
webmain/model/flow/finfybxModel.php
+29
-63
loginModel.php
webmain/model/loginModel.php
+0
-7
openfkAction.php
webmain/task/openapi/openfkAction.php
+1
-2
没有找到文件。
webmain/model/flow/finfybxModel.php
浏览文件 @
9810fc35
<?php
<?php
class
flow_finfybxClassModel
extends
flowModel
class
flow_finfybxClassModel
extends
flowModel
{
{
public
function
flowcheckname
(
$num
)
{
public
function
flowcheckname
(
$num
){
$arr
=
[];
$arr
=
[];
if
(
$num
==
'abc'
)
if
(
$num
==
'abc'
)
{
{
$arr
[
"
$sid
"
]
=
"982"
;
$arr
[
"
$sid
"
]
=
"982"
;
$arr
[
"
$sna
"
]
=
"εÑàéª"
;
$arr
[
"
$sna
"
]
=
"εÑàéª"
;
}
}
return
$arr
;
return
$arr
;
}
}
//流程全部完成后调用
//流程全部完成后调用
protected
function
flowcheckfinsh
(
$zt
){
protected
function
flowcheckfinsh
(
$zt
)
{
// 扣除账户余额 c_fund_account account_balance
// 扣除账户余额 c_fund_account account_balance
$cbzxid
=
$this
->
rs
[
'cbxmid'
];
$cbzxid
=
$this
->
rs
[
'cbxmid'
];
$model
=
'c_fund_account'
;
$model
=
'c_fund_account'
;
$sql
=
" cost_id ='
$cbzxid
' and status = 1 and is_default=1"
;
$sql
=
" cost_id ='
$cbzxid
' and status = 1 and is_default=1"
;
$data
=
m
(
$model
)
->
getone
(
$sql
,
'id,name,account_balance'
);
$data
=
m
(
$model
)
->
getone
(
$sql
,
'id,name,account_balance'
);
$zfarr
=
array
(
$zfarr
=
array
(
'account_balance'
=>
$data
[
'account_balance'
]
-
$this
->
rs
[
'money'
],
'account_balance'
=>
$data
[
'account_balance'
]
-
$this
->
rs
[
'money'
],
);
);
$id
=
$data
[
'id'
];
$id
=
$data
[
'id'
];
m
(
'c_fund_account'
)
->
update
(
$zfarr
,
"`id`='
$id
'"
);
m
(
'c_fund_account'
)
->
update
(
$zfarr
,
"`id`='
$id
'"
);
// 成本中心 amount 变更
// 成本中心 amount 变更
$cbzx
=
substr
(
$cbzxid
,
0
,
strrpos
(
$cbzxid
,
"("
));
$cbzx
=
substr
(
$cbzxid
,
0
,
strrpos
(
$cbzxid
,
"("
));
$cbzxsql
=
" code ='
$cbzx
' and status = 1"
;
$cbzxsql
=
" code ='
$cbzx
' and status = 1"
;
$cbzxdata
=
m
(
'c_cbzx'
)
->
getone
(
$cbzxsql
,
'id,amount'
);
$cbzxdata
=
m
(
'c_cbzx'
)
->
getone
(
$cbzxsql
,
'id,amount'
);
$cbarr
=
array
(
$cbarr
=
array
(
'amount'
=>
$cbzxdata
[
'amount'
]
+
$this
->
rs
[
'money'
],
'amount'
=>
$cbzxdata
[
'amount'
]
+
$this
->
rs
[
'money'
],
);
);
m
(
'c_cbzx'
)
->
update
(
$cbarr
,
"`code`='
$cbzx
'"
);
m
(
'c_cbzx'
)
->
update
(
$cbarr
,
"`code`='
$cbzx
'"
);
//账户明细 c_account_detail
//账户明细 c_account_detail
$account_detail
=
array
(
$account_detail
=
array
(
<<<<<<<
HEAD
'account'
=>
$data
[
'name'
],
'account'
=>
$data
[
'name'
],
'opt_type'
=>
2
,
'opt_type'
=>
2
,
'amount'
=>
$this
->
rs
[
'money'
],
'amount'
=>
$this
->
rs
[
'money'
],
'trans_numb'
=>
$this
->
rs
[
'docnum'
],
'trans_numb'
=>
$this
->
rs
[
'docnum'
],
'account_balance'
=>
$data
[
'account_balance'
]
-
$this
->
rs
[
'money'
],
'account_balance'
=>
$data
[
'account_balance'
]
-
$this
->
rs
[
'money'
],
'create_time'
=>
date
(
"Y-m-d H:i:s"
),
'create_time'
=>
date
(
"Y-m-d H:i:s"
),
'uid'
=>
$this
->
rs
[
'uid'
],
'uid'
=>
$this
->
rs
[
'uid'
],
);
);
m
(
'c_account_detail'
)
->
insert
(
$account_detail
);
m
(
'c_account_detail'
)
->
insert
(
$account_detail
);
// 业务付款8业务预付款10费用报销11 oa_c_fund_detail
// 业务付款8业务预付款10费用报销11 oa_c_fund_detail
=======
$fund_detail
=
array
(
'account'
=>
$data
[
'name'
],
'opt_type'
=>
2
,
'amount'
=>
$this
->
rs
[
'money'
],
'trans_numb'
=>
$this
->
rs
[
'docnum'
],
'trans_numb'
=>
$this
->
rs
[
'docnum'
],
'account_balance'
=>
$data
[
'account_balance'
]
-
$this
->
rs
[
'money'
],
'create_time'
=>
date
(
"Y-m-d H:i:s"
),
'uid'
=>
$this
->
rs
[
'uid'
],
);
m
(
'c_account_detail'
)
->
insert
(
$account_detail
);
// 业务付款8业务预付款10费用报销11 oa_c_fund_detail
>>>>>>>
master
$fund_detail
=
array
(
'trans_numb'
=>
$this
->
rs
[
'docnum'
],
'account'
=>
$data
[
'name'
],
'account'
=>
$data
[
'name'
],
'toaccount'
=>
''
,
'toaccount'
=>
''
,
'trans_amount'
=>
$this
->
rs
[
'money'
],
'trans_amount'
=>
$this
->
rs
[
'money'
],
'business_type'
=>
11
,
'business_type'
=>
11
,
'opt_type'
=>
2
,
'opt_type'
=>
2
,
'account_balance'
=>
$data
[
'account_balance'
]
-
$this
->
rs
[
'money'
],
'account_balance'
=>
$data
[
'account_balance'
]
-
$this
->
rs
[
'money'
],
'create_time'
=>
date
(
"Y-m-d H:i:s"
),
'create_time'
=>
date
(
"Y-m-d H:i:s"
),
'uid'
=>
$this
->
rs
[
'uid'
],
'uid'
=>
$this
->
rs
[
'uid'
],
);
);
m
(
'c_fund_detail'
)
->
insert
(
$fund_detail
);
m
(
'c_fund_detail'
)
->
insert
(
$fund_detail
);
<<<<<<<
HEAD
=======
>>>>>>>
master
}
}
}
}
\ No newline at end of file
webmain/model/loginModel.php
浏览文件 @
9810fc35
...
@@ -52,7 +52,6 @@ class loginClassModel extends Model
...
@@ -52,7 +52,6 @@ class loginClassModel extends Model
$logyzbo
=
true
;
$logyzbo
=
true
;
}
}
$fields
=
'`pass`,`id`,`name`,`user`,`mobile`,`face`,`deptname`,`deptallname`,`ranking`,`apptx`'
;
$fields
=
'`pass`,`id`,`name`,`user`,`mobile`,`face`,`deptname`,`deptallname`,`ranking`,`apptx`'
;
$posts
=
$user
;
$posts
=
$user
;
if
(
$posts
==
'管理员'
)
return
'不能使用管理员的名字登录'
;
if
(
$posts
==
'管理员'
)
return
'不能使用管理员的名字登录'
;
...
@@ -102,7 +101,6 @@ class loginClassModel extends Model
...
@@ -102,7 +101,6 @@ class loginClassModel extends Model
if
(
$us
)
$loginx
=
'编号'
;
if
(
$us
)
$loginx
=
'编号'
;
}
}
if
(
!
$us
){
if
(
!
$us
){
$arrs
=
array
(
$arrs
=
array
(
'name'
=>
$user
,
'name'
=>
$user
,
...
@@ -116,14 +114,12 @@ class loginClassModel extends Model
...
@@ -116,14 +114,12 @@ class loginClassModel extends Model
if
(
$us
)
$loginx
=
'姓名'
;
if
(
$us
)
$loginx
=
'姓名'
;
}
}
if
(
$msg
==
''
&&
!
$us
){
if
(
$msg
==
''
&&
!
$us
){
$msg
=
'用户不存在'
;
$msg
=
'用户不存在'
;
}
else
if
(
$msg
==
''
){
}
else
if
(
$msg
==
''
){
$uid
=
$us
[
'id'
];
$uid
=
$us
[
'id'
];
$user
=
$us
[
'user'
];
$user
=
$us
[
'user'
];
//验证码登录
//验证码登录
if
(
$ltype
==
1
){
if
(
$ltype
==
1
){
$yarr
=
c
(
'xinhuapi'
)
->
checkcode
(
$mobile
,
$yanzm
,
$device
);
$yarr
=
c
(
'xinhuapi'
)
->
checkcode
(
$mobile
,
$yanzm
,
$device
);
...
@@ -156,8 +152,6 @@ class loginClassModel extends Model
...
@@ -156,8 +152,6 @@ class loginClassModel extends Model
}
}
}
}
//其他时判断,单点登录
//其他时判断,单点登录
if
(
$this
->
loginrand
!=
''
&&
$pass
==
$this
->
loginrand
){
if
(
$this
->
loginrand
!=
''
&&
$pass
==
$this
->
loginrand
){
$msg
=
''
;
$msg
=
''
;
...
@@ -386,7 +380,6 @@ class loginClassModel extends Model
...
@@ -386,7 +380,6 @@ class loginClassModel extends Model
if
(
$uids
!=
''
)
m
(
'admin'
)
->
update
(
'`online`=1'
,
"`id` in("
.
substr
(
$uids
,
1
)
.
")"
);
if
(
$uids
!=
''
)
m
(
'admin'
)
->
update
(
'`online`=1'
,
"`id` in("
.
substr
(
$uids
,
1
)
.
")"
);
}
}
//首页登录统计
//首页登录统计
public
function
homejtLogin
()
public
function
homejtLogin
()
{
{
...
...
webmain/task/openapi/openfkAction.php
浏览文件 @
9810fc35
...
@@ -17,9 +17,7 @@ class openfkClassAction extends openapiAction
...
@@ -17,9 +17,7 @@ class openfkClassAction extends openapiAction
{
{
$data
=
json_decode
(
$this
->
post
(
'data'
),
true
);
$data
=
json_decode
(
$this
->
post
(
'data'
),
true
);
if
(
empty
(
$data
))
$this
->
showreturn
([],
'请求的参数不能为空!'
,
'201'
);
if
(
empty
(
$data
))
$this
->
showreturn
([],
'请求的参数不能为空!'
,
'201'
);
if
(
!
empty
(
$data
[
'docnum'
]))
$this
->
data
[
'docnum'
]
=
$data
[
'docnum'
];
//如果是编辑则携带编码
if
(
!
empty
(
$data
[
'docnum'
]))
$this
->
data
[
'docnum'
]
=
$data
[
'docnum'
];
//如果是编辑则携带编码
$user
=
$this
->
getUser
(
$data
[
'uname'
]);
$user
=
$this
->
getUser
(
$data
[
'uname'
]);
if
(
$data
[
'type'
]
==
1
)
{
if
(
$data
[
'type'
]
==
1
)
{
...
@@ -59,6 +57,7 @@ class openfkClassAction extends openapiAction
...
@@ -59,6 +57,7 @@ class openfkClassAction extends openapiAction
public
function
createAction
()
public
function
createAction
()
{
{
$id
=
m
(
$this
->
model
)
->
insert
(
$this
->
data
);
$id
=
m
(
$this
->
model
)
->
insert
(
$this
->
data
);
die
(
$id
);
if
(
$id
)
{
if
(
$id
)
{
//插入子表数据
//插入子表数据
$smode
=
m
(
$this
->
model
.
'Detail'
);
$smode
=
m
(
$this
->
model
.
'Detail'
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论