Browse Source

[招商][任务]状态更新

release_toaliyun_real
Burce 6 years ago
parent
commit
f2b1816276
2 changed files with 8 additions and 3 deletions
  1. +4
    -1
      mallinkService/src/main/java/com/iformall/service/invest/InvestHelper.java
  2. +4
    -2
      mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBizServiceImpl.java

+ 4
- 1
mallinkService/src/main/java/com/iformall/service/invest/InvestHelper.java View File

@@ -192,16 +192,19 @@ public class InvestHelper {
return JsonUtil.obj2Json(contentMap);
}

public static void checkOwner(InvestTaskEntity entity) {
public static boolean checkOwner(InvestTaskEntity entity) {
boolean ownerEmpty = true;
try {
List<Long> owner = JSONArray.parseArray(entity.getOwner(), Long.class);
if (CollectionUtils.isNotEmpty(owner)) {
entity.setStatus(EnumTaskStatus.NEGOTIATING);
ownerEmpty = false;
} else {
entity.setStatus(EnumTaskStatus.CREATED);
}
} catch (Exception e) {
InvestHelper.throwException(ErrorCode.SYS_PARAMETER_ERROR, "owner");
}
return ownerEmpty;
}
}

+ 4
- 2
mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBizServiceImpl.java View File

@@ -1053,7 +1053,9 @@ public class InvestBizServiceImpl implements InvestBizService {
// return;
//}

InvestHelper.checkOwner(investTaskEntity);
if (InvestHelper.checkOwner(investTaskEntity)) {
return;
}
WxShop shop = shopService.getById(investTaskEntity.getTargetId());
if (Objects.nonNull(shop)) {
Map<Long, WxRentContract> shopContractMap = getWxRentContractMap(shop);
@@ -1071,8 +1073,8 @@ public class InvestBizServiceImpl implements InvestBizService {
if (count > 0) {
investTaskEntity.setStatus(EnumTaskStatus.INTENTION);
}
}
}
}
}

private InvestFollowRecordVo buildFollowRecordItem(Map<Long, MallUserInfo> usersMap, InvestFollowRecordEntity item,


Loading…
Cancel
Save