|
@@ -1151,4 +1151,26 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
|
}
|
|
|
return cost;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查自己负责的仓库
|
|
|
+ * @param compId
|
|
|
+ * @param personCharge
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public List<WarehouseBaseInfo> selectResponsible(String compId, String personCharge) {
|
|
|
+ if(compId == null || compId.isEmpty()){
|
|
|
+ compId = AuthSecurityUtils.getStaffById(AuthSecurityUtils.getCurrentUserId()).getCompId();
|
|
|
+ }
|
|
|
+ if(personCharge == null || personCharge.isEmpty()){
|
|
|
+ personCharge = AuthSecurityUtils.getStaffById(AuthSecurityUtils.getCurrentUserId()).getStaffMobilePhone();
|
|
|
+ }
|
|
|
+ Wrapper<WarehouseBaseInfo> warehouseBaseInfoWrapper = new EntityWrapper<>();
|
|
|
+ warehouseBaseInfoWrapper.eq("comp_id", compId).eq("delete_flag", "0");
|
|
|
+ warehouseBaseInfoWrapper.andNew().eq("person_phone", personCharge).or()
|
|
|
+ .like("other_person_charge", personCharge);
|
|
|
+ List<WarehouseBaseInfo> warehouseBaseInfoList=this.selectList(warehouseBaseInfoWrapper);
|
|
|
+ return warehouseBaseInfoList;
|
|
|
+ }
|
|
|
}
|