| | |
| | | // containerRight 对应 DB character_right |
| | | // createTimestamp 对应 DB create_time |
| | | |
| | | System.out.println("1111111111111111111111111"); |
| | | // 注册接口没有之前的关系 |
| | | // |
| | | // //清除之前的记录,然后关联现在的关系 |
| | |
| | | SysUser user = sysUserDao.getSysUserByIdCard(idcard); |
| | | |
| | | LinkedHashMap params = new LinkedHashMap(); |
| | | if (user == null) { |
| | | throw new ApiException(ApiStatus.PARAM_ERR,"无相关人员卡号"); |
| | | } |
| | | params.put("userId", user.getId()); |
| | | params.put("realstatus", realstatus); |
| | | params.put("reagentCode", reagentCode); |
| | |
| | | throw new ApiException(ApiStatus.PARAM_ERR); |
| | | } |
| | | //判断是否重复 |
| | | logger.info("测试"); |
| | | if (sysAlarmDao.selectOne(containerCode, controllerCode, sysAlarm.getWarningId(), sysAlarm.getWarningTime()) > 0) { |
| | | continue; |
| | | } |
| | |
| | | Integer warningPoint = dataJson.getInteger("warningPoint"); |
| | | |
| | | SysUser user = sysUserDao.getSysUserByIdCard(idcard); |
| | | System.out.println("====="+user); |
| | | if(user==null){ |
| | | System.out.println(idcard.length()); |
| | | if(idcard.length()==20){ |
| | |
| | | String updateTime = dataJson.getString("updateTime"); |
| | | BigDecimal remainder = dataJson.getBigDecimal("remainder"); |
| | | String operateState = dataJson.getString("operateState"); |
| | | BigDecimal volume = dataJson.getBigDecimal("volume"); |
| | | |
| | | Map<String, String> metaMap = new HashMap<>(); |
| | | metaMap.put("groupId", "operate_status"); |
| | |
| | | opeUseFlow.setRemainder(remainder); |
| | | opeUseFlow.setOperateState(baseMetaList.get(0).getId()); |
| | | opeUseFlow.setCreateTime(new java.sql.Timestamp(createtime.getTime())); |
| | | opeUseFlow.setVolume(volume); |
| | | |
| | | // <!--0:个人领用 1:在仓库sys_warehouse_container |
| | | // 2:在实验室sys_laboratory_container 3:报废--> |