Commit f9cf2d80 authored by wyh's avatar wyh

删除 编辑的校验

parent 099b9ff8
......@@ -61,21 +61,6 @@ public class StoreController extends BaseController {
if(store.getUserId() != null && !"".equals(store.getUserId())) {
store.setUserId(null);
}
if(store.getStoreHomePic()==null || "".equals(store.getStoreHomePic())) {
resultInfo.setCode("0");
resultInfo.setMsg("店铺主图为空");
return resultInfo;
}
if(store.getStorePic()==null || "".equals(store.getStorePic())) {
resultInfo.setCode("0");
resultInfo.setMsg("店铺详情图为空");
return resultInfo;
}
if(store.getQrCode()==null || "".equals(store.getQrCode())) {
resultInfo.setCode("0");
resultInfo.setMsg("店铺二维码为空");
return resultInfo;
}
resultInfo = storeService.updateStore(store, op);
}else {
if(store.getUserId() == null || "".equals(store.getUserId())) {
......
......@@ -66,16 +66,7 @@ public class WorkerController extends BaseController {
//操作人
Operator op = getOperator();
if (worker!=null&&worker.getWorkerId()!=null&&!"".equals(worker.getWorkerId())) {
if(worker.getWorkerPic() == null || "".equals(worker.getWorkerPic())) {
resultInfo.setCode("0");
resultInfo.setMsg("员工详情图片为空");
return resultInfo;
}
if(worker.getWorkerHomePic() == null || "".equals(worker.getWorkerHomePic())) {
resultInfo.setCode("0");
resultInfo.setMsg("员工主图为空");
return resultInfo;
}
if(worker.getUserId() != null && !"".equals(worker.getUserId())) {
worker.setUserId(null);
}
......
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