给单据做限制,限制管理员录入

This commit is contained in:
季圣华
2019-11-21 21:48:42 +08:00
parent db48da60b0
commit 8a57477153
18 changed files with 538 additions and 3 deletions

View File

@@ -140,7 +140,10 @@ public class DepotItemController {
HttpServletRequest request)throws Exception {
BaseResponseInfo res = new BaseResponseInfo();
Map<String, Object> map = new HashMap<String, Object>();
Long tenantId = Long.parseLong(request.getSession().getAttribute("tenantId").toString());
Long tenantId = null;
if(request.getSession().getAttribute("tenantId")!=null) {
tenantId = Long.parseLong(request.getSession().getAttribute("tenantId").toString());
}
try {
List<DepotItemVo4WithInfoEx> dataList = new ArrayList<DepotItemVo4WithInfoEx>();
if(headerId != 0) {