1.调整养护记录打印数据null值显示

zhairh
x_z 2 years ago
parent 7f8ce8be8c
commit c182d0f3a5

@ -26,10 +26,7 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Collections; import java.util.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Slf4j @Slf4j
@Service @Service
@ -186,15 +183,15 @@ public class DeviceMAOrderServiceImpl implements DeviceMAOrderService {
String productName = udiInfoDao.selectProductNameByProductId(deviceMAOrderDetailEntity.getProductId()); String productName = udiInfoDao.selectProductNameByProductId(deviceMAOrderDetailEntity.getProductId());
data.put("productName", productName); data.put("productName", productName);
//批次号 //批次号
data.put("batchNo", deviceMAOrderDetailEntity.getBatchNo()); data.put("batchNo", StrUtil.isBlank(deviceMAOrderDetailEntity.getBatchNo()) ? "" : deviceMAOrderDetailEntity.getBatchNo());
//养护时间 //养护时间
data.put("createTime", deviceMAOrderEntity.getCreateTime()); data.put("createTime", deviceMAOrderEntity.getCreateTime());
//养护人 //养护人
data.put("createUser", deviceMAOrderEntity.getCreateUser()); data.put("createUser", deviceMAOrderEntity.getCreateUser());
//审核人 //审核人
data.put("auditUser", deviceMAOrderEntity.getAuditUser()); data.put("auditUser", StrUtil.isBlank(deviceMAOrderEntity.getAuditUser()) ? "" : deviceMAOrderEntity.getAuditUser());
//养护说明 //养护说明
data.put("remark", deviceMAOrderDetailEntity.getRemark()); data.put("remark", StrUtil.isBlank(deviceMAOrderDetailEntity.getRemark()) ? "" : deviceMAOrderDetailEntity.getRemark());
//设备状态 //设备状态
data.put("deviceStatus", deviceMAOrderDetailEntity.getDeviceStatus() == 0 ? "异常" : "正常"); data.put("deviceStatus", deviceMAOrderDetailEntity.getDeviceStatus() == 0 ? "异常" : "正常");
//养护状态 //养护状态

Loading…
Cancel
Save