|
@@ -74,6 +74,12 @@ public class MachineManageAction implements IMINAction {
|
|
|
User user = session.getUser();
|
|
|
//渠道
|
|
|
String channel = user.getChannel();
|
|
|
+ VmEquipmentInf vmEquipmentInf = Service.lookup(IMINDataBaseService.class)
|
|
|
+ .getMybatisMapper(VmEquipmentInfMapper.class)
|
|
|
+ .selectByPrimaryKey(equId);
|
|
|
+ if (vmEquipmentInf == null){
|
|
|
+ throw new MINBusinessException("该设备不存在!");
|
|
|
+ }
|
|
|
// 查询条件
|
|
|
Map<String, String> map = new HashMap<String, String>();
|
|
|
map.put("channel", "V01");
|
|
@@ -87,6 +93,7 @@ public class MachineManageAction implements IMINAction {
|
|
|
list = new MINCopyFormat("{perState:'sttDesc',isPromotton:'isPromottonDesc',isFragile:'isFragileDesc'}").format(list);
|
|
|
list = Service.lookup(IFormatService.class).formatEnum(list, "{sttDesc:'PROEQUREL_STATE',isPromottonDesc:'IS_PROMOTION',isFragileDesc:'IS_FRAGILE'}");
|
|
|
//传递数据
|
|
|
+ res.set("equType",vmEquipmentInf.getEquType());
|
|
|
res.set(IMINBusinessConstant.F_PAGING_LAY, list);
|
|
|
return res;
|
|
|
}
|