代码优化

This commit is contained in:
xy
2024-12-27 12:34:31 +08:00
parent 04fd2409cf
commit da3b99f663

View File

@@ -370,7 +370,6 @@ public class CsDeviceServiceImpl implements ICsDeviceService {
}
@Override
@Transactional(rollbackFor = {Exception.class})
public String wlDevRegister(String nDid) {
String result = "fail";
// 设备状态判断
@@ -439,6 +438,7 @@ public class CsDeviceServiceImpl implements ICsDeviceService {
csDevModelRelationAddParm.setDid(modelList.get(0).getDid());
csDevModelRelationService.addDevModelRelation(csDevModelRelationAddParm);
//5.发起自动接入请求
Thread.sleep(2000);
devAccessAskTemplate(nDid,version,1);
//6.修改流程,便携式设备接入成功即为实际环境
csEquipmentDeliveryService.updateProcessBynDid(nDid,4);