Commit e9324205 authored by wyh's avatar wyh

修改

parent 4659c06d
...@@ -60,7 +60,11 @@ public class StoreController extends BaseController { ...@@ -60,7 +60,11 @@ public class StoreController extends BaseController {
if (store!=null&&store.getStoreId()!=null&&!"".equals(store.getStoreId())) { if (store!=null&&store.getStoreId()!=null&&!"".equals(store.getStoreId())) {
resultInfo = storeService.updateStore(store, op); resultInfo = storeService.updateStore(store, op);
}else { }else {
if(store.getUserId() == null || "".equals(store.getUserId())) {
resultInfo.setCode("0");
resultInfo.setMsg("系统用户id为空");
return resultInfo;
}
resultInfo = storeService.addStore(store, op); resultInfo = storeService.addStore(store, op);
} }
return resultInfo; return resultInfo;
......
...@@ -68,7 +68,11 @@ public class WorkerController extends BaseController { ...@@ -68,7 +68,11 @@ public class WorkerController extends BaseController {
if (worker!=null&&worker.getWorkerId()!=null&&!"".equals(worker.getWorkerId())) { if (worker!=null&&worker.getWorkerId()!=null&&!"".equals(worker.getWorkerId())) {
resultInfo = workerService.updateWorker(worker, op); resultInfo = workerService.updateWorker(worker, op);
}else { }else {
if(worker.getUserId() == null || "".equals(worker.getUserId())) {
resultInfo.setCode("0");
resultInfo.setMsg("系统用户id为空");
return resultInfo;
}
resultInfo = workerService.addWorker(worker, op); resultInfo = workerService.addWorker(worker, op);
} }
return resultInfo; return resultInfo;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment