|
@@ -745,8 +745,12 @@ public class OmstruckOrderSeparateServiceImpl implements IOmstruckOrderSeparateS
|
|
|
public Integer getCapacityTypeByUserId(Map<String, Object> map) {
|
|
|
String userId =(String) map.get("userId");
|
|
|
BigDecimal capacityType = rmsCapacityMapper.getCapacityTypeByUserId(userId);
|
|
|
-// System.out.println("capacityType"+capacityType);
|
|
|
- return capacityType.intValue();
|
|
|
+ if(capacityType != null){
|
|
|
+ return capacityType.intValue();
|
|
|
+ }else{
|
|
|
+ return -1;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|