Commit e0b5c08dbf66a24431f9a63dfae3bf8763ba4bb5

Authored by jesse.wang
1 parent caf2133829

孤独症诊断初筛套餐内容1

Showing 5 changed files with 208 additions and 205 deletions

platform-biz-service/src/main/java/com/lyms/platform/permission/dao/master/BabyAutismDoubleSievingMapper.java View file @ e0b5c08
1 1 package com.lyms.platform.permission.dao.master;
2 2  
  3 +import com.lyms.platform.common.dao.BaseQuery;
3 4 import com.lyms.platform.pojo.BabyAutismDoubleSieving;
4 5 import org.apache.ibatis.annotations.Param;
5   -import org.springframework.data.domain.Pageable;
6 6  
7 7 import java.util.List;
8 8  
... ... @@ -29,7 +29,7 @@
29 29 * @param pageable 分页对象
30 30 * @return 对象列表
31 31 */
32   - List<BabyAutismDoubleSieving> queryAllByLimit(BabyAutismDoubleSieving babyAutismDoubleSieving, @Param("pageable") Pageable pageable);
  32 + List<BabyAutismDoubleSieving> queryAllByLimit(@Param("doubleSieving")BabyAutismDoubleSieving babyAutismDoubleSieving, @Param("pageable") BaseQuery pageable);
33 33  
34 34 /**
35 35 * 统计总行数
... ... @@ -37,7 +37,7 @@
37 37 * @param babyAutismDoubleSieving 查询条件
38 38 * @return 总行数
39 39 */
40   - long count(BabyAutismDoubleSieving babyAutismDoubleSieving);
  40 + long count(@Param("doubleSieving")BabyAutismDoubleSieving babyAutismDoubleSieving);
41 41  
42 42 /**
43 43 * 新增数据
platform-biz-service/src/main/java/com/lyms/platform/permission/service/BabyAutismDoubleSievingService.java View file @ e0b5c08
1 1 package com.lyms.platform.permission.service;
2 2  
  3 +import com.lyms.platform.common.dao.BaseQuery;
3 4 import com.lyms.platform.pojo.BabyAutismDoubleSieving;
4   -import org.springframework.data.domain.Page;
5   -import org.springframework.data.domain.PageRequest;
6 5  
7 6 import java.util.List;
8 7  
... ... @@ -29,7 +28,7 @@
29 28 * @param pageRequest 分页对象
30 29 * @return 查询结果
31 30 */
32   - Page<BabyAutismDoubleSieving> queryByPage(BabyAutismDoubleSieving babyAutismDoubleSieving, PageRequest pageRequest);
  31 + List<BabyAutismDoubleSieving> queryByPage(BabyAutismDoubleSieving babyAutismDoubleSieving, BaseQuery pageRequest);
33 32  
34 33 /**
35 34 * 新增数据
... ... @@ -57,5 +56,6 @@
57 56  
58 57 List<BabyAutismDoubleSieving> queryListByBabyId(String babyId);
59 58  
  59 + Long count(BabyAutismDoubleSieving babyAutismDoubleSieving, BaseQuery pageRequest);
60 60 }
platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/BabyAutismDoubleSievingServiceImpl.java View file @ e0b5c08
1 1 package com.lyms.platform.permission.service.impl;
2 2  
  3 +import com.lyms.platform.common.dao.BaseQuery;
3 4 import com.lyms.platform.permission.dao.master.BabyAutismDoubleSievingMapper;
4 5 import com.lyms.platform.permission.service.BabyAutismDoubleSievingService;
5 6 import com.lyms.platform.pojo.BabyAutismDoubleSieving;
... ... @@ -41,9 +42,8 @@
41 42 * @return 查询结果
42 43 */
43 44 @Override
44   - public Page<BabyAutismDoubleSieving> queryByPage(BabyAutismDoubleSieving babyAutismDoubleSieving, PageRequest pageRequest) {
45   - long total = this.babyAutismDoubleSievingDao.count(babyAutismDoubleSieving);
46   - return new PageImpl<>(this.babyAutismDoubleSievingDao.queryAllByLimit(babyAutismDoubleSieving, pageRequest), pageRequest, total);
  45 + public List<BabyAutismDoubleSieving> queryByPage(BabyAutismDoubleSieving babyAutismDoubleSieving, BaseQuery pageRequest) {
  46 + return this.babyAutismDoubleSievingDao.queryAllByLimit(babyAutismDoubleSieving, pageRequest);
47 47 }
48 48  
49 49 /**
... ... @@ -84,6 +84,11 @@
84 84 @Override
85 85 public List<BabyAutismDoubleSieving> queryListByBabyId(String babyId) {
86 86 return babyAutismDoubleSievingDao.queryListByBabyId(babyId);
  87 + }
  88 +
  89 + @Override
  90 + public Long count(BabyAutismDoubleSieving babyAutismDoubleSieving, BaseQuery pageRequest) {
  91 + return babyAutismDoubleSievingDao.count(babyAutismDoubleSieving);
87 92 }
88 93 }
platform-biz-service/src/main/resources/mainOrm/master/BabyAutismDoubleSievingDao.xml View file @ e0b5c08
... ... @@ -66,146 +66,146 @@
66 66 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, preliminary_screening_results, preliminary_screening_results_failed_project, medical_history, medical_history_remark, developer_quotient, big_movement, fine_motion, adaptability, language_num, social_behavior, pediatric_heart_scale_assess_mentresults, core_project_num, positivet_num, screening_scale_mentresults, behavior_rating_scale_total, feel_num, social_interaction_num, body_movement_num, behavior_rating_language_num, self_care_in_daily_life_num, behavior_rating_scale_assess_mentresults, rescreen_results
67 67 from baby_autism_double_sieving
68 68 <where>
69   - <if test="id != null and id != ''">
70   - and id = #{id}
  69 + <if test="doubleSieving.id != null and doubleSieving.id != ''">
  70 + and id = #{doubleSieving.id}
71 71 </if>
72   - <if test="created != null and created != ''">
73   - and created = #{created}
  72 + <if test="doubleSieving.created != null ">
  73 + and created = #{doubleSieving.created}
74 74 </if>
75   - <if test="modified != null and modified != ''">
76   - and modified = #{modified}
  75 + <if test="doubleSieving.modified != null ">
  76 + and modified = #{doubleSieving.modified}
77 77 </if>
78   - <if test="yn != null">
79   - and yn = #{yn}
  78 + <if test="doubleSieving.yn != null">
  79 + and yn = #{doubleSieving.yn}
80 80 </if>
81   - <if test="operaterId != null and operaterId != ''">
82   - and operater_id = #{operaterId}
  81 + <if test="doubleSieving.operaterId != null and doubleSieving.operaterId != ''">
  82 + and operater_id = #{doubleSieving.operaterId}
83 83 </if>
84   - <if test="hospitalId != null and hospitalId != ''">
85   - and hospital_id = #{hospitalId}
  84 + <if test="doubleSieving.hospitalId != null and doubleSieving.hospitalId != ''">
  85 + and hospital_id = #{doubleSieving.hospitalId}
86 86 </if>
87   - <if test="babyId != null and babyId != ''">
88   - and baby_id = #{babyId}
  87 + <if test="doubleSieving.babyId != null and doubleSieving.babyId != ''">
  88 + and baby_id = #{doubleSieving.babyId}
89 89 </if>
90   - <if test="babyBuildDate != null and babyBuildDate != ''">
91   - and baby_build_date = #{babyBuildDate}
  90 + <if test="doubleSieving.babyBuildDate != null ">
  91 + and baby_build_date = #{doubleSieving.babyBuildDate}
92 92 </if>
93   - <if test="babyName != null and babyName != ''">
94   - and baby_name = #{babyName}
  93 + <if test="doubleSieving.babyName != null and doubleSieving.babyName != ''">
  94 + and baby_name = #{doubleSieving.babyName}
95 95 </if>
96   - <if test="babySex != null">
97   - and baby_sex = #{babySex}
  96 + <if test="doubleSieving.babySex != null">
  97 + and baby_sex = #{doubleSieving.babySex}
98 98 </if>
99   - <if test="babyMName != null and babyMName != ''">
100   - and baby_m_name = #{babyMName}
  99 + <if test="doubleSieving.babyMName != null and doubleSieving.babyMName != ''">
  100 + and baby_m_name = #{doubleSieving.babyMName}
101 101 </if>
102   - <if test="babyFName != null and babyFName != ''">
103   - and baby_f_name = #{babyFName}
  102 + <if test="doubleSieving.babyFName != null and doubleSieving.babyFName != ''">
  103 + and baby_f_name = #{doubleSieving.babyFName}
104 104 </if>
105   - <if test="babyMPhone != null and babyMPhone != ''">
106   - and baby_m_phone = #{babyMPhone}
  105 + <if test="doubleSieving.babyMPhone != null and doubleSieving.babyMPhone != ''">
  106 + and baby_m_phone = #{doubleSieving.babyMPhone}
107 107 </if>
108   - <if test="babyFPhone != null and babyFPhone != ''">
109   - and baby_f_phone = #{babyFPhone}
  108 + <if test="doubleSieving.babyFPhone != null and doubleSieving.babyFPhone != ''">
  109 + and baby_f_phone = #{doubleSieving.babyFPhone}
110 110 </if>
111   - <if test="babyMCertNo != null and babyMCertNo != ''">
112   - and baby_m_cert_no = #{babyMCertNo}
  111 + <if test="doubleSieving.babyMCertNo != null and doubleSieving.babyMCertNo != ''">
  112 + and baby_m_cert_no = #{doubleSieving.babyMCertNo}
113 113 </if>
114   - <if test="babyFCertNo != null and babyFCertNo != ''">
115   - and baby_f_cert_no = #{babyFCertNo}
  114 + <if test="doubleSieving.babyFCertNo != null and doubleSieving.babyFCertNo != ''">
  115 + and baby_f_cert_no = #{doubleSieving.babyFCertNo}
116 116 </if>
117   - <if test="pid != null and pid != ''">
118   - and pid = #{pid}
  117 + <if test="doubleSieving.pid != null and doubleSieving.pid != ''">
  118 + and pid = #{doubleSieving.pid}
119 119 </if>
120   - <if test="checkMonthAge != null and checkMonthAge != ''">
121   - and check_month_age = #{checkMonthAge}
  120 + <if test="doubleSieving.checkMonthAge != null and doubleSieving.checkMonthAge != ''">
  121 + and check_month_age = #{doubleSieving.checkMonthAge}
122 122 </if>
123   - <if test="checkMonthId != null and checkMonthId != ''">
124   - and check_month_id = #{checkMonthId}
  123 + <if test="doubleSieving.checkMonthId != null and doubleSieving.checkMonthId != ''">
  124 + and check_month_id = #{doubleSieving.checkMonthId}
125 125 </if>
126   - <if test="birth != null and birth != ''">
127   - and birth = #{birth}
  126 + <if test="doubleSieving.birth != null ">
  127 + and birth = #{doubleSieving.birth}
128 128 </if>
129   - <if test="checkTime != null and checkTime != ''">
130   - and check_time = #{checkTime}
  129 + <if test="doubleSieving.checkTime != null">
  130 + and check_time = #{doubleSieving.checkTime}
131 131 </if>
132   - <if test="nextCheckTime != null and nextCheckTime != ''">
133   - and next_check_time = #{nextCheckTime}
  132 + <if test="doubleSieving.nextCheckTime != null">
  133 + and next_check_time = #{doubleSieving.nextCheckTime}
134 134 </if>
135   - <if test="checkDoctor != null and checkDoctor != ''">
136   - and check_doctor = #{checkDoctor}
  135 + <if test="doubleSieving.checkDoctor != null and doubleSieving.checkDoctor != ''">
  136 + and check_doctor = #{doubleSieving.checkDoctor}
137 137 </if>
138   - <if test="doctorSign != null and doctorSign != ''">
139   - and doctor_sign = #{doctorSign}
  138 + <if test="doubleSieving.doctorSign != null and doubleSieving.doctorSign != ''">
  139 + and doctor_sign = #{doubleSieving.doctorSign}
140 140 </if>
141   - <if test="patientSign != null and patientSign != ''">
142   - and patient_sign = #{patientSign}
  141 + <if test="doubleSieving.patientSign != null and doubleSieving.patientSign != ''">
  142 + and patient_sign = #{doubleSieving.patientSign}
143 143 </if>
144   - <if test="preliminaryScreeningResults != null and preliminaryScreeningResults != ''">
145   - and preliminary_screening_results = #{preliminaryScreeningResults}
  144 + <if test="doubleSieving.preliminaryScreeningResults != null and doubleSieving.preliminaryScreeningResults != ''">
  145 + and preliminary_screening_results = #{pdoubleSieving.reliminaryScreeningResults}
146 146 </if>
147   - <if test="preliminaryScreeningResultsFailedProject != null and preliminaryScreeningResultsFailedProject != ''">
148   - and preliminary_screening_results_failed_project = #{preliminaryScreeningResultsFailedProject}
  147 + <if test="doubleSieving.preliminaryScreeningResultsFailedProject != null and doubleSieving.preliminaryScreeningResultsFailedProject != ''">
  148 + and preliminary_screening_results_failed_project = #{doubleSieving.preliminaryScreeningResultsFailedProject}
149 149 </if>
150   - <if test="medicalHistoryName != null and medicalHistoryName != ''">
151   - and medical_history = #{medicalHistoryName}
  150 + <if test="doubleSieving.medicalHistoryName != null and doubleSieving.medicalHistoryName != ''">
  151 + and medical_history = #{doubleSieving.medicalHistoryName}
152 152 </if>
153   - <if test="medicalHistoryRemark != null and medicalHistoryRemark != ''">
154   - and medical_history_remark = #{medicalHistoryRemark}
  153 + <if test="doubleSieving.medicalHistoryRemark != null and doubleSieving.medicalHistoryRemark != ''">
  154 + and medical_history_remark = #{doubleSieving.medicalHistoryRemark}
155 155 </if>
156   - <if test="developerQuotient != null and developerQuotient != ''">
157   - and developer_quotient = #{developerQuotient}
  156 + <if test="doubleSieving.developerQuotient != null and doubleSieving.developerQuotient != ''">
  157 + and developer_quotient = #{doubleSieving.developerQuotient}
158 158 </if>
159   - <if test="bigMovement != null and bigMovement != ''">
160   - and big_movement = #{bigMovement}
  159 + <if test="doubleSieving.bigMovement != null and doubleSieving.bigMovement != ''">
  160 + and big_movement = #{doubleSieving.bigMovement}
161 161 </if>
162   - <if test="fineMotion != null and fineMotion != ''">
163   - and fine_motion = #{fineMotion}
  162 + <if test="doubleSieving.fineMotion != null and doubleSieving.fineMotion != ''">
  163 + and fine_motion = #{doubleSieving.fineMotion}
164 164 </if>
165   - <if test="adaptability != null and adaptability != ''">
166   - and adaptability = #{adaptability}
  165 + <if test="doubleSieving.adaptability != null and doubleSieving.adaptability != ''">
  166 + and adaptability = #{doubleSieving.adaptability}
167 167 </if>
168   - <if test="languageNum != null and languageNum != ''">
169   - and language_num = #{languageNum}
  168 + <if test="doubleSieving.languageNum != null and doubleSieving.languageNum != ''">
  169 + and language_num = #{doubleSieving.languageNum}
170 170 </if>
171   - <if test="socialBehavior != null and socialBehavior != ''">
172   - and social_behavior = #{socialBehavior}
  171 + <if test="doubleSieving.socialBehavior != null and doubleSieving.socialBehavior != ''">
  172 + and social_behavior = #{doubleSieving.socialBehavior}
173 173 </if>
174   - <if test="pediatricHeartScaleAssessMentresults != null and pediatricHeartScaleAssessMentresults != ''">
175   - and pediatric_heart_scale_assess_mentresults = #{pediatricHeartScaleAssessMentresults}
  174 + <if test="doubleSieving.pediatricHeartScaleAssessMentresults != null and doubleSieving.pediatricHeartScaleAssessMentresults != ''">
  175 + and pediatric_heart_scale_assess_mentresults = #{doubleSieving.pediatricHeartScaleAssessMentresults}
176 176 </if>
177   - <if test="coreProjectNum != null and coreProjectNum != ''">
178   - and core_project_num = #{coreProjectNum}
  177 + <if test="doubleSieving.coreProjectNum != null and doubleSieving.coreProjectNum != ''">
  178 + and core_project_num = #{doubleSieving.coreProjectNum}
179 179 </if>
180   - <if test="positivetNum != null and positivetNum != ''">
181   - and positivet_num = #{positivetNum}
  180 + <if test="doubleSieving.positivetNum != null and doubleSieving.positivetNum != ''">
  181 + and positivet_num = #{doubleSieving.positivetNum}
182 182 </if>
183   - <if test="screeningScaleMentresults != null and screeningScaleMentresults != ''">
184   - and screening_scale_mentresults = #{screeningScaleMentresults}
  183 + <if test="doubleSieving.screeningScaleMentresults != null and doubleSieving.screeningScaleMentresults != ''">
  184 + and screening_scale_mentresults = #{doubleSieving.screeningScaleMentresults}
185 185 </if>
186   - <if test="behaviorRatingScaleTotal != null and behaviorRatingScaleTotal != ''">
187   - and behavior_rating_scale_total = #{behaviorRatingScaleTotal}
  186 + <if test="doubleSieving.behaviorRatingScaleTotal != null and doubleSieving.behaviorRatingScaleTotal != ''">
  187 + and behavior_rating_scale_total = #{doubleSieving.behaviorRatingScaleTotal}
188 188 </if>
189   - <if test="feelNum != null and feelNum != ''">
190   - and feel_num = #{feelNum}
  189 + <if test="doubleSieving.feelNum != null and doubleSieving.feelNum != ''">
  190 + and feel_num = #{doubleSieving.feelNum}
191 191 </if>
192   - <if test="socialInteractionNum != null and socialInteractionNum != ''">
193   - and social_interaction_num = #{socialInteractionNum}
  192 + <if test="doubleSieving.socialInteractionNum != null and doubleSieving.socialInteractionNum != ''">
  193 + and social_interaction_num = #{doubleSieving.socialInteractionNum}
194 194 </if>
195   - <if test="bodyMovementNum != null and bodyMovementNum != ''">
196   - and body_movement_num = #{bodyMovementNum}
  195 + <if test="doubleSieving.bodyMovementNum != null and doubleSieving.bodyMovementNum != ''">
  196 + and body_movement_num = #{doubleSieving.bodyMovementNum}
197 197 </if>
198   - <if test="behaviorRatingLanguageNum != null and behaviorRatingLanguageNum != ''">
199   - and behavior_rating_language_num = #{behaviorRatingLanguageNum}
  198 + <if test="doubleSieving.behaviorRatingLanguageNum != null and doubleSieving.behaviorRatingLanguageNum != ''">
  199 + and behavior_rating_language_num = #{doubleSieving.behaviorRatingLanguageNum}
200 200 </if>
201   - <if test="selfCareInDailyLifeNum != null and selfCareInDailyLifeNum != ''">
202   - and self_care_in_daily_life_num = #{selfCareInDailyLifeNum}
  201 + <if test="doubleSieving.selfCareInDailyLifeNum != null and doubleSieving.selfCareInDailyLifeNum != ''">
  202 + and self_care_in_daily_life_num = #{doubleSieving.selfCareInDailyLifeNum}
203 203 </if>
204   - <if test="behaviorRatingScaleAssessMentresults != null and behaviorRatingScaleAssessMentresults != ''">
205   - and behavior_rating_scale_assess_mentresults = #{behaviorRatingScaleAssessMentresults}
  204 + <if test="doubleSieving.behaviorRatingScaleAssessMentresults != null and doubleSieving.behaviorRatingScaleAssessMentresults != ''">
  205 + and behavior_rating_scale_assess_mentresults = #{doubleSieving.behaviorRatingScaleAssessMentresults}
206 206 </if>
207   - <if test="rescreenResults != null and rescreenResults != ''">
208   - and rescreen_results = #{rescreenResults}
  207 + <if test="doubleSieving.rescreenResults != null and doubleSieving.rescreenResults != ''">
  208 + and rescreen_results = #{doubleSieving.rescreenResults}
209 209 </if>
210 210 </where>
211 211 limit #{pageable.offset}, #{pageable.pageSize}
212 212  
213 213  
214 214  
215 215  
216 216  
217 217  
218 218  
219 219  
220 220  
221 221  
222 222  
223 223  
224 224  
225 225  
226 226  
227 227  
228 228  
229 229  
230 230  
231 231  
232 232  
233 233  
234 234  
235 235  
236 236  
237 237  
238 238  
239 239  
240 240  
241 241  
242 242  
243 243  
244 244  
245 245  
246 246  
247 247  
248 248  
249 249  
250 250  
251 251  
252 252  
253 253  
254 254  
255 255  
256 256  
257 257  
... ... @@ -216,146 +216,146 @@
216 216 select count(1)
217 217 from baby_autism_double_sieving
218 218 <where>
219   - <if test="id != null and id != ''">
220   - and id = #{id}
  219 + <if test="doubleSieving.id != null and doubleSieving.id != ''">
  220 + and id = #{doubleSieving.id}
221 221 </if>
222   - <if test="created != null and created != ''">
223   - and created = #{created}
  222 + <if test="doubleSieving.created != null ">
  223 + and created = #{doubleSieving.created}
224 224 </if>
225   - <if test="modified != null and modified != ''">
226   - and modified = #{modified}
  225 + <if test="doubleSieving.modified != null ">
  226 + and modified = #{doubleSieving.modified}
227 227 </if>
228   - <if test="yn != null">
229   - and yn = #{yn}
  228 + <if test="doubleSieving.yn != null">
  229 + and yn = #{doubleSieving.yn}
230 230 </if>
231   - <if test="operaterId != null and operaterId != ''">
232   - and operater_id = #{operaterId}
  231 + <if test="doubleSieving.operaterId != null and doubleSieving.operaterId != ''">
  232 + and operater_id = #{doubleSieving.operaterId}
233 233 </if>
234   - <if test="hospitalId != null and hospitalId != ''">
235   - and hospital_id = #{hospitalId}
  234 + <if test="doubleSieving.hospitalId != null and doubleSieving.hospitalId != ''">
  235 + and hospital_id = #{doubleSieving.hospitalId}
236 236 </if>
237   - <if test="babyId != null and babyId != ''">
238   - and baby_id = #{babyId}
  237 + <if test="doubleSieving.babyId != null and doubleSieving.babyId != ''">
  238 + and baby_id = #{doubleSieving.babyId}
239 239 </if>
240   - <if test="babyBuildDate != null and babyBuildDate != ''">
241   - and baby_build_date = #{babyBuildDate}
  240 + <if test="doubleSieving.babyBuildDate != null ">
  241 + and baby_build_date = #{doubleSieving.babyBuildDate}
242 242 </if>
243   - <if test="babyName != null and babyName != ''">
244   - and baby_name = #{babyName}
  243 + <if test="doubleSieving.babyName != null and doubleSieving.babyName != ''">
  244 + and baby_name = #{doubleSieving.babyName}
245 245 </if>
246   - <if test="babySex != null">
247   - and baby_sex = #{babySex}
  246 + <if test="doubleSieving.babySex != null">
  247 + and baby_sex = #{doubleSieving.babySex}
248 248 </if>
249   - <if test="babyMName != null and babyMName != ''">
250   - and baby_m_name = #{babyMName}
  249 + <if test="doubleSieving.babyMName != null and doubleSieving.babyMName != ''">
  250 + and baby_m_name = #{doubleSieving.babyMName}
251 251 </if>
252   - <if test="babyFName != null and babyFName != ''">
253   - and baby_f_name = #{babyFName}
  252 + <if test="doubleSieving.babyFName != null and doubleSieving.babyFName != ''">
  253 + and baby_f_name = #{doubleSieving.babyFName}
254 254 </if>
255   - <if test="babyMPhone != null and babyMPhone != ''">
256   - and baby_m_phone = #{babyMPhone}
  255 + <if test="doubleSieving.babyMPhone != null and doubleSieving.babyMPhone != ''">
  256 + and baby_m_phone = #{doubleSieving.babyMPhone}
257 257 </if>
258   - <if test="babyFPhone != null and babyFPhone != ''">
259   - and baby_f_phone = #{babyFPhone}
  258 + <if test="doubleSieving.babyFPhone != null and doubleSieving.babyFPhone != ''">
  259 + and baby_f_phone = #{doubleSieving.babyFPhone}
260 260 </if>
261   - <if test="babyMCertNo != null and babyMCertNo != ''">
262   - and baby_m_cert_no = #{babyMCertNo}
  261 + <if test="doubleSieving.babyMCertNo != null and doubleSieving.babyMCertNo != ''">
  262 + and baby_m_cert_no = #{doubleSieving.babyMCertNo}
263 263 </if>
264   - <if test="babyFCertNo != null and babyFCertNo != ''">
265   - and baby_f_cert_no = #{babyFCertNo}
  264 + <if test="doubleSieving.babyFCertNo != null and doubleSieving.babyFCertNo != ''">
  265 + and baby_f_cert_no = #{doubleSieving.babyFCertNo}
266 266 </if>
267   - <if test="pid != null and pid != ''">
268   - and pid = #{pid}
  267 + <if test="doubleSieving.pid != null and doubleSieving.pid != ''">
  268 + and pid = #{doubleSieving.pid}
269 269 </if>
270   - <if test="checkMonthAge != null and checkMonthAge != ''">
271   - and check_month_age = #{checkMonthAge}
  270 + <if test="doubleSieving.checkMonthAge != null and doubleSieving.checkMonthAge != ''">
  271 + and check_month_age = #{doubleSieving.checkMonthAge}
272 272 </if>
273   - <if test="checkMonthId != null and checkMonthId != ''">
274   - and check_month_id = #{checkMonthId}
  273 + <if test="doubleSieving.checkMonthId != null and doubleSieving.checkMonthId != ''">
  274 + and check_month_id = #{doubleSieving.checkMonthId}
275 275 </if>
276   - <if test="birth != null and birth != ''">
277   - and birth = #{birth}
  276 + <if test="doubleSieving.birth != null ">
  277 + and birth = #{doubleSieving.birth}
278 278 </if>
279   - <if test="checkTime != null and checkTime != ''">
280   - and check_time = #{checkTime}
  279 + <if test="doubleSieving.checkTime != null">
  280 + and check_time = #{doubleSieving.checkTime}
281 281 </if>
282   - <if test="nextCheckTime != null and nextCheckTime != ''">
283   - and next_check_time = #{nextCheckTime}
  282 + <if test="doubleSieving.nextCheckTime != null">
  283 + and next_check_time = #{doubleSieving.nextCheckTime}
284 284 </if>
285   - <if test="checkDoctor != null and checkDoctor != ''">
286   - and check_doctor = #{checkDoctor}
  285 + <if test="doubleSieving.checkDoctor != null and doubleSieving.checkDoctor != ''">
  286 + and check_doctor = #{doubleSieving.checkDoctor}
287 287 </if>
288   - <if test="doctorSign != null and doctorSign != ''">
289   - and doctor_sign = #{doctorSign}
  288 + <if test="doubleSieving.doctorSign != null and doubleSieving.doctorSign != ''">
  289 + and doctor_sign = #{doubleSieving.doctorSign}
290 290 </if>
291   - <if test="patientSign != null and patientSign != ''">
292   - and patient_sign = #{patientSign}
  291 + <if test="doubleSieving.patientSign != null and doubleSieving.patientSign != ''">
  292 + and patient_sign = #{doubleSieving.patientSign}
293 293 </if>
294   - <if test="preliminaryScreeningResults != null and preliminaryScreeningResults != ''">
295   - and preliminary_screening_results = #{preliminaryScreeningResults}
  294 + <if test="doubleSieving.preliminaryScreeningResults != null and doubleSieving.preliminaryScreeningResults != ''">
  295 + and preliminary_screening_results = #{pdoubleSieving.reliminaryScreeningResults}
296 296 </if>
297   - <if test="preliminaryScreeningResultsFailedProject != null and preliminaryScreeningResultsFailedProject != ''">
298   - and preliminary_screening_results_failed_project = #{preliminaryScreeningResultsFailedProject}
  297 + <if test="doubleSieving.preliminaryScreeningResultsFailedProject != null and doubleSieving.preliminaryScreeningResultsFailedProject != ''">
  298 + and preliminary_screening_results_failed_project = #{doubleSieving.preliminaryScreeningResultsFailedProject}
299 299 </if>
300   - <if test="medicalHistoryName != null and medicalHistoryName != ''">
301   - and medical_history = #{medicalHistoryName}
  300 + <if test="doubleSieving.medicalHistoryName != null and doubleSieving.medicalHistoryName != ''">
  301 + and medical_history = #{doubleSieving.medicalHistoryName}
302 302 </if>
303   - <if test="medicalHistoryRemark != null and medicalHistoryRemark != ''">
304   - and medical_history_remark = #{medicalHistoryRemark}
  303 + <if test="doubleSieving.medicalHistoryRemark != null and doubleSieving.medicalHistoryRemark != ''">
  304 + and medical_history_remark = #{doubleSieving.medicalHistoryRemark}
305 305 </if>
306   - <if test="developerQuotient != null and developerQuotient != ''">
307   - and developer_quotient = #{developerQuotient}
  306 + <if test="doubleSieving.developerQuotient != null and doubleSieving.developerQuotient != ''">
  307 + and developer_quotient = #{doubleSieving.developerQuotient}
308 308 </if>
309   - <if test="bigMovement != null and bigMovement != ''">
310   - and big_movement = #{bigMovement}
  309 + <if test="doubleSieving.bigMovement != null and doubleSieving.bigMovement != ''">
  310 + and big_movement = #{doubleSieving.bigMovement}
311 311 </if>
312   - <if test="fineMotion != null and fineMotion != ''">
313   - and fine_motion = #{fineMotion}
  312 + <if test="doubleSieving.fineMotion != null and doubleSieving.fineMotion != ''">
  313 + and fine_motion = #{doubleSieving.fineMotion}
314 314 </if>
315   - <if test="adaptability != null and adaptability != ''">
316   - and adaptability = #{adaptability}
  315 + <if test="doubleSieving.adaptability != null and doubleSieving.adaptability != ''">
  316 + and adaptability = #{doubleSieving.adaptability}
317 317 </if>
318   - <if test="languageNum != null and languageNum != ''">
319   - and language_num = #{languageNum}
  318 + <if test="doubleSieving.languageNum != null and doubleSieving.languageNum != ''">
  319 + and language_num = #{doubleSieving.languageNum}
320 320 </if>
321   - <if test="socialBehavior != null and socialBehavior != ''">
322   - and social_behavior = #{socialBehavior}
  321 + <if test="doubleSieving.socialBehavior != null and doubleSieving.socialBehavior != ''">
  322 + and social_behavior = #{doubleSieving.socialBehavior}
323 323 </if>
324   - <if test="pediatricHeartScaleAssessMentresults != null and pediatricHeartScaleAssessMentresults != ''">
325   - and pediatric_heart_scale_assess_mentresults = #{pediatricHeartScaleAssessMentresults}
  324 + <if test="doubleSieving.pediatricHeartScaleAssessMentresults != null and doubleSieving.pediatricHeartScaleAssessMentresults != ''">
  325 + and pediatric_heart_scale_assess_mentresults = #{doubleSieving.pediatricHeartScaleAssessMentresults}
326 326 </if>
327   - <if test="coreProjectNum != null and coreProjectNum != ''">
328   - and core_project_num = #{coreProjectNum}
  327 + <if test="doubleSieving.coreProjectNum != null and doubleSieving.coreProjectNum != ''">
  328 + and core_project_num = #{doubleSieving.coreProjectNum}
329 329 </if>
330   - <if test="positivetNum != null and positivetNum != ''">
331   - and positivet_num = #{positivetNum}
  330 + <if test="doubleSieving.positivetNum != null and doubleSieving.positivetNum != ''">
  331 + and positivet_num = #{doubleSieving.positivetNum}
332 332 </if>
333   - <if test="screeningScaleMentresults != null and screeningScaleMentresults != ''">
334   - and screening_scale_mentresults = #{screeningScaleMentresults}
  333 + <if test="doubleSieving.screeningScaleMentresults != null and doubleSieving.screeningScaleMentresults != ''">
  334 + and screening_scale_mentresults = #{doubleSieving.screeningScaleMentresults}
335 335 </if>
336   - <if test="behaviorRatingScaleTotal != null and behaviorRatingScaleTotal != ''">
337   - and behavior_rating_scale_total = #{behaviorRatingScaleTotal}
  336 + <if test="doubleSieving.behaviorRatingScaleTotal != null and doubleSieving.behaviorRatingScaleTotal != ''">
  337 + and behavior_rating_scale_total = #{doubleSieving.behaviorRatingScaleTotal}
338 338 </if>
339   - <if test="feelNum != null and feelNum != ''">
340   - and feel_num = #{feelNum}
  339 + <if test="doubleSieving.feelNum != null and doubleSieving.feelNum != ''">
  340 + and feel_num = #{doubleSieving.feelNum}
341 341 </if>
342   - <if test="socialInteractionNum != null and socialInteractionNum != ''">
343   - and social_interaction_num = #{socialInteractionNum}
  342 + <if test="doubleSieving.socialInteractionNum != null and doubleSieving.socialInteractionNum != ''">
  343 + and social_interaction_num = #{doubleSieving.socialInteractionNum}
344 344 </if>
345   - <if test="bodyMovementNum != null and bodyMovementNum != ''">
346   - and body_movement_num = #{bodyMovementNum}
  345 + <if test="doubleSieving.bodyMovementNum != null and doubleSieving.bodyMovementNum != ''">
  346 + and body_movement_num = #{doubleSieving.bodyMovementNum}
347 347 </if>
348   - <if test="behaviorRatingLanguageNum != null and behaviorRatingLanguageNum != ''">
349   - and behavior_rating_language_num = #{behaviorRatingLanguageNum}
  348 + <if test="doubleSieving.behaviorRatingLanguageNum != null and doubleSieving.behaviorRatingLanguageNum != ''">
  349 + and behavior_rating_language_num = #{doubleSieving.behaviorRatingLanguageNum}
350 350 </if>
351   - <if test="selfCareInDailyLifeNum != null and selfCareInDailyLifeNum != ''">
352   - and self_care_in_daily_life_num = #{selfCareInDailyLifeNum}
  351 + <if test="doubleSieving.selfCareInDailyLifeNum != null and doubleSieving.selfCareInDailyLifeNum != ''">
  352 + and self_care_in_daily_life_num = #{doubleSieving.selfCareInDailyLifeNum}
353 353 </if>
354   - <if test="behaviorRatingScaleAssessMentresults != null and behaviorRatingScaleAssessMentresults != ''">
355   - and behavior_rating_scale_assess_mentresults = #{behaviorRatingScaleAssessMentresults}
  354 + <if test="doubleSieving.behaviorRatingScaleAssessMentresults != null and doubleSieving.behaviorRatingScaleAssessMentresults != ''">
  355 + and behavior_rating_scale_assess_mentresults = #{doubleSieving.behaviorRatingScaleAssessMentresults}
356 356 </if>
357   - <if test="rescreenResults != null and rescreenResults != ''">
358   - and rescreen_results = #{rescreenResults}
  357 + <if test="doubleSieving.rescreenResults != null and doubleSieving.rescreenResults != ''">
  358 + and rescreen_results = #{doubleSieving.rescreenResults}
359 359 </if>
360 360 </where>
361 361 </select>
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/DoubleSievingFacade.java View file @ e0b5c08
1 1 package com.lyms.platform.operate.web.facade;
2 2  
3   -import com.lyms.platform.common.base.PageInfo;
4 3 import com.lyms.platform.common.constants.ErrorCodeConstants;
  4 +import com.lyms.platform.common.dao.BaseQuery;
5 5 import com.lyms.platform.common.enums.EyeCheckMonthEnums;
6 6 import com.lyms.platform.common.enums.SexEnum;
7 7 import com.lyms.platform.common.enums.YnEnums;
... ... @@ -20,8 +20,6 @@
20 20 import org.slf4j.Logger;
21 21 import org.slf4j.LoggerFactory;
22 22 import org.springframework.beans.factory.annotation.Autowired;
23   -import org.springframework.data.domain.Page;
24   -import org.springframework.data.domain.PageRequest;
25 23 import org.springframework.data.mongodb.core.MongoTemplate;
26 24 import org.springframework.stereotype.Component;
27 25  
28 26  
... ... @@ -142,13 +140,13 @@
142 140 return br;
143 141 }
144 142  
145   - public BaseResponse queryDateListPage(BabyAutismDoubleSieving babyAutismDoubleSieving, PageRequest pageRequest, Integer id) {
146   - Page<BabyAutismDoubleSieving> primaryScreeningPage = babyAutismDoubleSievingService.queryByPage(babyAutismDoubleSieving, pageRequest);
  143 + public BaseResponse queryDateListPage(BabyAutismDoubleSieving babyAutismDoubleSieving, BaseQuery pageRequest, Integer id) {
  144 + pageRequest.mysqlBuild(babyAutismDoubleSievingService.count(babyAutismDoubleSieving, pageRequest).intValue());
  145 + List<BabyAutismDoubleSieving> primaryScreeningPage = babyAutismDoubleSievingService.queryByPage(babyAutismDoubleSieving, pageRequest);
147 146 BaseObjectResponse br = new BaseObjectResponse();
148 147 br.setErrorcode(ErrorCodeConstants.SUCCESS);
149   - br.setData(primaryScreeningPage.getContent());
150   - PageInfo pageInfo = new PageInfo(primaryScreeningPage.getNumber(), primaryScreeningPage.getTotalPages(), Long.valueOf(primaryScreeningPage.getTotalElements()).intValue(), pageRequest.getPageSize());
151   - br.setPageInfo(pageInfo);
  148 + br.setData(primaryScreeningPage);
  149 + br.setPageInfo(pageRequest.getPageInfo());
152 150 br.setErrormsg("成功");
153 151 return br;
154 152 }