Commit c8b6a3cb678467803e0a1ced0c1143d4c514e102
1 parent
9213322ea2
Exists in
dev
小程序调用-产后康复
Showing 4 changed files with 0 additions and 416 deletions
- platform-biz-service/src/main/java/com/lyms/platform/permission/dao/slave/MedicalRecordMapper.java
- platform-biz-service/src/main/java/com/lyms/platform/permission/service/MedicalRecordService.java
- platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/MedicalRecordServiceImpl.java
- platform-biz-service/src/main/resources/mainOrm/slave/MedicalRecordMapper.xml
platform-biz-service/src/main/java/com/lyms/platform/permission/dao/slave/MedicalRecordMapper.java
View file @
c8b6a3c
| 1 | -package com.lyms.platform.permission.dao.slave; | |
| 2 | - | |
| 3 | - | |
| 4 | -import com.lyms.platform.permission.model.MedicalRecordVo; | |
| 5 | - | |
| 6 | -import java.util.List; | |
| 7 | - | |
| 8 | -public interface MedicalRecordMapper { | |
| 9 | - List<MedicalRecordVo> queryList(MedicalRecordVo medicalRecord); | |
| 10 | - int insert(MedicalRecordVo medicalRecord); | |
| 11 | - int update(MedicalRecordVo medicalRecord); | |
| 12 | -} |
platform-biz-service/src/main/java/com/lyms/platform/permission/service/MedicalRecordService.java
View file @
c8b6a3c
platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/MedicalRecordServiceImpl.java
View file @
c8b6a3c
| 1 | -package com.lyms.platform.permission.service.impl; | |
| 2 | - | |
| 3 | -import com.lyms.platform.permission.DataAccessLayerService; | |
| 4 | -import com.lyms.platform.permission.dao.slave.MedicalRecordMapper; | |
| 5 | -import com.lyms.platform.permission.model.MedicalRecordVo; | |
| 6 | -import com.lyms.platform.permission.service.MedicalRecordService; | |
| 7 | -import org.springframework.beans.factory.annotation.Autowired; | |
| 8 | -import org.springframework.stereotype.Service; | |
| 9 | - | |
| 10 | -import java.util.List; | |
| 11 | - | |
| 12 | -@Service("MedicalRecordServiceImpl") | |
| 13 | -public class MedicalRecordServiceImpl extends DataAccessLayerService implements MedicalRecordService { | |
| 14 | - | |
| 15 | - @Autowired | |
| 16 | - private MedicalRecordMapper medicalRecordMapper; | |
| 17 | - | |
| 18 | - @Override | |
| 19 | - public List<MedicalRecordVo> queryList(MedicalRecordVo query) { | |
| 20 | - return medicalRecordMapper.queryList(query); | |
| 21 | - } | |
| 22 | -} |
platform-biz-service/src/main/resources/mainOrm/slave/MedicalRecordMapper.xml
View file @
c8b6a3c
| 1 | -<?xml version="1.0" encoding="UTF-8" ?> | |
| 2 | -<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | |
| 3 | -<mapper namespace="com.lyms.platform.permission.dao.slave.MedicalRecordMapper"> | |
| 4 | - <resultMap id="BaseResultMap" type="com.lyms.platform.permission.model.MedicalRecordVo"> | |
| 5 | - <id property="mdtrtId" column="MDTRT_ID" jdbcType="VARCHAR"/> | |
| 6 | - <result property="pid" column="PID" jdbcType="VARCHAR"/> | |
| 7 | - <result property="name" column="NAME" jdbcType="VARCHAR"/> | |
| 8 | - <result property="cardNo" column="CARD_NO" jdbcType="VARCHAR"/> | |
| 9 | - <result property="age" column="AGE" jdbcType="VARCHAR"/> | |
| 10 | - <result property="phone" column="PHONE" jdbcType="VARCHAR"/> | |
| 11 | - <result property="gender" column="GENDER" jdbcType="VARCHAR"/> | |
| 12 | - <result property="zyType" column="ZY_TYPE" jdbcType="VARCHAR"/> | |
| 13 | - <result property="medType" column="MED_TYPE" jdbcType="VARCHAR"/> | |
| 14 | - <result property="department" column="DEPARTMENT" jdbcType="VARCHAR"/> | |
| 15 | - <result property="diagnosis" column="DIAGNOSIS" jdbcType="VARCHAR"/> | |
| 16 | - <result property="diagnosisCode" column="DIAGNOSIS_CODE" jdbcType="VARCHAR"/> | |
| 17 | - <result property="operation" column="OPERATION" jdbcType="VARCHAR"/> | |
| 18 | - <result property="operationCode" column="OPERATION_CODE" jdbcType="VARCHAR"/> | |
| 19 | - <result property="medicine" column="MEDICINE" jdbcType="VARCHAR"/> | |
| 20 | - <result property="deliveryType" column="DELIVERY_TYPE" jdbcType="VARCHAR"/> | |
| 21 | - <result property="deliveryTime" column="DELIVERY_TIME" jdbcType="DATE"/> | |
| 22 | - <result property="matnAfterDay" column="MATN_AFTER_DAY" jdbcType="VARCHAR"/> | |
| 23 | - <result property="feedType" column="FEED_TYPE" jdbcType="VARCHAR"/> | |
| 24 | - <result property="matnHistory" column="MATN_HISTORY" jdbcType="VARCHAR"/> | |
| 25 | - <result property="modified" column="MODIFIED" jdbcType="TIMESTAMP"/> | |
| 26 | - <result property="created" column="CREATED" jdbcType="TIMESTAMP"/> | |
| 27 | - </resultMap> | |
| 28 | - | |
| 29 | - <select id="queryList" resultMap="BaseResultMap"> | |
| 30 | - SELECT | |
| 31 | - MDTRT_ID, | |
| 32 | - PID, | |
| 33 | - NAME, | |
| 34 | - CARD_NO, | |
| 35 | - AGE, | |
| 36 | - PHONE, | |
| 37 | - GENDER, | |
| 38 | - ZY_TYPE, | |
| 39 | - MED_TYPE, | |
| 40 | - DEPARTMENT, | |
| 41 | - DIAGNOSIS, | |
| 42 | - DIAGNOSIS_CODE, | |
| 43 | - OPERATION, | |
| 44 | - OPERATION_CODE, | |
| 45 | - MEDICINE, | |
| 46 | - DELIVERY_TYPE, | |
| 47 | - DELIVERY_TIME, | |
| 48 | - MATN_AFTER_DAY, | |
| 49 | - FEED_TYPE, | |
| 50 | - MATN_HISTORY, | |
| 51 | - MODIFIED, | |
| 52 | - CREATED | |
| 53 | - FROM medical_record | |
| 54 | - WHERE 1=1 | |
| 55 | - | |
| 56 | - <!-- 基本信息查询条件 --> | |
| 57 | - <if test="mdtrtId != null and mdtrtId != ''"> | |
| 58 | - AND MDTRT_ID = #{mdtrtId} | |
| 59 | - </if> | |
| 60 | - | |
| 61 | - <if test="pid != null and pid != ''"> | |
| 62 | - AND PID = #{pid} | |
| 63 | - </if> | |
| 64 | - | |
| 65 | - <if test="name != null and name != ''"> | |
| 66 | - AND NAME = #{name} | |
| 67 | - </if> | |
| 68 | - | |
| 69 | - <if test="cardNo != null and cardNo != ''"> | |
| 70 | - AND CARD_NO = #{cardNo} | |
| 71 | - </if> | |
| 72 | - | |
| 73 | - <if test="age != null"> | |
| 74 | - AND AGE = #{age} | |
| 75 | - </if> | |
| 76 | - | |
| 77 | - <if test="phone != null and phone != ''"> | |
| 78 | - AND PHONE = #{phone} | |
| 79 | - </if> | |
| 80 | - | |
| 81 | - <if test="gender != null and gender != ''"> | |
| 82 | - AND GENDER = #{gender} | |
| 83 | - </if> | |
| 84 | - | |
| 85 | - <!-- 医疗信息查询条件 --> | |
| 86 | - <if test="zyType != null and zyType != ''"> | |
| 87 | - AND ZY_TYPE = #{zyType} | |
| 88 | - </if> | |
| 89 | - | |
| 90 | - <if test="medType != null and medType != ''"> | |
| 91 | - AND MED_TYPE = #{medType} | |
| 92 | - </if> | |
| 93 | - | |
| 94 | - <if test="department != null and department != ''"> | |
| 95 | - AND DEPARTMENT = #{department} | |
| 96 | - </if> | |
| 97 | - | |
| 98 | - <if test="diagnosis != null and diagnosis != ''"> | |
| 99 | - AND DIAGNOSIS = #{diagnosis} | |
| 100 | - </if> | |
| 101 | - | |
| 102 | - <if test="diagnosisCode != null and diagnosisCode != ''"> | |
| 103 | - AND DIAGNOSIS_CODE = #{diagnosisCode} | |
| 104 | - </if> | |
| 105 | - | |
| 106 | - <if test="operation != null and operation != ''"> | |
| 107 | - AND OPERATION = #{operation} | |
| 108 | - </if> | |
| 109 | - | |
| 110 | - <if test="operationCode != null and operationCode != ''"> | |
| 111 | - AND OPERATION_CODE = #{operationCode} | |
| 112 | - </if> | |
| 113 | - | |
| 114 | - <if test="medicine != null and medicine != ''"> | |
| 115 | - AND MEDICINE = #{medicine} | |
| 116 | - </if> | |
| 117 | - | |
| 118 | - <!-- 分娩与产后信息查询条件 --> | |
| 119 | - <if test="deliveryType != null and deliveryType != ''"> | |
| 120 | - AND DELIVERY_TYPE = #{deliveryType} | |
| 121 | - </if> | |
| 122 | - | |
| 123 | - <if test="deliveryTime != null"> | |
| 124 | - AND DELIVERY_TIME = #{deliveryTime} | |
| 125 | - </if> | |
| 126 | - | |
| 127 | - <if test="matnAfterDay != null"> | |
| 128 | - AND MATN_AFTER_DAY = #{matnAfterDay} | |
| 129 | - </if> | |
| 130 | - | |
| 131 | - <if test="feedType != null and feedType != ''"> | |
| 132 | - AND FEED_TYPE = #{feedType} | |
| 133 | - </if> | |
| 134 | - | |
| 135 | - <if test="matnHistory != null and matnHistory != ''"> | |
| 136 | - AND MATN_HISTORY = #{matnHistory} | |
| 137 | - </if> | |
| 138 | - | |
| 139 | - <!-- 时间范围查询条件 --> | |
| 140 | - <if test="modified != null"> | |
| 141 | - AND MODIFIED = #{modified} | |
| 142 | - </if> | |
| 143 | - | |
| 144 | - <if test="created != null"> | |
| 145 | - AND CREATED = #{created} | |
| 146 | - </if> | |
| 147 | - | |
| 148 | - ORDER BY CREATED DESC | |
| 149 | - </select> | |
| 150 | - | |
| 151 | - | |
| 152 | - <select id="queryOne" resultMap="BaseResultMap"> | |
| 153 | - SELECT | |
| 154 | - MDTRT_ID, | |
| 155 | - PID, | |
| 156 | - NAME, | |
| 157 | - CARD_NO, | |
| 158 | - AGE, | |
| 159 | - PHONE, | |
| 160 | - GENDER, | |
| 161 | - ZY_TYPE, | |
| 162 | - MED_TYPE, | |
| 163 | - DEPARTMENT, | |
| 164 | - DIAGNOSIS, | |
| 165 | - DIAGNOSIS_CODE, | |
| 166 | - OPERATION, | |
| 167 | - OPERATION_CODE, | |
| 168 | - MEDICINE, | |
| 169 | - DELIVERY_TYPE, | |
| 170 | - DELIVERY_TIME, | |
| 171 | - MATN_AFTER_DAY, | |
| 172 | - FEED_TYPE, | |
| 173 | - MATN_HISTORY, | |
| 174 | - MODIFIED, | |
| 175 | - CREATED | |
| 176 | - FROM medical_record | |
| 177 | - WHERE MDTRT_ID = #{mdtrtId} | |
| 178 | - </select> | |
| 179 | - | |
| 180 | - <insert id="insert" parameterType="com.lyms.platform.permission.model.MedicalRecordVo"> | |
| 181 | - INSERT INTO medical_record ( | |
| 182 | - MDTRT_ID, | |
| 183 | - PID, | |
| 184 | - NAME, | |
| 185 | - CARD_NO, | |
| 186 | - AGE, | |
| 187 | - PHONE, | |
| 188 | - GENDER, | |
| 189 | - ZY_TYPE, | |
| 190 | - MED_TYPE, | |
| 191 | - DEPARTMENT, | |
| 192 | - DIAGNOSIS, | |
| 193 | - DIAGNOSIS_CODE, | |
| 194 | - OPERATION, | |
| 195 | - OPERATION_CODE, | |
| 196 | - MEDICINE, | |
| 197 | - DELIVERY_TYPE, | |
| 198 | - DELIVERY_TIME, | |
| 199 | - MATN_AFTER_DAY, | |
| 200 | - FEED_TYPE, | |
| 201 | - MATN_HISTORY, | |
| 202 | - MODIFIED, | |
| 203 | - CREATED | |
| 204 | - ) VALUES ( | |
| 205 | - #{mdtrtId}, | |
| 206 | - #{pid}, | |
| 207 | - #{name}, | |
| 208 | - #{cardNo}, | |
| 209 | - #{age}, | |
| 210 | - #{phone}, | |
| 211 | - #{gender}, | |
| 212 | - #{zyType}, | |
| 213 | - #{medType}, | |
| 214 | - #{department}, | |
| 215 | - #{diagnosis}, | |
| 216 | - #{diagnosisCode}, | |
| 217 | - #{operation}, | |
| 218 | - #{operationCode}, | |
| 219 | - #{medicine}, | |
| 220 | - #{deliveryType}, | |
| 221 | - #{deliveryTime}, | |
| 222 | - #{matnAfterDay}, | |
| 223 | - #{feedType}, | |
| 224 | - #{matnHistory}, | |
| 225 | - #{modified}, | |
| 226 | - #{created} | |
| 227 | - ) | |
| 228 | - </insert> | |
| 229 | - | |
| 230 | - <insert id="insertBatch" parameterType="com.lyms.platform.permission.model.MedicalRecordVo"> | |
| 231 | - INSERT INTO medical_record ( | |
| 232 | - mdtrt_id, <!-- 就诊唯一标识 --> | |
| 233 | - pid, <!-- 人员标识 --> | |
| 234 | - name, <!-- 姓名 --> | |
| 235 | - card_no, <!-- 身份证 --> | |
| 236 | - age, <!-- 年龄 --> | |
| 237 | - phone, <!-- 联系方式 --> | |
| 238 | - gender, <!-- 性别 --> | |
| 239 | - zy_type, <!-- 住院类别 --> | |
| 240 | - med_type, <!-- 医疗类别 --> | |
| 241 | - department, <!-- 科室 --> | |
| 242 | - diagnosis, <!-- 主诊断 --> | |
| 243 | - diagnosis_code, <!-- 主诊断编码 --> | |
| 244 | - operation, <!-- 主手术 --> | |
| 245 | - operation_code, <!-- 主手术编码 --> | |
| 246 | - medicine, <!-- 用药明细 --> | |
| 247 | - delivery_type, <!-- 分娩方式 --> | |
| 248 | - delivery_time, <!-- 分娩时间 --> | |
| 249 | - matn_after_day, <!-- 产后天数 --> | |
| 250 | - feed_type, <!-- 喂养方式 --> | |
| 251 | - matn_history, <!-- 生育史(胎次) --> | |
| 252 | - modified, <!-- 修改时间 --> | |
| 253 | - created <!-- 创建时间 --> | |
| 254 | - ) | |
| 255 | - VALUES | |
| 256 | - <foreach collection="list" item="entity" separator=","> | |
| 257 | - ( | |
| 258 | - #{entity.mdtrtId}, | |
| 259 | - #{entity.pid}, | |
| 260 | - #{entity.name}, | |
| 261 | - #{entity.cardNo}, | |
| 262 | - #{entity.age}, | |
| 263 | - #{entity.phone}, | |
| 264 | - #{entity.gender}, | |
| 265 | - #{entity.zyType}, | |
| 266 | - #{entity.medType}, | |
| 267 | - #{entity.department}, | |
| 268 | - #{entity.diagnosis}, | |
| 269 | - #{entity.diagnosisCode}, | |
| 270 | - #{entity.operation}, | |
| 271 | - #{entity.operationCode}, | |
| 272 | - #{entity.medicine}, | |
| 273 | - #{entity.deliveryType}, | |
| 274 | - #{entity.deliveryTime}, | |
| 275 | - #{entity.matnAfterDay}, | |
| 276 | - #{entity.feedType}, | |
| 277 | - #{entity.matnHistory}, | |
| 278 | - #{entity.modified}, | |
| 279 | - #{entity.created} | |
| 280 | - ) | |
| 281 | - </foreach> | |
| 282 | - </insert> | |
| 283 | - | |
| 284 | - <update id="update" parameterType="com.lyms.platform.permission.model.MedicalRecordVo"> | |
| 285 | - UPDATE medical_record | |
| 286 | - <set> | |
| 287 | - <!-- 基本信息 --> | |
| 288 | - <if test="pid != null"> | |
| 289 | - PID = #{pid}, | |
| 290 | - </if> | |
| 291 | - <if test="name != null"> | |
| 292 | - NAME = #{name}, | |
| 293 | - </if> | |
| 294 | - <if test="cardNo != null"> | |
| 295 | - CARD_NO = #{cardNo}, | |
| 296 | - </if> | |
| 297 | - <if test="age != null"> | |
| 298 | - AGE = #{age}, | |
| 299 | - </if> | |
| 300 | - <if test="phone != null"> | |
| 301 | - PHONE = #{phone}, | |
| 302 | - </if> | |
| 303 | - <if test="gender != null"> | |
| 304 | - GENDER = #{gender}, | |
| 305 | - </if> | |
| 306 | - | |
| 307 | - <!-- 医疗类别信息 --> | |
| 308 | - <if test="zyType != null"> | |
| 309 | - ZY_TYPE = #{zyType}, | |
| 310 | - </if> | |
| 311 | - <if test="medType != null"> | |
| 312 | - MED_TYPE = #{medType}, | |
| 313 | - </if> | |
| 314 | - | |
| 315 | - <!-- 诊断信息 --> | |
| 316 | - <if test="department != null"> | |
| 317 | - DEPARTMENT = #{department}, | |
| 318 | - </if> | |
| 319 | - <if test="diagnosis != null"> | |
| 320 | - DIAGNOSIS = #{diagnosis}, | |
| 321 | - </if> | |
| 322 | - <if test="diagnosisCode != null"> | |
| 323 | - DIAGNOSIS_CODE = #{diagnosisCode}, | |
| 324 | - </if> | |
| 325 | - | |
| 326 | - <!-- 手术信息 --> | |
| 327 | - <if test="operation != null"> | |
| 328 | - OPERATION = #{operation}, | |
| 329 | - </if> | |
| 330 | - <if test="operationCode != null"> | |
| 331 | - OPERATION_CODE = #{operationCode}, | |
| 332 | - </if> | |
| 333 | - | |
| 334 | - <!-- 用药信息 --> | |
| 335 | - <if test="medicine != null"> | |
| 336 | - MEDICINE = #{medicine}, | |
| 337 | - </if> | |
| 338 | - | |
| 339 | - <!-- 分娩信息 --> | |
| 340 | - <if test="deliveryType != null"> | |
| 341 | - DELIVERY_TYPE = #{deliveryType}, | |
| 342 | - </if> | |
| 343 | - <if test="deliveryTime != null"> | |
| 344 | - DELIVERY_TIME = #{deliveryTime}, | |
| 345 | - </if> | |
| 346 | - <if test="matnAfterDay != null"> | |
| 347 | - MATN_AFTER_DAY = #{matnAfterDay}, | |
| 348 | - </if> | |
| 349 | - | |
| 350 | - <!-- 产后信息 --> | |
| 351 | - <if test="feedType != null"> | |
| 352 | - FEED_TYPE = #{feedType}, | |
| 353 | - </if> | |
| 354 | - <if test="matnHistory != null"> | |
| 355 | - MATN_HISTORY = #{matnHistory}, | |
| 356 | - </if> | |
| 357 | - | |
| 358 | - <!-- 系统信息 --> | |
| 359 | - <if test="modified != null"> | |
| 360 | - MODIFIED = #{modified}, | |
| 361 | - </if> | |
| 362 | - <if test="created != null"> | |
| 363 | - CREATED = #{created}, | |
| 364 | - </if> | |
| 365 | - </set> | |
| 366 | - WHERE MDTRT_ID = #{mdtrtId} | |
| 367 | - </update> | |
| 368 | -</mapper> |