From 696d71cdc4eefa49951b7e14556fe56072714edd Mon Sep 17 00:00:00 2001 From: zhaowenxuan <chacca165@163.com> Date: 星期一, 11 八月 2025 18:10:29 +0800 Subject: [PATCH] 添加字段 --- ltkj-hosp/src/main/resources/mapper/hosp/DictHospMapper.xml | 9 +++++++-- ltkj-hosp/src/main/java/com/ltkj/hosp/domain/DictHosp.java | 36 ++++-------------------------------- ltkj-admin/src/main/java/com/ltkj/web/controller/app/CustomerController.java | 6 +++++- 3 files changed, 16 insertions(+), 35 deletions(-) diff --git a/ltkj-admin/src/main/java/com/ltkj/web/controller/app/CustomerController.java b/ltkj-admin/src/main/java/com/ltkj/web/controller/app/CustomerController.java index 73cc774..b02c8e0 100644 --- a/ltkj-admin/src/main/java/com/ltkj/web/controller/app/CustomerController.java +++ b/ltkj-admin/src/main/java/com/ltkj/web/controller/app/CustomerController.java @@ -2,6 +2,7 @@ import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.date.DateUtil; +import cn.hutool.core.util.StrUtil; import cn.hutool.json.JSONArray; import cn.hutool.json.JSONObject; import cn.hutool.json.JSONUtil; @@ -132,8 +133,11 @@ // } // } - + String cusName = tjCustomer.getCusName(); TjCustomer customer = customerService.getTjCustomerByCusIdCard(cusIdcard); + if (StrUtil.isNotBlank(cusName)){ + customer.setCusName(cusName); + } String key = sysConfigService.selectConfigByKey("sfkqdyhis"); diff --git a/ltkj-hosp/src/main/java/com/ltkj/hosp/domain/DictHosp.java b/ltkj-hosp/src/main/java/com/ltkj/hosp/domain/DictHosp.java index d8de12f..7031e39 100644 --- a/ltkj-hosp/src/main/java/com/ltkj/hosp/domain/DictHosp.java +++ b/ltkj-hosp/src/main/java/com/ltkj/hosp/domain/DictHosp.java @@ -173,36 +173,8 @@ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date expirationTime; - - @Override - public String toString() { - return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) - .append("hospAreaId", getHospAreaId()) - .append("hospAreaName", getHospAreaName()) - .append("hospid", getHospid()) - .append("hospName", getHospName()) - .append("code", getCode()) - .append("wbm", getWbm()) - .append("spell", getSpell()) - .append("areaid", getAreaid()) - .append("areaName", getAreaName()) - .append("mainHospArea", getMainHospArea()) - .append("principal", getPrincipal()) - .append("phone", getPhone()) - .append("plaitBed", getPlaitBed()) - .append("openBed", getOpenBed()) - .append("buildDate", getBuildDate()) - .append("remark", getRemark()) - .append("createBy", getCreateBy()) - .append("createTime", getCreateTime()) - .append("updateBy", getUpdateBy()) - .append("updateTime", getUpdateTime()) - .append("orderNum", getOrderNum()) - .append("effective", getEffective()) - .append("createByName", getCreateByName()) - .append("updateByName", getUpdateByName()) - .append("imgbase64", getImgbase64()) - .append("deleted", getDeleted()) - .toString(); - } + /** + * 鍖婚櫌绠�浠� + */ + private String introduction; } diff --git a/ltkj-hosp/src/main/resources/mapper/hosp/DictHospMapper.xml b/ltkj-hosp/src/main/resources/mapper/hosp/DictHospMapper.xml index 6ad3365..b366fd9 100644 --- a/ltkj-hosp/src/main/resources/mapper/hosp/DictHospMapper.xml +++ b/ltkj-hosp/src/main/resources/mapper/hosp/DictHospMapper.xml @@ -31,6 +31,7 @@ <result property="updateByName" column="update_by_name"/> <result property="imgbase64" column="imgBase64"/> <result property="deleted" column="deleted"/> + <result property="introduction" column="introduction"/> </resultMap> <sql id="selectDictHospVo"> @@ -59,7 +60,8 @@ create_by_name, update_by_name, imgBase64, - deleted + deleted, + introduction from dict_hosp </sql> @@ -116,6 +118,7 @@ <if test="updateByName != null and updateByName != ''">update_by_name,</if> <if test="imgbase64 != null">imgBase64,</if> <if test="deleted != null">deleted,</if> + <if test="introduction != null">introduction,</if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="hospAreaId != null">#{hospAreaId},</if> @@ -144,6 +147,7 @@ <if test="updateByName != null and updateByName != ''">#{updateByName},</if> <if test="imgbase64 != null">#{imgbase64},</if> <if test="deleted != null">#{deleted},</if> + <if test="introduction != null">#{introduction},</if> </trim> </insert> @@ -175,6 +179,7 @@ <if test="updateByName != null and updateByName != ''">update_by_name = #{updateByName},</if> <if test="imgbase64 != null">imgBase64 = #{imgbase64},</if> <if test="deleted != null">deleted = #{deleted},</if> + <if test="introduction != null">introduction = #{introduction},</if> </trim> where hosp_area_id = #{hospAreaId} </update> @@ -191,4 +196,4 @@ #{hospAreaId} </foreach> </delete> -</mapper> \ No newline at end of file +</mapper> -- Gitblit v1.8.0