This commit is contained in:
parent
a866447d06
commit
9611f236b9
|
|
@ -98,7 +98,7 @@ public interface MaterialMachineMapper {
|
|||
* @param machine1
|
||||
* @return
|
||||
*/
|
||||
MaterialSltAgreementInfo selectStatusById(Machine machine1);
|
||||
List<MaterialSltAgreementInfo> selectStatusById(Machine machine1);
|
||||
|
||||
/**
|
||||
* 获取设备状态
|
||||
|
|
|
|||
|
|
@ -111,8 +111,8 @@ public class MaterialMachineServiceImpl implements MaterialMachineService {
|
|||
// 根据maId去协议表查询设备设备状态,赋值maStatus
|
||||
for (Machine machine1 : mergedList) {
|
||||
if (machine1.getMaId() != null) {
|
||||
MaterialSltAgreementInfo sltAgreementInfo = materialMachineMapper.selectStatusById(machine1);
|
||||
if (sltAgreementInfo != null) {
|
||||
List<MaterialSltAgreementInfo> sltAgreementInfo = materialMachineMapper.selectStatusById(machine1);
|
||||
if (CollectionUtils.isNotEmpty(sltAgreementInfo)) {
|
||||
machine1.setMaStatus("在用");
|
||||
} else {
|
||||
machine1.setMaStatus("在库");
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ public interface TmTaskMapper {
|
|||
* @param parseLong
|
||||
* @return
|
||||
*/
|
||||
TmTask selectTmTaskByPreTaskId(long parseLong);
|
||||
TmTask selectTmTaskByPreTaskId(Long parseLong);
|
||||
|
||||
/**
|
||||
* 查询单位信息
|
||||
|
|
|
|||
Loading…
Reference in New Issue