|
@@ -154,14 +154,12 @@ public class AdminStoreAuditController {
|
|
|
|
|
|
//根据等级id获取等级名称
|
|
|
StoreGrade storeGrade = storeGradeModel.getStoreGradeByGradeId(storeApply.getStoreGradeId());
|
|
|
- if (storeGrade != null) {
|
|
|
- vo.setStoreGradeName(storeGrade.getGradeName());
|
|
|
- }
|
|
|
+ vo.setStoreGradeName(storeGrade != null ? storeGrade.getGradeName() : null);
|
|
|
|
|
|
Store store = storeModel.getStoreByStoreId(storeApply.getStoreId());
|
|
|
- if (store != null) {
|
|
|
- vo.setOpenTime(store.getOpenTime());
|
|
|
- }
|
|
|
+
|
|
|
+ vo.setOpenTime(store != null ? store.getOpenTime() : null);
|
|
|
+
|
|
|
|
|
|
List<StoreBusinessVO> storeBusinessVOList = new ArrayList<>();
|
|
|
StoreBusinessVO storeBusinessVO = new StoreBusinessVO();
|
|
@@ -249,12 +247,11 @@ public class AdminStoreAuditController {
|
|
|
|
|
|
//根据等级id获取等级名称
|
|
|
StoreGrade storeGrade = storeGradeModel.getStoreGradeByGradeId(storeApply.getStoreGradeId());
|
|
|
- if (storeGrade != null) {
|
|
|
- vo.setStoreGradeName(storeGrade.getGradeName());
|
|
|
- }
|
|
|
+ vo.setStoreGradeName(storeGrade != null ? storeGrade.getGradeName() : null);
|
|
|
+
|
|
|
|
|
|
Store store = storeModel.getStoreByStoreId(storeApply.getStoreId());
|
|
|
- vo.setOpenTime(store.getOpenTime());
|
|
|
+ vo.setOpenTime(store != null ? store.getOpenTime() : null);
|
|
|
|
|
|
List<StoreBusinessVO> storeBusinessVOList = new ArrayList<>();
|
|
|
StoreBusinessVO storeBusinessVO = new StoreBusinessVO();
|