From 9d923cec3d8be92cf1fdc0bdde844350c614a839 Mon Sep 17 00:00:00 2001 From: zjh <1084500556@qq.com> Date: 星期三, 26 三月 2025 17:44:09 +0800 Subject: [PATCH] zjh20250326 --- ltkj-hosp/src/main/resources/mapper/TjCustomerMapper.xml | 6 +++--- ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjCustomerController.java | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjCustomerController.java b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjCustomerController.java index 9cb93e1..dab4528 100644 --- a/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjCustomerController.java +++ b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjCustomerController.java @@ -713,11 +713,13 @@ return AjaxResult.success(); } } - return AjaxResult.error(); + return AjaxResult.success(); } catch (Exception e) { log.error(e.toString()); throw new RuntimeException(e); + } + } /** diff --git a/ltkj-hosp/src/main/resources/mapper/TjCustomerMapper.xml b/ltkj-hosp/src/main/resources/mapper/TjCustomerMapper.xml index 36ae58d..c821a51 100644 --- a/ltkj-hosp/src/main/resources/mapper/TjCustomerMapper.xml +++ b/ltkj-hosp/src/main/resources/mapper/TjCustomerMapper.xml @@ -66,7 +66,7 @@ age_unit, career, dw_phone, - pym,dict_comp_id,comp_name,his_jzkh + pym,dict_comp_id,comp_name,his_jzkh,gl,wen_hua from tj_customer </sql> @@ -235,13 +235,13 @@ <if test="cusBrithday != null ">and cus_brithday = #{cusBrithday}</if> <if test="cusAddr != null and cusAddr != ''">and cus_addr = #{cusAddr}</if> <if test="addr != null and addr != ''">and addr = #{addr}</if> - <if test="cusPhone != null and cusPhone != ''">and cus_phone = #{cusPhone}</if> + <if test="cusPhone != null and cusPhone != ''">and cus_phone like concat('%',#{cusPhone}, '%') </if> <if test="cusPostcode != null and cusPostcode != ''">and cus_postCode = #{cusPostcode}</if> <if test="cusEmail != null and cusEmail != ''">and cus_email = #{cusEmail}</if> <if test="indexCard != null and indexCard != ''">and index_card = #{indexCard}</if> <if test="cusNational != null and cusNational != ''">and cus_national = #{cusNational}</if> <if test="cusMarryStatus != null and cusMarryStatus != ''">and cus_marry_status = #{cusMarryStatus}</if> - <if test="cusIdcard != null and cusIdcard != ''">and cus_idcard = #{cusIdcard}</if> + <if test="cusIdcard != null and cusIdcard != ''">and cus_idcard like concat('%',#{cusIdcard}, '%') </if> <if test="cusIntroduce != null and cusIntroduce != ''">and cus_introduce = #{cusIntroduce}</if> <if test="cusNumber != null ">and cus_number = #{cusNumber}</if> <if test="cusIsvip != null and cusIsvip != ''">and cus_isvip = #{cusIsvip}</if> -- Gitblit v1.8.0