|
|
@ -359,6 +359,8 @@ public class ScmVehicleReturnService extends MybatisBaseService<ScmVehicleReturn |
|
|
|
public ResultBean companyToDivisionOperate(BusinessVariables bv) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
ScmVehicleReturn scmVehicleReturn = fetchBySid(bv.getBusinessSid()); |
|
|
|
BigDecimal money = scmVehicleReturn.getMoney(); |
|
|
|
bv.getFormVariables().put("isLoan", money.compareTo(new BigDecimal("0")) > 0); |
|
|
|
ResultBean<List<Map<String, Object>>> resultBean = flowTaskFeign.getNextNodesForSubmit(bv); |
|
|
|
//判断数组是否为空,若为空则赋值,若不为空,则遍历循环将map中的数据赋值给getNodeVo
|
|
|
|
List<GetNodeVo> voList = Optional.ofNullable(resultBean.getData()).orElse(new ArrayList<>()).stream().map(m -> JSON.parseObject(JSON.toJSONString(m), GetNodeVo.class)).collect(Collectors.toList()); |
|
|
|