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
363d4103
Commit
363d4103
authored
Jan 18, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# fee 搜索
parent
391e1ca5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
94 deletions
+16
-94
CostController.java
.../com/blt/other/module/cost/controller/CostController.java
+3
-69
CostQueryPageReq.java
...m/blt/other/module/cost/dto/request/CostQueryPageReq.java
+4
-1
Cost.xml
cost-service/src/main/resources/mapper/Cost.xml
+9
-24
No files found.
cost-service/src/main/java/com/blt/other/module/cost/controller/CostController.java
View file @
363d4103
...
@@ -8,12 +8,12 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
...
@@ -8,12 +8,12 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.baomidou.mybatisplus.core.toolkit.IdWorker
;
import
com.baomidou.mybatisplus.core.toolkit.IdWorker
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.blt.other.common.annotation.LoginIgnore
;
import
com.blt.other.common.annotation.LoginIgnore
;
import
com.blt.other.module.cost.dao.CostDao
;
import
com.blt.other.module.cost.dto.request.CheckCostListReq
;
import
com.blt.other.module.cost.dto.request.CheckCostListReq
;
import
com.blt.other.module.cost.dto.request.CostQueryPageReq
;
import
com.blt.other.module.cost.dto.request.CostQueryPageReq
;
import
com.blt.other.module.cost.dto.response.*
;
import
com.blt.other.module.cost.dto.response.GetCostByCostPlanNoResp
;
import
com.blt.other.module.cost.dto.response.PrintListResp
;
import
com.blt.other.module.cost.dto.response.UpdateCostResp
;
import
com.blt.other.module.cost.model.CostDomain
;
import
com.blt.other.module.cost.model.CostDomain
;
import
com.blt.other.module.cost.service.CostListSearchService
;
import
com.blt.other.module.cost.service.CostLogService
;
import
com.blt.other.module.cost.service.CostLogService
;
import
com.blt.other.module.cost.service.CostService
;
import
com.blt.other.module.cost.service.CostService
;
import
com.blt.other.module.cost.service.impl.cost.CostServiceFactory
;
import
com.blt.other.module.cost.service.impl.cost.CostServiceFactory
;
...
@@ -28,7 +28,6 @@ import java.math.BigDecimal;
...
@@ -28,7 +28,6 @@ import java.math.BigDecimal;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
/**
/**
* <p>
* <p>
...
@@ -46,12 +45,8 @@ public class CostController {
...
@@ -46,12 +45,8 @@ public class CostController {
@Resource
@Resource
private
CostService
costService
;
private
CostService
costService
;
@Resource
@Resource
private
CostListSearchService
costListSearchService
;
@Resource
private
CostLogService
costLogService
;
private
CostLogService
costLogService
;
@Resource
@Resource
private
CostDao
costDao
;
@Resource
private
UnSubmitState
unSubmitState
;
private
UnSubmitState
unSubmitState
;
@Resource
@Resource
private
DepartmentCheckState
departmentCheckState
;
private
DepartmentCheckState
departmentCheckState
;
...
@@ -63,21 +58,6 @@ public class CostController {
...
@@ -63,21 +58,6 @@ public class CostController {
private
HrCheckState
hrCheckState
;
private
HrCheckState
hrCheckState
;
@Deprecated
@ApiOperation
(
"获取所有费用单"
)
@GetMapping
(
"/list/getAllCost"
)
public
CostPageResult
getAllCost
(
@RequestParam
Integer
pageNum
,
@RequestParam
Integer
pageSize
,
@RequestParam
Integer
userId
,
@RequestParam
(
defaultValue
=
"0"
,
required
=
false
)
Integer
authType
,
@RequestParam
(
required
=
false
)
String
projectTypes
)
{
if
(
authType
!=
0
)
{
userId
=
null
;
}
costService
=
CostServiceFactory
.
getCostService
();
return
costService
.
getAllCost
(
pageNum
,
pageSize
,
userId
,
projectTypes
);
}
@ApiOperation
(
"获取前端要打印的费用单列表"
)
@ApiOperation
(
"获取前端要打印的费用单列表"
)
@PostMapping
(
"/list/print/list"
)
@PostMapping
(
"/list/print/list"
)
public
PrintListResp
printList
(
@RequestBody
CostListPrintVo
costListPrintVo
)
{
public
PrintListResp
printList
(
@RequestBody
CostListPrintVo
costListPrintVo
)
{
...
@@ -91,41 +71,6 @@ public class CostController {
...
@@ -91,41 +71,6 @@ public class CostController {
}
}
@Deprecated
@ApiOperation
(
"搜索"
)
@PostMapping
(
"/list/search/key"
)
public
GetByKeyResp
getByKey
(
@RequestParam
Integer
pageNum
,
@RequestParam
Integer
pageSize
,
@RequestParam
String
key
)
{
costService
=
CostServiceFactory
.
getCostService
();
return
costListSearchService
.
searchByKey
(
key
,
pageNum
,
pageSize
);
}
@Deprecated
@ApiOperation
(
"搜索?"
)
@PostMapping
(
"/list/search/keys"
)
public
GetByKeyResp
getByKeys
(
@RequestBody
CostListSearchKeysVo
searchKeysVo
)
{
costService
=
CostServiceFactory
.
getCostService
();
if
(
null
!=
searchKeysVo
.
getParams
().
getKeys
().
getCostForm
()
&&
3
==
searchKeysVo
.
getParams
().
getKeys
().
getCostForm
())
{
searchKeysVo
.
getParams
().
getKeys
().
setIsLend
(
1
);
}
if
(
null
!=
searchKeysVo
.
getParams
().
getKeys
().
getCostForm
()
&&
4
==
searchKeysVo
.
getParams
().
getKeys
().
getCostForm
())
{
searchKeysVo
.
getParams
().
getKeys
().
setCostForm
(
3
);
searchKeysVo
.
getParams
().
getKeys
().
setIsLend
(
2
);
}
return
costListSearchService
.
searchByKeys
(
searchKeysVo
);
}
@Deprecated
@ApiOperation
(
"获取借支单列表"
)
@GetMapping
(
"/list/search/getLinkCost"
)
public
List
<
CostDomain
>
getLinkCost
()
{
return
costListSearchService
.
getLinkCost
();
}
@ApiOperation
(
"分页查询费用单"
)
@ApiOperation
(
"分页查询费用单"
)
@PostMapping
(
"/queryPage"
)
@PostMapping
(
"/queryPage"
)
public
CostResult
<
Page
<
CostDto
>>
queryPage
(
@RequestBody
CostQueryPageReq
req
)
{
public
CostResult
<
Page
<
CostDto
>>
queryPage
(
@RequestBody
CostQueryPageReq
req
)
{
...
@@ -190,17 +135,6 @@ public class CostController {
...
@@ -190,17 +135,6 @@ public class CostController {
return
resp
;
return
resp
;
}
}
@Deprecated
@ApiOperation
(
"获取借支单列表"
)
@GetMapping
(
"/getAllLendCost"
)
public
GetAllLendCostResp
getAllLendCost
(
@RequestParam
Integer
createuserid
)
{
costService
=
CostServiceFactory
.
getCostService
();
List
<
CostDto
>
costDtoList
=
costDao
.
selectLinkLendCost
(
createuserid
).
stream
().
map
(
CostDomain:
:
castToDto
).
collect
(
Collectors
.
toList
());
GetAllLendCostResp
resp
=
new
GetAllLendCostResp
();
resp
.
setLends
(
costDtoList
);
return
resp
;
}
@ApiOperation
(
"根据费用计划查询"
)
@ApiOperation
(
"根据费用计划查询"
)
@PostMapping
(
"/getCostByCostPlanNo"
)
@PostMapping
(
"/getCostByCostPlanNo"
)
...
...
cost-service/src/main/java/com/blt/other/module/cost/dto/request/CostQueryPageReq.java
View file @
363d4103
...
@@ -34,7 +34,7 @@ public class CostQueryPageReq extends BaseRequest {
...
@@ -34,7 +34,7 @@ public class CostQueryPageReq extends BaseRequest {
private
Integer
createUserid
;
private
Integer
createUserid
;
@ApiModelProperty
(
"费用单状态 0 待提交 1- 待财务审核 2待出纳付款 3被驳回 4已支付 5已作废 6-待部门审核 7-待财务审核 8-待最终审核人审核"
)
@ApiModelProperty
(
"费用单状态 0 待提交 1- 待财务审核 2待出纳付款 3被驳回 4已支付 5已作废 6-待部门审核 7-待财务审核 8-待最终审核人审核"
)
private
Integer
costStatus
;
private
String
costStatus
;
@ApiModelProperty
(
"1 未还 2 部分还款 3 待补差额 4 结清"
)
@ApiModelProperty
(
"1 未还 2 部分还款 3 待补差额 4 结清"
)
private
Integer
lendStatus
;
private
Integer
lendStatus
;
...
@@ -67,6 +67,9 @@ public class CostQueryPageReq extends BaseRequest {
...
@@ -67,6 +67,9 @@ public class CostQueryPageReq extends BaseRequest {
@ApiModelProperty
(
"模糊搜索字段"
)
@ApiModelProperty
(
"模糊搜索字段"
)
private
String
key
;
private
String
key
;
@ApiModelProperty
(
"费用单-收款/付款人(创建人)"
)
private
String
bankCardUser
;
private
List
<
String
>
keys
;
private
List
<
String
>
keys
;
}
}
cost-service/src/main/resources/mapper/Cost.xml
View file @
363d4103
...
@@ -321,7 +321,7 @@
...
@@ -321,7 +321,7 @@
<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.createUserid!=null "
>
and t1.create_userid=#{req.createUserid}
</if>
<if
test=
" req.createUserid!=null "
>
and t1.create_userid=#{req.createUserid}
</if>
<if
test=
" req.costStatus!=null "
>
and
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>
<if
test=
" req.isLend!=null "
>
and t1.is_lend=#{req.isLend}
</if>
<if
test=
" req.isLend!=null "
>
and t1.is_lend=#{req.isLend}
</if>
...
@@ -329,40 +329,25 @@
...
@@ -329,40 +329,25 @@
<if
test=
" req.endTime != null"
>
AND t1.create_time
<![CDATA[<=]]>
#{req.endTime}
</if>
<if
test=
" req.endTime != null"
>
AND t1.create_time
<![CDATA[<=]]>
#{req.endTime}
</if>
<if
test=
" req.beginPayTime != null"
>
AND t1.pay_time
<![CDATA[>=]]>
#{req.beginPayTime}
</if>
<if
test=
" req.beginPayTime != null"
>
AND t1.pay_time
<![CDATA[>=]]>
#{req.beginPayTime}
</if>
<if
test=
" req.endPayTime != null"
>
AND t1.pay_time
<![CDATA[<=]]>
#{req.endPayTime}
</if>
<if
test=
" req.endPayTime != null"
>
AND t1.pay_time
<![CDATA[<=]]>
#{req.endPayTime}
</if>
<if
test=
" req.linkCost!=null and req.linkCost != ''"
>
<if
test=
" req.linkCost!=null and req.linkCost != ''"
>
and (t1.sup_cost_no=#{req.linkCost} or t1.cost_no=#{req.linkCost})
</if>
and (t1.sup_cost_no=#{req.linkCost} or t1.cost_no=#{req.linkCost})
<if
test=
" req.projectTypes!=null and req.projectTypes != ''"
>
and find_in_set(t1.project_type,#{req.projectTypes})
</if>
</if>
<if
test=
"req.bankCardUser !=null and req.bankCardUser !='' "
>
and t1.bank_card_user like concat('%',#{req.bankCardUser},'%')
</if>
<if
test=
" req.projectTypes!=null and req.projectTypes != ''"
>
and
find_in_set(t1.project_type,#{req.projectTypes})
</if>
<if
test=
" req.keys!=null and req.keys.size()>0 "
>
<if
test=
" req.keys!=null and req.keys.size()>0 "
>
and (false
and (false
<foreach
collection=
"req.keys"
item=
"key"
index=
"index"
>
<foreach
collection=
"req.keys"
item=
"key"
index=
"index"
>
<if
test=
"key != null and key != '' "
>
<if
test=
"key != null and key != '' "
>
or t1.cost_plan_no = #{key}
</if>
or t1.cost_plan_no = #{key}
</if>
</foreach>
</foreach>
<foreach
collection=
"keys"
item=
"key"
index=
"index"
>
<foreach
collection=
"keys"
item=
"key"
index=
"index"
>
<if
test=
"key != null and key != '' "
>
<if
test=
"key != null and key != '' "
>
or t1.cost_no LIKE CONCAT('%',#{key},'%')
</if>
or t1.cost_no LIKE CONCAT('%',#{key},'%')
</if>
</foreach>
</foreach>
<foreach
collection=
"keys"
item=
"key"
index=
"index"
>
<foreach
collection=
"keys"
item=
"key"
index=
"index"
>
<if
test=
"key != null and key != '' "
>
<if
test=
"key != null and key != '' "
>
or t1.type_name LIKE CONCAT('%',#{key},'%')
</if>
or t1.type_name LIKE CONCAT('%',#{key},'%')
</if>
</foreach>
</foreach>
<foreach
collection=
"keys"
item=
"key"
index=
"index"
>
<foreach
collection=
"keys"
item=
"key"
index=
"index"
>
<if
test=
"key != null and key != '' "
>
<if
test=
"key != null and key != '' "
>
or t1.company_name LIKE CONCAT('%',#{key},'%')
</if>
or t1.company_name LIKE CONCAT('%',#{key},'%')
</if>
</foreach>
</foreach>
<foreach
collection=
"keys"
item=
"key"
index=
"index"
>
<foreach
collection=
"keys"
item=
"key"
index=
"index"
>
<if
test=
"key != null and key != '' "
>
<if
test=
"key != null and key != '' "
>
or t1.bank_card_user LIKE CONCAT('%',#{key},'%')
</if>
or t1.bank_card_user LIKE CONCAT('%',#{key},'%')
</if>
</foreach>
</foreach>
)
)
</if>
</if>
...
...
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