|
|
|
@ -1049,6 +1049,12 @@ public class PageController { |
|
|
|
List<SplitInfo> splitInfoByMid = splitUnitService.findSplitInfoByMid(inventoryById.getMid()); |
|
|
|
inventory.setSplitInfoList(splitInfoByMid); |
|
|
|
mv.addObject("record", inventory); |
|
|
|
String userAgent = request.getHeader("user-agent"); |
|
|
|
// 判断当前使用的设备为移动端还是pc端
|
|
|
|
boolean b = DeviceUtil.checkAgentIsMobile(userAgent); |
|
|
|
if (b) { |
|
|
|
mv.setViewName("pages/depository/Inventory-view_mobile"); |
|
|
|
} |
|
|
|
return mv; |
|
|
|
} else { |
|
|
|
throw new MyException("缺少必要参数"); |
|
|
|
|