Browse Source

日志打印

wangjun 4 years ago
parent
commit
933645725a

+ 4 - 4
svr/svr-iot/src/main/java/com/yihu/iot/service/device/IotPatientDeviceService.java

@ -271,12 +271,12 @@ public class IotPatientDeviceService extends BaseJpaService<IotPatientDeviceDO,
                }if (StringUtils.isNotEmpty(snCoed)){
                    sqlEqt = sqlEqt +" and t.device_code = '"+snCoed+"'";
                }
                logger.debug("查询患者name和code开始");
                System.out.println("查询患者name和code开始");
                List<Map<String,Object>> nameList = jdbcTempalte.queryForList(sql);
                logger.debug("查询患者name和code结束:"+nameList);
                logger.debug("查询设备名称开始");
                System.out.println("查询患者name和code结束:"+nameList);
                System.out.println("查询设备名称开始");
                List<Map<String,Object>> deviceList = jdbcTempalte.queryForList(sqlEqt);
                logger.debug("查询设备名称结束:"+deviceList);
                System.out.println("查询设备名称结束:"+deviceList);
                if(nameList.size()>0){
                    String code = null==nameList.get(0).get("code")?"":nameList.get(0).get("code").toString();
                    String name = null==nameList.get(0).get("name")?"":nameList.get(0).get("name").toString();