设备修改

This commit is contained in:
周俊杰
2023-03-21 20:45:57 +08:00
parent e7f050f35e
commit 187a2f9b6d
2 changed files with 1 additions and 7 deletions

View File

@@ -31,12 +31,6 @@ public interface DeviceService {
*/
List<DeviceDto> queryAll(Map whereJson);
/**
* 根据ID查询
* @param device_code ID
* @return Device
*/
DeviceDto findById(String device_code);
/**
* 根据编码查询

View File

@@ -56,7 +56,7 @@ public class DeviceServiceImpl implements DeviceService {
@Override
public DeviceDto findByCode(String code) {
WQLObject wo = WQLObject.getWQLObject("pdm_bi_device");
JSONObject json = wo.query("code ='" + code + "'").uniqueResult(0);
JSONObject json = wo.query("device_code ='" + code + "'").uniqueResult(0);
if (ObjectUtil.isNotEmpty(json)){
return json.toJavaObject( DeviceDto.class);
}