Commit e9324205 authored by wyh's avatar wyh

修改

parent 4659c06d
......@@ -60,7 +60,11 @@ public class StoreController extends BaseController {
if (store!=null&&store.getStoreId()!=null&&!"".equals(store.getStoreId())) {
resultInfo = storeService.updateStore(store, op);
}else {
if(store.getUserId() == null || "".equals(store.getUserId())) {
resultInfo.setCode("0");
resultInfo.setMsg("系统用户id为空");
return resultInfo;
}
resultInfo = storeService.addStore(store, op);
}
return resultInfo;
......
......@@ -68,7 +68,11 @@ public class WorkerController extends BaseController {
if (worker!=null&&worker.getWorkerId()!=null&&!"".equals(worker.getWorkerId())) {
resultInfo = workerService.updateWorker(worker, op);
}else {
if(worker.getUserId() == null || "".equals(worker.getUserId())) {
resultInfo.setCode("0");
resultInfo.setMsg("系统用户id为空");
return resultInfo;
}
resultInfo = workerService.addWorker(worker, op);
}
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