Selaa lähdekoodia

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

release_toaliyun_real
Burce 6 vuotta sitten
vanhempi
commit
f2b1816276
2 muutettua tiedostoa jossa 8 lisäystä ja 3 poistoa
  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 Näytä tiedosto

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


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

+ 4
- 2
mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBizServiceImpl.java Näytä tiedosto

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


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


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


Ladataan…
Peruuta
Tallenna