Commit de511f80f2ee0533570433dc0ae20420dd134f63

Authored by gengxiaokai
1 parent ddcf22ee87

乐陵分娩

Showing 1 changed file with 3 additions and 4 deletions

platform-operate-api/src/main/java/com/lyms/hospitalapi/llfy/LlfyFmService.java View file @ de511f8
... ... @@ -154,7 +154,6 @@
154 154  
155 155  
156 156 Connection conn = com.lyms.hospitalapi.llfy.ConnTools.makeHisConnection();
157   - //Connection conn = com.lyms.hospitalapi.dzfy.ConnTools.makeLocalConnection();
158 157 QueryRunner queryRunner = new QueryRunner();
159 158 SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
160 159 try {
... ... @@ -168,7 +167,7 @@
168 167 List<Fm> list = queryRunner.query(conn, sql, new BeanListHandler<Fm>(Fm.class));
169 168 ExceptionUtils.catchException("size====" + list.size());
170 169  
171   - /* List<Fm> list=new ArrayList<Fm>();
  170 + /*List<Fm> list=new ArrayList<Fm>();
172 171 list.add(fm1);*/
173 172 if(CollectionUtils.isNotEmpty(list)){
174 173  
... ... @@ -186,7 +185,7 @@
186 185 //获取到这个孕妇的最近的分娩日期
187 186 List<Fm> dateList = queryRunner.query(conn, dateSql, new BeanListHandler<Fm>(Fm.class));
188 187 Calendar calendar = Calendar.getInstance();
189   - calendar.setTime(fmt.parse(dateList.get(0).getBabyDate()));
  188 + calendar.setTime(fmt.parse(dateList.get(0).getBabyDate()));
190 189 calendar.add(Calendar.DAY_OF_MONTH, -1);
191 190 Date sDate = calendar.getTime();
192 191 String startDate = fmt.format(sDate);
... ... @@ -219,7 +218,7 @@
219 218  
220 219 //将中间字段的值整理赋值到正式字段中
221 220 int sxl = allFm.getSxl().length();
222   - allFm.setSH_LOSE_BLOOD(Integer.parseInt(allFm.getSxl().substring(0, sxl-1)));//失血量
  221 + allFm.setSH_LOSE_BLOOD(Integer.parseInt(allFm.getSxl().substring(0,sxl-2)));//失血量
223 222  
224 223 String[] oneShi = allFm.getCcOne().split("时");
225 224 int one = Integer.parseInt(oneShi[0])*60;