From 691cbd6e959990c192ea163388478fd49fe5bfdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=B5=B7?= <10402852@qq.com> Date: Mon, 15 Jul 2024 16:01:43 +0800 Subject: [PATCH] 'commit' --- src/main/java/com/dsideal/QingLong/Zjcq/Model/ZjcqModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/dsideal/QingLong/Zjcq/Model/ZjcqModel.java b/src/main/java/com/dsideal/QingLong/Zjcq/Model/ZjcqModel.java index 531c0a77..73de385a 100644 --- a/src/main/java/com/dsideal/QingLong/Zjcq/Model/ZjcqModel.java +++ b/src/main/java/com/dsideal/QingLong/Zjcq/Model/ZjcqModel.java @@ -46,7 +46,7 @@ public class ZjcqModel { * @return */ public List getZjcqList(String lx_ids, String ly_ids) { - String sql = "select t1.* from t_zhuanjia_base as t1 inner join t_zhuanjia_base_zc as t2 on t1.person_id=t2.person_id and t2.zc_id in (" + ly_ids + ") where t1.lx_id in (" + lx_ids + ") and t1.b_use=1 order by t1.person_id"; + String sql = "select distinct t1.* from t_zhuanjia_base as t1 inner join t_zhuanjia_base_zc as t2 on t1.person_id=t2.person_id and t2.zc_id in (" + ly_ids + ") where t1.lx_id in (" + lx_ids + ") and t1.b_use=1 order by t1.person_id"; List list = Db.find(sql); return list; }