Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bailuntec-cost
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
huluobin
bailuntec-cost
Commits
c05747d1
Commit
c05747d1
authored
Jan 30, 2026
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
smart enjoy home goods limited 支持鹏哥审核
parent
c9a58952
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
2 deletions
+46
-2
GeneralManagerCheckState.java
...cost/service/impl/costcheck/GeneralManagerCheckState.java
+10
-2
generated_sql.txt
generated_sql.txt
+36
-0
No files found.
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costcheck/GeneralManagerCheckState.java
View file @
c05747d1
...
...
@@ -83,7 +83,11 @@ public class GeneralManagerCheckState extends CostState {
}
if
(
currentUserId
!=
null
)
{
//目前限定铭哥能审核或者主体是啫啫煲鹏哥能审核
if
(
currentUserId
==
681
||
(
"啫啫煲"
.
equals
(
costDomain
.
getCompanyName
())
&&
currentUserId
==
720
)
||
(
"广州猫哥饮食文化传播有限公司"
.
equals
(
costDomain
.
getCompanyName
())
&&
currentUserId
==
5126
))
{
if
(
currentUserId
==
681
||
(
"啫啫煲"
.
equals
(
costDomain
.
getCompanyName
())
&&
currentUserId
==
720
)
||
(
"smart enjoy home goods limited"
.
equals
(
costDomain
.
getCompanyName
())
&&
currentUserId
==
720
)
||
(
"广州猫哥饮食文化传播有限公司"
.
equals
(
costDomain
.
getCompanyName
())
&&
currentUserId
==
5126
)
)
{
//大于等于5需要铭哥审批
if
(
costDomain
.
getAmountRmb
().
compareTo
(
new
BigDecimal
(
"5000"
))
>=
0
||
(
"啫啫煲"
.
equals
(
costDomain
.
getCompanyName
())
&&
costDomain
.
getAmountRmb
().
compareTo
(
new
BigDecimal
(
"1000"
))
>=
0
))
{
costDomain
.
setCostStatus
(
CostDomain
.
STATUS_FINANCIAL_CHECK
);
...
...
@@ -121,7 +125,11 @@ public class GeneralManagerCheckState extends CostState {
}
//人工审核拒绝
if
(
currentUserId
==
681
||
currentUserId
==
4828
||
(
"啫啫煲"
.
equals
(
costDomain
.
getCompanyName
())
&&
currentUserId
==
720
)
||
(
"广州猫哥饮食文化传播有限公司"
.
equals
(
costDomain
.
getCompanyName
())
&&
currentUserId
==
5126
))
{
if
(
currentUserId
==
681
||
currentUserId
==
4828
||
(
"啫啫煲"
.
equals
(
costDomain
.
getCompanyName
())
&&
currentUserId
==
720
)
||
(
"广州猫哥饮食文化传播有限公司"
.
equals
(
costDomain
.
getCompanyName
())
&&
currentUserId
==
5126
)
)
{
ApprovalHistoryDomain
approvalHistoryDomain
=
ApprovalHistoryDomain
.
builder
()
.
approvalUserId
(
currentUserId
)
.
approvalTime
(
LocalDateTime
.
now
())
...
...
generated_sql.txt
0 → 100644
View file @
c05747d1
-- 根据参数 {"currentUserId":844,"key":"HZJ202512160010","pageNum":1,"pageSize":50} 生成的实际SQL语句
SELECT
t1.*,
group_concat(distinct t2.username) as cost_current_reviewer
FROM cost t1
LEFT JOIN cost_current_reviewer t2 ON t1.cost_no = t2.cost_no
-- 因为currentUserId不为null,所以添加用户权限关联查询
LEFT JOIN (
SELECT * FROM (
SELECT t3.oa_user_id, cc.company_no
FROM bailun_other.oa_user t3
LEFT JOIN user_role_binding urb ON t3.oa_user_id = urb.oa_user_id
LEFT JOIN role_cost_company_binding rccb ON urb.role_id = rccb.role_id
LEFT JOIN cost_company cc ON rccb.cost_company_id = cc.`id`
WHERE t3.oa_user_id = 844
) tt
GROUP BY company_no
) t ON t1.company_no = t.company_no
WHERE
TRUE
-- 添加currentUserId条件:只能查看自己创建的或有权限查看的公司的费用单
AND (t1.create_userid=844 OR t.company_no IS NOT NULL)
-- 因为key不为null,会被分割成keys列表,添加关键字搜索条件
AND (FALSE
OR t1.cost_plan_no = 'HZJ202512160010'
OR t1.cost_no LIKE CONCAT('%','HZJ202512160010','%')
OR t1.type_name LIKE CONCAT('%','HZJ202512160010','%')
OR t1.company_name LIKE CONCAT('%','HZJ202512160010','%')
OR t1.bank_card_user LIKE CONCAT('%','HZJ202512160010','%')
)
GROUP BY t1.id
ORDER BY t1.id DESC
-- 分页参数:pageNum=1, pageSize=50,MyBatis会自动添加LIMIT
LIMIT 0, 50;
\ 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