From e49e5b7610b06bc1c634a75ab2283b5570f7f411 Mon Sep 17 00:00:00 2001 From: xiejianpeng Date: Wed, 1 Aug 2018 18:57:37 +0800 Subject: [PATCH] 工时填报管理 --- src/main/resources/mybatis/smapper/AsraOpSmapper.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/mybatis/smapper/AsraOpSmapper.xml b/src/main/resources/mybatis/smapper/AsraOpSmapper.xml index ed6b5c3..d6d298a 100644 --- a/src/main/resources/mybatis/smapper/AsraOpSmapper.xml +++ b/src/main/resources/mybatis/smapper/AsraOpSmapper.xml @@ -36,16 +36,16 @@ ap.city_id cityId, ap.city_name cityName, ap.is_remind_email isRemindEmail - from asra_op ap,asra_op_relations apr - where 1=1 and ap.id = apr.op_id + from asra_op ap left join asra_op_relations apr on ap.id = apr.op_id + where 1=1 - and apr.parent_id = #{id} or ap.id = #{id} + and (apr.parent_id = #{id} or ap.id = #{id}) and ap.login_code = #{loginCode,jdbcType=VARCHAR} - and ap.op_name ike concat('${opName}','%') + and ap.op_name like concat('%','${opName}','%') and ap.email = #{email,jdbcType=VARCHAR} -- libgit2 0.21.4