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
b28cf9fe
Commit
b28cf9fe
authored
Jun 12, 2020
by
yinyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务审核单筛选更改
parent
775d91b5
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
7 deletions
+33
-7
CostCheckSearchController.java
...ther/other_cost/controller/CostCheckSearchController.java
+5
-1
CostCheckSearchDao.java
...java/com/blt/other/other_cost/dao/CostCheckSearchDao.java
+1
-1
CostCheckSearchService.java
.../blt/other/other_cost/service/CostCheckSearchService.java
+1
-1
CostCheckSearchServiceImpl.java
...r/other_cost/service/impl/CostCheckSearchServiceImpl.java
+2
-2
CostCheckSearchKeysVo.java
...va/com/blt/other/other_cost/vo/CostCheckSearchKeysVo.java
+22
-2
CostCheckSearchMapper.xml
...-core/src/main/resources/mapper/CostCheckSearchMapper.xml
+2
-0
No files found.
cost-core/src/main/java/com/blt/other/other_cost/controller/CostCheckSearchController.java
View file @
b28cf9fe
...
...
@@ -67,7 +67,9 @@ public class CostCheckSearchController {
String
key
=
request
.
getParameter
(
"key"
);
String
pageSizeStr
=
request
.
getParameter
(
"pageSize"
);
String
pageNumStr
=
request
.
getParameter
(
"pageNum"
);
Map
<
String
,
Object
>
map
=
costCheckSearchService
.
seachByKey
(
key
,
Integer
.
parseInt
(
pageNumStr
),
Integer
.
parseInt
(
pageSizeStr
));
Integer
userId
=
Integer
.
valueOf
(
request
.
getParameter
(
"userId"
));
String
authority
=
costCheckSearchService
.
findAuthorityByUserid
(
userId
);
Map
<
String
,
Object
>
map
=
costCheckSearchService
.
seachByKey
(
key
,
Integer
.
parseInt
(
pageNumStr
),
Integer
.
parseInt
(
pageSizeStr
),
authority
);
map
.
put
(
"success"
,
true
);
return
map
;
}
...
...
@@ -85,6 +87,8 @@ public class CostCheckSearchController {
searchKeysVo
.
getParams
().
getKeys
().
setCostForm
(
3
);
searchKeysVo
.
getParams
().
getKeys
().
setIsLend
(
2
);
}
String
authority
=
costCheckSearchService
.
findAuthorityByUserid
(
searchKeysVo
.
getParams
().
getKeys
().
getUserId
());
searchKeysVo
.
getParams
().
getKeys
().
setAuthority
(
authority
);
Map
<
String
,
Object
>
map
=
costCheckSearchService
.
searchByKeys
(
searchKeysVo
);
map
.
put
(
"success"
,
true
);
return
map
;
...
...
cost-core/src/main/java/com/blt/other/other_cost/dao/CostCheckSearchDao.java
View file @
b28cf9fe
...
...
@@ -17,7 +17,7 @@ public interface CostCheckSearchDao {
* @param key
* @return
*/
List
<
CostDomain
>
selectByKey
(
@Param
(
"key"
)
String
key
);
List
<
CostDomain
>
selectByKey
(
@Param
(
"key"
)
String
key
,
@Param
(
"authority"
)
String
authority
);
List
<
CostDomain
>
selectByKeys
(
CostCheckSearchKeysVo
searchKeysVo
);
...
...
cost-core/src/main/java/com/blt/other/other_cost/service/CostCheckSearchService.java
View file @
b28cf9fe
...
...
@@ -18,7 +18,7 @@ public interface CostCheckSearchService {
* @param key
* @return
*/
Map
<
String
,
Object
>
seachByKey
(
String
key
,
int
pageNum
,
int
pageSize
);
Map
<
String
,
Object
>
seachByKey
(
String
key
,
int
pageNum
,
int
pageSize
,
String
authority
);
List
<
CostDto
>
domainListToDto
(
List
<
CostDomain
>
domains
);
...
...
cost-core/src/main/java/com/blt/other/other_cost/service/impl/CostCheckSearchServiceImpl.java
View file @
b28cf9fe
...
...
@@ -45,10 +45,10 @@ public class CostCheckSearchServiceImpl implements CostCheckSearchService {
}
@Override
public
Map
<
String
,
Object
>
seachByKey
(
String
key
,
int
pageNum
,
int
pageSize
)
{
public
Map
<
String
,
Object
>
seachByKey
(
String
key
,
int
pageNum
,
int
pageSize
,
String
authority
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
PageHelper
.
startPage
(
pageNum
,
pageSize
);
List
<
CostDomain
>
costDomains
=
costCheckSearchDao
.
selectByKey
(
key
);
List
<
CostDomain
>
costDomains
=
costCheckSearchDao
.
selectByKey
(
key
,
authority
);
PageInfo
<
CostDomain
>
pageInfo
=
new
PageInfo
<>(
costDomains
);
map
.
put
(
"costs"
,
domainListToDto
(
costDomains
));
map
.
put
(
"pageInfo"
,
pageInfo
);
...
...
cost-core/src/main/java/com/blt/other/other_cost/vo/CostCheckSearchKeysVo.java
View file @
b28cf9fe
...
...
@@ -16,6 +16,8 @@ public class CostCheckSearchKeysVo {
private
Integer
pageSize
;
public
class
Keys
{
private
String
authority
;
private
Integer
userId
;
private
String
companyNo
;
private
Integer
costForm
;
private
String
createUsercode
;
...
...
@@ -32,6 +34,22 @@ public class CostCheckSearchKeysVo {
private
Integer
logisticsSupplierId
;
// 一级物流供应商ID
private
Integer
subLogisticsSupplierId
;
// 二级物流供应商ID
public
String
getAuthority
()
{
return
authority
;
}
public
void
setAuthority
(
String
authority
)
{
this
.
authority
=
authority
;
}
public
Integer
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
Integer
userId
)
{
this
.
userId
=
userId
;
}
public
String
getCompanyNo
()
{
return
companyNo
;
}
...
...
@@ -139,7 +157,9 @@ public class CostCheckSearchKeysVo {
@Override
public
String
toString
()
{
return
"Keys{"
+
"companyNo='"
+
companyNo
+
'\''
+
"authority='"
+
authority
+
'\''
+
", userId="
+
userId
+
", companyNo='"
+
companyNo
+
'\''
+
", costForm="
+
costForm
+
", createUsercode='"
+
createUsercode
+
'\''
+
", kindNo='"
+
kindNo
+
'\''
+
...
...
@@ -147,11 +167,11 @@ public class CostCheckSearchKeysVo {
", lendStatus="
+
lendStatus
+
", isTax="
+
isTax
+
", linkCost='"
+
linkCost
+
'\''
+
", isLend="
+
isLend
+
", beginPayTime="
+
beginPayTime
+
", endPayTime="
+
endPayTime
+
", logisticsSupplierId="
+
logisticsSupplierId
+
", subLogisticsSupplierId="
+
subLogisticsSupplierId
+
", isLend="
+
isLend
+
'}'
;
}
}
...
...
cost-core/src/main/resources/mapper/CostCheckSearchMapper.xml
View file @
b28cf9fe
...
...
@@ -38,6 +38,7 @@
OR
company_name LIKE CONCAT('%',#{key},'%')
)
and FIND_IN_SET(company_value, #{authority})
ORDER BY
id DESC
</select>
...
...
@@ -64,6 +65,7 @@
<if
test=
" params.keys.logisticsSupplierId != null"
>
and logistics_supplier_id = #{params.keys.logisticsSupplierId}
</if>
<if
test=
" params.keys.subLogisticsSupplierId != null"
>
and sub_logistics_supplier_id = #{params.keys.subLogisticsSupplierId}
</if>
<if
test=
" params.keys.linkCost!=null and params.keys.linkCost != ''"
>
and sup_cost_no=#{params.keys.linkCost}
</if>
<if
test=
" params.keys.authority != null"
>
and FIND_IN_SET(company_value, #{params.keys.authority})
</if>
ORDER BY
id DESC
</select>
...
...
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