| | |
| | | |
| | | 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; |
| | |
| | | // } |
| | | // } |
| | | |
| | | |
| | | String cusName = tjCustomer.getCusName(); |
| | | TjCustomer customer = customerService.getTjCustomerByCusIdCard(cusIdcard); |
| | | if (StrUtil.isNotBlank(cusName)){ |
| | | customer.setCusName(cusName); |
| | | } |
| | | |
| | | String key = sysConfigService.selectConfigByKey("sfkqdyhis"); |
| | | |
| | |
| | | @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; |
| | | } |
| | |
| | | <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"> |
| | |
| | | create_by_name, |
| | | update_by_name, |
| | | imgBase64, |
| | | deleted |
| | | deleted, |
| | | introduction |
| | | from dict_hosp |
| | | </sql> |
| | | |
| | |
| | | <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> |
| | |
| | | <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> |
| | | |
| | |
| | | <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> |