设备修改
This commit is contained in:
@@ -31,12 +31,6 @@ public interface DeviceService {
|
||||
*/
|
||||
List<DeviceDto> queryAll(Map whereJson);
|
||||
|
||||
/**
|
||||
* 根据ID查询
|
||||
* @param device_code ID
|
||||
* @return Device
|
||||
*/
|
||||
DeviceDto findById(String device_code);
|
||||
|
||||
/**
|
||||
* 根据编码查询
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user