|
|
@ -179,14 +179,7 @@ public class ScmVehicleReturnService extends MybatisBaseService<ScmVehicleReturn |
|
|
|
return rb.setMsg("请选择需要退库的车辆"); |
|
|
|
} |
|
|
|
Map<String, Object> variables = BeanUtil.beanToMap(scmVehicleReturnDto); |
|
|
|
String money = scmVehicleReturnDto.getMoney(); |
|
|
|
BigDecimal bigDecimalMoney = new BigDecimal(money); |
|
|
|
variables.put("isLoan", bigDecimalMoney.compareTo(new BigDecimal("0")) > 0); |
|
|
|
/* if (bigDecimalMoney.compareTo(new BigDecimal("0")) > 0) { |
|
|
|
variables.put("isLoan", true); |
|
|
|
} else { |
|
|
|
variables.put("isLoan", false); |
|
|
|
}*/ |
|
|
|
variables.put("isLoan", new BigDecimal(scmVehicleReturnDto.getMoney()).compareTo(new BigDecimal("0")) > 0); |
|
|
|
ResultBean<SysUserInfoVo> sysUserInfoVoResultBean = sysUserFeign.selectUserInfoByUserSid(scmVehicleReturnDto.getUserSid()); |
|
|
|
//取组织架构的全路径sid
|
|
|
|
SysStaffOrg sysStaffOrg = sysStaffOrgFeign.getOrgByStaffSid(sysUserInfoVoResultBean.getData().getStaffSid()).getData(); |
|
|
|