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
23880043
Commit
23880043
authored
Jan 11, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
搜索
parent
9e571a11
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
1 deletion
+48
-1
CheckCostListReq.java
...m/blt/other/module/cost/dto/request/CheckCostListReq.java
+16
-1
Cost.xml
bailuntec-cost-core/src/main/resources/mapper/Cost.xml
+32
-0
No files found.
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/dto/request/CheckCostListReq.java
View file @
23880043
package
com
.
blt
.
other
.
module
.
cost
.
dto
.
request
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.Data
;
/**
...
...
@@ -27,4 +26,20 @@ public class CheckCostListReq {
private
String
costNo
;
@ApiModelProperty
(
"主体码"
)
private
String
companyNo
;
private
Integer
costForm
;
private
Integer
isLend
;
@ApiModelProperty
(
"费用会计类型 "
)
private
String
accountingSubjectNo
;
@ApiModelProperty
(
"费用类型 "
)
private
String
typeNo
;
@ApiModelProperty
(
"状态 "
)
private
Integer
costStatus
;
@ApiModelProperty
(
"创建人(模糊搜索) "
)
private
String
createUsername
;
}
bailuntec-cost-core/src/main/resources/mapper/Cost.xml
View file @
23880043
...
...
@@ -462,6 +462,31 @@
</if>
</select>
<sql
id=
"checkCostListSearch"
>
<if
test=
"req.companyNo!=null and req.companyNo!='' "
>
and t1.company_no = #{req.companyNo}
</if>
<if
test=
"req.costForm!=null"
>
and t1.cost_form = #{req.costForm}
</if>
<if
test=
"req.isLend!=null"
>
and t1.is_lend = #{req.isLend}
</if>
<if
test=
"req.accountingSubjectNo!=null and req.accountingSubjectNo!='' "
>
and t1.accounting_subject_no = #{req.accountingSubjectNo}
</if>
<if
test=
"req.typeNo!=null and req.typeNo!='' "
>
and t1.type_no = #{req.typeNo}
</if>
<if
test=
"req.costStatus!=null "
>
and t1.cost_status = #{req.costStatus}
</if>
<if
test=
"req.createUsername!=null and req.createUsername!='' "
>
and t1.create_username = #{req.createUsername}
</if>
</sql>
<!--待部门审核-->
<select
id=
"departmentCheckCostList"
resultType=
"com.blt.other.module.cost.model.CostDomain"
>
select t1.*
...
...
@@ -472,6 +497,7 @@
<if
test=
"req.costNo !=null and req.costNo !=''"
>
and (t1.bank_card_user like concat('%',#{req.costNo},'%') or t1.cost_no = #{req.costNo})
</if>
<include
refid=
"checkCostListSearch"
/>
</select>
<!--待我部门审核 + 我已经部门手动审核 + 我已经部门自动审核-->
...
...
@@ -490,6 +516,7 @@
<if
test=
"req.costNo !=null and req.costNo !=''"
>
and (t1.bank_card_user like concat('%',#{req.costNo},'%') or t1.cost_no = #{req.costNo})
</if>
<include
refid=
"checkCostListSearch"
/>
</select>
<!--我手动部门审核过的 -->
...
...
@@ -503,8 +530,10 @@
<if
test=
"req.costNo !=null and req.costNo !=''"
>
and (t1.bank_card_user like concat('%',#{req.costNo},'%') or t1.cost_no = #{req.costNo})
</if>
<include
refid=
"checkCostListSearch"
/>
</select>
<!--我部门自动审核过的 -->
<select
id=
"departmentAutoCheckLllCostList"
resultType=
"com.blt.other.module.cost.model.CostDomain"
>
select t1.*
...
...
@@ -516,6 +545,7 @@
<if
test=
"req.costNo !=null and req.costNo !=''"
>
and (t1.bank_card_user like concat('%',#{req.costNo},'%') or t1.cost_no = #{req.costNo})
</if>
<include
refid=
"checkCostListSearch"
/>
</select>
<!--需要我财务审核的-->
...
...
@@ -528,6 +558,7 @@
<if
test=
"req.costNo !=null and req.costNo !=''"
>
and (t1.bank_card_user like concat('%',#{req.costNo},'%') or t1.cost_no = #{req.costNo})
</if>
<include
refid=
"checkCostListSearch"
/>
</select>
<!--需要我人事审核的-->
...
...
@@ -540,6 +571,7 @@
<if
test=
"req.costNo !=null and req.costNo !=''"
>
and (t1.bank_card_user like concat('%',#{req.costNo},'%') or t1.cost_no = #{req.costNo})
</if>
<include
refid=
"checkCostListSearch"
/>
</select>
<select
id=
"selectByStatus"
resultType=
"com.blt.other.module.cost.model.CostDomain"
>
...
...
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