大屏问题
This commit is contained in:
parent
074d9d7a81
commit
e51a46522f
|
|
@ -556,9 +556,15 @@ public class MachineServiceImpl implements IMachineService
|
|||
baseInfo.setScrapTime(scrapTime != null ? scrapTime.getScrapTime() : "暂无");
|
||||
// 查询领料任务
|
||||
LeaseApplyInfo leaseInfo = machineMapper.getLeaseDataByMaId(machine);
|
||||
baseInfo.setLeaseTime(leaseInfo.getLeaseTime());
|
||||
baseInfo.setLeaseUnit(leaseInfo.getUnitName());
|
||||
baseInfo.setLeaseProject(leaseInfo.getProjectName());
|
||||
if(leaseInfo != null){
|
||||
baseInfo.setLeaseTime(String.valueOf(leaseInfo.getLeaseTime()));
|
||||
baseInfo.setLeaseUnit(leaseInfo.getUnitName());
|
||||
baseInfo.setLeaseProject(leaseInfo.getProjectName());
|
||||
}else{
|
||||
baseInfo.setLeaseTime(null);
|
||||
baseInfo.setLeaseUnit(null);
|
||||
baseInfo.setLeaseProject(null);
|
||||
}
|
||||
// LeaseApplyInfo leaseInfo = machineMapper.getLeaseParentId(machine);
|
||||
// if (leaseInfo == null || leaseInfo.getParentId() == null) {
|
||||
// baseInfo.setLeaseTime(null);
|
||||
|
|
|
|||
Loading…
Reference in New Issue