| | |
| | | mapper.update(null,update); |
| | | QueryWrapper<CKPowerDevHrTestParam> query = Wrappers.query(); |
| | | Response opStatus= OpCmdUtil.readByUpdateOpCmd(mapper, query, CMD_Constant.CMD_GetBattDisParam, 20, null); |
| | | CKPowerDevHrTestParam hrTestParam = mapper.selectOne(null); |
| | | opStatus.setData2(hrTestParam); |
| | | if(opStatus.getData()!=null && !(boolean)opStatus.getData()) { //失败 |
| | | CKPowerDevHrTestParam hrTestParam = mapper.selectOne(null); |
| | | opStatus.setData2(hrTestParam); |
| | | } |
| | | if(opStatus.getData()!=null && (boolean)opStatus.getData()) { //成功 |
| | | //记录日志 |
| | | Date now = new Date(); |
| | |
| | | mapper.update(null,update); |
| | | QueryWrapper<CKPowerDevHrTestParam> query = Wrappers.query(); |
| | | Response opStatus= OpCmdUtil.readByUpdateOpCmd(mapper, query, CMD_Constant.CMD_GetDevIP, 20, null); |
| | | CKPowerDevHrTestParam hrTestParam = mapper.selectOne(null); |
| | | opStatus.setData2(hrTestParam); |
| | | if(opStatus.getData()!=null && !(boolean)opStatus.getData()) { //失败 |
| | | CKPowerDevHrTestParam hrTestParam = mapper.selectOne(null); |
| | | opStatus.setData2(hrTestParam); |
| | | } |
| | | if(opStatus.getData()!=null && (boolean)opStatus.getData()) { //成功 |
| | | //记录日志 |
| | | Date now = new Date(); |