根据vin查询会员

This commit is contained in:
2023-11-02 16:31:14 +08:00
parent 3ff7e5daf9
commit 0ff8b7dcdd
3 changed files with 17 additions and 0 deletions

View File

@@ -25,4 +25,6 @@ public class QueryMemberInfoDTO {
private String merchantId;
private List<String> merchantDeptIds;
private String vinCode;
}

View File

@@ -210,6 +210,7 @@
member_basic_info t1
JOIN member_wallet_info t2 ON t1.member_id = t2.member_id and t2.del_flag = '0'
JOIN pile_merchant_info t3 ON t1.merchant_id = t3.id and t3.del_flag = '0'
left join member_plate_number_relation t4 on t4.member_id = t1.member_id and t4.del_flag = '0'
where
t1.del_flag = '0'
<if test="dto.mobileNumber != null and dto.mobileNumber != ''">and t1.mobile_number like '%${dto.mobileNumber}%'</if>
@@ -222,6 +223,9 @@
#{deptId,jdbcType=VARCHAR}
</foreach>
</if>
<if test="dto.vinCode != null">
and t4.vin_code like '%${dto.vinCode}%'
</if>
</select>
<select id="getMerchantListByAuth" resultType="com.jsowell.pile.vo.base.MerchantInfoVO">

View File

@@ -44,6 +44,15 @@
/>
</el-form-item>
<el-form-item label="VIN" prop="vinCode">
<el-input
v-model="queryParams.vinCode"
placeholder="请输入VIN"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@@ -266,6 +275,7 @@ export default {
memberId: null,
principalBalance: null,
giftBalance: null,
vinCode: null,
},
// 表单参数
form: {},
@@ -295,6 +305,7 @@ export default {
nickName: this.queryParams.nickName,
mobileNumber: this.queryParams.mobileNumber,
merchantId: this.queryParams.merchantId,
vinCode: this.queryParams.vinCode,
}
console.log("params", params)
listInfo(params).then(response => {