|
|
@ -106,7 +106,7 @@ public class BsStoreProductController { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
UserInfoModel userInfoModel = userCenter.getSessionModel(UserInfoModel.class); |
|
|
|
UserInfoModel userInfoModel = userCenter.getSessionModel(UserInfoModel.class); |
|
|
|
if (userInfoModel == null || userInfoModel.getSalesman() == null) { |
|
|
|
if (userInfoModel == null) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "该角色暂无权限"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "该角色暂无权限"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -120,8 +120,8 @@ public class BsStoreProductController { |
|
|
|
storeProduct.setStatus(1); |
|
|
|
storeProduct.setStatus(1); |
|
|
|
storeProduct.setCreateTime(new Date()); |
|
|
|
storeProduct.setCreateTime(new Date()); |
|
|
|
storeProduct.setUpdateTime(new Date()); |
|
|
|
storeProduct.setUpdateTime(new Date()); |
|
|
|
storeProduct.setOpId(userInfoModel.getSalesman().getId()); |
|
|
|
storeProduct.setOpId(userInfoModel.getSecUser().getId()); |
|
|
|
storeProduct.setOpName(userInfoModel.getSalesman().getName()); |
|
|
|
storeProduct.setOpName(userInfoModel.getSecUser().getUserName()); |
|
|
|
storeProduct.setSaleCount(0); |
|
|
|
storeProduct.setSaleCount(0); |
|
|
|
|
|
|
|
|
|
|
|
storeGroupService.insertStoreProduct(storeProduct); |
|
|
|
storeGroupService.insertStoreProduct(storeProduct); |
|
|
@ -155,7 +155,7 @@ public class BsStoreProductController { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
UserInfoModel userInfoModel = userCenter.getSessionModel(UserInfoModel.class); |
|
|
|
UserInfoModel userInfoModel = userCenter.getSessionModel(UserInfoModel.class); |
|
|
|
if (userInfoModel == null || userInfoModel.getSalesman() == null) { |
|
|
|
if (userInfoModel == null) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "该角色暂无权限"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "该角色暂无权限"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -171,8 +171,8 @@ public class BsStoreProductController { |
|
|
|
bsStoreProduct.setProductCategoryId(category.getId()); |
|
|
|
bsStoreProduct.setProductCategoryId(category.getId()); |
|
|
|
bsStoreProduct.setProductCategoryName(category.getName()); |
|
|
|
bsStoreProduct.setProductCategoryName(category.getName()); |
|
|
|
bsStoreProduct.setUpdateTime(new Date()); |
|
|
|
bsStoreProduct.setUpdateTime(new Date()); |
|
|
|
bsStoreProduct.setOpId(userInfoModel.getSalesman().getId()); |
|
|
|
bsStoreProduct.setOpId(userInfoModel.getSecUser().getId()); |
|
|
|
bsStoreProduct.setOpName(userInfoModel.getSalesman().getName()); |
|
|
|
bsStoreProduct.setOpName(userInfoModel.getSecUser().getUserName()); |
|
|
|
bsStoreProduct.setName(storeProduct.getName()); |
|
|
|
bsStoreProduct.setName(storeProduct.getName()); |
|
|
|
bsStoreProduct.setSpec(storeProduct.getSpec()); |
|
|
|
bsStoreProduct.setSpec(storeProduct.getSpec()); |
|
|
|
bsStoreProduct.setPrice(storeProduct.getPrice()); |
|
|
|
bsStoreProduct.setPrice(storeProduct.getPrice()); |
|
|
|