|
@@ -752,11 +752,16 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
public Integer selectCountByPhone(String phone) {
|
|
public Integer selectCountByPhone(String phone) {
|
|
- Map<String, Object> pageView = new HashMap<>();
|
|
|
|
- pageView.put("statusFlag", 1);
|
|
|
|
- pageView.put("phone", phone);
|
|
|
|
- // 查询记录总数
|
|
|
|
- Integer dataCount = baseMapper.getCountByCondition(pageView);
|
|
|
|
- return dataCount;
|
|
|
|
|
|
+ if(phone == null || phone.isEmpty()){
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
+ else{
|
|
|
|
+ Map<String, Object> pageView = new HashMap<>();
|
|
|
|
+ pageView.put("statusFlag", '1');
|
|
|
|
+ pageView.put("phone", phone);
|
|
|
|
+ // 查询记录总数
|
|
|
|
+ Integer dataCount = baseMapper.getCountByCondition(pageView);
|
|
|
|
+ return dataCount;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|