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