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
8e361801
Commit
8e361801
authored
Mar 10, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 更新
parent
f5bfce65
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
CostQueryPageReq.java
...m/blt/other/module/cost/dto/request/CostQueryPageReq.java
+0
-3
Cost.xml
cost-service/src/main/resources/mapper/Cost.xml
+2
-2
AbstractCostServiceTest.java
...odule/cost/service/impl/cost/AbstractCostServiceTest.java
+10
-0
No files found.
cost-service/src/main/java/com/blt/other/module/cost/dto/request/CostQueryPageReq.java
View file @
8e361801
...
@@ -31,9 +31,6 @@ public class CostQueryPageReq extends BaseRequest {
...
@@ -31,9 +31,6 @@ public class CostQueryPageReq extends BaseRequest {
@ApiModelProperty
(
"1 付款费用 2 收款费用 3 借支/借还"
)
@ApiModelProperty
(
"1 付款费用 2 收款费用 3 借支/借还"
)
private
Integer
costForm
;
private
Integer
costForm
;
@ApiModelProperty
(
"创建人id"
)
private
Integer
createUserid
;
@ApiModelProperty
(
"费用单状态 0 待提交 1- 待财务审核 2待出纳付款 3被驳回 4已支付 5已作废 6-待部门审核 7-待财务审核 8-待最终审核人审核"
)
@ApiModelProperty
(
"费用单状态 0 待提交 1- 待财务审核 2待出纳付款 3被驳回 4已支付 5已作废 6-待部门审核 7-待财务审核 8-待最终审核人审核"
)
private
String
costStatus
;
private
String
costStatus
;
...
...
cost-service/src/main/resources/mapper/Cost.xml
View file @
8e361801
...
@@ -282,7 +282,7 @@
...
@@ -282,7 +282,7 @@
group_concat(distinct t2.username) as cost_current_reviewer
group_concat(distinct t2.username) as cost_current_reviewer
from cost t1
from cost t1
left join cost_current_reviewer t2 on t1.cost_no = t2.cost_no
left join cost_current_reviewer t2 on t1.cost_no = t2.cost_no
<if
test=
" req.c
reateUseri
d!=null "
>
<if
test=
" req.c
urrentUserI
d!=null "
>
left join (select t3.oa_user_id, cc.company_no from bailun_other.oa_user t3
left join (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 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 role_cost_company_binding rccb on urb.role_id = rccb.role_id
...
@@ -295,7 +295,7 @@
...
@@ -295,7 +295,7 @@
<if
test=
" req.costForm!=null and req.costForm != ''"
>
and t1.cost_form= #{req.costForm}
</if>
<if
test=
" req.costForm!=null and req.costForm != ''"
>
and t1.cost_form= #{req.costForm}
</if>
<if
test=
" req.isLend!=null and req.isLend != ''"
>
and t1.is_lend=#{req.isLend}
</if>
<if
test=
" req.isLend!=null and req.isLend != ''"
>
and t1.is_lend=#{req.isLend}
</if>
<if
test=
" req.companyNo!=null and req.companyNo != ''"
>
and t1.company_no=#{req.companyNo}
</if>
<if
test=
" req.companyNo!=null and req.companyNo != ''"
>
and t1.company_no=#{req.companyNo}
</if>
<if
test=
" req.c
reateUseri
d!=null "
>
and (t1.create_userid=#{req.createUserid} or t.company_no is not null)
</if>
<if
test=
" req.c
urrentUserI
d!=null "
>
and (t1.create_userid=#{req.createUserid} or t.company_no is not null)
</if>
<if
test=
" req.costStatus!=null "
>
and find_in_set(t1.cost_status,#{req.costStatus})
</if>
<if
test=
" req.costStatus!=null "
>
and find_in_set(t1.cost_status,#{req.costStatus})
</if>
<if
test=
" req.lendStatus!=null "
>
and t1.lend_status=#{req.lendStatus}
</if>
<if
test=
" req.lendStatus!=null "
>
and t1.lend_status=#{req.lendStatus}
</if>
<if
test=
" req.isTax!=null "
>
and t1.is_tax=#{req.isTax}
</if>
<if
test=
" req.isTax!=null "
>
and t1.is_tax=#{req.isTax}
</if>
...
...
cost-service/src/test/java/com/blt/other/module/cost/service/impl/cost/AbstractCostServiceTest.java
View file @
8e361801
...
@@ -6,6 +6,7 @@ import com.bailuntec.common.JsonUtilByFsJson;
...
@@ -6,6 +6,7 @@ import com.bailuntec.common.JsonUtilByFsJson;
import
com.blt.other.common.config.property.CostUrlProperties
;
import
com.blt.other.common.config.property.CostUrlProperties
;
import
com.blt.other.database.model.CostCompanyDomain
;
import
com.blt.other.database.model.CostCompanyDomain
;
import
com.blt.other.module.cost.dao.CostCompanyDao
;
import
com.blt.other.module.cost.dao.CostCompanyDao
;
import
com.blt.other.module.cost.dto.request.CostQueryPageReq
;
import
com.blt.other.module.cost.model.CostDomain
;
import
com.blt.other.module.cost.model.CostDomain
;
import
com.blt.other.module.cost.service.CostService
;
import
com.blt.other.module.cost.service.CostService
;
import
com.blt.other.module.cost.vo.CashierCallbackUrlDataDataVo
;
import
com.blt.other.module.cost.vo.CashierCallbackUrlDataDataVo
;
...
@@ -164,5 +165,14 @@ class AbstractCostServiceTest {
...
@@ -164,5 +165,14 @@ class AbstractCostServiceTest {
void
cashierCallbackPass
()
{
void
cashierCallbackPass
()
{
}
}
@Rollback
@Test
void
queryPage
(){
CostQueryPageReq
req
=
new
CostQueryPageReq
();
req
.
setCurrentUserId
(
3108
);
costService
.
queryPage
(
req
);
}
}
}
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