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
93c4b655
Commit
93c4b655
authored
Sep 25, 2021
by
liyanlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加搜索待我审批接口
parent
75d7b2cf
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
70 additions
and
4 deletions
+70
-4
CostController.java
.../com/blt/other/module/cost/controller/CostController.java
+9
-0
CostDao.java
.../src/main/java/com/blt/other/module/cost/dao/CostDao.java
+5
-4
AllCheckCostListReq.java
...lt/other/module/cost/dto/request/AllCheckCostListReq.java
+20
-0
CostService.java
...n/java/com/blt/other/module/cost/service/CostService.java
+3
-0
AbstractCostService.java
...er/module/cost/service/impl/cost/AbstractCostService.java
+17
-0
Cost.xml
cost-service/src/main/resources/mapper/Cost.xml
+16
-0
No files found.
cost-service/src/main/java/com/blt/other/module/cost/controller/CostController.java
View file @
93c4b655
...
...
@@ -9,6 +9,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.blt.other.common.annotation.LoginIgnore
;
import
com.blt.other.module.cost.dao.CostDao
;
import
com.blt.other.module.cost.dto.request.AllCheckCostListReq
;
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.response.GetAllLendCostResp
;
...
...
@@ -208,6 +209,14 @@ public class CostController {
return
CostResult
.
success
(
page
);
}
@ApiOperation
(
"待审核费用单列表"
)
@GetMapping
(
"/checkCostAllList"
)
public
CostResult
<
IPage
<
CostDto
>>
checkCostAllList
(
AllCheckCostListReq
req
)
{
costService
=
CostServiceFactory
.
getCostService
();
IPage
<
CostDto
>
page
=
costService
.
checkCostAllList
(
req
);
return
CostResult
.
success
(
page
);
}
@ApiOperation
(
"审核费用单列表"
)
@GetMapping
(
"/checkCostCount"
)
public
CostResult
<
Long
>
checkCostCount
(
CheckCostListReq
req
)
{
...
...
cost-service/src/main/java/com/blt/other/module/cost/dao/CostDao.java
View file @
93c4b655
...
...
@@ -4,10 +4,7 @@ import com.bailuntec.cost.api.request.ManageCostListReq;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.blt.other.module.cost.dto.request.AppCheckCostListReq
;
import
com.blt.other.module.cost.dto.request.AppCostListReq
;
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.*
;
import
com.blt.other.module.cost.model.CostDomain
;
import
com.blt.other.module.cost.vo.CostExportVo
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -66,6 +63,10 @@ public interface CostDao extends BaseMapper<CostDomain> {
IPage
<
CostDomain
>
generalManagerCheckCostList
(
@Param
(
"page"
)
IPage
<
CostDomain
>
page
,
@Param
(
"req"
)
CheckCostListReq
req
);
//管理后台 所有需要我审核的费用单列表
IPage
<
CostDomain
>
allCheckCostList
(
@Param
(
"page"
)
IPage
<
CostDomain
>
page
,
@Param
(
"req"
)
AllCheckCostListReq
req
);
//小程序审核列表查询
Page
<
CostDomain
>
appCheckCostList
(
@Param
(
"page"
)
IPage
<
CostDomain
>
page
,
@Param
(
"req"
)
AppCheckCostListReq
req
);
...
...
cost-service/src/main/java/com/blt/other/module/cost/dto/request/AllCheckCostListReq.java
0 → 100644
View file @
93c4b655
package
com
.
blt
.
other
.
module
.
cost
.
dto
.
request
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.List
;
/**
* @Author: li.yanlin
* @Description:
* @Date: Created in
* @Modified by:
*/
@Data
public
class
AllCheckCostListReq
extends
CheckCostListReq
{
@ApiModelProperty
(
"状态列表"
)
private
List
<
Integer
>
costStatusList
;
@ApiModelProperty
(
value
=
"状态列表"
,
hidden
=
true
)
private
String
costStatusStr
;
}
cost-service/src/main/java/com/blt/other/module/cost/service/CostService.java
View file @
93c4b655
...
...
@@ -4,6 +4,7 @@ import com.bailuntec.cost.api.dto.CostDto;
import
com.bailuntec.cost.api.dto.CostListPrintDto
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.blt.other.module.cost.dto.request.AllCheckCostListReq
;
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.response.CostPageResult
;
...
...
@@ -97,6 +98,8 @@ public interface CostService {
*/
IPage
<
CostDto
>
checkCostList
(
CheckCostListReq
req
);
IPage
<
CostDto
>
checkCostAllList
(
AllCheckCostListReq
req
);
/**
* <p>
* 审核成功通知财务系统付款
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/cost/AbstractCostService.java
View file @
93c4b655
...
...
@@ -24,6 +24,7 @@ import com.blt.other.module.auth.dao.OaUserMapper;
import
com.blt.other.module.auth.model.OaDepartment
;
import
com.blt.other.module.auth.model.OaUser
;
import
com.blt.other.module.cost.dao.*
;
import
com.blt.other.module.cost.dto.request.AllCheckCostListReq
;
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.response.CostTypeResult
;
...
...
@@ -39,6 +40,7 @@ import com.blt.other.module.netsuite.dto.NetsuiCostinfoDto;
import
com.blt.other.module.netsuite.dto.NetsuiteDataDto
;
import
com.blt.other.module.netsuite.model.NetsuiteLogDomain
;
import
com.blt.other.module.sys.service.UserService
;
import
com.google.common.base.Joiner
;
import
com.google.common.collect.Lists
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.BeanUtils
;
...
...
@@ -312,6 +314,21 @@ public abstract class AbstractCostService implements CostService {
throw
new
BizRuntimeException
(
"invalid param"
);
}
@Override
public
IPage
<
CostDto
>
checkCostAllList
(
AllCheckCostListReq
req
){
if
(
req
.
getCostForm
().
equals
(
3
)){
req
.
setIsLend
(
1
);
}
if
(
req
.
getCostForm
().
equals
(
4
)){
req
.
setIsLend
(
2
);
}
if
(
req
.
getCostStatusList
()!=
null
&&
!
req
.
getCostStatusList
().
isEmpty
()){
req
.
setCostStatusStr
(
StringUtils
.
join
(
req
.
getCostStatusList
(),
','
));
}
IPage
<
CostDomain
>
page
=
new
Page
<>(
req
.
getPageNum
(),
req
.
getPageSize
());
return
costDao
.
allCheckCostList
(
page
,
req
).
convert
(
CostDomain:
:
castToDto
);
}
@Resource
CostApplycallbackService
costApplycallbackService
;
...
...
cost-service/src/main/resources/mapper/Cost.xml
View file @
93c4b655
...
...
@@ -279,6 +279,22 @@
<include
refid=
"checkCostListSearch"
/>
</select>
<select
id=
"allCheckCostList"
resultType=
"com.blt.other.module.cost.model.CostDomain"
>
select c.* from cost c
left join cost_current_reviewer ccr on ccr.cost_no = c.cost_no
where ccr.oa_user_id = #{req.userid}
<if
test=
"req.costNo !=null and req.costNo !=''"
>
and c.cost_no like concat('%',#{req.costNo},'%')
</if>
<if
test=
"req.companyNo!=null and req.companyNo!='' "
>
and c.company_no = #{req.companyNo}
</if>
<if
test=
"req.costForm!=null"
>
and c.cost_form = #{req.costForm}
</if>
<if
test=
"req.isLend!=null"
>
and c.is_lend = #{req.isLend}
</if>
<if
test=
"req.typeNo!=null and req.typeNo!='' "
>
c.type_no = #{req.typeNo}
</if>
<if
test=
"req.costStatusStr!=null "
>
and t1.cost_status in (#{req.costStatusStr})
</if>
<if
test=
"req.createUserId!=null "
>
and c.create_userid = #{req.createUserId}
</if>
<if
test=
" req.beginTime != null"
>
AND c.create_time
<![CDATA[>=]]>
#{req.beginTime}
</if>
<if
test=
" req.endTime != null"
>
AND c.create_time
<![CDATA[<=]]>
#{req.endTime}
</if>
<if
test=
"req.bankCardUser !=null and req.bankCardUser !='' "
>
and c.bank_card_user like concat('%',#{req.bankCardUser},'%')
</if>
</select>
<select
id=
"selectByStatus"
resultType=
"com.blt.other.module.cost.model.CostDomain"
>
select *
from cost
...
...
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