Commit 06fcb6d2 authored by 耿迪迪's avatar 耿迪迪

查询优化

parent 22993aa2
...@@ -119,6 +119,10 @@ public class TDebitCredit extends BaseEntity ...@@ -119,6 +119,10 @@ public class TDebitCredit extends BaseEntity
private String lendManageName; private String lendManageName;
private Long queryDebitDeptId;
private Long queryLendDeptId;
public void setDebitId(Long debitId) public void setDebitId(Long debitId)
{ {
this.debitId = debitId; this.debitId = debitId;
...@@ -354,6 +358,22 @@ public class TDebitCredit extends BaseEntity ...@@ -354,6 +358,22 @@ public class TDebitCredit extends BaseEntity
this.lendManageName = lendManageName; 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 @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
......
...@@ -112,6 +112,10 @@ public class TTradeProject extends BaseEntity ...@@ -112,6 +112,10 @@ public class TTradeProject extends BaseEntity
private String applyDeptManagerName; private String applyDeptManagerName;
private Long queryApplyDeptId;
private Long queryTradeDeptId;
public String getDealRemark() { public String getDealRemark() {
return dealRemark; return dealRemark;
} }
...@@ -372,6 +376,22 @@ public class TTradeProject extends BaseEntity ...@@ -372,6 +376,22 @@ public class TTradeProject extends BaseEntity
this.applyDeptManagerName = applyDeptManagerName; 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 @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
......
...@@ -94,6 +94,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -94,6 +94,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="realPaymentDate != null "> and real_payment_date = #{realPaymentDate}</if> <if test="realPaymentDate != null "> and real_payment_date = #{realPaymentDate}</if>
<if test="realPaymentAcount != null "> and real_payment_acount = #{realPaymentAcount}</if> <if test="realPaymentAcount != null "> and real_payment_acount = #{realPaymentAcount}</if>
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</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> </where>
</select> </select>
......
...@@ -115,6 +115,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -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="attachmentUrl != null and attachmentUrl != ''"> and attachment_url = #{attachmentUrl}</if>
<if test="tradeStatus != null and tradeStatus != ''"> and trade_status = #{tradeStatus}</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="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> </where>
order by update_time desc order by update_time desc
</select> </select>
......
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px"> <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 <treeselect
v-model="queryParams.debitDeptId" v-model="queryParams.queryDebitDeptId"
:options="queryDeptOptions" :options="queryDeptOptions"
:show-count="true" :show-count="true"
placeholder="请输入借贷部门" placeholder="请输入借贷部门"
style="width: 200px" style="width: 200px"
/> />
</el-form-item> </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 <treeselect
v-model="queryParams.lendDeptId" v-model="queryParams.queryLendDeptId"
:options="queryDeptOptions" :options="queryDeptOptions"
:show-count="true" :show-count="true"
placeholder="请输入出借部门" placeholder="请输入出借部门"
...@@ -328,6 +328,8 @@ export default { ...@@ -328,6 +328,8 @@ export default {
realPaymentAcount: null, realPaymentAcount: null,
isDel: null, isDel: null,
queryType: "all", queryType: "all",
queryDebitDeptId: null,
queryLendDeptId: null
}, },
// 表单参数 // 表单参数
form: {}, form: {},
...@@ -370,10 +372,6 @@ export default { ...@@ -370,10 +372,6 @@ export default {
this.getDicts("t_debit_status").then((response) => { this.getDicts("t_debit_status").then((response) => {
this.debitStatusList = response.data; this.debitStatusList = response.data;
}); });
if(this.$store.state.user.roles.findIndex(item =>item == 'deptLeader') == -1){
this.queryParams.queryType = "";
}
}, },
methods: { methods: {
/** 查询借贷列表 */ /** 查询借贷列表 */
......
...@@ -37,10 +37,10 @@ ...@@ -37,10 +37,10 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="卖方部门" prop="applyDeptId"> <el-form-item label="卖方部门" prop="queryApplyDeptId">
<div style="width: 160px"> <div style="width: 160px">
<treeselect <treeselect
v-model="queryParams.applyDeptId" v-model="queryParams.queryApplyDeptId"
:options="deptOptions" :options="deptOptions"
:show-count="true" :show-count="true"
placeholder="请选择卖方部门" placeholder="请选择卖方部门"
...@@ -48,10 +48,10 @@ ...@@ -48,10 +48,10 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="买方部门" prop="tradeDeptId"> <el-form-item label="买方部门" prop="queryTradeDeptId">
<div style="width: 160px"> <div style="width: 160px">
<treeselect <treeselect
v-model="queryParams.tradeDeptId" v-model="queryParams.queryTradeDeptId"
:options="deptOptions" :options="deptOptions"
:show-count="true" :show-count="true"
placeholder="请选择买方部门" placeholder="请选择买方部门"
...@@ -369,6 +369,8 @@ export default { ...@@ -369,6 +369,8 @@ export default {
tradeDeptId: null, tradeDeptId: null,
tradeStatus: null, tradeStatus: null,
createTime: null, createTime: null,
queryApplyDeptId: null,
queryTradeDeptId: null
}, },
// 表单参数 // 表单参数
form: {}, form: {},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment