修改灌溉记录bug,添加充值报文处理
This commit is contained in:
@ -182,10 +182,14 @@ public class UserIrrigationRecordServiceImpl implements IUserIrrigationRecordSer
|
||||
temp.userName= sysUserMapper.selectUserById(list.get(i).getUserId()).getUserName()==null ? "" :sysUserMapper.selectUserById(list.get(i).getUserId()).getUserName();
|
||||
|
||||
}
|
||||
if(list.get(i).getDeviceNumber()!=null)
|
||||
{
|
||||
temp.deviceName=ngIrrigationControllersMapper.selectNgIrrigationControllersBySerialNumber(list.get(i).getDeviceNumber()).getControllerName() == null ? "":ngIrrigationControllersMapper.selectNgIrrigationControllersBySerialNumber(list.get(i).getDeviceNumber()).getControllerName();
|
||||
|
||||
if (list.get(i).getDeviceNumber() != null) {
|
||||
String deviceNumber = list.get(i).getDeviceNumber();
|
||||
String controllerName = "";
|
||||
NgIrrigationControllers ngIrrigationControllers = ngIrrigationControllersMapper.selectNgIrrigationControllersBySerialNumber(deviceNumber);
|
||||
if (ngIrrigationControllers != null) {
|
||||
controllerName = ngIrrigationControllers.getControllerName();
|
||||
}
|
||||
temp.deviceName = (controllerName != null) ? controllerName : "";
|
||||
}
|
||||
temp.deviceNumber=list.get(i).getDeviceNumber();
|
||||
temp.cardNumber=list.get(i).getCardNumber() == null ? "" : list.get(i).getCardNumber();
|
||||
|
Reference in New Issue
Block a user