Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
precision-effect
Project
Project
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
耿迪迪
precision-effect
Commits
06fcb6d2
Commit
06fcb6d2
authored
Jun 24, 2023
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询优化
parent
22993aa2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
56 additions
and
12 deletions
+56
-12
TDebitCredit.java
.../src/main/java/com/zehong/system/domain/TDebitCredit.java
+20
-0
TTradeProject.java
...src/main/java/com/zehong/system/domain/TTradeProject.java
+20
-0
TDebitCreditMapper.xml
...src/main/resources/mapper/business/TDebitCreditMapper.xml
+2
-0
TTradeProjectMapper.xml
...rc/main/resources/mapper/business/TTradeProjectMapper.xml
+2
-0
index.vue
precision-effect-web/src/views/debit/index.vue
+6
-8
index.vue
precision-effect-web/src/views/trade/index.vue
+6
-4
No files found.
precision-effect-system/src/main/java/com/zehong/system/domain/TDebitCredit.java
View file @
06fcb6d2
...
...
@@ -119,6 +119,10 @@ public class TDebitCredit extends BaseEntity
private
String
lendManageName
;
private
Long
queryDebitDeptId
;
private
Long
queryLendDeptId
;
public
void
setDebitId
(
Long
debitId
)
{
this
.
debitId
=
debitId
;
...
...
@@ -354,6 +358,22 @@ public class TDebitCredit extends BaseEntity
this
.
lendManageName
=
lendManageName
;
}
public
Long
getQueryDebitDeptId
()
{
return
queryDebitDeptId
;
}
public
void
setQueryDebitDeptId
(
Long
queryDebitDeptId
)
{
this
.
queryDebitDeptId
=
queryDebitDeptId
;
}
public
Long
getQueryLendDeptId
()
{
return
queryLendDeptId
;
}
public
void
setQueryLendDeptId
(
Long
queryLendDeptId
)
{
this
.
queryLendDeptId
=
queryLendDeptId
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
...
...
precision-effect-system/src/main/java/com/zehong/system/domain/TTradeProject.java
View file @
06fcb6d2
...
...
@@ -112,6 +112,10 @@ public class TTradeProject extends BaseEntity
private
String
applyDeptManagerName
;
private
Long
queryApplyDeptId
;
private
Long
queryTradeDeptId
;
public
String
getDealRemark
()
{
return
dealRemark
;
}
...
...
@@ -372,6 +376,22 @@ public class TTradeProject extends BaseEntity
this
.
applyDeptManagerName
=
applyDeptManagerName
;
}
public
Long
getQueryApplyDeptId
()
{
return
queryApplyDeptId
;
}
public
void
setQueryApplyDeptId
(
Long
queryApplyDeptId
)
{
this
.
queryApplyDeptId
=
queryApplyDeptId
;
}
public
Long
getQueryTradeDeptId
()
{
return
queryTradeDeptId
;
}
public
void
setQueryTradeDeptId
(
Long
queryTradeDeptId
)
{
this
.
queryTradeDeptId
=
queryTradeDeptId
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
...
...
precision-effect-system/src/main/resources/mapper/business/TDebitCreditMapper.xml
View file @
06fcb6d2
...
...
@@ -94,6 +94,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"realPaymentDate != null "
>
and real_payment_date = #{realPaymentDate}
</if>
<if
test=
"realPaymentAcount != null "
>
and real_payment_acount = #{realPaymentAcount}
</if>
<if
test=
"isDel != null and isDel != ''"
>
and is_del = #{isDel}
</if>
<if
test=
"queryDebitDeptId != null "
>
and debit_dept_id = #{queryDebitDeptId}
</if>
<if
test=
"queryLendDeptId != null "
>
and lend_dept_id = #{queryLendDeptId}
</if>
</where>
</select>
...
...
precision-effect-system/src/main/resources/mapper/business/TTradeProjectMapper.xml
View file @
06fcb6d2
...
...
@@ -115,6 +115,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"attachmentUrl != null and attachmentUrl != ''"
>
and attachment_url = #{attachmentUrl}
</if>
<if
test=
"tradeStatus != null and tradeStatus != ''"
>
and trade_status = #{tradeStatus}
</if>
<if
test=
"isDel != null and isDel != ''"
>
and is_del = #{isDel}
</if>
<if
test=
"queryApplyDeptId != null"
>
and apply_dept_id = #{queryApplyDeptId}
</if>
<if
test=
"queryTradeDeptId != null"
>
and trade_dept_id = #{queryTradeDeptId}
</if>
</where>
order by update_time desc
</select>
...
...
precision-effect-web/src/views/debit/index.vue
View file @
06fcb6d2
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"借贷部门"
prop=
"
debitDeptId"
v-if=
"$store.state.user.roles.findIndex(item =>item == 'deptLeader') == -1
"
>
<el-form-item
label=
"借贷部门"
prop=
"
queryDebitDeptId
"
>
<treeselect
v-model=
"queryParams.
d
ebitDeptId"
v-model=
"queryParams.
queryD
ebitDeptId"
:options=
"queryDeptOptions"
:show-count=
"true"
placeholder=
"请输入借贷部门"
style=
"width: 200px"
/>
</el-form-item>
<el-form-item
label=
"出借部门"
prop=
"
lendDeptId"
v-if=
"$store.state.user.roles.findIndex(item =>item == 'deptLeader') == -1
"
>
<el-form-item
label=
"出借部门"
prop=
"
queryLendDeptId
"
>
<treeselect
v-model=
"queryParams.
l
endDeptId"
v-model=
"queryParams.
queryL
endDeptId"
:options=
"queryDeptOptions"
:show-count=
"true"
placeholder=
"请输入出借部门"
...
...
@@ -328,6 +328,8 @@ export default {
realPaymentAcount
:
null
,
isDel
:
null
,
queryType
:
"all"
,
queryDebitDeptId
:
null
,
queryLendDeptId
:
null
},
// 表单参数
form
:
{},
...
...
@@ -370,10 +372,6 @@ export default {
this
.
getDicts
(
"t_debit_status"
).
then
((
response
)
=>
{
this
.
debitStatusList
=
response
.
data
;
});
if
(
this
.
$store
.
state
.
user
.
roles
.
findIndex
(
item
=>
item
==
'deptLeader'
)
==
-
1
){
this
.
queryParams
.
queryType
=
""
;
}
},
methods
:
{
/** 查询借贷列表 */
...
...
precision-effect-web/src/views/trade/index.vue
View file @
06fcb6d2
...
...
@@ -37,10 +37,10 @@
</el-select>
</el-form-item>
<el-form-item
label=
"卖方部门"
prop=
"
a
pplyDeptId"
>
<el-form-item
label=
"卖方部门"
prop=
"
queryA
pplyDeptId"
>
<div
style=
"width: 160px"
>
<treeselect
v-model=
"queryParams.
a
pplyDeptId"
v-model=
"queryParams.
queryA
pplyDeptId"
:options=
"deptOptions"
:show-count=
"true"
placeholder=
"请选择卖方部门"
...
...
@@ -48,10 +48,10 @@
</div>
</el-form-item>
<el-form-item
label=
"买方部门"
prop=
"
t
radeDeptId"
>
<el-form-item
label=
"买方部门"
prop=
"
queryT
radeDeptId"
>
<div
style=
"width: 160px"
>
<treeselect
v-model=
"queryParams.
t
radeDeptId"
v-model=
"queryParams.
queryT
radeDeptId"
:options=
"deptOptions"
:show-count=
"true"
placeholder=
"请选择买方部门"
...
...
@@ -369,6 +369,8 @@ export default {
tradeDeptId
:
null
,
tradeStatus
:
null
,
createTime
:
null
,
queryApplyDeptId
:
null
,
queryTradeDeptId
:
null
},
// 表单参数
form
:
{},
...
...
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