|
|
@ -1,6 +1,7 @@
|
|
|
|
package com.foreverwin.mesnac.equip.controller;
|
|
|
|
package com.foreverwin.mesnac.equip.controller;
|
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
import com.foreverwin.mesnac.equip.model.Equip;
|
|
|
|
import com.foreverwin.mesnac.equip.model.Equip;
|
|
|
|
import com.foreverwin.mesnac.equip.model.EquipType;
|
|
|
|
import com.foreverwin.mesnac.equip.model.EquipType;
|
|
|
|
import com.foreverwin.mesnac.equip.model.EquipTypeEquip;
|
|
|
|
import com.foreverwin.mesnac.equip.model.EquipTypeEquip;
|
|
|
@ -12,6 +13,7 @@ import com.foreverwin.mesnac.meapi.service.CustomFieldsService;
|
|
|
|
import com.foreverwin.mesnac.meapi.util.StringUtils;
|
|
|
|
import com.foreverwin.mesnac.meapi.util.StringUtils;
|
|
|
|
import com.foreverwin.modular.core.exception.BusinessException;
|
|
|
|
import com.foreverwin.modular.core.exception.BusinessException;
|
|
|
|
import com.foreverwin.modular.core.util.CommonMethods;
|
|
|
|
import com.foreverwin.modular.core.util.CommonMethods;
|
|
|
|
|
|
|
|
import com.foreverwin.modular.core.util.FrontPage;
|
|
|
|
import com.foreverwin.modular.core.util.R;
|
|
|
|
import com.foreverwin.modular.core.util.R;
|
|
|
|
import com.foreverwin.mesnac.common.enums.HandleEnum;
|
|
|
|
import com.foreverwin.mesnac.common.enums.HandleEnum;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@ -102,6 +104,18 @@ public class EquipController {
|
|
|
|
Collections.sort(result);
|
|
|
|
Collections.sort(result);
|
|
|
|
return R.ok(result);
|
|
|
|
return R.ok(result);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*//设备弹出框:设备信息按分页进行展示
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
@GetMapping("")
|
|
|
|
|
|
|
|
public R getEquipList(FrontPage<Equip> frontPage, Equip equip){
|
|
|
|
|
|
|
|
String site = CommonMethods.getSite();
|
|
|
|
|
|
|
|
equip.setSite( site );
|
|
|
|
|
|
|
|
QueryWrapper<Equip> queryWrapper = new QueryWrapper<>();
|
|
|
|
|
|
|
|
queryWrapper.setEntity(equip);
|
|
|
|
|
|
|
|
IPage<Equip> result;
|
|
|
|
|
|
|
|
result = equipService.page(frontPage.getPagePlus(), queryWrapper);
|
|
|
|
|
|
|
|
return R.ok(result);
|
|
|
|
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 保存
|
|
|
|
* 保存
|
|
|
|