Commit 81a00c9e7899d89b9983a265fa3baeccd3ee60ad

Authored by jesse.wang
1 parent b150014400

孤独症初筛名字

Showing 4 changed files with 621 additions and 91 deletions

platform-biz-service/src/main/resources/mainOrm/master/BabyAutismPrimaryScreeningMapper.xml View file @ 81a00c9
... ... @@ -5,41 +5,69 @@
5 5 <mapper namespace="com.lyms.platform.permission.dao.master.BabyAutismPrimaryScreeningMapper">
6 6  
7 7 <resultMap id="BabyAutismPrimaryScreeningMap" type="com.lyms.platform.pojo.BabyAutismPrimaryScreening">
8   - <result property="id" column="id" jdbcType="VARCHAR"/>
9   - <result property="created" column="created" jdbcType="VARCHAR"/>
10   - <result property="modified" column="modified" jdbcType="VARCHAR"/>
11   - <result property="yn" column="yn" jdbcType="INTEGER"/>
12   - <result property="operaterId" column="operater_id" jdbcType="VARCHAR"/>
13   - <result property="hospitalId" column="hospital_id" jdbcType="VARCHAR"/>
14   - <result property="babyId" column="baby_id" jdbcType="VARCHAR"/>
15   - <result property="babyBuildDate" column="baby_build_date" jdbcType="VARCHAR"/>
16   - <result property="babyName" column="baby_name" jdbcType="VARCHAR"/>
17   - <result property="babySex" column="baby_sex" jdbcType="INTEGER"/>
18   - <result property="babyMName" column="baby_m_name" jdbcType="VARCHAR"/>
19   - <result property="babyFName" column="baby_f_name" jdbcType="VARCHAR"/>
20   - <result property="babyMPhone" column="baby_m_phone" jdbcType="VARCHAR"/>
21   - <result property="babyFPhone" column="baby_f_phone" jdbcType="VARCHAR"/>
22   - <result property="babyMCertNo" column="baby_m_cert_no" jdbcType="VARCHAR"/>
23   - <result property="babyFCertNo" column="baby_f_cert_no" jdbcType="VARCHAR"/>
24   - <result property="pid" column="pid" jdbcType="VARCHAR"/>
25   - <result property="checkMonthAge" column="check_month_age" jdbcType="VARCHAR"/>
26   - <result property="checkMonthId" column="check_month_id" jdbcType="VARCHAR"/>
27   - <result property="birth" column="birth" jdbcType="VARCHAR"/>
28   - <result property="checkTime" column="check_time" jdbcType="VARCHAR"/>
29   - <result property="nextCheckTime" column="next_check_time" jdbcType="VARCHAR"/>
30   - <result property="doctor" column="check_doctor" jdbcType="VARCHAR"/>
31   - <result property="doctorSign" column="doctor_sign" jdbcType="VARCHAR"/>
32   - <result property="patientSign" column="patient_sign" jdbcType="VARCHAR"/>
33   - <result property="guidanceOpinions" column="guidance_opinions" jdbcType="VARCHAR"/>
34   - <result property="handleOpinions" column="handle_opinions" jdbcType="VARCHAR"/>
35   - <result property="warningSignstring" column="warning_signs" jdbcType="VARCHAR"/>
36   - <result property="languageSocialstirng" column="language_social" jdbcType="VARCHAR"/>
37   - <result property="global" column="preliminary_screening_results" jdbcType="VARCHAR"/>
  8 + <result property="id" column="id" jdbcType="VARCHAR"/>
  9 + <result property="created" column="created" jdbcType="VARCHAR"/>
  10 + <result property="modified" column="modified" jdbcType="VARCHAR"/>
  11 + <result property="yn" column="yn" jdbcType="INTEGER"/>
  12 + <result property="operaterId" column="operater_id" jdbcType="VARCHAR"/>
  13 + <result property="hospitalId" column="hospital_id" jdbcType="VARCHAR"/>
  14 + <result property="babyId" column="baby_id" jdbcType="VARCHAR"/>
  15 + <result property="babyBuildDate" column="baby_build_date" jdbcType="VARCHAR"/>
  16 + <result property="babyName" column="baby_name" jdbcType="VARCHAR"/>
  17 + <result property="babySex" column="baby_sex" jdbcType="INTEGER"/>
  18 + <result property="babyMName" column="baby_m_name" jdbcType="VARCHAR"/>
  19 + <result property="babyFName" column="baby_f_name" jdbcType="VARCHAR"/>
  20 + <result property="babyMPhone" column="baby_m_phone" jdbcType="VARCHAR"/>
  21 + <result property="babyFPhone" column="baby_f_phone" jdbcType="VARCHAR"/>
  22 + <result property="babyMCertNo" column="baby_m_cert_no" jdbcType="VARCHAR"/>
  23 + <result property="babyFCertNo" column="baby_f_cert_no" jdbcType="VARCHAR"/>
  24 + <result property="pid" column="pid" jdbcType="VARCHAR"/>
  25 + <result property="checkMonthAge" column="check_month_age" jdbcType="VARCHAR"/>
  26 + <result property="checkMonthId" column="check_month_id" jdbcType="VARCHAR"/>
  27 + <result property="birth" column="birth" jdbcType="VARCHAR"/>
  28 + <result property="checkTime" column="check_time" jdbcType="VARCHAR"/>
  29 + <result property="nextCheckTime" column="next_check_time" jdbcType="VARCHAR"/>
  30 + <result property="doctor" column="check_doctor" jdbcType="VARCHAR"/>
  31 + <result property="doctorSign" column="doctor_sign" jdbcType="VARCHAR"/>
  32 + <result property="patientSign" column="patient_sign" jdbcType="VARCHAR"/>
  33 + <result property="guidanceOpinions" column="guidance_opinions" jdbcType="VARCHAR"/>
  34 + <result property="handleOpinions" column="handle_opinions" jdbcType="VARCHAR"/>
  35 + <result property="warningSignstring" column="warning_signs" jdbcType="VARCHAR"/>
  36 + <result property="languageSocialstirng" column="language_social" jdbcType="VARCHAR"/>
  37 + <result property="global" column="preliminary_screening_results" jdbcType="VARCHAR"/>
38 38 </resultMap>
39 39 <!--查询单个-->
40 40 <select id="queryById" resultMap="BabyAutismPrimaryScreeningMap">
41   - select
42   - id, created, modified, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, check_time, next_check_time, check_doctor, doctor_sign, patient_sign, guidance_opinions, handle_opinions, warning_signs, language_social, preliminary_screening_results
  41 + select id,
  42 + created,
  43 + modified,
  44 + yn,
  45 + operater_id,
  46 + hospital_id,
  47 + baby_id,
  48 + baby_build_date,
  49 + baby_name,
  50 + baby_sex,
  51 + baby_m_name,
  52 + baby_f_name,
  53 + baby_m_phone,
  54 + baby_f_phone,
  55 + baby_m_cert_no,
  56 + baby_f_cert_no,
  57 + pid,
  58 + check_month_age,
  59 + check_month_id,
  60 + birth,
  61 + check_time,
  62 + next_check_time,
  63 + check_doctor,
  64 + doctor_sign,
  65 + patient_sign,
  66 + guidance_opinions,
  67 + handle_opinions,
  68 + warning_signs,
  69 + language_social,
  70 + preliminary_screening_results
43 71 from baby_autism_primary_screening
44 72 where id = #{id}
45 73 </select>
... ... @@ -47,7 +75,10 @@
47 75 <!--查询指定行数据-->
48 76 <select id="queryAllByLimit" resultMap="BabyAutismPrimaryScreeningMap">
49 77 select
50   - id, created, modified, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, check_time, next_check_time, check_doctor, doctor_sign, patient_sign, guidance_opinions, handle_opinions, warning_signs, language_social, preliminary_screening_results
  78 + id, created, modified, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_name, baby_sex, baby_m_name,
  79 + baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id,
  80 + birth, check_time, next_check_time, check_doctor, doctor_sign, patient_sign, guidance_opinions, handle_opinions,
  81 + warning_signs, language_social, preliminary_screening_results
51 82 from baby_autism_primary_screening
52 83 <where>
53 84 <if test="id != null and id != ''">
54 85  
55 86  
56 87  
57 88  
58 89  
... ... @@ -241,38 +272,56 @@
241 272 </if>
242 273 </where>
243 274 </select>
244   - <select id="queryListByBabyId" resultMap="BabyAutismPrimaryScreeningMap">
245   - select
246   - id, created, modified, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, check_time, next_check_time, check_doctor, doctor_sign, patient_sign, guidance_opinions, handle_opinions, warning_signs, language_social, preliminary_screening_results
247   - from baby_autism_primary_screening
248   - <where>
249   - and baby_id = #{id}
250   - </where>
251   - order by check_time
252   - </select>
253 275  
254 276 <!--新增所有列-->
255   - <insert id="insert" >
256   -
257   - insert into baby_autism_primary_screening(id,created, modified, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, check_time, next_check_time, check_doctor, doctor_sign, patient_sign, guidance_opinions, handle_opinions, warning_signs, language_social, preliminary_screening_results)
258   - values (#{id},#{created}, #{modified}, #{yn}, #{operaterId}, #{hospitalId}, #{babyId}, #{babyBuildDate}, #{babyName}, #{babySex}, #{babyMName}, #{babyFName}, #{babyMPhone}, #{babyFPhone}, #{babyMCertNo}, #{babyFCertNo}, #{pid}, #{checkMonthAge}, #{checkMonthId}, #{birth}, #{checkTime}, #{nextCheckTime}, #{doctor}, #{doctorSign}, #{patientSign}, #{guidanceOpinions}, #{handleOpinions}, #{warningSignstring}, #{languageSocialstirng}, #{global})
  277 + <insert id="insert" keyProperty="id" useGeneratedKeys="true">
  278 + insert into baby_autism_primary_screening(created, modified, yn, operater_id, hospital_id, baby_id,
  279 + baby_build_date, baby_name, baby_sex, baby_m_name, baby_f_name,
  280 + baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid,
  281 + check_month_age, check_month_id, birth, check_time, next_check_time,
  282 + check_doctor, doctor_sign, patient_sign, guidance_opinions,
  283 + handle_opinions, warning_signs, language_social,
  284 + preliminary_screening_results)
  285 + values (#{created}, #{modified}, #{yn}, #{operaterId}, #{hospitalId}, #{babyId}, #{babyBuildDate}, #{babyName},
  286 + #{babySex}, #{babyMName}, #{babyFName}, #{babyMPhone}, #{babyFPhone}, #{babyMCertNo}, #{babyFCertNo},
  287 + #{pid}, #{checkMonthAge}, #{checkMonthId}, #{birth}, #{checkTime}, #{nextCheckTime}, #{doctor},
  288 + #{doctorSign}, #{patientSign}, #{guidanceOpinions}, #{handleOpinions}, #{entity.warningSignstring},
  289 + #{entity.languageSocialstirng}, #{entity.global})
259 290 </insert>
260 291  
261   - <insert id="insertBatch" >
262   - <selectKey order="AFTER" keyProperty="id" resultType="java.lang.Integer"> SELECT LAST_INSERT_ID() </selectKey>
263   -
264   - insert into baby_autism_primary_screening(id,created, modified, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, check_time, next_check_time, check_doctor, doctor_sign, patient_sign, guidance_opinions, handle_opinions, warning_signs, language_social, preliminary_screening_results)
  292 + <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
  293 + insert into baby_autism_primary_screening(created, modified, yn, operater_id, hospital_id, baby_id,
  294 + baby_build_date, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no,
  295 + baby_f_cert_no, pid, check_month_age, check_month_id, birth, check_time, next_check_time, check_doctor,
  296 + doctor_sign, patient_sign, guidance_opinions, handle_opinions, warning_signs, language_social,
  297 + preliminary_screening_results)
265 298 values
266 299 <foreach collection="entities" item="entity" separator=",">
267   - (#{id},#{entity.created}, #{entity.modified}, #{entity.yn}, #{entity.operaterId}, #{entity.hospitalId}, #{entity.babyId}, #{entity.babyBuildDate}, #{entity.babyName}, #{entity.babySex}, #{entity.babyMName}, #{entity.babyFName}, #{entity.babyMPhone}, #{entity.babyFPhone}, #{entity.babyMCertNo}, #{entity.babyFCertNo}, #{entity.pid}, #{entity.checkMonthAge}, #{entity.checkMonthId}, #{entity.birth}, #{entity.checkTime}, #{entity.nextCheckTime}, #{entity.doctor}, #{entity.doctorSign}, #{entity.patientSign}, #{entity.guidanceOpinions}, #{entity.handleOpinions}, #{entity.warningSignstring}, #{entity.languageSocialstirng}, #{entity.global})
  300 + (#{entity.created}, #{entity.modified}, #{entity.yn}, #{entity.operaterId}, #{entity.hospitalId},
  301 + #{entity.babyId}, #{entity.babyBuildDate}, #{entity.babyName}, #{entity.babySex}, #{entity.babyMName},
  302 + #{entity.babyFName}, #{entity.babyMPhone}, #{entity.babyFPhone}, #{entity.babyMCertNo},
  303 + #{entity.babyFCertNo}, #{entity.pid}, #{entity.checkMonthAge}, #{entity.checkMonthId}, #{entity.birth},
  304 + #{entity.checkTime}, #{entity.nextCheckTime}, #{entity.doctor}, #{entity.doctorSign},
  305 + #{entity.patientSign}, #{entity.guidanceOpinions}, #{entity.handleOpinions}, #{entity.warningSignstring},
  306 + #{entity.languageSocialstirng}, #{entity.global})
268 307 </foreach>
269 308 </insert>
270 309  
271   - <insert id="insertOrUpdateBatch" >
272   - insert into baby_autism_primary_screening(id,created, modified, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, check_time, next_check_time, check_doctor, doctor_sign, patient_sign, guidance_opinions, handle_opinions, warning_signs, language_social, preliminary_screening_results)
  310 + <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
  311 + insert into baby_autism_primary_screening(created, modified, yn, operater_id, hospital_id, baby_id,
  312 + baby_build_date, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no,
  313 + baby_f_cert_no, pid, check_month_age, check_month_id, birth, check_time, next_check_time, check_doctor,
  314 + doctor_sign, patient_sign, guidance_opinions, handle_opinions, warning_signs, language_social,
  315 + preliminary_screening_results)
273 316 values
274 317 <foreach collection="entities" item="entity" separator=",">
275   - (#{id},#{entity.created}, #{entity.modified}, #{entity.yn}, #{entity.operaterId}, #{entity.hospitalId}, #{entity.babyId}, #{entity.babyBuildDate}, #{entity.babyName}, #{entity.babySex}, #{entity.babyMName}, #{entity.babyFName}, #{entity.babyMPhone}, #{entity.babyFPhone}, #{entity.babyMCertNo}, #{entity.babyFCertNo}, #{entity.pid}, #{entity.checkMonthAge}, #{entity.checkMonthId}, #{entity.birth}, #{entity.checkTime}, #{entity.nextCheckTime}, #{entity.doctor}, #{entity.doctorSign}, #{entity.patientSign}, #{entity.guidanceOpinions}, #{entity.handleOpinions}, #{entity.warningSignstring}, #{entity.languageSocialstirng}, #{entity.global})
  318 + (#{entity.created}, #{entity.modified}, #{entity.yn}, #{entity.operaterId}, #{entity.hospitalId},
  319 + #{entity.babyId}, #{entity.babyBuildDate}, #{entity.babyName}, #{entity.babySex}, #{entity.babyMName},
  320 + #{entity.babyFName}, #{entity.babyMPhone}, #{entity.babyFPhone}, #{entity.babyMCertNo},
  321 + #{entity.babyFCertNo}, #{entity.pid}, #{entity.checkMonthAge}, #{entity.checkMonthId}, #{entity.birth},
  322 + #{entity.checkTime}, #{entity.nextCheckTime}, #{entity.doctor}, #{entity.doctorSign},
  323 + #{entity.patientSign}, #{entity.guidanceOpinions}, #{entity.handleOpinions}, #{entity.warningSignstring},
  324 + #{entity.languageSocialstirng}, #{entity.global})
276 325 </foreach>
277 326 on duplicate key update
278 327 created = values(created),
279 328  
280 329  
281 330  
282 331  
283 332  
284 333  
285 334  
286 335  
287 336  
288 337  
289 338  
290 339  
... ... @@ -310,49 +359,49 @@
310 359 <update id="update">
311 360 update baby_autism_primary_screening
312 361 <set>
313   - <if test="created != null ">
  362 + <if test="created != null and created != ''">
314 363 created = #{created},
315 364 </if>
316   - <if test="modified != null">
  365 + <if test="modified != null and modified != ''">
317 366 modified = #{modified},
318 367 </if>
319 368 <if test="yn != null">
320 369 yn = #{yn},
321 370 </if>
322   - <if test="operaterId != null ">
  371 + <if test="operaterId != null and operaterId != ''">
323 372 operater_id = #{operaterId},
324 373 </if>
325   - <if test="hospitalId != null ">
  374 + <if test="hospitalId != null and hospitalId != ''">
326 375 hospital_id = #{hospitalId},
327 376 </if>
328   - <if test="babyId != null ">
  377 + <if test="babyId != null and babyId != ''">
329 378 baby_id = #{babyId},
330 379 </if>
331   - <if test="babyBuildDate != null ">
  380 + <if test="babyBuildDate != null and babyBuildDate != ''">
332 381 baby_build_date = #{babyBuildDate},
333 382 </if>
334   - <if test="babyName != null ">
  383 + <if test="babyName != null and babyName != ''">
335 384 baby_name = #{babyName},
336 385 </if>
337 386 <if test="babySex != null">
338 387 baby_sex = #{babySex},
339 388 </if>
340   - <if test="babyMName != null ">
  389 + <if test="babyMName != null and babyMName != ''">
341 390 baby_m_name = #{babyMName},
342 391 </if>
343   - <if test="babyFName != null ">
  392 + <if test="babyFName != null and babyFName != ''">
344 393 baby_f_name = #{babyFName},
345 394 </if>
346   - <if test="babyMPhone != null ">
  395 + <if test="babyMPhone != null and babyMPhone != ''">
347 396 baby_m_phone = #{babyMPhone},
348 397 </if>
349   - <if test="babyFPhone != null ">
  398 + <if test="babyFPhone != null and babyFPhone != ''">
350 399 baby_f_phone = #{babyFPhone},
351 400 </if>
352   - <if test="babyMCertNo != null ">
  401 + <if test="babyMCertNo != null and babyMCertNo != ''">
353 402 baby_m_cert_no = #{babyMCertNo},
354 403 </if>
355   - <if test="babyFCertNo != null ">
  404 + <if test="babyFCertNo != null and babyFCertNo != ''">
356 405 baby_f_cert_no = #{babyFCertNo},
357 406 </if>
358 407 <if test="pid != null and pid != ''">
359 408  
... ... @@ -367,10 +416,10 @@
367 416 <if test="birth != null and birth != ''">
368 417 birth = #{birth},
369 418 </if>
370   - <if test="checkTime != null ">
  419 + <if test="checkTime != null and checkTime != ''">
371 420 check_time = #{checkTime},
372 421 </if>
373   - <if test="nextCheckTime != null ">
  422 + <if test="nextCheckTime != null and nextCheckTime != ''">
374 423 next_check_time = #{nextCheckTime},
375 424 </if>
376 425 <if test="doctor != null and doctor != ''">
377 426  
... ... @@ -403,7 +452,22 @@
403 452  
404 453 <!--通过主键删除-->
405 454 <delete id="deleteById">
406   - delete from baby_autism_primary_screening where id = #{id}
  455 + delete
  456 + from baby_autism_primary_screening
  457 + where id = #{id}
407 458 </delete>
  459 +
  460 + <select id="queryListByBabyId" resultMap="BabyAutismPrimaryScreeningMap">
  461 + select
  462 + id, created, modified, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_name, baby_sex, baby_m_name,
  463 + baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id,
  464 + birth, check_time, next_check_time, check_doctor, doctor_sign, patient_sign, guidance_opinions, handle_opinions,
  465 + warning_signs, language_social, preliminary_screening_results
  466 + from baby_autism_primary_screening
  467 + <where>
  468 + and baby_id = #{id}
  469 + </where>
  470 + order by check_time
  471 + </select>
408 472 </mapper>
platform-biz-service/src/main/resources/mapper/BabyAutismPrimaryScreeningDao.xml View file @ 81a00c9
  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.dao.BabyAutismPrimaryScreeningMapper">
  4 +
  5 + <resultMap type="com.lyms.platform.entity.BabyAutismPrimaryScreening" id="BabyAutismPrimaryScreeningMap">
  6 + <result property="id" column="id" jdbcType="VARCHAR"/>
  7 + <result property="created" column="created" jdbcType="VARCHAR"/>
  8 + <result property="modified" column="modified" jdbcType="VARCHAR"/>
  9 + <result property="yn" column="yn" jdbcType="INTEGER"/>
  10 + <result property="operaterId" column="operater_id" jdbcType="VARCHAR"/>
  11 + <result property="hospitalId" column="hospital_id" jdbcType="VARCHAR"/>
  12 + <result property="babyId" column="baby_id" jdbcType="VARCHAR"/>
  13 + <result property="babyBuildDate" column="baby_build_date" jdbcType="VARCHAR"/>
  14 + <result property="babyName" column="baby_name" jdbcType="VARCHAR"/>
  15 + <result property="babySex" column="baby_sex" jdbcType="INTEGER"/>
  16 + <result property="babyMName" column="baby_m_name" jdbcType="VARCHAR"/>
  17 + <result property="babyFName" column="baby_f_name" jdbcType="VARCHAR"/>
  18 + <result property="babyMPhone" column="baby_m_phone" jdbcType="VARCHAR"/>
  19 + <result property="babyFPhone" column="baby_f_phone" jdbcType="VARCHAR"/>
  20 + <result property="babyMCertNo" column="baby_m_cert_no" jdbcType="VARCHAR"/>
  21 + <result property="babyFCertNo" column="baby_f_cert_no" jdbcType="VARCHAR"/>
  22 + <result property="pid" column="pid" jdbcType="VARCHAR"/>
  23 + <result property="checkMonthAge" column="check_month_age" jdbcType="VARCHAR"/>
  24 + <result property="checkMonthId" column="check_month_id" jdbcType="VARCHAR"/>
  25 + <result property="birth" column="birth" jdbcType="VARCHAR"/>
  26 + <result property="checkTime" column="check_time" jdbcType="VARCHAR"/>
  27 + <result property="nextCheckTime" column="next_check_time" jdbcType="VARCHAR"/>
  28 + <result property="checkDoctor" column="check_doctor" jdbcType="VARCHAR"/>
  29 + <result property="doctorSign" column="doctor_sign" jdbcType="VARCHAR"/>
  30 + <result property="patientSign" column="patient_sign" jdbcType="VARCHAR"/>
  31 + <result property="guidanceOpinions" column="guidance_opinions" jdbcType="VARCHAR"/>
  32 + <result property="handleOpinions" column="handle_opinions" jdbcType="VARCHAR"/>
  33 + <result property="warningSigns" column="warning_signs" jdbcType="VARCHAR"/>
  34 + <result property="languageSocial" column="language_social" jdbcType="VARCHAR"/>
  35 + <result property="preliminaryScreeningResults" column="preliminary_screening_results" jdbcType="VARCHAR"/>
  36 + </resultMap>
  37 +
  38 + <!--查询单个-->
  39 + <select id="queryById" resultMap="BabyAutismPrimaryScreeningMap">
  40 + select
  41 + id, created, modified, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, check_time, next_check_time, check_doctor, doctor_sign, patient_sign, guidance_opinions, handle_opinions, warning_signs, language_social, preliminary_screening_results
  42 + from baby_autism_primary_screening
  43 + where id = #{id}
  44 + </select>
  45 +
  46 + <!--查询指定行数据-->
  47 + <select id="queryAllByLimit" resultMap="BabyAutismPrimaryScreeningMap">
  48 + select
  49 + id, created, modified, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, check_time, next_check_time, check_doctor, doctor_sign, patient_sign, guidance_opinions, handle_opinions, warning_signs, language_social, preliminary_screening_results
  50 + from baby_autism_primary_screening
  51 + <where>
  52 + <if test="id != null and id != ''">
  53 + and id = #{id}
  54 + </if>
  55 + <if test="created != null and created != ''">
  56 + and created = #{created}
  57 + </if>
  58 + <if test="modified != null and modified != ''">
  59 + and modified = #{modified}
  60 + </if>
  61 + <if test="yn != null">
  62 + and yn = #{yn}
  63 + </if>
  64 + <if test="operaterId != null and operaterId != ''">
  65 + and operater_id = #{operaterId}
  66 + </if>
  67 + <if test="hospitalId != null and hospitalId != ''">
  68 + and hospital_id = #{hospitalId}
  69 + </if>
  70 + <if test="babyId != null and babyId != ''">
  71 + and baby_id = #{babyId}
  72 + </if>
  73 + <if test="babyBuildDate != null and babyBuildDate != ''">
  74 + and baby_build_date = #{babyBuildDate}
  75 + </if>
  76 + <if test="babyName != null and babyName != ''">
  77 + and baby_name = #{babyName}
  78 + </if>
  79 + <if test="babySex != null">
  80 + and baby_sex = #{babySex}
  81 + </if>
  82 + <if test="babyMName != null and babyMName != ''">
  83 + and baby_m_name = #{babyMName}
  84 + </if>
  85 + <if test="babyFName != null and babyFName != ''">
  86 + and baby_f_name = #{babyFName}
  87 + </if>
  88 + <if test="babyMPhone != null and babyMPhone != ''">
  89 + and baby_m_phone = #{babyMPhone}
  90 + </if>
  91 + <if test="babyFPhone != null and babyFPhone != ''">
  92 + and baby_f_phone = #{babyFPhone}
  93 + </if>
  94 + <if test="babyMCertNo != null and babyMCertNo != ''">
  95 + and baby_m_cert_no = #{babyMCertNo}
  96 + </if>
  97 + <if test="babyFCertNo != null and babyFCertNo != ''">
  98 + and baby_f_cert_no = #{babyFCertNo}
  99 + </if>
  100 + <if test="pid != null and pid != ''">
  101 + and pid = #{pid}
  102 + </if>
  103 + <if test="checkMonthAge != null and checkMonthAge != ''">
  104 + and check_month_age = #{checkMonthAge}
  105 + </if>
  106 + <if test="checkMonthId != null and checkMonthId != ''">
  107 + and check_month_id = #{checkMonthId}
  108 + </if>
  109 + <if test="birth != null and birth != ''">
  110 + and birth = #{birth}
  111 + </if>
  112 + <if test="checkTime != null and checkTime != ''">
  113 + and check_time = #{checkTime}
  114 + </if>
  115 + <if test="nextCheckTime != null and nextCheckTime != ''">
  116 + and next_check_time = #{nextCheckTime}
  117 + </if>
  118 + <if test="checkDoctor != null and checkDoctor != ''">
  119 + and check_doctor = #{checkDoctor}
  120 + </if>
  121 + <if test="doctorSign != null and doctorSign != ''">
  122 + and doctor_sign = #{doctorSign}
  123 + </if>
  124 + <if test="patientSign != null and patientSign != ''">
  125 + and patient_sign = #{patientSign}
  126 + </if>
  127 + <if test="guidanceOpinions != null and guidanceOpinions != ''">
  128 + and guidance_opinions = #{guidanceOpinions}
  129 + </if>
  130 + <if test="handleOpinions != null and handleOpinions != ''">
  131 + and handle_opinions = #{handleOpinions}
  132 + </if>
  133 + <if test="warningSigns != null and warningSigns != ''">
  134 + and warning_signs = #{warningSigns}
  135 + </if>
  136 + <if test="languageSocial != null and languageSocial != ''">
  137 + and language_social = #{languageSocial}
  138 + </if>
  139 + <if test="preliminaryScreeningResults != null and preliminaryScreeningResults != ''">
  140 + and preliminary_screening_results = #{preliminaryScreeningResults}
  141 + </if>
  142 + </where>
  143 + limit #{pageable.offset}, #{pageable.pageSize}
  144 + </select>
  145 +
  146 + <!--统计总行数-->
  147 + <select id="count" resultType="java.lang.Long">
  148 + select count(1)
  149 + from baby_autism_primary_screening
  150 + <where>
  151 + <if test="id != null and id != ''">
  152 + and id = #{id}
  153 + </if>
  154 + <if test="created != null and created != ''">
  155 + and created = #{created}
  156 + </if>
  157 + <if test="modified != null and modified != ''">
  158 + and modified = #{modified}
  159 + </if>
  160 + <if test="yn != null">
  161 + and yn = #{yn}
  162 + </if>
  163 + <if test="operaterId != null and operaterId != ''">
  164 + and operater_id = #{operaterId}
  165 + </if>
  166 + <if test="hospitalId != null and hospitalId != ''">
  167 + and hospital_id = #{hospitalId}
  168 + </if>
  169 + <if test="babyId != null and babyId != ''">
  170 + and baby_id = #{babyId}
  171 + </if>
  172 + <if test="babyBuildDate != null and babyBuildDate != ''">
  173 + and baby_build_date = #{babyBuildDate}
  174 + </if>
  175 + <if test="babyName != null and babyName != ''">
  176 + and baby_name = #{babyName}
  177 + </if>
  178 + <if test="babySex != null">
  179 + and baby_sex = #{babySex}
  180 + </if>
  181 + <if test="babyMName != null and babyMName != ''">
  182 + and baby_m_name = #{babyMName}
  183 + </if>
  184 + <if test="babyFName != null and babyFName != ''">
  185 + and baby_f_name = #{babyFName}
  186 + </if>
  187 + <if test="babyMPhone != null and babyMPhone != ''">
  188 + and baby_m_phone = #{babyMPhone}
  189 + </if>
  190 + <if test="babyFPhone != null and babyFPhone != ''">
  191 + and baby_f_phone = #{babyFPhone}
  192 + </if>
  193 + <if test="babyMCertNo != null and babyMCertNo != ''">
  194 + and baby_m_cert_no = #{babyMCertNo}
  195 + </if>
  196 + <if test="babyFCertNo != null and babyFCertNo != ''">
  197 + and baby_f_cert_no = #{babyFCertNo}
  198 + </if>
  199 + <if test="pid != null and pid != ''">
  200 + and pid = #{pid}
  201 + </if>
  202 + <if test="checkMonthAge != null and checkMonthAge != ''">
  203 + and check_month_age = #{checkMonthAge}
  204 + </if>
  205 + <if test="checkMonthId != null and checkMonthId != ''">
  206 + and check_month_id = #{checkMonthId}
  207 + </if>
  208 + <if test="birth != null and birth != ''">
  209 + and birth = #{birth}
  210 + </if>
  211 + <if test="checkTime != null and checkTime != ''">
  212 + and check_time = #{checkTime}
  213 + </if>
  214 + <if test="nextCheckTime != null and nextCheckTime != ''">
  215 + and next_check_time = #{nextCheckTime}
  216 + </if>
  217 + <if test="checkDoctor != null and checkDoctor != ''">
  218 + and check_doctor = #{checkDoctor}
  219 + </if>
  220 + <if test="doctorSign != null and doctorSign != ''">
  221 + and doctor_sign = #{doctorSign}
  222 + </if>
  223 + <if test="patientSign != null and patientSign != ''">
  224 + and patient_sign = #{patientSign}
  225 + </if>
  226 + <if test="guidanceOpinions != null and guidanceOpinions != ''">
  227 + and guidance_opinions = #{guidanceOpinions}
  228 + </if>
  229 + <if test="handleOpinions != null and handleOpinions != ''">
  230 + and handle_opinions = #{handleOpinions}
  231 + </if>
  232 + <if test="warningSigns != null and warningSigns != ''">
  233 + and warning_signs = #{warningSigns}
  234 + </if>
  235 + <if test="languageSocial != null and languageSocial != ''">
  236 + and language_social = #{languageSocial}
  237 + </if>
  238 + <if test="preliminaryScreeningResults != null and preliminaryScreeningResults != ''">
  239 + and preliminary_screening_results = #{preliminaryScreeningResults}
  240 + </if>
  241 + </where>
  242 + </select>
  243 +
  244 + <!--新增所有列-->
  245 + <insert id="insert" keyProperty="id" useGeneratedKeys="true">
  246 + insert into baby_autism_primary_screening(created, modified, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, check_time, next_check_time, check_doctor, doctor_sign, patient_sign, guidance_opinions, handle_opinions, warning_signs, language_social, preliminary_screening_results)
  247 + values (#{created}, #{modified}, #{yn}, #{operaterId}, #{hospitalId}, #{babyId}, #{babyBuildDate}, #{babyName}, #{babySex}, #{babyMName}, #{babyFName}, #{babyMPhone}, #{babyFPhone}, #{babyMCertNo}, #{babyFCertNo}, #{pid}, #{checkMonthAge}, #{checkMonthId}, #{birth}, #{checkTime}, #{nextCheckTime}, #{checkDoctor}, #{doctorSign}, #{patientSign}, #{guidanceOpinions}, #{handleOpinions}, #{warningSigns}, #{languageSocial}, #{preliminaryScreeningResults})
  248 + </insert>
  249 +
  250 + <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
  251 + insert into baby_autism_primary_screening(created, modified, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, check_time, next_check_time, check_doctor, doctor_sign, patient_sign, guidance_opinions, handle_opinions, warning_signs, language_social, preliminary_screening_results)
  252 + values
  253 + <foreach collection="entities" item="entity" separator=",">
  254 + (#{entity.created}, #{entity.modified}, #{entity.yn}, #{entity.operaterId}, #{entity.hospitalId}, #{entity.babyId}, #{entity.babyBuildDate}, #{entity.babyName}, #{entity.babySex}, #{entity.babyMName}, #{entity.babyFName}, #{entity.babyMPhone}, #{entity.babyFPhone}, #{entity.babyMCertNo}, #{entity.babyFCertNo}, #{entity.pid}, #{entity.checkMonthAge}, #{entity.checkMonthId}, #{entity.birth}, #{entity.checkTime}, #{entity.nextCheckTime}, #{entity.checkDoctor}, #{entity.doctorSign}, #{entity.patientSign}, #{entity.guidanceOpinions}, #{entity.handleOpinions}, #{entity.warningSigns}, #{entity.languageSocial}, #{entity.preliminaryScreeningResults})
  255 + </foreach>
  256 + </insert>
  257 +
  258 + <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
  259 + insert into baby_autism_primary_screening(created, modified, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, check_time, next_check_time, check_doctor, doctor_sign, patient_sign, guidance_opinions, handle_opinions, warning_signs, language_social, preliminary_screening_results)
  260 + values
  261 + <foreach collection="entities" item="entity" separator=",">
  262 + (#{entity.created}, #{entity.modified}, #{entity.yn}, #{entity.operaterId}, #{entity.hospitalId}, #{entity.babyId}, #{entity.babyBuildDate}, #{entity.babyName}, #{entity.babySex}, #{entity.babyMName}, #{entity.babyFName}, #{entity.babyMPhone}, #{entity.babyFPhone}, #{entity.babyMCertNo}, #{entity.babyFCertNo}, #{entity.pid}, #{entity.checkMonthAge}, #{entity.checkMonthId}, #{entity.birth}, #{entity.checkTime}, #{entity.nextCheckTime}, #{entity.checkDoctor}, #{entity.doctorSign}, #{entity.patientSign}, #{entity.guidanceOpinions}, #{entity.handleOpinions}, #{entity.warningSigns}, #{entity.languageSocial}, #{entity.preliminaryScreeningResults})
  263 + </foreach>
  264 + on duplicate key update
  265 + created = values(created),
  266 + modified = values(modified),
  267 + yn = values(yn),
  268 + operater_id = values(operater_id),
  269 + hospital_id = values(hospital_id),
  270 + baby_id = values(baby_id),
  271 + baby_build_date = values(baby_build_date),
  272 + baby_name = values(baby_name),
  273 + baby_sex = values(baby_sex),
  274 + baby_m_name = values(baby_m_name),
  275 + baby_f_name = values(baby_f_name),
  276 + baby_m_phone = values(baby_m_phone),
  277 + baby_f_phone = values(baby_f_phone),
  278 + baby_m_cert_no = values(baby_m_cert_no),
  279 + baby_f_cert_no = values(baby_f_cert_no),
  280 + pid = values(pid),
  281 + check_month_age = values(check_month_age),
  282 + check_month_id = values(check_month_id),
  283 + birth = values(birth),
  284 + check_time = values(check_time),
  285 + next_check_time = values(next_check_time),
  286 + check_doctor = values(check_doctor),
  287 + doctor_sign = values(doctor_sign),
  288 + patient_sign = values(patient_sign),
  289 + guidance_opinions = values(guidance_opinions),
  290 + handle_opinions = values(handle_opinions),
  291 + warning_signs = values(warning_signs),
  292 + language_social = values(language_social),
  293 + preliminary_screening_results = values(preliminary_screening_results)
  294 + </insert>
  295 +
  296 + <!--通过主键修改数据-->
  297 + <update id="update">
  298 + update baby_autism_primary_screening
  299 + <set>
  300 + <if test="created != null and created != ''">
  301 + created = #{created},
  302 + </if>
  303 + <if test="modified != null and modified != ''">
  304 + modified = #{modified},
  305 + </if>
  306 + <if test="yn != null">
  307 + yn = #{yn},
  308 + </if>
  309 + <if test="operaterId != null and operaterId != ''">
  310 + operater_id = #{operaterId},
  311 + </if>
  312 + <if test="hospitalId != null and hospitalId != ''">
  313 + hospital_id = #{hospitalId},
  314 + </if>
  315 + <if test="babyId != null and babyId != ''">
  316 + baby_id = #{babyId},
  317 + </if>
  318 + <if test="babyBuildDate != null and babyBuildDate != ''">
  319 + baby_build_date = #{babyBuildDate},
  320 + </if>
  321 + <if test="babyName != null and babyName != ''">
  322 + baby_name = #{babyName},
  323 + </if>
  324 + <if test="babySex != null">
  325 + baby_sex = #{babySex},
  326 + </if>
  327 + <if test="babyMName != null and babyMName != ''">
  328 + baby_m_name = #{babyMName},
  329 + </if>
  330 + <if test="babyFName != null and babyFName != ''">
  331 + baby_f_name = #{babyFName},
  332 + </if>
  333 + <if test="babyMPhone != null and babyMPhone != ''">
  334 + baby_m_phone = #{babyMPhone},
  335 + </if>
  336 + <if test="babyFPhone != null and babyFPhone != ''">
  337 + baby_f_phone = #{babyFPhone},
  338 + </if>
  339 + <if test="babyMCertNo != null and babyMCertNo != ''">
  340 + baby_m_cert_no = #{babyMCertNo},
  341 + </if>
  342 + <if test="babyFCertNo != null and babyFCertNo != ''">
  343 + baby_f_cert_no = #{babyFCertNo},
  344 + </if>
  345 + <if test="pid != null and pid != ''">
  346 + pid = #{pid},
  347 + </if>
  348 + <if test="checkMonthAge != null and checkMonthAge != ''">
  349 + check_month_age = #{checkMonthAge},
  350 + </if>
  351 + <if test="checkMonthId != null and checkMonthId != ''">
  352 + check_month_id = #{checkMonthId},
  353 + </if>
  354 + <if test="birth != null and birth != ''">
  355 + birth = #{birth},
  356 + </if>
  357 + <if test="checkTime != null and checkTime != ''">
  358 + check_time = #{checkTime},
  359 + </if>
  360 + <if test="nextCheckTime != null and nextCheckTime != ''">
  361 + next_check_time = #{nextCheckTime},
  362 + </if>
  363 + <if test="checkDoctor != null and checkDoctor != ''">
  364 + check_doctor = #{checkDoctor},
  365 + </if>
  366 + <if test="doctorSign != null and doctorSign != ''">
  367 + doctor_sign = #{doctorSign},
  368 + </if>
  369 + <if test="patientSign != null and patientSign != ''">
  370 + patient_sign = #{patientSign},
  371 + </if>
  372 + <if test="guidanceOpinions != null and guidanceOpinions != ''">
  373 + guidance_opinions = #{guidanceOpinions},
  374 + </if>
  375 + <if test="handleOpinions != null and handleOpinions != ''">
  376 + handle_opinions = #{handleOpinions},
  377 + </if>
  378 + <if test="warningSigns != null and warningSigns != ''">
  379 + warning_signs = #{warningSigns},
  380 + </if>
  381 + <if test="languageSocial != null and languageSocial != ''">
  382 + language_social = #{languageSocial},
  383 + </if>
  384 + <if test="preliminaryScreeningResults != null and preliminaryScreeningResults != ''">
  385 + preliminary_screening_results = #{preliminaryScreeningResults},
  386 + </if>
  387 + </set>
  388 + where id = #{id}
  389 + </update>
  390 +
  391 + <!--通过主键删除-->
  392 + <delete id="deleteById">
  393 + delete from baby_autism_primary_screening where id = #{id}
  394 + </delete>
  395 +
  396 +</mapper>
platform-dal/src/main/java/com/lyms/platform/pojo/BabyAutismPrimaryScreening.java View file @ 81a00c9
1 1 package com.lyms.platform.pojo;
2 2  
3 3 import com.lyms.platform.common.result.BaseModel;
  4 +import com.lyms.platform.common.utils.DateUtil;
4 5 import org.apache.commons.lang.StringUtils;
5 6  
6 7 import java.util.Date;
7 8  
... ... @@ -20,11 +21,15 @@
20 21 * 创建时间
21 22 */
22 23 private Date created;
  24 +
  25 + private String createdStr;
23 26 /**
24 27 * 修改时间
25 28 */
26 29 private Date modified;
27 30  
  31 + private String modifiedStr;
  32 +
28 33 /**
29 34 * 记录删除状态0:删除 1:正常
30 35 */
... ... @@ -47,6 +52,8 @@
47 52 * 儿童建档日期
48 53 */
49 54 private Date babyBuildDate;
  55 +
  56 + private String babyBuildDateStr;
50 57 /**
51 58 * 儿童姓名
52 59 */
53 60  
54 61  
55 62  
56 63  
... ... @@ -97,16 +104,22 @@
97 104 */
98 105 private Date birth;
99 106  
  107 + private String birthStr;
  108 +
100 109 /**
101 110 * 检查时间
102 111 */
103   - private String checkTime;
  112 + private Date checkTime;
104 113  
  114 + private String checkTimeStr;
  115 +
105 116 /**
106 117 * 预约下次检查时间
107 118 */
108   - private String nextCheckTime;
  119 + private Date nextCheckTime;
109 120  
  121 + private String nextCheckTimeStr;
  122 +
110 123 /**
111 124 * 检查医生
112 125 */
... ... @@ -179,6 +192,74 @@
179 192  
180 193 private DoctorDTO checkDoctor;
181 194  
  195 + /**
  196 + * 初筛结果
  197 + */
  198 + private String preliminaryScreeningResults;
  199 +
  200 + /**
  201 + * 初筛结果
  202 + */
  203 + private String global;
  204 +
  205 + public String getCreatedStr() {
  206 + return createdStr;
  207 + }
  208 +
  209 + public void setCreatedStr(String createdStr) {
  210 + this.createdStr = createdStr;
  211 + }
  212 +
  213 + public String getModifiedStr() {
  214 + return modifiedStr;
  215 + }
  216 +
  217 + public void setModifiedStr(String modifiedStr) {
  218 + this.modifiedStr = modifiedStr;
  219 + }
  220 +
  221 + public String getBabyBuildDateStr() {
  222 + return babyBuildDateStr;
  223 + }
  224 +
  225 + public void setBabyBuildDateStr(String babyBuildDateStr) {
  226 + this.babyBuildDateStr = babyBuildDateStr;
  227 + }
  228 +
  229 + public String getBirthStr() {
  230 + return birthStr;
  231 + }
  232 +
  233 + public void setBirthStr(String birthStr) {
  234 + this.birthStr = birthStr;
  235 + }
  236 +
  237 + public void setCheckTime(Date checkTime) {
  238 + this.checkTime = checkTime;
  239 + setCheckTimeStr(DateUtil.getyyyy_MM_dd(checkTime));
  240 + }
  241 +
  242 + public String getCheckTimeStr() {
  243 + return checkTimeStr;
  244 + }
  245 +
  246 + public void setCheckTimeStr(String checkTimeStr) {
  247 + this.checkTimeStr = checkTimeStr;
  248 + }
  249 +
  250 + public void setNextCheckTime(Date nextCheckTime) {
  251 + this.nextCheckTime = nextCheckTime;
  252 + setNextCheckTimeStr(DateUtil.getyyyy_MM_dd(nextCheckTime));
  253 + }
  254 +
  255 + public String getNextCheckTimeStr() {
  256 + return nextCheckTimeStr;
  257 + }
  258 +
  259 + public void setNextCheckTimeStr(String nextCheckTimeStr) {
  260 + this.nextCheckTimeStr = nextCheckTimeStr;
  261 + }
  262 +
182 263 public String getDisplayState() {
183 264 return displayState;
184 265 }
185 266  
... ... @@ -211,15 +292,7 @@
211 292 this.languageSocialstirng = languageSocialstirng;
212 293 }
213 294  
214   - /**
215   - * 初筛结果
216   - */
217   - private String preliminaryScreeningResults;
218 295  
219   - /**
220   - * 初筛结果
221   - */
222   - private String global;
223 296  
224 297 public String getLanguageSocialName() {
225 298 return languageSocialName;
... ... @@ -259,6 +332,7 @@
259 332  
260 333 public void setCreated(Date created) {
261 334 this.created = created;
  335 + setCreatedStr(DateUtil.getyyyy_MM_dd(created));
262 336 }
263 337  
264 338 public Date getModified() {
... ... @@ -267,6 +341,7 @@
267 341  
268 342 public void setModified(Date modified) {
269 343 this.modified = modified;
  344 + setModifiedStr(DateUtil.getyyyy_MM_dd(modified));
270 345 }
271 346  
272 347 public Integer getYn() {
... ... @@ -307,6 +382,7 @@
307 382  
308 383 public void setBabyBuildDate(Date babyBuildDate) {
309 384 this.babyBuildDate = babyBuildDate;
  385 + setBabyBuildDateStr(DateUtil.getyyyy_MM_dd(babyBuildDate));
310 386 }
311 387  
312 388 public String getBabyName() {
313 389  
314 390  
315 391  
... ... @@ -403,22 +479,15 @@
403 479  
404 480 public void setBirth(Date birth) {
405 481 this.birth = birth;
  482 + setBirthStr(DateUtil.getyyyy_MM_dd(birth));
406 483 }
407 484  
408   - public String getCheckTime() {
  485 + public Date getCheckTime() {
409 486 return checkTime;
410 487 }
411 488  
412   - public void setCheckTime(String checkTime) {
413   - this.checkTime = checkTime;
414   - }
415   -
416   - public String getNextCheckTime() {
  489 + public Date getNextCheckTime() {
417 490 return nextCheckTime;
418   - }
419   -
420   - public void setNextCheckTime(String nextCheckTime) {
421   - this.nextCheckTime = nextCheckTime;
422 491 }
423 492  
424 493 public String getDoctorSign() {
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PrimaryScreeningFacade.java View file @ 81a00c9
... ... @@ -92,7 +92,7 @@
92 92 temp.put("sex", SexEnum.getTextById(babyModel.getSex()));
93 93 }
94 94 }
95   - temp.put("checkTime", babyCheck.getCheckTime());
  95 + temp.put("checkTime", babyCheck.getCheckTimeStr());
96 96 temp.put("type", "2");//展示区分(1:档案2:检查记录)
97 97 rest.add(temp);
98 98 }