From b69e6db2ebae63ed4e6f4e6c4b200d892d5b0e04 Mon Sep 17 00:00:00 2001 From: zhizhi wu <2377881365@qq.com> Date: Thu, 2 Apr 2020 10:51:17 +0800 Subject: [PATCH] ht --- .../ccsens/health/bean/dto/JourneyDto.java | 2 + .../ccsens/health/persist/dao/JourneyDao.java | 5 +- .../ccsens/health/service/HealthService.java | 3 +- .../ccsens/health/service/JourneyService.java | 2 +- health/src/main/resources/druid-prod.yml | 2 +- .../main/resources/mapper_dao/JourneyDao.xml | 6 +- .../com/ccsens/ht/api/PatientController.java | 14 +- .../ht/api/PatientReportController.java | 3 +- .../com/ccsens/ht/bean/dto/QuestionDto.java | 5 +- .../com/ccsens/ht/bean/po/HtPatientAcp.java | 11 ++ .../ht/bean/po/HtPatientAcpExample.java | 60 ++++++++ .../com/ccsens/ht/bean/po/HtPatientBody.java | 11 ++ .../ht/bean/po/HtPatientBodyExample.java | 60 ++++++++ .../ccsens/ht/bean/po/HtPatientFamily.java | 11 ++ .../ht/bean/po/HtPatientFamilyExample.java | 60 ++++++++ .../ht/bean/po/HtPatientFamilyIllness.java | 11 ++ .../po/HtPatientFamilyIllnessExample.java | 60 ++++++++ .../ht/bean/po/HtPatientIllnessHistory.java | 11 ++ .../po/HtPatientIllnessHistoryExample.java | 60 ++++++++ .../ht/bean/po/HtPatientParentIllness.java | 11 ++ .../po/HtPatientParentIllnessExample.java | 60 ++++++++ .../ccsens/ht/bean/po/HtPatientPersional.java | 11 ++ .../ht/bean/po/HtPatientPersionalExample.java | 60 ++++++++ .../ccsens/ht/bean/po/HtPatientReport.java | 22 +++ .../ht/bean/po/HtPatientReportExample.java | 130 ++++++++++++++++++ .../com/ccsens/ht/bean/po/HtPatientScore.java | 11 ++ .../ht/bean/po/HtPatientScoreExample.java | 60 ++++++++ .../ccsens/ht/bean/vo/PatientReportVo.java | 16 ++- .../java/com/ccsens/ht/bean/vo/PatientVo.java | 11 +- .../ccsens/ht/persist/dao/HtPositionDao.java | 8 ++ .../com/ccsens/ht/service/ImportService.java | 1 + .../ht/service/PatientReportService.java | 22 +-- .../com/ccsens/ht/service/PatientService.java | 64 ++++++--- .../ccsens/ht/service/QuestionService.java | 51 +++++-- .../java/com/ccsens/ht/uitl/Constant.java | 2 + .../mapper_dao/HtPatientReportDao.xml | 1 + .../resources/mapper_dao/HtPositionDao.xml | 14 ++ .../mapper_raw/HtPatientAcpMapper.xml | 29 +++- .../mapper_raw/HtPatientBodyMapper.xml | 29 +++- .../HtPatientFamilyIllnessMapper.xml | 27 +++- .../mapper_raw/HtPatientFamilyMapper.xml | 29 +++- .../HtPatientIllnessHistoryMapper.xml | 25 +++- .../HtPatientParentIllnessMapper.xml | 27 +++- .../mapper_raw/HtPatientPersionalMapper.xml | 25 +++- .../mapper_raw/HtPatientReportMapper.xml | 44 +++++- .../mapper_raw/HtPatientScoreMapper.xml | 27 +++- .../main/java/com/ccsens/util/CodeEnum.java | 2 + 47 files changed, 1098 insertions(+), 118 deletions(-) diff --git a/health/src/main/java/com/ccsens/health/bean/dto/JourneyDto.java b/health/src/main/java/com/ccsens/health/bean/dto/JourneyDto.java index 5e3ae808..a1deca50 100644 --- a/health/src/main/java/com/ccsens/health/bean/dto/JourneyDto.java +++ b/health/src/main/java/com/ccsens/health/bean/dto/JourneyDto.java @@ -212,6 +212,8 @@ public class JourneyDto { @Data @ApiModel("复课查询") public static class BackClass{ + @ApiModelProperty("班级名称") + private String className; @ApiModelProperty("查询时间 默认当前时间") private Long endTime = System.currentTimeMillis(); @ApiModelProperty("第几页") diff --git a/health/src/main/java/com/ccsens/health/persist/dao/JourneyDao.java b/health/src/main/java/com/ccsens/health/persist/dao/JourneyDao.java index 10178a1f..5678c209 100644 --- a/health/src/main/java/com/ccsens/health/persist/dao/JourneyDao.java +++ b/health/src/main/java/com/ccsens/health/persist/dao/JourneyDao.java @@ -1,5 +1,6 @@ package com.ccsens.health.persist.dao; +import com.ccsens.health.bean.dto.JourneyDto; import com.ccsens.health.bean.dto.MemberDto; import com.ccsens.health.bean.po.Journey; import com.ccsens.health.bean.vo.JourneyVo; @@ -23,10 +24,10 @@ public interface JourneyDao extends JourneyMapper { /** * 根据时间查询复课情况 - * @param endTime + * @param backClass * @return */ - List classBackStatistics(@Param("endTime") Long endTime); + List classBackStatistics(JourneyDto.BackClass backClass); /** * 根据学号,姓名,时间查询校外行程 diff --git a/health/src/main/java/com/ccsens/health/service/HealthService.java b/health/src/main/java/com/ccsens/health/service/HealthService.java index 4bd0a717..2903795c 100644 --- a/health/src/main/java/com/ccsens/health/service/HealthService.java +++ b/health/src/main/java/com/ccsens/health/service/HealthService.java @@ -57,7 +57,7 @@ public class HealthService implements IHealthService { private RedisUtil redisUtil; @Autowired private IAsyncService asyncService; - @Value("spring.profiles.active") + @Value("${spring.profiles.active}") private String active; @Override @@ -98,6 +98,7 @@ public class HealthService implements IHealthService { HealthVo.HealthTypeRedis healthType = readHealthType(healthInfo.getHealthTypeId()); //健康码颜色(默认绿色) Future future = null; + log.info("active:{}", active); if ("prod".equals(active)) { WxXcxUtil.LineColor color = getLineColor(healthType); future = asyncService.generateQRCode("d=" + userId, color); diff --git a/health/src/main/java/com/ccsens/health/service/JourneyService.java b/health/src/main/java/com/ccsens/health/service/JourneyService.java index 6c9d98b5..c011204e 100644 --- a/health/src/main/java/com/ccsens/health/service/JourneyService.java +++ b/health/src/main/java/com/ccsens/health/service/JourneyService.java @@ -74,7 +74,7 @@ public class JourneyService implements IJourneyService{ @Override public PageInfo classBackStatistics(JourneyDto.BackClass backClass) { PageHelper.startPage(backClass.getPageNum(), backClass.getPageSize()); - List vos = journeyDao.classBackStatistics(backClass.getEndTime()); + List vos = journeyDao.classBackStatistics(backClass); return new PageInfo<>(vos); } diff --git a/health/src/main/resources/druid-prod.yml b/health/src/main/resources/druid-prod.yml index 59b36c1d..30c04cdd 100644 --- a/health/src/main/resources/druid-prod.yml +++ b/health/src/main/resources/druid-prod.yml @@ -10,7 +10,7 @@ spring: filterUrlPattern: /* filters: stat,wall initialSize: 5 - maxActive: 20 + maxActive: 100 maxPoolPreparedStatementPerConnectionSize: 20 maxWait: 60000 minEvictableIdleTimeMillis: 300000 diff --git a/health/src/main/resources/mapper_dao/JourneyDao.xml b/health/src/main/resources/mapper_dao/JourneyDao.xml index c6bce915..5a4ee415 100644 --- a/health/src/main/resources/mapper_dao/JourneyDao.xml +++ b/health/src/main/resources/mapper_dao/JourneyDao.xml @@ -60,7 +60,11 @@ + \ No newline at end of file diff --git a/ht/src/main/resources/mapper_raw/HtPatientAcpMapper.xml b/ht/src/main/resources/mapper_raw/HtPatientAcpMapper.xml index b0eeae0f..b7a93044 100644 --- a/ht/src/main/resources/mapper_raw/HtPatientAcpMapper.xml +++ b/ht/src/main/resources/mapper_raw/HtPatientAcpMapper.xml @@ -16,6 +16,7 @@ + @@ -77,7 +78,7 @@ id, patient_id, ct, mri, hcy, vb12, folic_acid, tt3, tt4, tsh, remark, create_time, - update_time, is_del + update_time, is_del, recorder @@ -263,6 +270,9 @@ is_del = #{record.isDel,jdbcType=TINYINT}, + + recorder = #{record.recorder,jdbcType=BIGINT}, + @@ -283,7 +293,8 @@ remark = #{record.remark,jdbcType=VARCHAR}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - is_del = #{record.isDel,jdbcType=TINYINT} + is_del = #{record.isDel,jdbcType=TINYINT}, + recorder = #{record.recorder,jdbcType=BIGINT} @@ -330,6 +341,9 @@ is_del = #{isDel,jdbcType=TINYINT}, + + recorder = #{recorder,jdbcType=BIGINT}, + where id = #{id,jdbcType=BIGINT} @@ -347,7 +361,8 @@ remark = #{remark,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP}, - is_del = #{isDel,jdbcType=TINYINT} + is_del = #{isDel,jdbcType=TINYINT}, + recorder = #{recorder,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT} \ No newline at end of file diff --git a/ht/src/main/resources/mapper_raw/HtPatientBodyMapper.xml b/ht/src/main/resources/mapper_raw/HtPatientBodyMapper.xml index 74ba48e5..e0bec3de 100644 --- a/ht/src/main/resources/mapper_raw/HtPatientBodyMapper.xml +++ b/ht/src/main/resources/mapper_raw/HtPatientBodyMapper.xml @@ -16,6 +16,7 @@ + @@ -77,7 +78,7 @@ id, patient_id, height, weight, waistline, blood_pressure_shrink, blood_pressure_diastole, - resting_heart_rate, vision, auditory, remark, create_time, update_time, is_del + resting_heart_rate, vision, auditory, remark, create_time, update_time, is_del, recorder @@ -265,6 +272,9 @@ is_del = #{record.isDel,jdbcType=TINYINT}, + + recorder = #{record.recorder,jdbcType=BIGINT}, + @@ -285,7 +295,8 @@ remark = #{record.remark,jdbcType=VARCHAR}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - is_del = #{record.isDel,jdbcType=TINYINT} + is_del = #{record.isDel,jdbcType=TINYINT}, + recorder = #{record.recorder,jdbcType=BIGINT} @@ -332,6 +343,9 @@ is_del = #{isDel,jdbcType=TINYINT}, + + recorder = #{recorder,jdbcType=BIGINT}, + where id = #{id,jdbcType=BIGINT} @@ -349,7 +363,8 @@ remark = #{remark,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP}, - is_del = #{isDel,jdbcType=TINYINT} + is_del = #{isDel,jdbcType=TINYINT}, + recorder = #{recorder,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT} \ No newline at end of file diff --git a/ht/src/main/resources/mapper_raw/HtPatientFamilyIllnessMapper.xml b/ht/src/main/resources/mapper_raw/HtPatientFamilyIllnessMapper.xml index db7e4110..dce965cf 100644 --- a/ht/src/main/resources/mapper_raw/HtPatientFamilyIllnessMapper.xml +++ b/ht/src/main/resources/mapper_raw/HtPatientFamilyIllnessMapper.xml @@ -13,6 +13,7 @@ + @@ -74,7 +75,7 @@ id, patient_id, name, relation, diagnose, onset_age, now_age, remark, create_time, - update_time, is_del + update_time, is_del, recorder @@ -231,6 +240,9 @@ is_del = #{record.isDel,jdbcType=TINYINT}, + + recorder = #{record.recorder,jdbcType=BIGINT}, + @@ -248,7 +260,8 @@ remark = #{record.remark,jdbcType=VARCHAR}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - is_del = #{record.isDel,jdbcType=TINYINT} + is_del = #{record.isDel,jdbcType=TINYINT}, + recorder = #{record.recorder,jdbcType=BIGINT} @@ -286,6 +299,9 @@ is_del = #{isDel,jdbcType=TINYINT}, + + recorder = #{recorder,jdbcType=BIGINT}, + where id = #{id,jdbcType=BIGINT} @@ -300,7 +316,8 @@ remark = #{remark,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP}, - is_del = #{isDel,jdbcType=TINYINT} + is_del = #{isDel,jdbcType=TINYINT}, + recorder = #{recorder,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT} \ No newline at end of file diff --git a/ht/src/main/resources/mapper_raw/HtPatientFamilyMapper.xml b/ht/src/main/resources/mapper_raw/HtPatientFamilyMapper.xml index 41483115..f9e531b3 100644 --- a/ht/src/main/resources/mapper_raw/HtPatientFamilyMapper.xml +++ b/ht/src/main/resources/mapper_raw/HtPatientFamilyMapper.xml @@ -14,6 +14,7 @@ + @@ -75,7 +76,7 @@ id, patient_id, name, age, sex, educational_status, relation, is_live_together, remark, - create_time, update_time, is_del + create_time, update_time, is_del, recorder @@ -243,6 +250,9 @@ is_del = #{record.isDel,jdbcType=TINYINT}, + + recorder = #{record.recorder,jdbcType=BIGINT}, + @@ -261,7 +271,8 @@ remark = #{record.remark,jdbcType=VARCHAR}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - is_del = #{record.isDel,jdbcType=TINYINT} + is_del = #{record.isDel,jdbcType=TINYINT}, + recorder = #{record.recorder,jdbcType=BIGINT} @@ -302,6 +313,9 @@ is_del = #{isDel,jdbcType=TINYINT}, + + recorder = #{recorder,jdbcType=BIGINT}, + where id = #{id,jdbcType=BIGINT} @@ -317,7 +331,8 @@ remark = #{remark,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP}, - is_del = #{isDel,jdbcType=TINYINT} + is_del = #{isDel,jdbcType=TINYINT}, + recorder = #{recorder,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT} \ No newline at end of file diff --git a/ht/src/main/resources/mapper_raw/HtPatientIllnessHistoryMapper.xml b/ht/src/main/resources/mapper_raw/HtPatientIllnessHistoryMapper.xml index 77c893bc..ada81a65 100644 --- a/ht/src/main/resources/mapper_raw/HtPatientIllnessHistoryMapper.xml +++ b/ht/src/main/resources/mapper_raw/HtPatientIllnessHistoryMapper.xml @@ -33,6 +33,7 @@ + @@ -97,7 +98,7 @@ wuis, hcvd, parkinson_disease, epilepsy, brain_trauma, hypertension, diabetes, hlp, hyperhomocysteinemia, vb12_deficiency, thyroid_disease, copd, asthma, insomnia, sleep_suspend, ckd, rheumatoid, depression, general_anesthesia_surgery, remark, create_time, update_time, - is_del + is_del, recorder @@ -448,6 +455,9 @@ is_del = #{record.isDel,jdbcType=TINYINT}, + + recorder = #{record.recorder,jdbcType=BIGINT}, + @@ -485,7 +495,8 @@ remark = #{record.remark,jdbcType=VARCHAR}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - is_del = #{record.isDel,jdbcType=TINYINT} + is_del = #{record.isDel,jdbcType=TINYINT}, + recorder = #{record.recorder,jdbcType=BIGINT} @@ -583,6 +594,9 @@ is_del = #{isDel,jdbcType=TINYINT}, + + recorder = #{recorder,jdbcType=BIGINT}, + where id = #{id,jdbcType=BIGINT} @@ -617,7 +631,8 @@ remark = #{remark,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP}, - is_del = #{isDel,jdbcType=TINYINT} + is_del = #{isDel,jdbcType=TINYINT}, + recorder = #{recorder,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT} \ No newline at end of file diff --git a/ht/src/main/resources/mapper_raw/HtPatientParentIllnessMapper.xml b/ht/src/main/resources/mapper_raw/HtPatientParentIllnessMapper.xml index 93f73c31..73ec15b7 100644 --- a/ht/src/main/resources/mapper_raw/HtPatientParentIllnessMapper.xml +++ b/ht/src/main/resources/mapper_raw/HtPatientParentIllnessMapper.xml @@ -22,6 +22,7 @@ + @@ -84,7 +85,7 @@ id, patient_id, memory, language, space, emotion, depression, illusion, delusion, derepression, irritable, personality_changes, exercise, first_illness, reason, change_form, - remark, create_time, update_time, is_del + remark, create_time, update_time, is_del, recorder @@ -328,6 +337,9 @@ is_del = #{record.isDel,jdbcType=TINYINT}, + + recorder = #{record.recorder,jdbcType=BIGINT}, + @@ -354,7 +366,8 @@ remark = #{record.remark,jdbcType=VARCHAR}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - is_del = #{record.isDel,jdbcType=TINYINT} + is_del = #{record.isDel,jdbcType=TINYINT}, + recorder = #{record.recorder,jdbcType=BIGINT} @@ -419,6 +432,9 @@ is_del = #{isDel,jdbcType=TINYINT}, + + recorder = #{recorder,jdbcType=BIGINT}, + where id = #{id,jdbcType=BIGINT} @@ -442,7 +458,8 @@ remark = #{remark,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP}, - is_del = #{isDel,jdbcType=TINYINT} + is_del = #{isDel,jdbcType=TINYINT}, + recorder = #{recorder,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT} \ No newline at end of file diff --git a/ht/src/main/resources/mapper_raw/HtPatientPersionalMapper.xml b/ht/src/main/resources/mapper_raw/HtPatientPersionalMapper.xml index c635c9e9..5463ac95 100644 --- a/ht/src/main/resources/mapper_raw/HtPatientPersionalMapper.xml +++ b/ht/src/main/resources/mapper_raw/HtPatientPersionalMapper.xml @@ -27,6 +27,7 @@ + @@ -90,7 +91,7 @@ id, patient_id, smoking_history, smoking_year, smoking_amount, smoking_quit, smoking_quit_year, drink_history, drink_year, drink_type, drink_amount, tea_coffee_history, tea_coffee_year, tea_coffee_type, tea_coffee_frequency, tea_coffee_quit, tea_coffee_quit_year, dietary_habit, - workout_time, sleep_time, snore, remark, create_time, update_time, is_del + workout_time, sleep_time, snore, remark, create_time, update_time, is_del, recorder @@ -383,6 +390,9 @@ is_del = #{record.isDel,jdbcType=TINYINT}, + + recorder = #{record.recorder,jdbcType=BIGINT}, + @@ -414,7 +424,8 @@ remark = #{record.remark,jdbcType=VARCHAR}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - is_del = #{record.isDel,jdbcType=TINYINT} + is_del = #{record.isDel,jdbcType=TINYINT}, + recorder = #{record.recorder,jdbcType=BIGINT} @@ -494,6 +505,9 @@ is_del = #{isDel,jdbcType=TINYINT}, + + recorder = #{recorder,jdbcType=BIGINT}, + where id = #{id,jdbcType=BIGINT} @@ -522,7 +536,8 @@ remark = #{remark,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP}, - is_del = #{isDel,jdbcType=TINYINT} + is_del = #{isDel,jdbcType=TINYINT}, + recorder = #{recorder,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT} \ No newline at end of file diff --git a/ht/src/main/resources/mapper_raw/HtPatientReportMapper.xml b/ht/src/main/resources/mapper_raw/HtPatientReportMapper.xml index 1c75f972..5a932103 100644 --- a/ht/src/main/resources/mapper_raw/HtPatientReportMapper.xml +++ b/ht/src/main/resources/mapper_raw/HtPatientReportMapper.xml @@ -23,6 +23,8 @@ + + @@ -85,7 +87,7 @@ id, name, patient_id, patient_idcard, patient_age, doctor_id, serial_number, initial_impression, clinical_diagnosis, pasi, department, bed_number, report_time, check_time, evaluation_code, - url, qr_code_url, remark, create_time, update_time, is_del + url, qr_code_url, remark, create_time, update_time, is_del, show_status, hospital @@ -340,6 +354,12 @@ is_del = #{record.isDel,jdbcType=TINYINT}, + + show_status = #{record.showStatus,jdbcType=TINYINT}, + + + hospital = #{record.hospital,jdbcType=VARCHAR}, + @@ -367,7 +387,9 @@ remark = #{record.remark,jdbcType=VARCHAR}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - is_del = #{record.isDel,jdbcType=TINYINT} + is_del = #{record.isDel,jdbcType=TINYINT}, + show_status = #{record.showStatus,jdbcType=TINYINT}, + hospital = #{record.hospital,jdbcType=VARCHAR} @@ -435,6 +457,12 @@ is_del = #{isDel,jdbcType=TINYINT}, + + show_status = #{showStatus,jdbcType=TINYINT}, + + + hospital = #{hospital,jdbcType=VARCHAR}, + where id = #{id,jdbcType=BIGINT} @@ -459,7 +487,9 @@ remark = #{remark,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP}, - is_del = #{isDel,jdbcType=TINYINT} + is_del = #{isDel,jdbcType=TINYINT}, + show_status = #{showStatus,jdbcType=TINYINT}, + hospital = #{hospital,jdbcType=VARCHAR} where id = #{id,jdbcType=BIGINT} \ No newline at end of file diff --git a/ht/src/main/resources/mapper_raw/HtPatientScoreMapper.xml b/ht/src/main/resources/mapper_raw/HtPatientScoreMapper.xml index 6bfacea6..961b1e71 100644 --- a/ht/src/main/resources/mapper_raw/HtPatientScoreMapper.xml +++ b/ht/src/main/resources/mapper_raw/HtPatientScoreMapper.xml @@ -16,6 +16,7 @@ + @@ -77,7 +78,7 @@ id, patient_report_id, patient_id, question_parent_code, question_id, option_id, - option_name, score, type, answer, remark, create_time, update_time, is_del + option_name, score, type, answer, remark, create_time, update_time, is_del, answer_time @@ -263,6 +272,9 @@ is_del = #{record.isDel,jdbcType=TINYINT}, + + answer_time = #{record.answerTime,jdbcType=BIGINT}, + @@ -283,7 +295,8 @@ remark = #{record.remark,jdbcType=VARCHAR}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - is_del = #{record.isDel,jdbcType=TINYINT} + is_del = #{record.isDel,jdbcType=TINYINT}, + answer_time = #{record.answerTime,jdbcType=BIGINT} @@ -330,6 +343,9 @@ is_del = #{isDel,jdbcType=TINYINT}, + + answer_time = #{answerTime,jdbcType=BIGINT}, + where id = #{id,jdbcType=BIGINT} @@ -347,7 +363,8 @@ remark = #{remark,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP}, - is_del = #{isDel,jdbcType=TINYINT} + is_del = #{isDel,jdbcType=TINYINT}, + answer_time = #{answerTime,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT} \ No newline at end of file diff --git a/util/src/main/java/com/ccsens/util/CodeEnum.java b/util/src/main/java/com/ccsens/util/CodeEnum.java index 8d1a1dd6..31c23ab1 100644 --- a/util/src/main/java/com/ccsens/util/CodeEnum.java +++ b/util/src/main/java/com/ccsens/util/CodeEnum.java @@ -106,6 +106,8 @@ public enum CodeEnum { NO_IMPORT_DATA(88,"没有有效的数据,请检查您的导入文件。",true), FILL_ERROR(89,"您的信息填写有误,请检查您的信息。",true), ACCOUNT_BIND(90,"您的帐号已经绑定了,请重新进入小程序。",true), + RECORDER_NOT(91, "对不起,您不是该信息的录入者,不能修改信息。", true), + REPORT_HAD_COMPLETED(92, "报告单已经完成,不能再修改答题记录。", true), ; public CodeEnum addMsg(String msg){