npe
This commit is contained in:
parent
1ac9bdd772
commit
9a440727f9
|
@ -195,7 +195,11 @@ public class AbilityCenterControllerV2 {
|
|||
tAbilityApplicationDTO.setUserId(abilityBatchApplicationDTO.getUserId());
|
||||
tAbilityApplicationDTO.setApproveStatus("审核中");
|
||||
tAbilityApplicationDTO.setDelFlag(0);
|
||||
tAbilityApplicationDTO.setApplyPrice(BigDecimal.valueOf(Long.valueOf(index.get("price"))));
|
||||
if (StringUtils.isNotBlank(index.get("price"))) {
|
||||
tAbilityApplicationDTO.setApplyPrice(BigDecimal.valueOf(Long.valueOf(index.get("price"))));
|
||||
} else {
|
||||
tAbilityApplicationDTO.setApplyPrice(BigDecimal.ZERO);
|
||||
}
|
||||
// v2 新增字段
|
||||
tAbilityApplicationDTO.setCameraList(index.get("channelId") == null ? null : JSON.toJSONString(index));
|
||||
tAbilityApplicationDTO.setTitle(abilityBatchApplicationDTO.getTitle());
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package io.renren.common.controller;
|
||||
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.renren.common.annotation.LogOperation;
|
||||
|
@ -257,8 +256,11 @@ public class AbilityCenterControllerV3 {
|
|||
tAbilityApplicationDTO.setUserId(abilityBatchApplicationDTO.getUserId());
|
||||
tAbilityApplicationDTO.setApproveStatus("审核中");
|
||||
tAbilityApplicationDTO.setDelFlag(0);
|
||||
tAbilityApplicationDTO.setApplyPrice(BigDecimal.valueOf(Long.valueOf(index.get("price"))));
|
||||
// v2 新增字段
|
||||
if (StringUtils.isNotBlank(index.get("price"))) {
|
||||
tAbilityApplicationDTO.setApplyPrice(BigDecimal.valueOf(Long.valueOf(index.get("price"))));
|
||||
} else {
|
||||
tAbilityApplicationDTO.setApplyPrice(BigDecimal.ZERO);
|
||||
} // v2 新增字段
|
||||
tAbilityApplicationDTO.setCameraList(index.get("channelId") == null ? null : JSON.toJSONString(index));
|
||||
tAbilityApplicationDTO.setTitle(abilityBatchApplicationDTO.getTitle());
|
||||
tAbilityApplicationDTO.setApplicationBackground(abilityBatchApplicationDTO.getApplicationBackground());
|
||||
|
|
Loading…
Reference in New Issue